client/game/kkr.dll/lifted-0094.c (1787152B)
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_36148F29(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(0x36148F29u); 17 18 L_36148F29: 19 edx = MEM32(ebx + 0x60); /* 0x36148F29: mov edx, dword ptr [ebx + 0x60] */ 20 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 21 ecx = ecx & 0xFFFFu; /* 0x36148F2C: and ecx, 0xffff */ 22 _cf = 0; 23 _flag_k = FK_TEST; 24 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 25 eax = eax & 0xFFFFu; /* 0x36148F32: and eax, 0xffff */ 26 _cf = 0; 27 _flag_k = FK_TEST; 28 MEM32(ebx + 0x34) = ecx; /* 0x36148F37: mov dword ptr [ebx + 0x34], ecx */ 29 MEM32(ebx + 0x38) = eax; /* 0x36148F3A: mov dword ptr [ebx + 0x38], eax */ 30 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 31 eax = 0; /* 0x36148F3D: xor eax, eax */ 32 _cf = 0; 33 _flag_k = FK_TEST; 34 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 35 ecx = 0; /* 0x36148F3F: xor ecx, ecx */ 36 _cf = 0; 37 _flag_k = FK_TEST; 38 /* cmp edx, 6 */ /* 0x36148F41: cmp edx, 6 */ 39 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(6); 40 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 41 _flag_k = FK_CMP; 42 MEM32(ebp + (-0x60)) = eax; /* 0x36148F44: mov dword ptr [ebp - 0x60], eax */ 43 MEM32(ebp + (-0x68)) = ecx; /* 0x36148F47: mov dword ptr [ebp - 0x68], ecx */ 44 if (CMP_L(_flag_a, _flag_b)) goto L_36148F99; /* 0x36148F4A: jl 0x36148f99 */ 45 L_36148F4C: 46 edx = ebp + (-0x60); /* 0x36148F4C: lea edx, [ebp - 0x60] */ 47 PUSH32(esp, edx); /* 0x36148F4F: push edx */ 48 ecx = edi; /* 0x36148F50: mov ecx, edi */ 49 RECOMP_ICALL(esi); /* 0x36148F52: call esi */ 50 RECOMP_FLAGS_IN(); 51 ecx = ebp + (-0x68); /* 0x36148F54: lea ecx, [ebp - 0x68] */ 52 PUSH32(esp, ecx); /* 0x36148F57: push ecx */ 53 ecx = eax; /* 0x36148F58: mov ecx, eax */ 54 RECOMP_ICALL(esi); /* 0x36148F5A: call esi */ 55 RECOMP_FLAGS_IN(); 56 eax = MEM32(ebp + (-0x60)); /* 0x36148F5C: mov eax, dword ptr [ebp - 0x60] */ 57 /* cmp LO16(eax), 0x400u */ /* 0x36148F5F: cmp ax, 0x400 */ 58 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(0x400u) << 16; 59 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 60 _flag_k = FK_NARROW(FK_CMP, 16); 61 ecx = MEM32(ebp + (-0x68)); /* 0x36148F63: mov ecx, dword ptr [ebp - 0x68] */ 62 if (CMP_A(_flag_a, _flag_b)) goto L_3614990A; /* 0x36148F66: ja 0x3614990a */ 63 L_36148F6C: 64 /* cmp LO16(ecx), 0x400u */ /* 0x36148F6C: cmp cx, 0x400 */ 65 _flag_a = (uint32_t)(LO16(ecx)) << 16; _flag_b = (uint32_t)(0x400u) << 16; 66 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 67 _flag_k = FK_NARROW(FK_CMP, 16); 68 if (CMP_A(_flag_a, _flag_b)) goto L_3614990A; /* 0x36148F71: ja 0x3614990a */ 69 L_36148F77: 70 /* cmp LO16(eax), LO16(ecx) */ /* 0x36148F77: cmp ax, cx */ 71 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(LO16(ecx)) << 16; 72 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 73 _flag_k = FK_NARROW(FK_CMP, 16); 74 if (CMP_A(_flag_a, _flag_b)) goto L_3614990A; /* 0x36148F7A: ja 0x3614990a */ 75 L_36148F80: 76 /* test LO16(eax), LO16(eax) */ /* 0x36148F80: test ax, ax */ 77 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(LO16(eax)) << 16; 78 _cf = 0; 79 _flag_k = FK_NARROW(FK_TEST, 16); 80 if (TEST_NZ(_flag_a, _flag_b)) goto L_36148F90; /* 0x36148F83: jne 0x36148f90 */ 81 L_36148F85: 82 /* test LO16(ecx), LO16(ecx) */ /* 0x36148F85: test cx, cx */ 83 _flag_a = (uint32_t)(LO16(ecx)) << 16; _flag_b = (uint32_t)(LO16(ecx)) << 16; 84 _cf = 0; 85 _flag_k = FK_NARROW(FK_TEST, 16); 86 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614990A; /* 0x36148F88: jne 0x3614990a */ 87 L_36148F8E: 88 goto L_36148F99; /* 0x36148F8E: jmp 0x36148f99 */ 89 L_36148F90: 90 /* test LO16(ecx), LO16(ecx) */ /* 0x36148F90: test cx, cx */ 91 _flag_a = (uint32_t)(LO16(ecx)) << 16; _flag_b = (uint32_t)(LO16(ecx)) << 16; 92 _cf = 0; 93 _flag_k = FK_NARROW(FK_TEST, 16); 94 if (TEST_Z(_flag_a, _flag_b)) goto L_3614990A; /* 0x36148F93: je 0x3614990a */ 95 L_36148F99: 96 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 97 eax = eax & 0xFFFFu; /* 0x36148F99: and eax, 0xffff */ 98 _cf = 0; 99 _flag_k = FK_TEST; 100 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 101 ecx = ecx & 0xFFFFu; /* 0x36148F9E: and ecx, 0xffff */ 102 _cf = 0; 103 _flag_k = FK_TEST; 104 edx = ebp + (-0x5C); /* 0x36148FA4: lea edx, [ebp - 0x5c] */ 105 MEM32(ebx + 0x3C) = eax; /* 0x36148FA7: mov dword ptr [ebx + 0x3c], eax */ 106 PUSH32(esp, edx); /* 0x36148FAA: push edx */ 107 eax = ebp + (-0x6C); /* 0x36148FAB: lea eax, [ebp - 0x6c] */ 108 MEM32(ebx + 0x40) = ecx; /* 0x36148FAE: mov dword ptr [ebx + 0x40], ecx */ 109 PUSH32(esp, eax); /* 0x36148FB1: push eax */ 110 ecx = edi; /* 0x36148FB2: mov ecx, edi */ 111 MEM32(ebp + (-0x84)) = 0; /* 0x36148FB4: mov dword ptr [ebp - 0x84], 0 */ 112 MEM32(ebp + (-0x80)) = 1; /* 0x36148FBE: mov dword ptr [ebp - 0x80], 1 */ 113 MEM32(ebp + (-0x7C)) = 2; /* 0x36148FC5: mov dword ptr [ebp - 0x7c], 2 */ 114 MEM32(ebp + (-0x78)) = 3; /* 0x36148FCC: mov dword ptr [ebp - 0x78], 3 */ 115 MEM32(ebp + (-0x74)) = 4; /* 0x36148FD3: mov dword ptr [ebp - 0x74], 4 */ 116 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148FDA: call dword ptr [0x3616fae0] */ 117 RECOMP_FLAGS_IN(); 118 ecx = eax; /* 0x36148FE0: mov ecx, eax */ 119 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36148FE2: call dword ptr [0x3616fa8c] */ 120 RECOMP_FLAGS_IN(); 121 ecx = ebp + (-0x70); /* 0x36148FE8: lea ecx, [ebp - 0x70] */ 122 PUSH32(esp, ecx); /* 0x36148FEB: push ecx */ 123 ecx = eax; /* 0x36148FEC: mov ecx, eax */ 124 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148FEE: call dword ptr [0x3616fae0] */ 125 RECOMP_FLAGS_IN(); 126 edx = ebp + (-0x48); /* 0x36148FF4: lea edx, [ebp - 0x48] */ 127 PUSH32(esp, edx); /* 0x36148FF7: push edx */ 128 ecx = eax; /* 0x36148FF8: mov ecx, eax */ 129 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148FFA: call dword ptr [0x3616fae0] */ 130 RECOMP_FLAGS_IN(); 131 eax = MEM32(ebp + (-0x6C)); /* 0x36149000: mov eax, dword ptr [ebp - 0x6c] */ 132 /* cmp LO8(eax), 0x64u */ /* 0x36149003: cmp al, 0x64 */ 133 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x64u) << 24; 134 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 135 _flag_k = FK_NARROW(FK_CMP, 24); 136 if (CMP_BE(_flag_a, _flag_b)) goto L_36149046; /* 0x36149005: jbe 0x36149046 */ 137 L_36149007: 138 ebx = MEM32(ebx); /* 0x36149007: mov ebx, dword ptr [ebx] */ 139 ecx = MEM32(ebx + 0x4); /* 0x36149009: mov ecx, dword ptr [ebx + 4] */ 140 /* test ecx, ecx */ /* 0x3614900C: test ecx, ecx */ 141 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 142 _cf = 0; 143 _flag_k = FK_TEST; 144 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149016; /* 0x3614900E: jne 0x36149016 */ 145 L_36149010: 146 ecx = MEM32(0x3616F10C); /* 0x36149010: mov ecx, dword ptr [0x3616f10c] */ 147 L_36149016: 148 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 149 eax = eax & 0xFFu; /* 0x36149016: and eax, 0xff */ 150 _cf = 0; 151 _flag_k = FK_TEST; 152 PUSH32(esp, eax); /* 0x3614901B: push eax */ 153 PUSH32(esp, ecx); /* 0x3614901C: push ecx */ 154 PUSH32(esp, 0x362E7720u); /* 0x3614901D: push 0x362e7720 */ 155 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36149022: call dword ptr [0x3616f18c] */ 156 RECOMP_FLAGS_IN(); 157 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 158 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 159 esp = esp + 0xCu; /* 0x36149028: add esp, 0xc */ 160 _flag_k = FK_ADD; 161 PUSH32(esp, 0x362E7700u); /* 0x3614902B: push 0x362e7700 */ 162 ecx = ebp + (-0x1C); /* 0x36149030: lea ecx, [ebp - 0x1c] */ 163 RECOMP_ICALL(0x36008EF0u); /* 0x36149033: call 0x36008ef0 */ /* not lifted */ 164 RECOMP_FLAGS_IN(); 165 PUSH32(esp, 0x36184170u); /* 0x36149038: push 0x36184170 */ 166 eax = ebp + (-0x1C); /* 0x3614903D: lea eax, [ebp - 0x1c] */ 167 PUSH32(esp, eax); /* 0x36149040: push eax */ 168 RECOMP_ICALL(0x3615FD70u); /* 0x36149041: call 0x3615fd70 */ /* not lifted */ 169 RECOMP_FLAGS_IN(); 170 L_36149046: 171 ecx = MEM32(ebp + (-0x5C)); /* 0x36149046: mov ecx, dword ptr [ebp - 0x5c] */ 172 /* cmp ecx, 0xFFFFFFFFu */ /* 0x36149049: cmp ecx, -1 */ 173 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFFu); 174 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 175 _flag_k = FK_CMP; 176 if (CMP_GE(_flag_a, _flag_b)) goto L_36149087; /* 0x3614904C: jge 0x36149087 */ 177 L_3614904E: 178 ebx = MEM32(ebx); /* 0x3614904E: mov ebx, dword ptr [ebx] */ 179 eax = MEM32(ebx + 0x4); /* 0x36149050: mov eax, dword ptr [ebx + 4] */ 180 /* test eax, eax */ /* 0x36149053: test eax, eax */ 181 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 182 _cf = 0; 183 _flag_k = FK_TEST; 184 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614905C; /* 0x36149055: jne 0x3614905c */ 185 L_36149057: 186 eax = MEM32(0x3616F10C); /* 0x36149057: mov eax, dword ptr [0x3616f10c] */ 187 L_3614905C: 188 PUSH32(esp, ecx); /* 0x3614905C: push ecx */ 189 PUSH32(esp, eax); /* 0x3614905D: push eax */ 190 PUSH32(esp, 0x362E76ACu); /* 0x3614905E: push 0x362e76ac */ 191 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36149063: call dword ptr [0x3616f18c] */ 192 RECOMP_FLAGS_IN(); 193 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 194 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 195 esp = esp + 0xCu; /* 0x36149069: add esp, 0xc */ 196 _flag_k = FK_ADD; 197 PUSH32(esp, 0x362E7700u); /* 0x3614906C: push 0x362e7700 */ 198 ecx = ebp + (-0x1C); /* 0x36149071: lea ecx, [ebp - 0x1c] */ 199 RECOMP_ICALL(0x36008EF0u); /* 0x36149074: call 0x36008ef0 */ /* not lifted */ 200 RECOMP_FLAGS_IN(); 201 PUSH32(esp, 0x36184170u); /* 0x36149079: push 0x36184170 */ 202 ecx = ebp + (-0x1C); /* 0x3614907E: lea ecx, [ebp - 0x1c] */ 203 PUSH32(esp, ecx); /* 0x36149081: push ecx */ 204 RECOMP_ICALL(0x3615FD70u); /* 0x36149082: call 0x3615fd70 */ /* not lifted */ 205 RECOMP_FLAGS_IN(); 206 L_36149087: 207 ecx = MEM32(ebp + (-0x70)); /* 0x36149087: mov ecx, dword ptr [ebp - 0x70] */ 208 /* cmp LO8(ecx), 5 */ /* 0x3614908A: cmp cl, 5 */ 209 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(5) << 24; 210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 211 _flag_k = FK_NARROW(FK_CMP, 24); 212 if (CMP_B(_flag_a, _flag_b)) goto L_361490D0; /* 0x3614908D: jb 0x361490d0 */ 213 L_3614908F: 214 ebx = MEM32(ebx); /* 0x3614908F: mov ebx, dword ptr [ebx] */ 215 eax = MEM32(ebx + 0x4); /* 0x36149091: mov eax, dword ptr [ebx + 4] */ 216 /* test eax, eax */ /* 0x36149094: test eax, eax */ 217 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 218 _cf = 0; 219 _flag_k = FK_TEST; 220 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614909D; /* 0x36149096: jne 0x3614909d */ 221 L_36149098: 222 eax = MEM32(0x3616F10C); /* 0x36149098: mov eax, dword ptr [0x3616f10c] */ 223 L_3614909D: 224 PUSH32(esp, 5); /* 0x3614909D: push 5 */ 225 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 226 ecx = ecx & 0xFFu; /* 0x3614909F: and ecx, 0xff */ 227 _cf = 0; 228 _flag_k = FK_TEST; 229 PUSH32(esp, ecx); /* 0x361490A5: push ecx */ 230 PUSH32(esp, eax); /* 0x361490A6: push eax */ 231 PUSH32(esp, 0x362E7654u); /* 0x361490A7: push 0x362e7654 */ 232 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361490AC: call dword ptr [0x3616f18c] */ 233 RECOMP_FLAGS_IN(); 234 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 235 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 236 esp = esp + 0x10u; /* 0x361490B2: add esp, 0x10 */ 237 _flag_k = FK_ADD; 238 PUSH32(esp, 0x362E7700u); /* 0x361490B5: push 0x362e7700 */ 239 ecx = ebp + (-0x1C); /* 0x361490BA: lea ecx, [ebp - 0x1c] */ 240 RECOMP_ICALL(0x36008EF0u); /* 0x361490BD: call 0x36008ef0 */ /* not lifted */ 241 RECOMP_FLAGS_IN(); 242 PUSH32(esp, 0x36184170u); /* 0x361490C2: push 0x36184170 */ 243 edx = ebp + (-0x1C); /* 0x361490C7: lea edx, [ebp - 0x1c] */ 244 PUSH32(esp, edx); /* 0x361490CA: push edx */ 245 RECOMP_ICALL(0x3615FD70u); /* 0x361490CB: call 0x3615fd70 */ /* not lifted */ 246 RECOMP_FLAGS_IN(); 247 L_361490D0: 248 fp_push((double)(int32_t)MEM32(ebp + (-0x5C))); /* 0x361490D0: fild dword ptr [ebp - 0x5c] */ 249 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 250 eax = eax & 0xFFu; /* 0x361490D3: and eax, 0xff */ 251 _cf = 0; 252 _flag_k = FK_TEST; 253 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 254 ecx = ecx & 0xFFu; /* 0x361490D8: and ecx, 0xff */ 255 _cf = 0; 256 _flag_k = FK_TEST; 257 MEM32(ebx + 0x44) = eax; /* 0x361490DE: mov dword ptr [ebx + 0x44], eax */ 258 eax = MEM32(ebp + ecx * 4 + (-0x84)); /* 0x361490E1: mov eax, dword ptr [ebp + ecx*4 - 0x84] */ 259 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + 0x48) = _v; } /* 0x361490E8: fstp dword ptr [ebx + 0x48] */ 260 MEM32(ebx + 0x4C) = eax; /* 0x361490EB: mov dword ptr [ebx + 0x4c], eax */ 261 /* cmp MEM32(ebx + 0x60), 6 */ /* 0x361490EE: cmp dword ptr [ebx + 0x60], 6 */ 262 _flag_a = (uint32_t)(MEM32(ebx + 0x60)); _flag_b = (uint32_t)(6); 263 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 264 _flag_k = FK_CMP; 265 MEM8(ebp + (-0x44)) = (uint8_t)(0); /* 0x361490F2: mov byte ptr [ebp - 0x44], 0 */ 266 if (CMP_GE(_flag_a, _flag_b)) goto L_36149104; /* 0x361490F6: jge 0x36149104 */ 267 L_361490F8: 268 ecx = ebp + (-0x44); /* 0x361490F8: lea ecx, [ebp - 0x44] */ 269 PUSH32(esp, ecx); /* 0x361490FB: push ecx */ 270 ecx = edi; /* 0x361490FC: mov ecx, edi */ 271 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x361490FE: call dword ptr [0x3616fae0] */ 272 RECOMP_FLAGS_IN(); 273 L_36149104: 274 edx = ebp + (-0x64); /* 0x36149104: lea edx, [ebp - 0x64] */ 275 PUSH32(esp, edx); /* 0x36149107: push edx */ 276 ecx = edi; /* 0x36149108: mov ecx, edi */ 277 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x3614910A: call dword ptr [0x3616fae0] */ 278 RECOMP_FLAGS_IN(); 279 ecx = ebp + (-0x4C); /* 0x36149110: lea ecx, [ebp - 0x4c] */ 280 PUSH32(esp, ecx); /* 0x36149113: push ecx */ 281 ecx = eax; /* 0x36149114: mov ecx, eax */ 282 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36149116: call dword ptr [0x3616fae0] */ 283 RECOMP_FLAGS_IN(); 284 edx = ebp + (-0x50); /* 0x3614911C: lea edx, [ebp - 0x50] */ 285 PUSH32(esp, edx); /* 0x3614911F: push edx */ 286 ecx = eax; /* 0x36149120: mov ecx, eax */ 287 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36149122: call dword ptr [0x3616fae0] */ 288 RECOMP_FLAGS_IN(); 289 SET_LO8(eax, MEM8(ebp + (-0x48))); /* 0x36149128: mov al, byte ptr [ebp - 0x48] */ 290 /* test LO8(eax), LO8(eax) */ /* 0x3614912B: test al, al */ 291 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 292 _cf = 0; 293 _flag_k = FK_NARROW(FK_TEST, 24); 294 MEM32(ebp + (-0x20)) = 0; /* 0x3614912D: mov dword ptr [ebp - 0x20], 0 */ 295 if (TEST_Z(_flag_a, _flag_b)) goto L_36149189; /* 0x36149134: jbe 0x36149189 */ 296 L_36149136: 297 eax = ebp + (-0x10); /* 0x36149136: lea eax, [ebp - 0x10] */ 298 PUSH32(esp, eax); /* 0x36149139: push eax */ 299 PUSH32(esp, edi); /* 0x3614913A: push edi */ 300 MEM32(ebp + (-0x10)) = 0; /* 0x3614913B: mov dword ptr [ebp - 0x10], 0 */ 301 RECOMP_ICALL(0x360F44D0u); /* 0x36149142: call 0x360f44d0 */ /* not lifted */ 302 RECOMP_FLAGS_IN(); 303 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 304 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 305 esp = esp + 8; /* 0x36149147: add esp, 8 */ 306 _flag_k = FK_ADD; 307 ecx = ebp + (-0x14); /* 0x3614914A: lea ecx, [ebp - 0x14] */ 308 PUSH32(esp, ecx); /* 0x3614914D: push ecx */ 309 ecx = eax; /* 0x3614914E: mov ecx, eax */ 310 RECOMP_ICALL(esi); /* 0x36149150: call esi */ 311 RECOMP_FLAGS_IN(); 312 edx = MEM32(ebp + (-0x10)); /* 0x36149152: mov edx, dword ptr [ebp - 0x10] */ 313 eax = MEM32(ebp + (-0x14)); /* 0x36149155: mov eax, dword ptr [ebp - 0x14] */ 314 ecx = MEM32(ebx + 0x58); /* 0x36149158: mov ecx, dword ptr [ebx + 0x58] */ 315 MEM32(ebp + (-0x1C)) = edx; /* 0x3614915B: mov dword ptr [ebp - 0x1c], edx */ 316 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 317 eax = eax & 0xFFFFu; /* 0x3614915E: and eax, 0xffff */ 318 _cf = 0; 319 _flag_k = FK_TEST; 320 edx = ebp + (-0x1C); /* 0x36149163: lea edx, [ebp - 0x1c] */ 321 PUSH32(esp, edx); /* 0x36149166: push edx */ 322 MEM32(ebp + (-0x18)) = eax; /* 0x36149167: mov dword ptr [ebp - 0x18], eax */ 323 eax = MEM32(ecx + 0x8); /* 0x3614916A: mov eax, dword ptr [ecx + 8] */ 324 PUSH32(esp, 1); /* 0x3614916D: push 1 */ 325 PUSH32(esp, eax); /* 0x3614916F: push eax */ 326 RECOMP_ICALL(0x36149F30u); /* 0x36149170: call 0x36149f30 */ /* not lifted */ 327 RECOMP_FLAGS_IN(); 328 eax = MEM32(ebp + (-0x20)); /* 0x36149175: mov eax, dword ptr [ebp - 0x20] */ 329 ecx = MEM32(ebp + (-0x48)); /* 0x36149178: mov ecx, dword ptr [ebp - 0x48] */ 330 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 331 eax = eax + 1; /* 0x3614917B: inc eax */ 332 _flag_k = FK_INC; 333 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 334 ecx = ecx & 0xFFu; /* 0x3614917C: and ecx, 0xff */ 335 _cf = 0; 336 _flag_k = FK_TEST; 337 /* cmp eax, ecx */ /* 0x36149182: cmp eax, ecx */ 338 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 340 _flag_k = FK_CMP; 341 MEM32(ebp + (-0x20)) = eax; /* 0x36149184: mov dword ptr [ebp - 0x20], eax */ 342 RECOMP_BACKEDGE(); 343 if (CMP_L(_flag_a, _flag_b)) goto L_36149136; /* 0x36149187: jl 0x36149136 */ 344 L_36149189: 345 SET_LO8(eax, MEM8(ebp + (-0x44))); /* 0x36149189: mov al, byte ptr [ebp - 0x44] */ 346 /* test LO8(eax), LO8(eax) */ /* 0x3614918C: test al, al */ 347 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 348 _cf = 0; 349 _flag_k = FK_NARROW(FK_TEST, 24); 350 MEM32(ebp + (-0x10)) = 0; /* 0x3614918E: mov dword ptr [ebp - 0x10], 0 */ 351 if (TEST_Z(_flag_a, _flag_b)) goto L_361491C7; /* 0x36149195: jbe 0x361491c7 */ 352 L_36149197: 353 edx = ebp + (-0x14); /* 0x36149197: lea edx, [ebp - 0x14] */ 354 PUSH32(esp, edx); /* 0x3614919A: push edx */ 355 PUSH32(esp, edi); /* 0x3614919B: push edi */ 356 MEM32(ebp + (-0x14)) = 0; /* 0x3614919C: mov dword ptr [ebp - 0x14], 0 */ 357 RECOMP_ICALL(0x360F44D0u); /* 0x361491A3: call 0x360f44d0 */ /* not lifted */ 358 RECOMP_FLAGS_IN(); 359 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 360 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 361 esp = esp + 8; /* 0x361491A8: add esp, 8 */ 362 _flag_k = FK_ADD; 363 ecx = ebp + (-0x1E); /* 0x361491AB: lea ecx, [ebp - 0x1e] */ 364 PUSH32(esp, ecx); /* 0x361491AE: push ecx */ 365 ecx = eax; /* 0x361491AF: mov ecx, eax */ 366 RECOMP_ICALL(esi); /* 0x361491B1: call esi */ 367 RECOMP_FLAGS_IN(); 368 eax = MEM32(ebp + (-0x10)); /* 0x361491B3: mov eax, dword ptr [ebp - 0x10] */ 369 edx = MEM32(ebp + (-0x44)); /* 0x361491B6: mov edx, dword ptr [ebp - 0x44] */ 370 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 371 eax = eax + 1; /* 0x361491B9: inc eax */ 372 _flag_k = FK_INC; 373 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 374 edx = edx & 0xFFu; /* 0x361491BA: and edx, 0xff */ 375 _cf = 0; 376 _flag_k = FK_TEST; 377 /* cmp eax, edx */ /* 0x361491C0: cmp eax, edx */ 378 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 380 _flag_k = FK_CMP; 381 MEM32(ebp + (-0x10)) = eax; /* 0x361491C2: mov dword ptr [ebp - 0x10], eax */ 382 RECOMP_BACKEDGE(); 383 if (CMP_L(_flag_a, _flag_b)) goto L_36149197; /* 0x361491C5: jl 0x36149197 */ 384 L_361491C7: 385 SET_LO8(eax, MEM8(ebp + (-0x64))); /* 0x361491C7: mov al, byte ptr [ebp - 0x64] */ 386 /* test LO8(eax), LO8(eax) */ /* 0x361491CA: test al, al */ 387 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 388 _cf = 0; 389 _flag_k = FK_NARROW(FK_TEST, 24); 390 MEM32(ebp + (-0x14)) = 0; /* 0x361491CC: mov dword ptr [ebp - 0x14], 0 */ 391 if (TEST_Z(_flag_a, _flag_b)) goto L_361494B8; /* 0x361491D3: jbe 0x361494b8 */ 392 L_361491D9: 393 ecx = MEM32(ebp + 0x8); /* 0x361491D9: mov ecx, dword ptr [ebp + 8] */ 394 esi = MEM32(0x3616FAC8); /* 0x361491DC: mov esi, dword ptr [0x3616fac8] */ 395 eax = ebp + (-0x1E); /* 0x361491E2: lea eax, [ebp - 0x1e] */ 396 PUSH32(esp, eax); /* 0x361491E5: push eax */ 397 RECOMP_ICALL(esi); /* 0x361491E6: call esi */ 398 RECOMP_FLAGS_IN(); 399 ecx = ebp + (-0x26); /* 0x361491E8: lea ecx, [ebp - 0x26] */ 400 PUSH32(esp, ecx); /* 0x361491EB: push ecx */ 401 ecx = eax; /* 0x361491EC: mov ecx, eax */ 402 RECOMP_ICALL(esi); /* 0x361491EE: call esi */ 403 RECOMP_FLAGS_IN(); 404 esi = MEM32(ebx + 0x5C); /* 0x361491F0: mov esi, dword ptr [ebx + 0x5c] */ 405 eax = MEM32(esi + 0x8); /* 0x361491F3: mov eax, dword ptr [esi + 8] */ 406 edx = MEM32(esi + 0xC); /* 0x361491F6: mov edx, dword ptr [esi + 0xc] */ 407 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 408 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 409 edx = edx - eax; /* 0x361491F9: sub edx, eax */ 410 _flag_k = FK_CMP; 411 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x361491FB: sar edx, 1 */ 412 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 413 edx = (uint32_t)((int32_t)edx >> 1u); 414 /* cmp edx, 1 */ /* 0x361491FD: cmp edx, 1 */ 415 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 416 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 417 _flag_k = FK_CMP; 418 edi = eax; /* 0x36149200: mov edi, eax */ 419 if (CMP_AE(_flag_a, _flag_b)) goto L_361492B8; /* 0x36149202: jae 0x361492b8 */ 420 L_36149208: 421 ecx = MEM32(esi + 0x4); /* 0x36149208: mov ecx, dword ptr [esi + 4] */ 422 /* test ecx, ecx */ /* 0x3614920B: test ecx, ecx */ 423 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 424 _cf = 0; 425 _flag_k = FK_TEST; 426 if (TEST_Z(_flag_a, _flag_b)) goto L_36149224; /* 0x3614920D: je 0x36149224 */ 427 L_3614920F: 428 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 429 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 430 eax = eax - ecx; /* 0x3614920F: sub eax, ecx */ 431 _flag_k = FK_CMP; 432 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149211: sar eax, 1 */ 433 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 434 eax = (uint32_t)((int32_t)eax >> 1u); 435 /* cmp eax, 1 */ /* 0x36149213: cmp eax, 1 */ 436 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 437 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 438 _flag_k = FK_CMP; 439 if (CMP_BE(_flag_a, _flag_b)) goto L_36149224; /* 0x36149216: jbe 0x36149224 */ 440 L_36149218: 441 ecx = esi; /* 0x36149218: mov ecx, esi */ 442 RECOMP_ICALL(0x36140430u); /* 0x3614921A: call 0x36140430 */ /* not lifted */ 443 RECOMP_FLAGS_IN(); 444 MEM32(ebp + (-0x10)) = eax; /* 0x3614921F: mov dword ptr [ebp - 0x10], eax */ 445 goto L_3614922B; /* 0x36149222: jmp 0x3614922b */ 446 L_36149224: 447 MEM32(ebp + (-0x10)) = 1; /* 0x36149224: mov dword ptr [ebp - 0x10], 1 */ 448 L_3614922B: 449 ecx = esi; /* 0x3614922B: mov ecx, esi */ 450 RECOMP_ICALL(0x36140430u); /* 0x3614922D: call 0x36140430 */ /* not lifted */ 451 RECOMP_FLAGS_IN(); 452 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 453 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 454 eax = eax + MEM32(ebp + (-0x10)); /* 0x36149232: add eax, dword ptr [ebp - 0x10] */ 455 _flag_k = FK_ADD; 456 MEM32(ebp + (-0x18)) = eax; /* 0x36149235: mov dword ptr [ebp - 0x18], eax */ 457 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_3614923C; /* 0x36149238: jns 0x3614923c */ 458 L_3614923A: 459 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 460 eax = 0; /* 0x3614923A: xor eax, eax */ 461 _cf = 0; 462 _flag_k = FK_TEST; 463 L_3614923C: 464 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 465 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 466 eax = eax + eax; /* 0x3614923C: add eax, eax */ 467 _flag_k = FK_ADD; 468 PUSH32(esp, eax); /* 0x3614923E: push eax */ 469 RECOMP_ICALL(0x3615FD6Au); /* 0x3614923F: call 0x3615fd6a */ /* not lifted */ 470 RECOMP_FLAGS_IN(); 471 ecx = MEM32(esi + 0x4); /* 0x36149244: mov ecx, dword ptr [esi + 4] */ 472 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 473 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 474 esp = esp + 4; /* 0x36149247: add esp, 4 */ 475 _flag_k = FK_ADD; 476 PUSH32(esp, eax); /* 0x3614924A: push eax */ 477 PUSH32(esp, edi); /* 0x3614924B: push edi */ 478 PUSH32(esp, ecx); /* 0x3614924C: push ecx */ 479 ecx = esi; /* 0x3614924D: mov ecx, esi */ 480 MEM32(ebp + (-0x2C)) = eax; /* 0x3614924F: mov dword ptr [ebp - 0x2c], eax */ 481 RECOMP_ICALL(0x36140900u); /* 0x36149252: call 0x36140900 */ /* not lifted */ 482 RECOMP_FLAGS_IN(); 483 edx = ebp + (-0x1E); /* 0x36149257: lea edx, [ebp - 0x1e] */ 484 PUSH32(esp, edx); /* 0x3614925A: push edx */ 485 PUSH32(esp, 1); /* 0x3614925B: push 1 */ 486 PUSH32(esp, eax); /* 0x3614925D: push eax */ 487 ecx = esi; /* 0x3614925E: mov ecx, esi */ 488 MEM32(ebp + (-0x10)) = eax; /* 0x36149260: mov dword ptr [ebp - 0x10], eax */ 489 RECOMP_ICALL(0x3614A1F0u); /* 0x36149263: call 0x3614a1f0 */ /* not lifted */ 490 RECOMP_FLAGS_IN(); 491 eax = MEM32(ebp + (-0x10)); /* 0x36149268: mov eax, dword ptr [ebp - 0x10] */ 492 ecx = MEM32(esi + 0x8); /* 0x3614926B: mov ecx, dword ptr [esi + 8] */ 493 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 494 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 495 eax = eax + 2; /* 0x3614926E: add eax, 2 */ 496 _flag_k = FK_ADD; 497 PUSH32(esp, eax); /* 0x36149271: push eax */ 498 PUSH32(esp, ecx); /* 0x36149272: push ecx */ 499 PUSH32(esp, edi); /* 0x36149273: push edi */ 500 ecx = esi; /* 0x36149274: mov ecx, esi */ 501 RECOMP_ICALL(0x36140900u); /* 0x36149276: call 0x36140900 */ /* not lifted */ 502 RECOMP_FLAGS_IN(); 503 edx = MEM32(esi + 0x8); /* 0x3614927B: mov edx, dword ptr [esi + 8] */ 504 eax = MEM32(esi + 0x4); /* 0x3614927E: mov eax, dword ptr [esi + 4] */ 505 PUSH32(esp, edx); /* 0x36149281: push edx */ 506 PUSH32(esp, eax); /* 0x36149282: push eax */ 507 ecx = esi; /* 0x36149283: mov ecx, esi */ 508 RECOMP_ICALL(0x3610ED60u); /* 0x36149285: call 0x3610ed60 */ /* not lifted */ 509 RECOMP_FLAGS_IN(); 510 eax = MEM32(esi + 0x4); /* 0x3614928A: mov eax, dword ptr [esi + 4] */ 511 PUSH32(esp, eax); /* 0x3614928D: push eax */ 512 RECOMP_ICALL(0x3615FCC4u); /* 0x3614928E: call 0x3615fcc4 */ /* not lifted */ 513 RECOMP_FLAGS_IN(); 514 ecx = MEM32(ebp + (-0x18)); /* 0x36149293: mov ecx, dword ptr [ebp - 0x18] */ 515 edi = MEM32(ebp + (-0x2C)); /* 0x36149296: mov edi, dword ptr [ebp - 0x2c] */ 516 edx = edi + ecx * 2; /* 0x36149299: lea edx, [edi + ecx*2] */ 517 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 518 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 519 esp = esp + 4; /* 0x3614929C: add esp, 4 */ 520 _flag_k = FK_ADD; 521 ecx = esi; /* 0x3614929F: mov ecx, esi */ 522 MEM32(esi + 0xC) = edx; /* 0x361492A1: mov dword ptr [esi + 0xc], edx */ 523 RECOMP_ICALL(0x36140430u); /* 0x361492A4: call 0x36140430 */ /* not lifted */ 524 RECOMP_FLAGS_IN(); 525 eax = edi + eax * 2 + 0x2; /* 0x361492A9: lea eax, [edi + eax*2 + 2] */ 526 MEM32(esi + 0x8) = eax; /* 0x361492AD: mov dword ptr [esi + 8], eax */ 527 MEM32(esi + 0x4) = edi; /* 0x361492B0: mov dword ptr [esi + 4], edi */ 528 goto L_36149348; /* 0x361492B3: jmp 0x36149348 */ 529 L_361492B8: 530 ecx = eax; /* 0x361492B8: mov ecx, eax */ 531 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 532 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 533 ecx = ecx - edi; /* 0x361492BA: sub ecx, edi */ 534 _flag_k = FK_CMP; 535 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492BC: sar ecx, 1 */ 536 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 537 ecx = (uint32_t)((int32_t)ecx >> 1u); 538 /* cmp ecx, 1 */ /* 0x361492BE: cmp ecx, 1 */ 539 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 540 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 541 _flag_k = FK_CMP; 542 if (CMP_AE(_flag_a, _flag_b)) goto L_36149304; /* 0x361492C1: jae 0x36149304 */ 543 L_361492C3: 544 ecx = edi + 0x2; /* 0x361492C3: lea ecx, [edi + 2] */ 545 PUSH32(esp, ecx); /* 0x361492C6: push ecx */ 546 PUSH32(esp, eax); /* 0x361492C7: push eax */ 547 PUSH32(esp, edi); /* 0x361492C8: push edi */ 548 ecx = esi; /* 0x361492C9: mov ecx, esi */ 549 RECOMP_ICALL(0x36140900u); /* 0x361492CB: call 0x36140900 */ /* not lifted */ 550 RECOMP_FLAGS_IN(); 551 eax = MEM32(esi + 0x8); /* 0x361492D0: mov eax, dword ptr [esi + 8] */ 552 ecx = eax; /* 0x361492D3: mov ecx, eax */ 553 edx = ebp + (-0x1E); /* 0x361492D5: lea edx, [ebp - 0x1e] */ 554 PUSH32(esp, edx); /* 0x361492D8: push edx */ 555 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 556 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 557 ecx = ecx - edi; /* 0x361492D9: sub ecx, edi */ 558 _flag_k = FK_CMP; 559 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492DB: sar ecx, 1 */ 560 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 561 ecx = (uint32_t)((int32_t)ecx >> 1u); 562 edx = 1; /* 0x361492DD: mov edx, 1 */ 563 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 564 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 565 edx = edx - ecx; /* 0x361492E2: sub edx, ecx */ 566 _flag_k = FK_CMP; 567 PUSH32(esp, edx); /* 0x361492E4: push edx */ 568 PUSH32(esp, eax); /* 0x361492E5: push eax */ 569 ecx = esi; /* 0x361492E6: mov ecx, esi */ 570 RECOMP_ICALL(0x3614A1F0u); /* 0x361492E8: call 0x3614a1f0 */ /* not lifted */ 571 RECOMP_FLAGS_IN(); 572 eax = MEM32(esi + 0x8); /* 0x361492ED: mov eax, dword ptr [esi + 8] */ 573 /* cmp edi, eax */ /* 0x361492F0: cmp edi, eax */ 574 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 575 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 576 _flag_k = FK_CMP; 577 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x361492F2: je 0x36149344 */ 578 L_361492F4: 579 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x361492F4: mov cx, word ptr [ebp - 0x1e] */ 580 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x361492F8: mov word ptr [edi], cx */ 581 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 582 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 583 edi = edi + 2; /* 0x361492FB: add edi, 2 */ 584 _flag_k = FK_ADD; 585 /* cmp edi, eax */ /* 0x361492FE: cmp edi, eax */ 586 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 587 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 588 _flag_k = FK_CMP; 589 RECOMP_BACKEDGE(); 590 if (CMP_NE(_flag_a, _flag_b)) goto L_361492F4; /* 0x36149300: jne 0x361492f4 */ 591 L_36149302: 592 goto L_36149344; /* 0x36149302: jmp 0x36149344 */ 593 L_36149304: 594 PUSH32(esp, eax); /* 0x36149304: push eax */ 595 ecx = eax + (-0x2); /* 0x36149305: lea ecx, [eax - 2] */ 596 PUSH32(esp, eax); /* 0x36149308: push eax */ 597 MEM32(ebp + (-0x18)) = ecx; /* 0x36149309: mov dword ptr [ebp - 0x18], ecx */ 598 PUSH32(esp, ecx); /* 0x3614930C: push ecx */ 599 ecx = esi; /* 0x3614930D: mov ecx, esi */ 600 RECOMP_ICALL(0x36140900u); /* 0x3614930F: call 0x36140900 */ /* not lifted */ 601 RECOMP_FLAGS_IN(); 602 ecx = MEM32(esi + 0x8); /* 0x36149314: mov ecx, dword ptr [esi + 8] */ 603 eax = ecx + (-0x2); /* 0x36149317: lea eax, [ecx - 2] */ 604 /* cmp edi, eax */ /* 0x3614931A: cmp edi, eax */ 605 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 606 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 607 _flag_k = FK_CMP; 608 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614932F; /* 0x3614931C: je 0x3614932f */ 609 L_3614931E: 610 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x3614931E: mov dx, word ptr [eax - 2] */ 611 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 612 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 613 eax = eax - 2; /* 0x36149322: sub eax, 2 */ 614 _flag_k = FK_CMP; 615 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 616 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 617 ecx = ecx - 2; /* 0x36149325: sub ecx, 2 */ 618 _flag_k = FK_CMP; 619 /* cmp eax, edi */ /* 0x36149328: cmp eax, edi */ 620 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 621 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 622 _flag_k = FK_CMP; 623 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x3614932A: mov word ptr [ecx], dx */ 624 RECOMP_BACKEDGE(); 625 if (CMP_NE(_flag_a, _flag_b)) goto L_3614931E; /* 0x3614932D: jne 0x3614931e */ 626 L_3614932F: 627 eax = edi + 0x2; /* 0x3614932F: lea eax, [edi + 2] */ 628 /* cmp edi, eax */ /* 0x36149332: cmp edi, eax */ 629 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 630 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 631 _flag_k = FK_CMP; 632 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x36149334: je 0x36149344 */ 633 L_36149336: 634 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x36149336: mov cx, word ptr [ebp - 0x1e] */ 635 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x3614933A: mov word ptr [edi], cx */ 636 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 637 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 638 edi = edi + 2; /* 0x3614933D: add edi, 2 */ 639 _flag_k = FK_ADD; 640 /* cmp edi, eax */ /* 0x36149340: cmp edi, eax */ 641 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 643 _flag_k = FK_CMP; 644 RECOMP_BACKEDGE(); 645 if (CMP_NE(_flag_a, _flag_b)) goto L_36149336; /* 0x36149342: jne 0x36149336 */ 646 L_36149344: 647 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 648 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 649 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x36149344: add dword ptr [esi + 8], 2 */ 650 _flag_k = FK_ADD; 651 L_36149348: 652 esi = MEM32(ebx + 0x5C); /* 0x36149348: mov esi, dword ptr [ebx + 0x5c] */ 653 eax = MEM32(esi + 0x8); /* 0x3614934B: mov eax, dword ptr [esi + 8] */ 654 edx = MEM32(esi + 0xC); /* 0x3614934E: mov edx, dword ptr [esi + 0xc] */ 655 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 656 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 657 edx = edx - eax; /* 0x36149351: sub edx, eax */ 658 _flag_k = FK_CMP; 659 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36149353: sar edx, 1 */ 660 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 661 edx = (uint32_t)((int32_t)edx >> 1u); 662 /* cmp edx, 1 */ /* 0x36149355: cmp edx, 1 */ 663 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 664 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 665 _flag_k = FK_CMP; 666 edi = eax; /* 0x36149358: mov edi, eax */ 667 if (CMP_AE(_flag_a, _flag_b)) goto L_36149410; /* 0x3614935A: jae 0x36149410 */ 668 L_36149360: 669 ecx = MEM32(esi + 0x4); /* 0x36149360: mov ecx, dword ptr [esi + 4] */ 670 /* test ecx, ecx */ /* 0x36149363: test ecx, ecx */ 671 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 672 _cf = 0; 673 _flag_k = FK_TEST; 674 if (TEST_Z(_flag_a, _flag_b)) goto L_3614937C; /* 0x36149365: je 0x3614937c */ 675 L_36149367: 676 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 677 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 678 eax = eax - ecx; /* 0x36149367: sub eax, ecx */ 679 _flag_k = FK_CMP; 680 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149369: sar eax, 1 */ 681 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 682 eax = (uint32_t)((int32_t)eax >> 1u); 683 /* cmp eax, 1 */ /* 0x3614936B: cmp eax, 1 */ 684 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 685 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 686 _flag_k = FK_CMP; 687 if (CMP_BE(_flag_a, _flag_b)) goto L_3614937C; /* 0x3614936E: jbe 0x3614937c */ 688 L_36149370: 689 ecx = esi; /* 0x36149370: mov ecx, esi */ 690 RECOMP_ICALL(0x36140430u); /* 0x36149372: call 0x36140430 */ /* not lifted */ 691 RECOMP_FLAGS_IN(); 692 MEM32(ebp + (-0x10)) = eax; /* 0x36149377: mov dword ptr [ebp - 0x10], eax */ 693 goto L_36149383; /* 0x3614937A: jmp 0x36149383 */ 694 L_3614937C: 695 MEM32(ebp + (-0x10)) = 1; /* 0x3614937C: mov dword ptr [ebp - 0x10], 1 */ 696 L_36149383: 697 ecx = esi; /* 0x36149383: mov ecx, esi */ 698 RECOMP_ICALL(0x36140430u); /* 0x36149385: call 0x36140430 */ /* not lifted */ 699 RECOMP_FLAGS_IN(); 700 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 701 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 702 eax = eax + MEM32(ebp + (-0x10)); /* 0x3614938A: add eax, dword ptr [ebp - 0x10] */ 703 _flag_k = FK_ADD; 704 MEM32(ebp + (-0x10)) = eax; /* 0x3614938D: mov dword ptr [ebp - 0x10], eax */ 705 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149394; /* 0x36149390: jns 0x36149394 */ 706 L_36149392: 707 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 708 eax = 0; /* 0x36149392: xor eax, eax */ 709 _cf = 0; 710 _flag_k = FK_TEST; 711 L_36149394: 712 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 713 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 714 eax = eax + eax; /* 0x36149394: add eax, eax */ 715 _flag_k = FK_ADD; 716 PUSH32(esp, eax); /* 0x36149396: push eax */ 717 RECOMP_ICALL(0x3615FD6Au); /* 0x36149397: call 0x3615fd6a */ /* not lifted */ 718 RECOMP_FLAGS_IN(); 719 ecx = MEM32(esi + 0x4); /* 0x3614939C: mov ecx, dword ptr [esi + 4] */ 720 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 721 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 722 esp = esp + 4; /* 0x3614939F: add esp, 4 */ 723 _flag_k = FK_ADD; 724 PUSH32(esp, eax); /* 0x361493A2: push eax */ 725 PUSH32(esp, edi); /* 0x361493A3: push edi */ 726 PUSH32(esp, ecx); /* 0x361493A4: push ecx */ 727 ecx = esi; /* 0x361493A5: mov ecx, esi */ 728 MEM32(ebp + (-0x2C)) = eax; /* 0x361493A7: mov dword ptr [ebp - 0x2c], eax */ 729 RECOMP_ICALL(0x36140900u); /* 0x361493AA: call 0x36140900 */ /* not lifted */ 730 RECOMP_FLAGS_IN(); 731 edx = ebp + (-0x26); /* 0x361493AF: lea edx, [ebp - 0x26] */ 732 PUSH32(esp, edx); /* 0x361493B2: push edx */ 733 PUSH32(esp, 1); /* 0x361493B3: push 1 */ 734 PUSH32(esp, eax); /* 0x361493B5: push eax */ 735 ecx = esi; /* 0x361493B6: mov ecx, esi */ 736 MEM32(ebp + (-0x18)) = eax; /* 0x361493B8: mov dword ptr [ebp - 0x18], eax */ 737 RECOMP_ICALL(0x3614A1F0u); /* 0x361493BB: call 0x3614a1f0 */ /* not lifted */ 738 RECOMP_FLAGS_IN(); 739 eax = MEM32(ebp + (-0x18)); /* 0x361493C0: mov eax, dword ptr [ebp - 0x18] */ 740 ecx = MEM32(esi + 0x8); /* 0x361493C3: mov ecx, dword ptr [esi + 8] */ 741 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 742 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 743 eax = eax + 2; /* 0x361493C6: add eax, 2 */ 744 _flag_k = FK_ADD; 745 PUSH32(esp, eax); /* 0x361493C9: push eax */ 746 PUSH32(esp, ecx); /* 0x361493CA: push ecx */ 747 PUSH32(esp, edi); /* 0x361493CB: push edi */ 748 ecx = esi; /* 0x361493CC: mov ecx, esi */ 749 RECOMP_ICALL(0x36140900u); /* 0x361493CE: call 0x36140900 */ /* not lifted */ 750 RECOMP_FLAGS_IN(); 751 edx = MEM32(esi + 0x8); /* 0x361493D3: mov edx, dword ptr [esi + 8] */ 752 eax = MEM32(esi + 0x4); /* 0x361493D6: mov eax, dword ptr [esi + 4] */ 753 PUSH32(esp, edx); /* 0x361493D9: push edx */ 754 PUSH32(esp, eax); /* 0x361493DA: push eax */ 755 ecx = esi; /* 0x361493DB: mov ecx, esi */ 756 RECOMP_ICALL(0x3610ED60u); /* 0x361493DD: call 0x3610ed60 */ /* not lifted */ 757 RECOMP_FLAGS_IN(); 758 eax = MEM32(esi + 0x4); /* 0x361493E2: mov eax, dword ptr [esi + 4] */ 759 PUSH32(esp, eax); /* 0x361493E5: push eax */ 760 RECOMP_ICALL(0x3615FCC4u); /* 0x361493E6: call 0x3615fcc4 */ /* not lifted */ 761 RECOMP_FLAGS_IN(); 762 ecx = MEM32(ebp + (-0x10)); /* 0x361493EB: mov ecx, dword ptr [ebp - 0x10] */ 763 edi = MEM32(ebp + (-0x2C)); /* 0x361493EE: mov edi, dword ptr [ebp - 0x2c] */ 764 edx = edi + ecx * 2; /* 0x361493F1: lea edx, [edi + ecx*2] */ 765 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 766 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 767 esp = esp + 4; /* 0x361493F4: add esp, 4 */ 768 _flag_k = FK_ADD; 769 ecx = esi; /* 0x361493F7: mov ecx, esi */ 770 MEM32(esi + 0xC) = edx; /* 0x361493F9: mov dword ptr [esi + 0xc], edx */ 771 RECOMP_ICALL(0x36140430u); /* 0x361493FC: call 0x36140430 */ /* not lifted */ 772 RECOMP_FLAGS_IN(); 773 eax = edi + eax * 2 + 0x2; /* 0x36149401: lea eax, [edi + eax*2 + 2] */ 774 MEM32(esi + 0x8) = eax; /* 0x36149405: mov dword ptr [esi + 8], eax */ 775 MEM32(esi + 0x4) = edi; /* 0x36149408: mov dword ptr [esi + 4], edi */ 776 goto L_361494A0; /* 0x3614940B: jmp 0x361494a0 */ 777 L_36149410: 778 ecx = eax; /* 0x36149410: mov ecx, eax */ 779 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 780 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 781 ecx = ecx - edi; /* 0x36149412: sub ecx, edi */ 782 _flag_k = FK_CMP; 783 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149414: sar ecx, 1 */ 784 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 785 ecx = (uint32_t)((int32_t)ecx >> 1u); 786 /* cmp ecx, 1 */ /* 0x36149416: cmp ecx, 1 */ 787 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 788 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 789 _flag_k = FK_CMP; 790 if (CMP_AE(_flag_a, _flag_b)) goto L_3614945C; /* 0x36149419: jae 0x3614945c */ 791 L_3614941B: 792 ecx = edi + 0x2; /* 0x3614941B: lea ecx, [edi + 2] */ 793 PUSH32(esp, ecx); /* 0x3614941E: push ecx */ 794 PUSH32(esp, eax); /* 0x3614941F: push eax */ 795 PUSH32(esp, edi); /* 0x36149420: push edi */ 796 ecx = esi; /* 0x36149421: mov ecx, esi */ 797 RECOMP_ICALL(0x36140900u); /* 0x36149423: call 0x36140900 */ /* not lifted */ 798 RECOMP_FLAGS_IN(); 799 eax = MEM32(esi + 0x8); /* 0x36149428: mov eax, dword ptr [esi + 8] */ 800 ecx = eax; /* 0x3614942B: mov ecx, eax */ 801 edx = ebp + (-0x26); /* 0x3614942D: lea edx, [ebp - 0x26] */ 802 PUSH32(esp, edx); /* 0x36149430: push edx */ 803 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 804 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 805 ecx = ecx - edi; /* 0x36149431: sub ecx, edi */ 806 _flag_k = FK_CMP; 807 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149433: sar ecx, 1 */ 808 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 809 ecx = (uint32_t)((int32_t)ecx >> 1u); 810 edx = 1; /* 0x36149435: mov edx, 1 */ 811 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 812 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 813 edx = edx - ecx; /* 0x3614943A: sub edx, ecx */ 814 _flag_k = FK_CMP; 815 PUSH32(esp, edx); /* 0x3614943C: push edx */ 816 PUSH32(esp, eax); /* 0x3614943D: push eax */ 817 ecx = esi; /* 0x3614943E: mov ecx, esi */ 818 RECOMP_ICALL(0x3614A1F0u); /* 0x36149440: call 0x3614a1f0 */ /* not lifted */ 819 RECOMP_FLAGS_IN(); 820 eax = MEM32(esi + 0x8); /* 0x36149445: mov eax, dword ptr [esi + 8] */ 821 /* cmp edi, eax */ /* 0x36149448: cmp edi, eax */ 822 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 824 _flag_k = FK_CMP; 825 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614944A: je 0x3614949c */ 826 L_3614944C: 827 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614944C: mov cx, word ptr [ebp - 0x26] */ 828 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149450: mov word ptr [edi], cx */ 829 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 830 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 831 edi = edi + 2; /* 0x36149453: add edi, 2 */ 832 _flag_k = FK_ADD; 833 /* cmp edi, eax */ /* 0x36149456: cmp edi, eax */ 834 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 835 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 836 _flag_k = FK_CMP; 837 RECOMP_BACKEDGE(); 838 if (CMP_NE(_flag_a, _flag_b)) goto L_3614944C; /* 0x36149458: jne 0x3614944c */ 839 L_3614945A: 840 goto L_3614949C; /* 0x3614945A: jmp 0x3614949c */ 841 L_3614945C: 842 PUSH32(esp, eax); /* 0x3614945C: push eax */ 843 ecx = eax + (-0x2); /* 0x3614945D: lea ecx, [eax - 2] */ 844 PUSH32(esp, eax); /* 0x36149460: push eax */ 845 MEM32(ebp + (-0x18)) = ecx; /* 0x36149461: mov dword ptr [ebp - 0x18], ecx */ 846 PUSH32(esp, ecx); /* 0x36149464: push ecx */ 847 ecx = esi; /* 0x36149465: mov ecx, esi */ 848 RECOMP_ICALL(0x36140900u); /* 0x36149467: call 0x36140900 */ /* not lifted */ 849 RECOMP_FLAGS_IN(); 850 ecx = MEM32(esi + 0x8); /* 0x3614946C: mov ecx, dword ptr [esi + 8] */ 851 eax = ecx + (-0x2); /* 0x3614946F: lea eax, [ecx - 2] */ 852 /* cmp edi, eax */ /* 0x36149472: cmp edi, eax */ 853 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 854 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 855 _flag_k = FK_CMP; 856 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149487; /* 0x36149474: je 0x36149487 */ 857 L_36149476: 858 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x36149476: mov dx, word ptr [eax - 2] */ 859 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 860 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 861 eax = eax - 2; /* 0x3614947A: sub eax, 2 */ 862 _flag_k = FK_CMP; 863 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 865 ecx = ecx - 2; /* 0x3614947D: sub ecx, 2 */ 866 _flag_k = FK_CMP; 867 /* cmp eax, edi */ /* 0x36149480: cmp eax, edi */ 868 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 869 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 870 _flag_k = FK_CMP; 871 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x36149482: mov word ptr [ecx], dx */ 872 RECOMP_BACKEDGE(); 873 if (CMP_NE(_flag_a, _flag_b)) goto L_36149476; /* 0x36149485: jne 0x36149476 */ 874 L_36149487: 875 eax = edi + 0x2; /* 0x36149487: lea eax, [edi + 2] */ 876 /* cmp edi, eax */ /* 0x3614948A: cmp edi, eax */ 877 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 878 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 879 _flag_k = FK_CMP; 880 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614948C: je 0x3614949c */ 881 L_3614948E: 882 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614948E: mov cx, word ptr [ebp - 0x26] */ 883 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149492: mov word ptr [edi], cx */ 884 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 885 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 886 edi = edi + 2; /* 0x36149495: add edi, 2 */ 887 _flag_k = FK_ADD; 888 /* cmp edi, eax */ /* 0x36149498: cmp edi, eax */ 889 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 890 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 891 _flag_k = FK_CMP; 892 RECOMP_BACKEDGE(); 893 if (CMP_NE(_flag_a, _flag_b)) goto L_3614948E; /* 0x3614949A: jne 0x3614948e */ 894 L_3614949C: 895 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 896 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 897 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x3614949C: add dword ptr [esi + 8], 2 */ 898 _flag_k = FK_ADD; 899 L_361494A0: 900 eax = MEM32(ebp + (-0x14)); /* 0x361494A0: mov eax, dword ptr [ebp - 0x14] */ 901 edx = MEM32(ebp + (-0x64)); /* 0x361494A3: mov edx, dword ptr [ebp - 0x64] */ 902 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 903 eax = eax + 1; /* 0x361494A6: inc eax */ 904 _flag_k = FK_INC; 905 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 906 edx = edx & 0xFFu; /* 0x361494A7: and edx, 0xff */ 907 _cf = 0; 908 _flag_k = FK_TEST; 909 /* cmp eax, edx */ /* 0x361494AD: cmp eax, edx */ 910 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 911 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 912 _flag_k = FK_CMP; 913 MEM32(ebp + (-0x14)) = eax; /* 0x361494AF: mov dword ptr [ebp - 0x14], eax */ 914 RECOMP_BACKEDGE(); 915 if (CMP_B(_flag_a, _flag_b)) goto L_361491D9; /* 0x361494B2: jb 0x361491d9 */ 916 L_361494B8: 917 SET_LO8(eax, MEM8(ebp + (-0x4C))); /* 0x361494B8: mov al, byte ptr [ebp - 0x4c] */ 918 /* test LO8(eax), LO8(eax) */ /* 0x361494BB: test al, al */ 919 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 920 _cf = 0; 921 _flag_k = FK_NARROW(FK_TEST, 24); 922 MEM32(ebp + (-0x10)) = 0; /* 0x361494BD: mov dword ptr [ebp - 0x10], 0 */ 923 if (TEST_Z(_flag_a, _flag_b)) goto L_361496AB; /* 0x361494C4: jbe 0x361496ab */ 924 L_361494CA: 925 ecx = ebp + (-0x84); /* 0x361494CA: lea ecx, [ebp - 0x84] */ 926 RECOMP_ICALL(0x3602F750u); /* 0x361494D0: call 0x3602f750 */ /* not lifted */ 927 RECOMP_FLAGS_IN(); 928 ecx = MEM32(ebp + 0x8); /* 0x361494D5: mov ecx, dword ptr [ebp + 8] */ 929 eax = ebp + (-0x84); /* 0x361494D8: lea eax, [ebp - 0x84] */ 930 PUSH32(esp, eax); /* 0x361494DE: push eax */ 931 PUSH32(esp, ecx); /* 0x361494DF: push ecx */ 932 MEM32(ebp + (-0x4)) = 0; /* 0x361494E0: mov dword ptr [ebp - 4], 0 */ 933 RECOMP_ICALL(0x3602F810u); /* 0x361494E7: call 0x3602f810 */ /* not lifted */ 934 RECOMP_FLAGS_IN(); 935 esi = MEM32(ebx + 0x50); /* 0x361494EC: mov esi, dword ptr [ebx + 0x50] */ 936 ecx = MEM32(esi + 0x8); /* 0x361494EF: mov ecx, dword ptr [esi + 8] */ 937 edx = MEM32(esi + 0xC); /* 0x361494F2: mov edx, dword ptr [esi + 0xc] */ 938 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 939 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 940 edx = edx - ecx; /* 0x361494F5: sub edx, ecx */ 941 _flag_k = FK_CMP; 942 eax = 0x66666667u; /* 0x361494F7: mov eax, 0x66666667 */ 943 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361494FC: imul edx */ 944 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 945 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 946 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361494FE: sar edx, 3 */ 947 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 948 edx = (uint32_t)((int32_t)edx >> 3u); 949 eax = edx; /* 0x36149501: mov eax, edx */ 950 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149503: shr eax, 0x1f */ 951 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 952 eax = eax >> 31u; /* 0x36149503: shr eax, 0x1f */ 953 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 954 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 955 edx = edx + eax; /* 0x36149506: add edx, eax */ 956 _flag_k = FK_ADD; 957 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 958 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 959 esp = esp + 8; /* 0x36149508: add esp, 8 */ 960 _flag_k = FK_ADD; 961 /* cmp edx, 1 */ /* 0x3614950B: cmp edx, 1 */ 962 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 963 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 964 _flag_k = FK_CMP; 965 edi = ecx; /* 0x3614950E: mov edi, ecx */ 966 if (CMP_AE(_flag_a, _flag_b)) goto L_361495E2; /* 0x36149510: jae 0x361495e2 */ 967 L_36149516: 968 eax = MEM32(esi + 0x4); /* 0x36149516: mov eax, dword ptr [esi + 4] */ 969 /* test eax, eax */ /* 0x36149519: test eax, eax */ 970 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 971 _cf = 0; 972 _flag_k = FK_TEST; 973 if (TEST_Z(_flag_a, _flag_b)) goto L_36149541; /* 0x3614951B: je 0x36149541 */ 974 L_3614951D: 975 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 976 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 977 ecx = ecx - eax; /* 0x3614951D: sub ecx, eax */ 978 _flag_k = FK_CMP; 979 eax = 0x66666667u; /* 0x3614951F: mov eax, 0x66666667 */ 980 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149524: imul ecx */ 981 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 982 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 983 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149526: sar edx, 3 */ 984 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 985 edx = (uint32_t)((int32_t)edx >> 3u); 986 ecx = edx; /* 0x36149529: mov ecx, edx */ 987 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614952B: shr ecx, 0x1f */ 988 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 989 ecx = ecx >> 31u; /* 0x3614952B: shr ecx, 0x1f */ 990 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 991 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 992 edx = edx + ecx; /* 0x3614952E: add edx, ecx */ 993 _flag_k = FK_ADD; 994 /* cmp edx, 1 */ /* 0x36149530: cmp edx, 1 */ 995 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 996 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 997 _flag_k = FK_CMP; 998 if (CMP_BE(_flag_a, _flag_b)) goto L_36149541; /* 0x36149533: jbe 0x36149541 */ 999 L_36149535: 1000 ecx = esi; /* 0x36149535: mov ecx, esi */ 1001 RECOMP_ICALL(0x36149DC0u); /* 0x36149537: call 0x36149dc0 */ /* not lifted */ 1002 RECOMP_FLAGS_IN(); 1003 MEM32(ebp + (-0x14)) = eax; /* 0x3614953C: mov dword ptr [ebp - 0x14], eax */ 1004 goto L_36149548; /* 0x3614953F: jmp 0x36149548 */ 1005 L_36149541: 1006 MEM32(ebp + (-0x14)) = 1; /* 0x36149541: mov dword ptr [ebp - 0x14], 1 */ 1007 L_36149548: 1008 ecx = esi; /* 0x36149548: mov ecx, esi */ 1009 RECOMP_ICALL(0x36149DC0u); /* 0x3614954A: call 0x36149dc0 */ /* not lifted */ 1010 RECOMP_FLAGS_IN(); 1011 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 1012 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1013 eax = eax + MEM32(ebp + (-0x14)); /* 0x3614954F: add eax, dword ptr [ebp - 0x14] */ 1014 _flag_k = FK_ADD; 1015 MEM32(ebp + (-0x2C)) = eax; /* 0x36149552: mov dword ptr [ebp - 0x2c], eax */ 1016 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149559; /* 0x36149555: jns 0x36149559 */ 1017 L_36149557: 1018 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1019 eax = 0; /* 0x36149557: xor eax, eax */ 1020 _cf = 0; 1021 _flag_k = FK_TEST; 1022 L_36149559: 1023 edx = eax + eax * 4; /* 0x36149559: lea edx, [eax + eax*4] */ 1024 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614955C: shl edx, 2 */ 1025 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1026 edx = edx << 2u; /* 0x3614955C: shl edx, 2 */ 1027 PUSH32(esp, edx); /* 0x3614955F: push edx */ 1028 RECOMP_ICALL(0x3615FD6Au); /* 0x36149560: call 0x3615fd6a */ /* not lifted */ 1029 RECOMP_FLAGS_IN(); 1030 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1031 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1032 esp = esp + 4; /* 0x36149565: add esp, 4 */ 1033 _flag_k = FK_ADD; 1034 PUSH32(esp, eax); /* 0x36149568: push eax */ 1035 MEM32(ebp + (-0x14)) = eax; /* 0x36149569: mov dword ptr [ebp - 0x14], eax */ 1036 eax = MEM32(esi + 0x4); /* 0x3614956C: mov eax, dword ptr [esi + 4] */ 1037 PUSH32(esp, edi); /* 0x3614956F: push edi */ 1038 PUSH32(esp, eax); /* 0x36149570: push eax */ 1039 ecx = esi; /* 0x36149571: mov ecx, esi */ 1040 RECOMP_ICALL(0x36149E20u); /* 0x36149573: call 0x36149e20 */ /* not lifted */ 1041 RECOMP_FLAGS_IN(); 1042 ecx = ebp + (-0x84); /* 0x36149578: lea ecx, [ebp - 0x84] */ 1043 PUSH32(esp, ecx); /* 0x3614957E: push ecx */ 1044 PUSH32(esp, 1); /* 0x3614957F: push 1 */ 1045 PUSH32(esp, eax); /* 0x36149581: push eax */ 1046 ecx = esi; /* 0x36149582: mov ecx, esi */ 1047 MEM32(ebp + (-0x18)) = eax; /* 0x36149584: mov dword ptr [ebp - 0x18], eax */ 1048 RECOMP_ICALL(0x3614A190u); /* 0x36149587: call 0x3614a190 */ /* not lifted */ 1049 RECOMP_FLAGS_IN(); 1050 edx = MEM32(ebp + (-0x18)); /* 0x3614958C: mov edx, dword ptr [ebp - 0x18] */ 1051 eax = MEM32(esi + 0x8); /* 0x3614958F: mov eax, dword ptr [esi + 8] */ 1052 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u); 1053 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1054 edx = edx + 0x14u; /* 0x36149592: add edx, 0x14 */ 1055 _flag_k = FK_ADD; 1056 PUSH32(esp, edx); /* 0x36149595: push edx */ 1057 PUSH32(esp, eax); /* 0x36149596: push eax */ 1058 PUSH32(esp, edi); /* 0x36149597: push edi */ 1059 ecx = esi; /* 0x36149598: mov ecx, esi */ 1060 RECOMP_ICALL(0x36149E20u); /* 0x3614959A: call 0x36149e20 */ /* not lifted */ 1061 RECOMP_FLAGS_IN(); 1062 ecx = MEM32(esi + 0x8); /* 0x3614959F: mov ecx, dword ptr [esi + 8] */ 1063 edx = MEM32(esi + 0x4); /* 0x361495A2: mov edx, dword ptr [esi + 4] */ 1064 PUSH32(esp, ecx); /* 0x361495A5: push ecx */ 1065 PUSH32(esp, edx); /* 0x361495A6: push edx */ 1066 ecx = esi; /* 0x361495A7: mov ecx, esi */ 1067 RECOMP_ICALL(0x36149DF0u); /* 0x361495A9: call 0x36149df0 */ /* not lifted */ 1068 RECOMP_FLAGS_IN(); 1069 eax = MEM32(esi + 0x4); /* 0x361495AE: mov eax, dword ptr [esi + 4] */ 1070 PUSH32(esp, eax); /* 0x361495B1: push eax */ 1071 RECOMP_ICALL(0x3615FCC4u); /* 0x361495B2: call 0x3615fcc4 */ /* not lifted */ 1072 RECOMP_FLAGS_IN(); 1073 eax = MEM32(ebp + (-0x2C)); /* 0x361495B7: mov eax, dword ptr [ebp - 0x2c] */ 1074 edi = MEM32(ebp + (-0x14)); /* 0x361495BA: mov edi, dword ptr [ebp - 0x14] */ 1075 eax = eax + eax * 4; /* 0x361495BD: lea eax, [eax + eax*4] */ 1076 ecx = edi + eax * 4; /* 0x361495C0: lea ecx, [edi + eax*4] */ 1077 MEM32(esi + 0xC) = ecx; /* 0x361495C3: mov dword ptr [esi + 0xc], ecx */ 1078 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1079 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1080 esp = esp + 4; /* 0x361495C6: add esp, 4 */ 1081 _flag_k = FK_ADD; 1082 ecx = esi; /* 0x361495C9: mov ecx, esi */ 1083 RECOMP_ICALL(0x36149DC0u); /* 0x361495CB: call 0x36149dc0 */ /* not lifted */ 1084 RECOMP_FLAGS_IN(); 1085 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1086 eax = eax + 1; /* 0x361495D0: inc eax */ 1087 _flag_k = FK_INC; 1088 edx = eax + eax * 4; /* 0x361495D1: lea edx, [eax + eax*4] */ 1089 eax = edi + edx * 4; /* 0x361495D4: lea eax, [edi + edx*4] */ 1090 MEM32(esi + 0x8) = eax; /* 0x361495D7: mov dword ptr [esi + 8], eax */ 1091 MEM32(esi + 0x4) = edi; /* 0x361495DA: mov dword ptr [esi + 4], edi */ 1092 goto L_36149681; /* 0x361495DD: jmp 0x36149681 */ 1093 L_361495E2: 1094 edx = ecx; /* 0x361495E2: mov edx, ecx */ 1095 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 1096 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1097 edx = edx - edi; /* 0x361495E4: sub edx, edi */ 1098 _flag_k = FK_CMP; 1099 eax = 0x66666667u; /* 0x361495E6: mov eax, 0x66666667 */ 1100 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361495EB: imul edx */ 1101 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 1102 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 1103 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361495ED: sar edx, 3 */ 1104 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1105 edx = (uint32_t)((int32_t)edx >> 3u); 1106 eax = edx; /* 0x361495F0: mov eax, edx */ 1107 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361495F2: shr eax, 0x1f */ 1108 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1109 eax = eax >> 31u; /* 0x361495F2: shr eax, 0x1f */ 1110 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1111 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1112 edx = edx + eax; /* 0x361495F5: add edx, eax */ 1113 _flag_k = FK_ADD; 1114 /* cmp edx, 1 */ /* 0x361495F7: cmp edx, 1 */ 1115 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 1116 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1117 _flag_k = FK_CMP; 1118 if (CMP_AE(_flag_a, _flag_b)) goto L_3614964E; /* 0x361495FA: jae 0x3614964e */ 1119 L_361495FC: 1120 edx = edi + 0x14; /* 0x361495FC: lea edx, [edi + 0x14] */ 1121 PUSH32(esp, edx); /* 0x361495FF: push edx */ 1122 PUSH32(esp, ecx); /* 0x36149600: push ecx */ 1123 PUSH32(esp, edi); /* 0x36149601: push edi */ 1124 ecx = esi; /* 0x36149602: mov ecx, esi */ 1125 RECOMP_ICALL(0x36149E20u); /* 0x36149604: call 0x36149e20 */ /* not lifted */ 1126 RECOMP_FLAGS_IN(); 1127 ecx = MEM32(esi + 0x8); /* 0x36149609: mov ecx, dword ptr [esi + 8] */ 1128 eax = ebp + (-0x84); /* 0x3614960C: lea eax, [ebp - 0x84] */ 1129 PUSH32(esp, eax); /* 0x36149612: push eax */ 1130 edx = ecx; /* 0x36149613: mov edx, ecx */ 1131 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 1132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1133 edx = edx - edi; /* 0x36149615: sub edx, edi */ 1134 _flag_k = FK_CMP; 1135 eax = 0x66666667u; /* 0x36149617: mov eax, 0x66666667 */ 1136 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3614961C: imul edx */ 1137 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 1138 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 1139 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3614961E: sar edx, 3 */ 1140 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1141 edx = (uint32_t)((int32_t)edx >> 3u); 1142 eax = edx; /* 0x36149621: mov eax, edx */ 1143 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149623: shr eax, 0x1f */ 1144 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1145 eax = eax >> 31u; /* 0x36149623: shr eax, 0x1f */ 1146 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1147 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1148 edx = edx + eax; /* 0x36149626: add edx, eax */ 1149 _flag_k = FK_ADD; 1150 eax = 1; /* 0x36149628: mov eax, 1 */ 1151 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1152 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1153 eax = eax - edx; /* 0x3614962D: sub eax, edx */ 1154 _flag_k = FK_CMP; 1155 PUSH32(esp, eax); /* 0x3614962F: push eax */ 1156 PUSH32(esp, ecx); /* 0x36149630: push ecx */ 1157 ecx = esi; /* 0x36149631: mov ecx, esi */ 1158 RECOMP_ICALL(0x3614A190u); /* 0x36149633: call 0x3614a190 */ /* not lifted */ 1159 RECOMP_FLAGS_IN(); 1160 edx = MEM32(esi + 0x8); /* 0x36149638: mov edx, dword ptr [esi + 8] */ 1161 ecx = ebp + (-0x84); /* 0x3614963B: lea ecx, [ebp - 0x84] */ 1162 PUSH32(esp, ecx); /* 0x36149641: push ecx */ 1163 PUSH32(esp, edx); /* 0x36149642: push edx */ 1164 PUSH32(esp, edi); /* 0x36149643: push edi */ 1165 RECOMP_ICALL(0x3614A2A0u); /* 0x36149644: call 0x3614a2a0 */ /* not lifted */ 1166 RECOMP_FLAGS_IN(); 1167 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1168 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1169 esp = esp + 0xCu; /* 0x36149649: add esp, 0xc */ 1170 _flag_k = FK_ADD; 1171 goto L_3614967D; /* 0x3614964C: jmp 0x3614967d */ 1172 L_3614964E: 1173 PUSH32(esp, ecx); /* 0x3614964E: push ecx */ 1174 PUSH32(esp, ecx); /* 0x3614964F: push ecx */ 1175 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu); 1176 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1177 ecx = ecx + 0xFFFFFFECu; /* 0x36149650: add ecx, -0x14 */ 1178 _flag_k = FK_ADD; 1179 PUSH32(esp, ecx); /* 0x36149653: push ecx */ 1180 ecx = esi; /* 0x36149654: mov ecx, esi */ 1181 RECOMP_ICALL(0x36149E20u); /* 0x36149656: call 0x36149e20 */ /* not lifted */ 1182 RECOMP_FLAGS_IN(); 1183 eax = MEM32(esi + 0x8); /* 0x3614965B: mov eax, dword ptr [esi + 8] */ 1184 PUSH32(esp, eax); /* 0x3614965E: push eax */ 1185 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu); 1186 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1187 eax = eax + 0xFFFFFFECu; /* 0x3614965F: add eax, -0x14 */ 1188 _flag_k = FK_ADD; 1189 PUSH32(esp, eax); /* 0x36149662: push eax */ 1190 PUSH32(esp, edi); /* 0x36149663: push edi */ 1191 RECOMP_ICALL(0x3614A2D0u); /* 0x36149664: call 0x3614a2d0 */ /* not lifted */ 1192 RECOMP_FLAGS_IN(); 1193 eax = ebp + (-0x84); /* 0x36149669: lea eax, [ebp - 0x84] */ 1194 PUSH32(esp, eax); /* 0x3614966F: push eax */ 1195 ecx = edi + 0x14; /* 0x36149670: lea ecx, [edi + 0x14] */ 1196 PUSH32(esp, ecx); /* 0x36149673: push ecx */ 1197 PUSH32(esp, edi); /* 0x36149674: push edi */ 1198 RECOMP_ICALL(0x3614A2A0u); /* 0x36149675: call 0x3614a2a0 */ /* not lifted */ 1199 RECOMP_FLAGS_IN(); 1200 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 1201 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1202 esp = esp + 0x18u; /* 0x3614967A: add esp, 0x18 */ 1203 _flag_k = FK_ADD; 1204 L_3614967D: 1205 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x14u); 1206 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1207 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x14u; /* 0x3614967D: add dword ptr [esi + 8], 0x14 */ 1208 _flag_k = FK_ADD; 1209 L_36149681: 1210 ecx = ebp + (-0x84); /* 0x36149681: lea ecx, [ebp - 0x84] */ 1211 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149687: mov dword ptr [ebp - 4], 0xffffffff */ 1212 RECOMP_ICALL(0x3602F7D0u); /* 0x3614968E: call 0x3602f7d0 */ /* not lifted */ 1213 RECOMP_FLAGS_IN(); 1214 eax = MEM32(ebp + (-0x10)); /* 0x36149693: mov eax, dword ptr [ebp - 0x10] */ 1215 edx = MEM32(ebp + (-0x4C)); /* 0x36149696: mov edx, dword ptr [ebp - 0x4c] */ 1216 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1217 eax = eax + 1; /* 0x36149699: inc eax */ 1218 _flag_k = FK_INC; 1219 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 1220 edx = edx & 0xFFu; /* 0x3614969A: and edx, 0xff */ 1221 _cf = 0; 1222 _flag_k = FK_TEST; 1223 /* cmp eax, edx */ /* 0x361496A0: cmp eax, edx */ 1224 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1226 _flag_k = FK_CMP; 1227 MEM32(ebp + (-0x10)) = eax; /* 0x361496A2: mov dword ptr [ebp - 0x10], eax */ 1228 RECOMP_BACKEDGE(); 1229 if (CMP_L(_flag_a, _flag_b)) goto L_361494CA; /* 0x361496A5: jl 0x361494ca */ 1230 L_361496AB: 1231 SET_LO8(eax, MEM8(ebp + (-0x50))); /* 0x361496AB: mov al, byte ptr [ebp - 0x50] */ 1232 /* test LO8(eax), LO8(eax) */ /* 0x361496AE: test al, al */ 1233 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1234 _cf = 0; 1235 _flag_k = FK_NARROW(FK_TEST, 24); 1236 MEM32(ebp + (-0x14)) = 0; /* 0x361496B0: mov dword ptr [ebp - 0x14], 0 */ 1237 if (TEST_Z(_flag_a, _flag_b)) goto L_361498AA; /* 0x361496B7: jbe 0x361498aa */ 1238 L_361496BD: 1239 ecx = ebp + (-0xAC); /* 0x361496BD: lea ecx, [ebp - 0xac] */ 1240 RECOMP_ICALL(0x3602F870u); /* 0x361496C3: call 0x3602f870 */ /* not lifted */ 1241 RECOMP_FLAGS_IN(); 1242 ecx = MEM32(ebp + 0x8); /* 0x361496C8: mov ecx, dword ptr [ebp + 8] */ 1243 eax = ebp + (-0xAC); /* 0x361496CB: lea eax, [ebp - 0xac] */ 1244 PUSH32(esp, eax); /* 0x361496D1: push eax */ 1245 PUSH32(esp, ecx); /* 0x361496D2: push ecx */ 1246 MEM32(ebp + (-0x4)) = 1; /* 0x361496D3: mov dword ptr [ebp - 4], 1 */ 1247 RECOMP_ICALL(0x3602F9B0u); /* 0x361496DA: call 0x3602f9b0 */ /* not lifted */ 1248 RECOMP_FLAGS_IN(); 1249 esi = MEM32(ebx + 0x54); /* 0x361496DF: mov esi, dword ptr [ebx + 0x54] */ 1250 ecx = MEM32(esi + 0x8); /* 0x361496E2: mov ecx, dword ptr [esi + 8] */ 1251 edx = MEM32(esi + 0xC); /* 0x361496E5: mov edx, dword ptr [esi + 0xc] */ 1252 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 1253 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1254 edx = edx - ecx; /* 0x361496E8: sub edx, ecx */ 1255 _flag_k = FK_CMP; 1256 MEM32(ebp + (-0x18)) = edx; /* 0x361496EA: mov dword ptr [ebp - 0x18], edx */ 1257 eax = 0x88888889u; /* 0x361496ED: mov eax, 0x88888889 */ 1258 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361496F2: imul edx */ 1259 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 1260 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 1261 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 1262 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1263 edx = edx + MEM32(ebp + (-0x18)); /* 0x361496F4: add edx, dword ptr [ebp - 0x18] */ 1264 _flag_k = FK_ADD; 1265 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361496F7: sar edx, 5 */ 1266 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1267 edx = (uint32_t)((int32_t)edx >> 5u); 1268 eax = edx; /* 0x361496FA: mov eax, edx */ 1269 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361496FC: shr eax, 0x1f */ 1270 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1271 eax = eax >> 31u; /* 0x361496FC: shr eax, 0x1f */ 1272 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1273 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1274 edx = edx + eax; /* 0x361496FF: add edx, eax */ 1275 _flag_k = FK_ADD; 1276 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1277 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1278 esp = esp + 8; /* 0x36149701: add esp, 8 */ 1279 _flag_k = FK_ADD; 1280 /* cmp edx, 1 */ /* 0x36149704: cmp edx, 1 */ 1281 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 1282 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1283 _flag_k = FK_CMP; 1284 edi = ecx; /* 0x36149707: mov edi, ecx */ 1285 if (CMP_AE(_flag_a, _flag_b)) goto L_361497D8; /* 0x36149709: jae 0x361497d8 */ 1286 L_3614970F: 1287 eax = MEM32(esi + 0x4); /* 0x3614970F: mov eax, dword ptr [esi + 4] */ 1288 /* test eax, eax */ /* 0x36149712: test eax, eax */ 1289 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1290 _cf = 0; 1291 _flag_k = FK_TEST; 1292 if (TEST_Z(_flag_a, _flag_b)) goto L_36149732; /* 0x36149714: je 0x36149732 */ 1293 L_36149716: 1294 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1296 ecx = ecx - eax; /* 0x36149716: sub ecx, eax */ 1297 _flag_k = FK_CMP; 1298 eax = 0x88888889u; /* 0x36149718: mov eax, 0x88888889 */ 1299 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3614971D: imul ecx */ 1300 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 1301 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 1302 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 1303 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1304 edx = edx + ecx; /* 0x3614971F: add edx, ecx */ 1305 _flag_k = FK_ADD; 1306 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36149721: sar edx, 5 */ 1307 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1308 edx = (uint32_t)((int32_t)edx >> 5u); 1309 ecx = edx; /* 0x36149724: mov ecx, edx */ 1310 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36149726: shr ecx, 0x1f */ 1311 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1312 ecx = ecx >> 31u; /* 0x36149726: shr ecx, 0x1f */ 1313 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 1314 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1315 edx = edx + ecx; /* 0x36149729: add edx, ecx */ 1316 _flag_k = FK_ADD; 1317 /* cmp edx, 1 */ /* 0x3614972B: cmp edx, 1 */ 1318 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 1319 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1320 _flag_k = FK_CMP; 1321 ebx = edx; /* 0x3614972E: mov ebx, edx */ 1322 if (CMP_A(_flag_a, _flag_b)) goto L_36149737; /* 0x36149730: ja 0x36149737 */ 1323 L_36149732: 1324 ebx = 1; /* 0x36149732: mov ebx, 1 */ 1325 L_36149737: 1326 ecx = esi; /* 0x36149737: mov ecx, esi */ 1327 RECOMP_ICALL(0x36149E90u); /* 0x36149739: call 0x36149e90 */ /* not lifted */ 1328 RECOMP_FLAGS_IN(); 1329 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1330 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1331 eax = eax + ebx; /* 0x3614973E: add eax, ebx */ 1332 _flag_k = FK_ADD; 1333 MEM32(ebp + (-0x2C)) = eax; /* 0x36149740: mov dword ptr [ebp - 0x2c], eax */ 1334 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149747; /* 0x36149743: jns 0x36149747 */ 1335 L_36149745: 1336 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1337 eax = 0; /* 0x36149745: xor eax, eax */ 1338 _cf = 0; 1339 _flag_k = FK_TEST; 1340 L_36149747: 1341 eax = eax + eax * 2; /* 0x36149747: lea eax, [eax + eax*2] */ 1342 edx = eax + eax * 4; /* 0x3614974A: lea edx, [eax + eax*4] */ 1343 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614974D: shl edx, 2 */ 1344 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1345 edx = edx << 2u; /* 0x3614974D: shl edx, 2 */ 1346 PUSH32(esp, edx); /* 0x36149750: push edx */ 1347 RECOMP_ICALL(0x3615FD6Au); /* 0x36149751: call 0x3615fd6a */ /* not lifted */ 1348 RECOMP_FLAGS_IN(); 1349 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1350 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1351 esp = esp + 4; /* 0x36149756: add esp, 4 */ 1352 _flag_k = FK_ADD; 1353 ebx = eax; /* 0x36149759: mov ebx, eax */ 1354 eax = MEM32(esi + 0x4); /* 0x3614975B: mov eax, dword ptr [esi + 4] */ 1355 PUSH32(esp, ebx); /* 0x3614975E: push ebx */ 1356 PUSH32(esp, edi); /* 0x3614975F: push edi */ 1357 PUSH32(esp, eax); /* 0x36149760: push eax */ 1358 ecx = esi; /* 0x36149761: mov ecx, esi */ 1359 RECOMP_ICALL(0x36149EF0u); /* 0x36149763: call 0x36149ef0 */ /* not lifted */ 1360 RECOMP_FLAGS_IN(); 1361 ecx = ebp + (-0xAC); /* 0x36149768: lea ecx, [ebp - 0xac] */ 1362 PUSH32(esp, ecx); /* 0x3614976E: push ecx */ 1363 PUSH32(esp, 1); /* 0x3614976F: push 1 */ 1364 PUSH32(esp, eax); /* 0x36149771: push eax */ 1365 ecx = esi; /* 0x36149772: mov ecx, esi */ 1366 MEM32(ebp + (-0x18)) = eax; /* 0x36149774: mov dword ptr [ebp - 0x18], eax */ 1367 RECOMP_ICALL(0x3614A1C0u); /* 0x36149777: call 0x3614a1c0 */ /* not lifted */ 1368 RECOMP_FLAGS_IN(); 1369 edx = MEM32(ebp + (-0x18)); /* 0x3614977C: mov edx, dword ptr [ebp - 0x18] */ 1370 eax = MEM32(esi + 0x8); /* 0x3614977F: mov eax, dword ptr [esi + 8] */ 1371 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x3Cu); 1372 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1373 edx = edx + 0x3Cu; /* 0x36149782: add edx, 0x3c */ 1374 _flag_k = FK_ADD; 1375 PUSH32(esp, edx); /* 0x36149785: push edx */ 1376 PUSH32(esp, eax); /* 0x36149786: push eax */ 1377 PUSH32(esp, edi); /* 0x36149787: push edi */ 1378 ecx = esi; /* 0x36149788: mov ecx, esi */ 1379 RECOMP_ICALL(0x36149EF0u); /* 0x3614978A: call 0x36149ef0 */ /* not lifted */ 1380 RECOMP_FLAGS_IN(); 1381 ecx = MEM32(esi + 0x8); /* 0x3614978F: mov ecx, dword ptr [esi + 8] */ 1382 edx = MEM32(esi + 0x4); /* 0x36149792: mov edx, dword ptr [esi + 4] */ 1383 PUSH32(esp, ecx); /* 0x36149795: push ecx */ 1384 PUSH32(esp, edx); /* 0x36149796: push edx */ 1385 ecx = esi; /* 0x36149797: mov ecx, esi */ 1386 RECOMP_ICALL(0x36149EC0u); /* 0x36149799: call 0x36149ec0 */ /* not lifted */ 1387 RECOMP_FLAGS_IN(); 1388 eax = MEM32(esi + 0x4); /* 0x3614979E: mov eax, dword ptr [esi + 4] */ 1389 PUSH32(esp, eax); /* 0x361497A1: push eax */ 1390 RECOMP_ICALL(0x3615FCC4u); /* 0x361497A2: call 0x3615fcc4 */ /* not lifted */ 1391 RECOMP_FLAGS_IN(); 1392 eax = MEM32(ebp + (-0x2C)); /* 0x361497A7: mov eax, dword ptr [ebp - 0x2c] */ 1393 eax = eax + eax * 2; /* 0x361497AA: lea eax, [eax + eax*2] */ 1394 eax = eax + eax * 4; /* 0x361497AD: lea eax, [eax + eax*4] */ 1395 ecx = ebx + eax * 4; /* 0x361497B0: lea ecx, [ebx + eax*4] */ 1396 MEM32(esi + 0xC) = ecx; /* 0x361497B3: mov dword ptr [esi + 0xc], ecx */ 1397 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1398 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1399 esp = esp + 4; /* 0x361497B6: add esp, 4 */ 1400 _flag_k = FK_ADD; 1401 ecx = esi; /* 0x361497B9: mov ecx, esi */ 1402 RECOMP_ICALL(0x36149E90u); /* 0x361497BB: call 0x36149e90 */ /* not lifted */ 1403 RECOMP_FLAGS_IN(); 1404 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1405 eax = eax + 1; /* 0x361497C0: inc eax */ 1406 _flag_k = FK_INC; 1407 eax = eax + eax * 2; /* 0x361497C1: lea eax, [eax + eax*2] */ 1408 edx = eax + eax * 4; /* 0x361497C4: lea edx, [eax + eax*4] */ 1409 eax = ebx + edx * 4; /* 0x361497C7: lea eax, [ebx + edx*4] */ 1410 MEM32(esi + 0x4) = ebx; /* 0x361497CA: mov dword ptr [esi + 4], ebx */ 1411 ebx = MEM32(ebp + 0xC); /* 0x361497CD: mov ebx, dword ptr [ebp + 0xc] */ 1412 MEM32(esi + 0x8) = eax; /* 0x361497D0: mov dword ptr [esi + 8], eax */ 1413 goto L_36149880; /* 0x361497D3: jmp 0x36149880 */ 1414 L_361497D8: 1415 edx = ecx; /* 0x361497D8: mov edx, ecx */ 1416 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 1417 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1418 edx = edx - edi; /* 0x361497DA: sub edx, edi */ 1419 _flag_k = FK_CMP; 1420 MEM32(ebp + (-0x18)) = edx; /* 0x361497DC: mov dword ptr [ebp - 0x18], edx */ 1421 eax = 0x88888889u; /* 0x361497DF: mov eax, 0x88888889 */ 1422 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361497E4: imul edx */ 1423 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 1424 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 1425 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 1426 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1427 edx = edx + MEM32(ebp + (-0x18)); /* 0x361497E6: add edx, dword ptr [ebp - 0x18] */ 1428 _flag_k = FK_ADD; 1429 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361497E9: sar edx, 5 */ 1430 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1431 edx = (uint32_t)((int32_t)edx >> 5u); 1432 eax = edx; /* 0x361497EC: mov eax, edx */ 1433 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361497EE: shr eax, 0x1f */ 1434 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1435 eax = eax >> 31u; /* 0x361497EE: shr eax, 0x1f */ 1436 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1437 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1438 edx = edx + eax; /* 0x361497F1: add edx, eax */ 1439 _flag_k = FK_ADD; 1440 /* cmp edx, 1 */ /* 0x361497F3: cmp edx, 1 */ 1441 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 1442 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1443 _flag_k = FK_CMP; 1444 if (CMP_AE(_flag_a, _flag_b)) goto L_3614984D; /* 0x361497F6: jae 0x3614984d */ 1445 L_361497F8: 1446 edx = edi + 0x3C; /* 0x361497F8: lea edx, [edi + 0x3c] */ 1447 PUSH32(esp, edx); /* 0x361497FB: push edx */ 1448 PUSH32(esp, ecx); /* 0x361497FC: push ecx */ 1449 PUSH32(esp, edi); /* 0x361497FD: push edi */ 1450 ecx = esi; /* 0x361497FE: mov ecx, esi */ 1451 RECOMP_ICALL(0x36149EF0u); /* 0x36149800: call 0x36149ef0 */ /* not lifted */ 1452 RECOMP_FLAGS_IN(); 1453 ecx = MEM32(esi + 0x8); /* 0x36149805: mov ecx, dword ptr [esi + 8] */ 1454 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 1455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1456 ecx = ecx - edi; /* 0x36149808: sub ecx, edi */ 1457 _flag_k = FK_CMP; 1458 eax = ebp + (-0xAC); /* 0x3614980A: lea eax, [ebp - 0xac] */ 1459 PUSH32(esp, eax); /* 0x36149810: push eax */ 1460 eax = 0x88888889u; /* 0x36149811: mov eax, 0x88888889 */ 1461 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149816: imul ecx */ 1462 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 1463 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 1464 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 1465 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1466 edx = edx + ecx; /* 0x36149818: add edx, ecx */ 1467 _flag_k = FK_ADD; 1468 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x3614981A: sar edx, 5 */ 1469 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1470 edx = (uint32_t)((int32_t)edx >> 5u); 1471 ecx = edx; /* 0x3614981D: mov ecx, edx */ 1472 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614981F: shr ecx, 0x1f */ 1473 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1474 ecx = ecx >> 31u; /* 0x3614981F: shr ecx, 0x1f */ 1475 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 1476 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1477 edx = edx + ecx; /* 0x36149822: add edx, ecx */ 1478 _flag_k = FK_ADD; 1479 eax = 1; /* 0x36149824: mov eax, 1 */ 1480 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1482 eax = eax - edx; /* 0x36149829: sub eax, edx */ 1483 _flag_k = FK_CMP; 1484 PUSH32(esp, eax); /* 0x3614982B: push eax */ 1485 eax = MEM32(esi + 0x8); /* 0x3614982C: mov eax, dword ptr [esi + 8] */ 1486 PUSH32(esp, eax); /* 0x3614982F: push eax */ 1487 ecx = esi; /* 0x36149830: mov ecx, esi */ 1488 RECOMP_ICALL(0x3614A1C0u); /* 0x36149832: call 0x3614a1c0 */ /* not lifted */ 1489 RECOMP_FLAGS_IN(); 1490 edx = MEM32(esi + 0x8); /* 0x36149837: mov edx, dword ptr [esi + 8] */ 1491 ecx = ebp + (-0xAC); /* 0x3614983A: lea ecx, [ebp - 0xac] */ 1492 PUSH32(esp, ecx); /* 0x36149840: push ecx */ 1493 PUSH32(esp, edx); /* 0x36149841: push edx */ 1494 PUSH32(esp, edi); /* 0x36149842: push edi */ 1495 RECOMP_ICALL(0x3614A360u); /* 0x36149843: call 0x3614a360 */ /* not lifted */ 1496 RECOMP_FLAGS_IN(); 1497 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1498 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1499 esp = esp + 0xCu; /* 0x36149848: add esp, 0xc */ 1500 _flag_k = FK_ADD; 1501 goto L_3614987C; /* 0x3614984B: jmp 0x3614987c */ 1502 L_3614984D: 1503 PUSH32(esp, ecx); /* 0x3614984D: push ecx */ 1504 PUSH32(esp, ecx); /* 0x3614984E: push ecx */ 1505 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC4u); 1506 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1507 ecx = ecx + 0xFFFFFFC4u; /* 0x3614984F: add ecx, -0x3c */ 1508 _flag_k = FK_ADD; 1509 PUSH32(esp, ecx); /* 0x36149852: push ecx */ 1510 ecx = esi; /* 0x36149853: mov ecx, esi */ 1511 RECOMP_ICALL(0x36149EF0u); /* 0x36149855: call 0x36149ef0 */ /* not lifted */ 1512 RECOMP_FLAGS_IN(); 1513 eax = MEM32(esi + 0x8); /* 0x3614985A: mov eax, dword ptr [esi + 8] */ 1514 PUSH32(esp, eax); /* 0x3614985D: push eax */ 1515 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFC4u); 1516 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1517 eax = eax + 0xFFFFFFC4u; /* 0x3614985E: add eax, -0x3c */ 1518 _flag_k = FK_ADD; 1519 PUSH32(esp, eax); /* 0x36149861: push eax */ 1520 PUSH32(esp, edi); /* 0x36149862: push edi */ 1521 RECOMP_ICALL(0x3614A390u); /* 0x36149863: call 0x3614a390 */ /* not lifted */ 1522 RECOMP_FLAGS_IN(); 1523 eax = ebp + (-0xAC); /* 0x36149868: lea eax, [ebp - 0xac] */ 1524 PUSH32(esp, eax); /* 0x3614986E: push eax */ 1525 ecx = edi + 0x3C; /* 0x3614986F: lea ecx, [edi + 0x3c] */ 1526 PUSH32(esp, ecx); /* 0x36149872: push ecx */ 1527 PUSH32(esp, edi); /* 0x36149873: push edi */ 1528 RECOMP_ICALL(0x3614A360u); /* 0x36149874: call 0x3614a360 */ /* not lifted */ 1529 RECOMP_FLAGS_IN(); 1530 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 1531 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1532 esp = esp + 0x18u; /* 0x36149879: add esp, 0x18 */ 1533 _flag_k = FK_ADD; 1534 L_3614987C: 1535 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x3Cu); 1536 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1537 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x3Cu; /* 0x3614987C: add dword ptr [esi + 8], 0x3c */ 1538 _flag_k = FK_ADD; 1539 L_36149880: 1540 ecx = ebp + (-0xAC); /* 0x36149880: lea ecx, [ebp - 0xac] */ 1541 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149886: mov dword ptr [ebp - 4], 0xffffffff */ 1542 RECOMP_ICALL(0x3602F940u); /* 0x3614988D: call 0x3602f940 */ /* not lifted */ 1543 RECOMP_FLAGS_IN(); 1544 eax = MEM32(ebp + (-0x14)); /* 0x36149892: mov eax, dword ptr [ebp - 0x14] */ 1545 edx = MEM32(ebp + (-0x50)); /* 0x36149895: mov edx, dword ptr [ebp - 0x50] */ 1546 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1547 eax = eax + 1; /* 0x36149898: inc eax */ 1548 _flag_k = FK_INC; 1549 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 1550 edx = edx & 0xFFu; /* 0x36149899: and edx, 0xff */ 1551 _cf = 0; 1552 _flag_k = FK_TEST; 1553 /* cmp eax, edx */ /* 0x3614989F: cmp eax, edx */ 1554 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1555 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1556 _flag_k = FK_CMP; 1557 MEM32(ebp + (-0x14)) = eax; /* 0x361498A1: mov dword ptr [ebp - 0x14], eax */ 1558 RECOMP_BACKEDGE(); 1559 if (CMP_L(_flag_a, _flag_b)) goto L_361496BD; /* 0x361498A4: jl 0x361496bd */ 1560 L_361498AA: 1561 esi = MEM32(ebp + 0x8); /* 0x361498AA: mov esi, dword ptr [ebp + 8] */ 1562 ecx = esi; /* 0x361498AD: mov ecx, esi */ 1563 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361498AF: call dword ptr [0x3616fadc] */ 1564 RECOMP_FLAGS_IN(); 1565 /* test eax, eax */ /* 0x361498B5: test eax, eax */ 1566 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1567 _cf = 0; 1568 _flag_k = FK_TEST; 1569 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498F7; /* 0x361498B7: jne 0x361498f7 */ 1570 L_361498B9: 1571 ebx = MEM32(ebx); /* 0x361498B9: mov ebx, dword ptr [ebx] */ 1572 eax = MEM32(ebx + 0x4); /* 0x361498BB: mov eax, dword ptr [ebx + 4] */ 1573 /* test eax, eax */ /* 0x361498BE: test eax, eax */ 1574 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1575 _cf = 0; 1576 _flag_k = FK_TEST; 1577 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498C7; /* 0x361498C0: jne 0x361498c7 */ 1578 L_361498C2: 1579 eax = MEM32(0x3616F10C); /* 0x361498C2: mov eax, dword ptr [0x3616f10c] */ 1580 L_361498C7: 1581 PUSH32(esp, eax); /* 0x361498C7: push eax */ 1582 PUSH32(esp, 0x362E75FCu); /* 0x361498C8: push 0x362e75fc */ 1583 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361498CD: call dword ptr [0x3616f18c] */ 1584 RECOMP_FLAGS_IN(); 1585 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1586 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1587 esp = esp + 8; /* 0x361498D3: add esp, 8 */ 1588 _flag_k = FK_ADD; 1589 PUSH32(esp, 0x362E75CCu); /* 0x361498D6: push 0x362e75cc */ 1590 ecx = ebp + (-0xB4); /* 0x361498DB: lea ecx, [ebp - 0xb4] */ 1591 RECOMP_ICALL(0x36008EF0u); /* 0x361498E1: call 0x36008ef0 */ /* not lifted */ 1592 RECOMP_FLAGS_IN(); 1593 PUSH32(esp, 0x36184170u); /* 0x361498E6: push 0x36184170 */ 1594 eax = ebp + (-0xB4); /* 0x361498EB: lea eax, [ebp - 0xb4] */ 1595 PUSH32(esp, eax); /* 0x361498F1: push eax */ 1596 RECOMP_ICALL(0x3615FD70u); /* 0x361498F2: call 0x3615fd70 */ /* not lifted */ 1597 RECOMP_FLAGS_IN(); 1598 L_361498F7: 1599 ecx = MEM32(ebp + (-0xC)); /* 0x361498F7: mov ecx, dword ptr [ebp - 0xc] */ 1600 edi = POP32_VAL(esp); /* 0x361498FA: pop edi */ 1601 eax = esi; /* 0x361498FB: mov eax, esi */ 1602 esi = POP32_VAL(esp); /* 0x361498FD: pop esi */ 1603 ebx = POP32_VAL(esp); /* 0x361498FE: pop ebx */ 1604 MEM32(FS_BASE + (0)) = ecx; /* 0x361498FF: mov dword ptr fs:[0], ecx */ 1605 esp = ebp; /* 0x36149906: mov esp, ebp */ 1606 ebp = POP32_VAL(esp); /* 0x36149908: pop ebp */ 1607 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149909: ret */ 1608 L_3614990A: 1609 ebx = MEM32(ebx); /* 0x3614990A: mov ebx, dword ptr [ebx] */ 1610 edx = MEM32(ebx + 0x4); /* 0x3614990C: mov edx, dword ptr [ebx + 4] */ 1611 /* test edx, edx */ /* 0x3614990F: test edx, edx */ 1612 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 1613 _cf = 0; 1614 _flag_k = FK_TEST; 1615 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149919; /* 0x36149911: jne 0x36149919 */ 1616 L_36149913: 1617 edx = MEM32(0x3616F10C); /* 0x36149913: mov edx, dword ptr [0x3616f10c] */ 1618 L_36149919: 1619 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 1620 ecx = ecx & 0xFFFFu; /* 0x36149919: and ecx, 0xffff */ 1621 _cf = 0; 1622 _flag_k = FK_TEST; 1623 PUSH32(esp, ecx); /* 0x3614991F: push ecx */ 1624 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 1625 eax = eax & 0xFFFFu; /* 0x36149920: and eax, 0xffff */ 1626 _cf = 0; 1627 _flag_k = FK_TEST; 1628 PUSH32(esp, eax); /* 0x36149925: push eax */ 1629 PUSH32(esp, edx); /* 0x36149926: push edx */ 1630 PUSH32(esp, 0x362E756Cu); /* 0x36149927: push 0x362e756c */ 1631 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x3614992C: call dword ptr [0x3616f18c] */ 1632 RECOMP_FLAGS_IN(); 1633 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1634 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1635 esp = esp + 0x10u; /* 0x36149932: add esp, 0x10 */ 1636 _flag_k = FK_ADD; 1637 PUSH32(esp, 0x362E753Cu); /* 0x36149935: push 0x362e753c */ 1638 ecx = ebp + (-0x1C); /* 0x3614993A: lea ecx, [ebp - 0x1c] */ 1639 RECOMP_ICALL(0x36008EF0u); /* 0x3614993D: call 0x36008ef0 */ /* not lifted */ 1640 RECOMP_FLAGS_IN(); 1641 PUSH32(esp, 0x36184170u); /* 0x36149942: push 0x36184170 */ 1642 ecx = ebp + (-0x1C); /* 0x36149947: lea ecx, [ebp - 0x1c] */ 1643 PUSH32(esp, ecx); /* 0x3614994A: push ecx */ 1644 RECOMP_ICALL(0x3615FD70u); /* 0x3614994B: call 0x3615fd70 */ /* not lifted */ 1645 RECOMP_FLAGS_IN(); 1646 ebx = MEM32(ebx); /* 0x36149950: mov ebx, dword ptr [ebx] */ 1647 edx = MEM32(ebx + 0x4); /* 0x36149952: mov edx, dword ptr [ebx + 4] */ 1648 /* test edx, edx */ /* 0x36149955: test edx, edx */ 1649 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 1650 _cf = 0; 1651 _flag_k = FK_TEST; 1652 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614995F; /* 0x36149957: jne 0x3614995f */ 1653 L_36149959: 1654 edx = MEM32(0x3616F10C); /* 0x36149959: mov edx, dword ptr [0x3616f10c] */ 1655 L_3614995F: 1656 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 1657 eax = eax & 0xFFFFu; /* 0x3614995F: and eax, 0xffff */ 1658 _cf = 0; 1659 _flag_k = FK_TEST; 1660 PUSH32(esp, eax); /* 0x36149964: push eax */ 1661 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 1662 ecx = ecx & 0xFFFFu; /* 0x36149965: and ecx, 0xffff */ 1663 _cf = 0; 1664 _flag_k = FK_TEST; 1665 PUSH32(esp, ecx); /* 0x3614996B: push ecx */ 1666 PUSH32(esp, edx); /* 0x3614996C: push edx */ 1667 PUSH32(esp, 0x362E74E4u); /* 0x3614996D: push 0x362e74e4 */ 1668 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36149972: call dword ptr [0x3616f18c] */ 1669 RECOMP_FLAGS_IN(); 1670 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1671 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1672 esp = esp + 0x10u; /* 0x36149978: add esp, 0x10 */ 1673 _flag_k = FK_ADD; 1674 PUSH32(esp, 0x362E74C0u); /* 0x3614997B: push 0x362e74c0 */ 1675 ecx = ebp + (-0x1C); /* 0x36149980: lea ecx, [ebp - 0x1c] */ 1676 RECOMP_ICALL(0x36008EF0u); /* 0x36149983: call 0x36008ef0 */ /* not lifted */ 1677 RECOMP_FLAGS_IN(); 1678 PUSH32(esp, 0x36184170u); /* 0x36149988: push 0x36184170 */ 1679 edx = ebp + (-0x1C); /* 0x3614998D: lea edx, [ebp - 0x1c] */ 1680 PUSH32(esp, edx); /* 0x36149990: push edx */ 1681 RECOMP_ICALL(0x3615FD70u); /* 0x36149991: call 0x3615fd70 */ /* not lifted */ 1682 RECOMP_FLAGS_IN(); 1683 eax = MEM32(eax + 0x4); /* 0x36149996: mov eax, dword ptr [eax + 4] */ 1684 /* test eax, eax */ /* 0x36149999: test eax, eax */ 1685 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1686 _cf = 0; 1687 _flag_k = FK_TEST; 1688 if (TEST_NZ(_flag_a, _flag_b)) goto L_361499A2; /* 0x3614999B: jne 0x361499a2 */ 1689 L_3614999D: 1690 eax = MEM32(0x3616F10C); /* 0x3614999D: mov eax, dword ptr [0x3616f10c] */ 1691 L_361499A2: 1692 ecx = MEM32(ebp + (-0x10)); /* 0x361499A2: mov ecx, dword ptr [ebp - 0x10] */ 1693 fp_push(*(float*)&MEM32(ecx)); /* 0x361499A5: fld dword ptr [ecx] */ 1694 edx = MEM32(ebp + (-0x18)); /* 0x361499A7: mov edx, dword ptr [ebp - 0x18] */ 1695 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1696 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1697 esp = esp - 8; /* 0x361499AA: sub esp, 8 */ 1698 _flag_k = FK_CMP; 1699 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x361499AD: fstp qword ptr [esp] */ 1700 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1701 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1702 esp = esp - 8; /* 0x361499B0: sub esp, 8 */ 1703 _flag_k = FK_CMP; 1704 fp_push(*(float*)&MEM32(edx)); /* 0x361499B3: fld dword ptr [edx] */ 1705 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x361499B5: fstp qword ptr [esp] */ 1706 PUSH32(esp, eax); /* 0x361499B8: push eax */ 1707 PUSH32(esp, 0x362E746Cu); /* 0x361499B9: push 0x362e746c */ 1708 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361499BE: call dword ptr [0x3616f18c] */ 1709 RECOMP_FLAGS_IN(); 1710 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 1711 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1712 esp = esp + 0x18u; /* 0x361499C4: add esp, 0x18 */ 1713 _flag_k = FK_ADD; 1714 PUSH32(esp, 0x362E7700u); /* 0x361499C7: push 0x362e7700 */ 1715 ecx = ebp + (-0x1C); /* 0x361499CC: lea ecx, [ebp - 0x1c] */ 1716 RECOMP_ICALL(0x36008EF0u); /* 0x361499CF: call 0x36008ef0 */ /* not lifted */ 1717 RECOMP_FLAGS_IN(); 1718 PUSH32(esp, 0x36184170u); /* 0x361499D4: push 0x36184170 */ 1719 eax = ebp + (-0x1C); /* 0x361499D9: lea eax, [ebp - 0x1c] */ 1720 PUSH32(esp, eax); /* 0x361499DC: push eax */ 1721 RECOMP_ICALL(0x3615FD70u); /* 0x361499DD: call 0x3615fd70 */ /* not lifted */ 1722 RECOMP_FLAGS_IN(); 1723 ecx = MEM32(ebp + (-0x10)); /* 0x361499E2: mov ecx, dword ptr [ebp - 0x10] */ 1724 fp_push(*(float*)&MEM32(ecx)); /* 0x361499E5: fld dword ptr [ecx] */ 1725 edx = MEM32(ebp + (-0x14)); /* 0x361499E7: mov edx, dword ptr [ebp - 0x14] */ 1726 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1727 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1728 esp = esp - 8; /* 0x361499EA: sub esp, 8 */ 1729 _flag_k = FK_CMP; 1730 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x361499ED: fstp qword ptr [esp] */ 1731 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1732 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1733 esp = esp - 8; /* 0x361499F0: sub esp, 8 */ 1734 _flag_k = FK_CMP; 1735 fp_push(*(float*)&MEM32(edx)); /* 0x361499F3: fld dword ptr [edx] */ 1736 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1737 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1738 esp = esp - 8; /* 0x361499F5: sub esp, 8 */ 1739 _flag_k = FK_CMP; 1740 { double _v = fp_pop(); *(double*)ADDR(esp + 0x8) = _v; } /* 0x361499F8: fstp qword ptr [esp + 8] */ 1741 fp_push(*(float*)&MEM32(esi)); /* 0x361499FC: fld dword ptr [esi] */ 1742 { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x361499FE: fstp qword ptr [esp] */ 1743 PUSH32(esp, 0x362E7424u); /* 0x36149A01: push 0x362e7424 */ 1744 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36149A06: call dword ptr [0x3616f18c] */ 1745 RECOMP_FLAGS_IN(); 1746 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 1747 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1748 esp = esp + 0x1Cu; /* 0x36149A0C: add esp, 0x1c */ 1749 _flag_k = FK_ADD; 1750 PUSH32(esp, 0x362E7700u); /* 0x36149A0F: push 0x362e7700 */ 1751 ecx = ebp + (-0x1C); /* 0x36149A14: lea ecx, [ebp - 0x1c] */ 1752 RECOMP_ICALL(0x36008EF0u); /* 0x36149A17: call 0x36008ef0 */ /* not lifted */ 1753 RECOMP_FLAGS_IN(); 1754 PUSH32(esp, 0x36184170u); /* 0x36149A1C: push 0x36184170 */ 1755 eax = ebp + (-0x1C); /* 0x36149A21: lea eax, [ebp - 0x1c] */ 1756 PUSH32(esp, eax); /* 0x36149A24: push eax */ 1757 RECOMP_ICALL(0x3615FD70u); /* 0x36149A25: call 0x3615fd70 */ /* not lifted */ 1758 RECOMP_FLAGS_IN(); 1759 /* nop */ /* 0x36149A2A: nop */ 1760 /* nop */ /* 0x36149A2B: nop */ 1761 /* nop */ /* 0x36149A2C: nop */ 1762 /* nop */ /* 0x36149A2D: nop */ 1763 /* nop */ /* 0x36149A2E: nop */ 1764 /* nop */ /* 0x36149A2F: nop */ 1765 PUSH32(esp, ebp); /* 0x36149A30: push ebp */ 1766 ebp = esp; /* 0x36149A31: mov ebp, esp */ 1767 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1769 esp = esp - 8; /* 0x36149A33: sub esp, 8 */ 1770 _flag_k = FK_CMP; 1771 eax = ecx; /* 0x36149A36: mov eax, ecx */ 1772 ecx = MEM32(ebp + 0x8); /* 0x36149A38: mov ecx, dword ptr [ebp + 8] */ 1773 /* cmp eax, ecx */ /* 0x36149A3B: cmp eax, ecx */ 1774 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1775 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1776 _flag_k = FK_CMP; 1777 PUSH32(esp, ebx); /* 0x36149A3D: push ebx */ 1778 PUSH32(esp, esi); /* 0x36149A3E: push esi */ 1779 PUSH32(esp, edi); /* 0x36149A3F: push edi */ 1780 MEM32(ebp + (-0x4)) = eax; /* 0x36149A40: mov dword ptr [ebp - 4], eax */ 1781 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149BE9; /* 0x36149A43: je 0x36149be9 */ 1782 L_36149A49: 1783 esi = MEM32(ecx + 0x4); /* 0x36149A49: mov esi, dword ptr [ecx + 4] */ 1784 /* test esi, esi */ /* 0x36149A4C: test esi, esi */ 1785 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1786 _cf = 0; 1787 _flag_k = FK_TEST; 1788 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149A54; /* 0x36149A4E: jne 0x36149a54 */ 1789 L_36149A50: 1790 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1791 ebx = 0; /* 0x36149A50: xor ebx, ebx */ 1792 _cf = 0; 1793 _flag_k = FK_TEST; 1794 goto L_36149A5C; /* 0x36149A52: jmp 0x36149a5c */ 1795 L_36149A54: 1796 ebx = MEM32(ecx + 0x8); /* 0x36149A54: mov ebx, dword ptr [ecx + 8] */ 1797 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 1798 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1799 ebx = ebx - esi; /* 0x36149A57: sub ebx, esi */ 1800 _flag_k = FK_CMP; 1801 if (3u) _cf = (((ebx) >> 2) & 1u); /* 0x36149A59: sar ebx, 3 */ 1802 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ebx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1803 ebx = (uint32_t)((int32_t)ebx >> 3u); 1804 L_36149A5C: 1805 edx = MEM32(eax + 0x4); /* 0x36149A5C: mov edx, dword ptr [eax + 4] */ 1806 /* test edx, edx */ /* 0x36149A5F: test edx, edx */ 1807 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 1808 _cf = 0; 1809 _flag_k = FK_TEST; 1810 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149A67; /* 0x36149A61: jne 0x36149a67 */ 1811 L_36149A63: 1812 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1813 edi = 0; /* 0x36149A63: xor edi, edi */ 1814 _cf = 0; 1815 _flag_k = FK_TEST; 1816 goto L_36149A6F; /* 0x36149A65: jmp 0x36149a6f */ 1817 L_36149A67: 1818 edi = MEM32(eax + 0x8); /* 0x36149A67: mov edi, dword ptr [eax + 8] */ 1819 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 1820 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1821 edi = edi - edx; /* 0x36149A6A: sub edi, edx */ 1822 _flag_k = FK_CMP; 1823 if (3u) _cf = (((edi) >> 2) & 1u); /* 0x36149A6C: sar edi, 3 */ 1824 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1825 edi = (uint32_t)((int32_t)edi >> 3u); 1826 L_36149A6F: 1827 /* cmp ebx, edi */ /* 0x36149A6F: cmp ebx, edi */ 1828 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 1829 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1830 _flag_k = FK_CMP; 1831 if (CMP_A(_flag_a, _flag_b)) goto L_36149AC9; /* 0x36149A71: ja 0x36149ac9 */ 1832 L_36149A73: 1833 ebx = MEM32(ecx + 0x8); /* 0x36149A73: mov ebx, dword ptr [ecx + 8] */ 1834 /* cmp esi, ebx */ /* 0x36149A76: cmp esi, ebx */ 1835 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1836 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1837 _flag_k = FK_CMP; 1838 edi = edx; /* 0x36149A78: mov edi, edx */ 1839 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149A94; /* 0x36149A7A: je 0x36149a94 */ 1840 L_36149A7C: 1841 PUSH32(esp, esi); /* 0x36149A7C: push esi */ 1842 ecx = edi; /* 0x36149A7D: mov ecx, edi */ 1843 RECOMP_ICALL(0x3614A420u); /* 0x36149A7F: call 0x3614a420 */ /* not lifted */ 1844 RECOMP_FLAGS_IN(); 1845 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 1846 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1847 esi = esi + 8; /* 0x36149A84: add esi, 8 */ 1848 _flag_k = FK_ADD; 1849 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 1850 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1851 edi = edi + 8; /* 0x36149A87: add edi, 8 */ 1852 _flag_k = FK_ADD; 1853 /* cmp esi, ebx */ /* 0x36149A8A: cmp esi, ebx */ 1854 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1855 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1856 _flag_k = FK_CMP; 1857 RECOMP_BACKEDGE(); 1858 if (CMP_NE(_flag_a, _flag_b)) goto L_36149A7C; /* 0x36149A8C: jne 0x36149a7c */ 1859 L_36149A8E: 1860 ecx = MEM32(ebp + 0x8); /* 0x36149A8E: mov ecx, dword ptr [ebp + 8] */ 1861 eax = MEM32(ebp + (-0x4)); /* 0x36149A91: mov eax, dword ptr [ebp - 4] */ 1862 L_36149A94: 1863 esi = MEM32(ecx + 0x4); /* 0x36149A94: mov esi, dword ptr [ecx + 4] */ 1864 /* test esi, esi */ /* 0x36149A97: test esi, esi */ 1865 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1866 _cf = 0; 1867 _flag_k = FK_TEST; 1868 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AAF; /* 0x36149A99: jne 0x36149aaf */ 1869 L_36149A9B: 1870 ecx = MEM32(eax + 0x4); /* 0x36149A9B: mov ecx, dword ptr [eax + 4] */ 1871 edi = POP32_VAL(esp); /* 0x36149A9E: pop edi */ 1872 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1873 edx = 0; /* 0x36149A9F: xor edx, edx */ 1874 _cf = 0; 1875 _flag_k = FK_TEST; 1876 edx = ecx + edx * 8; /* 0x36149AA1: lea edx, [ecx + edx*8] */ 1877 esi = POP32_VAL(esp); /* 0x36149AA4: pop esi */ 1878 MEM32(eax + 0x8) = edx; /* 0x36149AA5: mov dword ptr [eax + 8], edx */ 1879 ebx = POP32_VAL(esp); /* 0x36149AA8: pop ebx */ 1880 esp = ebp; /* 0x36149AA9: mov esp, ebp */ 1881 ebp = POP32_VAL(esp); /* 0x36149AAB: pop ebp */ 1882 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149AAC: ret 4 */ 1883 L_36149AAF: 1884 edx = MEM32(ecx + 0x8); /* 0x36149AAF: mov edx, dword ptr [ecx + 8] */ 1885 ecx = MEM32(eax + 0x4); /* 0x36149AB2: mov ecx, dword ptr [eax + 4] */ 1886 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 1887 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1888 edx = edx - esi; /* 0x36149AB5: sub edx, esi */ 1889 _flag_k = FK_CMP; 1890 edi = POP32_VAL(esp); /* 0x36149AB7: pop edi */ 1891 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149AB8: sar edx, 3 */ 1892 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1893 edx = (uint32_t)((int32_t)edx >> 3u); 1894 edx = ecx + edx * 8; /* 0x36149ABB: lea edx, [ecx + edx*8] */ 1895 esi = POP32_VAL(esp); /* 0x36149ABE: pop esi */ 1896 MEM32(eax + 0x8) = edx; /* 0x36149ABF: mov dword ptr [eax + 8], edx */ 1897 ebx = POP32_VAL(esp); /* 0x36149AC2: pop ebx */ 1898 esp = ebp; /* 0x36149AC3: mov esp, ebp */ 1899 ebp = POP32_VAL(esp); /* 0x36149AC5: pop ebp */ 1900 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149AC6: ret 4 */ 1901 L_36149AC9: 1902 /* test esi, esi */ /* 0x36149AC9: test esi, esi */ 1903 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1904 _cf = 0; 1905 _flag_k = FK_TEST; 1906 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AD1; /* 0x36149ACB: jne 0x36149ad1 */ 1907 L_36149ACD: 1908 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1909 ecx = 0; /* 0x36149ACD: xor ecx, ecx */ 1910 _cf = 0; 1911 _flag_k = FK_TEST; 1912 goto L_36149AD9; /* 0x36149ACF: jmp 0x36149ad9 */ 1913 L_36149AD1: 1914 ecx = MEM32(ecx + 0x8); /* 0x36149AD1: mov ecx, dword ptr [ecx + 8] */ 1915 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 1916 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1917 ecx = ecx - esi; /* 0x36149AD4: sub ecx, esi */ 1918 _flag_k = FK_CMP; 1919 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149AD6: sar ecx, 3 */ 1920 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1921 ecx = (uint32_t)((int32_t)ecx >> 3u); 1922 L_36149AD9: 1923 /* test edx, edx */ /* 0x36149AD9: test edx, edx */ 1924 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 1925 _cf = 0; 1926 _flag_k = FK_TEST; 1927 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AE1; /* 0x36149ADB: jne 0x36149ae1 */ 1928 L_36149ADD: 1929 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1930 edi = 0; /* 0x36149ADD: xor edi, edi */ 1931 _cf = 0; 1932 _flag_k = FK_TEST; 1933 goto L_36149AE9; /* 0x36149ADF: jmp 0x36149ae9 */ 1934 L_36149AE1: 1935 edi = MEM32(eax + 0xC); /* 0x36149AE1: mov edi, dword ptr [eax + 0xc] */ 1936 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 1937 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1938 edi = edi - edx; /* 0x36149AE4: sub edi, edx */ 1939 _flag_k = FK_CMP; 1940 if (3u) _cf = (((edi) >> 2) & 1u); /* 0x36149AE6: sar edi, 3 */ 1941 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1942 edi = (uint32_t)((int32_t)edi >> 3u); 1943 L_36149AE9: 1944 /* cmp ecx, edi */ /* 0x36149AE9: cmp ecx, edi */ 1945 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 1946 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1947 _flag_k = FK_CMP; 1948 if (CMP_A(_flag_a, _flag_b)) goto L_36149B7F; /* 0x36149AEB: ja 0x36149b7f */ 1949 L_36149AF1: 1950 /* test edx, edx */ /* 0x36149AF1: test edx, edx */ 1951 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 1952 _cf = 0; 1953 _flag_k = FK_TEST; 1954 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AF9; /* 0x36149AF3: jne 0x36149af9 */ 1955 L_36149AF5: 1956 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1957 ecx = 0; /* 0x36149AF5: xor ecx, ecx */ 1958 _cf = 0; 1959 _flag_k = FK_TEST; 1960 goto L_36149B01; /* 0x36149AF7: jmp 0x36149b01 */ 1961 L_36149AF9: 1962 ecx = MEM32(eax + 0x8); /* 0x36149AF9: mov ecx, dword ptr [eax + 8] */ 1963 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1964 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1965 ecx = ecx - edx; /* 0x36149AFC: sub ecx, edx */ 1966 _flag_k = FK_CMP; 1967 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149AFE: sar ecx, 3 */ 1968 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1969 ecx = (uint32_t)((int32_t)ecx >> 3u); 1970 L_36149B01: 1971 ecx = esi + ecx * 8; /* 0x36149B01: lea ecx, [esi + ecx*8] */ 1972 eax = esi; /* 0x36149B04: mov eax, esi */ 1973 /* cmp eax, ecx */ /* 0x36149B06: cmp eax, ecx */ 1974 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1976 _flag_k = FK_CMP; 1977 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149B1E; /* 0x36149B08: je 0x36149b1e */ 1978 L_36149B0A: 1979 esi = MEM32(eax); /* 0x36149B0A: mov esi, dword ptr [eax] */ 1980 MEM32(edx) = esi; /* 0x36149B0C: mov dword ptr [edx], esi */ 1981 esi = MEM32(eax + 0x4); /* 0x36149B0E: mov esi, dword ptr [eax + 4] */ 1982 MEM32(edx + 0x4) = esi; /* 0x36149B11: mov dword ptr [edx + 4], esi */ 1983 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 1984 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1985 eax = eax + 8; /* 0x36149B14: add eax, 8 */ 1986 _flag_k = FK_ADD; 1987 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 1988 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1989 edx = edx + 8; /* 0x36149B17: add edx, 8 */ 1990 _flag_k = FK_ADD; 1991 /* cmp eax, ecx */ /* 0x36149B1A: cmp eax, ecx */ 1992 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1993 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1994 _flag_k = FK_CMP; 1995 RECOMP_BACKEDGE(); 1996 if (CMP_NE(_flag_a, _flag_b)) goto L_36149B0A; /* 0x36149B1C: jne 0x36149b0a */ 1997 L_36149B1E: 1998 eax = MEM32(ebp + 0x8); /* 0x36149B1E: mov eax, dword ptr [ebp + 8] */ 1999 ebx = MEM32(eax + 0x8); /* 0x36149B21: mov ebx, dword ptr [eax + 8] */ 2000 /* cmp ecx, ebx */ /* 0x36149B24: cmp ecx, ebx */ 2001 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 2002 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2003 _flag_k = FK_CMP; 2004 eax = MEM32(ebp + (-0x4)); /* 0x36149B26: mov eax, dword ptr [ebp - 4] */ 2005 edi = MEM32(eax + 0x8); /* 0x36149B29: mov edi, dword ptr [eax + 8] */ 2006 esi = ecx; /* 0x36149B2C: mov esi, ecx */ 2007 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149B47; /* 0x36149B2E: je 0x36149b47 */ 2008 L_36149B30: 2009 PUSH32(esp, esi); /* 0x36149B30: push esi */ 2010 PUSH32(esp, edi); /* 0x36149B31: push edi */ 2011 RECOMP_ICALL(0x36059750u); /* 0x36149B32: call 0x36059750 */ /* not lifted */ 2012 RECOMP_FLAGS_IN(); 2013 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 2014 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2015 esi = esi + 8; /* 0x36149B37: add esi, 8 */ 2016 _flag_k = FK_ADD; 2017 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2018 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2019 esp = esp + 8; /* 0x36149B3A: add esp, 8 */ 2020 _flag_k = FK_ADD; 2021 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 2022 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2023 edi = edi + 8; /* 0x36149B3D: add edi, 8 */ 2024 _flag_k = FK_ADD; 2025 /* cmp esi, ebx */ /* 0x36149B40: cmp esi, ebx */ 2026 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2028 _flag_k = FK_CMP; 2029 RECOMP_BACKEDGE(); 2030 if (CMP_NE(_flag_a, _flag_b)) goto L_36149B30; /* 0x36149B42: jne 0x36149b30 */ 2031 L_36149B44: 2032 eax = MEM32(ebp + (-0x4)); /* 0x36149B44: mov eax, dword ptr [ebp - 4] */ 2033 L_36149B47: 2034 ecx = MEM32(ebp + 0x8); /* 0x36149B47: mov ecx, dword ptr [ebp + 8] */ 2035 edx = MEM32(ecx + 0x4); /* 0x36149B4A: mov edx, dword ptr [ecx + 4] */ 2036 /* test edx, edx */ /* 0x36149B4D: test edx, edx */ 2037 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2038 _cf = 0; 2039 _flag_k = FK_TEST; 2040 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149B65; /* 0x36149B4F: jne 0x36149b65 */ 2041 L_36149B51: 2042 edx = MEM32(eax + 0x4); /* 0x36149B51: mov edx, dword ptr [eax + 4] */ 2043 edi = POP32_VAL(esp); /* 0x36149B54: pop edi */ 2044 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2045 ecx = 0; /* 0x36149B55: xor ecx, ecx */ 2046 _cf = 0; 2047 _flag_k = FK_TEST; 2048 ecx = edx + ecx * 8; /* 0x36149B57: lea ecx, [edx + ecx*8] */ 2049 esi = POP32_VAL(esp); /* 0x36149B5A: pop esi */ 2050 MEM32(eax + 0x8) = ecx; /* 0x36149B5B: mov dword ptr [eax + 8], ecx */ 2051 ebx = POP32_VAL(esp); /* 0x36149B5E: pop ebx */ 2052 esp = ebp; /* 0x36149B5F: mov esp, ebp */ 2053 ebp = POP32_VAL(esp); /* 0x36149B61: pop ebp */ 2054 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149B62: ret 4 */ 2055 L_36149B65: 2056 ecx = MEM32(ecx + 0x8); /* 0x36149B65: mov ecx, dword ptr [ecx + 8] */ 2057 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2058 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2059 ecx = ecx - edx; /* 0x36149B68: sub ecx, edx */ 2060 _flag_k = FK_CMP; 2061 edx = MEM32(eax + 0x4); /* 0x36149B6A: mov edx, dword ptr [eax + 4] */ 2062 edi = POP32_VAL(esp); /* 0x36149B6D: pop edi */ 2063 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149B6E: sar ecx, 3 */ 2064 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2065 ecx = (uint32_t)((int32_t)ecx >> 3u); 2066 ecx = edx + ecx * 8; /* 0x36149B71: lea ecx, [edx + ecx*8] */ 2067 esi = POP32_VAL(esp); /* 0x36149B74: pop esi */ 2068 MEM32(eax + 0x8) = ecx; /* 0x36149B75: mov dword ptr [eax + 8], ecx */ 2069 ebx = POP32_VAL(esp); /* 0x36149B78: pop ebx */ 2070 esp = ebp; /* 0x36149B79: mov esp, ebp */ 2071 ebp = POP32_VAL(esp); /* 0x36149B7B: pop ebp */ 2072 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149B7C: ret 4 */ 2073 L_36149B7F: 2074 PUSH32(esp, edx); /* 0x36149B7F: push edx */ 2075 MEM32(ebp + (-0x8)) = edx; /* 0x36149B80: mov dword ptr [ebp - 8], edx */ 2076 RECOMP_ICALL(0x3615FCC4u); /* 0x36149B83: call 0x3615fcc4 */ /* not lifted */ 2077 RECOMP_FLAGS_IN(); 2078 esi = MEM32(ebp + 0x8); /* 0x36149B88: mov esi, dword ptr [ebp + 8] */ 2079 ecx = MEM32(esi + 0x4); /* 0x36149B8B: mov ecx, dword ptr [esi + 4] */ 2080 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2081 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2082 esp = esp + 4; /* 0x36149B8E: add esp, 4 */ 2083 _flag_k = FK_ADD; 2084 /* test ecx, ecx */ /* 0x36149B91: test ecx, ecx */ 2085 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2086 _cf = 0; 2087 _flag_k = FK_TEST; 2088 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149B99; /* 0x36149B93: jne 0x36149b99 */ 2089 L_36149B95: 2090 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2091 eax = 0; /* 0x36149B95: xor eax, eax */ 2092 _cf = 0; 2093 _flag_k = FK_TEST; 2094 goto L_36149BA1; /* 0x36149B97: jmp 0x36149ba1 */ 2095 L_36149B99: 2096 eax = MEM32(esi + 0x8); /* 0x36149B99: mov eax, dword ptr [esi + 8] */ 2097 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2098 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2099 eax = eax - ecx; /* 0x36149B9C: sub eax, ecx */ 2100 _flag_k = FK_CMP; 2101 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x36149B9E: sar eax, 3 */ 2102 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2103 eax = (uint32_t)((int32_t)eax >> 3u); 2104 L_36149BA1: 2105 /* test eax, eax */ /* 0x36149BA1: test eax, eax */ 2106 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2107 _cf = 0; 2108 _flag_k = FK_TEST; 2109 if (TEST_NS(_flag_a, _flag_b)) goto L_36149BA7; /* 0x36149BA3: jge 0x36149ba7 */ 2110 L_36149BA5: 2111 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2112 eax = 0; /* 0x36149BA5: xor eax, eax */ 2113 _cf = 0; 2114 _flag_k = FK_TEST; 2115 L_36149BA7: 2116 edx = eax * 8; /* 0x36149BA7: lea edx, [eax*8] */ 2117 PUSH32(esp, edx); /* 0x36149BAE: push edx */ 2118 RECOMP_ICALL(0x3615FD6Au); /* 0x36149BAF: call 0x3615fd6a */ /* not lifted */ 2119 RECOMP_FLAGS_IN(); 2120 ecx = MEM32(ebp + (-0x4)); /* 0x36149BB4: mov ecx, dword ptr [ebp - 4] */ 2121 edx = MEM32(ebp + 0x8); /* 0x36149BB7: mov edx, dword ptr [ebp + 8] */ 2122 MEM32(ecx + 0x4) = eax; /* 0x36149BBA: mov dword ptr [ecx + 4], eax */ 2123 ebx = MEM32(esi + 0x8); /* 0x36149BBD: mov ebx, dword ptr [esi + 8] */ 2124 esi = MEM32(edx + 0x4); /* 0x36149BC0: mov esi, dword ptr [edx + 4] */ 2125 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2126 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2127 esp = esp + 4; /* 0x36149BC3: add esp, 4 */ 2128 _flag_k = FK_ADD; 2129 /* cmp esi, ebx */ /* 0x36149BC6: cmp esi, ebx */ 2130 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2131 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2132 _flag_k = FK_CMP; 2133 edi = eax; /* 0x36149BC8: mov edi, eax */ 2134 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149BE0; /* 0x36149BCA: je 0x36149be0 */ 2135 L_36149BCC: 2136 PUSH32(esp, esi); /* 0x36149BCC: push esi */ 2137 PUSH32(esp, edi); /* 0x36149BCD: push edi */ 2138 RECOMP_ICALL(0x36059750u); /* 0x36149BCE: call 0x36059750 */ /* not lifted */ 2139 RECOMP_FLAGS_IN(); 2140 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 2141 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2142 esi = esi + 8; /* 0x36149BD3: add esi, 8 */ 2143 _flag_k = FK_ADD; 2144 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2145 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2146 esp = esp + 8; /* 0x36149BD6: add esp, 8 */ 2147 _flag_k = FK_ADD; 2148 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 2149 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2150 edi = edi + 8; /* 0x36149BD9: add edi, 8 */ 2151 _flag_k = FK_ADD; 2152 /* cmp esi, ebx */ /* 0x36149BDC: cmp esi, ebx */ 2153 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2154 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2155 _flag_k = FK_CMP; 2156 RECOMP_BACKEDGE(); 2157 if (CMP_NE(_flag_a, _flag_b)) goto L_36149BCC; /* 0x36149BDE: jne 0x36149bcc */ 2158 L_36149BE0: 2159 eax = MEM32(ebp + (-0x4)); /* 0x36149BE0: mov eax, dword ptr [ebp - 4] */ 2160 MEM32(eax + 0x8) = edi; /* 0x36149BE3: mov dword ptr [eax + 8], edi */ 2161 MEM32(eax + 0xC) = edi; /* 0x36149BE6: mov dword ptr [eax + 0xc], edi */ 2162 L_36149BE9: 2163 edi = POP32_VAL(esp); /* 0x36149BE9: pop edi */ 2164 esi = POP32_VAL(esp); /* 0x36149BEA: pop esi */ 2165 ebx = POP32_VAL(esp); /* 0x36149BEB: pop ebx */ 2166 esp = ebp; /* 0x36149BEC: mov esp, ebp */ 2167 ebp = POP32_VAL(esp); /* 0x36149BEE: pop ebp */ 2168 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149BEF: ret 4 */ 2169 RECOMP_REGS_OUT(); 2170 } 2171 2172 void sub_36148F99(void) { 2173 int _fpu_cmp = 0; 2174 uint32_t _cf = 0; 2175 int _df = 1; 2176 uint32_t _flag_k = FK_NONE; 2177 uint32_t _flag_a = 0, _flag_b = 0; 2178 uint32_t _itail_tgt = 0; 2179 RECOMP_REGS_LOCALS 2180 RECOMP_ENTER(0x36148F99u); 2181 2182 L_36148F99: 2183 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 2184 eax = eax & 0xFFFFu; /* 0x36148F99: and eax, 0xffff */ 2185 _cf = 0; 2186 _flag_k = FK_TEST; 2187 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 2188 ecx = ecx & 0xFFFFu; /* 0x36148F9E: and ecx, 0xffff */ 2189 _cf = 0; 2190 _flag_k = FK_TEST; 2191 edx = ebp + (-0x5C); /* 0x36148FA4: lea edx, [ebp - 0x5c] */ 2192 MEM32(ebx + 0x3C) = eax; /* 0x36148FA7: mov dword ptr [ebx + 0x3c], eax */ 2193 PUSH32(esp, edx); /* 0x36148FAA: push edx */ 2194 eax = ebp + (-0x6C); /* 0x36148FAB: lea eax, [ebp - 0x6c] */ 2195 MEM32(ebx + 0x40) = ecx; /* 0x36148FAE: mov dword ptr [ebx + 0x40], ecx */ 2196 PUSH32(esp, eax); /* 0x36148FB1: push eax */ 2197 ecx = edi; /* 0x36148FB2: mov ecx, edi */ 2198 MEM32(ebp + (-0x84)) = 0; /* 0x36148FB4: mov dword ptr [ebp - 0x84], 0 */ 2199 MEM32(ebp + (-0x80)) = 1; /* 0x36148FBE: mov dword ptr [ebp - 0x80], 1 */ 2200 MEM32(ebp + (-0x7C)) = 2; /* 0x36148FC5: mov dword ptr [ebp - 0x7c], 2 */ 2201 MEM32(ebp + (-0x78)) = 3; /* 0x36148FCC: mov dword ptr [ebp - 0x78], 3 */ 2202 MEM32(ebp + (-0x74)) = 4; /* 0x36148FD3: mov dword ptr [ebp - 0x74], 4 */ 2203 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148FDA: call dword ptr [0x3616fae0] */ 2204 RECOMP_FLAGS_IN(); 2205 ecx = eax; /* 0x36148FE0: mov ecx, eax */ 2206 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36148FE2: call dword ptr [0x3616fa8c] */ 2207 RECOMP_FLAGS_IN(); 2208 ecx = ebp + (-0x70); /* 0x36148FE8: lea ecx, [ebp - 0x70] */ 2209 PUSH32(esp, ecx); /* 0x36148FEB: push ecx */ 2210 ecx = eax; /* 0x36148FEC: mov ecx, eax */ 2211 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148FEE: call dword ptr [0x3616fae0] */ 2212 RECOMP_FLAGS_IN(); 2213 edx = ebp + (-0x48); /* 0x36148FF4: lea edx, [ebp - 0x48] */ 2214 PUSH32(esp, edx); /* 0x36148FF7: push edx */ 2215 ecx = eax; /* 0x36148FF8: mov ecx, eax */ 2216 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36148FFA: call dword ptr [0x3616fae0] */ 2217 RECOMP_FLAGS_IN(); 2218 eax = MEM32(ebp + (-0x6C)); /* 0x36149000: mov eax, dword ptr [ebp - 0x6c] */ 2219 /* cmp LO8(eax), 0x64u */ /* 0x36149003: cmp al, 0x64 */ 2220 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x64u) << 24; 2221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2222 _flag_k = FK_NARROW(FK_CMP, 24); 2223 if (CMP_BE(_flag_a, _flag_b)) goto L_36149046; /* 0x36149005: jbe 0x36149046 */ 2224 L_36149007: 2225 ebx = MEM32(ebx); /* 0x36149007: mov ebx, dword ptr [ebx] */ 2226 ecx = MEM32(ebx + 0x4); /* 0x36149009: mov ecx, dword ptr [ebx + 4] */ 2227 /* test ecx, ecx */ /* 0x3614900C: test ecx, ecx */ 2228 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2229 _cf = 0; 2230 _flag_k = FK_TEST; 2231 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149016; /* 0x3614900E: jne 0x36149016 */ 2232 L_36149010: 2233 ecx = MEM32(0x3616F10C); /* 0x36149010: mov ecx, dword ptr [0x3616f10c] */ 2234 L_36149016: 2235 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 2236 eax = eax & 0xFFu; /* 0x36149016: and eax, 0xff */ 2237 _cf = 0; 2238 _flag_k = FK_TEST; 2239 PUSH32(esp, eax); /* 0x3614901B: push eax */ 2240 PUSH32(esp, ecx); /* 0x3614901C: push ecx */ 2241 PUSH32(esp, 0x362E7720u); /* 0x3614901D: push 0x362e7720 */ 2242 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36149022: call dword ptr [0x3616f18c] */ 2243 RECOMP_FLAGS_IN(); 2244 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2245 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2246 esp = esp + 0xCu; /* 0x36149028: add esp, 0xc */ 2247 _flag_k = FK_ADD; 2248 PUSH32(esp, 0x362E7700u); /* 0x3614902B: push 0x362e7700 */ 2249 ecx = ebp + (-0x1C); /* 0x36149030: lea ecx, [ebp - 0x1c] */ 2250 RECOMP_ICALL(0x36008EF0u); /* 0x36149033: call 0x36008ef0 */ /* not lifted */ 2251 RECOMP_FLAGS_IN(); 2252 PUSH32(esp, 0x36184170u); /* 0x36149038: push 0x36184170 */ 2253 eax = ebp + (-0x1C); /* 0x3614903D: lea eax, [ebp - 0x1c] */ 2254 PUSH32(esp, eax); /* 0x36149040: push eax */ 2255 RECOMP_ICALL(0x3615FD70u); /* 0x36149041: call 0x3615fd70 */ /* not lifted */ 2256 RECOMP_FLAGS_IN(); 2257 L_36149046: 2258 ecx = MEM32(ebp + (-0x5C)); /* 0x36149046: mov ecx, dword ptr [ebp - 0x5c] */ 2259 /* cmp ecx, 0xFFFFFFFFu */ /* 0x36149049: cmp ecx, -1 */ 2260 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFFu); 2261 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2262 _flag_k = FK_CMP; 2263 if (CMP_GE(_flag_a, _flag_b)) goto L_36149087; /* 0x3614904C: jge 0x36149087 */ 2264 L_3614904E: 2265 ebx = MEM32(ebx); /* 0x3614904E: mov ebx, dword ptr [ebx] */ 2266 eax = MEM32(ebx + 0x4); /* 0x36149050: mov eax, dword ptr [ebx + 4] */ 2267 /* test eax, eax */ /* 0x36149053: test eax, eax */ 2268 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2269 _cf = 0; 2270 _flag_k = FK_TEST; 2271 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614905C; /* 0x36149055: jne 0x3614905c */ 2272 L_36149057: 2273 eax = MEM32(0x3616F10C); /* 0x36149057: mov eax, dword ptr [0x3616f10c] */ 2274 L_3614905C: 2275 PUSH32(esp, ecx); /* 0x3614905C: push ecx */ 2276 PUSH32(esp, eax); /* 0x3614905D: push eax */ 2277 PUSH32(esp, 0x362E76ACu); /* 0x3614905E: push 0x362e76ac */ 2278 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x36149063: call dword ptr [0x3616f18c] */ 2279 RECOMP_FLAGS_IN(); 2280 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2281 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2282 esp = esp + 0xCu; /* 0x36149069: add esp, 0xc */ 2283 _flag_k = FK_ADD; 2284 PUSH32(esp, 0x362E7700u); /* 0x3614906C: push 0x362e7700 */ 2285 ecx = ebp + (-0x1C); /* 0x36149071: lea ecx, [ebp - 0x1c] */ 2286 RECOMP_ICALL(0x36008EF0u); /* 0x36149074: call 0x36008ef0 */ /* not lifted */ 2287 RECOMP_FLAGS_IN(); 2288 PUSH32(esp, 0x36184170u); /* 0x36149079: push 0x36184170 */ 2289 ecx = ebp + (-0x1C); /* 0x3614907E: lea ecx, [ebp - 0x1c] */ 2290 PUSH32(esp, ecx); /* 0x36149081: push ecx */ 2291 RECOMP_ICALL(0x3615FD70u); /* 0x36149082: call 0x3615fd70 */ /* not lifted */ 2292 RECOMP_FLAGS_IN(); 2293 L_36149087: 2294 ecx = MEM32(ebp + (-0x70)); /* 0x36149087: mov ecx, dword ptr [ebp - 0x70] */ 2295 /* cmp LO8(ecx), 5 */ /* 0x3614908A: cmp cl, 5 */ 2296 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(5) << 24; 2297 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2298 _flag_k = FK_NARROW(FK_CMP, 24); 2299 if (CMP_B(_flag_a, _flag_b)) goto L_361490D0; /* 0x3614908D: jb 0x361490d0 */ 2300 L_3614908F: 2301 ebx = MEM32(ebx); /* 0x3614908F: mov ebx, dword ptr [ebx] */ 2302 eax = MEM32(ebx + 0x4); /* 0x36149091: mov eax, dword ptr [ebx + 4] */ 2303 /* test eax, eax */ /* 0x36149094: test eax, eax */ 2304 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2305 _cf = 0; 2306 _flag_k = FK_TEST; 2307 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614909D; /* 0x36149096: jne 0x3614909d */ 2308 L_36149098: 2309 eax = MEM32(0x3616F10C); /* 0x36149098: mov eax, dword ptr [0x3616f10c] */ 2310 L_3614909D: 2311 PUSH32(esp, 5); /* 0x3614909D: push 5 */ 2312 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 2313 ecx = ecx & 0xFFu; /* 0x3614909F: and ecx, 0xff */ 2314 _cf = 0; 2315 _flag_k = FK_TEST; 2316 PUSH32(esp, ecx); /* 0x361490A5: push ecx */ 2317 PUSH32(esp, eax); /* 0x361490A6: push eax */ 2318 PUSH32(esp, 0x362E7654u); /* 0x361490A7: push 0x362e7654 */ 2319 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361490AC: call dword ptr [0x3616f18c] */ 2320 RECOMP_FLAGS_IN(); 2321 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2322 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2323 esp = esp + 0x10u; /* 0x361490B2: add esp, 0x10 */ 2324 _flag_k = FK_ADD; 2325 PUSH32(esp, 0x362E7700u); /* 0x361490B5: push 0x362e7700 */ 2326 ecx = ebp + (-0x1C); /* 0x361490BA: lea ecx, [ebp - 0x1c] */ 2327 RECOMP_ICALL(0x36008EF0u); /* 0x361490BD: call 0x36008ef0 */ /* not lifted */ 2328 RECOMP_FLAGS_IN(); 2329 PUSH32(esp, 0x36184170u); /* 0x361490C2: push 0x36184170 */ 2330 edx = ebp + (-0x1C); /* 0x361490C7: lea edx, [ebp - 0x1c] */ 2331 PUSH32(esp, edx); /* 0x361490CA: push edx */ 2332 RECOMP_ICALL(0x3615FD70u); /* 0x361490CB: call 0x3615fd70 */ /* not lifted */ 2333 RECOMP_FLAGS_IN(); 2334 L_361490D0: 2335 fp_push((double)(int32_t)MEM32(ebp + (-0x5C))); /* 0x361490D0: fild dword ptr [ebp - 0x5c] */ 2336 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 2337 eax = eax & 0xFFu; /* 0x361490D3: and eax, 0xff */ 2338 _cf = 0; 2339 _flag_k = FK_TEST; 2340 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 2341 ecx = ecx & 0xFFu; /* 0x361490D8: and ecx, 0xff */ 2342 _cf = 0; 2343 _flag_k = FK_TEST; 2344 MEM32(ebx + 0x44) = eax; /* 0x361490DE: mov dword ptr [ebx + 0x44], eax */ 2345 eax = MEM32(ebp + ecx * 4 + (-0x84)); /* 0x361490E1: mov eax, dword ptr [ebp + ecx*4 - 0x84] */ 2346 { float _v = (float)fp_pop(); *(float*)ADDR(ebx + 0x48) = _v; } /* 0x361490E8: fstp dword ptr [ebx + 0x48] */ 2347 MEM32(ebx + 0x4C) = eax; /* 0x361490EB: mov dword ptr [ebx + 0x4c], eax */ 2348 /* cmp MEM32(ebx + 0x60), 6 */ /* 0x361490EE: cmp dword ptr [ebx + 0x60], 6 */ 2349 _flag_a = (uint32_t)(MEM32(ebx + 0x60)); _flag_b = (uint32_t)(6); 2350 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2351 _flag_k = FK_CMP; 2352 MEM8(ebp + (-0x44)) = (uint8_t)(0); /* 0x361490F2: mov byte ptr [ebp - 0x44], 0 */ 2353 if (CMP_GE(_flag_a, _flag_b)) goto L_36149104; /* 0x361490F6: jge 0x36149104 */ 2354 L_361490F8: 2355 ecx = ebp + (-0x44); /* 0x361490F8: lea ecx, [ebp - 0x44] */ 2356 PUSH32(esp, ecx); /* 0x361490FB: push ecx */ 2357 ecx = edi; /* 0x361490FC: mov ecx, edi */ 2358 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x361490FE: call dword ptr [0x3616fae0] */ 2359 RECOMP_FLAGS_IN(); 2360 L_36149104: 2361 edx = ebp + (-0x64); /* 0x36149104: lea edx, [ebp - 0x64] */ 2362 PUSH32(esp, edx); /* 0x36149107: push edx */ 2363 ecx = edi; /* 0x36149108: mov ecx, edi */ 2364 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x3614910A: call dword ptr [0x3616fae0] */ 2365 RECOMP_FLAGS_IN(); 2366 ecx = ebp + (-0x4C); /* 0x36149110: lea ecx, [ebp - 0x4c] */ 2367 PUSH32(esp, ecx); /* 0x36149113: push ecx */ 2368 ecx = eax; /* 0x36149114: mov ecx, eax */ 2369 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36149116: call dword ptr [0x3616fae0] */ 2370 RECOMP_FLAGS_IN(); 2371 edx = ebp + (-0x50); /* 0x3614911C: lea edx, [ebp - 0x50] */ 2372 PUSH32(esp, edx); /* 0x3614911F: push edx */ 2373 ecx = eax; /* 0x36149120: mov ecx, eax */ 2374 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36149122: call dword ptr [0x3616fae0] */ 2375 RECOMP_FLAGS_IN(); 2376 SET_LO8(eax, MEM8(ebp + (-0x48))); /* 0x36149128: mov al, byte ptr [ebp - 0x48] */ 2377 /* test LO8(eax), LO8(eax) */ /* 0x3614912B: test al, al */ 2378 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2379 _cf = 0; 2380 _flag_k = FK_NARROW(FK_TEST, 24); 2381 MEM32(ebp + (-0x20)) = 0; /* 0x3614912D: mov dword ptr [ebp - 0x20], 0 */ 2382 if (TEST_Z(_flag_a, _flag_b)) goto L_36149189; /* 0x36149134: jbe 0x36149189 */ 2383 L_36149136: 2384 eax = ebp + (-0x10); /* 0x36149136: lea eax, [ebp - 0x10] */ 2385 PUSH32(esp, eax); /* 0x36149139: push eax */ 2386 PUSH32(esp, edi); /* 0x3614913A: push edi */ 2387 MEM32(ebp + (-0x10)) = 0; /* 0x3614913B: mov dword ptr [ebp - 0x10], 0 */ 2388 RECOMP_ICALL(0x360F44D0u); /* 0x36149142: call 0x360f44d0 */ /* not lifted */ 2389 RECOMP_FLAGS_IN(); 2390 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2391 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2392 esp = esp + 8; /* 0x36149147: add esp, 8 */ 2393 _flag_k = FK_ADD; 2394 ecx = ebp + (-0x14); /* 0x3614914A: lea ecx, [ebp - 0x14] */ 2395 PUSH32(esp, ecx); /* 0x3614914D: push ecx */ 2396 ecx = eax; /* 0x3614914E: mov ecx, eax */ 2397 RECOMP_ICALL(esi); /* 0x36149150: call esi */ 2398 RECOMP_FLAGS_IN(); 2399 edx = MEM32(ebp + (-0x10)); /* 0x36149152: mov edx, dword ptr [ebp - 0x10] */ 2400 eax = MEM32(ebp + (-0x14)); /* 0x36149155: mov eax, dword ptr [ebp - 0x14] */ 2401 ecx = MEM32(ebx + 0x58); /* 0x36149158: mov ecx, dword ptr [ebx + 0x58] */ 2402 MEM32(ebp + (-0x1C)) = edx; /* 0x3614915B: mov dword ptr [ebp - 0x1c], edx */ 2403 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 2404 eax = eax & 0xFFFFu; /* 0x3614915E: and eax, 0xffff */ 2405 _cf = 0; 2406 _flag_k = FK_TEST; 2407 edx = ebp + (-0x1C); /* 0x36149163: lea edx, [ebp - 0x1c] */ 2408 PUSH32(esp, edx); /* 0x36149166: push edx */ 2409 MEM32(ebp + (-0x18)) = eax; /* 0x36149167: mov dword ptr [ebp - 0x18], eax */ 2410 eax = MEM32(ecx + 0x8); /* 0x3614916A: mov eax, dword ptr [ecx + 8] */ 2411 PUSH32(esp, 1); /* 0x3614916D: push 1 */ 2412 PUSH32(esp, eax); /* 0x3614916F: push eax */ 2413 RECOMP_ICALL(0x36149F30u); /* 0x36149170: call 0x36149f30 */ /* not lifted */ 2414 RECOMP_FLAGS_IN(); 2415 eax = MEM32(ebp + (-0x20)); /* 0x36149175: mov eax, dword ptr [ebp - 0x20] */ 2416 ecx = MEM32(ebp + (-0x48)); /* 0x36149178: mov ecx, dword ptr [ebp - 0x48] */ 2417 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2418 eax = eax + 1; /* 0x3614917B: inc eax */ 2419 _flag_k = FK_INC; 2420 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 2421 ecx = ecx & 0xFFu; /* 0x3614917C: and ecx, 0xff */ 2422 _cf = 0; 2423 _flag_k = FK_TEST; 2424 /* cmp eax, ecx */ /* 0x36149182: cmp eax, ecx */ 2425 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2426 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2427 _flag_k = FK_CMP; 2428 MEM32(ebp + (-0x20)) = eax; /* 0x36149184: mov dword ptr [ebp - 0x20], eax */ 2429 RECOMP_BACKEDGE(); 2430 if (CMP_L(_flag_a, _flag_b)) goto L_36149136; /* 0x36149187: jl 0x36149136 */ 2431 L_36149189: 2432 SET_LO8(eax, MEM8(ebp + (-0x44))); /* 0x36149189: mov al, byte ptr [ebp - 0x44] */ 2433 /* test LO8(eax), LO8(eax) */ /* 0x3614918C: test al, al */ 2434 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2435 _cf = 0; 2436 _flag_k = FK_NARROW(FK_TEST, 24); 2437 MEM32(ebp + (-0x10)) = 0; /* 0x3614918E: mov dword ptr [ebp - 0x10], 0 */ 2438 if (TEST_Z(_flag_a, _flag_b)) goto L_361491C7; /* 0x36149195: jbe 0x361491c7 */ 2439 L_36149197: 2440 edx = ebp + (-0x14); /* 0x36149197: lea edx, [ebp - 0x14] */ 2441 PUSH32(esp, edx); /* 0x3614919A: push edx */ 2442 PUSH32(esp, edi); /* 0x3614919B: push edi */ 2443 MEM32(ebp + (-0x14)) = 0; /* 0x3614919C: mov dword ptr [ebp - 0x14], 0 */ 2444 RECOMP_ICALL(0x360F44D0u); /* 0x361491A3: call 0x360f44d0 */ /* not lifted */ 2445 RECOMP_FLAGS_IN(); 2446 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2447 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2448 esp = esp + 8; /* 0x361491A8: add esp, 8 */ 2449 _flag_k = FK_ADD; 2450 ecx = ebp + (-0x1E); /* 0x361491AB: lea ecx, [ebp - 0x1e] */ 2451 PUSH32(esp, ecx); /* 0x361491AE: push ecx */ 2452 ecx = eax; /* 0x361491AF: mov ecx, eax */ 2453 RECOMP_ICALL(esi); /* 0x361491B1: call esi */ 2454 RECOMP_FLAGS_IN(); 2455 eax = MEM32(ebp + (-0x10)); /* 0x361491B3: mov eax, dword ptr [ebp - 0x10] */ 2456 edx = MEM32(ebp + (-0x44)); /* 0x361491B6: mov edx, dword ptr [ebp - 0x44] */ 2457 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2458 eax = eax + 1; /* 0x361491B9: inc eax */ 2459 _flag_k = FK_INC; 2460 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 2461 edx = edx & 0xFFu; /* 0x361491BA: and edx, 0xff */ 2462 _cf = 0; 2463 _flag_k = FK_TEST; 2464 /* cmp eax, edx */ /* 0x361491C0: cmp eax, edx */ 2465 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2466 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2467 _flag_k = FK_CMP; 2468 MEM32(ebp + (-0x10)) = eax; /* 0x361491C2: mov dword ptr [ebp - 0x10], eax */ 2469 RECOMP_BACKEDGE(); 2470 if (CMP_L(_flag_a, _flag_b)) goto L_36149197; /* 0x361491C5: jl 0x36149197 */ 2471 L_361491C7: 2472 SET_LO8(eax, MEM8(ebp + (-0x64))); /* 0x361491C7: mov al, byte ptr [ebp - 0x64] */ 2473 /* test LO8(eax), LO8(eax) */ /* 0x361491CA: test al, al */ 2474 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2475 _cf = 0; 2476 _flag_k = FK_NARROW(FK_TEST, 24); 2477 MEM32(ebp + (-0x14)) = 0; /* 0x361491CC: mov dword ptr [ebp - 0x14], 0 */ 2478 if (TEST_Z(_flag_a, _flag_b)) goto L_361494B8; /* 0x361491D3: jbe 0x361494b8 */ 2479 L_361491D9: 2480 ecx = MEM32(ebp + 0x8); /* 0x361491D9: mov ecx, dword ptr [ebp + 8] */ 2481 esi = MEM32(0x3616FAC8); /* 0x361491DC: mov esi, dword ptr [0x3616fac8] */ 2482 eax = ebp + (-0x1E); /* 0x361491E2: lea eax, [ebp - 0x1e] */ 2483 PUSH32(esp, eax); /* 0x361491E5: push eax */ 2484 RECOMP_ICALL(esi); /* 0x361491E6: call esi */ 2485 RECOMP_FLAGS_IN(); 2486 ecx = ebp + (-0x26); /* 0x361491E8: lea ecx, [ebp - 0x26] */ 2487 PUSH32(esp, ecx); /* 0x361491EB: push ecx */ 2488 ecx = eax; /* 0x361491EC: mov ecx, eax */ 2489 RECOMP_ICALL(esi); /* 0x361491EE: call esi */ 2490 RECOMP_FLAGS_IN(); 2491 esi = MEM32(ebx + 0x5C); /* 0x361491F0: mov esi, dword ptr [ebx + 0x5c] */ 2492 eax = MEM32(esi + 0x8); /* 0x361491F3: mov eax, dword ptr [esi + 8] */ 2493 edx = MEM32(esi + 0xC); /* 0x361491F6: mov edx, dword ptr [esi + 0xc] */ 2494 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2495 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2496 edx = edx - eax; /* 0x361491F9: sub edx, eax */ 2497 _flag_k = FK_CMP; 2498 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x361491FB: sar edx, 1 */ 2499 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2500 edx = (uint32_t)((int32_t)edx >> 1u); 2501 /* cmp edx, 1 */ /* 0x361491FD: cmp edx, 1 */ 2502 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 2503 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2504 _flag_k = FK_CMP; 2505 edi = eax; /* 0x36149200: mov edi, eax */ 2506 if (CMP_AE(_flag_a, _flag_b)) goto L_361492B8; /* 0x36149202: jae 0x361492b8 */ 2507 L_36149208: 2508 ecx = MEM32(esi + 0x4); /* 0x36149208: mov ecx, dword ptr [esi + 4] */ 2509 /* test ecx, ecx */ /* 0x3614920B: test ecx, ecx */ 2510 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2511 _cf = 0; 2512 _flag_k = FK_TEST; 2513 if (TEST_Z(_flag_a, _flag_b)) goto L_36149224; /* 0x3614920D: je 0x36149224 */ 2514 L_3614920F: 2515 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2516 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2517 eax = eax - ecx; /* 0x3614920F: sub eax, ecx */ 2518 _flag_k = FK_CMP; 2519 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149211: sar eax, 1 */ 2520 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2521 eax = (uint32_t)((int32_t)eax >> 1u); 2522 /* cmp eax, 1 */ /* 0x36149213: cmp eax, 1 */ 2523 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2524 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2525 _flag_k = FK_CMP; 2526 if (CMP_BE(_flag_a, _flag_b)) goto L_36149224; /* 0x36149216: jbe 0x36149224 */ 2527 L_36149218: 2528 ecx = esi; /* 0x36149218: mov ecx, esi */ 2529 RECOMP_ICALL(0x36140430u); /* 0x3614921A: call 0x36140430 */ /* not lifted */ 2530 RECOMP_FLAGS_IN(); 2531 MEM32(ebp + (-0x10)) = eax; /* 0x3614921F: mov dword ptr [ebp - 0x10], eax */ 2532 goto L_3614922B; /* 0x36149222: jmp 0x3614922b */ 2533 L_36149224: 2534 MEM32(ebp + (-0x10)) = 1; /* 0x36149224: mov dword ptr [ebp - 0x10], 1 */ 2535 L_3614922B: 2536 ecx = esi; /* 0x3614922B: mov ecx, esi */ 2537 RECOMP_ICALL(0x36140430u); /* 0x3614922D: call 0x36140430 */ /* not lifted */ 2538 RECOMP_FLAGS_IN(); 2539 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 2540 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2541 eax = eax + MEM32(ebp + (-0x10)); /* 0x36149232: add eax, dword ptr [ebp - 0x10] */ 2542 _flag_k = FK_ADD; 2543 MEM32(ebp + (-0x18)) = eax; /* 0x36149235: mov dword ptr [ebp - 0x18], eax */ 2544 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_3614923C; /* 0x36149238: jns 0x3614923c */ 2545 L_3614923A: 2546 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2547 eax = 0; /* 0x3614923A: xor eax, eax */ 2548 _cf = 0; 2549 _flag_k = FK_TEST; 2550 L_3614923C: 2551 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2552 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2553 eax = eax + eax; /* 0x3614923C: add eax, eax */ 2554 _flag_k = FK_ADD; 2555 PUSH32(esp, eax); /* 0x3614923E: push eax */ 2556 RECOMP_ICALL(0x3615FD6Au); /* 0x3614923F: call 0x3615fd6a */ /* not lifted */ 2557 RECOMP_FLAGS_IN(); 2558 ecx = MEM32(esi + 0x4); /* 0x36149244: mov ecx, dword ptr [esi + 4] */ 2559 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2560 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2561 esp = esp + 4; /* 0x36149247: add esp, 4 */ 2562 _flag_k = FK_ADD; 2563 PUSH32(esp, eax); /* 0x3614924A: push eax */ 2564 PUSH32(esp, edi); /* 0x3614924B: push edi */ 2565 PUSH32(esp, ecx); /* 0x3614924C: push ecx */ 2566 ecx = esi; /* 0x3614924D: mov ecx, esi */ 2567 MEM32(ebp + (-0x2C)) = eax; /* 0x3614924F: mov dword ptr [ebp - 0x2c], eax */ 2568 RECOMP_ICALL(0x36140900u); /* 0x36149252: call 0x36140900 */ /* not lifted */ 2569 RECOMP_FLAGS_IN(); 2570 edx = ebp + (-0x1E); /* 0x36149257: lea edx, [ebp - 0x1e] */ 2571 PUSH32(esp, edx); /* 0x3614925A: push edx */ 2572 PUSH32(esp, 1); /* 0x3614925B: push 1 */ 2573 PUSH32(esp, eax); /* 0x3614925D: push eax */ 2574 ecx = esi; /* 0x3614925E: mov ecx, esi */ 2575 MEM32(ebp + (-0x10)) = eax; /* 0x36149260: mov dword ptr [ebp - 0x10], eax */ 2576 RECOMP_ICALL(0x3614A1F0u); /* 0x36149263: call 0x3614a1f0 */ /* not lifted */ 2577 RECOMP_FLAGS_IN(); 2578 eax = MEM32(ebp + (-0x10)); /* 0x36149268: mov eax, dword ptr [ebp - 0x10] */ 2579 ecx = MEM32(esi + 0x8); /* 0x3614926B: mov ecx, dword ptr [esi + 8] */ 2580 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 2581 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2582 eax = eax + 2; /* 0x3614926E: add eax, 2 */ 2583 _flag_k = FK_ADD; 2584 PUSH32(esp, eax); /* 0x36149271: push eax */ 2585 PUSH32(esp, ecx); /* 0x36149272: push ecx */ 2586 PUSH32(esp, edi); /* 0x36149273: push edi */ 2587 ecx = esi; /* 0x36149274: mov ecx, esi */ 2588 RECOMP_ICALL(0x36140900u); /* 0x36149276: call 0x36140900 */ /* not lifted */ 2589 RECOMP_FLAGS_IN(); 2590 edx = MEM32(esi + 0x8); /* 0x3614927B: mov edx, dword ptr [esi + 8] */ 2591 eax = MEM32(esi + 0x4); /* 0x3614927E: mov eax, dword ptr [esi + 4] */ 2592 PUSH32(esp, edx); /* 0x36149281: push edx */ 2593 PUSH32(esp, eax); /* 0x36149282: push eax */ 2594 ecx = esi; /* 0x36149283: mov ecx, esi */ 2595 RECOMP_ICALL(0x3610ED60u); /* 0x36149285: call 0x3610ed60 */ /* not lifted */ 2596 RECOMP_FLAGS_IN(); 2597 eax = MEM32(esi + 0x4); /* 0x3614928A: mov eax, dword ptr [esi + 4] */ 2598 PUSH32(esp, eax); /* 0x3614928D: push eax */ 2599 RECOMP_ICALL(0x3615FCC4u); /* 0x3614928E: call 0x3615fcc4 */ /* not lifted */ 2600 RECOMP_FLAGS_IN(); 2601 ecx = MEM32(ebp + (-0x18)); /* 0x36149293: mov ecx, dword ptr [ebp - 0x18] */ 2602 edi = MEM32(ebp + (-0x2C)); /* 0x36149296: mov edi, dword ptr [ebp - 0x2c] */ 2603 edx = edi + ecx * 2; /* 0x36149299: lea edx, [edi + ecx*2] */ 2604 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2605 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2606 esp = esp + 4; /* 0x3614929C: add esp, 4 */ 2607 _flag_k = FK_ADD; 2608 ecx = esi; /* 0x3614929F: mov ecx, esi */ 2609 MEM32(esi + 0xC) = edx; /* 0x361492A1: mov dword ptr [esi + 0xc], edx */ 2610 RECOMP_ICALL(0x36140430u); /* 0x361492A4: call 0x36140430 */ /* not lifted */ 2611 RECOMP_FLAGS_IN(); 2612 eax = edi + eax * 2 + 0x2; /* 0x361492A9: lea eax, [edi + eax*2 + 2] */ 2613 MEM32(esi + 0x8) = eax; /* 0x361492AD: mov dword ptr [esi + 8], eax */ 2614 MEM32(esi + 0x4) = edi; /* 0x361492B0: mov dword ptr [esi + 4], edi */ 2615 goto L_36149348; /* 0x361492B3: jmp 0x36149348 */ 2616 L_361492B8: 2617 ecx = eax; /* 0x361492B8: mov ecx, eax */ 2618 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 2619 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2620 ecx = ecx - edi; /* 0x361492BA: sub ecx, edi */ 2621 _flag_k = FK_CMP; 2622 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492BC: sar ecx, 1 */ 2623 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2624 ecx = (uint32_t)((int32_t)ecx >> 1u); 2625 /* cmp ecx, 1 */ /* 0x361492BE: cmp ecx, 1 */ 2626 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2627 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2628 _flag_k = FK_CMP; 2629 if (CMP_AE(_flag_a, _flag_b)) goto L_36149304; /* 0x361492C1: jae 0x36149304 */ 2630 L_361492C3: 2631 ecx = edi + 0x2; /* 0x361492C3: lea ecx, [edi + 2] */ 2632 PUSH32(esp, ecx); /* 0x361492C6: push ecx */ 2633 PUSH32(esp, eax); /* 0x361492C7: push eax */ 2634 PUSH32(esp, edi); /* 0x361492C8: push edi */ 2635 ecx = esi; /* 0x361492C9: mov ecx, esi */ 2636 RECOMP_ICALL(0x36140900u); /* 0x361492CB: call 0x36140900 */ /* not lifted */ 2637 RECOMP_FLAGS_IN(); 2638 eax = MEM32(esi + 0x8); /* 0x361492D0: mov eax, dword ptr [esi + 8] */ 2639 ecx = eax; /* 0x361492D3: mov ecx, eax */ 2640 edx = ebp + (-0x1E); /* 0x361492D5: lea edx, [ebp - 0x1e] */ 2641 PUSH32(esp, edx); /* 0x361492D8: push edx */ 2642 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 2643 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2644 ecx = ecx - edi; /* 0x361492D9: sub ecx, edi */ 2645 _flag_k = FK_CMP; 2646 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492DB: sar ecx, 1 */ 2647 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2648 ecx = (uint32_t)((int32_t)ecx >> 1u); 2649 edx = 1; /* 0x361492DD: mov edx, 1 */ 2650 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 2651 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2652 edx = edx - ecx; /* 0x361492E2: sub edx, ecx */ 2653 _flag_k = FK_CMP; 2654 PUSH32(esp, edx); /* 0x361492E4: push edx */ 2655 PUSH32(esp, eax); /* 0x361492E5: push eax */ 2656 ecx = esi; /* 0x361492E6: mov ecx, esi */ 2657 RECOMP_ICALL(0x3614A1F0u); /* 0x361492E8: call 0x3614a1f0 */ /* not lifted */ 2658 RECOMP_FLAGS_IN(); 2659 eax = MEM32(esi + 0x8); /* 0x361492ED: mov eax, dword ptr [esi + 8] */ 2660 /* cmp edi, eax */ /* 0x361492F0: cmp edi, eax */ 2661 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2662 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2663 _flag_k = FK_CMP; 2664 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x361492F2: je 0x36149344 */ 2665 L_361492F4: 2666 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x361492F4: mov cx, word ptr [ebp - 0x1e] */ 2667 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x361492F8: mov word ptr [edi], cx */ 2668 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 2669 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2670 edi = edi + 2; /* 0x361492FB: add edi, 2 */ 2671 _flag_k = FK_ADD; 2672 /* cmp edi, eax */ /* 0x361492FE: cmp edi, eax */ 2673 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2675 _flag_k = FK_CMP; 2676 RECOMP_BACKEDGE(); 2677 if (CMP_NE(_flag_a, _flag_b)) goto L_361492F4; /* 0x36149300: jne 0x361492f4 */ 2678 L_36149302: 2679 goto L_36149344; /* 0x36149302: jmp 0x36149344 */ 2680 L_36149304: 2681 PUSH32(esp, eax); /* 0x36149304: push eax */ 2682 ecx = eax + (-0x2); /* 0x36149305: lea ecx, [eax - 2] */ 2683 PUSH32(esp, eax); /* 0x36149308: push eax */ 2684 MEM32(ebp + (-0x18)) = ecx; /* 0x36149309: mov dword ptr [ebp - 0x18], ecx */ 2685 PUSH32(esp, ecx); /* 0x3614930C: push ecx */ 2686 ecx = esi; /* 0x3614930D: mov ecx, esi */ 2687 RECOMP_ICALL(0x36140900u); /* 0x3614930F: call 0x36140900 */ /* not lifted */ 2688 RECOMP_FLAGS_IN(); 2689 ecx = MEM32(esi + 0x8); /* 0x36149314: mov ecx, dword ptr [esi + 8] */ 2690 eax = ecx + (-0x2); /* 0x36149317: lea eax, [ecx - 2] */ 2691 /* cmp edi, eax */ /* 0x3614931A: cmp edi, eax */ 2692 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2693 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2694 _flag_k = FK_CMP; 2695 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614932F; /* 0x3614931C: je 0x3614932f */ 2696 L_3614931E: 2697 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x3614931E: mov dx, word ptr [eax - 2] */ 2698 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 2699 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2700 eax = eax - 2; /* 0x36149322: sub eax, 2 */ 2701 _flag_k = FK_CMP; 2702 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 2703 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2704 ecx = ecx - 2; /* 0x36149325: sub ecx, 2 */ 2705 _flag_k = FK_CMP; 2706 /* cmp eax, edi */ /* 0x36149328: cmp eax, edi */ 2707 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2708 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2709 _flag_k = FK_CMP; 2710 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x3614932A: mov word ptr [ecx], dx */ 2711 RECOMP_BACKEDGE(); 2712 if (CMP_NE(_flag_a, _flag_b)) goto L_3614931E; /* 0x3614932D: jne 0x3614931e */ 2713 L_3614932F: 2714 eax = edi + 0x2; /* 0x3614932F: lea eax, [edi + 2] */ 2715 /* cmp edi, eax */ /* 0x36149332: cmp edi, eax */ 2716 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2717 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2718 _flag_k = FK_CMP; 2719 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x36149334: je 0x36149344 */ 2720 L_36149336: 2721 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x36149336: mov cx, word ptr [ebp - 0x1e] */ 2722 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x3614933A: mov word ptr [edi], cx */ 2723 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 2724 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2725 edi = edi + 2; /* 0x3614933D: add edi, 2 */ 2726 _flag_k = FK_ADD; 2727 /* cmp edi, eax */ /* 0x36149340: cmp edi, eax */ 2728 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2729 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2730 _flag_k = FK_CMP; 2731 RECOMP_BACKEDGE(); 2732 if (CMP_NE(_flag_a, _flag_b)) goto L_36149336; /* 0x36149342: jne 0x36149336 */ 2733 L_36149344: 2734 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 2735 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2736 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x36149344: add dword ptr [esi + 8], 2 */ 2737 _flag_k = FK_ADD; 2738 L_36149348: 2739 esi = MEM32(ebx + 0x5C); /* 0x36149348: mov esi, dword ptr [ebx + 0x5c] */ 2740 eax = MEM32(esi + 0x8); /* 0x3614934B: mov eax, dword ptr [esi + 8] */ 2741 edx = MEM32(esi + 0xC); /* 0x3614934E: mov edx, dword ptr [esi + 0xc] */ 2742 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2743 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2744 edx = edx - eax; /* 0x36149351: sub edx, eax */ 2745 _flag_k = FK_CMP; 2746 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36149353: sar edx, 1 */ 2747 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2748 edx = (uint32_t)((int32_t)edx >> 1u); 2749 /* cmp edx, 1 */ /* 0x36149355: cmp edx, 1 */ 2750 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 2751 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2752 _flag_k = FK_CMP; 2753 edi = eax; /* 0x36149358: mov edi, eax */ 2754 if (CMP_AE(_flag_a, _flag_b)) goto L_36149410; /* 0x3614935A: jae 0x36149410 */ 2755 L_36149360: 2756 ecx = MEM32(esi + 0x4); /* 0x36149360: mov ecx, dword ptr [esi + 4] */ 2757 /* test ecx, ecx */ /* 0x36149363: test ecx, ecx */ 2758 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2759 _cf = 0; 2760 _flag_k = FK_TEST; 2761 if (TEST_Z(_flag_a, _flag_b)) goto L_3614937C; /* 0x36149365: je 0x3614937c */ 2762 L_36149367: 2763 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2765 eax = eax - ecx; /* 0x36149367: sub eax, ecx */ 2766 _flag_k = FK_CMP; 2767 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149369: sar eax, 1 */ 2768 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2769 eax = (uint32_t)((int32_t)eax >> 1u); 2770 /* cmp eax, 1 */ /* 0x3614936B: cmp eax, 1 */ 2771 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2772 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2773 _flag_k = FK_CMP; 2774 if (CMP_BE(_flag_a, _flag_b)) goto L_3614937C; /* 0x3614936E: jbe 0x3614937c */ 2775 L_36149370: 2776 ecx = esi; /* 0x36149370: mov ecx, esi */ 2777 RECOMP_ICALL(0x36140430u); /* 0x36149372: call 0x36140430 */ /* not lifted */ 2778 RECOMP_FLAGS_IN(); 2779 MEM32(ebp + (-0x10)) = eax; /* 0x36149377: mov dword ptr [ebp - 0x10], eax */ 2780 goto L_36149383; /* 0x3614937A: jmp 0x36149383 */ 2781 L_3614937C: 2782 MEM32(ebp + (-0x10)) = 1; /* 0x3614937C: mov dword ptr [ebp - 0x10], 1 */ 2783 L_36149383: 2784 ecx = esi; /* 0x36149383: mov ecx, esi */ 2785 RECOMP_ICALL(0x36140430u); /* 0x36149385: call 0x36140430 */ /* not lifted */ 2786 RECOMP_FLAGS_IN(); 2787 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 2788 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2789 eax = eax + MEM32(ebp + (-0x10)); /* 0x3614938A: add eax, dword ptr [ebp - 0x10] */ 2790 _flag_k = FK_ADD; 2791 MEM32(ebp + (-0x10)) = eax; /* 0x3614938D: mov dword ptr [ebp - 0x10], eax */ 2792 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149394; /* 0x36149390: jns 0x36149394 */ 2793 L_36149392: 2794 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2795 eax = 0; /* 0x36149392: xor eax, eax */ 2796 _cf = 0; 2797 _flag_k = FK_TEST; 2798 L_36149394: 2799 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2800 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2801 eax = eax + eax; /* 0x36149394: add eax, eax */ 2802 _flag_k = FK_ADD; 2803 PUSH32(esp, eax); /* 0x36149396: push eax */ 2804 RECOMP_ICALL(0x3615FD6Au); /* 0x36149397: call 0x3615fd6a */ /* not lifted */ 2805 RECOMP_FLAGS_IN(); 2806 ecx = MEM32(esi + 0x4); /* 0x3614939C: mov ecx, dword ptr [esi + 4] */ 2807 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2808 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2809 esp = esp + 4; /* 0x3614939F: add esp, 4 */ 2810 _flag_k = FK_ADD; 2811 PUSH32(esp, eax); /* 0x361493A2: push eax */ 2812 PUSH32(esp, edi); /* 0x361493A3: push edi */ 2813 PUSH32(esp, ecx); /* 0x361493A4: push ecx */ 2814 ecx = esi; /* 0x361493A5: mov ecx, esi */ 2815 MEM32(ebp + (-0x2C)) = eax; /* 0x361493A7: mov dword ptr [ebp - 0x2c], eax */ 2816 RECOMP_ICALL(0x36140900u); /* 0x361493AA: call 0x36140900 */ /* not lifted */ 2817 RECOMP_FLAGS_IN(); 2818 edx = ebp + (-0x26); /* 0x361493AF: lea edx, [ebp - 0x26] */ 2819 PUSH32(esp, edx); /* 0x361493B2: push edx */ 2820 PUSH32(esp, 1); /* 0x361493B3: push 1 */ 2821 PUSH32(esp, eax); /* 0x361493B5: push eax */ 2822 ecx = esi; /* 0x361493B6: mov ecx, esi */ 2823 MEM32(ebp + (-0x18)) = eax; /* 0x361493B8: mov dword ptr [ebp - 0x18], eax */ 2824 RECOMP_ICALL(0x3614A1F0u); /* 0x361493BB: call 0x3614a1f0 */ /* not lifted */ 2825 RECOMP_FLAGS_IN(); 2826 eax = MEM32(ebp + (-0x18)); /* 0x361493C0: mov eax, dword ptr [ebp - 0x18] */ 2827 ecx = MEM32(esi + 0x8); /* 0x361493C3: mov ecx, dword ptr [esi + 8] */ 2828 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 2829 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2830 eax = eax + 2; /* 0x361493C6: add eax, 2 */ 2831 _flag_k = FK_ADD; 2832 PUSH32(esp, eax); /* 0x361493C9: push eax */ 2833 PUSH32(esp, ecx); /* 0x361493CA: push ecx */ 2834 PUSH32(esp, edi); /* 0x361493CB: push edi */ 2835 ecx = esi; /* 0x361493CC: mov ecx, esi */ 2836 RECOMP_ICALL(0x36140900u); /* 0x361493CE: call 0x36140900 */ /* not lifted */ 2837 RECOMP_FLAGS_IN(); 2838 edx = MEM32(esi + 0x8); /* 0x361493D3: mov edx, dword ptr [esi + 8] */ 2839 eax = MEM32(esi + 0x4); /* 0x361493D6: mov eax, dword ptr [esi + 4] */ 2840 PUSH32(esp, edx); /* 0x361493D9: push edx */ 2841 PUSH32(esp, eax); /* 0x361493DA: push eax */ 2842 ecx = esi; /* 0x361493DB: mov ecx, esi */ 2843 RECOMP_ICALL(0x3610ED60u); /* 0x361493DD: call 0x3610ed60 */ /* not lifted */ 2844 RECOMP_FLAGS_IN(); 2845 eax = MEM32(esi + 0x4); /* 0x361493E2: mov eax, dword ptr [esi + 4] */ 2846 PUSH32(esp, eax); /* 0x361493E5: push eax */ 2847 RECOMP_ICALL(0x3615FCC4u); /* 0x361493E6: call 0x3615fcc4 */ /* not lifted */ 2848 RECOMP_FLAGS_IN(); 2849 ecx = MEM32(ebp + (-0x10)); /* 0x361493EB: mov ecx, dword ptr [ebp - 0x10] */ 2850 edi = MEM32(ebp + (-0x2C)); /* 0x361493EE: mov edi, dword ptr [ebp - 0x2c] */ 2851 edx = edi + ecx * 2; /* 0x361493F1: lea edx, [edi + ecx*2] */ 2852 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2853 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2854 esp = esp + 4; /* 0x361493F4: add esp, 4 */ 2855 _flag_k = FK_ADD; 2856 ecx = esi; /* 0x361493F7: mov ecx, esi */ 2857 MEM32(esi + 0xC) = edx; /* 0x361493F9: mov dword ptr [esi + 0xc], edx */ 2858 RECOMP_ICALL(0x36140430u); /* 0x361493FC: call 0x36140430 */ /* not lifted */ 2859 RECOMP_FLAGS_IN(); 2860 eax = edi + eax * 2 + 0x2; /* 0x36149401: lea eax, [edi + eax*2 + 2] */ 2861 MEM32(esi + 0x8) = eax; /* 0x36149405: mov dword ptr [esi + 8], eax */ 2862 MEM32(esi + 0x4) = edi; /* 0x36149408: mov dword ptr [esi + 4], edi */ 2863 goto L_361494A0; /* 0x3614940B: jmp 0x361494a0 */ 2864 L_36149410: 2865 ecx = eax; /* 0x36149410: mov ecx, eax */ 2866 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 2867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2868 ecx = ecx - edi; /* 0x36149412: sub ecx, edi */ 2869 _flag_k = FK_CMP; 2870 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149414: sar ecx, 1 */ 2871 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2872 ecx = (uint32_t)((int32_t)ecx >> 1u); 2873 /* cmp ecx, 1 */ /* 0x36149416: cmp ecx, 1 */ 2874 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2875 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2876 _flag_k = FK_CMP; 2877 if (CMP_AE(_flag_a, _flag_b)) goto L_3614945C; /* 0x36149419: jae 0x3614945c */ 2878 L_3614941B: 2879 ecx = edi + 0x2; /* 0x3614941B: lea ecx, [edi + 2] */ 2880 PUSH32(esp, ecx); /* 0x3614941E: push ecx */ 2881 PUSH32(esp, eax); /* 0x3614941F: push eax */ 2882 PUSH32(esp, edi); /* 0x36149420: push edi */ 2883 ecx = esi; /* 0x36149421: mov ecx, esi */ 2884 RECOMP_ICALL(0x36140900u); /* 0x36149423: call 0x36140900 */ /* not lifted */ 2885 RECOMP_FLAGS_IN(); 2886 eax = MEM32(esi + 0x8); /* 0x36149428: mov eax, dword ptr [esi + 8] */ 2887 ecx = eax; /* 0x3614942B: mov ecx, eax */ 2888 edx = ebp + (-0x26); /* 0x3614942D: lea edx, [ebp - 0x26] */ 2889 PUSH32(esp, edx); /* 0x36149430: push edx */ 2890 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 2891 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2892 ecx = ecx - edi; /* 0x36149431: sub ecx, edi */ 2893 _flag_k = FK_CMP; 2894 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149433: sar ecx, 1 */ 2895 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2896 ecx = (uint32_t)((int32_t)ecx >> 1u); 2897 edx = 1; /* 0x36149435: mov edx, 1 */ 2898 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 2899 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2900 edx = edx - ecx; /* 0x3614943A: sub edx, ecx */ 2901 _flag_k = FK_CMP; 2902 PUSH32(esp, edx); /* 0x3614943C: push edx */ 2903 PUSH32(esp, eax); /* 0x3614943D: push eax */ 2904 ecx = esi; /* 0x3614943E: mov ecx, esi */ 2905 RECOMP_ICALL(0x3614A1F0u); /* 0x36149440: call 0x3614a1f0 */ /* not lifted */ 2906 RECOMP_FLAGS_IN(); 2907 eax = MEM32(esi + 0x8); /* 0x36149445: mov eax, dword ptr [esi + 8] */ 2908 /* cmp edi, eax */ /* 0x36149448: cmp edi, eax */ 2909 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2910 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2911 _flag_k = FK_CMP; 2912 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614944A: je 0x3614949c */ 2913 L_3614944C: 2914 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614944C: mov cx, word ptr [ebp - 0x26] */ 2915 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149450: mov word ptr [edi], cx */ 2916 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 2917 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2918 edi = edi + 2; /* 0x36149453: add edi, 2 */ 2919 _flag_k = FK_ADD; 2920 /* cmp edi, eax */ /* 0x36149456: cmp edi, eax */ 2921 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2922 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2923 _flag_k = FK_CMP; 2924 RECOMP_BACKEDGE(); 2925 if (CMP_NE(_flag_a, _flag_b)) goto L_3614944C; /* 0x36149458: jne 0x3614944c */ 2926 L_3614945A: 2927 goto L_3614949C; /* 0x3614945A: jmp 0x3614949c */ 2928 L_3614945C: 2929 PUSH32(esp, eax); /* 0x3614945C: push eax */ 2930 ecx = eax + (-0x2); /* 0x3614945D: lea ecx, [eax - 2] */ 2931 PUSH32(esp, eax); /* 0x36149460: push eax */ 2932 MEM32(ebp + (-0x18)) = ecx; /* 0x36149461: mov dword ptr [ebp - 0x18], ecx */ 2933 PUSH32(esp, ecx); /* 0x36149464: push ecx */ 2934 ecx = esi; /* 0x36149465: mov ecx, esi */ 2935 RECOMP_ICALL(0x36140900u); /* 0x36149467: call 0x36140900 */ /* not lifted */ 2936 RECOMP_FLAGS_IN(); 2937 ecx = MEM32(esi + 0x8); /* 0x3614946C: mov ecx, dword ptr [esi + 8] */ 2938 eax = ecx + (-0x2); /* 0x3614946F: lea eax, [ecx - 2] */ 2939 /* cmp edi, eax */ /* 0x36149472: cmp edi, eax */ 2940 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2941 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2942 _flag_k = FK_CMP; 2943 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149487; /* 0x36149474: je 0x36149487 */ 2944 L_36149476: 2945 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x36149476: mov dx, word ptr [eax - 2] */ 2946 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 2947 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2948 eax = eax - 2; /* 0x3614947A: sub eax, 2 */ 2949 _flag_k = FK_CMP; 2950 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 2951 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2952 ecx = ecx - 2; /* 0x3614947D: sub ecx, 2 */ 2953 _flag_k = FK_CMP; 2954 /* cmp eax, edi */ /* 0x36149480: cmp eax, edi */ 2955 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2956 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2957 _flag_k = FK_CMP; 2958 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x36149482: mov word ptr [ecx], dx */ 2959 RECOMP_BACKEDGE(); 2960 if (CMP_NE(_flag_a, _flag_b)) goto L_36149476; /* 0x36149485: jne 0x36149476 */ 2961 L_36149487: 2962 eax = edi + 0x2; /* 0x36149487: lea eax, [edi + 2] */ 2963 /* cmp edi, eax */ /* 0x3614948A: cmp edi, eax */ 2964 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2965 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2966 _flag_k = FK_CMP; 2967 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614948C: je 0x3614949c */ 2968 L_3614948E: 2969 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614948E: mov cx, word ptr [ebp - 0x26] */ 2970 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149492: mov word ptr [edi], cx */ 2971 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 2972 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2973 edi = edi + 2; /* 0x36149495: add edi, 2 */ 2974 _flag_k = FK_ADD; 2975 /* cmp edi, eax */ /* 0x36149498: cmp edi, eax */ 2976 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2977 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2978 _flag_k = FK_CMP; 2979 RECOMP_BACKEDGE(); 2980 if (CMP_NE(_flag_a, _flag_b)) goto L_3614948E; /* 0x3614949A: jne 0x3614948e */ 2981 L_3614949C: 2982 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 2983 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2984 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x3614949C: add dword ptr [esi + 8], 2 */ 2985 _flag_k = FK_ADD; 2986 L_361494A0: 2987 eax = MEM32(ebp + (-0x14)); /* 0x361494A0: mov eax, dword ptr [ebp - 0x14] */ 2988 edx = MEM32(ebp + (-0x64)); /* 0x361494A3: mov edx, dword ptr [ebp - 0x64] */ 2989 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2990 eax = eax + 1; /* 0x361494A6: inc eax */ 2991 _flag_k = FK_INC; 2992 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 2993 edx = edx & 0xFFu; /* 0x361494A7: and edx, 0xff */ 2994 _cf = 0; 2995 _flag_k = FK_TEST; 2996 /* cmp eax, edx */ /* 0x361494AD: cmp eax, edx */ 2997 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2998 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2999 _flag_k = FK_CMP; 3000 MEM32(ebp + (-0x14)) = eax; /* 0x361494AF: mov dword ptr [ebp - 0x14], eax */ 3001 RECOMP_BACKEDGE(); 3002 if (CMP_B(_flag_a, _flag_b)) goto L_361491D9; /* 0x361494B2: jb 0x361491d9 */ 3003 L_361494B8: 3004 SET_LO8(eax, MEM8(ebp + (-0x4C))); /* 0x361494B8: mov al, byte ptr [ebp - 0x4c] */ 3005 /* test LO8(eax), LO8(eax) */ /* 0x361494BB: test al, al */ 3006 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3007 _cf = 0; 3008 _flag_k = FK_NARROW(FK_TEST, 24); 3009 MEM32(ebp + (-0x10)) = 0; /* 0x361494BD: mov dword ptr [ebp - 0x10], 0 */ 3010 if (TEST_Z(_flag_a, _flag_b)) goto L_361496AB; /* 0x361494C4: jbe 0x361496ab */ 3011 L_361494CA: 3012 ecx = ebp + (-0x84); /* 0x361494CA: lea ecx, [ebp - 0x84] */ 3013 RECOMP_ICALL(0x3602F750u); /* 0x361494D0: call 0x3602f750 */ /* not lifted */ 3014 RECOMP_FLAGS_IN(); 3015 ecx = MEM32(ebp + 0x8); /* 0x361494D5: mov ecx, dword ptr [ebp + 8] */ 3016 eax = ebp + (-0x84); /* 0x361494D8: lea eax, [ebp - 0x84] */ 3017 PUSH32(esp, eax); /* 0x361494DE: push eax */ 3018 PUSH32(esp, ecx); /* 0x361494DF: push ecx */ 3019 MEM32(ebp + (-0x4)) = 0; /* 0x361494E0: mov dword ptr [ebp - 4], 0 */ 3020 RECOMP_ICALL(0x3602F810u); /* 0x361494E7: call 0x3602f810 */ /* not lifted */ 3021 RECOMP_FLAGS_IN(); 3022 esi = MEM32(ebx + 0x50); /* 0x361494EC: mov esi, dword ptr [ebx + 0x50] */ 3023 ecx = MEM32(esi + 0x8); /* 0x361494EF: mov ecx, dword ptr [esi + 8] */ 3024 edx = MEM32(esi + 0xC); /* 0x361494F2: mov edx, dword ptr [esi + 0xc] */ 3025 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3026 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3027 edx = edx - ecx; /* 0x361494F5: sub edx, ecx */ 3028 _flag_k = FK_CMP; 3029 eax = 0x66666667u; /* 0x361494F7: mov eax, 0x66666667 */ 3030 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361494FC: imul edx */ 3031 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 3032 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 3033 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361494FE: sar edx, 3 */ 3034 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3035 edx = (uint32_t)((int32_t)edx >> 3u); 3036 eax = edx; /* 0x36149501: mov eax, edx */ 3037 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149503: shr eax, 0x1f */ 3038 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3039 eax = eax >> 31u; /* 0x36149503: shr eax, 0x1f */ 3040 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3041 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3042 edx = edx + eax; /* 0x36149506: add edx, eax */ 3043 _flag_k = FK_ADD; 3044 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3045 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3046 esp = esp + 8; /* 0x36149508: add esp, 8 */ 3047 _flag_k = FK_ADD; 3048 /* cmp edx, 1 */ /* 0x3614950B: cmp edx, 1 */ 3049 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3050 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3051 _flag_k = FK_CMP; 3052 edi = ecx; /* 0x3614950E: mov edi, ecx */ 3053 if (CMP_AE(_flag_a, _flag_b)) goto L_361495E2; /* 0x36149510: jae 0x361495e2 */ 3054 L_36149516: 3055 eax = MEM32(esi + 0x4); /* 0x36149516: mov eax, dword ptr [esi + 4] */ 3056 /* test eax, eax */ /* 0x36149519: test eax, eax */ 3057 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3058 _cf = 0; 3059 _flag_k = FK_TEST; 3060 if (TEST_Z(_flag_a, _flag_b)) goto L_36149541; /* 0x3614951B: je 0x36149541 */ 3061 L_3614951D: 3062 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3063 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3064 ecx = ecx - eax; /* 0x3614951D: sub ecx, eax */ 3065 _flag_k = FK_CMP; 3066 eax = 0x66666667u; /* 0x3614951F: mov eax, 0x66666667 */ 3067 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149524: imul ecx */ 3068 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 3069 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 3070 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149526: sar edx, 3 */ 3071 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3072 edx = (uint32_t)((int32_t)edx >> 3u); 3073 ecx = edx; /* 0x36149529: mov ecx, edx */ 3074 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614952B: shr ecx, 0x1f */ 3075 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3076 ecx = ecx >> 31u; /* 0x3614952B: shr ecx, 0x1f */ 3077 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3078 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3079 edx = edx + ecx; /* 0x3614952E: add edx, ecx */ 3080 _flag_k = FK_ADD; 3081 /* cmp edx, 1 */ /* 0x36149530: cmp edx, 1 */ 3082 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3083 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3084 _flag_k = FK_CMP; 3085 if (CMP_BE(_flag_a, _flag_b)) goto L_36149541; /* 0x36149533: jbe 0x36149541 */ 3086 L_36149535: 3087 ecx = esi; /* 0x36149535: mov ecx, esi */ 3088 RECOMP_ICALL(0x36149DC0u); /* 0x36149537: call 0x36149dc0 */ /* not lifted */ 3089 RECOMP_FLAGS_IN(); 3090 MEM32(ebp + (-0x14)) = eax; /* 0x3614953C: mov dword ptr [ebp - 0x14], eax */ 3091 goto L_36149548; /* 0x3614953F: jmp 0x36149548 */ 3092 L_36149541: 3093 MEM32(ebp + (-0x14)) = 1; /* 0x36149541: mov dword ptr [ebp - 0x14], 1 */ 3094 L_36149548: 3095 ecx = esi; /* 0x36149548: mov ecx, esi */ 3096 RECOMP_ICALL(0x36149DC0u); /* 0x3614954A: call 0x36149dc0 */ /* not lifted */ 3097 RECOMP_FLAGS_IN(); 3098 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 3099 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3100 eax = eax + MEM32(ebp + (-0x14)); /* 0x3614954F: add eax, dword ptr [ebp - 0x14] */ 3101 _flag_k = FK_ADD; 3102 MEM32(ebp + (-0x2C)) = eax; /* 0x36149552: mov dword ptr [ebp - 0x2c], eax */ 3103 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149559; /* 0x36149555: jns 0x36149559 */ 3104 L_36149557: 3105 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3106 eax = 0; /* 0x36149557: xor eax, eax */ 3107 _cf = 0; 3108 _flag_k = FK_TEST; 3109 L_36149559: 3110 edx = eax + eax * 4; /* 0x36149559: lea edx, [eax + eax*4] */ 3111 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614955C: shl edx, 2 */ 3112 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3113 edx = edx << 2u; /* 0x3614955C: shl edx, 2 */ 3114 PUSH32(esp, edx); /* 0x3614955F: push edx */ 3115 RECOMP_ICALL(0x3615FD6Au); /* 0x36149560: call 0x3615fd6a */ /* not lifted */ 3116 RECOMP_FLAGS_IN(); 3117 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3118 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3119 esp = esp + 4; /* 0x36149565: add esp, 4 */ 3120 _flag_k = FK_ADD; 3121 PUSH32(esp, eax); /* 0x36149568: push eax */ 3122 MEM32(ebp + (-0x14)) = eax; /* 0x36149569: mov dword ptr [ebp - 0x14], eax */ 3123 eax = MEM32(esi + 0x4); /* 0x3614956C: mov eax, dword ptr [esi + 4] */ 3124 PUSH32(esp, edi); /* 0x3614956F: push edi */ 3125 PUSH32(esp, eax); /* 0x36149570: push eax */ 3126 ecx = esi; /* 0x36149571: mov ecx, esi */ 3127 RECOMP_ICALL(0x36149E20u); /* 0x36149573: call 0x36149e20 */ /* not lifted */ 3128 RECOMP_FLAGS_IN(); 3129 ecx = ebp + (-0x84); /* 0x36149578: lea ecx, [ebp - 0x84] */ 3130 PUSH32(esp, ecx); /* 0x3614957E: push ecx */ 3131 PUSH32(esp, 1); /* 0x3614957F: push 1 */ 3132 PUSH32(esp, eax); /* 0x36149581: push eax */ 3133 ecx = esi; /* 0x36149582: mov ecx, esi */ 3134 MEM32(ebp + (-0x18)) = eax; /* 0x36149584: mov dword ptr [ebp - 0x18], eax */ 3135 RECOMP_ICALL(0x3614A190u); /* 0x36149587: call 0x3614a190 */ /* not lifted */ 3136 RECOMP_FLAGS_IN(); 3137 edx = MEM32(ebp + (-0x18)); /* 0x3614958C: mov edx, dword ptr [ebp - 0x18] */ 3138 eax = MEM32(esi + 0x8); /* 0x3614958F: mov eax, dword ptr [esi + 8] */ 3139 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u); 3140 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3141 edx = edx + 0x14u; /* 0x36149592: add edx, 0x14 */ 3142 _flag_k = FK_ADD; 3143 PUSH32(esp, edx); /* 0x36149595: push edx */ 3144 PUSH32(esp, eax); /* 0x36149596: push eax */ 3145 PUSH32(esp, edi); /* 0x36149597: push edi */ 3146 ecx = esi; /* 0x36149598: mov ecx, esi */ 3147 RECOMP_ICALL(0x36149E20u); /* 0x3614959A: call 0x36149e20 */ /* not lifted */ 3148 RECOMP_FLAGS_IN(); 3149 ecx = MEM32(esi + 0x8); /* 0x3614959F: mov ecx, dword ptr [esi + 8] */ 3150 edx = MEM32(esi + 0x4); /* 0x361495A2: mov edx, dword ptr [esi + 4] */ 3151 PUSH32(esp, ecx); /* 0x361495A5: push ecx */ 3152 PUSH32(esp, edx); /* 0x361495A6: push edx */ 3153 ecx = esi; /* 0x361495A7: mov ecx, esi */ 3154 RECOMP_ICALL(0x36149DF0u); /* 0x361495A9: call 0x36149df0 */ /* not lifted */ 3155 RECOMP_FLAGS_IN(); 3156 eax = MEM32(esi + 0x4); /* 0x361495AE: mov eax, dword ptr [esi + 4] */ 3157 PUSH32(esp, eax); /* 0x361495B1: push eax */ 3158 RECOMP_ICALL(0x3615FCC4u); /* 0x361495B2: call 0x3615fcc4 */ /* not lifted */ 3159 RECOMP_FLAGS_IN(); 3160 eax = MEM32(ebp + (-0x2C)); /* 0x361495B7: mov eax, dword ptr [ebp - 0x2c] */ 3161 edi = MEM32(ebp + (-0x14)); /* 0x361495BA: mov edi, dword ptr [ebp - 0x14] */ 3162 eax = eax + eax * 4; /* 0x361495BD: lea eax, [eax + eax*4] */ 3163 ecx = edi + eax * 4; /* 0x361495C0: lea ecx, [edi + eax*4] */ 3164 MEM32(esi + 0xC) = ecx; /* 0x361495C3: mov dword ptr [esi + 0xc], ecx */ 3165 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3166 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3167 esp = esp + 4; /* 0x361495C6: add esp, 4 */ 3168 _flag_k = FK_ADD; 3169 ecx = esi; /* 0x361495C9: mov ecx, esi */ 3170 RECOMP_ICALL(0x36149DC0u); /* 0x361495CB: call 0x36149dc0 */ /* not lifted */ 3171 RECOMP_FLAGS_IN(); 3172 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3173 eax = eax + 1; /* 0x361495D0: inc eax */ 3174 _flag_k = FK_INC; 3175 edx = eax + eax * 4; /* 0x361495D1: lea edx, [eax + eax*4] */ 3176 eax = edi + edx * 4; /* 0x361495D4: lea eax, [edi + edx*4] */ 3177 MEM32(esi + 0x8) = eax; /* 0x361495D7: mov dword ptr [esi + 8], eax */ 3178 MEM32(esi + 0x4) = edi; /* 0x361495DA: mov dword ptr [esi + 4], edi */ 3179 goto L_36149681; /* 0x361495DD: jmp 0x36149681 */ 3180 L_361495E2: 3181 edx = ecx; /* 0x361495E2: mov edx, ecx */ 3182 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 3183 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3184 edx = edx - edi; /* 0x361495E4: sub edx, edi */ 3185 _flag_k = FK_CMP; 3186 eax = 0x66666667u; /* 0x361495E6: mov eax, 0x66666667 */ 3187 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361495EB: imul edx */ 3188 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 3189 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 3190 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361495ED: sar edx, 3 */ 3191 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3192 edx = (uint32_t)((int32_t)edx >> 3u); 3193 eax = edx; /* 0x361495F0: mov eax, edx */ 3194 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361495F2: shr eax, 0x1f */ 3195 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3196 eax = eax >> 31u; /* 0x361495F2: shr eax, 0x1f */ 3197 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3198 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3199 edx = edx + eax; /* 0x361495F5: add edx, eax */ 3200 _flag_k = FK_ADD; 3201 /* cmp edx, 1 */ /* 0x361495F7: cmp edx, 1 */ 3202 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3203 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3204 _flag_k = FK_CMP; 3205 if (CMP_AE(_flag_a, _flag_b)) goto L_3614964E; /* 0x361495FA: jae 0x3614964e */ 3206 L_361495FC: 3207 edx = edi + 0x14; /* 0x361495FC: lea edx, [edi + 0x14] */ 3208 PUSH32(esp, edx); /* 0x361495FF: push edx */ 3209 PUSH32(esp, ecx); /* 0x36149600: push ecx */ 3210 PUSH32(esp, edi); /* 0x36149601: push edi */ 3211 ecx = esi; /* 0x36149602: mov ecx, esi */ 3212 RECOMP_ICALL(0x36149E20u); /* 0x36149604: call 0x36149e20 */ /* not lifted */ 3213 RECOMP_FLAGS_IN(); 3214 ecx = MEM32(esi + 0x8); /* 0x36149609: mov ecx, dword ptr [esi + 8] */ 3215 eax = ebp + (-0x84); /* 0x3614960C: lea eax, [ebp - 0x84] */ 3216 PUSH32(esp, eax); /* 0x36149612: push eax */ 3217 edx = ecx; /* 0x36149613: mov edx, ecx */ 3218 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 3219 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3220 edx = edx - edi; /* 0x36149615: sub edx, edi */ 3221 _flag_k = FK_CMP; 3222 eax = 0x66666667u; /* 0x36149617: mov eax, 0x66666667 */ 3223 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3614961C: imul edx */ 3224 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 3225 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 3226 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3614961E: sar edx, 3 */ 3227 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3228 edx = (uint32_t)((int32_t)edx >> 3u); 3229 eax = edx; /* 0x36149621: mov eax, edx */ 3230 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149623: shr eax, 0x1f */ 3231 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3232 eax = eax >> 31u; /* 0x36149623: shr eax, 0x1f */ 3233 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3234 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3235 edx = edx + eax; /* 0x36149626: add edx, eax */ 3236 _flag_k = FK_ADD; 3237 eax = 1; /* 0x36149628: mov eax, 1 */ 3238 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3239 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3240 eax = eax - edx; /* 0x3614962D: sub eax, edx */ 3241 _flag_k = FK_CMP; 3242 PUSH32(esp, eax); /* 0x3614962F: push eax */ 3243 PUSH32(esp, ecx); /* 0x36149630: push ecx */ 3244 ecx = esi; /* 0x36149631: mov ecx, esi */ 3245 RECOMP_ICALL(0x3614A190u); /* 0x36149633: call 0x3614a190 */ /* not lifted */ 3246 RECOMP_FLAGS_IN(); 3247 edx = MEM32(esi + 0x8); /* 0x36149638: mov edx, dword ptr [esi + 8] */ 3248 ecx = ebp + (-0x84); /* 0x3614963B: lea ecx, [ebp - 0x84] */ 3249 PUSH32(esp, ecx); /* 0x36149641: push ecx */ 3250 PUSH32(esp, edx); /* 0x36149642: push edx */ 3251 PUSH32(esp, edi); /* 0x36149643: push edi */ 3252 RECOMP_ICALL(0x3614A2A0u); /* 0x36149644: call 0x3614a2a0 */ /* not lifted */ 3253 RECOMP_FLAGS_IN(); 3254 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3255 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3256 esp = esp + 0xCu; /* 0x36149649: add esp, 0xc */ 3257 _flag_k = FK_ADD; 3258 goto L_3614967D; /* 0x3614964C: jmp 0x3614967d */ 3259 L_3614964E: 3260 PUSH32(esp, ecx); /* 0x3614964E: push ecx */ 3261 PUSH32(esp, ecx); /* 0x3614964F: push ecx */ 3262 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu); 3263 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3264 ecx = ecx + 0xFFFFFFECu; /* 0x36149650: add ecx, -0x14 */ 3265 _flag_k = FK_ADD; 3266 PUSH32(esp, ecx); /* 0x36149653: push ecx */ 3267 ecx = esi; /* 0x36149654: mov ecx, esi */ 3268 RECOMP_ICALL(0x36149E20u); /* 0x36149656: call 0x36149e20 */ /* not lifted */ 3269 RECOMP_FLAGS_IN(); 3270 eax = MEM32(esi + 0x8); /* 0x3614965B: mov eax, dword ptr [esi + 8] */ 3271 PUSH32(esp, eax); /* 0x3614965E: push eax */ 3272 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu); 3273 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3274 eax = eax + 0xFFFFFFECu; /* 0x3614965F: add eax, -0x14 */ 3275 _flag_k = FK_ADD; 3276 PUSH32(esp, eax); /* 0x36149662: push eax */ 3277 PUSH32(esp, edi); /* 0x36149663: push edi */ 3278 RECOMP_ICALL(0x3614A2D0u); /* 0x36149664: call 0x3614a2d0 */ /* not lifted */ 3279 RECOMP_FLAGS_IN(); 3280 eax = ebp + (-0x84); /* 0x36149669: lea eax, [ebp - 0x84] */ 3281 PUSH32(esp, eax); /* 0x3614966F: push eax */ 3282 ecx = edi + 0x14; /* 0x36149670: lea ecx, [edi + 0x14] */ 3283 PUSH32(esp, ecx); /* 0x36149673: push ecx */ 3284 PUSH32(esp, edi); /* 0x36149674: push edi */ 3285 RECOMP_ICALL(0x3614A2A0u); /* 0x36149675: call 0x3614a2a0 */ /* not lifted */ 3286 RECOMP_FLAGS_IN(); 3287 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 3288 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3289 esp = esp + 0x18u; /* 0x3614967A: add esp, 0x18 */ 3290 _flag_k = FK_ADD; 3291 L_3614967D: 3292 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x14u); 3293 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3294 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x14u; /* 0x3614967D: add dword ptr [esi + 8], 0x14 */ 3295 _flag_k = FK_ADD; 3296 L_36149681: 3297 ecx = ebp + (-0x84); /* 0x36149681: lea ecx, [ebp - 0x84] */ 3298 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149687: mov dword ptr [ebp - 4], 0xffffffff */ 3299 RECOMP_ICALL(0x3602F7D0u); /* 0x3614968E: call 0x3602f7d0 */ /* not lifted */ 3300 RECOMP_FLAGS_IN(); 3301 eax = MEM32(ebp + (-0x10)); /* 0x36149693: mov eax, dword ptr [ebp - 0x10] */ 3302 edx = MEM32(ebp + (-0x4C)); /* 0x36149696: mov edx, dword ptr [ebp - 0x4c] */ 3303 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3304 eax = eax + 1; /* 0x36149699: inc eax */ 3305 _flag_k = FK_INC; 3306 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 3307 edx = edx & 0xFFu; /* 0x3614969A: and edx, 0xff */ 3308 _cf = 0; 3309 _flag_k = FK_TEST; 3310 /* cmp eax, edx */ /* 0x361496A0: cmp eax, edx */ 3311 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3312 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3313 _flag_k = FK_CMP; 3314 MEM32(ebp + (-0x10)) = eax; /* 0x361496A2: mov dword ptr [ebp - 0x10], eax */ 3315 RECOMP_BACKEDGE(); 3316 if (CMP_L(_flag_a, _flag_b)) goto L_361494CA; /* 0x361496A5: jl 0x361494ca */ 3317 L_361496AB: 3318 SET_LO8(eax, MEM8(ebp + (-0x50))); /* 0x361496AB: mov al, byte ptr [ebp - 0x50] */ 3319 /* test LO8(eax), LO8(eax) */ /* 0x361496AE: test al, al */ 3320 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3321 _cf = 0; 3322 _flag_k = FK_NARROW(FK_TEST, 24); 3323 MEM32(ebp + (-0x14)) = 0; /* 0x361496B0: mov dword ptr [ebp - 0x14], 0 */ 3324 if (TEST_Z(_flag_a, _flag_b)) goto L_361498AA; /* 0x361496B7: jbe 0x361498aa */ 3325 L_361496BD: 3326 ecx = ebp + (-0xAC); /* 0x361496BD: lea ecx, [ebp - 0xac] */ 3327 RECOMP_ICALL(0x3602F870u); /* 0x361496C3: call 0x3602f870 */ /* not lifted */ 3328 RECOMP_FLAGS_IN(); 3329 ecx = MEM32(ebp + 0x8); /* 0x361496C8: mov ecx, dword ptr [ebp + 8] */ 3330 eax = ebp + (-0xAC); /* 0x361496CB: lea eax, [ebp - 0xac] */ 3331 PUSH32(esp, eax); /* 0x361496D1: push eax */ 3332 PUSH32(esp, ecx); /* 0x361496D2: push ecx */ 3333 MEM32(ebp + (-0x4)) = 1; /* 0x361496D3: mov dword ptr [ebp - 4], 1 */ 3334 RECOMP_ICALL(0x3602F9B0u); /* 0x361496DA: call 0x3602f9b0 */ /* not lifted */ 3335 RECOMP_FLAGS_IN(); 3336 esi = MEM32(ebx + 0x54); /* 0x361496DF: mov esi, dword ptr [ebx + 0x54] */ 3337 ecx = MEM32(esi + 0x8); /* 0x361496E2: mov ecx, dword ptr [esi + 8] */ 3338 edx = MEM32(esi + 0xC); /* 0x361496E5: mov edx, dword ptr [esi + 0xc] */ 3339 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3341 edx = edx - ecx; /* 0x361496E8: sub edx, ecx */ 3342 _flag_k = FK_CMP; 3343 MEM32(ebp + (-0x18)) = edx; /* 0x361496EA: mov dword ptr [ebp - 0x18], edx */ 3344 eax = 0x88888889u; /* 0x361496ED: mov eax, 0x88888889 */ 3345 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361496F2: imul edx */ 3346 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 3347 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 3348 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 3349 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3350 edx = edx + MEM32(ebp + (-0x18)); /* 0x361496F4: add edx, dword ptr [ebp - 0x18] */ 3351 _flag_k = FK_ADD; 3352 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361496F7: sar edx, 5 */ 3353 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3354 edx = (uint32_t)((int32_t)edx >> 5u); 3355 eax = edx; /* 0x361496FA: mov eax, edx */ 3356 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361496FC: shr eax, 0x1f */ 3357 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3358 eax = eax >> 31u; /* 0x361496FC: shr eax, 0x1f */ 3359 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3360 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3361 edx = edx + eax; /* 0x361496FF: add edx, eax */ 3362 _flag_k = FK_ADD; 3363 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3364 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3365 esp = esp + 8; /* 0x36149701: add esp, 8 */ 3366 _flag_k = FK_ADD; 3367 /* cmp edx, 1 */ /* 0x36149704: cmp edx, 1 */ 3368 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3369 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3370 _flag_k = FK_CMP; 3371 edi = ecx; /* 0x36149707: mov edi, ecx */ 3372 if (CMP_AE(_flag_a, _flag_b)) goto L_361497D8; /* 0x36149709: jae 0x361497d8 */ 3373 L_3614970F: 3374 eax = MEM32(esi + 0x4); /* 0x3614970F: mov eax, dword ptr [esi + 4] */ 3375 /* test eax, eax */ /* 0x36149712: test eax, eax */ 3376 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3377 _cf = 0; 3378 _flag_k = FK_TEST; 3379 if (TEST_Z(_flag_a, _flag_b)) goto L_36149732; /* 0x36149714: je 0x36149732 */ 3380 L_36149716: 3381 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3382 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3383 ecx = ecx - eax; /* 0x36149716: sub ecx, eax */ 3384 _flag_k = FK_CMP; 3385 eax = 0x88888889u; /* 0x36149718: mov eax, 0x88888889 */ 3386 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3614971D: imul ecx */ 3387 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 3388 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 3389 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3390 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3391 edx = edx + ecx; /* 0x3614971F: add edx, ecx */ 3392 _flag_k = FK_ADD; 3393 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36149721: sar edx, 5 */ 3394 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3395 edx = (uint32_t)((int32_t)edx >> 5u); 3396 ecx = edx; /* 0x36149724: mov ecx, edx */ 3397 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36149726: shr ecx, 0x1f */ 3398 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3399 ecx = ecx >> 31u; /* 0x36149726: shr ecx, 0x1f */ 3400 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3401 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3402 edx = edx + ecx; /* 0x36149729: add edx, ecx */ 3403 _flag_k = FK_ADD; 3404 /* cmp edx, 1 */ /* 0x3614972B: cmp edx, 1 */ 3405 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3406 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3407 _flag_k = FK_CMP; 3408 ebx = edx; /* 0x3614972E: mov ebx, edx */ 3409 if (CMP_A(_flag_a, _flag_b)) goto L_36149737; /* 0x36149730: ja 0x36149737 */ 3410 L_36149732: 3411 ebx = 1; /* 0x36149732: mov ebx, 1 */ 3412 L_36149737: 3413 ecx = esi; /* 0x36149737: mov ecx, esi */ 3414 RECOMP_ICALL(0x36149E90u); /* 0x36149739: call 0x36149e90 */ /* not lifted */ 3415 RECOMP_FLAGS_IN(); 3416 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3417 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3418 eax = eax + ebx; /* 0x3614973E: add eax, ebx */ 3419 _flag_k = FK_ADD; 3420 MEM32(ebp + (-0x2C)) = eax; /* 0x36149740: mov dword ptr [ebp - 0x2c], eax */ 3421 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149747; /* 0x36149743: jns 0x36149747 */ 3422 L_36149745: 3423 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3424 eax = 0; /* 0x36149745: xor eax, eax */ 3425 _cf = 0; 3426 _flag_k = FK_TEST; 3427 L_36149747: 3428 eax = eax + eax * 2; /* 0x36149747: lea eax, [eax + eax*2] */ 3429 edx = eax + eax * 4; /* 0x3614974A: lea edx, [eax + eax*4] */ 3430 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614974D: shl edx, 2 */ 3431 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3432 edx = edx << 2u; /* 0x3614974D: shl edx, 2 */ 3433 PUSH32(esp, edx); /* 0x36149750: push edx */ 3434 RECOMP_ICALL(0x3615FD6Au); /* 0x36149751: call 0x3615fd6a */ /* not lifted */ 3435 RECOMP_FLAGS_IN(); 3436 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3437 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3438 esp = esp + 4; /* 0x36149756: add esp, 4 */ 3439 _flag_k = FK_ADD; 3440 ebx = eax; /* 0x36149759: mov ebx, eax */ 3441 eax = MEM32(esi + 0x4); /* 0x3614975B: mov eax, dword ptr [esi + 4] */ 3442 PUSH32(esp, ebx); /* 0x3614975E: push ebx */ 3443 PUSH32(esp, edi); /* 0x3614975F: push edi */ 3444 PUSH32(esp, eax); /* 0x36149760: push eax */ 3445 ecx = esi; /* 0x36149761: mov ecx, esi */ 3446 RECOMP_ICALL(0x36149EF0u); /* 0x36149763: call 0x36149ef0 */ /* not lifted */ 3447 RECOMP_FLAGS_IN(); 3448 ecx = ebp + (-0xAC); /* 0x36149768: lea ecx, [ebp - 0xac] */ 3449 PUSH32(esp, ecx); /* 0x3614976E: push ecx */ 3450 PUSH32(esp, 1); /* 0x3614976F: push 1 */ 3451 PUSH32(esp, eax); /* 0x36149771: push eax */ 3452 ecx = esi; /* 0x36149772: mov ecx, esi */ 3453 MEM32(ebp + (-0x18)) = eax; /* 0x36149774: mov dword ptr [ebp - 0x18], eax */ 3454 RECOMP_ICALL(0x3614A1C0u); /* 0x36149777: call 0x3614a1c0 */ /* not lifted */ 3455 RECOMP_FLAGS_IN(); 3456 edx = MEM32(ebp + (-0x18)); /* 0x3614977C: mov edx, dword ptr [ebp - 0x18] */ 3457 eax = MEM32(esi + 0x8); /* 0x3614977F: mov eax, dword ptr [esi + 8] */ 3458 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x3Cu); 3459 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3460 edx = edx + 0x3Cu; /* 0x36149782: add edx, 0x3c */ 3461 _flag_k = FK_ADD; 3462 PUSH32(esp, edx); /* 0x36149785: push edx */ 3463 PUSH32(esp, eax); /* 0x36149786: push eax */ 3464 PUSH32(esp, edi); /* 0x36149787: push edi */ 3465 ecx = esi; /* 0x36149788: mov ecx, esi */ 3466 RECOMP_ICALL(0x36149EF0u); /* 0x3614978A: call 0x36149ef0 */ /* not lifted */ 3467 RECOMP_FLAGS_IN(); 3468 ecx = MEM32(esi + 0x8); /* 0x3614978F: mov ecx, dword ptr [esi + 8] */ 3469 edx = MEM32(esi + 0x4); /* 0x36149792: mov edx, dword ptr [esi + 4] */ 3470 PUSH32(esp, ecx); /* 0x36149795: push ecx */ 3471 PUSH32(esp, edx); /* 0x36149796: push edx */ 3472 ecx = esi; /* 0x36149797: mov ecx, esi */ 3473 RECOMP_ICALL(0x36149EC0u); /* 0x36149799: call 0x36149ec0 */ /* not lifted */ 3474 RECOMP_FLAGS_IN(); 3475 eax = MEM32(esi + 0x4); /* 0x3614979E: mov eax, dword ptr [esi + 4] */ 3476 PUSH32(esp, eax); /* 0x361497A1: push eax */ 3477 RECOMP_ICALL(0x3615FCC4u); /* 0x361497A2: call 0x3615fcc4 */ /* not lifted */ 3478 RECOMP_FLAGS_IN(); 3479 eax = MEM32(ebp + (-0x2C)); /* 0x361497A7: mov eax, dword ptr [ebp - 0x2c] */ 3480 eax = eax + eax * 2; /* 0x361497AA: lea eax, [eax + eax*2] */ 3481 eax = eax + eax * 4; /* 0x361497AD: lea eax, [eax + eax*4] */ 3482 ecx = ebx + eax * 4; /* 0x361497B0: lea ecx, [ebx + eax*4] */ 3483 MEM32(esi + 0xC) = ecx; /* 0x361497B3: mov dword ptr [esi + 0xc], ecx */ 3484 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3485 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3486 esp = esp + 4; /* 0x361497B6: add esp, 4 */ 3487 _flag_k = FK_ADD; 3488 ecx = esi; /* 0x361497B9: mov ecx, esi */ 3489 RECOMP_ICALL(0x36149E90u); /* 0x361497BB: call 0x36149e90 */ /* not lifted */ 3490 RECOMP_FLAGS_IN(); 3491 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3492 eax = eax + 1; /* 0x361497C0: inc eax */ 3493 _flag_k = FK_INC; 3494 eax = eax + eax * 2; /* 0x361497C1: lea eax, [eax + eax*2] */ 3495 edx = eax + eax * 4; /* 0x361497C4: lea edx, [eax + eax*4] */ 3496 eax = ebx + edx * 4; /* 0x361497C7: lea eax, [ebx + edx*4] */ 3497 MEM32(esi + 0x4) = ebx; /* 0x361497CA: mov dword ptr [esi + 4], ebx */ 3498 ebx = MEM32(ebp + 0xC); /* 0x361497CD: mov ebx, dword ptr [ebp + 0xc] */ 3499 MEM32(esi + 0x8) = eax; /* 0x361497D0: mov dword ptr [esi + 8], eax */ 3500 goto L_36149880; /* 0x361497D3: jmp 0x36149880 */ 3501 L_361497D8: 3502 edx = ecx; /* 0x361497D8: mov edx, ecx */ 3503 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 3504 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3505 edx = edx - edi; /* 0x361497DA: sub edx, edi */ 3506 _flag_k = FK_CMP; 3507 MEM32(ebp + (-0x18)) = edx; /* 0x361497DC: mov dword ptr [ebp - 0x18], edx */ 3508 eax = 0x88888889u; /* 0x361497DF: mov eax, 0x88888889 */ 3509 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361497E4: imul edx */ 3510 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 3511 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 3512 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 3513 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3514 edx = edx + MEM32(ebp + (-0x18)); /* 0x361497E6: add edx, dword ptr [ebp - 0x18] */ 3515 _flag_k = FK_ADD; 3516 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361497E9: sar edx, 5 */ 3517 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3518 edx = (uint32_t)((int32_t)edx >> 5u); 3519 eax = edx; /* 0x361497EC: mov eax, edx */ 3520 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361497EE: shr eax, 0x1f */ 3521 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3522 eax = eax >> 31u; /* 0x361497EE: shr eax, 0x1f */ 3523 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3524 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3525 edx = edx + eax; /* 0x361497F1: add edx, eax */ 3526 _flag_k = FK_ADD; 3527 /* cmp edx, 1 */ /* 0x361497F3: cmp edx, 1 */ 3528 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3529 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3530 _flag_k = FK_CMP; 3531 if (CMP_AE(_flag_a, _flag_b)) goto L_3614984D; /* 0x361497F6: jae 0x3614984d */ 3532 L_361497F8: 3533 edx = edi + 0x3C; /* 0x361497F8: lea edx, [edi + 0x3c] */ 3534 PUSH32(esp, edx); /* 0x361497FB: push edx */ 3535 PUSH32(esp, ecx); /* 0x361497FC: push ecx */ 3536 PUSH32(esp, edi); /* 0x361497FD: push edi */ 3537 ecx = esi; /* 0x361497FE: mov ecx, esi */ 3538 RECOMP_ICALL(0x36149EF0u); /* 0x36149800: call 0x36149ef0 */ /* not lifted */ 3539 RECOMP_FLAGS_IN(); 3540 ecx = MEM32(esi + 0x8); /* 0x36149805: mov ecx, dword ptr [esi + 8] */ 3541 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 3542 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3543 ecx = ecx - edi; /* 0x36149808: sub ecx, edi */ 3544 _flag_k = FK_CMP; 3545 eax = ebp + (-0xAC); /* 0x3614980A: lea eax, [ebp - 0xac] */ 3546 PUSH32(esp, eax); /* 0x36149810: push eax */ 3547 eax = 0x88888889u; /* 0x36149811: mov eax, 0x88888889 */ 3548 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149816: imul ecx */ 3549 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 3550 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 3551 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3552 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3553 edx = edx + ecx; /* 0x36149818: add edx, ecx */ 3554 _flag_k = FK_ADD; 3555 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x3614981A: sar edx, 5 */ 3556 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3557 edx = (uint32_t)((int32_t)edx >> 5u); 3558 ecx = edx; /* 0x3614981D: mov ecx, edx */ 3559 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614981F: shr ecx, 0x1f */ 3560 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3561 ecx = ecx >> 31u; /* 0x3614981F: shr ecx, 0x1f */ 3562 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3563 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3564 edx = edx + ecx; /* 0x36149822: add edx, ecx */ 3565 _flag_k = FK_ADD; 3566 eax = 1; /* 0x36149824: mov eax, 1 */ 3567 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3569 eax = eax - edx; /* 0x36149829: sub eax, edx */ 3570 _flag_k = FK_CMP; 3571 PUSH32(esp, eax); /* 0x3614982B: push eax */ 3572 eax = MEM32(esi + 0x8); /* 0x3614982C: mov eax, dword ptr [esi + 8] */ 3573 PUSH32(esp, eax); /* 0x3614982F: push eax */ 3574 ecx = esi; /* 0x36149830: mov ecx, esi */ 3575 RECOMP_ICALL(0x3614A1C0u); /* 0x36149832: call 0x3614a1c0 */ /* not lifted */ 3576 RECOMP_FLAGS_IN(); 3577 edx = MEM32(esi + 0x8); /* 0x36149837: mov edx, dword ptr [esi + 8] */ 3578 ecx = ebp + (-0xAC); /* 0x3614983A: lea ecx, [ebp - 0xac] */ 3579 PUSH32(esp, ecx); /* 0x36149840: push ecx */ 3580 PUSH32(esp, edx); /* 0x36149841: push edx */ 3581 PUSH32(esp, edi); /* 0x36149842: push edi */ 3582 RECOMP_ICALL(0x3614A360u); /* 0x36149843: call 0x3614a360 */ /* not lifted */ 3583 RECOMP_FLAGS_IN(); 3584 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3585 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3586 esp = esp + 0xCu; /* 0x36149848: add esp, 0xc */ 3587 _flag_k = FK_ADD; 3588 goto L_3614987C; /* 0x3614984B: jmp 0x3614987c */ 3589 L_3614984D: 3590 PUSH32(esp, ecx); /* 0x3614984D: push ecx */ 3591 PUSH32(esp, ecx); /* 0x3614984E: push ecx */ 3592 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC4u); 3593 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3594 ecx = ecx + 0xFFFFFFC4u; /* 0x3614984F: add ecx, -0x3c */ 3595 _flag_k = FK_ADD; 3596 PUSH32(esp, ecx); /* 0x36149852: push ecx */ 3597 ecx = esi; /* 0x36149853: mov ecx, esi */ 3598 RECOMP_ICALL(0x36149EF0u); /* 0x36149855: call 0x36149ef0 */ /* not lifted */ 3599 RECOMP_FLAGS_IN(); 3600 eax = MEM32(esi + 0x8); /* 0x3614985A: mov eax, dword ptr [esi + 8] */ 3601 PUSH32(esp, eax); /* 0x3614985D: push eax */ 3602 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFC4u); 3603 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3604 eax = eax + 0xFFFFFFC4u; /* 0x3614985E: add eax, -0x3c */ 3605 _flag_k = FK_ADD; 3606 PUSH32(esp, eax); /* 0x36149861: push eax */ 3607 PUSH32(esp, edi); /* 0x36149862: push edi */ 3608 RECOMP_ICALL(0x3614A390u); /* 0x36149863: call 0x3614a390 */ /* not lifted */ 3609 RECOMP_FLAGS_IN(); 3610 eax = ebp + (-0xAC); /* 0x36149868: lea eax, [ebp - 0xac] */ 3611 PUSH32(esp, eax); /* 0x3614986E: push eax */ 3612 ecx = edi + 0x3C; /* 0x3614986F: lea ecx, [edi + 0x3c] */ 3613 PUSH32(esp, ecx); /* 0x36149872: push ecx */ 3614 PUSH32(esp, edi); /* 0x36149873: push edi */ 3615 RECOMP_ICALL(0x3614A360u); /* 0x36149874: call 0x3614a360 */ /* not lifted */ 3616 RECOMP_FLAGS_IN(); 3617 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 3618 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3619 esp = esp + 0x18u; /* 0x36149879: add esp, 0x18 */ 3620 _flag_k = FK_ADD; 3621 L_3614987C: 3622 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x3Cu); 3623 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3624 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x3Cu; /* 0x3614987C: add dword ptr [esi + 8], 0x3c */ 3625 _flag_k = FK_ADD; 3626 L_36149880: 3627 ecx = ebp + (-0xAC); /* 0x36149880: lea ecx, [ebp - 0xac] */ 3628 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149886: mov dword ptr [ebp - 4], 0xffffffff */ 3629 RECOMP_ICALL(0x3602F940u); /* 0x3614988D: call 0x3602f940 */ /* not lifted */ 3630 RECOMP_FLAGS_IN(); 3631 eax = MEM32(ebp + (-0x14)); /* 0x36149892: mov eax, dword ptr [ebp - 0x14] */ 3632 edx = MEM32(ebp + (-0x50)); /* 0x36149895: mov edx, dword ptr [ebp - 0x50] */ 3633 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3634 eax = eax + 1; /* 0x36149898: inc eax */ 3635 _flag_k = FK_INC; 3636 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 3637 edx = edx & 0xFFu; /* 0x36149899: and edx, 0xff */ 3638 _cf = 0; 3639 _flag_k = FK_TEST; 3640 /* cmp eax, edx */ /* 0x3614989F: cmp eax, edx */ 3641 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3643 _flag_k = FK_CMP; 3644 MEM32(ebp + (-0x14)) = eax; /* 0x361498A1: mov dword ptr [ebp - 0x14], eax */ 3645 RECOMP_BACKEDGE(); 3646 if (CMP_L(_flag_a, _flag_b)) goto L_361496BD; /* 0x361498A4: jl 0x361496bd */ 3647 L_361498AA: 3648 esi = MEM32(ebp + 0x8); /* 0x361498AA: mov esi, dword ptr [ebp + 8] */ 3649 ecx = esi; /* 0x361498AD: mov ecx, esi */ 3650 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361498AF: call dword ptr [0x3616fadc] */ 3651 RECOMP_FLAGS_IN(); 3652 /* test eax, eax */ /* 0x361498B5: test eax, eax */ 3653 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3654 _cf = 0; 3655 _flag_k = FK_TEST; 3656 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498F7; /* 0x361498B7: jne 0x361498f7 */ 3657 L_361498B9: 3658 ebx = MEM32(ebx); /* 0x361498B9: mov ebx, dword ptr [ebx] */ 3659 eax = MEM32(ebx + 0x4); /* 0x361498BB: mov eax, dword ptr [ebx + 4] */ 3660 /* test eax, eax */ /* 0x361498BE: test eax, eax */ 3661 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3662 _cf = 0; 3663 _flag_k = FK_TEST; 3664 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498C7; /* 0x361498C0: jne 0x361498c7 */ 3665 L_361498C2: 3666 eax = MEM32(0x3616F10C); /* 0x361498C2: mov eax, dword ptr [0x3616f10c] */ 3667 L_361498C7: 3668 PUSH32(esp, eax); /* 0x361498C7: push eax */ 3669 PUSH32(esp, 0x362E75FCu); /* 0x361498C8: push 0x362e75fc */ 3670 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361498CD: call dword ptr [0x3616f18c] */ 3671 RECOMP_FLAGS_IN(); 3672 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3673 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3674 esp = esp + 8; /* 0x361498D3: add esp, 8 */ 3675 _flag_k = FK_ADD; 3676 PUSH32(esp, 0x362E75CCu); /* 0x361498D6: push 0x362e75cc */ 3677 ecx = ebp + (-0xB4); /* 0x361498DB: lea ecx, [ebp - 0xb4] */ 3678 RECOMP_ICALL(0x36008EF0u); /* 0x361498E1: call 0x36008ef0 */ /* not lifted */ 3679 RECOMP_FLAGS_IN(); 3680 PUSH32(esp, 0x36184170u); /* 0x361498E6: push 0x36184170 */ 3681 eax = ebp + (-0xB4); /* 0x361498EB: lea eax, [ebp - 0xb4] */ 3682 PUSH32(esp, eax); /* 0x361498F1: push eax */ 3683 RECOMP_ICALL(0x3615FD70u); /* 0x361498F2: call 0x3615fd70 */ /* not lifted */ 3684 RECOMP_FLAGS_IN(); 3685 L_361498F7: 3686 ecx = MEM32(ebp + (-0xC)); /* 0x361498F7: mov ecx, dword ptr [ebp - 0xc] */ 3687 edi = POP32_VAL(esp); /* 0x361498FA: pop edi */ 3688 eax = esi; /* 0x361498FB: mov eax, esi */ 3689 esi = POP32_VAL(esp); /* 0x361498FD: pop esi */ 3690 ebx = POP32_VAL(esp); /* 0x361498FE: pop ebx */ 3691 MEM32(FS_BASE + (0)) = ecx; /* 0x361498FF: mov dword ptr fs:[0], ecx */ 3692 esp = ebp; /* 0x36149906: mov esp, ebp */ 3693 ebp = POP32_VAL(esp); /* 0x36149908: pop ebp */ 3694 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149909: ret */ 3695 RECOMP_REGS_OUT(); 3696 } 3697 3698 void sub_361491D9(void) { 3699 int _fpu_cmp = 0; 3700 uint32_t _cf = 0; 3701 int _df = 1; 3702 uint32_t _flag_k = FK_NONE; 3703 uint32_t _flag_a = 0, _flag_b = 0; 3704 uint32_t _itail_tgt = 0; 3705 RECOMP_REGS_LOCALS 3706 RECOMP_ENTER(0x361491D9u); 3707 3708 L_361491D9: 3709 ecx = MEM32(ebp + 0x8); /* 0x361491D9: mov ecx, dword ptr [ebp + 8] */ 3710 esi = MEM32(0x3616FAC8); /* 0x361491DC: mov esi, dword ptr [0x3616fac8] */ 3711 eax = ebp + (-0x1E); /* 0x361491E2: lea eax, [ebp - 0x1e] */ 3712 PUSH32(esp, eax); /* 0x361491E5: push eax */ 3713 RECOMP_ICALL(esi); /* 0x361491E6: call esi */ 3714 RECOMP_FLAGS_IN(); 3715 ecx = ebp + (-0x26); /* 0x361491E8: lea ecx, [ebp - 0x26] */ 3716 PUSH32(esp, ecx); /* 0x361491EB: push ecx */ 3717 ecx = eax; /* 0x361491EC: mov ecx, eax */ 3718 RECOMP_ICALL(esi); /* 0x361491EE: call esi */ 3719 RECOMP_FLAGS_IN(); 3720 esi = MEM32(ebx + 0x5C); /* 0x361491F0: mov esi, dword ptr [ebx + 0x5c] */ 3721 eax = MEM32(esi + 0x8); /* 0x361491F3: mov eax, dword ptr [esi + 8] */ 3722 edx = MEM32(esi + 0xC); /* 0x361491F6: mov edx, dword ptr [esi + 0xc] */ 3723 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3724 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3725 edx = edx - eax; /* 0x361491F9: sub edx, eax */ 3726 _flag_k = FK_CMP; 3727 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x361491FB: sar edx, 1 */ 3728 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3729 edx = (uint32_t)((int32_t)edx >> 1u); 3730 /* cmp edx, 1 */ /* 0x361491FD: cmp edx, 1 */ 3731 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3732 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3733 _flag_k = FK_CMP; 3734 edi = eax; /* 0x36149200: mov edi, eax */ 3735 if (CMP_AE(_flag_a, _flag_b)) goto L_361492B8; /* 0x36149202: jae 0x361492b8 */ 3736 L_36149208: 3737 ecx = MEM32(esi + 0x4); /* 0x36149208: mov ecx, dword ptr [esi + 4] */ 3738 /* test ecx, ecx */ /* 0x3614920B: test ecx, ecx */ 3739 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3740 _cf = 0; 3741 _flag_k = FK_TEST; 3742 if (TEST_Z(_flag_a, _flag_b)) goto L_36149224; /* 0x3614920D: je 0x36149224 */ 3743 L_3614920F: 3744 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3746 eax = eax - ecx; /* 0x3614920F: sub eax, ecx */ 3747 _flag_k = FK_CMP; 3748 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149211: sar eax, 1 */ 3749 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3750 eax = (uint32_t)((int32_t)eax >> 1u); 3751 /* cmp eax, 1 */ /* 0x36149213: cmp eax, 1 */ 3752 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3753 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3754 _flag_k = FK_CMP; 3755 if (CMP_BE(_flag_a, _flag_b)) goto L_36149224; /* 0x36149216: jbe 0x36149224 */ 3756 L_36149218: 3757 ecx = esi; /* 0x36149218: mov ecx, esi */ 3758 RECOMP_ICALL(0x36140430u); /* 0x3614921A: call 0x36140430 */ /* not lifted */ 3759 RECOMP_FLAGS_IN(); 3760 MEM32(ebp + (-0x10)) = eax; /* 0x3614921F: mov dword ptr [ebp - 0x10], eax */ 3761 goto L_3614922B; /* 0x36149222: jmp 0x3614922b */ 3762 L_36149224: 3763 MEM32(ebp + (-0x10)) = 1; /* 0x36149224: mov dword ptr [ebp - 0x10], 1 */ 3764 L_3614922B: 3765 ecx = esi; /* 0x3614922B: mov ecx, esi */ 3766 RECOMP_ICALL(0x36140430u); /* 0x3614922D: call 0x36140430 */ /* not lifted */ 3767 RECOMP_FLAGS_IN(); 3768 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 3769 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3770 eax = eax + MEM32(ebp + (-0x10)); /* 0x36149232: add eax, dword ptr [ebp - 0x10] */ 3771 _flag_k = FK_ADD; 3772 MEM32(ebp + (-0x18)) = eax; /* 0x36149235: mov dword ptr [ebp - 0x18], eax */ 3773 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_3614923C; /* 0x36149238: jns 0x3614923c */ 3774 L_3614923A: 3775 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3776 eax = 0; /* 0x3614923A: xor eax, eax */ 3777 _cf = 0; 3778 _flag_k = FK_TEST; 3779 L_3614923C: 3780 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3781 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3782 eax = eax + eax; /* 0x3614923C: add eax, eax */ 3783 _flag_k = FK_ADD; 3784 PUSH32(esp, eax); /* 0x3614923E: push eax */ 3785 RECOMP_ICALL(0x3615FD6Au); /* 0x3614923F: call 0x3615fd6a */ /* not lifted */ 3786 RECOMP_FLAGS_IN(); 3787 ecx = MEM32(esi + 0x4); /* 0x36149244: mov ecx, dword ptr [esi + 4] */ 3788 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3789 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3790 esp = esp + 4; /* 0x36149247: add esp, 4 */ 3791 _flag_k = FK_ADD; 3792 PUSH32(esp, eax); /* 0x3614924A: push eax */ 3793 PUSH32(esp, edi); /* 0x3614924B: push edi */ 3794 PUSH32(esp, ecx); /* 0x3614924C: push ecx */ 3795 ecx = esi; /* 0x3614924D: mov ecx, esi */ 3796 MEM32(ebp + (-0x2C)) = eax; /* 0x3614924F: mov dword ptr [ebp - 0x2c], eax */ 3797 RECOMP_ICALL(0x36140900u); /* 0x36149252: call 0x36140900 */ /* not lifted */ 3798 RECOMP_FLAGS_IN(); 3799 edx = ebp + (-0x1E); /* 0x36149257: lea edx, [ebp - 0x1e] */ 3800 PUSH32(esp, edx); /* 0x3614925A: push edx */ 3801 PUSH32(esp, 1); /* 0x3614925B: push 1 */ 3802 PUSH32(esp, eax); /* 0x3614925D: push eax */ 3803 ecx = esi; /* 0x3614925E: mov ecx, esi */ 3804 MEM32(ebp + (-0x10)) = eax; /* 0x36149260: mov dword ptr [ebp - 0x10], eax */ 3805 RECOMP_ICALL(0x3614A1F0u); /* 0x36149263: call 0x3614a1f0 */ /* not lifted */ 3806 RECOMP_FLAGS_IN(); 3807 eax = MEM32(ebp + (-0x10)); /* 0x36149268: mov eax, dword ptr [ebp - 0x10] */ 3808 ecx = MEM32(esi + 0x8); /* 0x3614926B: mov ecx, dword ptr [esi + 8] */ 3809 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 3810 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3811 eax = eax + 2; /* 0x3614926E: add eax, 2 */ 3812 _flag_k = FK_ADD; 3813 PUSH32(esp, eax); /* 0x36149271: push eax */ 3814 PUSH32(esp, ecx); /* 0x36149272: push ecx */ 3815 PUSH32(esp, edi); /* 0x36149273: push edi */ 3816 ecx = esi; /* 0x36149274: mov ecx, esi */ 3817 RECOMP_ICALL(0x36140900u); /* 0x36149276: call 0x36140900 */ /* not lifted */ 3818 RECOMP_FLAGS_IN(); 3819 edx = MEM32(esi + 0x8); /* 0x3614927B: mov edx, dword ptr [esi + 8] */ 3820 eax = MEM32(esi + 0x4); /* 0x3614927E: mov eax, dword ptr [esi + 4] */ 3821 PUSH32(esp, edx); /* 0x36149281: push edx */ 3822 PUSH32(esp, eax); /* 0x36149282: push eax */ 3823 ecx = esi; /* 0x36149283: mov ecx, esi */ 3824 RECOMP_ICALL(0x3610ED60u); /* 0x36149285: call 0x3610ed60 */ /* not lifted */ 3825 RECOMP_FLAGS_IN(); 3826 eax = MEM32(esi + 0x4); /* 0x3614928A: mov eax, dword ptr [esi + 4] */ 3827 PUSH32(esp, eax); /* 0x3614928D: push eax */ 3828 RECOMP_ICALL(0x3615FCC4u); /* 0x3614928E: call 0x3615fcc4 */ /* not lifted */ 3829 RECOMP_FLAGS_IN(); 3830 ecx = MEM32(ebp + (-0x18)); /* 0x36149293: mov ecx, dword ptr [ebp - 0x18] */ 3831 edi = MEM32(ebp + (-0x2C)); /* 0x36149296: mov edi, dword ptr [ebp - 0x2c] */ 3832 edx = edi + ecx * 2; /* 0x36149299: lea edx, [edi + ecx*2] */ 3833 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3834 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3835 esp = esp + 4; /* 0x3614929C: add esp, 4 */ 3836 _flag_k = FK_ADD; 3837 ecx = esi; /* 0x3614929F: mov ecx, esi */ 3838 MEM32(esi + 0xC) = edx; /* 0x361492A1: mov dword ptr [esi + 0xc], edx */ 3839 RECOMP_ICALL(0x36140430u); /* 0x361492A4: call 0x36140430 */ /* not lifted */ 3840 RECOMP_FLAGS_IN(); 3841 eax = edi + eax * 2 + 0x2; /* 0x361492A9: lea eax, [edi + eax*2 + 2] */ 3842 MEM32(esi + 0x8) = eax; /* 0x361492AD: mov dword ptr [esi + 8], eax */ 3843 MEM32(esi + 0x4) = edi; /* 0x361492B0: mov dword ptr [esi + 4], edi */ 3844 goto L_36149348; /* 0x361492B3: jmp 0x36149348 */ 3845 L_361492B8: 3846 ecx = eax; /* 0x361492B8: mov ecx, eax */ 3847 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 3848 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3849 ecx = ecx - edi; /* 0x361492BA: sub ecx, edi */ 3850 _flag_k = FK_CMP; 3851 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492BC: sar ecx, 1 */ 3852 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3853 ecx = (uint32_t)((int32_t)ecx >> 1u); 3854 /* cmp ecx, 1 */ /* 0x361492BE: cmp ecx, 1 */ 3855 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3856 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3857 _flag_k = FK_CMP; 3858 if (CMP_AE(_flag_a, _flag_b)) goto L_36149304; /* 0x361492C1: jae 0x36149304 */ 3859 L_361492C3: 3860 ecx = edi + 0x2; /* 0x361492C3: lea ecx, [edi + 2] */ 3861 PUSH32(esp, ecx); /* 0x361492C6: push ecx */ 3862 PUSH32(esp, eax); /* 0x361492C7: push eax */ 3863 PUSH32(esp, edi); /* 0x361492C8: push edi */ 3864 ecx = esi; /* 0x361492C9: mov ecx, esi */ 3865 RECOMP_ICALL(0x36140900u); /* 0x361492CB: call 0x36140900 */ /* not lifted */ 3866 RECOMP_FLAGS_IN(); 3867 eax = MEM32(esi + 0x8); /* 0x361492D0: mov eax, dword ptr [esi + 8] */ 3868 ecx = eax; /* 0x361492D3: mov ecx, eax */ 3869 edx = ebp + (-0x1E); /* 0x361492D5: lea edx, [ebp - 0x1e] */ 3870 PUSH32(esp, edx); /* 0x361492D8: push edx */ 3871 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 3872 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3873 ecx = ecx - edi; /* 0x361492D9: sub ecx, edi */ 3874 _flag_k = FK_CMP; 3875 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492DB: sar ecx, 1 */ 3876 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3877 ecx = (uint32_t)((int32_t)ecx >> 1u); 3878 edx = 1; /* 0x361492DD: mov edx, 1 */ 3879 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3880 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3881 edx = edx - ecx; /* 0x361492E2: sub edx, ecx */ 3882 _flag_k = FK_CMP; 3883 PUSH32(esp, edx); /* 0x361492E4: push edx */ 3884 PUSH32(esp, eax); /* 0x361492E5: push eax */ 3885 ecx = esi; /* 0x361492E6: mov ecx, esi */ 3886 RECOMP_ICALL(0x3614A1F0u); /* 0x361492E8: call 0x3614a1f0 */ /* not lifted */ 3887 RECOMP_FLAGS_IN(); 3888 eax = MEM32(esi + 0x8); /* 0x361492ED: mov eax, dword ptr [esi + 8] */ 3889 /* cmp edi, eax */ /* 0x361492F0: cmp edi, eax */ 3890 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3891 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3892 _flag_k = FK_CMP; 3893 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x361492F2: je 0x36149344 */ 3894 L_361492F4: 3895 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x361492F4: mov cx, word ptr [ebp - 0x1e] */ 3896 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x361492F8: mov word ptr [edi], cx */ 3897 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 3898 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3899 edi = edi + 2; /* 0x361492FB: add edi, 2 */ 3900 _flag_k = FK_ADD; 3901 /* cmp edi, eax */ /* 0x361492FE: cmp edi, eax */ 3902 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3903 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3904 _flag_k = FK_CMP; 3905 RECOMP_BACKEDGE(); 3906 if (CMP_NE(_flag_a, _flag_b)) goto L_361492F4; /* 0x36149300: jne 0x361492f4 */ 3907 L_36149302: 3908 goto L_36149344; /* 0x36149302: jmp 0x36149344 */ 3909 L_36149304: 3910 PUSH32(esp, eax); /* 0x36149304: push eax */ 3911 ecx = eax + (-0x2); /* 0x36149305: lea ecx, [eax - 2] */ 3912 PUSH32(esp, eax); /* 0x36149308: push eax */ 3913 MEM32(ebp + (-0x18)) = ecx; /* 0x36149309: mov dword ptr [ebp - 0x18], ecx */ 3914 PUSH32(esp, ecx); /* 0x3614930C: push ecx */ 3915 ecx = esi; /* 0x3614930D: mov ecx, esi */ 3916 RECOMP_ICALL(0x36140900u); /* 0x3614930F: call 0x36140900 */ /* not lifted */ 3917 RECOMP_FLAGS_IN(); 3918 ecx = MEM32(esi + 0x8); /* 0x36149314: mov ecx, dword ptr [esi + 8] */ 3919 eax = ecx + (-0x2); /* 0x36149317: lea eax, [ecx - 2] */ 3920 /* cmp edi, eax */ /* 0x3614931A: cmp edi, eax */ 3921 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3922 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3923 _flag_k = FK_CMP; 3924 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614932F; /* 0x3614931C: je 0x3614932f */ 3925 L_3614931E: 3926 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x3614931E: mov dx, word ptr [eax - 2] */ 3927 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 3928 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3929 eax = eax - 2; /* 0x36149322: sub eax, 2 */ 3930 _flag_k = FK_CMP; 3931 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 3932 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3933 ecx = ecx - 2; /* 0x36149325: sub ecx, 2 */ 3934 _flag_k = FK_CMP; 3935 /* cmp eax, edi */ /* 0x36149328: cmp eax, edi */ 3936 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3937 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3938 _flag_k = FK_CMP; 3939 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x3614932A: mov word ptr [ecx], dx */ 3940 RECOMP_BACKEDGE(); 3941 if (CMP_NE(_flag_a, _flag_b)) goto L_3614931E; /* 0x3614932D: jne 0x3614931e */ 3942 L_3614932F: 3943 eax = edi + 0x2; /* 0x3614932F: lea eax, [edi + 2] */ 3944 /* cmp edi, eax */ /* 0x36149332: cmp edi, eax */ 3945 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3946 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3947 _flag_k = FK_CMP; 3948 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x36149334: je 0x36149344 */ 3949 L_36149336: 3950 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x36149336: mov cx, word ptr [ebp - 0x1e] */ 3951 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x3614933A: mov word ptr [edi], cx */ 3952 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 3953 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3954 edi = edi + 2; /* 0x3614933D: add edi, 2 */ 3955 _flag_k = FK_ADD; 3956 /* cmp edi, eax */ /* 0x36149340: cmp edi, eax */ 3957 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3958 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3959 _flag_k = FK_CMP; 3960 RECOMP_BACKEDGE(); 3961 if (CMP_NE(_flag_a, _flag_b)) goto L_36149336; /* 0x36149342: jne 0x36149336 */ 3962 L_36149344: 3963 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 3964 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3965 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x36149344: add dword ptr [esi + 8], 2 */ 3966 _flag_k = FK_ADD; 3967 L_36149348: 3968 esi = MEM32(ebx + 0x5C); /* 0x36149348: mov esi, dword ptr [ebx + 0x5c] */ 3969 eax = MEM32(esi + 0x8); /* 0x3614934B: mov eax, dword ptr [esi + 8] */ 3970 edx = MEM32(esi + 0xC); /* 0x3614934E: mov edx, dword ptr [esi + 0xc] */ 3971 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3972 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3973 edx = edx - eax; /* 0x36149351: sub edx, eax */ 3974 _flag_k = FK_CMP; 3975 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36149353: sar edx, 1 */ 3976 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3977 edx = (uint32_t)((int32_t)edx >> 1u); 3978 /* cmp edx, 1 */ /* 0x36149355: cmp edx, 1 */ 3979 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3980 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3981 _flag_k = FK_CMP; 3982 edi = eax; /* 0x36149358: mov edi, eax */ 3983 if (CMP_AE(_flag_a, _flag_b)) goto L_36149410; /* 0x3614935A: jae 0x36149410 */ 3984 L_36149360: 3985 ecx = MEM32(esi + 0x4); /* 0x36149360: mov ecx, dword ptr [esi + 4] */ 3986 /* test ecx, ecx */ /* 0x36149363: test ecx, ecx */ 3987 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3988 _cf = 0; 3989 _flag_k = FK_TEST; 3990 if (TEST_Z(_flag_a, _flag_b)) goto L_3614937C; /* 0x36149365: je 0x3614937c */ 3991 L_36149367: 3992 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3993 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3994 eax = eax - ecx; /* 0x36149367: sub eax, ecx */ 3995 _flag_k = FK_CMP; 3996 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149369: sar eax, 1 */ 3997 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3998 eax = (uint32_t)((int32_t)eax >> 1u); 3999 /* cmp eax, 1 */ /* 0x3614936B: cmp eax, 1 */ 4000 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4001 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4002 _flag_k = FK_CMP; 4003 if (CMP_BE(_flag_a, _flag_b)) goto L_3614937C; /* 0x3614936E: jbe 0x3614937c */ 4004 L_36149370: 4005 ecx = esi; /* 0x36149370: mov ecx, esi */ 4006 RECOMP_ICALL(0x36140430u); /* 0x36149372: call 0x36140430 */ /* not lifted */ 4007 RECOMP_FLAGS_IN(); 4008 MEM32(ebp + (-0x10)) = eax; /* 0x36149377: mov dword ptr [ebp - 0x10], eax */ 4009 goto L_36149383; /* 0x3614937A: jmp 0x36149383 */ 4010 L_3614937C: 4011 MEM32(ebp + (-0x10)) = 1; /* 0x3614937C: mov dword ptr [ebp - 0x10], 1 */ 4012 L_36149383: 4013 ecx = esi; /* 0x36149383: mov ecx, esi */ 4014 RECOMP_ICALL(0x36140430u); /* 0x36149385: call 0x36140430 */ /* not lifted */ 4015 RECOMP_FLAGS_IN(); 4016 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 4017 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4018 eax = eax + MEM32(ebp + (-0x10)); /* 0x3614938A: add eax, dword ptr [ebp - 0x10] */ 4019 _flag_k = FK_ADD; 4020 MEM32(ebp + (-0x10)) = eax; /* 0x3614938D: mov dword ptr [ebp - 0x10], eax */ 4021 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149394; /* 0x36149390: jns 0x36149394 */ 4022 L_36149392: 4023 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4024 eax = 0; /* 0x36149392: xor eax, eax */ 4025 _cf = 0; 4026 _flag_k = FK_TEST; 4027 L_36149394: 4028 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4029 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4030 eax = eax + eax; /* 0x36149394: add eax, eax */ 4031 _flag_k = FK_ADD; 4032 PUSH32(esp, eax); /* 0x36149396: push eax */ 4033 RECOMP_ICALL(0x3615FD6Au); /* 0x36149397: call 0x3615fd6a */ /* not lifted */ 4034 RECOMP_FLAGS_IN(); 4035 ecx = MEM32(esi + 0x4); /* 0x3614939C: mov ecx, dword ptr [esi + 4] */ 4036 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4037 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4038 esp = esp + 4; /* 0x3614939F: add esp, 4 */ 4039 _flag_k = FK_ADD; 4040 PUSH32(esp, eax); /* 0x361493A2: push eax */ 4041 PUSH32(esp, edi); /* 0x361493A3: push edi */ 4042 PUSH32(esp, ecx); /* 0x361493A4: push ecx */ 4043 ecx = esi; /* 0x361493A5: mov ecx, esi */ 4044 MEM32(ebp + (-0x2C)) = eax; /* 0x361493A7: mov dword ptr [ebp - 0x2c], eax */ 4045 RECOMP_ICALL(0x36140900u); /* 0x361493AA: call 0x36140900 */ /* not lifted */ 4046 RECOMP_FLAGS_IN(); 4047 edx = ebp + (-0x26); /* 0x361493AF: lea edx, [ebp - 0x26] */ 4048 PUSH32(esp, edx); /* 0x361493B2: push edx */ 4049 PUSH32(esp, 1); /* 0x361493B3: push 1 */ 4050 PUSH32(esp, eax); /* 0x361493B5: push eax */ 4051 ecx = esi; /* 0x361493B6: mov ecx, esi */ 4052 MEM32(ebp + (-0x18)) = eax; /* 0x361493B8: mov dword ptr [ebp - 0x18], eax */ 4053 RECOMP_ICALL(0x3614A1F0u); /* 0x361493BB: call 0x3614a1f0 */ /* not lifted */ 4054 RECOMP_FLAGS_IN(); 4055 eax = MEM32(ebp + (-0x18)); /* 0x361493C0: mov eax, dword ptr [ebp - 0x18] */ 4056 ecx = MEM32(esi + 0x8); /* 0x361493C3: mov ecx, dword ptr [esi + 8] */ 4057 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 4058 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4059 eax = eax + 2; /* 0x361493C6: add eax, 2 */ 4060 _flag_k = FK_ADD; 4061 PUSH32(esp, eax); /* 0x361493C9: push eax */ 4062 PUSH32(esp, ecx); /* 0x361493CA: push ecx */ 4063 PUSH32(esp, edi); /* 0x361493CB: push edi */ 4064 ecx = esi; /* 0x361493CC: mov ecx, esi */ 4065 RECOMP_ICALL(0x36140900u); /* 0x361493CE: call 0x36140900 */ /* not lifted */ 4066 RECOMP_FLAGS_IN(); 4067 edx = MEM32(esi + 0x8); /* 0x361493D3: mov edx, dword ptr [esi + 8] */ 4068 eax = MEM32(esi + 0x4); /* 0x361493D6: mov eax, dword ptr [esi + 4] */ 4069 PUSH32(esp, edx); /* 0x361493D9: push edx */ 4070 PUSH32(esp, eax); /* 0x361493DA: push eax */ 4071 ecx = esi; /* 0x361493DB: mov ecx, esi */ 4072 RECOMP_ICALL(0x3610ED60u); /* 0x361493DD: call 0x3610ed60 */ /* not lifted */ 4073 RECOMP_FLAGS_IN(); 4074 eax = MEM32(esi + 0x4); /* 0x361493E2: mov eax, dword ptr [esi + 4] */ 4075 PUSH32(esp, eax); /* 0x361493E5: push eax */ 4076 RECOMP_ICALL(0x3615FCC4u); /* 0x361493E6: call 0x3615fcc4 */ /* not lifted */ 4077 RECOMP_FLAGS_IN(); 4078 ecx = MEM32(ebp + (-0x10)); /* 0x361493EB: mov ecx, dword ptr [ebp - 0x10] */ 4079 edi = MEM32(ebp + (-0x2C)); /* 0x361493EE: mov edi, dword ptr [ebp - 0x2c] */ 4080 edx = edi + ecx * 2; /* 0x361493F1: lea edx, [edi + ecx*2] */ 4081 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4082 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4083 esp = esp + 4; /* 0x361493F4: add esp, 4 */ 4084 _flag_k = FK_ADD; 4085 ecx = esi; /* 0x361493F7: mov ecx, esi */ 4086 MEM32(esi + 0xC) = edx; /* 0x361493F9: mov dword ptr [esi + 0xc], edx */ 4087 RECOMP_ICALL(0x36140430u); /* 0x361493FC: call 0x36140430 */ /* not lifted */ 4088 RECOMP_FLAGS_IN(); 4089 eax = edi + eax * 2 + 0x2; /* 0x36149401: lea eax, [edi + eax*2 + 2] */ 4090 MEM32(esi + 0x8) = eax; /* 0x36149405: mov dword ptr [esi + 8], eax */ 4091 MEM32(esi + 0x4) = edi; /* 0x36149408: mov dword ptr [esi + 4], edi */ 4092 goto L_361494A0; /* 0x3614940B: jmp 0x361494a0 */ 4093 L_36149410: 4094 ecx = eax; /* 0x36149410: mov ecx, eax */ 4095 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 4096 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4097 ecx = ecx - edi; /* 0x36149412: sub ecx, edi */ 4098 _flag_k = FK_CMP; 4099 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149414: sar ecx, 1 */ 4100 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4101 ecx = (uint32_t)((int32_t)ecx >> 1u); 4102 /* cmp ecx, 1 */ /* 0x36149416: cmp ecx, 1 */ 4103 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4105 _flag_k = FK_CMP; 4106 if (CMP_AE(_flag_a, _flag_b)) goto L_3614945C; /* 0x36149419: jae 0x3614945c */ 4107 L_3614941B: 4108 ecx = edi + 0x2; /* 0x3614941B: lea ecx, [edi + 2] */ 4109 PUSH32(esp, ecx); /* 0x3614941E: push ecx */ 4110 PUSH32(esp, eax); /* 0x3614941F: push eax */ 4111 PUSH32(esp, edi); /* 0x36149420: push edi */ 4112 ecx = esi; /* 0x36149421: mov ecx, esi */ 4113 RECOMP_ICALL(0x36140900u); /* 0x36149423: call 0x36140900 */ /* not lifted */ 4114 RECOMP_FLAGS_IN(); 4115 eax = MEM32(esi + 0x8); /* 0x36149428: mov eax, dword ptr [esi + 8] */ 4116 ecx = eax; /* 0x3614942B: mov ecx, eax */ 4117 edx = ebp + (-0x26); /* 0x3614942D: lea edx, [ebp - 0x26] */ 4118 PUSH32(esp, edx); /* 0x36149430: push edx */ 4119 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 4120 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4121 ecx = ecx - edi; /* 0x36149431: sub ecx, edi */ 4122 _flag_k = FK_CMP; 4123 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149433: sar ecx, 1 */ 4124 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4125 ecx = (uint32_t)((int32_t)ecx >> 1u); 4126 edx = 1; /* 0x36149435: mov edx, 1 */ 4127 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4128 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4129 edx = edx - ecx; /* 0x3614943A: sub edx, ecx */ 4130 _flag_k = FK_CMP; 4131 PUSH32(esp, edx); /* 0x3614943C: push edx */ 4132 PUSH32(esp, eax); /* 0x3614943D: push eax */ 4133 ecx = esi; /* 0x3614943E: mov ecx, esi */ 4134 RECOMP_ICALL(0x3614A1F0u); /* 0x36149440: call 0x3614a1f0 */ /* not lifted */ 4135 RECOMP_FLAGS_IN(); 4136 eax = MEM32(esi + 0x8); /* 0x36149445: mov eax, dword ptr [esi + 8] */ 4137 /* cmp edi, eax */ /* 0x36149448: cmp edi, eax */ 4138 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4139 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4140 _flag_k = FK_CMP; 4141 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614944A: je 0x3614949c */ 4142 L_3614944C: 4143 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614944C: mov cx, word ptr [ebp - 0x26] */ 4144 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149450: mov word ptr [edi], cx */ 4145 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 4146 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4147 edi = edi + 2; /* 0x36149453: add edi, 2 */ 4148 _flag_k = FK_ADD; 4149 /* cmp edi, eax */ /* 0x36149456: cmp edi, eax */ 4150 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4151 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4152 _flag_k = FK_CMP; 4153 RECOMP_BACKEDGE(); 4154 if (CMP_NE(_flag_a, _flag_b)) goto L_3614944C; /* 0x36149458: jne 0x3614944c */ 4155 L_3614945A: 4156 goto L_3614949C; /* 0x3614945A: jmp 0x3614949c */ 4157 L_3614945C: 4158 PUSH32(esp, eax); /* 0x3614945C: push eax */ 4159 ecx = eax + (-0x2); /* 0x3614945D: lea ecx, [eax - 2] */ 4160 PUSH32(esp, eax); /* 0x36149460: push eax */ 4161 MEM32(ebp + (-0x18)) = ecx; /* 0x36149461: mov dword ptr [ebp - 0x18], ecx */ 4162 PUSH32(esp, ecx); /* 0x36149464: push ecx */ 4163 ecx = esi; /* 0x36149465: mov ecx, esi */ 4164 RECOMP_ICALL(0x36140900u); /* 0x36149467: call 0x36140900 */ /* not lifted */ 4165 RECOMP_FLAGS_IN(); 4166 ecx = MEM32(esi + 0x8); /* 0x3614946C: mov ecx, dword ptr [esi + 8] */ 4167 eax = ecx + (-0x2); /* 0x3614946F: lea eax, [ecx - 2] */ 4168 /* cmp edi, eax */ /* 0x36149472: cmp edi, eax */ 4169 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4170 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4171 _flag_k = FK_CMP; 4172 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149487; /* 0x36149474: je 0x36149487 */ 4173 L_36149476: 4174 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x36149476: mov dx, word ptr [eax - 2] */ 4175 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 4176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4177 eax = eax - 2; /* 0x3614947A: sub eax, 2 */ 4178 _flag_k = FK_CMP; 4179 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 4180 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4181 ecx = ecx - 2; /* 0x3614947D: sub ecx, 2 */ 4182 _flag_k = FK_CMP; 4183 /* cmp eax, edi */ /* 0x36149480: cmp eax, edi */ 4184 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4185 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4186 _flag_k = FK_CMP; 4187 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x36149482: mov word ptr [ecx], dx */ 4188 RECOMP_BACKEDGE(); 4189 if (CMP_NE(_flag_a, _flag_b)) goto L_36149476; /* 0x36149485: jne 0x36149476 */ 4190 L_36149487: 4191 eax = edi + 0x2; /* 0x36149487: lea eax, [edi + 2] */ 4192 /* cmp edi, eax */ /* 0x3614948A: cmp edi, eax */ 4193 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4194 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4195 _flag_k = FK_CMP; 4196 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614948C: je 0x3614949c */ 4197 L_3614948E: 4198 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614948E: mov cx, word ptr [ebp - 0x26] */ 4199 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149492: mov word ptr [edi], cx */ 4200 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 4201 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4202 edi = edi + 2; /* 0x36149495: add edi, 2 */ 4203 _flag_k = FK_ADD; 4204 /* cmp edi, eax */ /* 0x36149498: cmp edi, eax */ 4205 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4206 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4207 _flag_k = FK_CMP; 4208 RECOMP_BACKEDGE(); 4209 if (CMP_NE(_flag_a, _flag_b)) goto L_3614948E; /* 0x3614949A: jne 0x3614948e */ 4210 L_3614949C: 4211 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 4212 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4213 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x3614949C: add dword ptr [esi + 8], 2 */ 4214 _flag_k = FK_ADD; 4215 L_361494A0: 4216 eax = MEM32(ebp + (-0x14)); /* 0x361494A0: mov eax, dword ptr [ebp - 0x14] */ 4217 edx = MEM32(ebp + (-0x64)); /* 0x361494A3: mov edx, dword ptr [ebp - 0x64] */ 4218 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4219 eax = eax + 1; /* 0x361494A6: inc eax */ 4220 _flag_k = FK_INC; 4221 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 4222 edx = edx & 0xFFu; /* 0x361494A7: and edx, 0xff */ 4223 _cf = 0; 4224 _flag_k = FK_TEST; 4225 /* cmp eax, edx */ /* 0x361494AD: cmp eax, edx */ 4226 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4227 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4228 _flag_k = FK_CMP; 4229 MEM32(ebp + (-0x14)) = eax; /* 0x361494AF: mov dword ptr [ebp - 0x14], eax */ 4230 RECOMP_BACKEDGE(); 4231 if (CMP_B(_flag_a, _flag_b)) goto L_361491D9; /* 0x361494B2: jb 0x361491d9 */ 4232 L_361494B8: 4233 SET_LO8(eax, MEM8(ebp + (-0x4C))); /* 0x361494B8: mov al, byte ptr [ebp - 0x4c] */ 4234 /* test LO8(eax), LO8(eax) */ /* 0x361494BB: test al, al */ 4235 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4236 _cf = 0; 4237 _flag_k = FK_NARROW(FK_TEST, 24); 4238 MEM32(ebp + (-0x10)) = 0; /* 0x361494BD: mov dword ptr [ebp - 0x10], 0 */ 4239 if (TEST_Z(_flag_a, _flag_b)) goto L_361496AB; /* 0x361494C4: jbe 0x361496ab */ 4240 L_361494CA: 4241 ecx = ebp + (-0x84); /* 0x361494CA: lea ecx, [ebp - 0x84] */ 4242 RECOMP_ICALL(0x3602F750u); /* 0x361494D0: call 0x3602f750 */ /* not lifted */ 4243 RECOMP_FLAGS_IN(); 4244 ecx = MEM32(ebp + 0x8); /* 0x361494D5: mov ecx, dword ptr [ebp + 8] */ 4245 eax = ebp + (-0x84); /* 0x361494D8: lea eax, [ebp - 0x84] */ 4246 PUSH32(esp, eax); /* 0x361494DE: push eax */ 4247 PUSH32(esp, ecx); /* 0x361494DF: push ecx */ 4248 MEM32(ebp + (-0x4)) = 0; /* 0x361494E0: mov dword ptr [ebp - 4], 0 */ 4249 RECOMP_ICALL(0x3602F810u); /* 0x361494E7: call 0x3602f810 */ /* not lifted */ 4250 RECOMP_FLAGS_IN(); 4251 esi = MEM32(ebx + 0x50); /* 0x361494EC: mov esi, dword ptr [ebx + 0x50] */ 4252 ecx = MEM32(esi + 0x8); /* 0x361494EF: mov ecx, dword ptr [esi + 8] */ 4253 edx = MEM32(esi + 0xC); /* 0x361494F2: mov edx, dword ptr [esi + 0xc] */ 4254 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4255 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4256 edx = edx - ecx; /* 0x361494F5: sub edx, ecx */ 4257 _flag_k = FK_CMP; 4258 eax = 0x66666667u; /* 0x361494F7: mov eax, 0x66666667 */ 4259 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361494FC: imul edx */ 4260 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 4261 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 4262 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361494FE: sar edx, 3 */ 4263 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4264 edx = (uint32_t)((int32_t)edx >> 3u); 4265 eax = edx; /* 0x36149501: mov eax, edx */ 4266 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149503: shr eax, 0x1f */ 4267 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4268 eax = eax >> 31u; /* 0x36149503: shr eax, 0x1f */ 4269 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4270 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4271 edx = edx + eax; /* 0x36149506: add edx, eax */ 4272 _flag_k = FK_ADD; 4273 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4274 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4275 esp = esp + 8; /* 0x36149508: add esp, 8 */ 4276 _flag_k = FK_ADD; 4277 /* cmp edx, 1 */ /* 0x3614950B: cmp edx, 1 */ 4278 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4279 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4280 _flag_k = FK_CMP; 4281 edi = ecx; /* 0x3614950E: mov edi, ecx */ 4282 if (CMP_AE(_flag_a, _flag_b)) goto L_361495E2; /* 0x36149510: jae 0x361495e2 */ 4283 L_36149516: 4284 eax = MEM32(esi + 0x4); /* 0x36149516: mov eax, dword ptr [esi + 4] */ 4285 /* test eax, eax */ /* 0x36149519: test eax, eax */ 4286 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4287 _cf = 0; 4288 _flag_k = FK_TEST; 4289 if (TEST_Z(_flag_a, _flag_b)) goto L_36149541; /* 0x3614951B: je 0x36149541 */ 4290 L_3614951D: 4291 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4292 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4293 ecx = ecx - eax; /* 0x3614951D: sub ecx, eax */ 4294 _flag_k = FK_CMP; 4295 eax = 0x66666667u; /* 0x3614951F: mov eax, 0x66666667 */ 4296 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149524: imul ecx */ 4297 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 4298 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 4299 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149526: sar edx, 3 */ 4300 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4301 edx = (uint32_t)((int32_t)edx >> 3u); 4302 ecx = edx; /* 0x36149529: mov ecx, edx */ 4303 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614952B: shr ecx, 0x1f */ 4304 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4305 ecx = ecx >> 31u; /* 0x3614952B: shr ecx, 0x1f */ 4306 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4307 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4308 edx = edx + ecx; /* 0x3614952E: add edx, ecx */ 4309 _flag_k = FK_ADD; 4310 /* cmp edx, 1 */ /* 0x36149530: cmp edx, 1 */ 4311 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4312 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4313 _flag_k = FK_CMP; 4314 if (CMP_BE(_flag_a, _flag_b)) goto L_36149541; /* 0x36149533: jbe 0x36149541 */ 4315 L_36149535: 4316 ecx = esi; /* 0x36149535: mov ecx, esi */ 4317 RECOMP_ICALL(0x36149DC0u); /* 0x36149537: call 0x36149dc0 */ /* not lifted */ 4318 RECOMP_FLAGS_IN(); 4319 MEM32(ebp + (-0x14)) = eax; /* 0x3614953C: mov dword ptr [ebp - 0x14], eax */ 4320 goto L_36149548; /* 0x3614953F: jmp 0x36149548 */ 4321 L_36149541: 4322 MEM32(ebp + (-0x14)) = 1; /* 0x36149541: mov dword ptr [ebp - 0x14], 1 */ 4323 L_36149548: 4324 ecx = esi; /* 0x36149548: mov ecx, esi */ 4325 RECOMP_ICALL(0x36149DC0u); /* 0x3614954A: call 0x36149dc0 */ /* not lifted */ 4326 RECOMP_FLAGS_IN(); 4327 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 4328 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4329 eax = eax + MEM32(ebp + (-0x14)); /* 0x3614954F: add eax, dword ptr [ebp - 0x14] */ 4330 _flag_k = FK_ADD; 4331 MEM32(ebp + (-0x2C)) = eax; /* 0x36149552: mov dword ptr [ebp - 0x2c], eax */ 4332 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149559; /* 0x36149555: jns 0x36149559 */ 4333 L_36149557: 4334 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4335 eax = 0; /* 0x36149557: xor eax, eax */ 4336 _cf = 0; 4337 _flag_k = FK_TEST; 4338 L_36149559: 4339 edx = eax + eax * 4; /* 0x36149559: lea edx, [eax + eax*4] */ 4340 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614955C: shl edx, 2 */ 4341 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4342 edx = edx << 2u; /* 0x3614955C: shl edx, 2 */ 4343 PUSH32(esp, edx); /* 0x3614955F: push edx */ 4344 RECOMP_ICALL(0x3615FD6Au); /* 0x36149560: call 0x3615fd6a */ /* not lifted */ 4345 RECOMP_FLAGS_IN(); 4346 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4347 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4348 esp = esp + 4; /* 0x36149565: add esp, 4 */ 4349 _flag_k = FK_ADD; 4350 PUSH32(esp, eax); /* 0x36149568: push eax */ 4351 MEM32(ebp + (-0x14)) = eax; /* 0x36149569: mov dword ptr [ebp - 0x14], eax */ 4352 eax = MEM32(esi + 0x4); /* 0x3614956C: mov eax, dword ptr [esi + 4] */ 4353 PUSH32(esp, edi); /* 0x3614956F: push edi */ 4354 PUSH32(esp, eax); /* 0x36149570: push eax */ 4355 ecx = esi; /* 0x36149571: mov ecx, esi */ 4356 RECOMP_ICALL(0x36149E20u); /* 0x36149573: call 0x36149e20 */ /* not lifted */ 4357 RECOMP_FLAGS_IN(); 4358 ecx = ebp + (-0x84); /* 0x36149578: lea ecx, [ebp - 0x84] */ 4359 PUSH32(esp, ecx); /* 0x3614957E: push ecx */ 4360 PUSH32(esp, 1); /* 0x3614957F: push 1 */ 4361 PUSH32(esp, eax); /* 0x36149581: push eax */ 4362 ecx = esi; /* 0x36149582: mov ecx, esi */ 4363 MEM32(ebp + (-0x18)) = eax; /* 0x36149584: mov dword ptr [ebp - 0x18], eax */ 4364 RECOMP_ICALL(0x3614A190u); /* 0x36149587: call 0x3614a190 */ /* not lifted */ 4365 RECOMP_FLAGS_IN(); 4366 edx = MEM32(ebp + (-0x18)); /* 0x3614958C: mov edx, dword ptr [ebp - 0x18] */ 4367 eax = MEM32(esi + 0x8); /* 0x3614958F: mov eax, dword ptr [esi + 8] */ 4368 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u); 4369 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4370 edx = edx + 0x14u; /* 0x36149592: add edx, 0x14 */ 4371 _flag_k = FK_ADD; 4372 PUSH32(esp, edx); /* 0x36149595: push edx */ 4373 PUSH32(esp, eax); /* 0x36149596: push eax */ 4374 PUSH32(esp, edi); /* 0x36149597: push edi */ 4375 ecx = esi; /* 0x36149598: mov ecx, esi */ 4376 RECOMP_ICALL(0x36149E20u); /* 0x3614959A: call 0x36149e20 */ /* not lifted */ 4377 RECOMP_FLAGS_IN(); 4378 ecx = MEM32(esi + 0x8); /* 0x3614959F: mov ecx, dword ptr [esi + 8] */ 4379 edx = MEM32(esi + 0x4); /* 0x361495A2: mov edx, dword ptr [esi + 4] */ 4380 PUSH32(esp, ecx); /* 0x361495A5: push ecx */ 4381 PUSH32(esp, edx); /* 0x361495A6: push edx */ 4382 ecx = esi; /* 0x361495A7: mov ecx, esi */ 4383 RECOMP_ICALL(0x36149DF0u); /* 0x361495A9: call 0x36149df0 */ /* not lifted */ 4384 RECOMP_FLAGS_IN(); 4385 eax = MEM32(esi + 0x4); /* 0x361495AE: mov eax, dword ptr [esi + 4] */ 4386 PUSH32(esp, eax); /* 0x361495B1: push eax */ 4387 RECOMP_ICALL(0x3615FCC4u); /* 0x361495B2: call 0x3615fcc4 */ /* not lifted */ 4388 RECOMP_FLAGS_IN(); 4389 eax = MEM32(ebp + (-0x2C)); /* 0x361495B7: mov eax, dword ptr [ebp - 0x2c] */ 4390 edi = MEM32(ebp + (-0x14)); /* 0x361495BA: mov edi, dword ptr [ebp - 0x14] */ 4391 eax = eax + eax * 4; /* 0x361495BD: lea eax, [eax + eax*4] */ 4392 ecx = edi + eax * 4; /* 0x361495C0: lea ecx, [edi + eax*4] */ 4393 MEM32(esi + 0xC) = ecx; /* 0x361495C3: mov dword ptr [esi + 0xc], ecx */ 4394 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4395 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4396 esp = esp + 4; /* 0x361495C6: add esp, 4 */ 4397 _flag_k = FK_ADD; 4398 ecx = esi; /* 0x361495C9: mov ecx, esi */ 4399 RECOMP_ICALL(0x36149DC0u); /* 0x361495CB: call 0x36149dc0 */ /* not lifted */ 4400 RECOMP_FLAGS_IN(); 4401 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4402 eax = eax + 1; /* 0x361495D0: inc eax */ 4403 _flag_k = FK_INC; 4404 edx = eax + eax * 4; /* 0x361495D1: lea edx, [eax + eax*4] */ 4405 eax = edi + edx * 4; /* 0x361495D4: lea eax, [edi + edx*4] */ 4406 MEM32(esi + 0x8) = eax; /* 0x361495D7: mov dword ptr [esi + 8], eax */ 4407 MEM32(esi + 0x4) = edi; /* 0x361495DA: mov dword ptr [esi + 4], edi */ 4408 goto L_36149681; /* 0x361495DD: jmp 0x36149681 */ 4409 L_361495E2: 4410 edx = ecx; /* 0x361495E2: mov edx, ecx */ 4411 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 4412 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4413 edx = edx - edi; /* 0x361495E4: sub edx, edi */ 4414 _flag_k = FK_CMP; 4415 eax = 0x66666667u; /* 0x361495E6: mov eax, 0x66666667 */ 4416 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361495EB: imul edx */ 4417 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 4418 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 4419 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361495ED: sar edx, 3 */ 4420 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4421 edx = (uint32_t)((int32_t)edx >> 3u); 4422 eax = edx; /* 0x361495F0: mov eax, edx */ 4423 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361495F2: shr eax, 0x1f */ 4424 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4425 eax = eax >> 31u; /* 0x361495F2: shr eax, 0x1f */ 4426 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4427 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4428 edx = edx + eax; /* 0x361495F5: add edx, eax */ 4429 _flag_k = FK_ADD; 4430 /* cmp edx, 1 */ /* 0x361495F7: cmp edx, 1 */ 4431 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4432 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4433 _flag_k = FK_CMP; 4434 if (CMP_AE(_flag_a, _flag_b)) goto L_3614964E; /* 0x361495FA: jae 0x3614964e */ 4435 L_361495FC: 4436 edx = edi + 0x14; /* 0x361495FC: lea edx, [edi + 0x14] */ 4437 PUSH32(esp, edx); /* 0x361495FF: push edx */ 4438 PUSH32(esp, ecx); /* 0x36149600: push ecx */ 4439 PUSH32(esp, edi); /* 0x36149601: push edi */ 4440 ecx = esi; /* 0x36149602: mov ecx, esi */ 4441 RECOMP_ICALL(0x36149E20u); /* 0x36149604: call 0x36149e20 */ /* not lifted */ 4442 RECOMP_FLAGS_IN(); 4443 ecx = MEM32(esi + 0x8); /* 0x36149609: mov ecx, dword ptr [esi + 8] */ 4444 eax = ebp + (-0x84); /* 0x3614960C: lea eax, [ebp - 0x84] */ 4445 PUSH32(esp, eax); /* 0x36149612: push eax */ 4446 edx = ecx; /* 0x36149613: mov edx, ecx */ 4447 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 4448 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4449 edx = edx - edi; /* 0x36149615: sub edx, edi */ 4450 _flag_k = FK_CMP; 4451 eax = 0x66666667u; /* 0x36149617: mov eax, 0x66666667 */ 4452 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3614961C: imul edx */ 4453 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 4454 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 4455 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3614961E: sar edx, 3 */ 4456 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4457 edx = (uint32_t)((int32_t)edx >> 3u); 4458 eax = edx; /* 0x36149621: mov eax, edx */ 4459 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149623: shr eax, 0x1f */ 4460 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4461 eax = eax >> 31u; /* 0x36149623: shr eax, 0x1f */ 4462 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4463 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4464 edx = edx + eax; /* 0x36149626: add edx, eax */ 4465 _flag_k = FK_ADD; 4466 eax = 1; /* 0x36149628: mov eax, 1 */ 4467 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4468 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4469 eax = eax - edx; /* 0x3614962D: sub eax, edx */ 4470 _flag_k = FK_CMP; 4471 PUSH32(esp, eax); /* 0x3614962F: push eax */ 4472 PUSH32(esp, ecx); /* 0x36149630: push ecx */ 4473 ecx = esi; /* 0x36149631: mov ecx, esi */ 4474 RECOMP_ICALL(0x3614A190u); /* 0x36149633: call 0x3614a190 */ /* not lifted */ 4475 RECOMP_FLAGS_IN(); 4476 edx = MEM32(esi + 0x8); /* 0x36149638: mov edx, dword ptr [esi + 8] */ 4477 ecx = ebp + (-0x84); /* 0x3614963B: lea ecx, [ebp - 0x84] */ 4478 PUSH32(esp, ecx); /* 0x36149641: push ecx */ 4479 PUSH32(esp, edx); /* 0x36149642: push edx */ 4480 PUSH32(esp, edi); /* 0x36149643: push edi */ 4481 RECOMP_ICALL(0x3614A2A0u); /* 0x36149644: call 0x3614a2a0 */ /* not lifted */ 4482 RECOMP_FLAGS_IN(); 4483 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4484 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4485 esp = esp + 0xCu; /* 0x36149649: add esp, 0xc */ 4486 _flag_k = FK_ADD; 4487 goto L_3614967D; /* 0x3614964C: jmp 0x3614967d */ 4488 L_3614964E: 4489 PUSH32(esp, ecx); /* 0x3614964E: push ecx */ 4490 PUSH32(esp, ecx); /* 0x3614964F: push ecx */ 4491 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu); 4492 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4493 ecx = ecx + 0xFFFFFFECu; /* 0x36149650: add ecx, -0x14 */ 4494 _flag_k = FK_ADD; 4495 PUSH32(esp, ecx); /* 0x36149653: push ecx */ 4496 ecx = esi; /* 0x36149654: mov ecx, esi */ 4497 RECOMP_ICALL(0x36149E20u); /* 0x36149656: call 0x36149e20 */ /* not lifted */ 4498 RECOMP_FLAGS_IN(); 4499 eax = MEM32(esi + 0x8); /* 0x3614965B: mov eax, dword ptr [esi + 8] */ 4500 PUSH32(esp, eax); /* 0x3614965E: push eax */ 4501 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu); 4502 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4503 eax = eax + 0xFFFFFFECu; /* 0x3614965F: add eax, -0x14 */ 4504 _flag_k = FK_ADD; 4505 PUSH32(esp, eax); /* 0x36149662: push eax */ 4506 PUSH32(esp, edi); /* 0x36149663: push edi */ 4507 RECOMP_ICALL(0x3614A2D0u); /* 0x36149664: call 0x3614a2d0 */ /* not lifted */ 4508 RECOMP_FLAGS_IN(); 4509 eax = ebp + (-0x84); /* 0x36149669: lea eax, [ebp - 0x84] */ 4510 PUSH32(esp, eax); /* 0x3614966F: push eax */ 4511 ecx = edi + 0x14; /* 0x36149670: lea ecx, [edi + 0x14] */ 4512 PUSH32(esp, ecx); /* 0x36149673: push ecx */ 4513 PUSH32(esp, edi); /* 0x36149674: push edi */ 4514 RECOMP_ICALL(0x3614A2A0u); /* 0x36149675: call 0x3614a2a0 */ /* not lifted */ 4515 RECOMP_FLAGS_IN(); 4516 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 4517 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4518 esp = esp + 0x18u; /* 0x3614967A: add esp, 0x18 */ 4519 _flag_k = FK_ADD; 4520 L_3614967D: 4521 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x14u); 4522 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4523 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x14u; /* 0x3614967D: add dword ptr [esi + 8], 0x14 */ 4524 _flag_k = FK_ADD; 4525 L_36149681: 4526 ecx = ebp + (-0x84); /* 0x36149681: lea ecx, [ebp - 0x84] */ 4527 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149687: mov dword ptr [ebp - 4], 0xffffffff */ 4528 RECOMP_ICALL(0x3602F7D0u); /* 0x3614968E: call 0x3602f7d0 */ /* not lifted */ 4529 RECOMP_FLAGS_IN(); 4530 eax = MEM32(ebp + (-0x10)); /* 0x36149693: mov eax, dword ptr [ebp - 0x10] */ 4531 edx = MEM32(ebp + (-0x4C)); /* 0x36149696: mov edx, dword ptr [ebp - 0x4c] */ 4532 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4533 eax = eax + 1; /* 0x36149699: inc eax */ 4534 _flag_k = FK_INC; 4535 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 4536 edx = edx & 0xFFu; /* 0x3614969A: and edx, 0xff */ 4537 _cf = 0; 4538 _flag_k = FK_TEST; 4539 /* cmp eax, edx */ /* 0x361496A0: cmp eax, edx */ 4540 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4541 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4542 _flag_k = FK_CMP; 4543 MEM32(ebp + (-0x10)) = eax; /* 0x361496A2: mov dword ptr [ebp - 0x10], eax */ 4544 RECOMP_BACKEDGE(); 4545 if (CMP_L(_flag_a, _flag_b)) goto L_361494CA; /* 0x361496A5: jl 0x361494ca */ 4546 L_361496AB: 4547 SET_LO8(eax, MEM8(ebp + (-0x50))); /* 0x361496AB: mov al, byte ptr [ebp - 0x50] */ 4548 /* test LO8(eax), LO8(eax) */ /* 0x361496AE: test al, al */ 4549 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4550 _cf = 0; 4551 _flag_k = FK_NARROW(FK_TEST, 24); 4552 MEM32(ebp + (-0x14)) = 0; /* 0x361496B0: mov dword ptr [ebp - 0x14], 0 */ 4553 if (TEST_Z(_flag_a, _flag_b)) goto L_361498AA; /* 0x361496B7: jbe 0x361498aa */ 4554 L_361496BD: 4555 ecx = ebp + (-0xAC); /* 0x361496BD: lea ecx, [ebp - 0xac] */ 4556 RECOMP_ICALL(0x3602F870u); /* 0x361496C3: call 0x3602f870 */ /* not lifted */ 4557 RECOMP_FLAGS_IN(); 4558 ecx = MEM32(ebp + 0x8); /* 0x361496C8: mov ecx, dword ptr [ebp + 8] */ 4559 eax = ebp + (-0xAC); /* 0x361496CB: lea eax, [ebp - 0xac] */ 4560 PUSH32(esp, eax); /* 0x361496D1: push eax */ 4561 PUSH32(esp, ecx); /* 0x361496D2: push ecx */ 4562 MEM32(ebp + (-0x4)) = 1; /* 0x361496D3: mov dword ptr [ebp - 4], 1 */ 4563 RECOMP_ICALL(0x3602F9B0u); /* 0x361496DA: call 0x3602f9b0 */ /* not lifted */ 4564 RECOMP_FLAGS_IN(); 4565 esi = MEM32(ebx + 0x54); /* 0x361496DF: mov esi, dword ptr [ebx + 0x54] */ 4566 ecx = MEM32(esi + 0x8); /* 0x361496E2: mov ecx, dword ptr [esi + 8] */ 4567 edx = MEM32(esi + 0xC); /* 0x361496E5: mov edx, dword ptr [esi + 0xc] */ 4568 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4569 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4570 edx = edx - ecx; /* 0x361496E8: sub edx, ecx */ 4571 _flag_k = FK_CMP; 4572 MEM32(ebp + (-0x18)) = edx; /* 0x361496EA: mov dword ptr [ebp - 0x18], edx */ 4573 eax = 0x88888889u; /* 0x361496ED: mov eax, 0x88888889 */ 4574 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361496F2: imul edx */ 4575 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 4576 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 4577 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 4578 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4579 edx = edx + MEM32(ebp + (-0x18)); /* 0x361496F4: add edx, dword ptr [ebp - 0x18] */ 4580 _flag_k = FK_ADD; 4581 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361496F7: sar edx, 5 */ 4582 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4583 edx = (uint32_t)((int32_t)edx >> 5u); 4584 eax = edx; /* 0x361496FA: mov eax, edx */ 4585 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361496FC: shr eax, 0x1f */ 4586 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4587 eax = eax >> 31u; /* 0x361496FC: shr eax, 0x1f */ 4588 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4589 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4590 edx = edx + eax; /* 0x361496FF: add edx, eax */ 4591 _flag_k = FK_ADD; 4592 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4593 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4594 esp = esp + 8; /* 0x36149701: add esp, 8 */ 4595 _flag_k = FK_ADD; 4596 /* cmp edx, 1 */ /* 0x36149704: cmp edx, 1 */ 4597 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4598 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4599 _flag_k = FK_CMP; 4600 edi = ecx; /* 0x36149707: mov edi, ecx */ 4601 if (CMP_AE(_flag_a, _flag_b)) goto L_361497D8; /* 0x36149709: jae 0x361497d8 */ 4602 L_3614970F: 4603 eax = MEM32(esi + 0x4); /* 0x3614970F: mov eax, dword ptr [esi + 4] */ 4604 /* test eax, eax */ /* 0x36149712: test eax, eax */ 4605 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4606 _cf = 0; 4607 _flag_k = FK_TEST; 4608 if (TEST_Z(_flag_a, _flag_b)) goto L_36149732; /* 0x36149714: je 0x36149732 */ 4609 L_36149716: 4610 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4612 ecx = ecx - eax; /* 0x36149716: sub ecx, eax */ 4613 _flag_k = FK_CMP; 4614 eax = 0x88888889u; /* 0x36149718: mov eax, 0x88888889 */ 4615 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3614971D: imul ecx */ 4616 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 4617 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 4618 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4619 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4620 edx = edx + ecx; /* 0x3614971F: add edx, ecx */ 4621 _flag_k = FK_ADD; 4622 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36149721: sar edx, 5 */ 4623 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4624 edx = (uint32_t)((int32_t)edx >> 5u); 4625 ecx = edx; /* 0x36149724: mov ecx, edx */ 4626 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36149726: shr ecx, 0x1f */ 4627 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4628 ecx = ecx >> 31u; /* 0x36149726: shr ecx, 0x1f */ 4629 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4630 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4631 edx = edx + ecx; /* 0x36149729: add edx, ecx */ 4632 _flag_k = FK_ADD; 4633 /* cmp edx, 1 */ /* 0x3614972B: cmp edx, 1 */ 4634 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4635 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4636 _flag_k = FK_CMP; 4637 ebx = edx; /* 0x3614972E: mov ebx, edx */ 4638 if (CMP_A(_flag_a, _flag_b)) goto L_36149737; /* 0x36149730: ja 0x36149737 */ 4639 L_36149732: 4640 ebx = 1; /* 0x36149732: mov ebx, 1 */ 4641 L_36149737: 4642 ecx = esi; /* 0x36149737: mov ecx, esi */ 4643 RECOMP_ICALL(0x36149E90u); /* 0x36149739: call 0x36149e90 */ /* not lifted */ 4644 RECOMP_FLAGS_IN(); 4645 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4646 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4647 eax = eax + ebx; /* 0x3614973E: add eax, ebx */ 4648 _flag_k = FK_ADD; 4649 MEM32(ebp + (-0x2C)) = eax; /* 0x36149740: mov dword ptr [ebp - 0x2c], eax */ 4650 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149747; /* 0x36149743: jns 0x36149747 */ 4651 L_36149745: 4652 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4653 eax = 0; /* 0x36149745: xor eax, eax */ 4654 _cf = 0; 4655 _flag_k = FK_TEST; 4656 L_36149747: 4657 eax = eax + eax * 2; /* 0x36149747: lea eax, [eax + eax*2] */ 4658 edx = eax + eax * 4; /* 0x3614974A: lea edx, [eax + eax*4] */ 4659 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614974D: shl edx, 2 */ 4660 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4661 edx = edx << 2u; /* 0x3614974D: shl edx, 2 */ 4662 PUSH32(esp, edx); /* 0x36149750: push edx */ 4663 RECOMP_ICALL(0x3615FD6Au); /* 0x36149751: call 0x3615fd6a */ /* not lifted */ 4664 RECOMP_FLAGS_IN(); 4665 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4666 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4667 esp = esp + 4; /* 0x36149756: add esp, 4 */ 4668 _flag_k = FK_ADD; 4669 ebx = eax; /* 0x36149759: mov ebx, eax */ 4670 eax = MEM32(esi + 0x4); /* 0x3614975B: mov eax, dword ptr [esi + 4] */ 4671 PUSH32(esp, ebx); /* 0x3614975E: push ebx */ 4672 PUSH32(esp, edi); /* 0x3614975F: push edi */ 4673 PUSH32(esp, eax); /* 0x36149760: push eax */ 4674 ecx = esi; /* 0x36149761: mov ecx, esi */ 4675 RECOMP_ICALL(0x36149EF0u); /* 0x36149763: call 0x36149ef0 */ /* not lifted */ 4676 RECOMP_FLAGS_IN(); 4677 ecx = ebp + (-0xAC); /* 0x36149768: lea ecx, [ebp - 0xac] */ 4678 PUSH32(esp, ecx); /* 0x3614976E: push ecx */ 4679 PUSH32(esp, 1); /* 0x3614976F: push 1 */ 4680 PUSH32(esp, eax); /* 0x36149771: push eax */ 4681 ecx = esi; /* 0x36149772: mov ecx, esi */ 4682 MEM32(ebp + (-0x18)) = eax; /* 0x36149774: mov dword ptr [ebp - 0x18], eax */ 4683 RECOMP_ICALL(0x3614A1C0u); /* 0x36149777: call 0x3614a1c0 */ /* not lifted */ 4684 RECOMP_FLAGS_IN(); 4685 edx = MEM32(ebp + (-0x18)); /* 0x3614977C: mov edx, dword ptr [ebp - 0x18] */ 4686 eax = MEM32(esi + 0x8); /* 0x3614977F: mov eax, dword ptr [esi + 8] */ 4687 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x3Cu); 4688 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4689 edx = edx + 0x3Cu; /* 0x36149782: add edx, 0x3c */ 4690 _flag_k = FK_ADD; 4691 PUSH32(esp, edx); /* 0x36149785: push edx */ 4692 PUSH32(esp, eax); /* 0x36149786: push eax */ 4693 PUSH32(esp, edi); /* 0x36149787: push edi */ 4694 ecx = esi; /* 0x36149788: mov ecx, esi */ 4695 RECOMP_ICALL(0x36149EF0u); /* 0x3614978A: call 0x36149ef0 */ /* not lifted */ 4696 RECOMP_FLAGS_IN(); 4697 ecx = MEM32(esi + 0x8); /* 0x3614978F: mov ecx, dword ptr [esi + 8] */ 4698 edx = MEM32(esi + 0x4); /* 0x36149792: mov edx, dword ptr [esi + 4] */ 4699 PUSH32(esp, ecx); /* 0x36149795: push ecx */ 4700 PUSH32(esp, edx); /* 0x36149796: push edx */ 4701 ecx = esi; /* 0x36149797: mov ecx, esi */ 4702 RECOMP_ICALL(0x36149EC0u); /* 0x36149799: call 0x36149ec0 */ /* not lifted */ 4703 RECOMP_FLAGS_IN(); 4704 eax = MEM32(esi + 0x4); /* 0x3614979E: mov eax, dword ptr [esi + 4] */ 4705 PUSH32(esp, eax); /* 0x361497A1: push eax */ 4706 RECOMP_ICALL(0x3615FCC4u); /* 0x361497A2: call 0x3615fcc4 */ /* not lifted */ 4707 RECOMP_FLAGS_IN(); 4708 eax = MEM32(ebp + (-0x2C)); /* 0x361497A7: mov eax, dword ptr [ebp - 0x2c] */ 4709 eax = eax + eax * 2; /* 0x361497AA: lea eax, [eax + eax*2] */ 4710 eax = eax + eax * 4; /* 0x361497AD: lea eax, [eax + eax*4] */ 4711 ecx = ebx + eax * 4; /* 0x361497B0: lea ecx, [ebx + eax*4] */ 4712 MEM32(esi + 0xC) = ecx; /* 0x361497B3: mov dword ptr [esi + 0xc], ecx */ 4713 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4714 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4715 esp = esp + 4; /* 0x361497B6: add esp, 4 */ 4716 _flag_k = FK_ADD; 4717 ecx = esi; /* 0x361497B9: mov ecx, esi */ 4718 RECOMP_ICALL(0x36149E90u); /* 0x361497BB: call 0x36149e90 */ /* not lifted */ 4719 RECOMP_FLAGS_IN(); 4720 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4721 eax = eax + 1; /* 0x361497C0: inc eax */ 4722 _flag_k = FK_INC; 4723 eax = eax + eax * 2; /* 0x361497C1: lea eax, [eax + eax*2] */ 4724 edx = eax + eax * 4; /* 0x361497C4: lea edx, [eax + eax*4] */ 4725 eax = ebx + edx * 4; /* 0x361497C7: lea eax, [ebx + edx*4] */ 4726 MEM32(esi + 0x4) = ebx; /* 0x361497CA: mov dword ptr [esi + 4], ebx */ 4727 ebx = MEM32(ebp + 0xC); /* 0x361497CD: mov ebx, dword ptr [ebp + 0xc] */ 4728 MEM32(esi + 0x8) = eax; /* 0x361497D0: mov dword ptr [esi + 8], eax */ 4729 goto L_36149880; /* 0x361497D3: jmp 0x36149880 */ 4730 L_361497D8: 4731 edx = ecx; /* 0x361497D8: mov edx, ecx */ 4732 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 4733 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4734 edx = edx - edi; /* 0x361497DA: sub edx, edi */ 4735 _flag_k = FK_CMP; 4736 MEM32(ebp + (-0x18)) = edx; /* 0x361497DC: mov dword ptr [ebp - 0x18], edx */ 4737 eax = 0x88888889u; /* 0x361497DF: mov eax, 0x88888889 */ 4738 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361497E4: imul edx */ 4739 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 4740 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 4741 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 4742 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4743 edx = edx + MEM32(ebp + (-0x18)); /* 0x361497E6: add edx, dword ptr [ebp - 0x18] */ 4744 _flag_k = FK_ADD; 4745 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361497E9: sar edx, 5 */ 4746 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4747 edx = (uint32_t)((int32_t)edx >> 5u); 4748 eax = edx; /* 0x361497EC: mov eax, edx */ 4749 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361497EE: shr eax, 0x1f */ 4750 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4751 eax = eax >> 31u; /* 0x361497EE: shr eax, 0x1f */ 4752 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4753 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4754 edx = edx + eax; /* 0x361497F1: add edx, eax */ 4755 _flag_k = FK_ADD; 4756 /* cmp edx, 1 */ /* 0x361497F3: cmp edx, 1 */ 4757 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4758 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4759 _flag_k = FK_CMP; 4760 if (CMP_AE(_flag_a, _flag_b)) goto L_3614984D; /* 0x361497F6: jae 0x3614984d */ 4761 L_361497F8: 4762 edx = edi + 0x3C; /* 0x361497F8: lea edx, [edi + 0x3c] */ 4763 PUSH32(esp, edx); /* 0x361497FB: push edx */ 4764 PUSH32(esp, ecx); /* 0x361497FC: push ecx */ 4765 PUSH32(esp, edi); /* 0x361497FD: push edi */ 4766 ecx = esi; /* 0x361497FE: mov ecx, esi */ 4767 RECOMP_ICALL(0x36149EF0u); /* 0x36149800: call 0x36149ef0 */ /* not lifted */ 4768 RECOMP_FLAGS_IN(); 4769 ecx = MEM32(esi + 0x8); /* 0x36149805: mov ecx, dword ptr [esi + 8] */ 4770 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 4771 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4772 ecx = ecx - edi; /* 0x36149808: sub ecx, edi */ 4773 _flag_k = FK_CMP; 4774 eax = ebp + (-0xAC); /* 0x3614980A: lea eax, [ebp - 0xac] */ 4775 PUSH32(esp, eax); /* 0x36149810: push eax */ 4776 eax = 0x88888889u; /* 0x36149811: mov eax, 0x88888889 */ 4777 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149816: imul ecx */ 4778 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 4779 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 4780 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4781 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4782 edx = edx + ecx; /* 0x36149818: add edx, ecx */ 4783 _flag_k = FK_ADD; 4784 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x3614981A: sar edx, 5 */ 4785 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4786 edx = (uint32_t)((int32_t)edx >> 5u); 4787 ecx = edx; /* 0x3614981D: mov ecx, edx */ 4788 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614981F: shr ecx, 0x1f */ 4789 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4790 ecx = ecx >> 31u; /* 0x3614981F: shr ecx, 0x1f */ 4791 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4792 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4793 edx = edx + ecx; /* 0x36149822: add edx, ecx */ 4794 _flag_k = FK_ADD; 4795 eax = 1; /* 0x36149824: mov eax, 1 */ 4796 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4797 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4798 eax = eax - edx; /* 0x36149829: sub eax, edx */ 4799 _flag_k = FK_CMP; 4800 PUSH32(esp, eax); /* 0x3614982B: push eax */ 4801 eax = MEM32(esi + 0x8); /* 0x3614982C: mov eax, dword ptr [esi + 8] */ 4802 PUSH32(esp, eax); /* 0x3614982F: push eax */ 4803 ecx = esi; /* 0x36149830: mov ecx, esi */ 4804 RECOMP_ICALL(0x3614A1C0u); /* 0x36149832: call 0x3614a1c0 */ /* not lifted */ 4805 RECOMP_FLAGS_IN(); 4806 edx = MEM32(esi + 0x8); /* 0x36149837: mov edx, dword ptr [esi + 8] */ 4807 ecx = ebp + (-0xAC); /* 0x3614983A: lea ecx, [ebp - 0xac] */ 4808 PUSH32(esp, ecx); /* 0x36149840: push ecx */ 4809 PUSH32(esp, edx); /* 0x36149841: push edx */ 4810 PUSH32(esp, edi); /* 0x36149842: push edi */ 4811 RECOMP_ICALL(0x3614A360u); /* 0x36149843: call 0x3614a360 */ /* not lifted */ 4812 RECOMP_FLAGS_IN(); 4813 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4814 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4815 esp = esp + 0xCu; /* 0x36149848: add esp, 0xc */ 4816 _flag_k = FK_ADD; 4817 goto L_3614987C; /* 0x3614984B: jmp 0x3614987c */ 4818 L_3614984D: 4819 PUSH32(esp, ecx); /* 0x3614984D: push ecx */ 4820 PUSH32(esp, ecx); /* 0x3614984E: push ecx */ 4821 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC4u); 4822 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4823 ecx = ecx + 0xFFFFFFC4u; /* 0x3614984F: add ecx, -0x3c */ 4824 _flag_k = FK_ADD; 4825 PUSH32(esp, ecx); /* 0x36149852: push ecx */ 4826 ecx = esi; /* 0x36149853: mov ecx, esi */ 4827 RECOMP_ICALL(0x36149EF0u); /* 0x36149855: call 0x36149ef0 */ /* not lifted */ 4828 RECOMP_FLAGS_IN(); 4829 eax = MEM32(esi + 0x8); /* 0x3614985A: mov eax, dword ptr [esi + 8] */ 4830 PUSH32(esp, eax); /* 0x3614985D: push eax */ 4831 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFC4u); 4832 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4833 eax = eax + 0xFFFFFFC4u; /* 0x3614985E: add eax, -0x3c */ 4834 _flag_k = FK_ADD; 4835 PUSH32(esp, eax); /* 0x36149861: push eax */ 4836 PUSH32(esp, edi); /* 0x36149862: push edi */ 4837 RECOMP_ICALL(0x3614A390u); /* 0x36149863: call 0x3614a390 */ /* not lifted */ 4838 RECOMP_FLAGS_IN(); 4839 eax = ebp + (-0xAC); /* 0x36149868: lea eax, [ebp - 0xac] */ 4840 PUSH32(esp, eax); /* 0x3614986E: push eax */ 4841 ecx = edi + 0x3C; /* 0x3614986F: lea ecx, [edi + 0x3c] */ 4842 PUSH32(esp, ecx); /* 0x36149872: push ecx */ 4843 PUSH32(esp, edi); /* 0x36149873: push edi */ 4844 RECOMP_ICALL(0x3614A360u); /* 0x36149874: call 0x3614a360 */ /* not lifted */ 4845 RECOMP_FLAGS_IN(); 4846 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 4847 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4848 esp = esp + 0x18u; /* 0x36149879: add esp, 0x18 */ 4849 _flag_k = FK_ADD; 4850 L_3614987C: 4851 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x3Cu); 4852 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4853 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x3Cu; /* 0x3614987C: add dword ptr [esi + 8], 0x3c */ 4854 _flag_k = FK_ADD; 4855 L_36149880: 4856 ecx = ebp + (-0xAC); /* 0x36149880: lea ecx, [ebp - 0xac] */ 4857 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149886: mov dword ptr [ebp - 4], 0xffffffff */ 4858 RECOMP_ICALL(0x3602F940u); /* 0x3614988D: call 0x3602f940 */ /* not lifted */ 4859 RECOMP_FLAGS_IN(); 4860 eax = MEM32(ebp + (-0x14)); /* 0x36149892: mov eax, dword ptr [ebp - 0x14] */ 4861 edx = MEM32(ebp + (-0x50)); /* 0x36149895: mov edx, dword ptr [ebp - 0x50] */ 4862 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4863 eax = eax + 1; /* 0x36149898: inc eax */ 4864 _flag_k = FK_INC; 4865 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 4866 edx = edx & 0xFFu; /* 0x36149899: and edx, 0xff */ 4867 _cf = 0; 4868 _flag_k = FK_TEST; 4869 /* cmp eax, edx */ /* 0x3614989F: cmp eax, edx */ 4870 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4871 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4872 _flag_k = FK_CMP; 4873 MEM32(ebp + (-0x14)) = eax; /* 0x361498A1: mov dword ptr [ebp - 0x14], eax */ 4874 RECOMP_BACKEDGE(); 4875 if (CMP_L(_flag_a, _flag_b)) goto L_361496BD; /* 0x361498A4: jl 0x361496bd */ 4876 L_361498AA: 4877 esi = MEM32(ebp + 0x8); /* 0x361498AA: mov esi, dword ptr [ebp + 8] */ 4878 ecx = esi; /* 0x361498AD: mov ecx, esi */ 4879 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361498AF: call dword ptr [0x3616fadc] */ 4880 RECOMP_FLAGS_IN(); 4881 /* test eax, eax */ /* 0x361498B5: test eax, eax */ 4882 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4883 _cf = 0; 4884 _flag_k = FK_TEST; 4885 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498F7; /* 0x361498B7: jne 0x361498f7 */ 4886 L_361498B9: 4887 ebx = MEM32(ebx); /* 0x361498B9: mov ebx, dword ptr [ebx] */ 4888 eax = MEM32(ebx + 0x4); /* 0x361498BB: mov eax, dword ptr [ebx + 4] */ 4889 /* test eax, eax */ /* 0x361498BE: test eax, eax */ 4890 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4891 _cf = 0; 4892 _flag_k = FK_TEST; 4893 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498C7; /* 0x361498C0: jne 0x361498c7 */ 4894 L_361498C2: 4895 eax = MEM32(0x3616F10C); /* 0x361498C2: mov eax, dword ptr [0x3616f10c] */ 4896 L_361498C7: 4897 PUSH32(esp, eax); /* 0x361498C7: push eax */ 4898 PUSH32(esp, 0x362E75FCu); /* 0x361498C8: push 0x362e75fc */ 4899 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361498CD: call dword ptr [0x3616f18c] */ 4900 RECOMP_FLAGS_IN(); 4901 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4902 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4903 esp = esp + 8; /* 0x361498D3: add esp, 8 */ 4904 _flag_k = FK_ADD; 4905 PUSH32(esp, 0x362E75CCu); /* 0x361498D6: push 0x362e75cc */ 4906 ecx = ebp + (-0xB4); /* 0x361498DB: lea ecx, [ebp - 0xb4] */ 4907 RECOMP_ICALL(0x36008EF0u); /* 0x361498E1: call 0x36008ef0 */ /* not lifted */ 4908 RECOMP_FLAGS_IN(); 4909 PUSH32(esp, 0x36184170u); /* 0x361498E6: push 0x36184170 */ 4910 eax = ebp + (-0xB4); /* 0x361498EB: lea eax, [ebp - 0xb4] */ 4911 PUSH32(esp, eax); /* 0x361498F1: push eax */ 4912 RECOMP_ICALL(0x3615FD70u); /* 0x361498F2: call 0x3615fd70 */ /* not lifted */ 4913 RECOMP_FLAGS_IN(); 4914 L_361498F7: 4915 ecx = MEM32(ebp + (-0xC)); /* 0x361498F7: mov ecx, dword ptr [ebp - 0xc] */ 4916 edi = POP32_VAL(esp); /* 0x361498FA: pop edi */ 4917 eax = esi; /* 0x361498FB: mov eax, esi */ 4918 esi = POP32_VAL(esp); /* 0x361498FD: pop esi */ 4919 ebx = POP32_VAL(esp); /* 0x361498FE: pop ebx */ 4920 MEM32(FS_BASE + (0)) = ecx; /* 0x361498FF: mov dword ptr fs:[0], ecx */ 4921 esp = ebp; /* 0x36149906: mov esp, ebp */ 4922 ebp = POP32_VAL(esp); /* 0x36149908: pop ebp */ 4923 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149909: ret */ 4924 RECOMP_REGS_OUT(); 4925 } 4926 4927 void sub_3614922B(void) { 4928 int _fpu_cmp = 0; 4929 uint32_t _cf = 0; 4930 int _df = 1; 4931 uint32_t _flag_k = FK_NONE; 4932 uint32_t _flag_a = 0, _flag_b = 0; 4933 uint32_t _itail_tgt = 0; 4934 RECOMP_REGS_LOCALS 4935 RECOMP_ENTER(0x3614922Bu); 4936 4937 goto L_3614922B; 4938 L_361491D9: 4939 ecx = MEM32(ebp + 0x8); /* 0x361491D9: mov ecx, dword ptr [ebp + 8] */ 4940 esi = MEM32(0x3616FAC8); /* 0x361491DC: mov esi, dword ptr [0x3616fac8] */ 4941 eax = ebp + (-0x1E); /* 0x361491E2: lea eax, [ebp - 0x1e] */ 4942 PUSH32(esp, eax); /* 0x361491E5: push eax */ 4943 RECOMP_ICALL(esi); /* 0x361491E6: call esi */ 4944 RECOMP_FLAGS_IN(); 4945 ecx = ebp + (-0x26); /* 0x361491E8: lea ecx, [ebp - 0x26] */ 4946 PUSH32(esp, ecx); /* 0x361491EB: push ecx */ 4947 ecx = eax; /* 0x361491EC: mov ecx, eax */ 4948 RECOMP_ICALL(esi); /* 0x361491EE: call esi */ 4949 RECOMP_FLAGS_IN(); 4950 esi = MEM32(ebx + 0x5C); /* 0x361491F0: mov esi, dword ptr [ebx + 0x5c] */ 4951 eax = MEM32(esi + 0x8); /* 0x361491F3: mov eax, dword ptr [esi + 8] */ 4952 edx = MEM32(esi + 0xC); /* 0x361491F6: mov edx, dword ptr [esi + 0xc] */ 4953 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4954 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4955 edx = edx - eax; /* 0x361491F9: sub edx, eax */ 4956 _flag_k = FK_CMP; 4957 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x361491FB: sar edx, 1 */ 4958 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4959 edx = (uint32_t)((int32_t)edx >> 1u); 4960 /* cmp edx, 1 */ /* 0x361491FD: cmp edx, 1 */ 4961 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4962 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4963 _flag_k = FK_CMP; 4964 edi = eax; /* 0x36149200: mov edi, eax */ 4965 if (CMP_AE(_flag_a, _flag_b)) goto L_361492B8; /* 0x36149202: jae 0x361492b8 */ 4966 L_36149208: 4967 ecx = MEM32(esi + 0x4); /* 0x36149208: mov ecx, dword ptr [esi + 4] */ 4968 /* test ecx, ecx */ /* 0x3614920B: test ecx, ecx */ 4969 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4970 _cf = 0; 4971 _flag_k = FK_TEST; 4972 if (TEST_Z(_flag_a, _flag_b)) goto L_36149224; /* 0x3614920D: je 0x36149224 */ 4973 L_3614920F: 4974 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4976 eax = eax - ecx; /* 0x3614920F: sub eax, ecx */ 4977 _flag_k = FK_CMP; 4978 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149211: sar eax, 1 */ 4979 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4980 eax = (uint32_t)((int32_t)eax >> 1u); 4981 /* cmp eax, 1 */ /* 0x36149213: cmp eax, 1 */ 4982 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4983 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4984 _flag_k = FK_CMP; 4985 if (CMP_BE(_flag_a, _flag_b)) goto L_36149224; /* 0x36149216: jbe 0x36149224 */ 4986 L_36149218: 4987 ecx = esi; /* 0x36149218: mov ecx, esi */ 4988 RECOMP_ICALL(0x36140430u); /* 0x3614921A: call 0x36140430 */ /* not lifted */ 4989 RECOMP_FLAGS_IN(); 4990 MEM32(ebp + (-0x10)) = eax; /* 0x3614921F: mov dword ptr [ebp - 0x10], eax */ 4991 goto L_3614922B; /* 0x36149222: jmp 0x3614922b */ 4992 L_36149224: 4993 MEM32(ebp + (-0x10)) = 1; /* 0x36149224: mov dword ptr [ebp - 0x10], 1 */ 4994 L_3614922B: 4995 ecx = esi; /* 0x3614922B: mov ecx, esi */ 4996 RECOMP_ICALL(0x36140430u); /* 0x3614922D: call 0x36140430 */ /* not lifted */ 4997 RECOMP_FLAGS_IN(); 4998 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 4999 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5000 eax = eax + MEM32(ebp + (-0x10)); /* 0x36149232: add eax, dword ptr [ebp - 0x10] */ 5001 _flag_k = FK_ADD; 5002 MEM32(ebp + (-0x18)) = eax; /* 0x36149235: mov dword ptr [ebp - 0x18], eax */ 5003 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_3614923C; /* 0x36149238: jns 0x3614923c */ 5004 L_3614923A: 5005 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5006 eax = 0; /* 0x3614923A: xor eax, eax */ 5007 _cf = 0; 5008 _flag_k = FK_TEST; 5009 L_3614923C: 5010 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5011 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5012 eax = eax + eax; /* 0x3614923C: add eax, eax */ 5013 _flag_k = FK_ADD; 5014 PUSH32(esp, eax); /* 0x3614923E: push eax */ 5015 RECOMP_ICALL(0x3615FD6Au); /* 0x3614923F: call 0x3615fd6a */ /* not lifted */ 5016 RECOMP_FLAGS_IN(); 5017 ecx = MEM32(esi + 0x4); /* 0x36149244: mov ecx, dword ptr [esi + 4] */ 5018 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5019 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5020 esp = esp + 4; /* 0x36149247: add esp, 4 */ 5021 _flag_k = FK_ADD; 5022 PUSH32(esp, eax); /* 0x3614924A: push eax */ 5023 PUSH32(esp, edi); /* 0x3614924B: push edi */ 5024 PUSH32(esp, ecx); /* 0x3614924C: push ecx */ 5025 ecx = esi; /* 0x3614924D: mov ecx, esi */ 5026 MEM32(ebp + (-0x2C)) = eax; /* 0x3614924F: mov dword ptr [ebp - 0x2c], eax */ 5027 RECOMP_ICALL(0x36140900u); /* 0x36149252: call 0x36140900 */ /* not lifted */ 5028 RECOMP_FLAGS_IN(); 5029 edx = ebp + (-0x1E); /* 0x36149257: lea edx, [ebp - 0x1e] */ 5030 PUSH32(esp, edx); /* 0x3614925A: push edx */ 5031 PUSH32(esp, 1); /* 0x3614925B: push 1 */ 5032 PUSH32(esp, eax); /* 0x3614925D: push eax */ 5033 ecx = esi; /* 0x3614925E: mov ecx, esi */ 5034 MEM32(ebp + (-0x10)) = eax; /* 0x36149260: mov dword ptr [ebp - 0x10], eax */ 5035 RECOMP_ICALL(0x3614A1F0u); /* 0x36149263: call 0x3614a1f0 */ /* not lifted */ 5036 RECOMP_FLAGS_IN(); 5037 eax = MEM32(ebp + (-0x10)); /* 0x36149268: mov eax, dword ptr [ebp - 0x10] */ 5038 ecx = MEM32(esi + 0x8); /* 0x3614926B: mov ecx, dword ptr [esi + 8] */ 5039 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 5040 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5041 eax = eax + 2; /* 0x3614926E: add eax, 2 */ 5042 _flag_k = FK_ADD; 5043 PUSH32(esp, eax); /* 0x36149271: push eax */ 5044 PUSH32(esp, ecx); /* 0x36149272: push ecx */ 5045 PUSH32(esp, edi); /* 0x36149273: push edi */ 5046 ecx = esi; /* 0x36149274: mov ecx, esi */ 5047 RECOMP_ICALL(0x36140900u); /* 0x36149276: call 0x36140900 */ /* not lifted */ 5048 RECOMP_FLAGS_IN(); 5049 edx = MEM32(esi + 0x8); /* 0x3614927B: mov edx, dword ptr [esi + 8] */ 5050 eax = MEM32(esi + 0x4); /* 0x3614927E: mov eax, dword ptr [esi + 4] */ 5051 PUSH32(esp, edx); /* 0x36149281: push edx */ 5052 PUSH32(esp, eax); /* 0x36149282: push eax */ 5053 ecx = esi; /* 0x36149283: mov ecx, esi */ 5054 RECOMP_ICALL(0x3610ED60u); /* 0x36149285: call 0x3610ed60 */ /* not lifted */ 5055 RECOMP_FLAGS_IN(); 5056 eax = MEM32(esi + 0x4); /* 0x3614928A: mov eax, dword ptr [esi + 4] */ 5057 PUSH32(esp, eax); /* 0x3614928D: push eax */ 5058 RECOMP_ICALL(0x3615FCC4u); /* 0x3614928E: call 0x3615fcc4 */ /* not lifted */ 5059 RECOMP_FLAGS_IN(); 5060 ecx = MEM32(ebp + (-0x18)); /* 0x36149293: mov ecx, dword ptr [ebp - 0x18] */ 5061 edi = MEM32(ebp + (-0x2C)); /* 0x36149296: mov edi, dword ptr [ebp - 0x2c] */ 5062 edx = edi + ecx * 2; /* 0x36149299: lea edx, [edi + ecx*2] */ 5063 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5064 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5065 esp = esp + 4; /* 0x3614929C: add esp, 4 */ 5066 _flag_k = FK_ADD; 5067 ecx = esi; /* 0x3614929F: mov ecx, esi */ 5068 MEM32(esi + 0xC) = edx; /* 0x361492A1: mov dword ptr [esi + 0xc], edx */ 5069 RECOMP_ICALL(0x36140430u); /* 0x361492A4: call 0x36140430 */ /* not lifted */ 5070 RECOMP_FLAGS_IN(); 5071 eax = edi + eax * 2 + 0x2; /* 0x361492A9: lea eax, [edi + eax*2 + 2] */ 5072 MEM32(esi + 0x8) = eax; /* 0x361492AD: mov dword ptr [esi + 8], eax */ 5073 MEM32(esi + 0x4) = edi; /* 0x361492B0: mov dword ptr [esi + 4], edi */ 5074 goto L_36149348; /* 0x361492B3: jmp 0x36149348 */ 5075 L_361492B8: 5076 ecx = eax; /* 0x361492B8: mov ecx, eax */ 5077 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 5078 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5079 ecx = ecx - edi; /* 0x361492BA: sub ecx, edi */ 5080 _flag_k = FK_CMP; 5081 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492BC: sar ecx, 1 */ 5082 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5083 ecx = (uint32_t)((int32_t)ecx >> 1u); 5084 /* cmp ecx, 1 */ /* 0x361492BE: cmp ecx, 1 */ 5085 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5086 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5087 _flag_k = FK_CMP; 5088 if (CMP_AE(_flag_a, _flag_b)) goto L_36149304; /* 0x361492C1: jae 0x36149304 */ 5089 L_361492C3: 5090 ecx = edi + 0x2; /* 0x361492C3: lea ecx, [edi + 2] */ 5091 PUSH32(esp, ecx); /* 0x361492C6: push ecx */ 5092 PUSH32(esp, eax); /* 0x361492C7: push eax */ 5093 PUSH32(esp, edi); /* 0x361492C8: push edi */ 5094 ecx = esi; /* 0x361492C9: mov ecx, esi */ 5095 RECOMP_ICALL(0x36140900u); /* 0x361492CB: call 0x36140900 */ /* not lifted */ 5096 RECOMP_FLAGS_IN(); 5097 eax = MEM32(esi + 0x8); /* 0x361492D0: mov eax, dword ptr [esi + 8] */ 5098 ecx = eax; /* 0x361492D3: mov ecx, eax */ 5099 edx = ebp + (-0x1E); /* 0x361492D5: lea edx, [ebp - 0x1e] */ 5100 PUSH32(esp, edx); /* 0x361492D8: push edx */ 5101 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 5102 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5103 ecx = ecx - edi; /* 0x361492D9: sub ecx, edi */ 5104 _flag_k = FK_CMP; 5105 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492DB: sar ecx, 1 */ 5106 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5107 ecx = (uint32_t)((int32_t)ecx >> 1u); 5108 edx = 1; /* 0x361492DD: mov edx, 1 */ 5109 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 5110 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5111 edx = edx - ecx; /* 0x361492E2: sub edx, ecx */ 5112 _flag_k = FK_CMP; 5113 PUSH32(esp, edx); /* 0x361492E4: push edx */ 5114 PUSH32(esp, eax); /* 0x361492E5: push eax */ 5115 ecx = esi; /* 0x361492E6: mov ecx, esi */ 5116 RECOMP_ICALL(0x3614A1F0u); /* 0x361492E8: call 0x3614a1f0 */ /* not lifted */ 5117 RECOMP_FLAGS_IN(); 5118 eax = MEM32(esi + 0x8); /* 0x361492ED: mov eax, dword ptr [esi + 8] */ 5119 /* cmp edi, eax */ /* 0x361492F0: cmp edi, eax */ 5120 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5121 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5122 _flag_k = FK_CMP; 5123 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x361492F2: je 0x36149344 */ 5124 L_361492F4: 5125 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x361492F4: mov cx, word ptr [ebp - 0x1e] */ 5126 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x361492F8: mov word ptr [edi], cx */ 5127 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 5128 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5129 edi = edi + 2; /* 0x361492FB: add edi, 2 */ 5130 _flag_k = FK_ADD; 5131 /* cmp edi, eax */ /* 0x361492FE: cmp edi, eax */ 5132 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5134 _flag_k = FK_CMP; 5135 RECOMP_BACKEDGE(); 5136 if (CMP_NE(_flag_a, _flag_b)) goto L_361492F4; /* 0x36149300: jne 0x361492f4 */ 5137 L_36149302: 5138 goto L_36149344; /* 0x36149302: jmp 0x36149344 */ 5139 L_36149304: 5140 PUSH32(esp, eax); /* 0x36149304: push eax */ 5141 ecx = eax + (-0x2); /* 0x36149305: lea ecx, [eax - 2] */ 5142 PUSH32(esp, eax); /* 0x36149308: push eax */ 5143 MEM32(ebp + (-0x18)) = ecx; /* 0x36149309: mov dword ptr [ebp - 0x18], ecx */ 5144 PUSH32(esp, ecx); /* 0x3614930C: push ecx */ 5145 ecx = esi; /* 0x3614930D: mov ecx, esi */ 5146 RECOMP_ICALL(0x36140900u); /* 0x3614930F: call 0x36140900 */ /* not lifted */ 5147 RECOMP_FLAGS_IN(); 5148 ecx = MEM32(esi + 0x8); /* 0x36149314: mov ecx, dword ptr [esi + 8] */ 5149 eax = ecx + (-0x2); /* 0x36149317: lea eax, [ecx - 2] */ 5150 /* cmp edi, eax */ /* 0x3614931A: cmp edi, eax */ 5151 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5152 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5153 _flag_k = FK_CMP; 5154 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614932F; /* 0x3614931C: je 0x3614932f */ 5155 L_3614931E: 5156 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x3614931E: mov dx, word ptr [eax - 2] */ 5157 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 5158 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5159 eax = eax - 2; /* 0x36149322: sub eax, 2 */ 5160 _flag_k = FK_CMP; 5161 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 5162 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5163 ecx = ecx - 2; /* 0x36149325: sub ecx, 2 */ 5164 _flag_k = FK_CMP; 5165 /* cmp eax, edi */ /* 0x36149328: cmp eax, edi */ 5166 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5167 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5168 _flag_k = FK_CMP; 5169 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x3614932A: mov word ptr [ecx], dx */ 5170 RECOMP_BACKEDGE(); 5171 if (CMP_NE(_flag_a, _flag_b)) goto L_3614931E; /* 0x3614932D: jne 0x3614931e */ 5172 L_3614932F: 5173 eax = edi + 0x2; /* 0x3614932F: lea eax, [edi + 2] */ 5174 /* cmp edi, eax */ /* 0x36149332: cmp edi, eax */ 5175 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5177 _flag_k = FK_CMP; 5178 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x36149334: je 0x36149344 */ 5179 L_36149336: 5180 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x36149336: mov cx, word ptr [ebp - 0x1e] */ 5181 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x3614933A: mov word ptr [edi], cx */ 5182 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 5183 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5184 edi = edi + 2; /* 0x3614933D: add edi, 2 */ 5185 _flag_k = FK_ADD; 5186 /* cmp edi, eax */ /* 0x36149340: cmp edi, eax */ 5187 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5188 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5189 _flag_k = FK_CMP; 5190 RECOMP_BACKEDGE(); 5191 if (CMP_NE(_flag_a, _flag_b)) goto L_36149336; /* 0x36149342: jne 0x36149336 */ 5192 L_36149344: 5193 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 5194 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5195 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x36149344: add dword ptr [esi + 8], 2 */ 5196 _flag_k = FK_ADD; 5197 L_36149348: 5198 esi = MEM32(ebx + 0x5C); /* 0x36149348: mov esi, dword ptr [ebx + 0x5c] */ 5199 eax = MEM32(esi + 0x8); /* 0x3614934B: mov eax, dword ptr [esi + 8] */ 5200 edx = MEM32(esi + 0xC); /* 0x3614934E: mov edx, dword ptr [esi + 0xc] */ 5201 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5202 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5203 edx = edx - eax; /* 0x36149351: sub edx, eax */ 5204 _flag_k = FK_CMP; 5205 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36149353: sar edx, 1 */ 5206 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5207 edx = (uint32_t)((int32_t)edx >> 1u); 5208 /* cmp edx, 1 */ /* 0x36149355: cmp edx, 1 */ 5209 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 5210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5211 _flag_k = FK_CMP; 5212 edi = eax; /* 0x36149358: mov edi, eax */ 5213 if (CMP_AE(_flag_a, _flag_b)) goto L_36149410; /* 0x3614935A: jae 0x36149410 */ 5214 L_36149360: 5215 ecx = MEM32(esi + 0x4); /* 0x36149360: mov ecx, dword ptr [esi + 4] */ 5216 /* test ecx, ecx */ /* 0x36149363: test ecx, ecx */ 5217 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5218 _cf = 0; 5219 _flag_k = FK_TEST; 5220 if (TEST_Z(_flag_a, _flag_b)) goto L_3614937C; /* 0x36149365: je 0x3614937c */ 5221 L_36149367: 5222 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5223 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5224 eax = eax - ecx; /* 0x36149367: sub eax, ecx */ 5225 _flag_k = FK_CMP; 5226 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149369: sar eax, 1 */ 5227 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5228 eax = (uint32_t)((int32_t)eax >> 1u); 5229 /* cmp eax, 1 */ /* 0x3614936B: cmp eax, 1 */ 5230 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5231 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5232 _flag_k = FK_CMP; 5233 if (CMP_BE(_flag_a, _flag_b)) goto L_3614937C; /* 0x3614936E: jbe 0x3614937c */ 5234 L_36149370: 5235 ecx = esi; /* 0x36149370: mov ecx, esi */ 5236 RECOMP_ICALL(0x36140430u); /* 0x36149372: call 0x36140430 */ /* not lifted */ 5237 RECOMP_FLAGS_IN(); 5238 MEM32(ebp + (-0x10)) = eax; /* 0x36149377: mov dword ptr [ebp - 0x10], eax */ 5239 goto L_36149383; /* 0x3614937A: jmp 0x36149383 */ 5240 L_3614937C: 5241 MEM32(ebp + (-0x10)) = 1; /* 0x3614937C: mov dword ptr [ebp - 0x10], 1 */ 5242 L_36149383: 5243 ecx = esi; /* 0x36149383: mov ecx, esi */ 5244 RECOMP_ICALL(0x36140430u); /* 0x36149385: call 0x36140430 */ /* not lifted */ 5245 RECOMP_FLAGS_IN(); 5246 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 5247 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5248 eax = eax + MEM32(ebp + (-0x10)); /* 0x3614938A: add eax, dword ptr [ebp - 0x10] */ 5249 _flag_k = FK_ADD; 5250 MEM32(ebp + (-0x10)) = eax; /* 0x3614938D: mov dword ptr [ebp - 0x10], eax */ 5251 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149394; /* 0x36149390: jns 0x36149394 */ 5252 L_36149392: 5253 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5254 eax = 0; /* 0x36149392: xor eax, eax */ 5255 _cf = 0; 5256 _flag_k = FK_TEST; 5257 L_36149394: 5258 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5259 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5260 eax = eax + eax; /* 0x36149394: add eax, eax */ 5261 _flag_k = FK_ADD; 5262 PUSH32(esp, eax); /* 0x36149396: push eax */ 5263 RECOMP_ICALL(0x3615FD6Au); /* 0x36149397: call 0x3615fd6a */ /* not lifted */ 5264 RECOMP_FLAGS_IN(); 5265 ecx = MEM32(esi + 0x4); /* 0x3614939C: mov ecx, dword ptr [esi + 4] */ 5266 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5267 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5268 esp = esp + 4; /* 0x3614939F: add esp, 4 */ 5269 _flag_k = FK_ADD; 5270 PUSH32(esp, eax); /* 0x361493A2: push eax */ 5271 PUSH32(esp, edi); /* 0x361493A3: push edi */ 5272 PUSH32(esp, ecx); /* 0x361493A4: push ecx */ 5273 ecx = esi; /* 0x361493A5: mov ecx, esi */ 5274 MEM32(ebp + (-0x2C)) = eax; /* 0x361493A7: mov dword ptr [ebp - 0x2c], eax */ 5275 RECOMP_ICALL(0x36140900u); /* 0x361493AA: call 0x36140900 */ /* not lifted */ 5276 RECOMP_FLAGS_IN(); 5277 edx = ebp + (-0x26); /* 0x361493AF: lea edx, [ebp - 0x26] */ 5278 PUSH32(esp, edx); /* 0x361493B2: push edx */ 5279 PUSH32(esp, 1); /* 0x361493B3: push 1 */ 5280 PUSH32(esp, eax); /* 0x361493B5: push eax */ 5281 ecx = esi; /* 0x361493B6: mov ecx, esi */ 5282 MEM32(ebp + (-0x18)) = eax; /* 0x361493B8: mov dword ptr [ebp - 0x18], eax */ 5283 RECOMP_ICALL(0x3614A1F0u); /* 0x361493BB: call 0x3614a1f0 */ /* not lifted */ 5284 RECOMP_FLAGS_IN(); 5285 eax = MEM32(ebp + (-0x18)); /* 0x361493C0: mov eax, dword ptr [ebp - 0x18] */ 5286 ecx = MEM32(esi + 0x8); /* 0x361493C3: mov ecx, dword ptr [esi + 8] */ 5287 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 5288 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5289 eax = eax + 2; /* 0x361493C6: add eax, 2 */ 5290 _flag_k = FK_ADD; 5291 PUSH32(esp, eax); /* 0x361493C9: push eax */ 5292 PUSH32(esp, ecx); /* 0x361493CA: push ecx */ 5293 PUSH32(esp, edi); /* 0x361493CB: push edi */ 5294 ecx = esi; /* 0x361493CC: mov ecx, esi */ 5295 RECOMP_ICALL(0x36140900u); /* 0x361493CE: call 0x36140900 */ /* not lifted */ 5296 RECOMP_FLAGS_IN(); 5297 edx = MEM32(esi + 0x8); /* 0x361493D3: mov edx, dword ptr [esi + 8] */ 5298 eax = MEM32(esi + 0x4); /* 0x361493D6: mov eax, dword ptr [esi + 4] */ 5299 PUSH32(esp, edx); /* 0x361493D9: push edx */ 5300 PUSH32(esp, eax); /* 0x361493DA: push eax */ 5301 ecx = esi; /* 0x361493DB: mov ecx, esi */ 5302 RECOMP_ICALL(0x3610ED60u); /* 0x361493DD: call 0x3610ed60 */ /* not lifted */ 5303 RECOMP_FLAGS_IN(); 5304 eax = MEM32(esi + 0x4); /* 0x361493E2: mov eax, dword ptr [esi + 4] */ 5305 PUSH32(esp, eax); /* 0x361493E5: push eax */ 5306 RECOMP_ICALL(0x3615FCC4u); /* 0x361493E6: call 0x3615fcc4 */ /* not lifted */ 5307 RECOMP_FLAGS_IN(); 5308 ecx = MEM32(ebp + (-0x10)); /* 0x361493EB: mov ecx, dword ptr [ebp - 0x10] */ 5309 edi = MEM32(ebp + (-0x2C)); /* 0x361493EE: mov edi, dword ptr [ebp - 0x2c] */ 5310 edx = edi + ecx * 2; /* 0x361493F1: lea edx, [edi + ecx*2] */ 5311 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5312 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5313 esp = esp + 4; /* 0x361493F4: add esp, 4 */ 5314 _flag_k = FK_ADD; 5315 ecx = esi; /* 0x361493F7: mov ecx, esi */ 5316 MEM32(esi + 0xC) = edx; /* 0x361493F9: mov dword ptr [esi + 0xc], edx */ 5317 RECOMP_ICALL(0x36140430u); /* 0x361493FC: call 0x36140430 */ /* not lifted */ 5318 RECOMP_FLAGS_IN(); 5319 eax = edi + eax * 2 + 0x2; /* 0x36149401: lea eax, [edi + eax*2 + 2] */ 5320 MEM32(esi + 0x8) = eax; /* 0x36149405: mov dword ptr [esi + 8], eax */ 5321 MEM32(esi + 0x4) = edi; /* 0x36149408: mov dword ptr [esi + 4], edi */ 5322 goto L_361494A0; /* 0x3614940B: jmp 0x361494a0 */ 5323 L_36149410: 5324 ecx = eax; /* 0x36149410: mov ecx, eax */ 5325 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 5326 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5327 ecx = ecx - edi; /* 0x36149412: sub ecx, edi */ 5328 _flag_k = FK_CMP; 5329 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149414: sar ecx, 1 */ 5330 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5331 ecx = (uint32_t)((int32_t)ecx >> 1u); 5332 /* cmp ecx, 1 */ /* 0x36149416: cmp ecx, 1 */ 5333 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5335 _flag_k = FK_CMP; 5336 if (CMP_AE(_flag_a, _flag_b)) goto L_3614945C; /* 0x36149419: jae 0x3614945c */ 5337 L_3614941B: 5338 ecx = edi + 0x2; /* 0x3614941B: lea ecx, [edi + 2] */ 5339 PUSH32(esp, ecx); /* 0x3614941E: push ecx */ 5340 PUSH32(esp, eax); /* 0x3614941F: push eax */ 5341 PUSH32(esp, edi); /* 0x36149420: push edi */ 5342 ecx = esi; /* 0x36149421: mov ecx, esi */ 5343 RECOMP_ICALL(0x36140900u); /* 0x36149423: call 0x36140900 */ /* not lifted */ 5344 RECOMP_FLAGS_IN(); 5345 eax = MEM32(esi + 0x8); /* 0x36149428: mov eax, dword ptr [esi + 8] */ 5346 ecx = eax; /* 0x3614942B: mov ecx, eax */ 5347 edx = ebp + (-0x26); /* 0x3614942D: lea edx, [ebp - 0x26] */ 5348 PUSH32(esp, edx); /* 0x36149430: push edx */ 5349 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 5350 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5351 ecx = ecx - edi; /* 0x36149431: sub ecx, edi */ 5352 _flag_k = FK_CMP; 5353 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149433: sar ecx, 1 */ 5354 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5355 ecx = (uint32_t)((int32_t)ecx >> 1u); 5356 edx = 1; /* 0x36149435: mov edx, 1 */ 5357 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 5358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5359 edx = edx - ecx; /* 0x3614943A: sub edx, ecx */ 5360 _flag_k = FK_CMP; 5361 PUSH32(esp, edx); /* 0x3614943C: push edx */ 5362 PUSH32(esp, eax); /* 0x3614943D: push eax */ 5363 ecx = esi; /* 0x3614943E: mov ecx, esi */ 5364 RECOMP_ICALL(0x3614A1F0u); /* 0x36149440: call 0x3614a1f0 */ /* not lifted */ 5365 RECOMP_FLAGS_IN(); 5366 eax = MEM32(esi + 0x8); /* 0x36149445: mov eax, dword ptr [esi + 8] */ 5367 /* cmp edi, eax */ /* 0x36149448: cmp edi, eax */ 5368 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5369 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5370 _flag_k = FK_CMP; 5371 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614944A: je 0x3614949c */ 5372 L_3614944C: 5373 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614944C: mov cx, word ptr [ebp - 0x26] */ 5374 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149450: mov word ptr [edi], cx */ 5375 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 5376 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5377 edi = edi + 2; /* 0x36149453: add edi, 2 */ 5378 _flag_k = FK_ADD; 5379 /* cmp edi, eax */ /* 0x36149456: cmp edi, eax */ 5380 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5381 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5382 _flag_k = FK_CMP; 5383 RECOMP_BACKEDGE(); 5384 if (CMP_NE(_flag_a, _flag_b)) goto L_3614944C; /* 0x36149458: jne 0x3614944c */ 5385 L_3614945A: 5386 goto L_3614949C; /* 0x3614945A: jmp 0x3614949c */ 5387 L_3614945C: 5388 PUSH32(esp, eax); /* 0x3614945C: push eax */ 5389 ecx = eax + (-0x2); /* 0x3614945D: lea ecx, [eax - 2] */ 5390 PUSH32(esp, eax); /* 0x36149460: push eax */ 5391 MEM32(ebp + (-0x18)) = ecx; /* 0x36149461: mov dword ptr [ebp - 0x18], ecx */ 5392 PUSH32(esp, ecx); /* 0x36149464: push ecx */ 5393 ecx = esi; /* 0x36149465: mov ecx, esi */ 5394 RECOMP_ICALL(0x36140900u); /* 0x36149467: call 0x36140900 */ /* not lifted */ 5395 RECOMP_FLAGS_IN(); 5396 ecx = MEM32(esi + 0x8); /* 0x3614946C: mov ecx, dword ptr [esi + 8] */ 5397 eax = ecx + (-0x2); /* 0x3614946F: lea eax, [ecx - 2] */ 5398 /* cmp edi, eax */ /* 0x36149472: cmp edi, eax */ 5399 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5400 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5401 _flag_k = FK_CMP; 5402 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149487; /* 0x36149474: je 0x36149487 */ 5403 L_36149476: 5404 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x36149476: mov dx, word ptr [eax - 2] */ 5405 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 5406 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5407 eax = eax - 2; /* 0x3614947A: sub eax, 2 */ 5408 _flag_k = FK_CMP; 5409 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 5410 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5411 ecx = ecx - 2; /* 0x3614947D: sub ecx, 2 */ 5412 _flag_k = FK_CMP; 5413 /* cmp eax, edi */ /* 0x36149480: cmp eax, edi */ 5414 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5415 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5416 _flag_k = FK_CMP; 5417 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x36149482: mov word ptr [ecx], dx */ 5418 RECOMP_BACKEDGE(); 5419 if (CMP_NE(_flag_a, _flag_b)) goto L_36149476; /* 0x36149485: jne 0x36149476 */ 5420 L_36149487: 5421 eax = edi + 0x2; /* 0x36149487: lea eax, [edi + 2] */ 5422 /* cmp edi, eax */ /* 0x3614948A: cmp edi, eax */ 5423 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5424 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5425 _flag_k = FK_CMP; 5426 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614948C: je 0x3614949c */ 5427 L_3614948E: 5428 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614948E: mov cx, word ptr [ebp - 0x26] */ 5429 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149492: mov word ptr [edi], cx */ 5430 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 5431 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5432 edi = edi + 2; /* 0x36149495: add edi, 2 */ 5433 _flag_k = FK_ADD; 5434 /* cmp edi, eax */ /* 0x36149498: cmp edi, eax */ 5435 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5436 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5437 _flag_k = FK_CMP; 5438 RECOMP_BACKEDGE(); 5439 if (CMP_NE(_flag_a, _flag_b)) goto L_3614948E; /* 0x3614949A: jne 0x3614948e */ 5440 L_3614949C: 5441 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 5442 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5443 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x3614949C: add dword ptr [esi + 8], 2 */ 5444 _flag_k = FK_ADD; 5445 L_361494A0: 5446 eax = MEM32(ebp + (-0x14)); /* 0x361494A0: mov eax, dword ptr [ebp - 0x14] */ 5447 edx = MEM32(ebp + (-0x64)); /* 0x361494A3: mov edx, dword ptr [ebp - 0x64] */ 5448 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5449 eax = eax + 1; /* 0x361494A6: inc eax */ 5450 _flag_k = FK_INC; 5451 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 5452 edx = edx & 0xFFu; /* 0x361494A7: and edx, 0xff */ 5453 _cf = 0; 5454 _flag_k = FK_TEST; 5455 /* cmp eax, edx */ /* 0x361494AD: cmp eax, edx */ 5456 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5457 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5458 _flag_k = FK_CMP; 5459 MEM32(ebp + (-0x14)) = eax; /* 0x361494AF: mov dword ptr [ebp - 0x14], eax */ 5460 RECOMP_BACKEDGE(); 5461 if (CMP_B(_flag_a, _flag_b)) goto L_361491D9; /* 0x361494B2: jb 0x361491d9 */ 5462 L_361494B8: 5463 SET_LO8(eax, MEM8(ebp + (-0x4C))); /* 0x361494B8: mov al, byte ptr [ebp - 0x4c] */ 5464 /* test LO8(eax), LO8(eax) */ /* 0x361494BB: test al, al */ 5465 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5466 _cf = 0; 5467 _flag_k = FK_NARROW(FK_TEST, 24); 5468 MEM32(ebp + (-0x10)) = 0; /* 0x361494BD: mov dword ptr [ebp - 0x10], 0 */ 5469 if (TEST_Z(_flag_a, _flag_b)) goto L_361496AB; /* 0x361494C4: jbe 0x361496ab */ 5470 L_361494CA: 5471 ecx = ebp + (-0x84); /* 0x361494CA: lea ecx, [ebp - 0x84] */ 5472 RECOMP_ICALL(0x3602F750u); /* 0x361494D0: call 0x3602f750 */ /* not lifted */ 5473 RECOMP_FLAGS_IN(); 5474 ecx = MEM32(ebp + 0x8); /* 0x361494D5: mov ecx, dword ptr [ebp + 8] */ 5475 eax = ebp + (-0x84); /* 0x361494D8: lea eax, [ebp - 0x84] */ 5476 PUSH32(esp, eax); /* 0x361494DE: push eax */ 5477 PUSH32(esp, ecx); /* 0x361494DF: push ecx */ 5478 MEM32(ebp + (-0x4)) = 0; /* 0x361494E0: mov dword ptr [ebp - 4], 0 */ 5479 RECOMP_ICALL(0x3602F810u); /* 0x361494E7: call 0x3602f810 */ /* not lifted */ 5480 RECOMP_FLAGS_IN(); 5481 esi = MEM32(ebx + 0x50); /* 0x361494EC: mov esi, dword ptr [ebx + 0x50] */ 5482 ecx = MEM32(esi + 0x8); /* 0x361494EF: mov ecx, dword ptr [esi + 8] */ 5483 edx = MEM32(esi + 0xC); /* 0x361494F2: mov edx, dword ptr [esi + 0xc] */ 5484 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 5485 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5486 edx = edx - ecx; /* 0x361494F5: sub edx, ecx */ 5487 _flag_k = FK_CMP; 5488 eax = 0x66666667u; /* 0x361494F7: mov eax, 0x66666667 */ 5489 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361494FC: imul edx */ 5490 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 5491 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 5492 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361494FE: sar edx, 3 */ 5493 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5494 edx = (uint32_t)((int32_t)edx >> 3u); 5495 eax = edx; /* 0x36149501: mov eax, edx */ 5496 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149503: shr eax, 0x1f */ 5497 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5498 eax = eax >> 31u; /* 0x36149503: shr eax, 0x1f */ 5499 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5500 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5501 edx = edx + eax; /* 0x36149506: add edx, eax */ 5502 _flag_k = FK_ADD; 5503 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5504 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5505 esp = esp + 8; /* 0x36149508: add esp, 8 */ 5506 _flag_k = FK_ADD; 5507 /* cmp edx, 1 */ /* 0x3614950B: cmp edx, 1 */ 5508 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 5509 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5510 _flag_k = FK_CMP; 5511 edi = ecx; /* 0x3614950E: mov edi, ecx */ 5512 if (CMP_AE(_flag_a, _flag_b)) goto L_361495E2; /* 0x36149510: jae 0x361495e2 */ 5513 L_36149516: 5514 eax = MEM32(esi + 0x4); /* 0x36149516: mov eax, dword ptr [esi + 4] */ 5515 /* test eax, eax */ /* 0x36149519: test eax, eax */ 5516 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5517 _cf = 0; 5518 _flag_k = FK_TEST; 5519 if (TEST_Z(_flag_a, _flag_b)) goto L_36149541; /* 0x3614951B: je 0x36149541 */ 5520 L_3614951D: 5521 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5522 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5523 ecx = ecx - eax; /* 0x3614951D: sub ecx, eax */ 5524 _flag_k = FK_CMP; 5525 eax = 0x66666667u; /* 0x3614951F: mov eax, 0x66666667 */ 5526 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149524: imul ecx */ 5527 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 5528 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 5529 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149526: sar edx, 3 */ 5530 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5531 edx = (uint32_t)((int32_t)edx >> 3u); 5532 ecx = edx; /* 0x36149529: mov ecx, edx */ 5533 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614952B: shr ecx, 0x1f */ 5534 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5535 ecx = ecx >> 31u; /* 0x3614952B: shr ecx, 0x1f */ 5536 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 5537 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5538 edx = edx + ecx; /* 0x3614952E: add edx, ecx */ 5539 _flag_k = FK_ADD; 5540 /* cmp edx, 1 */ /* 0x36149530: cmp edx, 1 */ 5541 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 5542 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5543 _flag_k = FK_CMP; 5544 if (CMP_BE(_flag_a, _flag_b)) goto L_36149541; /* 0x36149533: jbe 0x36149541 */ 5545 L_36149535: 5546 ecx = esi; /* 0x36149535: mov ecx, esi */ 5547 RECOMP_ICALL(0x36149DC0u); /* 0x36149537: call 0x36149dc0 */ /* not lifted */ 5548 RECOMP_FLAGS_IN(); 5549 MEM32(ebp + (-0x14)) = eax; /* 0x3614953C: mov dword ptr [ebp - 0x14], eax */ 5550 goto L_36149548; /* 0x3614953F: jmp 0x36149548 */ 5551 L_36149541: 5552 MEM32(ebp + (-0x14)) = 1; /* 0x36149541: mov dword ptr [ebp - 0x14], 1 */ 5553 L_36149548: 5554 ecx = esi; /* 0x36149548: mov ecx, esi */ 5555 RECOMP_ICALL(0x36149DC0u); /* 0x3614954A: call 0x36149dc0 */ /* not lifted */ 5556 RECOMP_FLAGS_IN(); 5557 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 5558 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5559 eax = eax + MEM32(ebp + (-0x14)); /* 0x3614954F: add eax, dword ptr [ebp - 0x14] */ 5560 _flag_k = FK_ADD; 5561 MEM32(ebp + (-0x2C)) = eax; /* 0x36149552: mov dword ptr [ebp - 0x2c], eax */ 5562 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149559; /* 0x36149555: jns 0x36149559 */ 5563 L_36149557: 5564 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5565 eax = 0; /* 0x36149557: xor eax, eax */ 5566 _cf = 0; 5567 _flag_k = FK_TEST; 5568 L_36149559: 5569 edx = eax + eax * 4; /* 0x36149559: lea edx, [eax + eax*4] */ 5570 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614955C: shl edx, 2 */ 5571 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5572 edx = edx << 2u; /* 0x3614955C: shl edx, 2 */ 5573 PUSH32(esp, edx); /* 0x3614955F: push edx */ 5574 RECOMP_ICALL(0x3615FD6Au); /* 0x36149560: call 0x3615fd6a */ /* not lifted */ 5575 RECOMP_FLAGS_IN(); 5576 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5577 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5578 esp = esp + 4; /* 0x36149565: add esp, 4 */ 5579 _flag_k = FK_ADD; 5580 PUSH32(esp, eax); /* 0x36149568: push eax */ 5581 MEM32(ebp + (-0x14)) = eax; /* 0x36149569: mov dword ptr [ebp - 0x14], eax */ 5582 eax = MEM32(esi + 0x4); /* 0x3614956C: mov eax, dword ptr [esi + 4] */ 5583 PUSH32(esp, edi); /* 0x3614956F: push edi */ 5584 PUSH32(esp, eax); /* 0x36149570: push eax */ 5585 ecx = esi; /* 0x36149571: mov ecx, esi */ 5586 RECOMP_ICALL(0x36149E20u); /* 0x36149573: call 0x36149e20 */ /* not lifted */ 5587 RECOMP_FLAGS_IN(); 5588 ecx = ebp + (-0x84); /* 0x36149578: lea ecx, [ebp - 0x84] */ 5589 PUSH32(esp, ecx); /* 0x3614957E: push ecx */ 5590 PUSH32(esp, 1); /* 0x3614957F: push 1 */ 5591 PUSH32(esp, eax); /* 0x36149581: push eax */ 5592 ecx = esi; /* 0x36149582: mov ecx, esi */ 5593 MEM32(ebp + (-0x18)) = eax; /* 0x36149584: mov dword ptr [ebp - 0x18], eax */ 5594 RECOMP_ICALL(0x3614A190u); /* 0x36149587: call 0x3614a190 */ /* not lifted */ 5595 RECOMP_FLAGS_IN(); 5596 edx = MEM32(ebp + (-0x18)); /* 0x3614958C: mov edx, dword ptr [ebp - 0x18] */ 5597 eax = MEM32(esi + 0x8); /* 0x3614958F: mov eax, dword ptr [esi + 8] */ 5598 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u); 5599 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5600 edx = edx + 0x14u; /* 0x36149592: add edx, 0x14 */ 5601 _flag_k = FK_ADD; 5602 PUSH32(esp, edx); /* 0x36149595: push edx */ 5603 PUSH32(esp, eax); /* 0x36149596: push eax */ 5604 PUSH32(esp, edi); /* 0x36149597: push edi */ 5605 ecx = esi; /* 0x36149598: mov ecx, esi */ 5606 RECOMP_ICALL(0x36149E20u); /* 0x3614959A: call 0x36149e20 */ /* not lifted */ 5607 RECOMP_FLAGS_IN(); 5608 ecx = MEM32(esi + 0x8); /* 0x3614959F: mov ecx, dword ptr [esi + 8] */ 5609 edx = MEM32(esi + 0x4); /* 0x361495A2: mov edx, dword ptr [esi + 4] */ 5610 PUSH32(esp, ecx); /* 0x361495A5: push ecx */ 5611 PUSH32(esp, edx); /* 0x361495A6: push edx */ 5612 ecx = esi; /* 0x361495A7: mov ecx, esi */ 5613 RECOMP_ICALL(0x36149DF0u); /* 0x361495A9: call 0x36149df0 */ /* not lifted */ 5614 RECOMP_FLAGS_IN(); 5615 eax = MEM32(esi + 0x4); /* 0x361495AE: mov eax, dword ptr [esi + 4] */ 5616 PUSH32(esp, eax); /* 0x361495B1: push eax */ 5617 RECOMP_ICALL(0x3615FCC4u); /* 0x361495B2: call 0x3615fcc4 */ /* not lifted */ 5618 RECOMP_FLAGS_IN(); 5619 eax = MEM32(ebp + (-0x2C)); /* 0x361495B7: mov eax, dword ptr [ebp - 0x2c] */ 5620 edi = MEM32(ebp + (-0x14)); /* 0x361495BA: mov edi, dword ptr [ebp - 0x14] */ 5621 eax = eax + eax * 4; /* 0x361495BD: lea eax, [eax + eax*4] */ 5622 ecx = edi + eax * 4; /* 0x361495C0: lea ecx, [edi + eax*4] */ 5623 MEM32(esi + 0xC) = ecx; /* 0x361495C3: mov dword ptr [esi + 0xc], ecx */ 5624 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5625 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5626 esp = esp + 4; /* 0x361495C6: add esp, 4 */ 5627 _flag_k = FK_ADD; 5628 ecx = esi; /* 0x361495C9: mov ecx, esi */ 5629 RECOMP_ICALL(0x36149DC0u); /* 0x361495CB: call 0x36149dc0 */ /* not lifted */ 5630 RECOMP_FLAGS_IN(); 5631 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5632 eax = eax + 1; /* 0x361495D0: inc eax */ 5633 _flag_k = FK_INC; 5634 edx = eax + eax * 4; /* 0x361495D1: lea edx, [eax + eax*4] */ 5635 eax = edi + edx * 4; /* 0x361495D4: lea eax, [edi + edx*4] */ 5636 MEM32(esi + 0x8) = eax; /* 0x361495D7: mov dword ptr [esi + 8], eax */ 5637 MEM32(esi + 0x4) = edi; /* 0x361495DA: mov dword ptr [esi + 4], edi */ 5638 goto L_36149681; /* 0x361495DD: jmp 0x36149681 */ 5639 L_361495E2: 5640 edx = ecx; /* 0x361495E2: mov edx, ecx */ 5641 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 5642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5643 edx = edx - edi; /* 0x361495E4: sub edx, edi */ 5644 _flag_k = FK_CMP; 5645 eax = 0x66666667u; /* 0x361495E6: mov eax, 0x66666667 */ 5646 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361495EB: imul edx */ 5647 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 5648 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 5649 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361495ED: sar edx, 3 */ 5650 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5651 edx = (uint32_t)((int32_t)edx >> 3u); 5652 eax = edx; /* 0x361495F0: mov eax, edx */ 5653 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361495F2: shr eax, 0x1f */ 5654 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5655 eax = eax >> 31u; /* 0x361495F2: shr eax, 0x1f */ 5656 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5657 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5658 edx = edx + eax; /* 0x361495F5: add edx, eax */ 5659 _flag_k = FK_ADD; 5660 /* cmp edx, 1 */ /* 0x361495F7: cmp edx, 1 */ 5661 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 5662 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5663 _flag_k = FK_CMP; 5664 if (CMP_AE(_flag_a, _flag_b)) goto L_3614964E; /* 0x361495FA: jae 0x3614964e */ 5665 L_361495FC: 5666 edx = edi + 0x14; /* 0x361495FC: lea edx, [edi + 0x14] */ 5667 PUSH32(esp, edx); /* 0x361495FF: push edx */ 5668 PUSH32(esp, ecx); /* 0x36149600: push ecx */ 5669 PUSH32(esp, edi); /* 0x36149601: push edi */ 5670 ecx = esi; /* 0x36149602: mov ecx, esi */ 5671 RECOMP_ICALL(0x36149E20u); /* 0x36149604: call 0x36149e20 */ /* not lifted */ 5672 RECOMP_FLAGS_IN(); 5673 ecx = MEM32(esi + 0x8); /* 0x36149609: mov ecx, dword ptr [esi + 8] */ 5674 eax = ebp + (-0x84); /* 0x3614960C: lea eax, [ebp - 0x84] */ 5675 PUSH32(esp, eax); /* 0x36149612: push eax */ 5676 edx = ecx; /* 0x36149613: mov edx, ecx */ 5677 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 5678 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5679 edx = edx - edi; /* 0x36149615: sub edx, edi */ 5680 _flag_k = FK_CMP; 5681 eax = 0x66666667u; /* 0x36149617: mov eax, 0x66666667 */ 5682 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3614961C: imul edx */ 5683 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 5684 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 5685 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3614961E: sar edx, 3 */ 5686 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5687 edx = (uint32_t)((int32_t)edx >> 3u); 5688 eax = edx; /* 0x36149621: mov eax, edx */ 5689 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149623: shr eax, 0x1f */ 5690 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5691 eax = eax >> 31u; /* 0x36149623: shr eax, 0x1f */ 5692 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5693 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5694 edx = edx + eax; /* 0x36149626: add edx, eax */ 5695 _flag_k = FK_ADD; 5696 eax = 1; /* 0x36149628: mov eax, 1 */ 5697 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5698 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5699 eax = eax - edx; /* 0x3614962D: sub eax, edx */ 5700 _flag_k = FK_CMP; 5701 PUSH32(esp, eax); /* 0x3614962F: push eax */ 5702 PUSH32(esp, ecx); /* 0x36149630: push ecx */ 5703 ecx = esi; /* 0x36149631: mov ecx, esi */ 5704 RECOMP_ICALL(0x3614A190u); /* 0x36149633: call 0x3614a190 */ /* not lifted */ 5705 RECOMP_FLAGS_IN(); 5706 edx = MEM32(esi + 0x8); /* 0x36149638: mov edx, dword ptr [esi + 8] */ 5707 ecx = ebp + (-0x84); /* 0x3614963B: lea ecx, [ebp - 0x84] */ 5708 PUSH32(esp, ecx); /* 0x36149641: push ecx */ 5709 PUSH32(esp, edx); /* 0x36149642: push edx */ 5710 PUSH32(esp, edi); /* 0x36149643: push edi */ 5711 RECOMP_ICALL(0x3614A2A0u); /* 0x36149644: call 0x3614a2a0 */ /* not lifted */ 5712 RECOMP_FLAGS_IN(); 5713 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5714 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5715 esp = esp + 0xCu; /* 0x36149649: add esp, 0xc */ 5716 _flag_k = FK_ADD; 5717 goto L_3614967D; /* 0x3614964C: jmp 0x3614967d */ 5718 L_3614964E: 5719 PUSH32(esp, ecx); /* 0x3614964E: push ecx */ 5720 PUSH32(esp, ecx); /* 0x3614964F: push ecx */ 5721 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu); 5722 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5723 ecx = ecx + 0xFFFFFFECu; /* 0x36149650: add ecx, -0x14 */ 5724 _flag_k = FK_ADD; 5725 PUSH32(esp, ecx); /* 0x36149653: push ecx */ 5726 ecx = esi; /* 0x36149654: mov ecx, esi */ 5727 RECOMP_ICALL(0x36149E20u); /* 0x36149656: call 0x36149e20 */ /* not lifted */ 5728 RECOMP_FLAGS_IN(); 5729 eax = MEM32(esi + 0x8); /* 0x3614965B: mov eax, dword ptr [esi + 8] */ 5730 PUSH32(esp, eax); /* 0x3614965E: push eax */ 5731 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu); 5732 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5733 eax = eax + 0xFFFFFFECu; /* 0x3614965F: add eax, -0x14 */ 5734 _flag_k = FK_ADD; 5735 PUSH32(esp, eax); /* 0x36149662: push eax */ 5736 PUSH32(esp, edi); /* 0x36149663: push edi */ 5737 RECOMP_ICALL(0x3614A2D0u); /* 0x36149664: call 0x3614a2d0 */ /* not lifted */ 5738 RECOMP_FLAGS_IN(); 5739 eax = ebp + (-0x84); /* 0x36149669: lea eax, [ebp - 0x84] */ 5740 PUSH32(esp, eax); /* 0x3614966F: push eax */ 5741 ecx = edi + 0x14; /* 0x36149670: lea ecx, [edi + 0x14] */ 5742 PUSH32(esp, ecx); /* 0x36149673: push ecx */ 5743 PUSH32(esp, edi); /* 0x36149674: push edi */ 5744 RECOMP_ICALL(0x3614A2A0u); /* 0x36149675: call 0x3614a2a0 */ /* not lifted */ 5745 RECOMP_FLAGS_IN(); 5746 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 5747 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5748 esp = esp + 0x18u; /* 0x3614967A: add esp, 0x18 */ 5749 _flag_k = FK_ADD; 5750 L_3614967D: 5751 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x14u); 5752 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5753 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x14u; /* 0x3614967D: add dword ptr [esi + 8], 0x14 */ 5754 _flag_k = FK_ADD; 5755 L_36149681: 5756 ecx = ebp + (-0x84); /* 0x36149681: lea ecx, [ebp - 0x84] */ 5757 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149687: mov dword ptr [ebp - 4], 0xffffffff */ 5758 RECOMP_ICALL(0x3602F7D0u); /* 0x3614968E: call 0x3602f7d0 */ /* not lifted */ 5759 RECOMP_FLAGS_IN(); 5760 eax = MEM32(ebp + (-0x10)); /* 0x36149693: mov eax, dword ptr [ebp - 0x10] */ 5761 edx = MEM32(ebp + (-0x4C)); /* 0x36149696: mov edx, dword ptr [ebp - 0x4c] */ 5762 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5763 eax = eax + 1; /* 0x36149699: inc eax */ 5764 _flag_k = FK_INC; 5765 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 5766 edx = edx & 0xFFu; /* 0x3614969A: and edx, 0xff */ 5767 _cf = 0; 5768 _flag_k = FK_TEST; 5769 /* cmp eax, edx */ /* 0x361496A0: cmp eax, edx */ 5770 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5771 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5772 _flag_k = FK_CMP; 5773 MEM32(ebp + (-0x10)) = eax; /* 0x361496A2: mov dword ptr [ebp - 0x10], eax */ 5774 RECOMP_BACKEDGE(); 5775 if (CMP_L(_flag_a, _flag_b)) goto L_361494CA; /* 0x361496A5: jl 0x361494ca */ 5776 L_361496AB: 5777 SET_LO8(eax, MEM8(ebp + (-0x50))); /* 0x361496AB: mov al, byte ptr [ebp - 0x50] */ 5778 /* test LO8(eax), LO8(eax) */ /* 0x361496AE: test al, al */ 5779 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5780 _cf = 0; 5781 _flag_k = FK_NARROW(FK_TEST, 24); 5782 MEM32(ebp + (-0x14)) = 0; /* 0x361496B0: mov dword ptr [ebp - 0x14], 0 */ 5783 if (TEST_Z(_flag_a, _flag_b)) goto L_361498AA; /* 0x361496B7: jbe 0x361498aa */ 5784 L_361496BD: 5785 ecx = ebp + (-0xAC); /* 0x361496BD: lea ecx, [ebp - 0xac] */ 5786 RECOMP_ICALL(0x3602F870u); /* 0x361496C3: call 0x3602f870 */ /* not lifted */ 5787 RECOMP_FLAGS_IN(); 5788 ecx = MEM32(ebp + 0x8); /* 0x361496C8: mov ecx, dword ptr [ebp + 8] */ 5789 eax = ebp + (-0xAC); /* 0x361496CB: lea eax, [ebp - 0xac] */ 5790 PUSH32(esp, eax); /* 0x361496D1: push eax */ 5791 PUSH32(esp, ecx); /* 0x361496D2: push ecx */ 5792 MEM32(ebp + (-0x4)) = 1; /* 0x361496D3: mov dword ptr [ebp - 4], 1 */ 5793 RECOMP_ICALL(0x3602F9B0u); /* 0x361496DA: call 0x3602f9b0 */ /* not lifted */ 5794 RECOMP_FLAGS_IN(); 5795 esi = MEM32(ebx + 0x54); /* 0x361496DF: mov esi, dword ptr [ebx + 0x54] */ 5796 ecx = MEM32(esi + 0x8); /* 0x361496E2: mov ecx, dword ptr [esi + 8] */ 5797 edx = MEM32(esi + 0xC); /* 0x361496E5: mov edx, dword ptr [esi + 0xc] */ 5798 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 5799 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5800 edx = edx - ecx; /* 0x361496E8: sub edx, ecx */ 5801 _flag_k = FK_CMP; 5802 MEM32(ebp + (-0x18)) = edx; /* 0x361496EA: mov dword ptr [ebp - 0x18], edx */ 5803 eax = 0x88888889u; /* 0x361496ED: mov eax, 0x88888889 */ 5804 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361496F2: imul edx */ 5805 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 5806 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 5807 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 5808 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5809 edx = edx + MEM32(ebp + (-0x18)); /* 0x361496F4: add edx, dword ptr [ebp - 0x18] */ 5810 _flag_k = FK_ADD; 5811 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361496F7: sar edx, 5 */ 5812 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5813 edx = (uint32_t)((int32_t)edx >> 5u); 5814 eax = edx; /* 0x361496FA: mov eax, edx */ 5815 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361496FC: shr eax, 0x1f */ 5816 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5817 eax = eax >> 31u; /* 0x361496FC: shr eax, 0x1f */ 5818 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5819 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5820 edx = edx + eax; /* 0x361496FF: add edx, eax */ 5821 _flag_k = FK_ADD; 5822 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5823 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5824 esp = esp + 8; /* 0x36149701: add esp, 8 */ 5825 _flag_k = FK_ADD; 5826 /* cmp edx, 1 */ /* 0x36149704: cmp edx, 1 */ 5827 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 5828 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5829 _flag_k = FK_CMP; 5830 edi = ecx; /* 0x36149707: mov edi, ecx */ 5831 if (CMP_AE(_flag_a, _flag_b)) goto L_361497D8; /* 0x36149709: jae 0x361497d8 */ 5832 L_3614970F: 5833 eax = MEM32(esi + 0x4); /* 0x3614970F: mov eax, dword ptr [esi + 4] */ 5834 /* test eax, eax */ /* 0x36149712: test eax, eax */ 5835 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5836 _cf = 0; 5837 _flag_k = FK_TEST; 5838 if (TEST_Z(_flag_a, _flag_b)) goto L_36149732; /* 0x36149714: je 0x36149732 */ 5839 L_36149716: 5840 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5841 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5842 ecx = ecx - eax; /* 0x36149716: sub ecx, eax */ 5843 _flag_k = FK_CMP; 5844 eax = 0x88888889u; /* 0x36149718: mov eax, 0x88888889 */ 5845 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3614971D: imul ecx */ 5846 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 5847 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 5848 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 5849 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5850 edx = edx + ecx; /* 0x3614971F: add edx, ecx */ 5851 _flag_k = FK_ADD; 5852 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36149721: sar edx, 5 */ 5853 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5854 edx = (uint32_t)((int32_t)edx >> 5u); 5855 ecx = edx; /* 0x36149724: mov ecx, edx */ 5856 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36149726: shr ecx, 0x1f */ 5857 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5858 ecx = ecx >> 31u; /* 0x36149726: shr ecx, 0x1f */ 5859 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 5860 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5861 edx = edx + ecx; /* 0x36149729: add edx, ecx */ 5862 _flag_k = FK_ADD; 5863 /* cmp edx, 1 */ /* 0x3614972B: cmp edx, 1 */ 5864 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 5865 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5866 _flag_k = FK_CMP; 5867 ebx = edx; /* 0x3614972E: mov ebx, edx */ 5868 if (CMP_A(_flag_a, _flag_b)) goto L_36149737; /* 0x36149730: ja 0x36149737 */ 5869 L_36149732: 5870 ebx = 1; /* 0x36149732: mov ebx, 1 */ 5871 L_36149737: 5872 ecx = esi; /* 0x36149737: mov ecx, esi */ 5873 RECOMP_ICALL(0x36149E90u); /* 0x36149739: call 0x36149e90 */ /* not lifted */ 5874 RECOMP_FLAGS_IN(); 5875 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5876 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5877 eax = eax + ebx; /* 0x3614973E: add eax, ebx */ 5878 _flag_k = FK_ADD; 5879 MEM32(ebp + (-0x2C)) = eax; /* 0x36149740: mov dword ptr [ebp - 0x2c], eax */ 5880 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149747; /* 0x36149743: jns 0x36149747 */ 5881 L_36149745: 5882 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5883 eax = 0; /* 0x36149745: xor eax, eax */ 5884 _cf = 0; 5885 _flag_k = FK_TEST; 5886 L_36149747: 5887 eax = eax + eax * 2; /* 0x36149747: lea eax, [eax + eax*2] */ 5888 edx = eax + eax * 4; /* 0x3614974A: lea edx, [eax + eax*4] */ 5889 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614974D: shl edx, 2 */ 5890 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5891 edx = edx << 2u; /* 0x3614974D: shl edx, 2 */ 5892 PUSH32(esp, edx); /* 0x36149750: push edx */ 5893 RECOMP_ICALL(0x3615FD6Au); /* 0x36149751: call 0x3615fd6a */ /* not lifted */ 5894 RECOMP_FLAGS_IN(); 5895 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5896 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5897 esp = esp + 4; /* 0x36149756: add esp, 4 */ 5898 _flag_k = FK_ADD; 5899 ebx = eax; /* 0x36149759: mov ebx, eax */ 5900 eax = MEM32(esi + 0x4); /* 0x3614975B: mov eax, dword ptr [esi + 4] */ 5901 PUSH32(esp, ebx); /* 0x3614975E: push ebx */ 5902 PUSH32(esp, edi); /* 0x3614975F: push edi */ 5903 PUSH32(esp, eax); /* 0x36149760: push eax */ 5904 ecx = esi; /* 0x36149761: mov ecx, esi */ 5905 RECOMP_ICALL(0x36149EF0u); /* 0x36149763: call 0x36149ef0 */ /* not lifted */ 5906 RECOMP_FLAGS_IN(); 5907 ecx = ebp + (-0xAC); /* 0x36149768: lea ecx, [ebp - 0xac] */ 5908 PUSH32(esp, ecx); /* 0x3614976E: push ecx */ 5909 PUSH32(esp, 1); /* 0x3614976F: push 1 */ 5910 PUSH32(esp, eax); /* 0x36149771: push eax */ 5911 ecx = esi; /* 0x36149772: mov ecx, esi */ 5912 MEM32(ebp + (-0x18)) = eax; /* 0x36149774: mov dword ptr [ebp - 0x18], eax */ 5913 RECOMP_ICALL(0x3614A1C0u); /* 0x36149777: call 0x3614a1c0 */ /* not lifted */ 5914 RECOMP_FLAGS_IN(); 5915 edx = MEM32(ebp + (-0x18)); /* 0x3614977C: mov edx, dword ptr [ebp - 0x18] */ 5916 eax = MEM32(esi + 0x8); /* 0x3614977F: mov eax, dword ptr [esi + 8] */ 5917 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x3Cu); 5918 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5919 edx = edx + 0x3Cu; /* 0x36149782: add edx, 0x3c */ 5920 _flag_k = FK_ADD; 5921 PUSH32(esp, edx); /* 0x36149785: push edx */ 5922 PUSH32(esp, eax); /* 0x36149786: push eax */ 5923 PUSH32(esp, edi); /* 0x36149787: push edi */ 5924 ecx = esi; /* 0x36149788: mov ecx, esi */ 5925 RECOMP_ICALL(0x36149EF0u); /* 0x3614978A: call 0x36149ef0 */ /* not lifted */ 5926 RECOMP_FLAGS_IN(); 5927 ecx = MEM32(esi + 0x8); /* 0x3614978F: mov ecx, dword ptr [esi + 8] */ 5928 edx = MEM32(esi + 0x4); /* 0x36149792: mov edx, dword ptr [esi + 4] */ 5929 PUSH32(esp, ecx); /* 0x36149795: push ecx */ 5930 PUSH32(esp, edx); /* 0x36149796: push edx */ 5931 ecx = esi; /* 0x36149797: mov ecx, esi */ 5932 RECOMP_ICALL(0x36149EC0u); /* 0x36149799: call 0x36149ec0 */ /* not lifted */ 5933 RECOMP_FLAGS_IN(); 5934 eax = MEM32(esi + 0x4); /* 0x3614979E: mov eax, dword ptr [esi + 4] */ 5935 PUSH32(esp, eax); /* 0x361497A1: push eax */ 5936 RECOMP_ICALL(0x3615FCC4u); /* 0x361497A2: call 0x3615fcc4 */ /* not lifted */ 5937 RECOMP_FLAGS_IN(); 5938 eax = MEM32(ebp + (-0x2C)); /* 0x361497A7: mov eax, dword ptr [ebp - 0x2c] */ 5939 eax = eax + eax * 2; /* 0x361497AA: lea eax, [eax + eax*2] */ 5940 eax = eax + eax * 4; /* 0x361497AD: lea eax, [eax + eax*4] */ 5941 ecx = ebx + eax * 4; /* 0x361497B0: lea ecx, [ebx + eax*4] */ 5942 MEM32(esi + 0xC) = ecx; /* 0x361497B3: mov dword ptr [esi + 0xc], ecx */ 5943 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5944 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5945 esp = esp + 4; /* 0x361497B6: add esp, 4 */ 5946 _flag_k = FK_ADD; 5947 ecx = esi; /* 0x361497B9: mov ecx, esi */ 5948 RECOMP_ICALL(0x36149E90u); /* 0x361497BB: call 0x36149e90 */ /* not lifted */ 5949 RECOMP_FLAGS_IN(); 5950 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5951 eax = eax + 1; /* 0x361497C0: inc eax */ 5952 _flag_k = FK_INC; 5953 eax = eax + eax * 2; /* 0x361497C1: lea eax, [eax + eax*2] */ 5954 edx = eax + eax * 4; /* 0x361497C4: lea edx, [eax + eax*4] */ 5955 eax = ebx + edx * 4; /* 0x361497C7: lea eax, [ebx + edx*4] */ 5956 MEM32(esi + 0x4) = ebx; /* 0x361497CA: mov dword ptr [esi + 4], ebx */ 5957 ebx = MEM32(ebp + 0xC); /* 0x361497CD: mov ebx, dword ptr [ebp + 0xc] */ 5958 MEM32(esi + 0x8) = eax; /* 0x361497D0: mov dword ptr [esi + 8], eax */ 5959 goto L_36149880; /* 0x361497D3: jmp 0x36149880 */ 5960 L_361497D8: 5961 edx = ecx; /* 0x361497D8: mov edx, ecx */ 5962 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 5963 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5964 edx = edx - edi; /* 0x361497DA: sub edx, edi */ 5965 _flag_k = FK_CMP; 5966 MEM32(ebp + (-0x18)) = edx; /* 0x361497DC: mov dword ptr [ebp - 0x18], edx */ 5967 eax = 0x88888889u; /* 0x361497DF: mov eax, 0x88888889 */ 5968 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361497E4: imul edx */ 5969 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 5970 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 5971 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 5972 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5973 edx = edx + MEM32(ebp + (-0x18)); /* 0x361497E6: add edx, dword ptr [ebp - 0x18] */ 5974 _flag_k = FK_ADD; 5975 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361497E9: sar edx, 5 */ 5976 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5977 edx = (uint32_t)((int32_t)edx >> 5u); 5978 eax = edx; /* 0x361497EC: mov eax, edx */ 5979 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361497EE: shr eax, 0x1f */ 5980 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5981 eax = eax >> 31u; /* 0x361497EE: shr eax, 0x1f */ 5982 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5983 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5984 edx = edx + eax; /* 0x361497F1: add edx, eax */ 5985 _flag_k = FK_ADD; 5986 /* cmp edx, 1 */ /* 0x361497F3: cmp edx, 1 */ 5987 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 5988 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5989 _flag_k = FK_CMP; 5990 if (CMP_AE(_flag_a, _flag_b)) goto L_3614984D; /* 0x361497F6: jae 0x3614984d */ 5991 L_361497F8: 5992 edx = edi + 0x3C; /* 0x361497F8: lea edx, [edi + 0x3c] */ 5993 PUSH32(esp, edx); /* 0x361497FB: push edx */ 5994 PUSH32(esp, ecx); /* 0x361497FC: push ecx */ 5995 PUSH32(esp, edi); /* 0x361497FD: push edi */ 5996 ecx = esi; /* 0x361497FE: mov ecx, esi */ 5997 RECOMP_ICALL(0x36149EF0u); /* 0x36149800: call 0x36149ef0 */ /* not lifted */ 5998 RECOMP_FLAGS_IN(); 5999 ecx = MEM32(esi + 0x8); /* 0x36149805: mov ecx, dword ptr [esi + 8] */ 6000 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 6001 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6002 ecx = ecx - edi; /* 0x36149808: sub ecx, edi */ 6003 _flag_k = FK_CMP; 6004 eax = ebp + (-0xAC); /* 0x3614980A: lea eax, [ebp - 0xac] */ 6005 PUSH32(esp, eax); /* 0x36149810: push eax */ 6006 eax = 0x88888889u; /* 0x36149811: mov eax, 0x88888889 */ 6007 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149816: imul ecx */ 6008 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 6009 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 6010 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 6011 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6012 edx = edx + ecx; /* 0x36149818: add edx, ecx */ 6013 _flag_k = FK_ADD; 6014 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x3614981A: sar edx, 5 */ 6015 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6016 edx = (uint32_t)((int32_t)edx >> 5u); 6017 ecx = edx; /* 0x3614981D: mov ecx, edx */ 6018 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614981F: shr ecx, 0x1f */ 6019 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6020 ecx = ecx >> 31u; /* 0x3614981F: shr ecx, 0x1f */ 6021 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 6022 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6023 edx = edx + ecx; /* 0x36149822: add edx, ecx */ 6024 _flag_k = FK_ADD; 6025 eax = 1; /* 0x36149824: mov eax, 1 */ 6026 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6028 eax = eax - edx; /* 0x36149829: sub eax, edx */ 6029 _flag_k = FK_CMP; 6030 PUSH32(esp, eax); /* 0x3614982B: push eax */ 6031 eax = MEM32(esi + 0x8); /* 0x3614982C: mov eax, dword ptr [esi + 8] */ 6032 PUSH32(esp, eax); /* 0x3614982F: push eax */ 6033 ecx = esi; /* 0x36149830: mov ecx, esi */ 6034 RECOMP_ICALL(0x3614A1C0u); /* 0x36149832: call 0x3614a1c0 */ /* not lifted */ 6035 RECOMP_FLAGS_IN(); 6036 edx = MEM32(esi + 0x8); /* 0x36149837: mov edx, dword ptr [esi + 8] */ 6037 ecx = ebp + (-0xAC); /* 0x3614983A: lea ecx, [ebp - 0xac] */ 6038 PUSH32(esp, ecx); /* 0x36149840: push ecx */ 6039 PUSH32(esp, edx); /* 0x36149841: push edx */ 6040 PUSH32(esp, edi); /* 0x36149842: push edi */ 6041 RECOMP_ICALL(0x3614A360u); /* 0x36149843: call 0x3614a360 */ /* not lifted */ 6042 RECOMP_FLAGS_IN(); 6043 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6044 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6045 esp = esp + 0xCu; /* 0x36149848: add esp, 0xc */ 6046 _flag_k = FK_ADD; 6047 goto L_3614987C; /* 0x3614984B: jmp 0x3614987c */ 6048 L_3614984D: 6049 PUSH32(esp, ecx); /* 0x3614984D: push ecx */ 6050 PUSH32(esp, ecx); /* 0x3614984E: push ecx */ 6051 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC4u); 6052 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6053 ecx = ecx + 0xFFFFFFC4u; /* 0x3614984F: add ecx, -0x3c */ 6054 _flag_k = FK_ADD; 6055 PUSH32(esp, ecx); /* 0x36149852: push ecx */ 6056 ecx = esi; /* 0x36149853: mov ecx, esi */ 6057 RECOMP_ICALL(0x36149EF0u); /* 0x36149855: call 0x36149ef0 */ /* not lifted */ 6058 RECOMP_FLAGS_IN(); 6059 eax = MEM32(esi + 0x8); /* 0x3614985A: mov eax, dword ptr [esi + 8] */ 6060 PUSH32(esp, eax); /* 0x3614985D: push eax */ 6061 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFC4u); 6062 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6063 eax = eax + 0xFFFFFFC4u; /* 0x3614985E: add eax, -0x3c */ 6064 _flag_k = FK_ADD; 6065 PUSH32(esp, eax); /* 0x36149861: push eax */ 6066 PUSH32(esp, edi); /* 0x36149862: push edi */ 6067 RECOMP_ICALL(0x3614A390u); /* 0x36149863: call 0x3614a390 */ /* not lifted */ 6068 RECOMP_FLAGS_IN(); 6069 eax = ebp + (-0xAC); /* 0x36149868: lea eax, [ebp - 0xac] */ 6070 PUSH32(esp, eax); /* 0x3614986E: push eax */ 6071 ecx = edi + 0x3C; /* 0x3614986F: lea ecx, [edi + 0x3c] */ 6072 PUSH32(esp, ecx); /* 0x36149872: push ecx */ 6073 PUSH32(esp, edi); /* 0x36149873: push edi */ 6074 RECOMP_ICALL(0x3614A360u); /* 0x36149874: call 0x3614a360 */ /* not lifted */ 6075 RECOMP_FLAGS_IN(); 6076 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 6077 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6078 esp = esp + 0x18u; /* 0x36149879: add esp, 0x18 */ 6079 _flag_k = FK_ADD; 6080 L_3614987C: 6081 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x3Cu); 6082 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6083 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x3Cu; /* 0x3614987C: add dword ptr [esi + 8], 0x3c */ 6084 _flag_k = FK_ADD; 6085 L_36149880: 6086 ecx = ebp + (-0xAC); /* 0x36149880: lea ecx, [ebp - 0xac] */ 6087 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149886: mov dword ptr [ebp - 4], 0xffffffff */ 6088 RECOMP_ICALL(0x3602F940u); /* 0x3614988D: call 0x3602f940 */ /* not lifted */ 6089 RECOMP_FLAGS_IN(); 6090 eax = MEM32(ebp + (-0x14)); /* 0x36149892: mov eax, dword ptr [ebp - 0x14] */ 6091 edx = MEM32(ebp + (-0x50)); /* 0x36149895: mov edx, dword ptr [ebp - 0x50] */ 6092 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6093 eax = eax + 1; /* 0x36149898: inc eax */ 6094 _flag_k = FK_INC; 6095 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 6096 edx = edx & 0xFFu; /* 0x36149899: and edx, 0xff */ 6097 _cf = 0; 6098 _flag_k = FK_TEST; 6099 /* cmp eax, edx */ /* 0x3614989F: cmp eax, edx */ 6100 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6101 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6102 _flag_k = FK_CMP; 6103 MEM32(ebp + (-0x14)) = eax; /* 0x361498A1: mov dword ptr [ebp - 0x14], eax */ 6104 RECOMP_BACKEDGE(); 6105 if (CMP_L(_flag_a, _flag_b)) goto L_361496BD; /* 0x361498A4: jl 0x361496bd */ 6106 L_361498AA: 6107 esi = MEM32(ebp + 0x8); /* 0x361498AA: mov esi, dword ptr [ebp + 8] */ 6108 ecx = esi; /* 0x361498AD: mov ecx, esi */ 6109 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361498AF: call dword ptr [0x3616fadc] */ 6110 RECOMP_FLAGS_IN(); 6111 /* test eax, eax */ /* 0x361498B5: test eax, eax */ 6112 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6113 _cf = 0; 6114 _flag_k = FK_TEST; 6115 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498F7; /* 0x361498B7: jne 0x361498f7 */ 6116 L_361498B9: 6117 ebx = MEM32(ebx); /* 0x361498B9: mov ebx, dword ptr [ebx] */ 6118 eax = MEM32(ebx + 0x4); /* 0x361498BB: mov eax, dword ptr [ebx + 4] */ 6119 /* test eax, eax */ /* 0x361498BE: test eax, eax */ 6120 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6121 _cf = 0; 6122 _flag_k = FK_TEST; 6123 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498C7; /* 0x361498C0: jne 0x361498c7 */ 6124 L_361498C2: 6125 eax = MEM32(0x3616F10C); /* 0x361498C2: mov eax, dword ptr [0x3616f10c] */ 6126 L_361498C7: 6127 PUSH32(esp, eax); /* 0x361498C7: push eax */ 6128 PUSH32(esp, 0x362E75FCu); /* 0x361498C8: push 0x362e75fc */ 6129 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361498CD: call dword ptr [0x3616f18c] */ 6130 RECOMP_FLAGS_IN(); 6131 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6132 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6133 esp = esp + 8; /* 0x361498D3: add esp, 8 */ 6134 _flag_k = FK_ADD; 6135 PUSH32(esp, 0x362E75CCu); /* 0x361498D6: push 0x362e75cc */ 6136 ecx = ebp + (-0xB4); /* 0x361498DB: lea ecx, [ebp - 0xb4] */ 6137 RECOMP_ICALL(0x36008EF0u); /* 0x361498E1: call 0x36008ef0 */ /* not lifted */ 6138 RECOMP_FLAGS_IN(); 6139 PUSH32(esp, 0x36184170u); /* 0x361498E6: push 0x36184170 */ 6140 eax = ebp + (-0xB4); /* 0x361498EB: lea eax, [ebp - 0xb4] */ 6141 PUSH32(esp, eax); /* 0x361498F1: push eax */ 6142 RECOMP_ICALL(0x3615FD70u); /* 0x361498F2: call 0x3615fd70 */ /* not lifted */ 6143 RECOMP_FLAGS_IN(); 6144 L_361498F7: 6145 ecx = MEM32(ebp + (-0xC)); /* 0x361498F7: mov ecx, dword ptr [ebp - 0xc] */ 6146 edi = POP32_VAL(esp); /* 0x361498FA: pop edi */ 6147 eax = esi; /* 0x361498FB: mov eax, esi */ 6148 esi = POP32_VAL(esp); /* 0x361498FD: pop esi */ 6149 ebx = POP32_VAL(esp); /* 0x361498FE: pop ebx */ 6150 MEM32(FS_BASE + (0)) = ecx; /* 0x361498FF: mov dword ptr fs:[0], ecx */ 6151 esp = ebp; /* 0x36149906: mov esp, ebp */ 6152 ebp = POP32_VAL(esp); /* 0x36149908: pop ebp */ 6153 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149909: ret */ 6154 RECOMP_REGS_OUT(); 6155 } 6156 6157 void sub_361492B8(void) { 6158 int _fpu_cmp = 0; 6159 uint32_t _cf = 0; 6160 int _df = 1; 6161 uint32_t _flag_k = FK_NONE; 6162 uint32_t _flag_a = 0, _flag_b = 0; 6163 uint32_t _itail_tgt = 0; 6164 RECOMP_REGS_LOCALS 6165 RECOMP_ENTER(0x361492B8u); 6166 6167 goto L_361492B8; 6168 L_361491D9: 6169 ecx = MEM32(ebp + 0x8); /* 0x361491D9: mov ecx, dword ptr [ebp + 8] */ 6170 esi = MEM32(0x3616FAC8); /* 0x361491DC: mov esi, dword ptr [0x3616fac8] */ 6171 eax = ebp + (-0x1E); /* 0x361491E2: lea eax, [ebp - 0x1e] */ 6172 PUSH32(esp, eax); /* 0x361491E5: push eax */ 6173 RECOMP_ICALL(esi); /* 0x361491E6: call esi */ 6174 RECOMP_FLAGS_IN(); 6175 ecx = ebp + (-0x26); /* 0x361491E8: lea ecx, [ebp - 0x26] */ 6176 PUSH32(esp, ecx); /* 0x361491EB: push ecx */ 6177 ecx = eax; /* 0x361491EC: mov ecx, eax */ 6178 RECOMP_ICALL(esi); /* 0x361491EE: call esi */ 6179 RECOMP_FLAGS_IN(); 6180 esi = MEM32(ebx + 0x5C); /* 0x361491F0: mov esi, dword ptr [ebx + 0x5c] */ 6181 eax = MEM32(esi + 0x8); /* 0x361491F3: mov eax, dword ptr [esi + 8] */ 6182 edx = MEM32(esi + 0xC); /* 0x361491F6: mov edx, dword ptr [esi + 0xc] */ 6183 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6184 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6185 edx = edx - eax; /* 0x361491F9: sub edx, eax */ 6186 _flag_k = FK_CMP; 6187 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x361491FB: sar edx, 1 */ 6188 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6189 edx = (uint32_t)((int32_t)edx >> 1u); 6190 /* cmp edx, 1 */ /* 0x361491FD: cmp edx, 1 */ 6191 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 6192 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6193 _flag_k = FK_CMP; 6194 edi = eax; /* 0x36149200: mov edi, eax */ 6195 if (CMP_AE(_flag_a, _flag_b)) goto L_361492B8; /* 0x36149202: jae 0x361492b8 */ 6196 L_36149208: 6197 ecx = MEM32(esi + 0x4); /* 0x36149208: mov ecx, dword ptr [esi + 4] */ 6198 /* test ecx, ecx */ /* 0x3614920B: test ecx, ecx */ 6199 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6200 _cf = 0; 6201 _flag_k = FK_TEST; 6202 if (TEST_Z(_flag_a, _flag_b)) goto L_36149224; /* 0x3614920D: je 0x36149224 */ 6203 L_3614920F: 6204 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6205 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6206 eax = eax - ecx; /* 0x3614920F: sub eax, ecx */ 6207 _flag_k = FK_CMP; 6208 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149211: sar eax, 1 */ 6209 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6210 eax = (uint32_t)((int32_t)eax >> 1u); 6211 /* cmp eax, 1 */ /* 0x36149213: cmp eax, 1 */ 6212 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6214 _flag_k = FK_CMP; 6215 if (CMP_BE(_flag_a, _flag_b)) goto L_36149224; /* 0x36149216: jbe 0x36149224 */ 6216 L_36149218: 6217 ecx = esi; /* 0x36149218: mov ecx, esi */ 6218 RECOMP_ICALL(0x36140430u); /* 0x3614921A: call 0x36140430 */ /* not lifted */ 6219 RECOMP_FLAGS_IN(); 6220 MEM32(ebp + (-0x10)) = eax; /* 0x3614921F: mov dword ptr [ebp - 0x10], eax */ 6221 goto L_3614922B; /* 0x36149222: jmp 0x3614922b */ 6222 L_36149224: 6223 MEM32(ebp + (-0x10)) = 1; /* 0x36149224: mov dword ptr [ebp - 0x10], 1 */ 6224 L_3614922B: 6225 ecx = esi; /* 0x3614922B: mov ecx, esi */ 6226 RECOMP_ICALL(0x36140430u); /* 0x3614922D: call 0x36140430 */ /* not lifted */ 6227 RECOMP_FLAGS_IN(); 6228 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 6229 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6230 eax = eax + MEM32(ebp + (-0x10)); /* 0x36149232: add eax, dword ptr [ebp - 0x10] */ 6231 _flag_k = FK_ADD; 6232 MEM32(ebp + (-0x18)) = eax; /* 0x36149235: mov dword ptr [ebp - 0x18], eax */ 6233 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_3614923C; /* 0x36149238: jns 0x3614923c */ 6234 L_3614923A: 6235 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6236 eax = 0; /* 0x3614923A: xor eax, eax */ 6237 _cf = 0; 6238 _flag_k = FK_TEST; 6239 L_3614923C: 6240 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6241 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6242 eax = eax + eax; /* 0x3614923C: add eax, eax */ 6243 _flag_k = FK_ADD; 6244 PUSH32(esp, eax); /* 0x3614923E: push eax */ 6245 RECOMP_ICALL(0x3615FD6Au); /* 0x3614923F: call 0x3615fd6a */ /* not lifted */ 6246 RECOMP_FLAGS_IN(); 6247 ecx = MEM32(esi + 0x4); /* 0x36149244: mov ecx, dword ptr [esi + 4] */ 6248 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6249 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6250 esp = esp + 4; /* 0x36149247: add esp, 4 */ 6251 _flag_k = FK_ADD; 6252 PUSH32(esp, eax); /* 0x3614924A: push eax */ 6253 PUSH32(esp, edi); /* 0x3614924B: push edi */ 6254 PUSH32(esp, ecx); /* 0x3614924C: push ecx */ 6255 ecx = esi; /* 0x3614924D: mov ecx, esi */ 6256 MEM32(ebp + (-0x2C)) = eax; /* 0x3614924F: mov dword ptr [ebp - 0x2c], eax */ 6257 RECOMP_ICALL(0x36140900u); /* 0x36149252: call 0x36140900 */ /* not lifted */ 6258 RECOMP_FLAGS_IN(); 6259 edx = ebp + (-0x1E); /* 0x36149257: lea edx, [ebp - 0x1e] */ 6260 PUSH32(esp, edx); /* 0x3614925A: push edx */ 6261 PUSH32(esp, 1); /* 0x3614925B: push 1 */ 6262 PUSH32(esp, eax); /* 0x3614925D: push eax */ 6263 ecx = esi; /* 0x3614925E: mov ecx, esi */ 6264 MEM32(ebp + (-0x10)) = eax; /* 0x36149260: mov dword ptr [ebp - 0x10], eax */ 6265 RECOMP_ICALL(0x3614A1F0u); /* 0x36149263: call 0x3614a1f0 */ /* not lifted */ 6266 RECOMP_FLAGS_IN(); 6267 eax = MEM32(ebp + (-0x10)); /* 0x36149268: mov eax, dword ptr [ebp - 0x10] */ 6268 ecx = MEM32(esi + 0x8); /* 0x3614926B: mov ecx, dword ptr [esi + 8] */ 6269 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 6270 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6271 eax = eax + 2; /* 0x3614926E: add eax, 2 */ 6272 _flag_k = FK_ADD; 6273 PUSH32(esp, eax); /* 0x36149271: push eax */ 6274 PUSH32(esp, ecx); /* 0x36149272: push ecx */ 6275 PUSH32(esp, edi); /* 0x36149273: push edi */ 6276 ecx = esi; /* 0x36149274: mov ecx, esi */ 6277 RECOMP_ICALL(0x36140900u); /* 0x36149276: call 0x36140900 */ /* not lifted */ 6278 RECOMP_FLAGS_IN(); 6279 edx = MEM32(esi + 0x8); /* 0x3614927B: mov edx, dword ptr [esi + 8] */ 6280 eax = MEM32(esi + 0x4); /* 0x3614927E: mov eax, dword ptr [esi + 4] */ 6281 PUSH32(esp, edx); /* 0x36149281: push edx */ 6282 PUSH32(esp, eax); /* 0x36149282: push eax */ 6283 ecx = esi; /* 0x36149283: mov ecx, esi */ 6284 RECOMP_ICALL(0x3610ED60u); /* 0x36149285: call 0x3610ed60 */ /* not lifted */ 6285 RECOMP_FLAGS_IN(); 6286 eax = MEM32(esi + 0x4); /* 0x3614928A: mov eax, dword ptr [esi + 4] */ 6287 PUSH32(esp, eax); /* 0x3614928D: push eax */ 6288 RECOMP_ICALL(0x3615FCC4u); /* 0x3614928E: call 0x3615fcc4 */ /* not lifted */ 6289 RECOMP_FLAGS_IN(); 6290 ecx = MEM32(ebp + (-0x18)); /* 0x36149293: mov ecx, dword ptr [ebp - 0x18] */ 6291 edi = MEM32(ebp + (-0x2C)); /* 0x36149296: mov edi, dword ptr [ebp - 0x2c] */ 6292 edx = edi + ecx * 2; /* 0x36149299: lea edx, [edi + ecx*2] */ 6293 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6294 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6295 esp = esp + 4; /* 0x3614929C: add esp, 4 */ 6296 _flag_k = FK_ADD; 6297 ecx = esi; /* 0x3614929F: mov ecx, esi */ 6298 MEM32(esi + 0xC) = edx; /* 0x361492A1: mov dword ptr [esi + 0xc], edx */ 6299 RECOMP_ICALL(0x36140430u); /* 0x361492A4: call 0x36140430 */ /* not lifted */ 6300 RECOMP_FLAGS_IN(); 6301 eax = edi + eax * 2 + 0x2; /* 0x361492A9: lea eax, [edi + eax*2 + 2] */ 6302 MEM32(esi + 0x8) = eax; /* 0x361492AD: mov dword ptr [esi + 8], eax */ 6303 MEM32(esi + 0x4) = edi; /* 0x361492B0: mov dword ptr [esi + 4], edi */ 6304 goto L_36149348; /* 0x361492B3: jmp 0x36149348 */ 6305 L_361492B8: 6306 ecx = eax; /* 0x361492B8: mov ecx, eax */ 6307 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 6308 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6309 ecx = ecx - edi; /* 0x361492BA: sub ecx, edi */ 6310 _flag_k = FK_CMP; 6311 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492BC: sar ecx, 1 */ 6312 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6313 ecx = (uint32_t)((int32_t)ecx >> 1u); 6314 /* cmp ecx, 1 */ /* 0x361492BE: cmp ecx, 1 */ 6315 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6316 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6317 _flag_k = FK_CMP; 6318 if (CMP_AE(_flag_a, _flag_b)) goto L_36149304; /* 0x361492C1: jae 0x36149304 */ 6319 L_361492C3: 6320 ecx = edi + 0x2; /* 0x361492C3: lea ecx, [edi + 2] */ 6321 PUSH32(esp, ecx); /* 0x361492C6: push ecx */ 6322 PUSH32(esp, eax); /* 0x361492C7: push eax */ 6323 PUSH32(esp, edi); /* 0x361492C8: push edi */ 6324 ecx = esi; /* 0x361492C9: mov ecx, esi */ 6325 RECOMP_ICALL(0x36140900u); /* 0x361492CB: call 0x36140900 */ /* not lifted */ 6326 RECOMP_FLAGS_IN(); 6327 eax = MEM32(esi + 0x8); /* 0x361492D0: mov eax, dword ptr [esi + 8] */ 6328 ecx = eax; /* 0x361492D3: mov ecx, eax */ 6329 edx = ebp + (-0x1E); /* 0x361492D5: lea edx, [ebp - 0x1e] */ 6330 PUSH32(esp, edx); /* 0x361492D8: push edx */ 6331 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 6332 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6333 ecx = ecx - edi; /* 0x361492D9: sub ecx, edi */ 6334 _flag_k = FK_CMP; 6335 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492DB: sar ecx, 1 */ 6336 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6337 ecx = (uint32_t)((int32_t)ecx >> 1u); 6338 edx = 1; /* 0x361492DD: mov edx, 1 */ 6339 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 6340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6341 edx = edx - ecx; /* 0x361492E2: sub edx, ecx */ 6342 _flag_k = FK_CMP; 6343 PUSH32(esp, edx); /* 0x361492E4: push edx */ 6344 PUSH32(esp, eax); /* 0x361492E5: push eax */ 6345 ecx = esi; /* 0x361492E6: mov ecx, esi */ 6346 RECOMP_ICALL(0x3614A1F0u); /* 0x361492E8: call 0x3614a1f0 */ /* not lifted */ 6347 RECOMP_FLAGS_IN(); 6348 eax = MEM32(esi + 0x8); /* 0x361492ED: mov eax, dword ptr [esi + 8] */ 6349 /* cmp edi, eax */ /* 0x361492F0: cmp edi, eax */ 6350 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6351 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6352 _flag_k = FK_CMP; 6353 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x361492F2: je 0x36149344 */ 6354 L_361492F4: 6355 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x361492F4: mov cx, word ptr [ebp - 0x1e] */ 6356 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x361492F8: mov word ptr [edi], cx */ 6357 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 6358 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6359 edi = edi + 2; /* 0x361492FB: add edi, 2 */ 6360 _flag_k = FK_ADD; 6361 /* cmp edi, eax */ /* 0x361492FE: cmp edi, eax */ 6362 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6364 _flag_k = FK_CMP; 6365 RECOMP_BACKEDGE(); 6366 if (CMP_NE(_flag_a, _flag_b)) goto L_361492F4; /* 0x36149300: jne 0x361492f4 */ 6367 L_36149302: 6368 goto L_36149344; /* 0x36149302: jmp 0x36149344 */ 6369 L_36149304: 6370 PUSH32(esp, eax); /* 0x36149304: push eax */ 6371 ecx = eax + (-0x2); /* 0x36149305: lea ecx, [eax - 2] */ 6372 PUSH32(esp, eax); /* 0x36149308: push eax */ 6373 MEM32(ebp + (-0x18)) = ecx; /* 0x36149309: mov dword ptr [ebp - 0x18], ecx */ 6374 PUSH32(esp, ecx); /* 0x3614930C: push ecx */ 6375 ecx = esi; /* 0x3614930D: mov ecx, esi */ 6376 RECOMP_ICALL(0x36140900u); /* 0x3614930F: call 0x36140900 */ /* not lifted */ 6377 RECOMP_FLAGS_IN(); 6378 ecx = MEM32(esi + 0x8); /* 0x36149314: mov ecx, dword ptr [esi + 8] */ 6379 eax = ecx + (-0x2); /* 0x36149317: lea eax, [ecx - 2] */ 6380 /* cmp edi, eax */ /* 0x3614931A: cmp edi, eax */ 6381 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6382 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6383 _flag_k = FK_CMP; 6384 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614932F; /* 0x3614931C: je 0x3614932f */ 6385 L_3614931E: 6386 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x3614931E: mov dx, word ptr [eax - 2] */ 6387 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 6388 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6389 eax = eax - 2; /* 0x36149322: sub eax, 2 */ 6390 _flag_k = FK_CMP; 6391 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 6392 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6393 ecx = ecx - 2; /* 0x36149325: sub ecx, 2 */ 6394 _flag_k = FK_CMP; 6395 /* cmp eax, edi */ /* 0x36149328: cmp eax, edi */ 6396 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6397 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6398 _flag_k = FK_CMP; 6399 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x3614932A: mov word ptr [ecx], dx */ 6400 RECOMP_BACKEDGE(); 6401 if (CMP_NE(_flag_a, _flag_b)) goto L_3614931E; /* 0x3614932D: jne 0x3614931e */ 6402 L_3614932F: 6403 eax = edi + 0x2; /* 0x3614932F: lea eax, [edi + 2] */ 6404 /* cmp edi, eax */ /* 0x36149332: cmp edi, eax */ 6405 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6406 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6407 _flag_k = FK_CMP; 6408 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x36149334: je 0x36149344 */ 6409 L_36149336: 6410 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x36149336: mov cx, word ptr [ebp - 0x1e] */ 6411 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x3614933A: mov word ptr [edi], cx */ 6412 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 6413 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6414 edi = edi + 2; /* 0x3614933D: add edi, 2 */ 6415 _flag_k = FK_ADD; 6416 /* cmp edi, eax */ /* 0x36149340: cmp edi, eax */ 6417 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6418 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6419 _flag_k = FK_CMP; 6420 RECOMP_BACKEDGE(); 6421 if (CMP_NE(_flag_a, _flag_b)) goto L_36149336; /* 0x36149342: jne 0x36149336 */ 6422 L_36149344: 6423 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 6424 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6425 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x36149344: add dword ptr [esi + 8], 2 */ 6426 _flag_k = FK_ADD; 6427 L_36149348: 6428 esi = MEM32(ebx + 0x5C); /* 0x36149348: mov esi, dword ptr [ebx + 0x5c] */ 6429 eax = MEM32(esi + 0x8); /* 0x3614934B: mov eax, dword ptr [esi + 8] */ 6430 edx = MEM32(esi + 0xC); /* 0x3614934E: mov edx, dword ptr [esi + 0xc] */ 6431 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6432 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6433 edx = edx - eax; /* 0x36149351: sub edx, eax */ 6434 _flag_k = FK_CMP; 6435 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36149353: sar edx, 1 */ 6436 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6437 edx = (uint32_t)((int32_t)edx >> 1u); 6438 /* cmp edx, 1 */ /* 0x36149355: cmp edx, 1 */ 6439 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 6440 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6441 _flag_k = FK_CMP; 6442 edi = eax; /* 0x36149358: mov edi, eax */ 6443 if (CMP_AE(_flag_a, _flag_b)) goto L_36149410; /* 0x3614935A: jae 0x36149410 */ 6444 L_36149360: 6445 ecx = MEM32(esi + 0x4); /* 0x36149360: mov ecx, dword ptr [esi + 4] */ 6446 /* test ecx, ecx */ /* 0x36149363: test ecx, ecx */ 6447 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6448 _cf = 0; 6449 _flag_k = FK_TEST; 6450 if (TEST_Z(_flag_a, _flag_b)) goto L_3614937C; /* 0x36149365: je 0x3614937c */ 6451 L_36149367: 6452 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6453 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6454 eax = eax - ecx; /* 0x36149367: sub eax, ecx */ 6455 _flag_k = FK_CMP; 6456 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149369: sar eax, 1 */ 6457 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6458 eax = (uint32_t)((int32_t)eax >> 1u); 6459 /* cmp eax, 1 */ /* 0x3614936B: cmp eax, 1 */ 6460 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6462 _flag_k = FK_CMP; 6463 if (CMP_BE(_flag_a, _flag_b)) goto L_3614937C; /* 0x3614936E: jbe 0x3614937c */ 6464 L_36149370: 6465 ecx = esi; /* 0x36149370: mov ecx, esi */ 6466 RECOMP_ICALL(0x36140430u); /* 0x36149372: call 0x36140430 */ /* not lifted */ 6467 RECOMP_FLAGS_IN(); 6468 MEM32(ebp + (-0x10)) = eax; /* 0x36149377: mov dword ptr [ebp - 0x10], eax */ 6469 goto L_36149383; /* 0x3614937A: jmp 0x36149383 */ 6470 L_3614937C: 6471 MEM32(ebp + (-0x10)) = 1; /* 0x3614937C: mov dword ptr [ebp - 0x10], 1 */ 6472 L_36149383: 6473 ecx = esi; /* 0x36149383: mov ecx, esi */ 6474 RECOMP_ICALL(0x36140430u); /* 0x36149385: call 0x36140430 */ /* not lifted */ 6475 RECOMP_FLAGS_IN(); 6476 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 6477 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6478 eax = eax + MEM32(ebp + (-0x10)); /* 0x3614938A: add eax, dword ptr [ebp - 0x10] */ 6479 _flag_k = FK_ADD; 6480 MEM32(ebp + (-0x10)) = eax; /* 0x3614938D: mov dword ptr [ebp - 0x10], eax */ 6481 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149394; /* 0x36149390: jns 0x36149394 */ 6482 L_36149392: 6483 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6484 eax = 0; /* 0x36149392: xor eax, eax */ 6485 _cf = 0; 6486 _flag_k = FK_TEST; 6487 L_36149394: 6488 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6489 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6490 eax = eax + eax; /* 0x36149394: add eax, eax */ 6491 _flag_k = FK_ADD; 6492 PUSH32(esp, eax); /* 0x36149396: push eax */ 6493 RECOMP_ICALL(0x3615FD6Au); /* 0x36149397: call 0x3615fd6a */ /* not lifted */ 6494 RECOMP_FLAGS_IN(); 6495 ecx = MEM32(esi + 0x4); /* 0x3614939C: mov ecx, dword ptr [esi + 4] */ 6496 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6497 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6498 esp = esp + 4; /* 0x3614939F: add esp, 4 */ 6499 _flag_k = FK_ADD; 6500 PUSH32(esp, eax); /* 0x361493A2: push eax */ 6501 PUSH32(esp, edi); /* 0x361493A3: push edi */ 6502 PUSH32(esp, ecx); /* 0x361493A4: push ecx */ 6503 ecx = esi; /* 0x361493A5: mov ecx, esi */ 6504 MEM32(ebp + (-0x2C)) = eax; /* 0x361493A7: mov dword ptr [ebp - 0x2c], eax */ 6505 RECOMP_ICALL(0x36140900u); /* 0x361493AA: call 0x36140900 */ /* not lifted */ 6506 RECOMP_FLAGS_IN(); 6507 edx = ebp + (-0x26); /* 0x361493AF: lea edx, [ebp - 0x26] */ 6508 PUSH32(esp, edx); /* 0x361493B2: push edx */ 6509 PUSH32(esp, 1); /* 0x361493B3: push 1 */ 6510 PUSH32(esp, eax); /* 0x361493B5: push eax */ 6511 ecx = esi; /* 0x361493B6: mov ecx, esi */ 6512 MEM32(ebp + (-0x18)) = eax; /* 0x361493B8: mov dword ptr [ebp - 0x18], eax */ 6513 RECOMP_ICALL(0x3614A1F0u); /* 0x361493BB: call 0x3614a1f0 */ /* not lifted */ 6514 RECOMP_FLAGS_IN(); 6515 eax = MEM32(ebp + (-0x18)); /* 0x361493C0: mov eax, dword ptr [ebp - 0x18] */ 6516 ecx = MEM32(esi + 0x8); /* 0x361493C3: mov ecx, dword ptr [esi + 8] */ 6517 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 6518 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6519 eax = eax + 2; /* 0x361493C6: add eax, 2 */ 6520 _flag_k = FK_ADD; 6521 PUSH32(esp, eax); /* 0x361493C9: push eax */ 6522 PUSH32(esp, ecx); /* 0x361493CA: push ecx */ 6523 PUSH32(esp, edi); /* 0x361493CB: push edi */ 6524 ecx = esi; /* 0x361493CC: mov ecx, esi */ 6525 RECOMP_ICALL(0x36140900u); /* 0x361493CE: call 0x36140900 */ /* not lifted */ 6526 RECOMP_FLAGS_IN(); 6527 edx = MEM32(esi + 0x8); /* 0x361493D3: mov edx, dword ptr [esi + 8] */ 6528 eax = MEM32(esi + 0x4); /* 0x361493D6: mov eax, dword ptr [esi + 4] */ 6529 PUSH32(esp, edx); /* 0x361493D9: push edx */ 6530 PUSH32(esp, eax); /* 0x361493DA: push eax */ 6531 ecx = esi; /* 0x361493DB: mov ecx, esi */ 6532 RECOMP_ICALL(0x3610ED60u); /* 0x361493DD: call 0x3610ed60 */ /* not lifted */ 6533 RECOMP_FLAGS_IN(); 6534 eax = MEM32(esi + 0x4); /* 0x361493E2: mov eax, dword ptr [esi + 4] */ 6535 PUSH32(esp, eax); /* 0x361493E5: push eax */ 6536 RECOMP_ICALL(0x3615FCC4u); /* 0x361493E6: call 0x3615fcc4 */ /* not lifted */ 6537 RECOMP_FLAGS_IN(); 6538 ecx = MEM32(ebp + (-0x10)); /* 0x361493EB: mov ecx, dword ptr [ebp - 0x10] */ 6539 edi = MEM32(ebp + (-0x2C)); /* 0x361493EE: mov edi, dword ptr [ebp - 0x2c] */ 6540 edx = edi + ecx * 2; /* 0x361493F1: lea edx, [edi + ecx*2] */ 6541 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6542 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6543 esp = esp + 4; /* 0x361493F4: add esp, 4 */ 6544 _flag_k = FK_ADD; 6545 ecx = esi; /* 0x361493F7: mov ecx, esi */ 6546 MEM32(esi + 0xC) = edx; /* 0x361493F9: mov dword ptr [esi + 0xc], edx */ 6547 RECOMP_ICALL(0x36140430u); /* 0x361493FC: call 0x36140430 */ /* not lifted */ 6548 RECOMP_FLAGS_IN(); 6549 eax = edi + eax * 2 + 0x2; /* 0x36149401: lea eax, [edi + eax*2 + 2] */ 6550 MEM32(esi + 0x8) = eax; /* 0x36149405: mov dword ptr [esi + 8], eax */ 6551 MEM32(esi + 0x4) = edi; /* 0x36149408: mov dword ptr [esi + 4], edi */ 6552 goto L_361494A0; /* 0x3614940B: jmp 0x361494a0 */ 6553 L_36149410: 6554 ecx = eax; /* 0x36149410: mov ecx, eax */ 6555 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 6556 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6557 ecx = ecx - edi; /* 0x36149412: sub ecx, edi */ 6558 _flag_k = FK_CMP; 6559 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149414: sar ecx, 1 */ 6560 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6561 ecx = (uint32_t)((int32_t)ecx >> 1u); 6562 /* cmp ecx, 1 */ /* 0x36149416: cmp ecx, 1 */ 6563 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6564 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6565 _flag_k = FK_CMP; 6566 if (CMP_AE(_flag_a, _flag_b)) goto L_3614945C; /* 0x36149419: jae 0x3614945c */ 6567 L_3614941B: 6568 ecx = edi + 0x2; /* 0x3614941B: lea ecx, [edi + 2] */ 6569 PUSH32(esp, ecx); /* 0x3614941E: push ecx */ 6570 PUSH32(esp, eax); /* 0x3614941F: push eax */ 6571 PUSH32(esp, edi); /* 0x36149420: push edi */ 6572 ecx = esi; /* 0x36149421: mov ecx, esi */ 6573 RECOMP_ICALL(0x36140900u); /* 0x36149423: call 0x36140900 */ /* not lifted */ 6574 RECOMP_FLAGS_IN(); 6575 eax = MEM32(esi + 0x8); /* 0x36149428: mov eax, dword ptr [esi + 8] */ 6576 ecx = eax; /* 0x3614942B: mov ecx, eax */ 6577 edx = ebp + (-0x26); /* 0x3614942D: lea edx, [ebp - 0x26] */ 6578 PUSH32(esp, edx); /* 0x36149430: push edx */ 6579 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 6580 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6581 ecx = ecx - edi; /* 0x36149431: sub ecx, edi */ 6582 _flag_k = FK_CMP; 6583 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149433: sar ecx, 1 */ 6584 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6585 ecx = (uint32_t)((int32_t)ecx >> 1u); 6586 edx = 1; /* 0x36149435: mov edx, 1 */ 6587 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 6588 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6589 edx = edx - ecx; /* 0x3614943A: sub edx, ecx */ 6590 _flag_k = FK_CMP; 6591 PUSH32(esp, edx); /* 0x3614943C: push edx */ 6592 PUSH32(esp, eax); /* 0x3614943D: push eax */ 6593 ecx = esi; /* 0x3614943E: mov ecx, esi */ 6594 RECOMP_ICALL(0x3614A1F0u); /* 0x36149440: call 0x3614a1f0 */ /* not lifted */ 6595 RECOMP_FLAGS_IN(); 6596 eax = MEM32(esi + 0x8); /* 0x36149445: mov eax, dword ptr [esi + 8] */ 6597 /* cmp edi, eax */ /* 0x36149448: cmp edi, eax */ 6598 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6599 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6600 _flag_k = FK_CMP; 6601 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614944A: je 0x3614949c */ 6602 L_3614944C: 6603 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614944C: mov cx, word ptr [ebp - 0x26] */ 6604 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149450: mov word ptr [edi], cx */ 6605 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 6606 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6607 edi = edi + 2; /* 0x36149453: add edi, 2 */ 6608 _flag_k = FK_ADD; 6609 /* cmp edi, eax */ /* 0x36149456: cmp edi, eax */ 6610 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6612 _flag_k = FK_CMP; 6613 RECOMP_BACKEDGE(); 6614 if (CMP_NE(_flag_a, _flag_b)) goto L_3614944C; /* 0x36149458: jne 0x3614944c */ 6615 L_3614945A: 6616 goto L_3614949C; /* 0x3614945A: jmp 0x3614949c */ 6617 L_3614945C: 6618 PUSH32(esp, eax); /* 0x3614945C: push eax */ 6619 ecx = eax + (-0x2); /* 0x3614945D: lea ecx, [eax - 2] */ 6620 PUSH32(esp, eax); /* 0x36149460: push eax */ 6621 MEM32(ebp + (-0x18)) = ecx; /* 0x36149461: mov dword ptr [ebp - 0x18], ecx */ 6622 PUSH32(esp, ecx); /* 0x36149464: push ecx */ 6623 ecx = esi; /* 0x36149465: mov ecx, esi */ 6624 RECOMP_ICALL(0x36140900u); /* 0x36149467: call 0x36140900 */ /* not lifted */ 6625 RECOMP_FLAGS_IN(); 6626 ecx = MEM32(esi + 0x8); /* 0x3614946C: mov ecx, dword ptr [esi + 8] */ 6627 eax = ecx + (-0x2); /* 0x3614946F: lea eax, [ecx - 2] */ 6628 /* cmp edi, eax */ /* 0x36149472: cmp edi, eax */ 6629 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6630 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6631 _flag_k = FK_CMP; 6632 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149487; /* 0x36149474: je 0x36149487 */ 6633 L_36149476: 6634 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x36149476: mov dx, word ptr [eax - 2] */ 6635 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 6636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6637 eax = eax - 2; /* 0x3614947A: sub eax, 2 */ 6638 _flag_k = FK_CMP; 6639 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 6640 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6641 ecx = ecx - 2; /* 0x3614947D: sub ecx, 2 */ 6642 _flag_k = FK_CMP; 6643 /* cmp eax, edi */ /* 0x36149480: cmp eax, edi */ 6644 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6645 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6646 _flag_k = FK_CMP; 6647 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x36149482: mov word ptr [ecx], dx */ 6648 RECOMP_BACKEDGE(); 6649 if (CMP_NE(_flag_a, _flag_b)) goto L_36149476; /* 0x36149485: jne 0x36149476 */ 6650 L_36149487: 6651 eax = edi + 0x2; /* 0x36149487: lea eax, [edi + 2] */ 6652 /* cmp edi, eax */ /* 0x3614948A: cmp edi, eax */ 6653 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6655 _flag_k = FK_CMP; 6656 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614948C: je 0x3614949c */ 6657 L_3614948E: 6658 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614948E: mov cx, word ptr [ebp - 0x26] */ 6659 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149492: mov word ptr [edi], cx */ 6660 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 6661 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6662 edi = edi + 2; /* 0x36149495: add edi, 2 */ 6663 _flag_k = FK_ADD; 6664 /* cmp edi, eax */ /* 0x36149498: cmp edi, eax */ 6665 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6666 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6667 _flag_k = FK_CMP; 6668 RECOMP_BACKEDGE(); 6669 if (CMP_NE(_flag_a, _flag_b)) goto L_3614948E; /* 0x3614949A: jne 0x3614948e */ 6670 L_3614949C: 6671 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 6672 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6673 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x3614949C: add dword ptr [esi + 8], 2 */ 6674 _flag_k = FK_ADD; 6675 L_361494A0: 6676 eax = MEM32(ebp + (-0x14)); /* 0x361494A0: mov eax, dword ptr [ebp - 0x14] */ 6677 edx = MEM32(ebp + (-0x64)); /* 0x361494A3: mov edx, dword ptr [ebp - 0x64] */ 6678 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6679 eax = eax + 1; /* 0x361494A6: inc eax */ 6680 _flag_k = FK_INC; 6681 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 6682 edx = edx & 0xFFu; /* 0x361494A7: and edx, 0xff */ 6683 _cf = 0; 6684 _flag_k = FK_TEST; 6685 /* cmp eax, edx */ /* 0x361494AD: cmp eax, edx */ 6686 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6687 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6688 _flag_k = FK_CMP; 6689 MEM32(ebp + (-0x14)) = eax; /* 0x361494AF: mov dword ptr [ebp - 0x14], eax */ 6690 RECOMP_BACKEDGE(); 6691 if (CMP_B(_flag_a, _flag_b)) goto L_361491D9; /* 0x361494B2: jb 0x361491d9 */ 6692 L_361494B8: 6693 SET_LO8(eax, MEM8(ebp + (-0x4C))); /* 0x361494B8: mov al, byte ptr [ebp - 0x4c] */ 6694 /* test LO8(eax), LO8(eax) */ /* 0x361494BB: test al, al */ 6695 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6696 _cf = 0; 6697 _flag_k = FK_NARROW(FK_TEST, 24); 6698 MEM32(ebp + (-0x10)) = 0; /* 0x361494BD: mov dword ptr [ebp - 0x10], 0 */ 6699 if (TEST_Z(_flag_a, _flag_b)) goto L_361496AB; /* 0x361494C4: jbe 0x361496ab */ 6700 L_361494CA: 6701 ecx = ebp + (-0x84); /* 0x361494CA: lea ecx, [ebp - 0x84] */ 6702 RECOMP_ICALL(0x3602F750u); /* 0x361494D0: call 0x3602f750 */ /* not lifted */ 6703 RECOMP_FLAGS_IN(); 6704 ecx = MEM32(ebp + 0x8); /* 0x361494D5: mov ecx, dword ptr [ebp + 8] */ 6705 eax = ebp + (-0x84); /* 0x361494D8: lea eax, [ebp - 0x84] */ 6706 PUSH32(esp, eax); /* 0x361494DE: push eax */ 6707 PUSH32(esp, ecx); /* 0x361494DF: push ecx */ 6708 MEM32(ebp + (-0x4)) = 0; /* 0x361494E0: mov dword ptr [ebp - 4], 0 */ 6709 RECOMP_ICALL(0x3602F810u); /* 0x361494E7: call 0x3602f810 */ /* not lifted */ 6710 RECOMP_FLAGS_IN(); 6711 esi = MEM32(ebx + 0x50); /* 0x361494EC: mov esi, dword ptr [ebx + 0x50] */ 6712 ecx = MEM32(esi + 0x8); /* 0x361494EF: mov ecx, dword ptr [esi + 8] */ 6713 edx = MEM32(esi + 0xC); /* 0x361494F2: mov edx, dword ptr [esi + 0xc] */ 6714 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 6715 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6716 edx = edx - ecx; /* 0x361494F5: sub edx, ecx */ 6717 _flag_k = FK_CMP; 6718 eax = 0x66666667u; /* 0x361494F7: mov eax, 0x66666667 */ 6719 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361494FC: imul edx */ 6720 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 6721 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 6722 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361494FE: sar edx, 3 */ 6723 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6724 edx = (uint32_t)((int32_t)edx >> 3u); 6725 eax = edx; /* 0x36149501: mov eax, edx */ 6726 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149503: shr eax, 0x1f */ 6727 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6728 eax = eax >> 31u; /* 0x36149503: shr eax, 0x1f */ 6729 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6730 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6731 edx = edx + eax; /* 0x36149506: add edx, eax */ 6732 _flag_k = FK_ADD; 6733 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6734 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6735 esp = esp + 8; /* 0x36149508: add esp, 8 */ 6736 _flag_k = FK_ADD; 6737 /* cmp edx, 1 */ /* 0x3614950B: cmp edx, 1 */ 6738 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 6739 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6740 _flag_k = FK_CMP; 6741 edi = ecx; /* 0x3614950E: mov edi, ecx */ 6742 if (CMP_AE(_flag_a, _flag_b)) goto L_361495E2; /* 0x36149510: jae 0x361495e2 */ 6743 L_36149516: 6744 eax = MEM32(esi + 0x4); /* 0x36149516: mov eax, dword ptr [esi + 4] */ 6745 /* test eax, eax */ /* 0x36149519: test eax, eax */ 6746 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6747 _cf = 0; 6748 _flag_k = FK_TEST; 6749 if (TEST_Z(_flag_a, _flag_b)) goto L_36149541; /* 0x3614951B: je 0x36149541 */ 6750 L_3614951D: 6751 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6752 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6753 ecx = ecx - eax; /* 0x3614951D: sub ecx, eax */ 6754 _flag_k = FK_CMP; 6755 eax = 0x66666667u; /* 0x3614951F: mov eax, 0x66666667 */ 6756 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149524: imul ecx */ 6757 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 6758 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 6759 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149526: sar edx, 3 */ 6760 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6761 edx = (uint32_t)((int32_t)edx >> 3u); 6762 ecx = edx; /* 0x36149529: mov ecx, edx */ 6763 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614952B: shr ecx, 0x1f */ 6764 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6765 ecx = ecx >> 31u; /* 0x3614952B: shr ecx, 0x1f */ 6766 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 6767 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6768 edx = edx + ecx; /* 0x3614952E: add edx, ecx */ 6769 _flag_k = FK_ADD; 6770 /* cmp edx, 1 */ /* 0x36149530: cmp edx, 1 */ 6771 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 6772 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6773 _flag_k = FK_CMP; 6774 if (CMP_BE(_flag_a, _flag_b)) goto L_36149541; /* 0x36149533: jbe 0x36149541 */ 6775 L_36149535: 6776 ecx = esi; /* 0x36149535: mov ecx, esi */ 6777 RECOMP_ICALL(0x36149DC0u); /* 0x36149537: call 0x36149dc0 */ /* not lifted */ 6778 RECOMP_FLAGS_IN(); 6779 MEM32(ebp + (-0x14)) = eax; /* 0x3614953C: mov dword ptr [ebp - 0x14], eax */ 6780 goto L_36149548; /* 0x3614953F: jmp 0x36149548 */ 6781 L_36149541: 6782 MEM32(ebp + (-0x14)) = 1; /* 0x36149541: mov dword ptr [ebp - 0x14], 1 */ 6783 L_36149548: 6784 ecx = esi; /* 0x36149548: mov ecx, esi */ 6785 RECOMP_ICALL(0x36149DC0u); /* 0x3614954A: call 0x36149dc0 */ /* not lifted */ 6786 RECOMP_FLAGS_IN(); 6787 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 6788 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6789 eax = eax + MEM32(ebp + (-0x14)); /* 0x3614954F: add eax, dword ptr [ebp - 0x14] */ 6790 _flag_k = FK_ADD; 6791 MEM32(ebp + (-0x2C)) = eax; /* 0x36149552: mov dword ptr [ebp - 0x2c], eax */ 6792 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149559; /* 0x36149555: jns 0x36149559 */ 6793 L_36149557: 6794 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6795 eax = 0; /* 0x36149557: xor eax, eax */ 6796 _cf = 0; 6797 _flag_k = FK_TEST; 6798 L_36149559: 6799 edx = eax + eax * 4; /* 0x36149559: lea edx, [eax + eax*4] */ 6800 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614955C: shl edx, 2 */ 6801 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6802 edx = edx << 2u; /* 0x3614955C: shl edx, 2 */ 6803 PUSH32(esp, edx); /* 0x3614955F: push edx */ 6804 RECOMP_ICALL(0x3615FD6Au); /* 0x36149560: call 0x3615fd6a */ /* not lifted */ 6805 RECOMP_FLAGS_IN(); 6806 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6807 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6808 esp = esp + 4; /* 0x36149565: add esp, 4 */ 6809 _flag_k = FK_ADD; 6810 PUSH32(esp, eax); /* 0x36149568: push eax */ 6811 MEM32(ebp + (-0x14)) = eax; /* 0x36149569: mov dword ptr [ebp - 0x14], eax */ 6812 eax = MEM32(esi + 0x4); /* 0x3614956C: mov eax, dword ptr [esi + 4] */ 6813 PUSH32(esp, edi); /* 0x3614956F: push edi */ 6814 PUSH32(esp, eax); /* 0x36149570: push eax */ 6815 ecx = esi; /* 0x36149571: mov ecx, esi */ 6816 RECOMP_ICALL(0x36149E20u); /* 0x36149573: call 0x36149e20 */ /* not lifted */ 6817 RECOMP_FLAGS_IN(); 6818 ecx = ebp + (-0x84); /* 0x36149578: lea ecx, [ebp - 0x84] */ 6819 PUSH32(esp, ecx); /* 0x3614957E: push ecx */ 6820 PUSH32(esp, 1); /* 0x3614957F: push 1 */ 6821 PUSH32(esp, eax); /* 0x36149581: push eax */ 6822 ecx = esi; /* 0x36149582: mov ecx, esi */ 6823 MEM32(ebp + (-0x18)) = eax; /* 0x36149584: mov dword ptr [ebp - 0x18], eax */ 6824 RECOMP_ICALL(0x3614A190u); /* 0x36149587: call 0x3614a190 */ /* not lifted */ 6825 RECOMP_FLAGS_IN(); 6826 edx = MEM32(ebp + (-0x18)); /* 0x3614958C: mov edx, dword ptr [ebp - 0x18] */ 6827 eax = MEM32(esi + 0x8); /* 0x3614958F: mov eax, dword ptr [esi + 8] */ 6828 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u); 6829 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6830 edx = edx + 0x14u; /* 0x36149592: add edx, 0x14 */ 6831 _flag_k = FK_ADD; 6832 PUSH32(esp, edx); /* 0x36149595: push edx */ 6833 PUSH32(esp, eax); /* 0x36149596: push eax */ 6834 PUSH32(esp, edi); /* 0x36149597: push edi */ 6835 ecx = esi; /* 0x36149598: mov ecx, esi */ 6836 RECOMP_ICALL(0x36149E20u); /* 0x3614959A: call 0x36149e20 */ /* not lifted */ 6837 RECOMP_FLAGS_IN(); 6838 ecx = MEM32(esi + 0x8); /* 0x3614959F: mov ecx, dword ptr [esi + 8] */ 6839 edx = MEM32(esi + 0x4); /* 0x361495A2: mov edx, dword ptr [esi + 4] */ 6840 PUSH32(esp, ecx); /* 0x361495A5: push ecx */ 6841 PUSH32(esp, edx); /* 0x361495A6: push edx */ 6842 ecx = esi; /* 0x361495A7: mov ecx, esi */ 6843 RECOMP_ICALL(0x36149DF0u); /* 0x361495A9: call 0x36149df0 */ /* not lifted */ 6844 RECOMP_FLAGS_IN(); 6845 eax = MEM32(esi + 0x4); /* 0x361495AE: mov eax, dword ptr [esi + 4] */ 6846 PUSH32(esp, eax); /* 0x361495B1: push eax */ 6847 RECOMP_ICALL(0x3615FCC4u); /* 0x361495B2: call 0x3615fcc4 */ /* not lifted */ 6848 RECOMP_FLAGS_IN(); 6849 eax = MEM32(ebp + (-0x2C)); /* 0x361495B7: mov eax, dword ptr [ebp - 0x2c] */ 6850 edi = MEM32(ebp + (-0x14)); /* 0x361495BA: mov edi, dword ptr [ebp - 0x14] */ 6851 eax = eax + eax * 4; /* 0x361495BD: lea eax, [eax + eax*4] */ 6852 ecx = edi + eax * 4; /* 0x361495C0: lea ecx, [edi + eax*4] */ 6853 MEM32(esi + 0xC) = ecx; /* 0x361495C3: mov dword ptr [esi + 0xc], ecx */ 6854 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6855 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6856 esp = esp + 4; /* 0x361495C6: add esp, 4 */ 6857 _flag_k = FK_ADD; 6858 ecx = esi; /* 0x361495C9: mov ecx, esi */ 6859 RECOMP_ICALL(0x36149DC0u); /* 0x361495CB: call 0x36149dc0 */ /* not lifted */ 6860 RECOMP_FLAGS_IN(); 6861 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6862 eax = eax + 1; /* 0x361495D0: inc eax */ 6863 _flag_k = FK_INC; 6864 edx = eax + eax * 4; /* 0x361495D1: lea edx, [eax + eax*4] */ 6865 eax = edi + edx * 4; /* 0x361495D4: lea eax, [edi + edx*4] */ 6866 MEM32(esi + 0x8) = eax; /* 0x361495D7: mov dword ptr [esi + 8], eax */ 6867 MEM32(esi + 0x4) = edi; /* 0x361495DA: mov dword ptr [esi + 4], edi */ 6868 goto L_36149681; /* 0x361495DD: jmp 0x36149681 */ 6869 L_361495E2: 6870 edx = ecx; /* 0x361495E2: mov edx, ecx */ 6871 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 6872 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6873 edx = edx - edi; /* 0x361495E4: sub edx, edi */ 6874 _flag_k = FK_CMP; 6875 eax = 0x66666667u; /* 0x361495E6: mov eax, 0x66666667 */ 6876 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361495EB: imul edx */ 6877 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 6878 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 6879 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361495ED: sar edx, 3 */ 6880 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6881 edx = (uint32_t)((int32_t)edx >> 3u); 6882 eax = edx; /* 0x361495F0: mov eax, edx */ 6883 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361495F2: shr eax, 0x1f */ 6884 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6885 eax = eax >> 31u; /* 0x361495F2: shr eax, 0x1f */ 6886 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6887 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6888 edx = edx + eax; /* 0x361495F5: add edx, eax */ 6889 _flag_k = FK_ADD; 6890 /* cmp edx, 1 */ /* 0x361495F7: cmp edx, 1 */ 6891 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 6892 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6893 _flag_k = FK_CMP; 6894 if (CMP_AE(_flag_a, _flag_b)) goto L_3614964E; /* 0x361495FA: jae 0x3614964e */ 6895 L_361495FC: 6896 edx = edi + 0x14; /* 0x361495FC: lea edx, [edi + 0x14] */ 6897 PUSH32(esp, edx); /* 0x361495FF: push edx */ 6898 PUSH32(esp, ecx); /* 0x36149600: push ecx */ 6899 PUSH32(esp, edi); /* 0x36149601: push edi */ 6900 ecx = esi; /* 0x36149602: mov ecx, esi */ 6901 RECOMP_ICALL(0x36149E20u); /* 0x36149604: call 0x36149e20 */ /* not lifted */ 6902 RECOMP_FLAGS_IN(); 6903 ecx = MEM32(esi + 0x8); /* 0x36149609: mov ecx, dword ptr [esi + 8] */ 6904 eax = ebp + (-0x84); /* 0x3614960C: lea eax, [ebp - 0x84] */ 6905 PUSH32(esp, eax); /* 0x36149612: push eax */ 6906 edx = ecx; /* 0x36149613: mov edx, ecx */ 6907 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 6908 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6909 edx = edx - edi; /* 0x36149615: sub edx, edi */ 6910 _flag_k = FK_CMP; 6911 eax = 0x66666667u; /* 0x36149617: mov eax, 0x66666667 */ 6912 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3614961C: imul edx */ 6913 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 6914 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 6915 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3614961E: sar edx, 3 */ 6916 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6917 edx = (uint32_t)((int32_t)edx >> 3u); 6918 eax = edx; /* 0x36149621: mov eax, edx */ 6919 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149623: shr eax, 0x1f */ 6920 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6921 eax = eax >> 31u; /* 0x36149623: shr eax, 0x1f */ 6922 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6923 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6924 edx = edx + eax; /* 0x36149626: add edx, eax */ 6925 _flag_k = FK_ADD; 6926 eax = 1; /* 0x36149628: mov eax, 1 */ 6927 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6928 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6929 eax = eax - edx; /* 0x3614962D: sub eax, edx */ 6930 _flag_k = FK_CMP; 6931 PUSH32(esp, eax); /* 0x3614962F: push eax */ 6932 PUSH32(esp, ecx); /* 0x36149630: push ecx */ 6933 ecx = esi; /* 0x36149631: mov ecx, esi */ 6934 RECOMP_ICALL(0x3614A190u); /* 0x36149633: call 0x3614a190 */ /* not lifted */ 6935 RECOMP_FLAGS_IN(); 6936 edx = MEM32(esi + 0x8); /* 0x36149638: mov edx, dword ptr [esi + 8] */ 6937 ecx = ebp + (-0x84); /* 0x3614963B: lea ecx, [ebp - 0x84] */ 6938 PUSH32(esp, ecx); /* 0x36149641: push ecx */ 6939 PUSH32(esp, edx); /* 0x36149642: push edx */ 6940 PUSH32(esp, edi); /* 0x36149643: push edi */ 6941 RECOMP_ICALL(0x3614A2A0u); /* 0x36149644: call 0x3614a2a0 */ /* not lifted */ 6942 RECOMP_FLAGS_IN(); 6943 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6944 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6945 esp = esp + 0xCu; /* 0x36149649: add esp, 0xc */ 6946 _flag_k = FK_ADD; 6947 goto L_3614967D; /* 0x3614964C: jmp 0x3614967d */ 6948 L_3614964E: 6949 PUSH32(esp, ecx); /* 0x3614964E: push ecx */ 6950 PUSH32(esp, ecx); /* 0x3614964F: push ecx */ 6951 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu); 6952 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6953 ecx = ecx + 0xFFFFFFECu; /* 0x36149650: add ecx, -0x14 */ 6954 _flag_k = FK_ADD; 6955 PUSH32(esp, ecx); /* 0x36149653: push ecx */ 6956 ecx = esi; /* 0x36149654: mov ecx, esi */ 6957 RECOMP_ICALL(0x36149E20u); /* 0x36149656: call 0x36149e20 */ /* not lifted */ 6958 RECOMP_FLAGS_IN(); 6959 eax = MEM32(esi + 0x8); /* 0x3614965B: mov eax, dword ptr [esi + 8] */ 6960 PUSH32(esp, eax); /* 0x3614965E: push eax */ 6961 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu); 6962 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6963 eax = eax + 0xFFFFFFECu; /* 0x3614965F: add eax, -0x14 */ 6964 _flag_k = FK_ADD; 6965 PUSH32(esp, eax); /* 0x36149662: push eax */ 6966 PUSH32(esp, edi); /* 0x36149663: push edi */ 6967 RECOMP_ICALL(0x3614A2D0u); /* 0x36149664: call 0x3614a2d0 */ /* not lifted */ 6968 RECOMP_FLAGS_IN(); 6969 eax = ebp + (-0x84); /* 0x36149669: lea eax, [ebp - 0x84] */ 6970 PUSH32(esp, eax); /* 0x3614966F: push eax */ 6971 ecx = edi + 0x14; /* 0x36149670: lea ecx, [edi + 0x14] */ 6972 PUSH32(esp, ecx); /* 0x36149673: push ecx */ 6973 PUSH32(esp, edi); /* 0x36149674: push edi */ 6974 RECOMP_ICALL(0x3614A2A0u); /* 0x36149675: call 0x3614a2a0 */ /* not lifted */ 6975 RECOMP_FLAGS_IN(); 6976 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 6977 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6978 esp = esp + 0x18u; /* 0x3614967A: add esp, 0x18 */ 6979 _flag_k = FK_ADD; 6980 L_3614967D: 6981 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x14u); 6982 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6983 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x14u; /* 0x3614967D: add dword ptr [esi + 8], 0x14 */ 6984 _flag_k = FK_ADD; 6985 L_36149681: 6986 ecx = ebp + (-0x84); /* 0x36149681: lea ecx, [ebp - 0x84] */ 6987 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149687: mov dword ptr [ebp - 4], 0xffffffff */ 6988 RECOMP_ICALL(0x3602F7D0u); /* 0x3614968E: call 0x3602f7d0 */ /* not lifted */ 6989 RECOMP_FLAGS_IN(); 6990 eax = MEM32(ebp + (-0x10)); /* 0x36149693: mov eax, dword ptr [ebp - 0x10] */ 6991 edx = MEM32(ebp + (-0x4C)); /* 0x36149696: mov edx, dword ptr [ebp - 0x4c] */ 6992 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6993 eax = eax + 1; /* 0x36149699: inc eax */ 6994 _flag_k = FK_INC; 6995 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 6996 edx = edx & 0xFFu; /* 0x3614969A: and edx, 0xff */ 6997 _cf = 0; 6998 _flag_k = FK_TEST; 6999 /* cmp eax, edx */ /* 0x361496A0: cmp eax, edx */ 7000 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 7001 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7002 _flag_k = FK_CMP; 7003 MEM32(ebp + (-0x10)) = eax; /* 0x361496A2: mov dword ptr [ebp - 0x10], eax */ 7004 RECOMP_BACKEDGE(); 7005 if (CMP_L(_flag_a, _flag_b)) goto L_361494CA; /* 0x361496A5: jl 0x361494ca */ 7006 L_361496AB: 7007 SET_LO8(eax, MEM8(ebp + (-0x50))); /* 0x361496AB: mov al, byte ptr [ebp - 0x50] */ 7008 /* test LO8(eax), LO8(eax) */ /* 0x361496AE: test al, al */ 7009 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7010 _cf = 0; 7011 _flag_k = FK_NARROW(FK_TEST, 24); 7012 MEM32(ebp + (-0x14)) = 0; /* 0x361496B0: mov dword ptr [ebp - 0x14], 0 */ 7013 if (TEST_Z(_flag_a, _flag_b)) goto L_361498AA; /* 0x361496B7: jbe 0x361498aa */ 7014 L_361496BD: 7015 ecx = ebp + (-0xAC); /* 0x361496BD: lea ecx, [ebp - 0xac] */ 7016 RECOMP_ICALL(0x3602F870u); /* 0x361496C3: call 0x3602f870 */ /* not lifted */ 7017 RECOMP_FLAGS_IN(); 7018 ecx = MEM32(ebp + 0x8); /* 0x361496C8: mov ecx, dword ptr [ebp + 8] */ 7019 eax = ebp + (-0xAC); /* 0x361496CB: lea eax, [ebp - 0xac] */ 7020 PUSH32(esp, eax); /* 0x361496D1: push eax */ 7021 PUSH32(esp, ecx); /* 0x361496D2: push ecx */ 7022 MEM32(ebp + (-0x4)) = 1; /* 0x361496D3: mov dword ptr [ebp - 4], 1 */ 7023 RECOMP_ICALL(0x3602F9B0u); /* 0x361496DA: call 0x3602f9b0 */ /* not lifted */ 7024 RECOMP_FLAGS_IN(); 7025 esi = MEM32(ebx + 0x54); /* 0x361496DF: mov esi, dword ptr [ebx + 0x54] */ 7026 ecx = MEM32(esi + 0x8); /* 0x361496E2: mov ecx, dword ptr [esi + 8] */ 7027 edx = MEM32(esi + 0xC); /* 0x361496E5: mov edx, dword ptr [esi + 0xc] */ 7028 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 7029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7030 edx = edx - ecx; /* 0x361496E8: sub edx, ecx */ 7031 _flag_k = FK_CMP; 7032 MEM32(ebp + (-0x18)) = edx; /* 0x361496EA: mov dword ptr [ebp - 0x18], edx */ 7033 eax = 0x88888889u; /* 0x361496ED: mov eax, 0x88888889 */ 7034 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361496F2: imul edx */ 7035 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 7036 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 7037 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 7038 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7039 edx = edx + MEM32(ebp + (-0x18)); /* 0x361496F4: add edx, dword ptr [ebp - 0x18] */ 7040 _flag_k = FK_ADD; 7041 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361496F7: sar edx, 5 */ 7042 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7043 edx = (uint32_t)((int32_t)edx >> 5u); 7044 eax = edx; /* 0x361496FA: mov eax, edx */ 7045 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361496FC: shr eax, 0x1f */ 7046 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7047 eax = eax >> 31u; /* 0x361496FC: shr eax, 0x1f */ 7048 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 7049 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7050 edx = edx + eax; /* 0x361496FF: add edx, eax */ 7051 _flag_k = FK_ADD; 7052 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7053 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7054 esp = esp + 8; /* 0x36149701: add esp, 8 */ 7055 _flag_k = FK_ADD; 7056 /* cmp edx, 1 */ /* 0x36149704: cmp edx, 1 */ 7057 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 7058 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7059 _flag_k = FK_CMP; 7060 edi = ecx; /* 0x36149707: mov edi, ecx */ 7061 if (CMP_AE(_flag_a, _flag_b)) goto L_361497D8; /* 0x36149709: jae 0x361497d8 */ 7062 L_3614970F: 7063 eax = MEM32(esi + 0x4); /* 0x3614970F: mov eax, dword ptr [esi + 4] */ 7064 /* test eax, eax */ /* 0x36149712: test eax, eax */ 7065 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7066 _cf = 0; 7067 _flag_k = FK_TEST; 7068 if (TEST_Z(_flag_a, _flag_b)) goto L_36149732; /* 0x36149714: je 0x36149732 */ 7069 L_36149716: 7070 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 7071 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7072 ecx = ecx - eax; /* 0x36149716: sub ecx, eax */ 7073 _flag_k = FK_CMP; 7074 eax = 0x88888889u; /* 0x36149718: mov eax, 0x88888889 */ 7075 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3614971D: imul ecx */ 7076 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 7077 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 7078 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 7079 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7080 edx = edx + ecx; /* 0x3614971F: add edx, ecx */ 7081 _flag_k = FK_ADD; 7082 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36149721: sar edx, 5 */ 7083 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7084 edx = (uint32_t)((int32_t)edx >> 5u); 7085 ecx = edx; /* 0x36149724: mov ecx, edx */ 7086 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36149726: shr ecx, 0x1f */ 7087 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7088 ecx = ecx >> 31u; /* 0x36149726: shr ecx, 0x1f */ 7089 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 7090 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7091 edx = edx + ecx; /* 0x36149729: add edx, ecx */ 7092 _flag_k = FK_ADD; 7093 /* cmp edx, 1 */ /* 0x3614972B: cmp edx, 1 */ 7094 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 7095 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7096 _flag_k = FK_CMP; 7097 ebx = edx; /* 0x3614972E: mov ebx, edx */ 7098 if (CMP_A(_flag_a, _flag_b)) goto L_36149737; /* 0x36149730: ja 0x36149737 */ 7099 L_36149732: 7100 ebx = 1; /* 0x36149732: mov ebx, 1 */ 7101 L_36149737: 7102 ecx = esi; /* 0x36149737: mov ecx, esi */ 7103 RECOMP_ICALL(0x36149E90u); /* 0x36149739: call 0x36149e90 */ /* not lifted */ 7104 RECOMP_FLAGS_IN(); 7105 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7106 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7107 eax = eax + ebx; /* 0x3614973E: add eax, ebx */ 7108 _flag_k = FK_ADD; 7109 MEM32(ebp + (-0x2C)) = eax; /* 0x36149740: mov dword ptr [ebp - 0x2c], eax */ 7110 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149747; /* 0x36149743: jns 0x36149747 */ 7111 L_36149745: 7112 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7113 eax = 0; /* 0x36149745: xor eax, eax */ 7114 _cf = 0; 7115 _flag_k = FK_TEST; 7116 L_36149747: 7117 eax = eax + eax * 2; /* 0x36149747: lea eax, [eax + eax*2] */ 7118 edx = eax + eax * 4; /* 0x3614974A: lea edx, [eax + eax*4] */ 7119 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614974D: shl edx, 2 */ 7120 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7121 edx = edx << 2u; /* 0x3614974D: shl edx, 2 */ 7122 PUSH32(esp, edx); /* 0x36149750: push edx */ 7123 RECOMP_ICALL(0x3615FD6Au); /* 0x36149751: call 0x3615fd6a */ /* not lifted */ 7124 RECOMP_FLAGS_IN(); 7125 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7126 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7127 esp = esp + 4; /* 0x36149756: add esp, 4 */ 7128 _flag_k = FK_ADD; 7129 ebx = eax; /* 0x36149759: mov ebx, eax */ 7130 eax = MEM32(esi + 0x4); /* 0x3614975B: mov eax, dword ptr [esi + 4] */ 7131 PUSH32(esp, ebx); /* 0x3614975E: push ebx */ 7132 PUSH32(esp, edi); /* 0x3614975F: push edi */ 7133 PUSH32(esp, eax); /* 0x36149760: push eax */ 7134 ecx = esi; /* 0x36149761: mov ecx, esi */ 7135 RECOMP_ICALL(0x36149EF0u); /* 0x36149763: call 0x36149ef0 */ /* not lifted */ 7136 RECOMP_FLAGS_IN(); 7137 ecx = ebp + (-0xAC); /* 0x36149768: lea ecx, [ebp - 0xac] */ 7138 PUSH32(esp, ecx); /* 0x3614976E: push ecx */ 7139 PUSH32(esp, 1); /* 0x3614976F: push 1 */ 7140 PUSH32(esp, eax); /* 0x36149771: push eax */ 7141 ecx = esi; /* 0x36149772: mov ecx, esi */ 7142 MEM32(ebp + (-0x18)) = eax; /* 0x36149774: mov dword ptr [ebp - 0x18], eax */ 7143 RECOMP_ICALL(0x3614A1C0u); /* 0x36149777: call 0x3614a1c0 */ /* not lifted */ 7144 RECOMP_FLAGS_IN(); 7145 edx = MEM32(ebp + (-0x18)); /* 0x3614977C: mov edx, dword ptr [ebp - 0x18] */ 7146 eax = MEM32(esi + 0x8); /* 0x3614977F: mov eax, dword ptr [esi + 8] */ 7147 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x3Cu); 7148 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7149 edx = edx + 0x3Cu; /* 0x36149782: add edx, 0x3c */ 7150 _flag_k = FK_ADD; 7151 PUSH32(esp, edx); /* 0x36149785: push edx */ 7152 PUSH32(esp, eax); /* 0x36149786: push eax */ 7153 PUSH32(esp, edi); /* 0x36149787: push edi */ 7154 ecx = esi; /* 0x36149788: mov ecx, esi */ 7155 RECOMP_ICALL(0x36149EF0u); /* 0x3614978A: call 0x36149ef0 */ /* not lifted */ 7156 RECOMP_FLAGS_IN(); 7157 ecx = MEM32(esi + 0x8); /* 0x3614978F: mov ecx, dword ptr [esi + 8] */ 7158 edx = MEM32(esi + 0x4); /* 0x36149792: mov edx, dword ptr [esi + 4] */ 7159 PUSH32(esp, ecx); /* 0x36149795: push ecx */ 7160 PUSH32(esp, edx); /* 0x36149796: push edx */ 7161 ecx = esi; /* 0x36149797: mov ecx, esi */ 7162 RECOMP_ICALL(0x36149EC0u); /* 0x36149799: call 0x36149ec0 */ /* not lifted */ 7163 RECOMP_FLAGS_IN(); 7164 eax = MEM32(esi + 0x4); /* 0x3614979E: mov eax, dword ptr [esi + 4] */ 7165 PUSH32(esp, eax); /* 0x361497A1: push eax */ 7166 RECOMP_ICALL(0x3615FCC4u); /* 0x361497A2: call 0x3615fcc4 */ /* not lifted */ 7167 RECOMP_FLAGS_IN(); 7168 eax = MEM32(ebp + (-0x2C)); /* 0x361497A7: mov eax, dword ptr [ebp - 0x2c] */ 7169 eax = eax + eax * 2; /* 0x361497AA: lea eax, [eax + eax*2] */ 7170 eax = eax + eax * 4; /* 0x361497AD: lea eax, [eax + eax*4] */ 7171 ecx = ebx + eax * 4; /* 0x361497B0: lea ecx, [ebx + eax*4] */ 7172 MEM32(esi + 0xC) = ecx; /* 0x361497B3: mov dword ptr [esi + 0xc], ecx */ 7173 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7174 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7175 esp = esp + 4; /* 0x361497B6: add esp, 4 */ 7176 _flag_k = FK_ADD; 7177 ecx = esi; /* 0x361497B9: mov ecx, esi */ 7178 RECOMP_ICALL(0x36149E90u); /* 0x361497BB: call 0x36149e90 */ /* not lifted */ 7179 RECOMP_FLAGS_IN(); 7180 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7181 eax = eax + 1; /* 0x361497C0: inc eax */ 7182 _flag_k = FK_INC; 7183 eax = eax + eax * 2; /* 0x361497C1: lea eax, [eax + eax*2] */ 7184 edx = eax + eax * 4; /* 0x361497C4: lea edx, [eax + eax*4] */ 7185 eax = ebx + edx * 4; /* 0x361497C7: lea eax, [ebx + edx*4] */ 7186 MEM32(esi + 0x4) = ebx; /* 0x361497CA: mov dword ptr [esi + 4], ebx */ 7187 ebx = MEM32(ebp + 0xC); /* 0x361497CD: mov ebx, dword ptr [ebp + 0xc] */ 7188 MEM32(esi + 0x8) = eax; /* 0x361497D0: mov dword ptr [esi + 8], eax */ 7189 goto L_36149880; /* 0x361497D3: jmp 0x36149880 */ 7190 L_361497D8: 7191 edx = ecx; /* 0x361497D8: mov edx, ecx */ 7192 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 7193 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7194 edx = edx - edi; /* 0x361497DA: sub edx, edi */ 7195 _flag_k = FK_CMP; 7196 MEM32(ebp + (-0x18)) = edx; /* 0x361497DC: mov dword ptr [ebp - 0x18], edx */ 7197 eax = 0x88888889u; /* 0x361497DF: mov eax, 0x88888889 */ 7198 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361497E4: imul edx */ 7199 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 7200 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 7201 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 7202 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7203 edx = edx + MEM32(ebp + (-0x18)); /* 0x361497E6: add edx, dword ptr [ebp - 0x18] */ 7204 _flag_k = FK_ADD; 7205 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361497E9: sar edx, 5 */ 7206 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7207 edx = (uint32_t)((int32_t)edx >> 5u); 7208 eax = edx; /* 0x361497EC: mov eax, edx */ 7209 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361497EE: shr eax, 0x1f */ 7210 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7211 eax = eax >> 31u; /* 0x361497EE: shr eax, 0x1f */ 7212 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 7213 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7214 edx = edx + eax; /* 0x361497F1: add edx, eax */ 7215 _flag_k = FK_ADD; 7216 /* cmp edx, 1 */ /* 0x361497F3: cmp edx, 1 */ 7217 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 7218 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7219 _flag_k = FK_CMP; 7220 if (CMP_AE(_flag_a, _flag_b)) goto L_3614984D; /* 0x361497F6: jae 0x3614984d */ 7221 L_361497F8: 7222 edx = edi + 0x3C; /* 0x361497F8: lea edx, [edi + 0x3c] */ 7223 PUSH32(esp, edx); /* 0x361497FB: push edx */ 7224 PUSH32(esp, ecx); /* 0x361497FC: push ecx */ 7225 PUSH32(esp, edi); /* 0x361497FD: push edi */ 7226 ecx = esi; /* 0x361497FE: mov ecx, esi */ 7227 RECOMP_ICALL(0x36149EF0u); /* 0x36149800: call 0x36149ef0 */ /* not lifted */ 7228 RECOMP_FLAGS_IN(); 7229 ecx = MEM32(esi + 0x8); /* 0x36149805: mov ecx, dword ptr [esi + 8] */ 7230 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 7231 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7232 ecx = ecx - edi; /* 0x36149808: sub ecx, edi */ 7233 _flag_k = FK_CMP; 7234 eax = ebp + (-0xAC); /* 0x3614980A: lea eax, [ebp - 0xac] */ 7235 PUSH32(esp, eax); /* 0x36149810: push eax */ 7236 eax = 0x88888889u; /* 0x36149811: mov eax, 0x88888889 */ 7237 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149816: imul ecx */ 7238 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 7239 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 7240 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 7241 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7242 edx = edx + ecx; /* 0x36149818: add edx, ecx */ 7243 _flag_k = FK_ADD; 7244 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x3614981A: sar edx, 5 */ 7245 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7246 edx = (uint32_t)((int32_t)edx >> 5u); 7247 ecx = edx; /* 0x3614981D: mov ecx, edx */ 7248 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614981F: shr ecx, 0x1f */ 7249 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7250 ecx = ecx >> 31u; /* 0x3614981F: shr ecx, 0x1f */ 7251 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 7252 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7253 edx = edx + ecx; /* 0x36149822: add edx, ecx */ 7254 _flag_k = FK_ADD; 7255 eax = 1; /* 0x36149824: mov eax, 1 */ 7256 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 7257 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7258 eax = eax - edx; /* 0x36149829: sub eax, edx */ 7259 _flag_k = FK_CMP; 7260 PUSH32(esp, eax); /* 0x3614982B: push eax */ 7261 eax = MEM32(esi + 0x8); /* 0x3614982C: mov eax, dword ptr [esi + 8] */ 7262 PUSH32(esp, eax); /* 0x3614982F: push eax */ 7263 ecx = esi; /* 0x36149830: mov ecx, esi */ 7264 RECOMP_ICALL(0x3614A1C0u); /* 0x36149832: call 0x3614a1c0 */ /* not lifted */ 7265 RECOMP_FLAGS_IN(); 7266 edx = MEM32(esi + 0x8); /* 0x36149837: mov edx, dword ptr [esi + 8] */ 7267 ecx = ebp + (-0xAC); /* 0x3614983A: lea ecx, [ebp - 0xac] */ 7268 PUSH32(esp, ecx); /* 0x36149840: push ecx */ 7269 PUSH32(esp, edx); /* 0x36149841: push edx */ 7270 PUSH32(esp, edi); /* 0x36149842: push edi */ 7271 RECOMP_ICALL(0x3614A360u); /* 0x36149843: call 0x3614a360 */ /* not lifted */ 7272 RECOMP_FLAGS_IN(); 7273 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7274 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7275 esp = esp + 0xCu; /* 0x36149848: add esp, 0xc */ 7276 _flag_k = FK_ADD; 7277 goto L_3614987C; /* 0x3614984B: jmp 0x3614987c */ 7278 L_3614984D: 7279 PUSH32(esp, ecx); /* 0x3614984D: push ecx */ 7280 PUSH32(esp, ecx); /* 0x3614984E: push ecx */ 7281 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC4u); 7282 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7283 ecx = ecx + 0xFFFFFFC4u; /* 0x3614984F: add ecx, -0x3c */ 7284 _flag_k = FK_ADD; 7285 PUSH32(esp, ecx); /* 0x36149852: push ecx */ 7286 ecx = esi; /* 0x36149853: mov ecx, esi */ 7287 RECOMP_ICALL(0x36149EF0u); /* 0x36149855: call 0x36149ef0 */ /* not lifted */ 7288 RECOMP_FLAGS_IN(); 7289 eax = MEM32(esi + 0x8); /* 0x3614985A: mov eax, dword ptr [esi + 8] */ 7290 PUSH32(esp, eax); /* 0x3614985D: push eax */ 7291 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFC4u); 7292 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7293 eax = eax + 0xFFFFFFC4u; /* 0x3614985E: add eax, -0x3c */ 7294 _flag_k = FK_ADD; 7295 PUSH32(esp, eax); /* 0x36149861: push eax */ 7296 PUSH32(esp, edi); /* 0x36149862: push edi */ 7297 RECOMP_ICALL(0x3614A390u); /* 0x36149863: call 0x3614a390 */ /* not lifted */ 7298 RECOMP_FLAGS_IN(); 7299 eax = ebp + (-0xAC); /* 0x36149868: lea eax, [ebp - 0xac] */ 7300 PUSH32(esp, eax); /* 0x3614986E: push eax */ 7301 ecx = edi + 0x3C; /* 0x3614986F: lea ecx, [edi + 0x3c] */ 7302 PUSH32(esp, ecx); /* 0x36149872: push ecx */ 7303 PUSH32(esp, edi); /* 0x36149873: push edi */ 7304 RECOMP_ICALL(0x3614A360u); /* 0x36149874: call 0x3614a360 */ /* not lifted */ 7305 RECOMP_FLAGS_IN(); 7306 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 7307 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7308 esp = esp + 0x18u; /* 0x36149879: add esp, 0x18 */ 7309 _flag_k = FK_ADD; 7310 L_3614987C: 7311 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x3Cu); 7312 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7313 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x3Cu; /* 0x3614987C: add dword ptr [esi + 8], 0x3c */ 7314 _flag_k = FK_ADD; 7315 L_36149880: 7316 ecx = ebp + (-0xAC); /* 0x36149880: lea ecx, [ebp - 0xac] */ 7317 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149886: mov dword ptr [ebp - 4], 0xffffffff */ 7318 RECOMP_ICALL(0x3602F940u); /* 0x3614988D: call 0x3602f940 */ /* not lifted */ 7319 RECOMP_FLAGS_IN(); 7320 eax = MEM32(ebp + (-0x14)); /* 0x36149892: mov eax, dword ptr [ebp - 0x14] */ 7321 edx = MEM32(ebp + (-0x50)); /* 0x36149895: mov edx, dword ptr [ebp - 0x50] */ 7322 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7323 eax = eax + 1; /* 0x36149898: inc eax */ 7324 _flag_k = FK_INC; 7325 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 7326 edx = edx & 0xFFu; /* 0x36149899: and edx, 0xff */ 7327 _cf = 0; 7328 _flag_k = FK_TEST; 7329 /* cmp eax, edx */ /* 0x3614989F: cmp eax, edx */ 7330 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 7331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7332 _flag_k = FK_CMP; 7333 MEM32(ebp + (-0x14)) = eax; /* 0x361498A1: mov dword ptr [ebp - 0x14], eax */ 7334 RECOMP_BACKEDGE(); 7335 if (CMP_L(_flag_a, _flag_b)) goto L_361496BD; /* 0x361498A4: jl 0x361496bd */ 7336 L_361498AA: 7337 esi = MEM32(ebp + 0x8); /* 0x361498AA: mov esi, dword ptr [ebp + 8] */ 7338 ecx = esi; /* 0x361498AD: mov ecx, esi */ 7339 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361498AF: call dword ptr [0x3616fadc] */ 7340 RECOMP_FLAGS_IN(); 7341 /* test eax, eax */ /* 0x361498B5: test eax, eax */ 7342 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7343 _cf = 0; 7344 _flag_k = FK_TEST; 7345 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498F7; /* 0x361498B7: jne 0x361498f7 */ 7346 L_361498B9: 7347 ebx = MEM32(ebx); /* 0x361498B9: mov ebx, dword ptr [ebx] */ 7348 eax = MEM32(ebx + 0x4); /* 0x361498BB: mov eax, dword ptr [ebx + 4] */ 7349 /* test eax, eax */ /* 0x361498BE: test eax, eax */ 7350 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7351 _cf = 0; 7352 _flag_k = FK_TEST; 7353 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498C7; /* 0x361498C0: jne 0x361498c7 */ 7354 L_361498C2: 7355 eax = MEM32(0x3616F10C); /* 0x361498C2: mov eax, dword ptr [0x3616f10c] */ 7356 L_361498C7: 7357 PUSH32(esp, eax); /* 0x361498C7: push eax */ 7358 PUSH32(esp, 0x362E75FCu); /* 0x361498C8: push 0x362e75fc */ 7359 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361498CD: call dword ptr [0x3616f18c] */ 7360 RECOMP_FLAGS_IN(); 7361 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7362 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7363 esp = esp + 8; /* 0x361498D3: add esp, 8 */ 7364 _flag_k = FK_ADD; 7365 PUSH32(esp, 0x362E75CCu); /* 0x361498D6: push 0x362e75cc */ 7366 ecx = ebp + (-0xB4); /* 0x361498DB: lea ecx, [ebp - 0xb4] */ 7367 RECOMP_ICALL(0x36008EF0u); /* 0x361498E1: call 0x36008ef0 */ /* not lifted */ 7368 RECOMP_FLAGS_IN(); 7369 PUSH32(esp, 0x36184170u); /* 0x361498E6: push 0x36184170 */ 7370 eax = ebp + (-0xB4); /* 0x361498EB: lea eax, [ebp - 0xb4] */ 7371 PUSH32(esp, eax); /* 0x361498F1: push eax */ 7372 RECOMP_ICALL(0x3615FD70u); /* 0x361498F2: call 0x3615fd70 */ /* not lifted */ 7373 RECOMP_FLAGS_IN(); 7374 L_361498F7: 7375 ecx = MEM32(ebp + (-0xC)); /* 0x361498F7: mov ecx, dword ptr [ebp - 0xc] */ 7376 edi = POP32_VAL(esp); /* 0x361498FA: pop edi */ 7377 eax = esi; /* 0x361498FB: mov eax, esi */ 7378 esi = POP32_VAL(esp); /* 0x361498FD: pop esi */ 7379 ebx = POP32_VAL(esp); /* 0x361498FE: pop ebx */ 7380 MEM32(FS_BASE + (0)) = ecx; /* 0x361498FF: mov dword ptr fs:[0], ecx */ 7381 esp = ebp; /* 0x36149906: mov esp, ebp */ 7382 ebp = POP32_VAL(esp); /* 0x36149908: pop ebp */ 7383 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149909: ret */ 7384 RECOMP_REGS_OUT(); 7385 } 7386 7387 void sub_36149344(void) { 7388 int _fpu_cmp = 0; 7389 uint32_t _cf = 0; 7390 int _df = 1; 7391 uint32_t _flag_k = FK_NONE; 7392 uint32_t _flag_a = 0, _flag_b = 0; 7393 uint32_t _itail_tgt = 0; 7394 RECOMP_REGS_LOCALS 7395 RECOMP_ENTER(0x36149344u); 7396 7397 goto L_36149344; 7398 L_361491D9: 7399 ecx = MEM32(ebp + 0x8); /* 0x361491D9: mov ecx, dword ptr [ebp + 8] */ 7400 esi = MEM32(0x3616FAC8); /* 0x361491DC: mov esi, dword ptr [0x3616fac8] */ 7401 eax = ebp + (-0x1E); /* 0x361491E2: lea eax, [ebp - 0x1e] */ 7402 PUSH32(esp, eax); /* 0x361491E5: push eax */ 7403 RECOMP_ICALL(esi); /* 0x361491E6: call esi */ 7404 RECOMP_FLAGS_IN(); 7405 ecx = ebp + (-0x26); /* 0x361491E8: lea ecx, [ebp - 0x26] */ 7406 PUSH32(esp, ecx); /* 0x361491EB: push ecx */ 7407 ecx = eax; /* 0x361491EC: mov ecx, eax */ 7408 RECOMP_ICALL(esi); /* 0x361491EE: call esi */ 7409 RECOMP_FLAGS_IN(); 7410 esi = MEM32(ebx + 0x5C); /* 0x361491F0: mov esi, dword ptr [ebx + 0x5c] */ 7411 eax = MEM32(esi + 0x8); /* 0x361491F3: mov eax, dword ptr [esi + 8] */ 7412 edx = MEM32(esi + 0xC); /* 0x361491F6: mov edx, dword ptr [esi + 0xc] */ 7413 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 7414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7415 edx = edx - eax; /* 0x361491F9: sub edx, eax */ 7416 _flag_k = FK_CMP; 7417 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x361491FB: sar edx, 1 */ 7418 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7419 edx = (uint32_t)((int32_t)edx >> 1u); 7420 /* cmp edx, 1 */ /* 0x361491FD: cmp edx, 1 */ 7421 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 7422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7423 _flag_k = FK_CMP; 7424 edi = eax; /* 0x36149200: mov edi, eax */ 7425 if (CMP_AE(_flag_a, _flag_b)) goto L_361492B8; /* 0x36149202: jae 0x361492b8 */ 7426 L_36149208: 7427 ecx = MEM32(esi + 0x4); /* 0x36149208: mov ecx, dword ptr [esi + 4] */ 7428 /* test ecx, ecx */ /* 0x3614920B: test ecx, ecx */ 7429 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7430 _cf = 0; 7431 _flag_k = FK_TEST; 7432 if (TEST_Z(_flag_a, _flag_b)) goto L_36149224; /* 0x3614920D: je 0x36149224 */ 7433 L_3614920F: 7434 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7435 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7436 eax = eax - ecx; /* 0x3614920F: sub eax, ecx */ 7437 _flag_k = FK_CMP; 7438 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149211: sar eax, 1 */ 7439 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7440 eax = (uint32_t)((int32_t)eax >> 1u); 7441 /* cmp eax, 1 */ /* 0x36149213: cmp eax, 1 */ 7442 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7443 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7444 _flag_k = FK_CMP; 7445 if (CMP_BE(_flag_a, _flag_b)) goto L_36149224; /* 0x36149216: jbe 0x36149224 */ 7446 L_36149218: 7447 ecx = esi; /* 0x36149218: mov ecx, esi */ 7448 RECOMP_ICALL(0x36140430u); /* 0x3614921A: call 0x36140430 */ /* not lifted */ 7449 RECOMP_FLAGS_IN(); 7450 MEM32(ebp + (-0x10)) = eax; /* 0x3614921F: mov dword ptr [ebp - 0x10], eax */ 7451 goto L_3614922B; /* 0x36149222: jmp 0x3614922b */ 7452 L_36149224: 7453 MEM32(ebp + (-0x10)) = 1; /* 0x36149224: mov dword ptr [ebp - 0x10], 1 */ 7454 L_3614922B: 7455 ecx = esi; /* 0x3614922B: mov ecx, esi */ 7456 RECOMP_ICALL(0x36140430u); /* 0x3614922D: call 0x36140430 */ /* not lifted */ 7457 RECOMP_FLAGS_IN(); 7458 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 7459 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7460 eax = eax + MEM32(ebp + (-0x10)); /* 0x36149232: add eax, dword ptr [ebp - 0x10] */ 7461 _flag_k = FK_ADD; 7462 MEM32(ebp + (-0x18)) = eax; /* 0x36149235: mov dword ptr [ebp - 0x18], eax */ 7463 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_3614923C; /* 0x36149238: jns 0x3614923c */ 7464 L_3614923A: 7465 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7466 eax = 0; /* 0x3614923A: xor eax, eax */ 7467 _cf = 0; 7468 _flag_k = FK_TEST; 7469 L_3614923C: 7470 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7471 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7472 eax = eax + eax; /* 0x3614923C: add eax, eax */ 7473 _flag_k = FK_ADD; 7474 PUSH32(esp, eax); /* 0x3614923E: push eax */ 7475 RECOMP_ICALL(0x3615FD6Au); /* 0x3614923F: call 0x3615fd6a */ /* not lifted */ 7476 RECOMP_FLAGS_IN(); 7477 ecx = MEM32(esi + 0x4); /* 0x36149244: mov ecx, dword ptr [esi + 4] */ 7478 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7479 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7480 esp = esp + 4; /* 0x36149247: add esp, 4 */ 7481 _flag_k = FK_ADD; 7482 PUSH32(esp, eax); /* 0x3614924A: push eax */ 7483 PUSH32(esp, edi); /* 0x3614924B: push edi */ 7484 PUSH32(esp, ecx); /* 0x3614924C: push ecx */ 7485 ecx = esi; /* 0x3614924D: mov ecx, esi */ 7486 MEM32(ebp + (-0x2C)) = eax; /* 0x3614924F: mov dword ptr [ebp - 0x2c], eax */ 7487 RECOMP_ICALL(0x36140900u); /* 0x36149252: call 0x36140900 */ /* not lifted */ 7488 RECOMP_FLAGS_IN(); 7489 edx = ebp + (-0x1E); /* 0x36149257: lea edx, [ebp - 0x1e] */ 7490 PUSH32(esp, edx); /* 0x3614925A: push edx */ 7491 PUSH32(esp, 1); /* 0x3614925B: push 1 */ 7492 PUSH32(esp, eax); /* 0x3614925D: push eax */ 7493 ecx = esi; /* 0x3614925E: mov ecx, esi */ 7494 MEM32(ebp + (-0x10)) = eax; /* 0x36149260: mov dword ptr [ebp - 0x10], eax */ 7495 RECOMP_ICALL(0x3614A1F0u); /* 0x36149263: call 0x3614a1f0 */ /* not lifted */ 7496 RECOMP_FLAGS_IN(); 7497 eax = MEM32(ebp + (-0x10)); /* 0x36149268: mov eax, dword ptr [ebp - 0x10] */ 7498 ecx = MEM32(esi + 0x8); /* 0x3614926B: mov ecx, dword ptr [esi + 8] */ 7499 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 7500 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7501 eax = eax + 2; /* 0x3614926E: add eax, 2 */ 7502 _flag_k = FK_ADD; 7503 PUSH32(esp, eax); /* 0x36149271: push eax */ 7504 PUSH32(esp, ecx); /* 0x36149272: push ecx */ 7505 PUSH32(esp, edi); /* 0x36149273: push edi */ 7506 ecx = esi; /* 0x36149274: mov ecx, esi */ 7507 RECOMP_ICALL(0x36140900u); /* 0x36149276: call 0x36140900 */ /* not lifted */ 7508 RECOMP_FLAGS_IN(); 7509 edx = MEM32(esi + 0x8); /* 0x3614927B: mov edx, dword ptr [esi + 8] */ 7510 eax = MEM32(esi + 0x4); /* 0x3614927E: mov eax, dword ptr [esi + 4] */ 7511 PUSH32(esp, edx); /* 0x36149281: push edx */ 7512 PUSH32(esp, eax); /* 0x36149282: push eax */ 7513 ecx = esi; /* 0x36149283: mov ecx, esi */ 7514 RECOMP_ICALL(0x3610ED60u); /* 0x36149285: call 0x3610ed60 */ /* not lifted */ 7515 RECOMP_FLAGS_IN(); 7516 eax = MEM32(esi + 0x4); /* 0x3614928A: mov eax, dword ptr [esi + 4] */ 7517 PUSH32(esp, eax); /* 0x3614928D: push eax */ 7518 RECOMP_ICALL(0x3615FCC4u); /* 0x3614928E: call 0x3615fcc4 */ /* not lifted */ 7519 RECOMP_FLAGS_IN(); 7520 ecx = MEM32(ebp + (-0x18)); /* 0x36149293: mov ecx, dword ptr [ebp - 0x18] */ 7521 edi = MEM32(ebp + (-0x2C)); /* 0x36149296: mov edi, dword ptr [ebp - 0x2c] */ 7522 edx = edi + ecx * 2; /* 0x36149299: lea edx, [edi + ecx*2] */ 7523 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7524 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7525 esp = esp + 4; /* 0x3614929C: add esp, 4 */ 7526 _flag_k = FK_ADD; 7527 ecx = esi; /* 0x3614929F: mov ecx, esi */ 7528 MEM32(esi + 0xC) = edx; /* 0x361492A1: mov dword ptr [esi + 0xc], edx */ 7529 RECOMP_ICALL(0x36140430u); /* 0x361492A4: call 0x36140430 */ /* not lifted */ 7530 RECOMP_FLAGS_IN(); 7531 eax = edi + eax * 2 + 0x2; /* 0x361492A9: lea eax, [edi + eax*2 + 2] */ 7532 MEM32(esi + 0x8) = eax; /* 0x361492AD: mov dword ptr [esi + 8], eax */ 7533 MEM32(esi + 0x4) = edi; /* 0x361492B0: mov dword ptr [esi + 4], edi */ 7534 goto L_36149348; /* 0x361492B3: jmp 0x36149348 */ 7535 L_361492B8: 7536 ecx = eax; /* 0x361492B8: mov ecx, eax */ 7537 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 7538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7539 ecx = ecx - edi; /* 0x361492BA: sub ecx, edi */ 7540 _flag_k = FK_CMP; 7541 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492BC: sar ecx, 1 */ 7542 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7543 ecx = (uint32_t)((int32_t)ecx >> 1u); 7544 /* cmp ecx, 1 */ /* 0x361492BE: cmp ecx, 1 */ 7545 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7546 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7547 _flag_k = FK_CMP; 7548 if (CMP_AE(_flag_a, _flag_b)) goto L_36149304; /* 0x361492C1: jae 0x36149304 */ 7549 L_361492C3: 7550 ecx = edi + 0x2; /* 0x361492C3: lea ecx, [edi + 2] */ 7551 PUSH32(esp, ecx); /* 0x361492C6: push ecx */ 7552 PUSH32(esp, eax); /* 0x361492C7: push eax */ 7553 PUSH32(esp, edi); /* 0x361492C8: push edi */ 7554 ecx = esi; /* 0x361492C9: mov ecx, esi */ 7555 RECOMP_ICALL(0x36140900u); /* 0x361492CB: call 0x36140900 */ /* not lifted */ 7556 RECOMP_FLAGS_IN(); 7557 eax = MEM32(esi + 0x8); /* 0x361492D0: mov eax, dword ptr [esi + 8] */ 7558 ecx = eax; /* 0x361492D3: mov ecx, eax */ 7559 edx = ebp + (-0x1E); /* 0x361492D5: lea edx, [ebp - 0x1e] */ 7560 PUSH32(esp, edx); /* 0x361492D8: push edx */ 7561 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 7562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7563 ecx = ecx - edi; /* 0x361492D9: sub ecx, edi */ 7564 _flag_k = FK_CMP; 7565 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492DB: sar ecx, 1 */ 7566 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7567 ecx = (uint32_t)((int32_t)ecx >> 1u); 7568 edx = 1; /* 0x361492DD: mov edx, 1 */ 7569 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 7570 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7571 edx = edx - ecx; /* 0x361492E2: sub edx, ecx */ 7572 _flag_k = FK_CMP; 7573 PUSH32(esp, edx); /* 0x361492E4: push edx */ 7574 PUSH32(esp, eax); /* 0x361492E5: push eax */ 7575 ecx = esi; /* 0x361492E6: mov ecx, esi */ 7576 RECOMP_ICALL(0x3614A1F0u); /* 0x361492E8: call 0x3614a1f0 */ /* not lifted */ 7577 RECOMP_FLAGS_IN(); 7578 eax = MEM32(esi + 0x8); /* 0x361492ED: mov eax, dword ptr [esi + 8] */ 7579 /* cmp edi, eax */ /* 0x361492F0: cmp edi, eax */ 7580 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7581 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7582 _flag_k = FK_CMP; 7583 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x361492F2: je 0x36149344 */ 7584 L_361492F4: 7585 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x361492F4: mov cx, word ptr [ebp - 0x1e] */ 7586 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x361492F8: mov word ptr [edi], cx */ 7587 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 7588 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7589 edi = edi + 2; /* 0x361492FB: add edi, 2 */ 7590 _flag_k = FK_ADD; 7591 /* cmp edi, eax */ /* 0x361492FE: cmp edi, eax */ 7592 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7593 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7594 _flag_k = FK_CMP; 7595 RECOMP_BACKEDGE(); 7596 if (CMP_NE(_flag_a, _flag_b)) goto L_361492F4; /* 0x36149300: jne 0x361492f4 */ 7597 L_36149302: 7598 goto L_36149344; /* 0x36149302: jmp 0x36149344 */ 7599 L_36149304: 7600 PUSH32(esp, eax); /* 0x36149304: push eax */ 7601 ecx = eax + (-0x2); /* 0x36149305: lea ecx, [eax - 2] */ 7602 PUSH32(esp, eax); /* 0x36149308: push eax */ 7603 MEM32(ebp + (-0x18)) = ecx; /* 0x36149309: mov dword ptr [ebp - 0x18], ecx */ 7604 PUSH32(esp, ecx); /* 0x3614930C: push ecx */ 7605 ecx = esi; /* 0x3614930D: mov ecx, esi */ 7606 RECOMP_ICALL(0x36140900u); /* 0x3614930F: call 0x36140900 */ /* not lifted */ 7607 RECOMP_FLAGS_IN(); 7608 ecx = MEM32(esi + 0x8); /* 0x36149314: mov ecx, dword ptr [esi + 8] */ 7609 eax = ecx + (-0x2); /* 0x36149317: lea eax, [ecx - 2] */ 7610 /* cmp edi, eax */ /* 0x3614931A: cmp edi, eax */ 7611 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7612 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7613 _flag_k = FK_CMP; 7614 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614932F; /* 0x3614931C: je 0x3614932f */ 7615 L_3614931E: 7616 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x3614931E: mov dx, word ptr [eax - 2] */ 7617 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 7618 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7619 eax = eax - 2; /* 0x36149322: sub eax, 2 */ 7620 _flag_k = FK_CMP; 7621 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 7622 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7623 ecx = ecx - 2; /* 0x36149325: sub ecx, 2 */ 7624 _flag_k = FK_CMP; 7625 /* cmp eax, edi */ /* 0x36149328: cmp eax, edi */ 7626 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 7627 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7628 _flag_k = FK_CMP; 7629 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x3614932A: mov word ptr [ecx], dx */ 7630 RECOMP_BACKEDGE(); 7631 if (CMP_NE(_flag_a, _flag_b)) goto L_3614931E; /* 0x3614932D: jne 0x3614931e */ 7632 L_3614932F: 7633 eax = edi + 0x2; /* 0x3614932F: lea eax, [edi + 2] */ 7634 /* cmp edi, eax */ /* 0x36149332: cmp edi, eax */ 7635 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7637 _flag_k = FK_CMP; 7638 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x36149334: je 0x36149344 */ 7639 L_36149336: 7640 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x36149336: mov cx, word ptr [ebp - 0x1e] */ 7641 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x3614933A: mov word ptr [edi], cx */ 7642 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 7643 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7644 edi = edi + 2; /* 0x3614933D: add edi, 2 */ 7645 _flag_k = FK_ADD; 7646 /* cmp edi, eax */ /* 0x36149340: cmp edi, eax */ 7647 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7648 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7649 _flag_k = FK_CMP; 7650 RECOMP_BACKEDGE(); 7651 if (CMP_NE(_flag_a, _flag_b)) goto L_36149336; /* 0x36149342: jne 0x36149336 */ 7652 L_36149344: 7653 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 7654 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7655 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x36149344: add dword ptr [esi + 8], 2 */ 7656 _flag_k = FK_ADD; 7657 L_36149348: 7658 esi = MEM32(ebx + 0x5C); /* 0x36149348: mov esi, dword ptr [ebx + 0x5c] */ 7659 eax = MEM32(esi + 0x8); /* 0x3614934B: mov eax, dword ptr [esi + 8] */ 7660 edx = MEM32(esi + 0xC); /* 0x3614934E: mov edx, dword ptr [esi + 0xc] */ 7661 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 7662 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7663 edx = edx - eax; /* 0x36149351: sub edx, eax */ 7664 _flag_k = FK_CMP; 7665 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36149353: sar edx, 1 */ 7666 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7667 edx = (uint32_t)((int32_t)edx >> 1u); 7668 /* cmp edx, 1 */ /* 0x36149355: cmp edx, 1 */ 7669 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 7670 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7671 _flag_k = FK_CMP; 7672 edi = eax; /* 0x36149358: mov edi, eax */ 7673 if (CMP_AE(_flag_a, _flag_b)) goto L_36149410; /* 0x3614935A: jae 0x36149410 */ 7674 L_36149360: 7675 ecx = MEM32(esi + 0x4); /* 0x36149360: mov ecx, dword ptr [esi + 4] */ 7676 /* test ecx, ecx */ /* 0x36149363: test ecx, ecx */ 7677 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7678 _cf = 0; 7679 _flag_k = FK_TEST; 7680 if (TEST_Z(_flag_a, _flag_b)) goto L_3614937C; /* 0x36149365: je 0x3614937c */ 7681 L_36149367: 7682 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7683 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7684 eax = eax - ecx; /* 0x36149367: sub eax, ecx */ 7685 _flag_k = FK_CMP; 7686 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149369: sar eax, 1 */ 7687 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7688 eax = (uint32_t)((int32_t)eax >> 1u); 7689 /* cmp eax, 1 */ /* 0x3614936B: cmp eax, 1 */ 7690 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7691 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7692 _flag_k = FK_CMP; 7693 if (CMP_BE(_flag_a, _flag_b)) goto L_3614937C; /* 0x3614936E: jbe 0x3614937c */ 7694 L_36149370: 7695 ecx = esi; /* 0x36149370: mov ecx, esi */ 7696 RECOMP_ICALL(0x36140430u); /* 0x36149372: call 0x36140430 */ /* not lifted */ 7697 RECOMP_FLAGS_IN(); 7698 MEM32(ebp + (-0x10)) = eax; /* 0x36149377: mov dword ptr [ebp - 0x10], eax */ 7699 goto L_36149383; /* 0x3614937A: jmp 0x36149383 */ 7700 L_3614937C: 7701 MEM32(ebp + (-0x10)) = 1; /* 0x3614937C: mov dword ptr [ebp - 0x10], 1 */ 7702 L_36149383: 7703 ecx = esi; /* 0x36149383: mov ecx, esi */ 7704 RECOMP_ICALL(0x36140430u); /* 0x36149385: call 0x36140430 */ /* not lifted */ 7705 RECOMP_FLAGS_IN(); 7706 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 7707 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7708 eax = eax + MEM32(ebp + (-0x10)); /* 0x3614938A: add eax, dword ptr [ebp - 0x10] */ 7709 _flag_k = FK_ADD; 7710 MEM32(ebp + (-0x10)) = eax; /* 0x3614938D: mov dword ptr [ebp - 0x10], eax */ 7711 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149394; /* 0x36149390: jns 0x36149394 */ 7712 L_36149392: 7713 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7714 eax = 0; /* 0x36149392: xor eax, eax */ 7715 _cf = 0; 7716 _flag_k = FK_TEST; 7717 L_36149394: 7718 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7719 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7720 eax = eax + eax; /* 0x36149394: add eax, eax */ 7721 _flag_k = FK_ADD; 7722 PUSH32(esp, eax); /* 0x36149396: push eax */ 7723 RECOMP_ICALL(0x3615FD6Au); /* 0x36149397: call 0x3615fd6a */ /* not lifted */ 7724 RECOMP_FLAGS_IN(); 7725 ecx = MEM32(esi + 0x4); /* 0x3614939C: mov ecx, dword ptr [esi + 4] */ 7726 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7727 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7728 esp = esp + 4; /* 0x3614939F: add esp, 4 */ 7729 _flag_k = FK_ADD; 7730 PUSH32(esp, eax); /* 0x361493A2: push eax */ 7731 PUSH32(esp, edi); /* 0x361493A3: push edi */ 7732 PUSH32(esp, ecx); /* 0x361493A4: push ecx */ 7733 ecx = esi; /* 0x361493A5: mov ecx, esi */ 7734 MEM32(ebp + (-0x2C)) = eax; /* 0x361493A7: mov dword ptr [ebp - 0x2c], eax */ 7735 RECOMP_ICALL(0x36140900u); /* 0x361493AA: call 0x36140900 */ /* not lifted */ 7736 RECOMP_FLAGS_IN(); 7737 edx = ebp + (-0x26); /* 0x361493AF: lea edx, [ebp - 0x26] */ 7738 PUSH32(esp, edx); /* 0x361493B2: push edx */ 7739 PUSH32(esp, 1); /* 0x361493B3: push 1 */ 7740 PUSH32(esp, eax); /* 0x361493B5: push eax */ 7741 ecx = esi; /* 0x361493B6: mov ecx, esi */ 7742 MEM32(ebp + (-0x18)) = eax; /* 0x361493B8: mov dword ptr [ebp - 0x18], eax */ 7743 RECOMP_ICALL(0x3614A1F0u); /* 0x361493BB: call 0x3614a1f0 */ /* not lifted */ 7744 RECOMP_FLAGS_IN(); 7745 eax = MEM32(ebp + (-0x18)); /* 0x361493C0: mov eax, dword ptr [ebp - 0x18] */ 7746 ecx = MEM32(esi + 0x8); /* 0x361493C3: mov ecx, dword ptr [esi + 8] */ 7747 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 7748 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7749 eax = eax + 2; /* 0x361493C6: add eax, 2 */ 7750 _flag_k = FK_ADD; 7751 PUSH32(esp, eax); /* 0x361493C9: push eax */ 7752 PUSH32(esp, ecx); /* 0x361493CA: push ecx */ 7753 PUSH32(esp, edi); /* 0x361493CB: push edi */ 7754 ecx = esi; /* 0x361493CC: mov ecx, esi */ 7755 RECOMP_ICALL(0x36140900u); /* 0x361493CE: call 0x36140900 */ /* not lifted */ 7756 RECOMP_FLAGS_IN(); 7757 edx = MEM32(esi + 0x8); /* 0x361493D3: mov edx, dword ptr [esi + 8] */ 7758 eax = MEM32(esi + 0x4); /* 0x361493D6: mov eax, dword ptr [esi + 4] */ 7759 PUSH32(esp, edx); /* 0x361493D9: push edx */ 7760 PUSH32(esp, eax); /* 0x361493DA: push eax */ 7761 ecx = esi; /* 0x361493DB: mov ecx, esi */ 7762 RECOMP_ICALL(0x3610ED60u); /* 0x361493DD: call 0x3610ed60 */ /* not lifted */ 7763 RECOMP_FLAGS_IN(); 7764 eax = MEM32(esi + 0x4); /* 0x361493E2: mov eax, dword ptr [esi + 4] */ 7765 PUSH32(esp, eax); /* 0x361493E5: push eax */ 7766 RECOMP_ICALL(0x3615FCC4u); /* 0x361493E6: call 0x3615fcc4 */ /* not lifted */ 7767 RECOMP_FLAGS_IN(); 7768 ecx = MEM32(ebp + (-0x10)); /* 0x361493EB: mov ecx, dword ptr [ebp - 0x10] */ 7769 edi = MEM32(ebp + (-0x2C)); /* 0x361493EE: mov edi, dword ptr [ebp - 0x2c] */ 7770 edx = edi + ecx * 2; /* 0x361493F1: lea edx, [edi + ecx*2] */ 7771 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7772 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7773 esp = esp + 4; /* 0x361493F4: add esp, 4 */ 7774 _flag_k = FK_ADD; 7775 ecx = esi; /* 0x361493F7: mov ecx, esi */ 7776 MEM32(esi + 0xC) = edx; /* 0x361493F9: mov dword ptr [esi + 0xc], edx */ 7777 RECOMP_ICALL(0x36140430u); /* 0x361493FC: call 0x36140430 */ /* not lifted */ 7778 RECOMP_FLAGS_IN(); 7779 eax = edi + eax * 2 + 0x2; /* 0x36149401: lea eax, [edi + eax*2 + 2] */ 7780 MEM32(esi + 0x8) = eax; /* 0x36149405: mov dword ptr [esi + 8], eax */ 7781 MEM32(esi + 0x4) = edi; /* 0x36149408: mov dword ptr [esi + 4], edi */ 7782 goto L_361494A0; /* 0x3614940B: jmp 0x361494a0 */ 7783 L_36149410: 7784 ecx = eax; /* 0x36149410: mov ecx, eax */ 7785 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 7786 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7787 ecx = ecx - edi; /* 0x36149412: sub ecx, edi */ 7788 _flag_k = FK_CMP; 7789 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149414: sar ecx, 1 */ 7790 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7791 ecx = (uint32_t)((int32_t)ecx >> 1u); 7792 /* cmp ecx, 1 */ /* 0x36149416: cmp ecx, 1 */ 7793 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7794 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7795 _flag_k = FK_CMP; 7796 if (CMP_AE(_flag_a, _flag_b)) goto L_3614945C; /* 0x36149419: jae 0x3614945c */ 7797 L_3614941B: 7798 ecx = edi + 0x2; /* 0x3614941B: lea ecx, [edi + 2] */ 7799 PUSH32(esp, ecx); /* 0x3614941E: push ecx */ 7800 PUSH32(esp, eax); /* 0x3614941F: push eax */ 7801 PUSH32(esp, edi); /* 0x36149420: push edi */ 7802 ecx = esi; /* 0x36149421: mov ecx, esi */ 7803 RECOMP_ICALL(0x36140900u); /* 0x36149423: call 0x36140900 */ /* not lifted */ 7804 RECOMP_FLAGS_IN(); 7805 eax = MEM32(esi + 0x8); /* 0x36149428: mov eax, dword ptr [esi + 8] */ 7806 ecx = eax; /* 0x3614942B: mov ecx, eax */ 7807 edx = ebp + (-0x26); /* 0x3614942D: lea edx, [ebp - 0x26] */ 7808 PUSH32(esp, edx); /* 0x36149430: push edx */ 7809 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 7810 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7811 ecx = ecx - edi; /* 0x36149431: sub ecx, edi */ 7812 _flag_k = FK_CMP; 7813 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149433: sar ecx, 1 */ 7814 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7815 ecx = (uint32_t)((int32_t)ecx >> 1u); 7816 edx = 1; /* 0x36149435: mov edx, 1 */ 7817 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 7818 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7819 edx = edx - ecx; /* 0x3614943A: sub edx, ecx */ 7820 _flag_k = FK_CMP; 7821 PUSH32(esp, edx); /* 0x3614943C: push edx */ 7822 PUSH32(esp, eax); /* 0x3614943D: push eax */ 7823 ecx = esi; /* 0x3614943E: mov ecx, esi */ 7824 RECOMP_ICALL(0x3614A1F0u); /* 0x36149440: call 0x3614a1f0 */ /* not lifted */ 7825 RECOMP_FLAGS_IN(); 7826 eax = MEM32(esi + 0x8); /* 0x36149445: mov eax, dword ptr [esi + 8] */ 7827 /* cmp edi, eax */ /* 0x36149448: cmp edi, eax */ 7828 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7829 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7830 _flag_k = FK_CMP; 7831 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614944A: je 0x3614949c */ 7832 L_3614944C: 7833 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614944C: mov cx, word ptr [ebp - 0x26] */ 7834 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149450: mov word ptr [edi], cx */ 7835 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 7836 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7837 edi = edi + 2; /* 0x36149453: add edi, 2 */ 7838 _flag_k = FK_ADD; 7839 /* cmp edi, eax */ /* 0x36149456: cmp edi, eax */ 7840 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7841 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7842 _flag_k = FK_CMP; 7843 RECOMP_BACKEDGE(); 7844 if (CMP_NE(_flag_a, _flag_b)) goto L_3614944C; /* 0x36149458: jne 0x3614944c */ 7845 L_3614945A: 7846 goto L_3614949C; /* 0x3614945A: jmp 0x3614949c */ 7847 L_3614945C: 7848 PUSH32(esp, eax); /* 0x3614945C: push eax */ 7849 ecx = eax + (-0x2); /* 0x3614945D: lea ecx, [eax - 2] */ 7850 PUSH32(esp, eax); /* 0x36149460: push eax */ 7851 MEM32(ebp + (-0x18)) = ecx; /* 0x36149461: mov dword ptr [ebp - 0x18], ecx */ 7852 PUSH32(esp, ecx); /* 0x36149464: push ecx */ 7853 ecx = esi; /* 0x36149465: mov ecx, esi */ 7854 RECOMP_ICALL(0x36140900u); /* 0x36149467: call 0x36140900 */ /* not lifted */ 7855 RECOMP_FLAGS_IN(); 7856 ecx = MEM32(esi + 0x8); /* 0x3614946C: mov ecx, dword ptr [esi + 8] */ 7857 eax = ecx + (-0x2); /* 0x3614946F: lea eax, [ecx - 2] */ 7858 /* cmp edi, eax */ /* 0x36149472: cmp edi, eax */ 7859 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7860 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7861 _flag_k = FK_CMP; 7862 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149487; /* 0x36149474: je 0x36149487 */ 7863 L_36149476: 7864 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x36149476: mov dx, word ptr [eax - 2] */ 7865 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 7866 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7867 eax = eax - 2; /* 0x3614947A: sub eax, 2 */ 7868 _flag_k = FK_CMP; 7869 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 7870 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7871 ecx = ecx - 2; /* 0x3614947D: sub ecx, 2 */ 7872 _flag_k = FK_CMP; 7873 /* cmp eax, edi */ /* 0x36149480: cmp eax, edi */ 7874 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 7875 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7876 _flag_k = FK_CMP; 7877 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x36149482: mov word ptr [ecx], dx */ 7878 RECOMP_BACKEDGE(); 7879 if (CMP_NE(_flag_a, _flag_b)) goto L_36149476; /* 0x36149485: jne 0x36149476 */ 7880 L_36149487: 7881 eax = edi + 0x2; /* 0x36149487: lea eax, [edi + 2] */ 7882 /* cmp edi, eax */ /* 0x3614948A: cmp edi, eax */ 7883 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7884 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7885 _flag_k = FK_CMP; 7886 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614948C: je 0x3614949c */ 7887 L_3614948E: 7888 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614948E: mov cx, word ptr [ebp - 0x26] */ 7889 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149492: mov word ptr [edi], cx */ 7890 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 7891 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7892 edi = edi + 2; /* 0x36149495: add edi, 2 */ 7893 _flag_k = FK_ADD; 7894 /* cmp edi, eax */ /* 0x36149498: cmp edi, eax */ 7895 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7896 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7897 _flag_k = FK_CMP; 7898 RECOMP_BACKEDGE(); 7899 if (CMP_NE(_flag_a, _flag_b)) goto L_3614948E; /* 0x3614949A: jne 0x3614948e */ 7900 L_3614949C: 7901 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 7902 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7903 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x3614949C: add dword ptr [esi + 8], 2 */ 7904 _flag_k = FK_ADD; 7905 L_361494A0: 7906 eax = MEM32(ebp + (-0x14)); /* 0x361494A0: mov eax, dword ptr [ebp - 0x14] */ 7907 edx = MEM32(ebp + (-0x64)); /* 0x361494A3: mov edx, dword ptr [ebp - 0x64] */ 7908 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7909 eax = eax + 1; /* 0x361494A6: inc eax */ 7910 _flag_k = FK_INC; 7911 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 7912 edx = edx & 0xFFu; /* 0x361494A7: and edx, 0xff */ 7913 _cf = 0; 7914 _flag_k = FK_TEST; 7915 /* cmp eax, edx */ /* 0x361494AD: cmp eax, edx */ 7916 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 7917 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7918 _flag_k = FK_CMP; 7919 MEM32(ebp + (-0x14)) = eax; /* 0x361494AF: mov dword ptr [ebp - 0x14], eax */ 7920 RECOMP_BACKEDGE(); 7921 if (CMP_B(_flag_a, _flag_b)) goto L_361491D9; /* 0x361494B2: jb 0x361491d9 */ 7922 L_361494B8: 7923 SET_LO8(eax, MEM8(ebp + (-0x4C))); /* 0x361494B8: mov al, byte ptr [ebp - 0x4c] */ 7924 /* test LO8(eax), LO8(eax) */ /* 0x361494BB: test al, al */ 7925 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7926 _cf = 0; 7927 _flag_k = FK_NARROW(FK_TEST, 24); 7928 MEM32(ebp + (-0x10)) = 0; /* 0x361494BD: mov dword ptr [ebp - 0x10], 0 */ 7929 if (TEST_Z(_flag_a, _flag_b)) goto L_361496AB; /* 0x361494C4: jbe 0x361496ab */ 7930 L_361494CA: 7931 ecx = ebp + (-0x84); /* 0x361494CA: lea ecx, [ebp - 0x84] */ 7932 RECOMP_ICALL(0x3602F750u); /* 0x361494D0: call 0x3602f750 */ /* not lifted */ 7933 RECOMP_FLAGS_IN(); 7934 ecx = MEM32(ebp + 0x8); /* 0x361494D5: mov ecx, dword ptr [ebp + 8] */ 7935 eax = ebp + (-0x84); /* 0x361494D8: lea eax, [ebp - 0x84] */ 7936 PUSH32(esp, eax); /* 0x361494DE: push eax */ 7937 PUSH32(esp, ecx); /* 0x361494DF: push ecx */ 7938 MEM32(ebp + (-0x4)) = 0; /* 0x361494E0: mov dword ptr [ebp - 4], 0 */ 7939 RECOMP_ICALL(0x3602F810u); /* 0x361494E7: call 0x3602f810 */ /* not lifted */ 7940 RECOMP_FLAGS_IN(); 7941 esi = MEM32(ebx + 0x50); /* 0x361494EC: mov esi, dword ptr [ebx + 0x50] */ 7942 ecx = MEM32(esi + 0x8); /* 0x361494EF: mov ecx, dword ptr [esi + 8] */ 7943 edx = MEM32(esi + 0xC); /* 0x361494F2: mov edx, dword ptr [esi + 0xc] */ 7944 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 7945 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7946 edx = edx - ecx; /* 0x361494F5: sub edx, ecx */ 7947 _flag_k = FK_CMP; 7948 eax = 0x66666667u; /* 0x361494F7: mov eax, 0x66666667 */ 7949 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361494FC: imul edx */ 7950 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 7951 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 7952 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361494FE: sar edx, 3 */ 7953 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7954 edx = (uint32_t)((int32_t)edx >> 3u); 7955 eax = edx; /* 0x36149501: mov eax, edx */ 7956 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149503: shr eax, 0x1f */ 7957 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7958 eax = eax >> 31u; /* 0x36149503: shr eax, 0x1f */ 7959 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 7960 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7961 edx = edx + eax; /* 0x36149506: add edx, eax */ 7962 _flag_k = FK_ADD; 7963 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7964 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7965 esp = esp + 8; /* 0x36149508: add esp, 8 */ 7966 _flag_k = FK_ADD; 7967 /* cmp edx, 1 */ /* 0x3614950B: cmp edx, 1 */ 7968 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 7969 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7970 _flag_k = FK_CMP; 7971 edi = ecx; /* 0x3614950E: mov edi, ecx */ 7972 if (CMP_AE(_flag_a, _flag_b)) goto L_361495E2; /* 0x36149510: jae 0x361495e2 */ 7973 L_36149516: 7974 eax = MEM32(esi + 0x4); /* 0x36149516: mov eax, dword ptr [esi + 4] */ 7975 /* test eax, eax */ /* 0x36149519: test eax, eax */ 7976 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7977 _cf = 0; 7978 _flag_k = FK_TEST; 7979 if (TEST_Z(_flag_a, _flag_b)) goto L_36149541; /* 0x3614951B: je 0x36149541 */ 7980 L_3614951D: 7981 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 7982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7983 ecx = ecx - eax; /* 0x3614951D: sub ecx, eax */ 7984 _flag_k = FK_CMP; 7985 eax = 0x66666667u; /* 0x3614951F: mov eax, 0x66666667 */ 7986 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149524: imul ecx */ 7987 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 7988 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 7989 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149526: sar edx, 3 */ 7990 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7991 edx = (uint32_t)((int32_t)edx >> 3u); 7992 ecx = edx; /* 0x36149529: mov ecx, edx */ 7993 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614952B: shr ecx, 0x1f */ 7994 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7995 ecx = ecx >> 31u; /* 0x3614952B: shr ecx, 0x1f */ 7996 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 7997 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7998 edx = edx + ecx; /* 0x3614952E: add edx, ecx */ 7999 _flag_k = FK_ADD; 8000 /* cmp edx, 1 */ /* 0x36149530: cmp edx, 1 */ 8001 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 8002 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8003 _flag_k = FK_CMP; 8004 if (CMP_BE(_flag_a, _flag_b)) goto L_36149541; /* 0x36149533: jbe 0x36149541 */ 8005 L_36149535: 8006 ecx = esi; /* 0x36149535: mov ecx, esi */ 8007 RECOMP_ICALL(0x36149DC0u); /* 0x36149537: call 0x36149dc0 */ /* not lifted */ 8008 RECOMP_FLAGS_IN(); 8009 MEM32(ebp + (-0x14)) = eax; /* 0x3614953C: mov dword ptr [ebp - 0x14], eax */ 8010 goto L_36149548; /* 0x3614953F: jmp 0x36149548 */ 8011 L_36149541: 8012 MEM32(ebp + (-0x14)) = 1; /* 0x36149541: mov dword ptr [ebp - 0x14], 1 */ 8013 L_36149548: 8014 ecx = esi; /* 0x36149548: mov ecx, esi */ 8015 RECOMP_ICALL(0x36149DC0u); /* 0x3614954A: call 0x36149dc0 */ /* not lifted */ 8016 RECOMP_FLAGS_IN(); 8017 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 8018 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8019 eax = eax + MEM32(ebp + (-0x14)); /* 0x3614954F: add eax, dword ptr [ebp - 0x14] */ 8020 _flag_k = FK_ADD; 8021 MEM32(ebp + (-0x2C)) = eax; /* 0x36149552: mov dword ptr [ebp - 0x2c], eax */ 8022 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149559; /* 0x36149555: jns 0x36149559 */ 8023 L_36149557: 8024 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8025 eax = 0; /* 0x36149557: xor eax, eax */ 8026 _cf = 0; 8027 _flag_k = FK_TEST; 8028 L_36149559: 8029 edx = eax + eax * 4; /* 0x36149559: lea edx, [eax + eax*4] */ 8030 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614955C: shl edx, 2 */ 8031 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8032 edx = edx << 2u; /* 0x3614955C: shl edx, 2 */ 8033 PUSH32(esp, edx); /* 0x3614955F: push edx */ 8034 RECOMP_ICALL(0x3615FD6Au); /* 0x36149560: call 0x3615fd6a */ /* not lifted */ 8035 RECOMP_FLAGS_IN(); 8036 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8037 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8038 esp = esp + 4; /* 0x36149565: add esp, 4 */ 8039 _flag_k = FK_ADD; 8040 PUSH32(esp, eax); /* 0x36149568: push eax */ 8041 MEM32(ebp + (-0x14)) = eax; /* 0x36149569: mov dword ptr [ebp - 0x14], eax */ 8042 eax = MEM32(esi + 0x4); /* 0x3614956C: mov eax, dword ptr [esi + 4] */ 8043 PUSH32(esp, edi); /* 0x3614956F: push edi */ 8044 PUSH32(esp, eax); /* 0x36149570: push eax */ 8045 ecx = esi; /* 0x36149571: mov ecx, esi */ 8046 RECOMP_ICALL(0x36149E20u); /* 0x36149573: call 0x36149e20 */ /* not lifted */ 8047 RECOMP_FLAGS_IN(); 8048 ecx = ebp + (-0x84); /* 0x36149578: lea ecx, [ebp - 0x84] */ 8049 PUSH32(esp, ecx); /* 0x3614957E: push ecx */ 8050 PUSH32(esp, 1); /* 0x3614957F: push 1 */ 8051 PUSH32(esp, eax); /* 0x36149581: push eax */ 8052 ecx = esi; /* 0x36149582: mov ecx, esi */ 8053 MEM32(ebp + (-0x18)) = eax; /* 0x36149584: mov dword ptr [ebp - 0x18], eax */ 8054 RECOMP_ICALL(0x3614A190u); /* 0x36149587: call 0x3614a190 */ /* not lifted */ 8055 RECOMP_FLAGS_IN(); 8056 edx = MEM32(ebp + (-0x18)); /* 0x3614958C: mov edx, dword ptr [ebp - 0x18] */ 8057 eax = MEM32(esi + 0x8); /* 0x3614958F: mov eax, dword ptr [esi + 8] */ 8058 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u); 8059 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8060 edx = edx + 0x14u; /* 0x36149592: add edx, 0x14 */ 8061 _flag_k = FK_ADD; 8062 PUSH32(esp, edx); /* 0x36149595: push edx */ 8063 PUSH32(esp, eax); /* 0x36149596: push eax */ 8064 PUSH32(esp, edi); /* 0x36149597: push edi */ 8065 ecx = esi; /* 0x36149598: mov ecx, esi */ 8066 RECOMP_ICALL(0x36149E20u); /* 0x3614959A: call 0x36149e20 */ /* not lifted */ 8067 RECOMP_FLAGS_IN(); 8068 ecx = MEM32(esi + 0x8); /* 0x3614959F: mov ecx, dword ptr [esi + 8] */ 8069 edx = MEM32(esi + 0x4); /* 0x361495A2: mov edx, dword ptr [esi + 4] */ 8070 PUSH32(esp, ecx); /* 0x361495A5: push ecx */ 8071 PUSH32(esp, edx); /* 0x361495A6: push edx */ 8072 ecx = esi; /* 0x361495A7: mov ecx, esi */ 8073 RECOMP_ICALL(0x36149DF0u); /* 0x361495A9: call 0x36149df0 */ /* not lifted */ 8074 RECOMP_FLAGS_IN(); 8075 eax = MEM32(esi + 0x4); /* 0x361495AE: mov eax, dword ptr [esi + 4] */ 8076 PUSH32(esp, eax); /* 0x361495B1: push eax */ 8077 RECOMP_ICALL(0x3615FCC4u); /* 0x361495B2: call 0x3615fcc4 */ /* not lifted */ 8078 RECOMP_FLAGS_IN(); 8079 eax = MEM32(ebp + (-0x2C)); /* 0x361495B7: mov eax, dword ptr [ebp - 0x2c] */ 8080 edi = MEM32(ebp + (-0x14)); /* 0x361495BA: mov edi, dword ptr [ebp - 0x14] */ 8081 eax = eax + eax * 4; /* 0x361495BD: lea eax, [eax + eax*4] */ 8082 ecx = edi + eax * 4; /* 0x361495C0: lea ecx, [edi + eax*4] */ 8083 MEM32(esi + 0xC) = ecx; /* 0x361495C3: mov dword ptr [esi + 0xc], ecx */ 8084 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8085 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8086 esp = esp + 4; /* 0x361495C6: add esp, 4 */ 8087 _flag_k = FK_ADD; 8088 ecx = esi; /* 0x361495C9: mov ecx, esi */ 8089 RECOMP_ICALL(0x36149DC0u); /* 0x361495CB: call 0x36149dc0 */ /* not lifted */ 8090 RECOMP_FLAGS_IN(); 8091 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8092 eax = eax + 1; /* 0x361495D0: inc eax */ 8093 _flag_k = FK_INC; 8094 edx = eax + eax * 4; /* 0x361495D1: lea edx, [eax + eax*4] */ 8095 eax = edi + edx * 4; /* 0x361495D4: lea eax, [edi + edx*4] */ 8096 MEM32(esi + 0x8) = eax; /* 0x361495D7: mov dword ptr [esi + 8], eax */ 8097 MEM32(esi + 0x4) = edi; /* 0x361495DA: mov dword ptr [esi + 4], edi */ 8098 goto L_36149681; /* 0x361495DD: jmp 0x36149681 */ 8099 L_361495E2: 8100 edx = ecx; /* 0x361495E2: mov edx, ecx */ 8101 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 8102 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8103 edx = edx - edi; /* 0x361495E4: sub edx, edi */ 8104 _flag_k = FK_CMP; 8105 eax = 0x66666667u; /* 0x361495E6: mov eax, 0x66666667 */ 8106 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361495EB: imul edx */ 8107 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 8108 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 8109 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361495ED: sar edx, 3 */ 8110 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8111 edx = (uint32_t)((int32_t)edx >> 3u); 8112 eax = edx; /* 0x361495F0: mov eax, edx */ 8113 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361495F2: shr eax, 0x1f */ 8114 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8115 eax = eax >> 31u; /* 0x361495F2: shr eax, 0x1f */ 8116 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 8117 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8118 edx = edx + eax; /* 0x361495F5: add edx, eax */ 8119 _flag_k = FK_ADD; 8120 /* cmp edx, 1 */ /* 0x361495F7: cmp edx, 1 */ 8121 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 8122 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8123 _flag_k = FK_CMP; 8124 if (CMP_AE(_flag_a, _flag_b)) goto L_3614964E; /* 0x361495FA: jae 0x3614964e */ 8125 L_361495FC: 8126 edx = edi + 0x14; /* 0x361495FC: lea edx, [edi + 0x14] */ 8127 PUSH32(esp, edx); /* 0x361495FF: push edx */ 8128 PUSH32(esp, ecx); /* 0x36149600: push ecx */ 8129 PUSH32(esp, edi); /* 0x36149601: push edi */ 8130 ecx = esi; /* 0x36149602: mov ecx, esi */ 8131 RECOMP_ICALL(0x36149E20u); /* 0x36149604: call 0x36149e20 */ /* not lifted */ 8132 RECOMP_FLAGS_IN(); 8133 ecx = MEM32(esi + 0x8); /* 0x36149609: mov ecx, dword ptr [esi + 8] */ 8134 eax = ebp + (-0x84); /* 0x3614960C: lea eax, [ebp - 0x84] */ 8135 PUSH32(esp, eax); /* 0x36149612: push eax */ 8136 edx = ecx; /* 0x36149613: mov edx, ecx */ 8137 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 8138 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8139 edx = edx - edi; /* 0x36149615: sub edx, edi */ 8140 _flag_k = FK_CMP; 8141 eax = 0x66666667u; /* 0x36149617: mov eax, 0x66666667 */ 8142 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3614961C: imul edx */ 8143 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 8144 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 8145 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3614961E: sar edx, 3 */ 8146 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8147 edx = (uint32_t)((int32_t)edx >> 3u); 8148 eax = edx; /* 0x36149621: mov eax, edx */ 8149 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149623: shr eax, 0x1f */ 8150 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8151 eax = eax >> 31u; /* 0x36149623: shr eax, 0x1f */ 8152 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 8153 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8154 edx = edx + eax; /* 0x36149626: add edx, eax */ 8155 _flag_k = FK_ADD; 8156 eax = 1; /* 0x36149628: mov eax, 1 */ 8157 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8158 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8159 eax = eax - edx; /* 0x3614962D: sub eax, edx */ 8160 _flag_k = FK_CMP; 8161 PUSH32(esp, eax); /* 0x3614962F: push eax */ 8162 PUSH32(esp, ecx); /* 0x36149630: push ecx */ 8163 ecx = esi; /* 0x36149631: mov ecx, esi */ 8164 RECOMP_ICALL(0x3614A190u); /* 0x36149633: call 0x3614a190 */ /* not lifted */ 8165 RECOMP_FLAGS_IN(); 8166 edx = MEM32(esi + 0x8); /* 0x36149638: mov edx, dword ptr [esi + 8] */ 8167 ecx = ebp + (-0x84); /* 0x3614963B: lea ecx, [ebp - 0x84] */ 8168 PUSH32(esp, ecx); /* 0x36149641: push ecx */ 8169 PUSH32(esp, edx); /* 0x36149642: push edx */ 8170 PUSH32(esp, edi); /* 0x36149643: push edi */ 8171 RECOMP_ICALL(0x3614A2A0u); /* 0x36149644: call 0x3614a2a0 */ /* not lifted */ 8172 RECOMP_FLAGS_IN(); 8173 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8174 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8175 esp = esp + 0xCu; /* 0x36149649: add esp, 0xc */ 8176 _flag_k = FK_ADD; 8177 goto L_3614967D; /* 0x3614964C: jmp 0x3614967d */ 8178 L_3614964E: 8179 PUSH32(esp, ecx); /* 0x3614964E: push ecx */ 8180 PUSH32(esp, ecx); /* 0x3614964F: push ecx */ 8181 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu); 8182 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8183 ecx = ecx + 0xFFFFFFECu; /* 0x36149650: add ecx, -0x14 */ 8184 _flag_k = FK_ADD; 8185 PUSH32(esp, ecx); /* 0x36149653: push ecx */ 8186 ecx = esi; /* 0x36149654: mov ecx, esi */ 8187 RECOMP_ICALL(0x36149E20u); /* 0x36149656: call 0x36149e20 */ /* not lifted */ 8188 RECOMP_FLAGS_IN(); 8189 eax = MEM32(esi + 0x8); /* 0x3614965B: mov eax, dword ptr [esi + 8] */ 8190 PUSH32(esp, eax); /* 0x3614965E: push eax */ 8191 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu); 8192 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8193 eax = eax + 0xFFFFFFECu; /* 0x3614965F: add eax, -0x14 */ 8194 _flag_k = FK_ADD; 8195 PUSH32(esp, eax); /* 0x36149662: push eax */ 8196 PUSH32(esp, edi); /* 0x36149663: push edi */ 8197 RECOMP_ICALL(0x3614A2D0u); /* 0x36149664: call 0x3614a2d0 */ /* not lifted */ 8198 RECOMP_FLAGS_IN(); 8199 eax = ebp + (-0x84); /* 0x36149669: lea eax, [ebp - 0x84] */ 8200 PUSH32(esp, eax); /* 0x3614966F: push eax */ 8201 ecx = edi + 0x14; /* 0x36149670: lea ecx, [edi + 0x14] */ 8202 PUSH32(esp, ecx); /* 0x36149673: push ecx */ 8203 PUSH32(esp, edi); /* 0x36149674: push edi */ 8204 RECOMP_ICALL(0x3614A2A0u); /* 0x36149675: call 0x3614a2a0 */ /* not lifted */ 8205 RECOMP_FLAGS_IN(); 8206 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 8207 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8208 esp = esp + 0x18u; /* 0x3614967A: add esp, 0x18 */ 8209 _flag_k = FK_ADD; 8210 L_3614967D: 8211 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x14u); 8212 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8213 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x14u; /* 0x3614967D: add dword ptr [esi + 8], 0x14 */ 8214 _flag_k = FK_ADD; 8215 L_36149681: 8216 ecx = ebp + (-0x84); /* 0x36149681: lea ecx, [ebp - 0x84] */ 8217 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149687: mov dword ptr [ebp - 4], 0xffffffff */ 8218 RECOMP_ICALL(0x3602F7D0u); /* 0x3614968E: call 0x3602f7d0 */ /* not lifted */ 8219 RECOMP_FLAGS_IN(); 8220 eax = MEM32(ebp + (-0x10)); /* 0x36149693: mov eax, dword ptr [ebp - 0x10] */ 8221 edx = MEM32(ebp + (-0x4C)); /* 0x36149696: mov edx, dword ptr [ebp - 0x4c] */ 8222 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8223 eax = eax + 1; /* 0x36149699: inc eax */ 8224 _flag_k = FK_INC; 8225 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 8226 edx = edx & 0xFFu; /* 0x3614969A: and edx, 0xff */ 8227 _cf = 0; 8228 _flag_k = FK_TEST; 8229 /* cmp eax, edx */ /* 0x361496A0: cmp eax, edx */ 8230 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8231 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8232 _flag_k = FK_CMP; 8233 MEM32(ebp + (-0x10)) = eax; /* 0x361496A2: mov dword ptr [ebp - 0x10], eax */ 8234 RECOMP_BACKEDGE(); 8235 if (CMP_L(_flag_a, _flag_b)) goto L_361494CA; /* 0x361496A5: jl 0x361494ca */ 8236 L_361496AB: 8237 SET_LO8(eax, MEM8(ebp + (-0x50))); /* 0x361496AB: mov al, byte ptr [ebp - 0x50] */ 8238 /* test LO8(eax), LO8(eax) */ /* 0x361496AE: test al, al */ 8239 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8240 _cf = 0; 8241 _flag_k = FK_NARROW(FK_TEST, 24); 8242 MEM32(ebp + (-0x14)) = 0; /* 0x361496B0: mov dword ptr [ebp - 0x14], 0 */ 8243 if (TEST_Z(_flag_a, _flag_b)) goto L_361498AA; /* 0x361496B7: jbe 0x361498aa */ 8244 L_361496BD: 8245 ecx = ebp + (-0xAC); /* 0x361496BD: lea ecx, [ebp - 0xac] */ 8246 RECOMP_ICALL(0x3602F870u); /* 0x361496C3: call 0x3602f870 */ /* not lifted */ 8247 RECOMP_FLAGS_IN(); 8248 ecx = MEM32(ebp + 0x8); /* 0x361496C8: mov ecx, dword ptr [ebp + 8] */ 8249 eax = ebp + (-0xAC); /* 0x361496CB: lea eax, [ebp - 0xac] */ 8250 PUSH32(esp, eax); /* 0x361496D1: push eax */ 8251 PUSH32(esp, ecx); /* 0x361496D2: push ecx */ 8252 MEM32(ebp + (-0x4)) = 1; /* 0x361496D3: mov dword ptr [ebp - 4], 1 */ 8253 RECOMP_ICALL(0x3602F9B0u); /* 0x361496DA: call 0x3602f9b0 */ /* not lifted */ 8254 RECOMP_FLAGS_IN(); 8255 esi = MEM32(ebx + 0x54); /* 0x361496DF: mov esi, dword ptr [ebx + 0x54] */ 8256 ecx = MEM32(esi + 0x8); /* 0x361496E2: mov ecx, dword ptr [esi + 8] */ 8257 edx = MEM32(esi + 0xC); /* 0x361496E5: mov edx, dword ptr [esi + 0xc] */ 8258 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 8259 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8260 edx = edx - ecx; /* 0x361496E8: sub edx, ecx */ 8261 _flag_k = FK_CMP; 8262 MEM32(ebp + (-0x18)) = edx; /* 0x361496EA: mov dword ptr [ebp - 0x18], edx */ 8263 eax = 0x88888889u; /* 0x361496ED: mov eax, 0x88888889 */ 8264 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361496F2: imul edx */ 8265 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 8266 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 8267 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 8268 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8269 edx = edx + MEM32(ebp + (-0x18)); /* 0x361496F4: add edx, dword ptr [ebp - 0x18] */ 8270 _flag_k = FK_ADD; 8271 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361496F7: sar edx, 5 */ 8272 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8273 edx = (uint32_t)((int32_t)edx >> 5u); 8274 eax = edx; /* 0x361496FA: mov eax, edx */ 8275 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361496FC: shr eax, 0x1f */ 8276 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8277 eax = eax >> 31u; /* 0x361496FC: shr eax, 0x1f */ 8278 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 8279 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8280 edx = edx + eax; /* 0x361496FF: add edx, eax */ 8281 _flag_k = FK_ADD; 8282 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8283 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8284 esp = esp + 8; /* 0x36149701: add esp, 8 */ 8285 _flag_k = FK_ADD; 8286 /* cmp edx, 1 */ /* 0x36149704: cmp edx, 1 */ 8287 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 8288 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8289 _flag_k = FK_CMP; 8290 edi = ecx; /* 0x36149707: mov edi, ecx */ 8291 if (CMP_AE(_flag_a, _flag_b)) goto L_361497D8; /* 0x36149709: jae 0x361497d8 */ 8292 L_3614970F: 8293 eax = MEM32(esi + 0x4); /* 0x3614970F: mov eax, dword ptr [esi + 4] */ 8294 /* test eax, eax */ /* 0x36149712: test eax, eax */ 8295 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8296 _cf = 0; 8297 _flag_k = FK_TEST; 8298 if (TEST_Z(_flag_a, _flag_b)) goto L_36149732; /* 0x36149714: je 0x36149732 */ 8299 L_36149716: 8300 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 8301 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8302 ecx = ecx - eax; /* 0x36149716: sub ecx, eax */ 8303 _flag_k = FK_CMP; 8304 eax = 0x88888889u; /* 0x36149718: mov eax, 0x88888889 */ 8305 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3614971D: imul ecx */ 8306 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 8307 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 8308 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 8309 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8310 edx = edx + ecx; /* 0x3614971F: add edx, ecx */ 8311 _flag_k = FK_ADD; 8312 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36149721: sar edx, 5 */ 8313 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8314 edx = (uint32_t)((int32_t)edx >> 5u); 8315 ecx = edx; /* 0x36149724: mov ecx, edx */ 8316 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36149726: shr ecx, 0x1f */ 8317 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8318 ecx = ecx >> 31u; /* 0x36149726: shr ecx, 0x1f */ 8319 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 8320 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8321 edx = edx + ecx; /* 0x36149729: add edx, ecx */ 8322 _flag_k = FK_ADD; 8323 /* cmp edx, 1 */ /* 0x3614972B: cmp edx, 1 */ 8324 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 8325 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8326 _flag_k = FK_CMP; 8327 ebx = edx; /* 0x3614972E: mov ebx, edx */ 8328 if (CMP_A(_flag_a, _flag_b)) goto L_36149737; /* 0x36149730: ja 0x36149737 */ 8329 L_36149732: 8330 ebx = 1; /* 0x36149732: mov ebx, 1 */ 8331 L_36149737: 8332 ecx = esi; /* 0x36149737: mov ecx, esi */ 8333 RECOMP_ICALL(0x36149E90u); /* 0x36149739: call 0x36149e90 */ /* not lifted */ 8334 RECOMP_FLAGS_IN(); 8335 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 8336 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8337 eax = eax + ebx; /* 0x3614973E: add eax, ebx */ 8338 _flag_k = FK_ADD; 8339 MEM32(ebp + (-0x2C)) = eax; /* 0x36149740: mov dword ptr [ebp - 0x2c], eax */ 8340 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149747; /* 0x36149743: jns 0x36149747 */ 8341 L_36149745: 8342 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8343 eax = 0; /* 0x36149745: xor eax, eax */ 8344 _cf = 0; 8345 _flag_k = FK_TEST; 8346 L_36149747: 8347 eax = eax + eax * 2; /* 0x36149747: lea eax, [eax + eax*2] */ 8348 edx = eax + eax * 4; /* 0x3614974A: lea edx, [eax + eax*4] */ 8349 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614974D: shl edx, 2 */ 8350 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8351 edx = edx << 2u; /* 0x3614974D: shl edx, 2 */ 8352 PUSH32(esp, edx); /* 0x36149750: push edx */ 8353 RECOMP_ICALL(0x3615FD6Au); /* 0x36149751: call 0x3615fd6a */ /* not lifted */ 8354 RECOMP_FLAGS_IN(); 8355 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8356 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8357 esp = esp + 4; /* 0x36149756: add esp, 4 */ 8358 _flag_k = FK_ADD; 8359 ebx = eax; /* 0x36149759: mov ebx, eax */ 8360 eax = MEM32(esi + 0x4); /* 0x3614975B: mov eax, dword ptr [esi + 4] */ 8361 PUSH32(esp, ebx); /* 0x3614975E: push ebx */ 8362 PUSH32(esp, edi); /* 0x3614975F: push edi */ 8363 PUSH32(esp, eax); /* 0x36149760: push eax */ 8364 ecx = esi; /* 0x36149761: mov ecx, esi */ 8365 RECOMP_ICALL(0x36149EF0u); /* 0x36149763: call 0x36149ef0 */ /* not lifted */ 8366 RECOMP_FLAGS_IN(); 8367 ecx = ebp + (-0xAC); /* 0x36149768: lea ecx, [ebp - 0xac] */ 8368 PUSH32(esp, ecx); /* 0x3614976E: push ecx */ 8369 PUSH32(esp, 1); /* 0x3614976F: push 1 */ 8370 PUSH32(esp, eax); /* 0x36149771: push eax */ 8371 ecx = esi; /* 0x36149772: mov ecx, esi */ 8372 MEM32(ebp + (-0x18)) = eax; /* 0x36149774: mov dword ptr [ebp - 0x18], eax */ 8373 RECOMP_ICALL(0x3614A1C0u); /* 0x36149777: call 0x3614a1c0 */ /* not lifted */ 8374 RECOMP_FLAGS_IN(); 8375 edx = MEM32(ebp + (-0x18)); /* 0x3614977C: mov edx, dword ptr [ebp - 0x18] */ 8376 eax = MEM32(esi + 0x8); /* 0x3614977F: mov eax, dword ptr [esi + 8] */ 8377 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x3Cu); 8378 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8379 edx = edx + 0x3Cu; /* 0x36149782: add edx, 0x3c */ 8380 _flag_k = FK_ADD; 8381 PUSH32(esp, edx); /* 0x36149785: push edx */ 8382 PUSH32(esp, eax); /* 0x36149786: push eax */ 8383 PUSH32(esp, edi); /* 0x36149787: push edi */ 8384 ecx = esi; /* 0x36149788: mov ecx, esi */ 8385 RECOMP_ICALL(0x36149EF0u); /* 0x3614978A: call 0x36149ef0 */ /* not lifted */ 8386 RECOMP_FLAGS_IN(); 8387 ecx = MEM32(esi + 0x8); /* 0x3614978F: mov ecx, dword ptr [esi + 8] */ 8388 edx = MEM32(esi + 0x4); /* 0x36149792: mov edx, dword ptr [esi + 4] */ 8389 PUSH32(esp, ecx); /* 0x36149795: push ecx */ 8390 PUSH32(esp, edx); /* 0x36149796: push edx */ 8391 ecx = esi; /* 0x36149797: mov ecx, esi */ 8392 RECOMP_ICALL(0x36149EC0u); /* 0x36149799: call 0x36149ec0 */ /* not lifted */ 8393 RECOMP_FLAGS_IN(); 8394 eax = MEM32(esi + 0x4); /* 0x3614979E: mov eax, dword ptr [esi + 4] */ 8395 PUSH32(esp, eax); /* 0x361497A1: push eax */ 8396 RECOMP_ICALL(0x3615FCC4u); /* 0x361497A2: call 0x3615fcc4 */ /* not lifted */ 8397 RECOMP_FLAGS_IN(); 8398 eax = MEM32(ebp + (-0x2C)); /* 0x361497A7: mov eax, dword ptr [ebp - 0x2c] */ 8399 eax = eax + eax * 2; /* 0x361497AA: lea eax, [eax + eax*2] */ 8400 eax = eax + eax * 4; /* 0x361497AD: lea eax, [eax + eax*4] */ 8401 ecx = ebx + eax * 4; /* 0x361497B0: lea ecx, [ebx + eax*4] */ 8402 MEM32(esi + 0xC) = ecx; /* 0x361497B3: mov dword ptr [esi + 0xc], ecx */ 8403 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8404 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8405 esp = esp + 4; /* 0x361497B6: add esp, 4 */ 8406 _flag_k = FK_ADD; 8407 ecx = esi; /* 0x361497B9: mov ecx, esi */ 8408 RECOMP_ICALL(0x36149E90u); /* 0x361497BB: call 0x36149e90 */ /* not lifted */ 8409 RECOMP_FLAGS_IN(); 8410 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8411 eax = eax + 1; /* 0x361497C0: inc eax */ 8412 _flag_k = FK_INC; 8413 eax = eax + eax * 2; /* 0x361497C1: lea eax, [eax + eax*2] */ 8414 edx = eax + eax * 4; /* 0x361497C4: lea edx, [eax + eax*4] */ 8415 eax = ebx + edx * 4; /* 0x361497C7: lea eax, [ebx + edx*4] */ 8416 MEM32(esi + 0x4) = ebx; /* 0x361497CA: mov dword ptr [esi + 4], ebx */ 8417 ebx = MEM32(ebp + 0xC); /* 0x361497CD: mov ebx, dword ptr [ebp + 0xc] */ 8418 MEM32(esi + 0x8) = eax; /* 0x361497D0: mov dword ptr [esi + 8], eax */ 8419 goto L_36149880; /* 0x361497D3: jmp 0x36149880 */ 8420 L_361497D8: 8421 edx = ecx; /* 0x361497D8: mov edx, ecx */ 8422 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 8423 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8424 edx = edx - edi; /* 0x361497DA: sub edx, edi */ 8425 _flag_k = FK_CMP; 8426 MEM32(ebp + (-0x18)) = edx; /* 0x361497DC: mov dword ptr [ebp - 0x18], edx */ 8427 eax = 0x88888889u; /* 0x361497DF: mov eax, 0x88888889 */ 8428 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361497E4: imul edx */ 8429 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 8430 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 8431 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 8432 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8433 edx = edx + MEM32(ebp + (-0x18)); /* 0x361497E6: add edx, dword ptr [ebp - 0x18] */ 8434 _flag_k = FK_ADD; 8435 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361497E9: sar edx, 5 */ 8436 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8437 edx = (uint32_t)((int32_t)edx >> 5u); 8438 eax = edx; /* 0x361497EC: mov eax, edx */ 8439 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361497EE: shr eax, 0x1f */ 8440 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8441 eax = eax >> 31u; /* 0x361497EE: shr eax, 0x1f */ 8442 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 8443 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8444 edx = edx + eax; /* 0x361497F1: add edx, eax */ 8445 _flag_k = FK_ADD; 8446 /* cmp edx, 1 */ /* 0x361497F3: cmp edx, 1 */ 8447 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 8448 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8449 _flag_k = FK_CMP; 8450 if (CMP_AE(_flag_a, _flag_b)) goto L_3614984D; /* 0x361497F6: jae 0x3614984d */ 8451 L_361497F8: 8452 edx = edi + 0x3C; /* 0x361497F8: lea edx, [edi + 0x3c] */ 8453 PUSH32(esp, edx); /* 0x361497FB: push edx */ 8454 PUSH32(esp, ecx); /* 0x361497FC: push ecx */ 8455 PUSH32(esp, edi); /* 0x361497FD: push edi */ 8456 ecx = esi; /* 0x361497FE: mov ecx, esi */ 8457 RECOMP_ICALL(0x36149EF0u); /* 0x36149800: call 0x36149ef0 */ /* not lifted */ 8458 RECOMP_FLAGS_IN(); 8459 ecx = MEM32(esi + 0x8); /* 0x36149805: mov ecx, dword ptr [esi + 8] */ 8460 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 8461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8462 ecx = ecx - edi; /* 0x36149808: sub ecx, edi */ 8463 _flag_k = FK_CMP; 8464 eax = ebp + (-0xAC); /* 0x3614980A: lea eax, [ebp - 0xac] */ 8465 PUSH32(esp, eax); /* 0x36149810: push eax */ 8466 eax = 0x88888889u; /* 0x36149811: mov eax, 0x88888889 */ 8467 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149816: imul ecx */ 8468 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 8469 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 8470 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 8471 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8472 edx = edx + ecx; /* 0x36149818: add edx, ecx */ 8473 _flag_k = FK_ADD; 8474 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x3614981A: sar edx, 5 */ 8475 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8476 edx = (uint32_t)((int32_t)edx >> 5u); 8477 ecx = edx; /* 0x3614981D: mov ecx, edx */ 8478 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614981F: shr ecx, 0x1f */ 8479 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8480 ecx = ecx >> 31u; /* 0x3614981F: shr ecx, 0x1f */ 8481 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 8482 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8483 edx = edx + ecx; /* 0x36149822: add edx, ecx */ 8484 _flag_k = FK_ADD; 8485 eax = 1; /* 0x36149824: mov eax, 1 */ 8486 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8487 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8488 eax = eax - edx; /* 0x36149829: sub eax, edx */ 8489 _flag_k = FK_CMP; 8490 PUSH32(esp, eax); /* 0x3614982B: push eax */ 8491 eax = MEM32(esi + 0x8); /* 0x3614982C: mov eax, dword ptr [esi + 8] */ 8492 PUSH32(esp, eax); /* 0x3614982F: push eax */ 8493 ecx = esi; /* 0x36149830: mov ecx, esi */ 8494 RECOMP_ICALL(0x3614A1C0u); /* 0x36149832: call 0x3614a1c0 */ /* not lifted */ 8495 RECOMP_FLAGS_IN(); 8496 edx = MEM32(esi + 0x8); /* 0x36149837: mov edx, dword ptr [esi + 8] */ 8497 ecx = ebp + (-0xAC); /* 0x3614983A: lea ecx, [ebp - 0xac] */ 8498 PUSH32(esp, ecx); /* 0x36149840: push ecx */ 8499 PUSH32(esp, edx); /* 0x36149841: push edx */ 8500 PUSH32(esp, edi); /* 0x36149842: push edi */ 8501 RECOMP_ICALL(0x3614A360u); /* 0x36149843: call 0x3614a360 */ /* not lifted */ 8502 RECOMP_FLAGS_IN(); 8503 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8504 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8505 esp = esp + 0xCu; /* 0x36149848: add esp, 0xc */ 8506 _flag_k = FK_ADD; 8507 goto L_3614987C; /* 0x3614984B: jmp 0x3614987c */ 8508 L_3614984D: 8509 PUSH32(esp, ecx); /* 0x3614984D: push ecx */ 8510 PUSH32(esp, ecx); /* 0x3614984E: push ecx */ 8511 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC4u); 8512 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8513 ecx = ecx + 0xFFFFFFC4u; /* 0x3614984F: add ecx, -0x3c */ 8514 _flag_k = FK_ADD; 8515 PUSH32(esp, ecx); /* 0x36149852: push ecx */ 8516 ecx = esi; /* 0x36149853: mov ecx, esi */ 8517 RECOMP_ICALL(0x36149EF0u); /* 0x36149855: call 0x36149ef0 */ /* not lifted */ 8518 RECOMP_FLAGS_IN(); 8519 eax = MEM32(esi + 0x8); /* 0x3614985A: mov eax, dword ptr [esi + 8] */ 8520 PUSH32(esp, eax); /* 0x3614985D: push eax */ 8521 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFC4u); 8522 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8523 eax = eax + 0xFFFFFFC4u; /* 0x3614985E: add eax, -0x3c */ 8524 _flag_k = FK_ADD; 8525 PUSH32(esp, eax); /* 0x36149861: push eax */ 8526 PUSH32(esp, edi); /* 0x36149862: push edi */ 8527 RECOMP_ICALL(0x3614A390u); /* 0x36149863: call 0x3614a390 */ /* not lifted */ 8528 RECOMP_FLAGS_IN(); 8529 eax = ebp + (-0xAC); /* 0x36149868: lea eax, [ebp - 0xac] */ 8530 PUSH32(esp, eax); /* 0x3614986E: push eax */ 8531 ecx = edi + 0x3C; /* 0x3614986F: lea ecx, [edi + 0x3c] */ 8532 PUSH32(esp, ecx); /* 0x36149872: push ecx */ 8533 PUSH32(esp, edi); /* 0x36149873: push edi */ 8534 RECOMP_ICALL(0x3614A360u); /* 0x36149874: call 0x3614a360 */ /* not lifted */ 8535 RECOMP_FLAGS_IN(); 8536 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 8537 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8538 esp = esp + 0x18u; /* 0x36149879: add esp, 0x18 */ 8539 _flag_k = FK_ADD; 8540 L_3614987C: 8541 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x3Cu); 8542 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8543 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x3Cu; /* 0x3614987C: add dword ptr [esi + 8], 0x3c */ 8544 _flag_k = FK_ADD; 8545 L_36149880: 8546 ecx = ebp + (-0xAC); /* 0x36149880: lea ecx, [ebp - 0xac] */ 8547 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149886: mov dword ptr [ebp - 4], 0xffffffff */ 8548 RECOMP_ICALL(0x3602F940u); /* 0x3614988D: call 0x3602f940 */ /* not lifted */ 8549 RECOMP_FLAGS_IN(); 8550 eax = MEM32(ebp + (-0x14)); /* 0x36149892: mov eax, dword ptr [ebp - 0x14] */ 8551 edx = MEM32(ebp + (-0x50)); /* 0x36149895: mov edx, dword ptr [ebp - 0x50] */ 8552 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8553 eax = eax + 1; /* 0x36149898: inc eax */ 8554 _flag_k = FK_INC; 8555 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 8556 edx = edx & 0xFFu; /* 0x36149899: and edx, 0xff */ 8557 _cf = 0; 8558 _flag_k = FK_TEST; 8559 /* cmp eax, edx */ /* 0x3614989F: cmp eax, edx */ 8560 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 8561 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8562 _flag_k = FK_CMP; 8563 MEM32(ebp + (-0x14)) = eax; /* 0x361498A1: mov dword ptr [ebp - 0x14], eax */ 8564 RECOMP_BACKEDGE(); 8565 if (CMP_L(_flag_a, _flag_b)) goto L_361496BD; /* 0x361498A4: jl 0x361496bd */ 8566 L_361498AA: 8567 esi = MEM32(ebp + 0x8); /* 0x361498AA: mov esi, dword ptr [ebp + 8] */ 8568 ecx = esi; /* 0x361498AD: mov ecx, esi */ 8569 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361498AF: call dword ptr [0x3616fadc] */ 8570 RECOMP_FLAGS_IN(); 8571 /* test eax, eax */ /* 0x361498B5: test eax, eax */ 8572 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8573 _cf = 0; 8574 _flag_k = FK_TEST; 8575 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498F7; /* 0x361498B7: jne 0x361498f7 */ 8576 L_361498B9: 8577 ebx = MEM32(ebx); /* 0x361498B9: mov ebx, dword ptr [ebx] */ 8578 eax = MEM32(ebx + 0x4); /* 0x361498BB: mov eax, dword ptr [ebx + 4] */ 8579 /* test eax, eax */ /* 0x361498BE: test eax, eax */ 8580 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8581 _cf = 0; 8582 _flag_k = FK_TEST; 8583 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498C7; /* 0x361498C0: jne 0x361498c7 */ 8584 L_361498C2: 8585 eax = MEM32(0x3616F10C); /* 0x361498C2: mov eax, dword ptr [0x3616f10c] */ 8586 L_361498C7: 8587 PUSH32(esp, eax); /* 0x361498C7: push eax */ 8588 PUSH32(esp, 0x362E75FCu); /* 0x361498C8: push 0x362e75fc */ 8589 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361498CD: call dword ptr [0x3616f18c] */ 8590 RECOMP_FLAGS_IN(); 8591 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8592 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8593 esp = esp + 8; /* 0x361498D3: add esp, 8 */ 8594 _flag_k = FK_ADD; 8595 PUSH32(esp, 0x362E75CCu); /* 0x361498D6: push 0x362e75cc */ 8596 ecx = ebp + (-0xB4); /* 0x361498DB: lea ecx, [ebp - 0xb4] */ 8597 RECOMP_ICALL(0x36008EF0u); /* 0x361498E1: call 0x36008ef0 */ /* not lifted */ 8598 RECOMP_FLAGS_IN(); 8599 PUSH32(esp, 0x36184170u); /* 0x361498E6: push 0x36184170 */ 8600 eax = ebp + (-0xB4); /* 0x361498EB: lea eax, [ebp - 0xb4] */ 8601 PUSH32(esp, eax); /* 0x361498F1: push eax */ 8602 RECOMP_ICALL(0x3615FD70u); /* 0x361498F2: call 0x3615fd70 */ /* not lifted */ 8603 RECOMP_FLAGS_IN(); 8604 L_361498F7: 8605 ecx = MEM32(ebp + (-0xC)); /* 0x361498F7: mov ecx, dword ptr [ebp - 0xc] */ 8606 edi = POP32_VAL(esp); /* 0x361498FA: pop edi */ 8607 eax = esi; /* 0x361498FB: mov eax, esi */ 8608 esi = POP32_VAL(esp); /* 0x361498FD: pop esi */ 8609 ebx = POP32_VAL(esp); /* 0x361498FE: pop ebx */ 8610 MEM32(FS_BASE + (0)) = ecx; /* 0x361498FF: mov dword ptr fs:[0], ecx */ 8611 esp = ebp; /* 0x36149906: mov esp, ebp */ 8612 ebp = POP32_VAL(esp); /* 0x36149908: pop ebp */ 8613 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149909: ret */ 8614 RECOMP_REGS_OUT(); 8615 } 8616 8617 void sub_36149348(void) { 8618 int _fpu_cmp = 0; 8619 uint32_t _cf = 0; 8620 int _df = 1; 8621 uint32_t _flag_k = FK_NONE; 8622 uint32_t _flag_a = 0, _flag_b = 0; 8623 uint32_t _itail_tgt = 0; 8624 RECOMP_REGS_LOCALS 8625 RECOMP_ENTER(0x36149348u); 8626 8627 goto L_36149348; 8628 L_361491D9: 8629 ecx = MEM32(ebp + 0x8); /* 0x361491D9: mov ecx, dword ptr [ebp + 8] */ 8630 esi = MEM32(0x3616FAC8); /* 0x361491DC: mov esi, dword ptr [0x3616fac8] */ 8631 eax = ebp + (-0x1E); /* 0x361491E2: lea eax, [ebp - 0x1e] */ 8632 PUSH32(esp, eax); /* 0x361491E5: push eax */ 8633 RECOMP_ICALL(esi); /* 0x361491E6: call esi */ 8634 RECOMP_FLAGS_IN(); 8635 ecx = ebp + (-0x26); /* 0x361491E8: lea ecx, [ebp - 0x26] */ 8636 PUSH32(esp, ecx); /* 0x361491EB: push ecx */ 8637 ecx = eax; /* 0x361491EC: mov ecx, eax */ 8638 RECOMP_ICALL(esi); /* 0x361491EE: call esi */ 8639 RECOMP_FLAGS_IN(); 8640 esi = MEM32(ebx + 0x5C); /* 0x361491F0: mov esi, dword ptr [ebx + 0x5c] */ 8641 eax = MEM32(esi + 0x8); /* 0x361491F3: mov eax, dword ptr [esi + 8] */ 8642 edx = MEM32(esi + 0xC); /* 0x361491F6: mov edx, dword ptr [esi + 0xc] */ 8643 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 8644 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8645 edx = edx - eax; /* 0x361491F9: sub edx, eax */ 8646 _flag_k = FK_CMP; 8647 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x361491FB: sar edx, 1 */ 8648 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8649 edx = (uint32_t)((int32_t)edx >> 1u); 8650 /* cmp edx, 1 */ /* 0x361491FD: cmp edx, 1 */ 8651 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 8652 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8653 _flag_k = FK_CMP; 8654 edi = eax; /* 0x36149200: mov edi, eax */ 8655 if (CMP_AE(_flag_a, _flag_b)) goto L_361492B8; /* 0x36149202: jae 0x361492b8 */ 8656 L_36149208: 8657 ecx = MEM32(esi + 0x4); /* 0x36149208: mov ecx, dword ptr [esi + 4] */ 8658 /* test ecx, ecx */ /* 0x3614920B: test ecx, ecx */ 8659 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8660 _cf = 0; 8661 _flag_k = FK_TEST; 8662 if (TEST_Z(_flag_a, _flag_b)) goto L_36149224; /* 0x3614920D: je 0x36149224 */ 8663 L_3614920F: 8664 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8665 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8666 eax = eax - ecx; /* 0x3614920F: sub eax, ecx */ 8667 _flag_k = FK_CMP; 8668 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149211: sar eax, 1 */ 8669 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8670 eax = (uint32_t)((int32_t)eax >> 1u); 8671 /* cmp eax, 1 */ /* 0x36149213: cmp eax, 1 */ 8672 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8673 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8674 _flag_k = FK_CMP; 8675 if (CMP_BE(_flag_a, _flag_b)) goto L_36149224; /* 0x36149216: jbe 0x36149224 */ 8676 L_36149218: 8677 ecx = esi; /* 0x36149218: mov ecx, esi */ 8678 RECOMP_ICALL(0x36140430u); /* 0x3614921A: call 0x36140430 */ /* not lifted */ 8679 RECOMP_FLAGS_IN(); 8680 MEM32(ebp + (-0x10)) = eax; /* 0x3614921F: mov dword ptr [ebp - 0x10], eax */ 8681 goto L_3614922B; /* 0x36149222: jmp 0x3614922b */ 8682 L_36149224: 8683 MEM32(ebp + (-0x10)) = 1; /* 0x36149224: mov dword ptr [ebp - 0x10], 1 */ 8684 L_3614922B: 8685 ecx = esi; /* 0x3614922B: mov ecx, esi */ 8686 RECOMP_ICALL(0x36140430u); /* 0x3614922D: call 0x36140430 */ /* not lifted */ 8687 RECOMP_FLAGS_IN(); 8688 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 8689 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8690 eax = eax + MEM32(ebp + (-0x10)); /* 0x36149232: add eax, dword ptr [ebp - 0x10] */ 8691 _flag_k = FK_ADD; 8692 MEM32(ebp + (-0x18)) = eax; /* 0x36149235: mov dword ptr [ebp - 0x18], eax */ 8693 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_3614923C; /* 0x36149238: jns 0x3614923c */ 8694 L_3614923A: 8695 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8696 eax = 0; /* 0x3614923A: xor eax, eax */ 8697 _cf = 0; 8698 _flag_k = FK_TEST; 8699 L_3614923C: 8700 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8701 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8702 eax = eax + eax; /* 0x3614923C: add eax, eax */ 8703 _flag_k = FK_ADD; 8704 PUSH32(esp, eax); /* 0x3614923E: push eax */ 8705 RECOMP_ICALL(0x3615FD6Au); /* 0x3614923F: call 0x3615fd6a */ /* not lifted */ 8706 RECOMP_FLAGS_IN(); 8707 ecx = MEM32(esi + 0x4); /* 0x36149244: mov ecx, dword ptr [esi + 4] */ 8708 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8709 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8710 esp = esp + 4; /* 0x36149247: add esp, 4 */ 8711 _flag_k = FK_ADD; 8712 PUSH32(esp, eax); /* 0x3614924A: push eax */ 8713 PUSH32(esp, edi); /* 0x3614924B: push edi */ 8714 PUSH32(esp, ecx); /* 0x3614924C: push ecx */ 8715 ecx = esi; /* 0x3614924D: mov ecx, esi */ 8716 MEM32(ebp + (-0x2C)) = eax; /* 0x3614924F: mov dword ptr [ebp - 0x2c], eax */ 8717 RECOMP_ICALL(0x36140900u); /* 0x36149252: call 0x36140900 */ /* not lifted */ 8718 RECOMP_FLAGS_IN(); 8719 edx = ebp + (-0x1E); /* 0x36149257: lea edx, [ebp - 0x1e] */ 8720 PUSH32(esp, edx); /* 0x3614925A: push edx */ 8721 PUSH32(esp, 1); /* 0x3614925B: push 1 */ 8722 PUSH32(esp, eax); /* 0x3614925D: push eax */ 8723 ecx = esi; /* 0x3614925E: mov ecx, esi */ 8724 MEM32(ebp + (-0x10)) = eax; /* 0x36149260: mov dword ptr [ebp - 0x10], eax */ 8725 RECOMP_ICALL(0x3614A1F0u); /* 0x36149263: call 0x3614a1f0 */ /* not lifted */ 8726 RECOMP_FLAGS_IN(); 8727 eax = MEM32(ebp + (-0x10)); /* 0x36149268: mov eax, dword ptr [ebp - 0x10] */ 8728 ecx = MEM32(esi + 0x8); /* 0x3614926B: mov ecx, dword ptr [esi + 8] */ 8729 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 8730 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8731 eax = eax + 2; /* 0x3614926E: add eax, 2 */ 8732 _flag_k = FK_ADD; 8733 PUSH32(esp, eax); /* 0x36149271: push eax */ 8734 PUSH32(esp, ecx); /* 0x36149272: push ecx */ 8735 PUSH32(esp, edi); /* 0x36149273: push edi */ 8736 ecx = esi; /* 0x36149274: mov ecx, esi */ 8737 RECOMP_ICALL(0x36140900u); /* 0x36149276: call 0x36140900 */ /* not lifted */ 8738 RECOMP_FLAGS_IN(); 8739 edx = MEM32(esi + 0x8); /* 0x3614927B: mov edx, dword ptr [esi + 8] */ 8740 eax = MEM32(esi + 0x4); /* 0x3614927E: mov eax, dword ptr [esi + 4] */ 8741 PUSH32(esp, edx); /* 0x36149281: push edx */ 8742 PUSH32(esp, eax); /* 0x36149282: push eax */ 8743 ecx = esi; /* 0x36149283: mov ecx, esi */ 8744 RECOMP_ICALL(0x3610ED60u); /* 0x36149285: call 0x3610ed60 */ /* not lifted */ 8745 RECOMP_FLAGS_IN(); 8746 eax = MEM32(esi + 0x4); /* 0x3614928A: mov eax, dword ptr [esi + 4] */ 8747 PUSH32(esp, eax); /* 0x3614928D: push eax */ 8748 RECOMP_ICALL(0x3615FCC4u); /* 0x3614928E: call 0x3615fcc4 */ /* not lifted */ 8749 RECOMP_FLAGS_IN(); 8750 ecx = MEM32(ebp + (-0x18)); /* 0x36149293: mov ecx, dword ptr [ebp - 0x18] */ 8751 edi = MEM32(ebp + (-0x2C)); /* 0x36149296: mov edi, dword ptr [ebp - 0x2c] */ 8752 edx = edi + ecx * 2; /* 0x36149299: lea edx, [edi + ecx*2] */ 8753 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8754 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8755 esp = esp + 4; /* 0x3614929C: add esp, 4 */ 8756 _flag_k = FK_ADD; 8757 ecx = esi; /* 0x3614929F: mov ecx, esi */ 8758 MEM32(esi + 0xC) = edx; /* 0x361492A1: mov dword ptr [esi + 0xc], edx */ 8759 RECOMP_ICALL(0x36140430u); /* 0x361492A4: call 0x36140430 */ /* not lifted */ 8760 RECOMP_FLAGS_IN(); 8761 eax = edi + eax * 2 + 0x2; /* 0x361492A9: lea eax, [edi + eax*2 + 2] */ 8762 MEM32(esi + 0x8) = eax; /* 0x361492AD: mov dword ptr [esi + 8], eax */ 8763 MEM32(esi + 0x4) = edi; /* 0x361492B0: mov dword ptr [esi + 4], edi */ 8764 goto L_36149348; /* 0x361492B3: jmp 0x36149348 */ 8765 L_361492B8: 8766 ecx = eax; /* 0x361492B8: mov ecx, eax */ 8767 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 8768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8769 ecx = ecx - edi; /* 0x361492BA: sub ecx, edi */ 8770 _flag_k = FK_CMP; 8771 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492BC: sar ecx, 1 */ 8772 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8773 ecx = (uint32_t)((int32_t)ecx >> 1u); 8774 /* cmp ecx, 1 */ /* 0x361492BE: cmp ecx, 1 */ 8775 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8776 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8777 _flag_k = FK_CMP; 8778 if (CMP_AE(_flag_a, _flag_b)) goto L_36149304; /* 0x361492C1: jae 0x36149304 */ 8779 L_361492C3: 8780 ecx = edi + 0x2; /* 0x361492C3: lea ecx, [edi + 2] */ 8781 PUSH32(esp, ecx); /* 0x361492C6: push ecx */ 8782 PUSH32(esp, eax); /* 0x361492C7: push eax */ 8783 PUSH32(esp, edi); /* 0x361492C8: push edi */ 8784 ecx = esi; /* 0x361492C9: mov ecx, esi */ 8785 RECOMP_ICALL(0x36140900u); /* 0x361492CB: call 0x36140900 */ /* not lifted */ 8786 RECOMP_FLAGS_IN(); 8787 eax = MEM32(esi + 0x8); /* 0x361492D0: mov eax, dword ptr [esi + 8] */ 8788 ecx = eax; /* 0x361492D3: mov ecx, eax */ 8789 edx = ebp + (-0x1E); /* 0x361492D5: lea edx, [ebp - 0x1e] */ 8790 PUSH32(esp, edx); /* 0x361492D8: push edx */ 8791 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 8792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8793 ecx = ecx - edi; /* 0x361492D9: sub ecx, edi */ 8794 _flag_k = FK_CMP; 8795 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492DB: sar ecx, 1 */ 8796 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8797 ecx = (uint32_t)((int32_t)ecx >> 1u); 8798 edx = 1; /* 0x361492DD: mov edx, 1 */ 8799 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 8800 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8801 edx = edx - ecx; /* 0x361492E2: sub edx, ecx */ 8802 _flag_k = FK_CMP; 8803 PUSH32(esp, edx); /* 0x361492E4: push edx */ 8804 PUSH32(esp, eax); /* 0x361492E5: push eax */ 8805 ecx = esi; /* 0x361492E6: mov ecx, esi */ 8806 RECOMP_ICALL(0x3614A1F0u); /* 0x361492E8: call 0x3614a1f0 */ /* not lifted */ 8807 RECOMP_FLAGS_IN(); 8808 eax = MEM32(esi + 0x8); /* 0x361492ED: mov eax, dword ptr [esi + 8] */ 8809 /* cmp edi, eax */ /* 0x361492F0: cmp edi, eax */ 8810 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 8811 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8812 _flag_k = FK_CMP; 8813 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x361492F2: je 0x36149344 */ 8814 L_361492F4: 8815 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x361492F4: mov cx, word ptr [ebp - 0x1e] */ 8816 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x361492F8: mov word ptr [edi], cx */ 8817 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 8818 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8819 edi = edi + 2; /* 0x361492FB: add edi, 2 */ 8820 _flag_k = FK_ADD; 8821 /* cmp edi, eax */ /* 0x361492FE: cmp edi, eax */ 8822 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 8823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8824 _flag_k = FK_CMP; 8825 RECOMP_BACKEDGE(); 8826 if (CMP_NE(_flag_a, _flag_b)) goto L_361492F4; /* 0x36149300: jne 0x361492f4 */ 8827 L_36149302: 8828 goto L_36149344; /* 0x36149302: jmp 0x36149344 */ 8829 L_36149304: 8830 PUSH32(esp, eax); /* 0x36149304: push eax */ 8831 ecx = eax + (-0x2); /* 0x36149305: lea ecx, [eax - 2] */ 8832 PUSH32(esp, eax); /* 0x36149308: push eax */ 8833 MEM32(ebp + (-0x18)) = ecx; /* 0x36149309: mov dword ptr [ebp - 0x18], ecx */ 8834 PUSH32(esp, ecx); /* 0x3614930C: push ecx */ 8835 ecx = esi; /* 0x3614930D: mov ecx, esi */ 8836 RECOMP_ICALL(0x36140900u); /* 0x3614930F: call 0x36140900 */ /* not lifted */ 8837 RECOMP_FLAGS_IN(); 8838 ecx = MEM32(esi + 0x8); /* 0x36149314: mov ecx, dword ptr [esi + 8] */ 8839 eax = ecx + (-0x2); /* 0x36149317: lea eax, [ecx - 2] */ 8840 /* cmp edi, eax */ /* 0x3614931A: cmp edi, eax */ 8841 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 8842 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8843 _flag_k = FK_CMP; 8844 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614932F; /* 0x3614931C: je 0x3614932f */ 8845 L_3614931E: 8846 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x3614931E: mov dx, word ptr [eax - 2] */ 8847 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 8848 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8849 eax = eax - 2; /* 0x36149322: sub eax, 2 */ 8850 _flag_k = FK_CMP; 8851 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 8852 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8853 ecx = ecx - 2; /* 0x36149325: sub ecx, 2 */ 8854 _flag_k = FK_CMP; 8855 /* cmp eax, edi */ /* 0x36149328: cmp eax, edi */ 8856 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 8857 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8858 _flag_k = FK_CMP; 8859 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x3614932A: mov word ptr [ecx], dx */ 8860 RECOMP_BACKEDGE(); 8861 if (CMP_NE(_flag_a, _flag_b)) goto L_3614931E; /* 0x3614932D: jne 0x3614931e */ 8862 L_3614932F: 8863 eax = edi + 0x2; /* 0x3614932F: lea eax, [edi + 2] */ 8864 /* cmp edi, eax */ /* 0x36149332: cmp edi, eax */ 8865 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 8866 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8867 _flag_k = FK_CMP; 8868 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x36149334: je 0x36149344 */ 8869 L_36149336: 8870 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x36149336: mov cx, word ptr [ebp - 0x1e] */ 8871 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x3614933A: mov word ptr [edi], cx */ 8872 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 8873 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8874 edi = edi + 2; /* 0x3614933D: add edi, 2 */ 8875 _flag_k = FK_ADD; 8876 /* cmp edi, eax */ /* 0x36149340: cmp edi, eax */ 8877 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 8878 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8879 _flag_k = FK_CMP; 8880 RECOMP_BACKEDGE(); 8881 if (CMP_NE(_flag_a, _flag_b)) goto L_36149336; /* 0x36149342: jne 0x36149336 */ 8882 L_36149344: 8883 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 8884 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8885 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x36149344: add dword ptr [esi + 8], 2 */ 8886 _flag_k = FK_ADD; 8887 L_36149348: 8888 esi = MEM32(ebx + 0x5C); /* 0x36149348: mov esi, dword ptr [ebx + 0x5c] */ 8889 eax = MEM32(esi + 0x8); /* 0x3614934B: mov eax, dword ptr [esi + 8] */ 8890 edx = MEM32(esi + 0xC); /* 0x3614934E: mov edx, dword ptr [esi + 0xc] */ 8891 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 8892 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8893 edx = edx - eax; /* 0x36149351: sub edx, eax */ 8894 _flag_k = FK_CMP; 8895 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36149353: sar edx, 1 */ 8896 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8897 edx = (uint32_t)((int32_t)edx >> 1u); 8898 /* cmp edx, 1 */ /* 0x36149355: cmp edx, 1 */ 8899 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 8900 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8901 _flag_k = FK_CMP; 8902 edi = eax; /* 0x36149358: mov edi, eax */ 8903 if (CMP_AE(_flag_a, _flag_b)) goto L_36149410; /* 0x3614935A: jae 0x36149410 */ 8904 L_36149360: 8905 ecx = MEM32(esi + 0x4); /* 0x36149360: mov ecx, dword ptr [esi + 4] */ 8906 /* test ecx, ecx */ /* 0x36149363: test ecx, ecx */ 8907 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8908 _cf = 0; 8909 _flag_k = FK_TEST; 8910 if (TEST_Z(_flag_a, _flag_b)) goto L_3614937C; /* 0x36149365: je 0x3614937c */ 8911 L_36149367: 8912 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8913 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8914 eax = eax - ecx; /* 0x36149367: sub eax, ecx */ 8915 _flag_k = FK_CMP; 8916 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149369: sar eax, 1 */ 8917 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8918 eax = (uint32_t)((int32_t)eax >> 1u); 8919 /* cmp eax, 1 */ /* 0x3614936B: cmp eax, 1 */ 8920 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8922 _flag_k = FK_CMP; 8923 if (CMP_BE(_flag_a, _flag_b)) goto L_3614937C; /* 0x3614936E: jbe 0x3614937c */ 8924 L_36149370: 8925 ecx = esi; /* 0x36149370: mov ecx, esi */ 8926 RECOMP_ICALL(0x36140430u); /* 0x36149372: call 0x36140430 */ /* not lifted */ 8927 RECOMP_FLAGS_IN(); 8928 MEM32(ebp + (-0x10)) = eax; /* 0x36149377: mov dword ptr [ebp - 0x10], eax */ 8929 goto L_36149383; /* 0x3614937A: jmp 0x36149383 */ 8930 L_3614937C: 8931 MEM32(ebp + (-0x10)) = 1; /* 0x3614937C: mov dword ptr [ebp - 0x10], 1 */ 8932 L_36149383: 8933 ecx = esi; /* 0x36149383: mov ecx, esi */ 8934 RECOMP_ICALL(0x36140430u); /* 0x36149385: call 0x36140430 */ /* not lifted */ 8935 RECOMP_FLAGS_IN(); 8936 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 8937 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8938 eax = eax + MEM32(ebp + (-0x10)); /* 0x3614938A: add eax, dword ptr [ebp - 0x10] */ 8939 _flag_k = FK_ADD; 8940 MEM32(ebp + (-0x10)) = eax; /* 0x3614938D: mov dword ptr [ebp - 0x10], eax */ 8941 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149394; /* 0x36149390: jns 0x36149394 */ 8942 L_36149392: 8943 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8944 eax = 0; /* 0x36149392: xor eax, eax */ 8945 _cf = 0; 8946 _flag_k = FK_TEST; 8947 L_36149394: 8948 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8949 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8950 eax = eax + eax; /* 0x36149394: add eax, eax */ 8951 _flag_k = FK_ADD; 8952 PUSH32(esp, eax); /* 0x36149396: push eax */ 8953 RECOMP_ICALL(0x3615FD6Au); /* 0x36149397: call 0x3615fd6a */ /* not lifted */ 8954 RECOMP_FLAGS_IN(); 8955 ecx = MEM32(esi + 0x4); /* 0x3614939C: mov ecx, dword ptr [esi + 4] */ 8956 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8957 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8958 esp = esp + 4; /* 0x3614939F: add esp, 4 */ 8959 _flag_k = FK_ADD; 8960 PUSH32(esp, eax); /* 0x361493A2: push eax */ 8961 PUSH32(esp, edi); /* 0x361493A3: push edi */ 8962 PUSH32(esp, ecx); /* 0x361493A4: push ecx */ 8963 ecx = esi; /* 0x361493A5: mov ecx, esi */ 8964 MEM32(ebp + (-0x2C)) = eax; /* 0x361493A7: mov dword ptr [ebp - 0x2c], eax */ 8965 RECOMP_ICALL(0x36140900u); /* 0x361493AA: call 0x36140900 */ /* not lifted */ 8966 RECOMP_FLAGS_IN(); 8967 edx = ebp + (-0x26); /* 0x361493AF: lea edx, [ebp - 0x26] */ 8968 PUSH32(esp, edx); /* 0x361493B2: push edx */ 8969 PUSH32(esp, 1); /* 0x361493B3: push 1 */ 8970 PUSH32(esp, eax); /* 0x361493B5: push eax */ 8971 ecx = esi; /* 0x361493B6: mov ecx, esi */ 8972 MEM32(ebp + (-0x18)) = eax; /* 0x361493B8: mov dword ptr [ebp - 0x18], eax */ 8973 RECOMP_ICALL(0x3614A1F0u); /* 0x361493BB: call 0x3614a1f0 */ /* not lifted */ 8974 RECOMP_FLAGS_IN(); 8975 eax = MEM32(ebp + (-0x18)); /* 0x361493C0: mov eax, dword ptr [ebp - 0x18] */ 8976 ecx = MEM32(esi + 0x8); /* 0x361493C3: mov ecx, dword ptr [esi + 8] */ 8977 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 8978 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8979 eax = eax + 2; /* 0x361493C6: add eax, 2 */ 8980 _flag_k = FK_ADD; 8981 PUSH32(esp, eax); /* 0x361493C9: push eax */ 8982 PUSH32(esp, ecx); /* 0x361493CA: push ecx */ 8983 PUSH32(esp, edi); /* 0x361493CB: push edi */ 8984 ecx = esi; /* 0x361493CC: mov ecx, esi */ 8985 RECOMP_ICALL(0x36140900u); /* 0x361493CE: call 0x36140900 */ /* not lifted */ 8986 RECOMP_FLAGS_IN(); 8987 edx = MEM32(esi + 0x8); /* 0x361493D3: mov edx, dword ptr [esi + 8] */ 8988 eax = MEM32(esi + 0x4); /* 0x361493D6: mov eax, dword ptr [esi + 4] */ 8989 PUSH32(esp, edx); /* 0x361493D9: push edx */ 8990 PUSH32(esp, eax); /* 0x361493DA: push eax */ 8991 ecx = esi; /* 0x361493DB: mov ecx, esi */ 8992 RECOMP_ICALL(0x3610ED60u); /* 0x361493DD: call 0x3610ed60 */ /* not lifted */ 8993 RECOMP_FLAGS_IN(); 8994 eax = MEM32(esi + 0x4); /* 0x361493E2: mov eax, dword ptr [esi + 4] */ 8995 PUSH32(esp, eax); /* 0x361493E5: push eax */ 8996 RECOMP_ICALL(0x3615FCC4u); /* 0x361493E6: call 0x3615fcc4 */ /* not lifted */ 8997 RECOMP_FLAGS_IN(); 8998 ecx = MEM32(ebp + (-0x10)); /* 0x361493EB: mov ecx, dword ptr [ebp - 0x10] */ 8999 edi = MEM32(ebp + (-0x2C)); /* 0x361493EE: mov edi, dword ptr [ebp - 0x2c] */ 9000 edx = edi + ecx * 2; /* 0x361493F1: lea edx, [edi + ecx*2] */ 9001 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9002 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9003 esp = esp + 4; /* 0x361493F4: add esp, 4 */ 9004 _flag_k = FK_ADD; 9005 ecx = esi; /* 0x361493F7: mov ecx, esi */ 9006 MEM32(esi + 0xC) = edx; /* 0x361493F9: mov dword ptr [esi + 0xc], edx */ 9007 RECOMP_ICALL(0x36140430u); /* 0x361493FC: call 0x36140430 */ /* not lifted */ 9008 RECOMP_FLAGS_IN(); 9009 eax = edi + eax * 2 + 0x2; /* 0x36149401: lea eax, [edi + eax*2 + 2] */ 9010 MEM32(esi + 0x8) = eax; /* 0x36149405: mov dword ptr [esi + 8], eax */ 9011 MEM32(esi + 0x4) = edi; /* 0x36149408: mov dword ptr [esi + 4], edi */ 9012 goto L_361494A0; /* 0x3614940B: jmp 0x361494a0 */ 9013 L_36149410: 9014 ecx = eax; /* 0x36149410: mov ecx, eax */ 9015 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 9016 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9017 ecx = ecx - edi; /* 0x36149412: sub ecx, edi */ 9018 _flag_k = FK_CMP; 9019 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149414: sar ecx, 1 */ 9020 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9021 ecx = (uint32_t)((int32_t)ecx >> 1u); 9022 /* cmp ecx, 1 */ /* 0x36149416: cmp ecx, 1 */ 9023 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 9024 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9025 _flag_k = FK_CMP; 9026 if (CMP_AE(_flag_a, _flag_b)) goto L_3614945C; /* 0x36149419: jae 0x3614945c */ 9027 L_3614941B: 9028 ecx = edi + 0x2; /* 0x3614941B: lea ecx, [edi + 2] */ 9029 PUSH32(esp, ecx); /* 0x3614941E: push ecx */ 9030 PUSH32(esp, eax); /* 0x3614941F: push eax */ 9031 PUSH32(esp, edi); /* 0x36149420: push edi */ 9032 ecx = esi; /* 0x36149421: mov ecx, esi */ 9033 RECOMP_ICALL(0x36140900u); /* 0x36149423: call 0x36140900 */ /* not lifted */ 9034 RECOMP_FLAGS_IN(); 9035 eax = MEM32(esi + 0x8); /* 0x36149428: mov eax, dword ptr [esi + 8] */ 9036 ecx = eax; /* 0x3614942B: mov ecx, eax */ 9037 edx = ebp + (-0x26); /* 0x3614942D: lea edx, [ebp - 0x26] */ 9038 PUSH32(esp, edx); /* 0x36149430: push edx */ 9039 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 9040 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9041 ecx = ecx - edi; /* 0x36149431: sub ecx, edi */ 9042 _flag_k = FK_CMP; 9043 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149433: sar ecx, 1 */ 9044 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9045 ecx = (uint32_t)((int32_t)ecx >> 1u); 9046 edx = 1; /* 0x36149435: mov edx, 1 */ 9047 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9048 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9049 edx = edx - ecx; /* 0x3614943A: sub edx, ecx */ 9050 _flag_k = FK_CMP; 9051 PUSH32(esp, edx); /* 0x3614943C: push edx */ 9052 PUSH32(esp, eax); /* 0x3614943D: push eax */ 9053 ecx = esi; /* 0x3614943E: mov ecx, esi */ 9054 RECOMP_ICALL(0x3614A1F0u); /* 0x36149440: call 0x3614a1f0 */ /* not lifted */ 9055 RECOMP_FLAGS_IN(); 9056 eax = MEM32(esi + 0x8); /* 0x36149445: mov eax, dword ptr [esi + 8] */ 9057 /* cmp edi, eax */ /* 0x36149448: cmp edi, eax */ 9058 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9060 _flag_k = FK_CMP; 9061 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614944A: je 0x3614949c */ 9062 L_3614944C: 9063 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614944C: mov cx, word ptr [ebp - 0x26] */ 9064 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149450: mov word ptr [edi], cx */ 9065 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 9066 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9067 edi = edi + 2; /* 0x36149453: add edi, 2 */ 9068 _flag_k = FK_ADD; 9069 /* cmp edi, eax */ /* 0x36149456: cmp edi, eax */ 9070 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9071 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9072 _flag_k = FK_CMP; 9073 RECOMP_BACKEDGE(); 9074 if (CMP_NE(_flag_a, _flag_b)) goto L_3614944C; /* 0x36149458: jne 0x3614944c */ 9075 L_3614945A: 9076 goto L_3614949C; /* 0x3614945A: jmp 0x3614949c */ 9077 L_3614945C: 9078 PUSH32(esp, eax); /* 0x3614945C: push eax */ 9079 ecx = eax + (-0x2); /* 0x3614945D: lea ecx, [eax - 2] */ 9080 PUSH32(esp, eax); /* 0x36149460: push eax */ 9081 MEM32(ebp + (-0x18)) = ecx; /* 0x36149461: mov dword ptr [ebp - 0x18], ecx */ 9082 PUSH32(esp, ecx); /* 0x36149464: push ecx */ 9083 ecx = esi; /* 0x36149465: mov ecx, esi */ 9084 RECOMP_ICALL(0x36140900u); /* 0x36149467: call 0x36140900 */ /* not lifted */ 9085 RECOMP_FLAGS_IN(); 9086 ecx = MEM32(esi + 0x8); /* 0x3614946C: mov ecx, dword ptr [esi + 8] */ 9087 eax = ecx + (-0x2); /* 0x3614946F: lea eax, [ecx - 2] */ 9088 /* cmp edi, eax */ /* 0x36149472: cmp edi, eax */ 9089 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9090 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9091 _flag_k = FK_CMP; 9092 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149487; /* 0x36149474: je 0x36149487 */ 9093 L_36149476: 9094 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x36149476: mov dx, word ptr [eax - 2] */ 9095 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 9096 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9097 eax = eax - 2; /* 0x3614947A: sub eax, 2 */ 9098 _flag_k = FK_CMP; 9099 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 9100 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9101 ecx = ecx - 2; /* 0x3614947D: sub ecx, 2 */ 9102 _flag_k = FK_CMP; 9103 /* cmp eax, edi */ /* 0x36149480: cmp eax, edi */ 9104 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 9105 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9106 _flag_k = FK_CMP; 9107 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x36149482: mov word ptr [ecx], dx */ 9108 RECOMP_BACKEDGE(); 9109 if (CMP_NE(_flag_a, _flag_b)) goto L_36149476; /* 0x36149485: jne 0x36149476 */ 9110 L_36149487: 9111 eax = edi + 0x2; /* 0x36149487: lea eax, [edi + 2] */ 9112 /* cmp edi, eax */ /* 0x3614948A: cmp edi, eax */ 9113 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9114 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9115 _flag_k = FK_CMP; 9116 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614948C: je 0x3614949c */ 9117 L_3614948E: 9118 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614948E: mov cx, word ptr [ebp - 0x26] */ 9119 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149492: mov word ptr [edi], cx */ 9120 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 9121 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9122 edi = edi + 2; /* 0x36149495: add edi, 2 */ 9123 _flag_k = FK_ADD; 9124 /* cmp edi, eax */ /* 0x36149498: cmp edi, eax */ 9125 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9126 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9127 _flag_k = FK_CMP; 9128 RECOMP_BACKEDGE(); 9129 if (CMP_NE(_flag_a, _flag_b)) goto L_3614948E; /* 0x3614949A: jne 0x3614948e */ 9130 L_3614949C: 9131 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 9132 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9133 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x3614949C: add dword ptr [esi + 8], 2 */ 9134 _flag_k = FK_ADD; 9135 L_361494A0: 9136 eax = MEM32(ebp + (-0x14)); /* 0x361494A0: mov eax, dword ptr [ebp - 0x14] */ 9137 edx = MEM32(ebp + (-0x64)); /* 0x361494A3: mov edx, dword ptr [ebp - 0x64] */ 9138 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9139 eax = eax + 1; /* 0x361494A6: inc eax */ 9140 _flag_k = FK_INC; 9141 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 9142 edx = edx & 0xFFu; /* 0x361494A7: and edx, 0xff */ 9143 _cf = 0; 9144 _flag_k = FK_TEST; 9145 /* cmp eax, edx */ /* 0x361494AD: cmp eax, edx */ 9146 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9147 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9148 _flag_k = FK_CMP; 9149 MEM32(ebp + (-0x14)) = eax; /* 0x361494AF: mov dword ptr [ebp - 0x14], eax */ 9150 RECOMP_BACKEDGE(); 9151 if (CMP_B(_flag_a, _flag_b)) goto L_361491D9; /* 0x361494B2: jb 0x361491d9 */ 9152 L_361494B8: 9153 SET_LO8(eax, MEM8(ebp + (-0x4C))); /* 0x361494B8: mov al, byte ptr [ebp - 0x4c] */ 9154 /* test LO8(eax), LO8(eax) */ /* 0x361494BB: test al, al */ 9155 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9156 _cf = 0; 9157 _flag_k = FK_NARROW(FK_TEST, 24); 9158 MEM32(ebp + (-0x10)) = 0; /* 0x361494BD: mov dword ptr [ebp - 0x10], 0 */ 9159 if (TEST_Z(_flag_a, _flag_b)) goto L_361496AB; /* 0x361494C4: jbe 0x361496ab */ 9160 L_361494CA: 9161 ecx = ebp + (-0x84); /* 0x361494CA: lea ecx, [ebp - 0x84] */ 9162 RECOMP_ICALL(0x3602F750u); /* 0x361494D0: call 0x3602f750 */ /* not lifted */ 9163 RECOMP_FLAGS_IN(); 9164 ecx = MEM32(ebp + 0x8); /* 0x361494D5: mov ecx, dword ptr [ebp + 8] */ 9165 eax = ebp + (-0x84); /* 0x361494D8: lea eax, [ebp - 0x84] */ 9166 PUSH32(esp, eax); /* 0x361494DE: push eax */ 9167 PUSH32(esp, ecx); /* 0x361494DF: push ecx */ 9168 MEM32(ebp + (-0x4)) = 0; /* 0x361494E0: mov dword ptr [ebp - 4], 0 */ 9169 RECOMP_ICALL(0x3602F810u); /* 0x361494E7: call 0x3602f810 */ /* not lifted */ 9170 RECOMP_FLAGS_IN(); 9171 esi = MEM32(ebx + 0x50); /* 0x361494EC: mov esi, dword ptr [ebx + 0x50] */ 9172 ecx = MEM32(esi + 0x8); /* 0x361494EF: mov ecx, dword ptr [esi + 8] */ 9173 edx = MEM32(esi + 0xC); /* 0x361494F2: mov edx, dword ptr [esi + 0xc] */ 9174 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9175 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9176 edx = edx - ecx; /* 0x361494F5: sub edx, ecx */ 9177 _flag_k = FK_CMP; 9178 eax = 0x66666667u; /* 0x361494F7: mov eax, 0x66666667 */ 9179 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361494FC: imul edx */ 9180 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9181 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9182 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361494FE: sar edx, 3 */ 9183 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9184 edx = (uint32_t)((int32_t)edx >> 3u); 9185 eax = edx; /* 0x36149501: mov eax, edx */ 9186 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149503: shr eax, 0x1f */ 9187 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9188 eax = eax >> 31u; /* 0x36149503: shr eax, 0x1f */ 9189 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9190 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9191 edx = edx + eax; /* 0x36149506: add edx, eax */ 9192 _flag_k = FK_ADD; 9193 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9194 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9195 esp = esp + 8; /* 0x36149508: add esp, 8 */ 9196 _flag_k = FK_ADD; 9197 /* cmp edx, 1 */ /* 0x3614950B: cmp edx, 1 */ 9198 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 9199 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9200 _flag_k = FK_CMP; 9201 edi = ecx; /* 0x3614950E: mov edi, ecx */ 9202 if (CMP_AE(_flag_a, _flag_b)) goto L_361495E2; /* 0x36149510: jae 0x361495e2 */ 9203 L_36149516: 9204 eax = MEM32(esi + 0x4); /* 0x36149516: mov eax, dword ptr [esi + 4] */ 9205 /* test eax, eax */ /* 0x36149519: test eax, eax */ 9206 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9207 _cf = 0; 9208 _flag_k = FK_TEST; 9209 if (TEST_Z(_flag_a, _flag_b)) goto L_36149541; /* 0x3614951B: je 0x36149541 */ 9210 L_3614951D: 9211 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 9212 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9213 ecx = ecx - eax; /* 0x3614951D: sub ecx, eax */ 9214 _flag_k = FK_CMP; 9215 eax = 0x66666667u; /* 0x3614951F: mov eax, 0x66666667 */ 9216 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149524: imul ecx */ 9217 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9218 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9219 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149526: sar edx, 3 */ 9220 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9221 edx = (uint32_t)((int32_t)edx >> 3u); 9222 ecx = edx; /* 0x36149529: mov ecx, edx */ 9223 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614952B: shr ecx, 0x1f */ 9224 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9225 ecx = ecx >> 31u; /* 0x3614952B: shr ecx, 0x1f */ 9226 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9227 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9228 edx = edx + ecx; /* 0x3614952E: add edx, ecx */ 9229 _flag_k = FK_ADD; 9230 /* cmp edx, 1 */ /* 0x36149530: cmp edx, 1 */ 9231 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 9232 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9233 _flag_k = FK_CMP; 9234 if (CMP_BE(_flag_a, _flag_b)) goto L_36149541; /* 0x36149533: jbe 0x36149541 */ 9235 L_36149535: 9236 ecx = esi; /* 0x36149535: mov ecx, esi */ 9237 RECOMP_ICALL(0x36149DC0u); /* 0x36149537: call 0x36149dc0 */ /* not lifted */ 9238 RECOMP_FLAGS_IN(); 9239 MEM32(ebp + (-0x14)) = eax; /* 0x3614953C: mov dword ptr [ebp - 0x14], eax */ 9240 goto L_36149548; /* 0x3614953F: jmp 0x36149548 */ 9241 L_36149541: 9242 MEM32(ebp + (-0x14)) = 1; /* 0x36149541: mov dword ptr [ebp - 0x14], 1 */ 9243 L_36149548: 9244 ecx = esi; /* 0x36149548: mov ecx, esi */ 9245 RECOMP_ICALL(0x36149DC0u); /* 0x3614954A: call 0x36149dc0 */ /* not lifted */ 9246 RECOMP_FLAGS_IN(); 9247 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 9248 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9249 eax = eax + MEM32(ebp + (-0x14)); /* 0x3614954F: add eax, dword ptr [ebp - 0x14] */ 9250 _flag_k = FK_ADD; 9251 MEM32(ebp + (-0x2C)) = eax; /* 0x36149552: mov dword ptr [ebp - 0x2c], eax */ 9252 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149559; /* 0x36149555: jns 0x36149559 */ 9253 L_36149557: 9254 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9255 eax = 0; /* 0x36149557: xor eax, eax */ 9256 _cf = 0; 9257 _flag_k = FK_TEST; 9258 L_36149559: 9259 edx = eax + eax * 4; /* 0x36149559: lea edx, [eax + eax*4] */ 9260 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614955C: shl edx, 2 */ 9261 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9262 edx = edx << 2u; /* 0x3614955C: shl edx, 2 */ 9263 PUSH32(esp, edx); /* 0x3614955F: push edx */ 9264 RECOMP_ICALL(0x3615FD6Au); /* 0x36149560: call 0x3615fd6a */ /* not lifted */ 9265 RECOMP_FLAGS_IN(); 9266 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9267 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9268 esp = esp + 4; /* 0x36149565: add esp, 4 */ 9269 _flag_k = FK_ADD; 9270 PUSH32(esp, eax); /* 0x36149568: push eax */ 9271 MEM32(ebp + (-0x14)) = eax; /* 0x36149569: mov dword ptr [ebp - 0x14], eax */ 9272 eax = MEM32(esi + 0x4); /* 0x3614956C: mov eax, dword ptr [esi + 4] */ 9273 PUSH32(esp, edi); /* 0x3614956F: push edi */ 9274 PUSH32(esp, eax); /* 0x36149570: push eax */ 9275 ecx = esi; /* 0x36149571: mov ecx, esi */ 9276 RECOMP_ICALL(0x36149E20u); /* 0x36149573: call 0x36149e20 */ /* not lifted */ 9277 RECOMP_FLAGS_IN(); 9278 ecx = ebp + (-0x84); /* 0x36149578: lea ecx, [ebp - 0x84] */ 9279 PUSH32(esp, ecx); /* 0x3614957E: push ecx */ 9280 PUSH32(esp, 1); /* 0x3614957F: push 1 */ 9281 PUSH32(esp, eax); /* 0x36149581: push eax */ 9282 ecx = esi; /* 0x36149582: mov ecx, esi */ 9283 MEM32(ebp + (-0x18)) = eax; /* 0x36149584: mov dword ptr [ebp - 0x18], eax */ 9284 RECOMP_ICALL(0x3614A190u); /* 0x36149587: call 0x3614a190 */ /* not lifted */ 9285 RECOMP_FLAGS_IN(); 9286 edx = MEM32(ebp + (-0x18)); /* 0x3614958C: mov edx, dword ptr [ebp - 0x18] */ 9287 eax = MEM32(esi + 0x8); /* 0x3614958F: mov eax, dword ptr [esi + 8] */ 9288 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u); 9289 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9290 edx = edx + 0x14u; /* 0x36149592: add edx, 0x14 */ 9291 _flag_k = FK_ADD; 9292 PUSH32(esp, edx); /* 0x36149595: push edx */ 9293 PUSH32(esp, eax); /* 0x36149596: push eax */ 9294 PUSH32(esp, edi); /* 0x36149597: push edi */ 9295 ecx = esi; /* 0x36149598: mov ecx, esi */ 9296 RECOMP_ICALL(0x36149E20u); /* 0x3614959A: call 0x36149e20 */ /* not lifted */ 9297 RECOMP_FLAGS_IN(); 9298 ecx = MEM32(esi + 0x8); /* 0x3614959F: mov ecx, dword ptr [esi + 8] */ 9299 edx = MEM32(esi + 0x4); /* 0x361495A2: mov edx, dword ptr [esi + 4] */ 9300 PUSH32(esp, ecx); /* 0x361495A5: push ecx */ 9301 PUSH32(esp, edx); /* 0x361495A6: push edx */ 9302 ecx = esi; /* 0x361495A7: mov ecx, esi */ 9303 RECOMP_ICALL(0x36149DF0u); /* 0x361495A9: call 0x36149df0 */ /* not lifted */ 9304 RECOMP_FLAGS_IN(); 9305 eax = MEM32(esi + 0x4); /* 0x361495AE: mov eax, dword ptr [esi + 4] */ 9306 PUSH32(esp, eax); /* 0x361495B1: push eax */ 9307 RECOMP_ICALL(0x3615FCC4u); /* 0x361495B2: call 0x3615fcc4 */ /* not lifted */ 9308 RECOMP_FLAGS_IN(); 9309 eax = MEM32(ebp + (-0x2C)); /* 0x361495B7: mov eax, dword ptr [ebp - 0x2c] */ 9310 edi = MEM32(ebp + (-0x14)); /* 0x361495BA: mov edi, dword ptr [ebp - 0x14] */ 9311 eax = eax + eax * 4; /* 0x361495BD: lea eax, [eax + eax*4] */ 9312 ecx = edi + eax * 4; /* 0x361495C0: lea ecx, [edi + eax*4] */ 9313 MEM32(esi + 0xC) = ecx; /* 0x361495C3: mov dword ptr [esi + 0xc], ecx */ 9314 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9315 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9316 esp = esp + 4; /* 0x361495C6: add esp, 4 */ 9317 _flag_k = FK_ADD; 9318 ecx = esi; /* 0x361495C9: mov ecx, esi */ 9319 RECOMP_ICALL(0x36149DC0u); /* 0x361495CB: call 0x36149dc0 */ /* not lifted */ 9320 RECOMP_FLAGS_IN(); 9321 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9322 eax = eax + 1; /* 0x361495D0: inc eax */ 9323 _flag_k = FK_INC; 9324 edx = eax + eax * 4; /* 0x361495D1: lea edx, [eax + eax*4] */ 9325 eax = edi + edx * 4; /* 0x361495D4: lea eax, [edi + edx*4] */ 9326 MEM32(esi + 0x8) = eax; /* 0x361495D7: mov dword ptr [esi + 8], eax */ 9327 MEM32(esi + 0x4) = edi; /* 0x361495DA: mov dword ptr [esi + 4], edi */ 9328 goto L_36149681; /* 0x361495DD: jmp 0x36149681 */ 9329 L_361495E2: 9330 edx = ecx; /* 0x361495E2: mov edx, ecx */ 9331 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 9332 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9333 edx = edx - edi; /* 0x361495E4: sub edx, edi */ 9334 _flag_k = FK_CMP; 9335 eax = 0x66666667u; /* 0x361495E6: mov eax, 0x66666667 */ 9336 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361495EB: imul edx */ 9337 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9338 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9339 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361495ED: sar edx, 3 */ 9340 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9341 edx = (uint32_t)((int32_t)edx >> 3u); 9342 eax = edx; /* 0x361495F0: mov eax, edx */ 9343 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361495F2: shr eax, 0x1f */ 9344 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9345 eax = eax >> 31u; /* 0x361495F2: shr eax, 0x1f */ 9346 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9347 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9348 edx = edx + eax; /* 0x361495F5: add edx, eax */ 9349 _flag_k = FK_ADD; 9350 /* cmp edx, 1 */ /* 0x361495F7: cmp edx, 1 */ 9351 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 9352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9353 _flag_k = FK_CMP; 9354 if (CMP_AE(_flag_a, _flag_b)) goto L_3614964E; /* 0x361495FA: jae 0x3614964e */ 9355 L_361495FC: 9356 edx = edi + 0x14; /* 0x361495FC: lea edx, [edi + 0x14] */ 9357 PUSH32(esp, edx); /* 0x361495FF: push edx */ 9358 PUSH32(esp, ecx); /* 0x36149600: push ecx */ 9359 PUSH32(esp, edi); /* 0x36149601: push edi */ 9360 ecx = esi; /* 0x36149602: mov ecx, esi */ 9361 RECOMP_ICALL(0x36149E20u); /* 0x36149604: call 0x36149e20 */ /* not lifted */ 9362 RECOMP_FLAGS_IN(); 9363 ecx = MEM32(esi + 0x8); /* 0x36149609: mov ecx, dword ptr [esi + 8] */ 9364 eax = ebp + (-0x84); /* 0x3614960C: lea eax, [ebp - 0x84] */ 9365 PUSH32(esp, eax); /* 0x36149612: push eax */ 9366 edx = ecx; /* 0x36149613: mov edx, ecx */ 9367 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 9368 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9369 edx = edx - edi; /* 0x36149615: sub edx, edi */ 9370 _flag_k = FK_CMP; 9371 eax = 0x66666667u; /* 0x36149617: mov eax, 0x66666667 */ 9372 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3614961C: imul edx */ 9373 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9374 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9375 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3614961E: sar edx, 3 */ 9376 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9377 edx = (uint32_t)((int32_t)edx >> 3u); 9378 eax = edx; /* 0x36149621: mov eax, edx */ 9379 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149623: shr eax, 0x1f */ 9380 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9381 eax = eax >> 31u; /* 0x36149623: shr eax, 0x1f */ 9382 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9383 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9384 edx = edx + eax; /* 0x36149626: add edx, eax */ 9385 _flag_k = FK_ADD; 9386 eax = 1; /* 0x36149628: mov eax, 1 */ 9387 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9388 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9389 eax = eax - edx; /* 0x3614962D: sub eax, edx */ 9390 _flag_k = FK_CMP; 9391 PUSH32(esp, eax); /* 0x3614962F: push eax */ 9392 PUSH32(esp, ecx); /* 0x36149630: push ecx */ 9393 ecx = esi; /* 0x36149631: mov ecx, esi */ 9394 RECOMP_ICALL(0x3614A190u); /* 0x36149633: call 0x3614a190 */ /* not lifted */ 9395 RECOMP_FLAGS_IN(); 9396 edx = MEM32(esi + 0x8); /* 0x36149638: mov edx, dword ptr [esi + 8] */ 9397 ecx = ebp + (-0x84); /* 0x3614963B: lea ecx, [ebp - 0x84] */ 9398 PUSH32(esp, ecx); /* 0x36149641: push ecx */ 9399 PUSH32(esp, edx); /* 0x36149642: push edx */ 9400 PUSH32(esp, edi); /* 0x36149643: push edi */ 9401 RECOMP_ICALL(0x3614A2A0u); /* 0x36149644: call 0x3614a2a0 */ /* not lifted */ 9402 RECOMP_FLAGS_IN(); 9403 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 9404 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9405 esp = esp + 0xCu; /* 0x36149649: add esp, 0xc */ 9406 _flag_k = FK_ADD; 9407 goto L_3614967D; /* 0x3614964C: jmp 0x3614967d */ 9408 L_3614964E: 9409 PUSH32(esp, ecx); /* 0x3614964E: push ecx */ 9410 PUSH32(esp, ecx); /* 0x3614964F: push ecx */ 9411 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu); 9412 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9413 ecx = ecx + 0xFFFFFFECu; /* 0x36149650: add ecx, -0x14 */ 9414 _flag_k = FK_ADD; 9415 PUSH32(esp, ecx); /* 0x36149653: push ecx */ 9416 ecx = esi; /* 0x36149654: mov ecx, esi */ 9417 RECOMP_ICALL(0x36149E20u); /* 0x36149656: call 0x36149e20 */ /* not lifted */ 9418 RECOMP_FLAGS_IN(); 9419 eax = MEM32(esi + 0x8); /* 0x3614965B: mov eax, dword ptr [esi + 8] */ 9420 PUSH32(esp, eax); /* 0x3614965E: push eax */ 9421 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu); 9422 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9423 eax = eax + 0xFFFFFFECu; /* 0x3614965F: add eax, -0x14 */ 9424 _flag_k = FK_ADD; 9425 PUSH32(esp, eax); /* 0x36149662: push eax */ 9426 PUSH32(esp, edi); /* 0x36149663: push edi */ 9427 RECOMP_ICALL(0x3614A2D0u); /* 0x36149664: call 0x3614a2d0 */ /* not lifted */ 9428 RECOMP_FLAGS_IN(); 9429 eax = ebp + (-0x84); /* 0x36149669: lea eax, [ebp - 0x84] */ 9430 PUSH32(esp, eax); /* 0x3614966F: push eax */ 9431 ecx = edi + 0x14; /* 0x36149670: lea ecx, [edi + 0x14] */ 9432 PUSH32(esp, ecx); /* 0x36149673: push ecx */ 9433 PUSH32(esp, edi); /* 0x36149674: push edi */ 9434 RECOMP_ICALL(0x3614A2A0u); /* 0x36149675: call 0x3614a2a0 */ /* not lifted */ 9435 RECOMP_FLAGS_IN(); 9436 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 9437 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9438 esp = esp + 0x18u; /* 0x3614967A: add esp, 0x18 */ 9439 _flag_k = FK_ADD; 9440 L_3614967D: 9441 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x14u); 9442 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9443 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x14u; /* 0x3614967D: add dword ptr [esi + 8], 0x14 */ 9444 _flag_k = FK_ADD; 9445 L_36149681: 9446 ecx = ebp + (-0x84); /* 0x36149681: lea ecx, [ebp - 0x84] */ 9447 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149687: mov dword ptr [ebp - 4], 0xffffffff */ 9448 RECOMP_ICALL(0x3602F7D0u); /* 0x3614968E: call 0x3602f7d0 */ /* not lifted */ 9449 RECOMP_FLAGS_IN(); 9450 eax = MEM32(ebp + (-0x10)); /* 0x36149693: mov eax, dword ptr [ebp - 0x10] */ 9451 edx = MEM32(ebp + (-0x4C)); /* 0x36149696: mov edx, dword ptr [ebp - 0x4c] */ 9452 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9453 eax = eax + 1; /* 0x36149699: inc eax */ 9454 _flag_k = FK_INC; 9455 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 9456 edx = edx & 0xFFu; /* 0x3614969A: and edx, 0xff */ 9457 _cf = 0; 9458 _flag_k = FK_TEST; 9459 /* cmp eax, edx */ /* 0x361496A0: cmp eax, edx */ 9460 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9462 _flag_k = FK_CMP; 9463 MEM32(ebp + (-0x10)) = eax; /* 0x361496A2: mov dword ptr [ebp - 0x10], eax */ 9464 RECOMP_BACKEDGE(); 9465 if (CMP_L(_flag_a, _flag_b)) goto L_361494CA; /* 0x361496A5: jl 0x361494ca */ 9466 L_361496AB: 9467 SET_LO8(eax, MEM8(ebp + (-0x50))); /* 0x361496AB: mov al, byte ptr [ebp - 0x50] */ 9468 /* test LO8(eax), LO8(eax) */ /* 0x361496AE: test al, al */ 9469 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9470 _cf = 0; 9471 _flag_k = FK_NARROW(FK_TEST, 24); 9472 MEM32(ebp + (-0x14)) = 0; /* 0x361496B0: mov dword ptr [ebp - 0x14], 0 */ 9473 if (TEST_Z(_flag_a, _flag_b)) goto L_361498AA; /* 0x361496B7: jbe 0x361498aa */ 9474 L_361496BD: 9475 ecx = ebp + (-0xAC); /* 0x361496BD: lea ecx, [ebp - 0xac] */ 9476 RECOMP_ICALL(0x3602F870u); /* 0x361496C3: call 0x3602f870 */ /* not lifted */ 9477 RECOMP_FLAGS_IN(); 9478 ecx = MEM32(ebp + 0x8); /* 0x361496C8: mov ecx, dword ptr [ebp + 8] */ 9479 eax = ebp + (-0xAC); /* 0x361496CB: lea eax, [ebp - 0xac] */ 9480 PUSH32(esp, eax); /* 0x361496D1: push eax */ 9481 PUSH32(esp, ecx); /* 0x361496D2: push ecx */ 9482 MEM32(ebp + (-0x4)) = 1; /* 0x361496D3: mov dword ptr [ebp - 4], 1 */ 9483 RECOMP_ICALL(0x3602F9B0u); /* 0x361496DA: call 0x3602f9b0 */ /* not lifted */ 9484 RECOMP_FLAGS_IN(); 9485 esi = MEM32(ebx + 0x54); /* 0x361496DF: mov esi, dword ptr [ebx + 0x54] */ 9486 ecx = MEM32(esi + 0x8); /* 0x361496E2: mov ecx, dword ptr [esi + 8] */ 9487 edx = MEM32(esi + 0xC); /* 0x361496E5: mov edx, dword ptr [esi + 0xc] */ 9488 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9489 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9490 edx = edx - ecx; /* 0x361496E8: sub edx, ecx */ 9491 _flag_k = FK_CMP; 9492 MEM32(ebp + (-0x18)) = edx; /* 0x361496EA: mov dword ptr [ebp - 0x18], edx */ 9493 eax = 0x88888889u; /* 0x361496ED: mov eax, 0x88888889 */ 9494 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361496F2: imul edx */ 9495 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9496 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9497 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 9498 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9499 edx = edx + MEM32(ebp + (-0x18)); /* 0x361496F4: add edx, dword ptr [ebp - 0x18] */ 9500 _flag_k = FK_ADD; 9501 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361496F7: sar edx, 5 */ 9502 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9503 edx = (uint32_t)((int32_t)edx >> 5u); 9504 eax = edx; /* 0x361496FA: mov eax, edx */ 9505 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361496FC: shr eax, 0x1f */ 9506 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9507 eax = eax >> 31u; /* 0x361496FC: shr eax, 0x1f */ 9508 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9509 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9510 edx = edx + eax; /* 0x361496FF: add edx, eax */ 9511 _flag_k = FK_ADD; 9512 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9513 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9514 esp = esp + 8; /* 0x36149701: add esp, 8 */ 9515 _flag_k = FK_ADD; 9516 /* cmp edx, 1 */ /* 0x36149704: cmp edx, 1 */ 9517 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 9518 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9519 _flag_k = FK_CMP; 9520 edi = ecx; /* 0x36149707: mov edi, ecx */ 9521 if (CMP_AE(_flag_a, _flag_b)) goto L_361497D8; /* 0x36149709: jae 0x361497d8 */ 9522 L_3614970F: 9523 eax = MEM32(esi + 0x4); /* 0x3614970F: mov eax, dword ptr [esi + 4] */ 9524 /* test eax, eax */ /* 0x36149712: test eax, eax */ 9525 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9526 _cf = 0; 9527 _flag_k = FK_TEST; 9528 if (TEST_Z(_flag_a, _flag_b)) goto L_36149732; /* 0x36149714: je 0x36149732 */ 9529 L_36149716: 9530 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 9531 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9532 ecx = ecx - eax; /* 0x36149716: sub ecx, eax */ 9533 _flag_k = FK_CMP; 9534 eax = 0x88888889u; /* 0x36149718: mov eax, 0x88888889 */ 9535 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3614971D: imul ecx */ 9536 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9537 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9538 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9539 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9540 edx = edx + ecx; /* 0x3614971F: add edx, ecx */ 9541 _flag_k = FK_ADD; 9542 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36149721: sar edx, 5 */ 9543 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9544 edx = (uint32_t)((int32_t)edx >> 5u); 9545 ecx = edx; /* 0x36149724: mov ecx, edx */ 9546 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36149726: shr ecx, 0x1f */ 9547 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9548 ecx = ecx >> 31u; /* 0x36149726: shr ecx, 0x1f */ 9549 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9550 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9551 edx = edx + ecx; /* 0x36149729: add edx, ecx */ 9552 _flag_k = FK_ADD; 9553 /* cmp edx, 1 */ /* 0x3614972B: cmp edx, 1 */ 9554 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 9555 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9556 _flag_k = FK_CMP; 9557 ebx = edx; /* 0x3614972E: mov ebx, edx */ 9558 if (CMP_A(_flag_a, _flag_b)) goto L_36149737; /* 0x36149730: ja 0x36149737 */ 9559 L_36149732: 9560 ebx = 1; /* 0x36149732: mov ebx, 1 */ 9561 L_36149737: 9562 ecx = esi; /* 0x36149737: mov ecx, esi */ 9563 RECOMP_ICALL(0x36149E90u); /* 0x36149739: call 0x36149e90 */ /* not lifted */ 9564 RECOMP_FLAGS_IN(); 9565 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 9566 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9567 eax = eax + ebx; /* 0x3614973E: add eax, ebx */ 9568 _flag_k = FK_ADD; 9569 MEM32(ebp + (-0x2C)) = eax; /* 0x36149740: mov dword ptr [ebp - 0x2c], eax */ 9570 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149747; /* 0x36149743: jns 0x36149747 */ 9571 L_36149745: 9572 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9573 eax = 0; /* 0x36149745: xor eax, eax */ 9574 _cf = 0; 9575 _flag_k = FK_TEST; 9576 L_36149747: 9577 eax = eax + eax * 2; /* 0x36149747: lea eax, [eax + eax*2] */ 9578 edx = eax + eax * 4; /* 0x3614974A: lea edx, [eax + eax*4] */ 9579 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614974D: shl edx, 2 */ 9580 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9581 edx = edx << 2u; /* 0x3614974D: shl edx, 2 */ 9582 PUSH32(esp, edx); /* 0x36149750: push edx */ 9583 RECOMP_ICALL(0x3615FD6Au); /* 0x36149751: call 0x3615fd6a */ /* not lifted */ 9584 RECOMP_FLAGS_IN(); 9585 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9586 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9587 esp = esp + 4; /* 0x36149756: add esp, 4 */ 9588 _flag_k = FK_ADD; 9589 ebx = eax; /* 0x36149759: mov ebx, eax */ 9590 eax = MEM32(esi + 0x4); /* 0x3614975B: mov eax, dword ptr [esi + 4] */ 9591 PUSH32(esp, ebx); /* 0x3614975E: push ebx */ 9592 PUSH32(esp, edi); /* 0x3614975F: push edi */ 9593 PUSH32(esp, eax); /* 0x36149760: push eax */ 9594 ecx = esi; /* 0x36149761: mov ecx, esi */ 9595 RECOMP_ICALL(0x36149EF0u); /* 0x36149763: call 0x36149ef0 */ /* not lifted */ 9596 RECOMP_FLAGS_IN(); 9597 ecx = ebp + (-0xAC); /* 0x36149768: lea ecx, [ebp - 0xac] */ 9598 PUSH32(esp, ecx); /* 0x3614976E: push ecx */ 9599 PUSH32(esp, 1); /* 0x3614976F: push 1 */ 9600 PUSH32(esp, eax); /* 0x36149771: push eax */ 9601 ecx = esi; /* 0x36149772: mov ecx, esi */ 9602 MEM32(ebp + (-0x18)) = eax; /* 0x36149774: mov dword ptr [ebp - 0x18], eax */ 9603 RECOMP_ICALL(0x3614A1C0u); /* 0x36149777: call 0x3614a1c0 */ /* not lifted */ 9604 RECOMP_FLAGS_IN(); 9605 edx = MEM32(ebp + (-0x18)); /* 0x3614977C: mov edx, dword ptr [ebp - 0x18] */ 9606 eax = MEM32(esi + 0x8); /* 0x3614977F: mov eax, dword ptr [esi + 8] */ 9607 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x3Cu); 9608 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9609 edx = edx + 0x3Cu; /* 0x36149782: add edx, 0x3c */ 9610 _flag_k = FK_ADD; 9611 PUSH32(esp, edx); /* 0x36149785: push edx */ 9612 PUSH32(esp, eax); /* 0x36149786: push eax */ 9613 PUSH32(esp, edi); /* 0x36149787: push edi */ 9614 ecx = esi; /* 0x36149788: mov ecx, esi */ 9615 RECOMP_ICALL(0x36149EF0u); /* 0x3614978A: call 0x36149ef0 */ /* not lifted */ 9616 RECOMP_FLAGS_IN(); 9617 ecx = MEM32(esi + 0x8); /* 0x3614978F: mov ecx, dword ptr [esi + 8] */ 9618 edx = MEM32(esi + 0x4); /* 0x36149792: mov edx, dword ptr [esi + 4] */ 9619 PUSH32(esp, ecx); /* 0x36149795: push ecx */ 9620 PUSH32(esp, edx); /* 0x36149796: push edx */ 9621 ecx = esi; /* 0x36149797: mov ecx, esi */ 9622 RECOMP_ICALL(0x36149EC0u); /* 0x36149799: call 0x36149ec0 */ /* not lifted */ 9623 RECOMP_FLAGS_IN(); 9624 eax = MEM32(esi + 0x4); /* 0x3614979E: mov eax, dword ptr [esi + 4] */ 9625 PUSH32(esp, eax); /* 0x361497A1: push eax */ 9626 RECOMP_ICALL(0x3615FCC4u); /* 0x361497A2: call 0x3615fcc4 */ /* not lifted */ 9627 RECOMP_FLAGS_IN(); 9628 eax = MEM32(ebp + (-0x2C)); /* 0x361497A7: mov eax, dword ptr [ebp - 0x2c] */ 9629 eax = eax + eax * 2; /* 0x361497AA: lea eax, [eax + eax*2] */ 9630 eax = eax + eax * 4; /* 0x361497AD: lea eax, [eax + eax*4] */ 9631 ecx = ebx + eax * 4; /* 0x361497B0: lea ecx, [ebx + eax*4] */ 9632 MEM32(esi + 0xC) = ecx; /* 0x361497B3: mov dword ptr [esi + 0xc], ecx */ 9633 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9634 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9635 esp = esp + 4; /* 0x361497B6: add esp, 4 */ 9636 _flag_k = FK_ADD; 9637 ecx = esi; /* 0x361497B9: mov ecx, esi */ 9638 RECOMP_ICALL(0x36149E90u); /* 0x361497BB: call 0x36149e90 */ /* not lifted */ 9639 RECOMP_FLAGS_IN(); 9640 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9641 eax = eax + 1; /* 0x361497C0: inc eax */ 9642 _flag_k = FK_INC; 9643 eax = eax + eax * 2; /* 0x361497C1: lea eax, [eax + eax*2] */ 9644 edx = eax + eax * 4; /* 0x361497C4: lea edx, [eax + eax*4] */ 9645 eax = ebx + edx * 4; /* 0x361497C7: lea eax, [ebx + edx*4] */ 9646 MEM32(esi + 0x4) = ebx; /* 0x361497CA: mov dword ptr [esi + 4], ebx */ 9647 ebx = MEM32(ebp + 0xC); /* 0x361497CD: mov ebx, dword ptr [ebp + 0xc] */ 9648 MEM32(esi + 0x8) = eax; /* 0x361497D0: mov dword ptr [esi + 8], eax */ 9649 goto L_36149880; /* 0x361497D3: jmp 0x36149880 */ 9650 L_361497D8: 9651 edx = ecx; /* 0x361497D8: mov edx, ecx */ 9652 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 9653 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9654 edx = edx - edi; /* 0x361497DA: sub edx, edi */ 9655 _flag_k = FK_CMP; 9656 MEM32(ebp + (-0x18)) = edx; /* 0x361497DC: mov dword ptr [ebp - 0x18], edx */ 9657 eax = 0x88888889u; /* 0x361497DF: mov eax, 0x88888889 */ 9658 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361497E4: imul edx */ 9659 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9660 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9661 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 9662 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9663 edx = edx + MEM32(ebp + (-0x18)); /* 0x361497E6: add edx, dword ptr [ebp - 0x18] */ 9664 _flag_k = FK_ADD; 9665 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361497E9: sar edx, 5 */ 9666 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9667 edx = (uint32_t)((int32_t)edx >> 5u); 9668 eax = edx; /* 0x361497EC: mov eax, edx */ 9669 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361497EE: shr eax, 0x1f */ 9670 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9671 eax = eax >> 31u; /* 0x361497EE: shr eax, 0x1f */ 9672 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9673 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9674 edx = edx + eax; /* 0x361497F1: add edx, eax */ 9675 _flag_k = FK_ADD; 9676 /* cmp edx, 1 */ /* 0x361497F3: cmp edx, 1 */ 9677 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 9678 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9679 _flag_k = FK_CMP; 9680 if (CMP_AE(_flag_a, _flag_b)) goto L_3614984D; /* 0x361497F6: jae 0x3614984d */ 9681 L_361497F8: 9682 edx = edi + 0x3C; /* 0x361497F8: lea edx, [edi + 0x3c] */ 9683 PUSH32(esp, edx); /* 0x361497FB: push edx */ 9684 PUSH32(esp, ecx); /* 0x361497FC: push ecx */ 9685 PUSH32(esp, edi); /* 0x361497FD: push edi */ 9686 ecx = esi; /* 0x361497FE: mov ecx, esi */ 9687 RECOMP_ICALL(0x36149EF0u); /* 0x36149800: call 0x36149ef0 */ /* not lifted */ 9688 RECOMP_FLAGS_IN(); 9689 ecx = MEM32(esi + 0x8); /* 0x36149805: mov ecx, dword ptr [esi + 8] */ 9690 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 9691 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9692 ecx = ecx - edi; /* 0x36149808: sub ecx, edi */ 9693 _flag_k = FK_CMP; 9694 eax = ebp + (-0xAC); /* 0x3614980A: lea eax, [ebp - 0xac] */ 9695 PUSH32(esp, eax); /* 0x36149810: push eax */ 9696 eax = 0x88888889u; /* 0x36149811: mov eax, 0x88888889 */ 9697 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149816: imul ecx */ 9698 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9699 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9700 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9701 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9702 edx = edx + ecx; /* 0x36149818: add edx, ecx */ 9703 _flag_k = FK_ADD; 9704 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x3614981A: sar edx, 5 */ 9705 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9706 edx = (uint32_t)((int32_t)edx >> 5u); 9707 ecx = edx; /* 0x3614981D: mov ecx, edx */ 9708 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614981F: shr ecx, 0x1f */ 9709 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9710 ecx = ecx >> 31u; /* 0x3614981F: shr ecx, 0x1f */ 9711 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9712 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9713 edx = edx + ecx; /* 0x36149822: add edx, ecx */ 9714 _flag_k = FK_ADD; 9715 eax = 1; /* 0x36149824: mov eax, 1 */ 9716 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9717 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9718 eax = eax - edx; /* 0x36149829: sub eax, edx */ 9719 _flag_k = FK_CMP; 9720 PUSH32(esp, eax); /* 0x3614982B: push eax */ 9721 eax = MEM32(esi + 0x8); /* 0x3614982C: mov eax, dword ptr [esi + 8] */ 9722 PUSH32(esp, eax); /* 0x3614982F: push eax */ 9723 ecx = esi; /* 0x36149830: mov ecx, esi */ 9724 RECOMP_ICALL(0x3614A1C0u); /* 0x36149832: call 0x3614a1c0 */ /* not lifted */ 9725 RECOMP_FLAGS_IN(); 9726 edx = MEM32(esi + 0x8); /* 0x36149837: mov edx, dword ptr [esi + 8] */ 9727 ecx = ebp + (-0xAC); /* 0x3614983A: lea ecx, [ebp - 0xac] */ 9728 PUSH32(esp, ecx); /* 0x36149840: push ecx */ 9729 PUSH32(esp, edx); /* 0x36149841: push edx */ 9730 PUSH32(esp, edi); /* 0x36149842: push edi */ 9731 RECOMP_ICALL(0x3614A360u); /* 0x36149843: call 0x3614a360 */ /* not lifted */ 9732 RECOMP_FLAGS_IN(); 9733 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 9734 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9735 esp = esp + 0xCu; /* 0x36149848: add esp, 0xc */ 9736 _flag_k = FK_ADD; 9737 goto L_3614987C; /* 0x3614984B: jmp 0x3614987c */ 9738 L_3614984D: 9739 PUSH32(esp, ecx); /* 0x3614984D: push ecx */ 9740 PUSH32(esp, ecx); /* 0x3614984E: push ecx */ 9741 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC4u); 9742 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9743 ecx = ecx + 0xFFFFFFC4u; /* 0x3614984F: add ecx, -0x3c */ 9744 _flag_k = FK_ADD; 9745 PUSH32(esp, ecx); /* 0x36149852: push ecx */ 9746 ecx = esi; /* 0x36149853: mov ecx, esi */ 9747 RECOMP_ICALL(0x36149EF0u); /* 0x36149855: call 0x36149ef0 */ /* not lifted */ 9748 RECOMP_FLAGS_IN(); 9749 eax = MEM32(esi + 0x8); /* 0x3614985A: mov eax, dword ptr [esi + 8] */ 9750 PUSH32(esp, eax); /* 0x3614985D: push eax */ 9751 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFC4u); 9752 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9753 eax = eax + 0xFFFFFFC4u; /* 0x3614985E: add eax, -0x3c */ 9754 _flag_k = FK_ADD; 9755 PUSH32(esp, eax); /* 0x36149861: push eax */ 9756 PUSH32(esp, edi); /* 0x36149862: push edi */ 9757 RECOMP_ICALL(0x3614A390u); /* 0x36149863: call 0x3614a390 */ /* not lifted */ 9758 RECOMP_FLAGS_IN(); 9759 eax = ebp + (-0xAC); /* 0x36149868: lea eax, [ebp - 0xac] */ 9760 PUSH32(esp, eax); /* 0x3614986E: push eax */ 9761 ecx = edi + 0x3C; /* 0x3614986F: lea ecx, [edi + 0x3c] */ 9762 PUSH32(esp, ecx); /* 0x36149872: push ecx */ 9763 PUSH32(esp, edi); /* 0x36149873: push edi */ 9764 RECOMP_ICALL(0x3614A360u); /* 0x36149874: call 0x3614a360 */ /* not lifted */ 9765 RECOMP_FLAGS_IN(); 9766 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 9767 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9768 esp = esp + 0x18u; /* 0x36149879: add esp, 0x18 */ 9769 _flag_k = FK_ADD; 9770 L_3614987C: 9771 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x3Cu); 9772 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9773 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x3Cu; /* 0x3614987C: add dword ptr [esi + 8], 0x3c */ 9774 _flag_k = FK_ADD; 9775 L_36149880: 9776 ecx = ebp + (-0xAC); /* 0x36149880: lea ecx, [ebp - 0xac] */ 9777 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149886: mov dword ptr [ebp - 4], 0xffffffff */ 9778 RECOMP_ICALL(0x3602F940u); /* 0x3614988D: call 0x3602f940 */ /* not lifted */ 9779 RECOMP_FLAGS_IN(); 9780 eax = MEM32(ebp + (-0x14)); /* 0x36149892: mov eax, dword ptr [ebp - 0x14] */ 9781 edx = MEM32(ebp + (-0x50)); /* 0x36149895: mov edx, dword ptr [ebp - 0x50] */ 9782 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9783 eax = eax + 1; /* 0x36149898: inc eax */ 9784 _flag_k = FK_INC; 9785 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 9786 edx = edx & 0xFFu; /* 0x36149899: and edx, 0xff */ 9787 _cf = 0; 9788 _flag_k = FK_TEST; 9789 /* cmp eax, edx */ /* 0x3614989F: cmp eax, edx */ 9790 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9791 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9792 _flag_k = FK_CMP; 9793 MEM32(ebp + (-0x14)) = eax; /* 0x361498A1: mov dword ptr [ebp - 0x14], eax */ 9794 RECOMP_BACKEDGE(); 9795 if (CMP_L(_flag_a, _flag_b)) goto L_361496BD; /* 0x361498A4: jl 0x361496bd */ 9796 L_361498AA: 9797 esi = MEM32(ebp + 0x8); /* 0x361498AA: mov esi, dword ptr [ebp + 8] */ 9798 ecx = esi; /* 0x361498AD: mov ecx, esi */ 9799 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361498AF: call dword ptr [0x3616fadc] */ 9800 RECOMP_FLAGS_IN(); 9801 /* test eax, eax */ /* 0x361498B5: test eax, eax */ 9802 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9803 _cf = 0; 9804 _flag_k = FK_TEST; 9805 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498F7; /* 0x361498B7: jne 0x361498f7 */ 9806 L_361498B9: 9807 ebx = MEM32(ebx); /* 0x361498B9: mov ebx, dword ptr [ebx] */ 9808 eax = MEM32(ebx + 0x4); /* 0x361498BB: mov eax, dword ptr [ebx + 4] */ 9809 /* test eax, eax */ /* 0x361498BE: test eax, eax */ 9810 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9811 _cf = 0; 9812 _flag_k = FK_TEST; 9813 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498C7; /* 0x361498C0: jne 0x361498c7 */ 9814 L_361498C2: 9815 eax = MEM32(0x3616F10C); /* 0x361498C2: mov eax, dword ptr [0x3616f10c] */ 9816 L_361498C7: 9817 PUSH32(esp, eax); /* 0x361498C7: push eax */ 9818 PUSH32(esp, 0x362E75FCu); /* 0x361498C8: push 0x362e75fc */ 9819 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361498CD: call dword ptr [0x3616f18c] */ 9820 RECOMP_FLAGS_IN(); 9821 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9822 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9823 esp = esp + 8; /* 0x361498D3: add esp, 8 */ 9824 _flag_k = FK_ADD; 9825 PUSH32(esp, 0x362E75CCu); /* 0x361498D6: push 0x362e75cc */ 9826 ecx = ebp + (-0xB4); /* 0x361498DB: lea ecx, [ebp - 0xb4] */ 9827 RECOMP_ICALL(0x36008EF0u); /* 0x361498E1: call 0x36008ef0 */ /* not lifted */ 9828 RECOMP_FLAGS_IN(); 9829 PUSH32(esp, 0x36184170u); /* 0x361498E6: push 0x36184170 */ 9830 eax = ebp + (-0xB4); /* 0x361498EB: lea eax, [ebp - 0xb4] */ 9831 PUSH32(esp, eax); /* 0x361498F1: push eax */ 9832 RECOMP_ICALL(0x3615FD70u); /* 0x361498F2: call 0x3615fd70 */ /* not lifted */ 9833 RECOMP_FLAGS_IN(); 9834 L_361498F7: 9835 ecx = MEM32(ebp + (-0xC)); /* 0x361498F7: mov ecx, dword ptr [ebp - 0xc] */ 9836 edi = POP32_VAL(esp); /* 0x361498FA: pop edi */ 9837 eax = esi; /* 0x361498FB: mov eax, esi */ 9838 esi = POP32_VAL(esp); /* 0x361498FD: pop esi */ 9839 ebx = POP32_VAL(esp); /* 0x361498FE: pop ebx */ 9840 MEM32(FS_BASE + (0)) = ecx; /* 0x361498FF: mov dword ptr fs:[0], ecx */ 9841 esp = ebp; /* 0x36149906: mov esp, ebp */ 9842 ebp = POP32_VAL(esp); /* 0x36149908: pop ebp */ 9843 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149909: ret */ 9844 RECOMP_REGS_OUT(); 9845 } 9846 9847 void sub_36149383(void) { 9848 int _fpu_cmp = 0; 9849 uint32_t _cf = 0; 9850 int _df = 1; 9851 uint32_t _flag_k = FK_NONE; 9852 uint32_t _flag_a = 0, _flag_b = 0; 9853 uint32_t _itail_tgt = 0; 9854 RECOMP_REGS_LOCALS 9855 RECOMP_ENTER(0x36149383u); 9856 9857 goto L_36149383; 9858 L_361491D9: 9859 ecx = MEM32(ebp + 0x8); /* 0x361491D9: mov ecx, dword ptr [ebp + 8] */ 9860 esi = MEM32(0x3616FAC8); /* 0x361491DC: mov esi, dword ptr [0x3616fac8] */ 9861 eax = ebp + (-0x1E); /* 0x361491E2: lea eax, [ebp - 0x1e] */ 9862 PUSH32(esp, eax); /* 0x361491E5: push eax */ 9863 RECOMP_ICALL(esi); /* 0x361491E6: call esi */ 9864 RECOMP_FLAGS_IN(); 9865 ecx = ebp + (-0x26); /* 0x361491E8: lea ecx, [ebp - 0x26] */ 9866 PUSH32(esp, ecx); /* 0x361491EB: push ecx */ 9867 ecx = eax; /* 0x361491EC: mov ecx, eax */ 9868 RECOMP_ICALL(esi); /* 0x361491EE: call esi */ 9869 RECOMP_FLAGS_IN(); 9870 esi = MEM32(ebx + 0x5C); /* 0x361491F0: mov esi, dword ptr [ebx + 0x5c] */ 9871 eax = MEM32(esi + 0x8); /* 0x361491F3: mov eax, dword ptr [esi + 8] */ 9872 edx = MEM32(esi + 0xC); /* 0x361491F6: mov edx, dword ptr [esi + 0xc] */ 9873 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9874 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9875 edx = edx - eax; /* 0x361491F9: sub edx, eax */ 9876 _flag_k = FK_CMP; 9877 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x361491FB: sar edx, 1 */ 9878 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9879 edx = (uint32_t)((int32_t)edx >> 1u); 9880 /* cmp edx, 1 */ /* 0x361491FD: cmp edx, 1 */ 9881 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 9882 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9883 _flag_k = FK_CMP; 9884 edi = eax; /* 0x36149200: mov edi, eax */ 9885 if (CMP_AE(_flag_a, _flag_b)) goto L_361492B8; /* 0x36149202: jae 0x361492b8 */ 9886 L_36149208: 9887 ecx = MEM32(esi + 0x4); /* 0x36149208: mov ecx, dword ptr [esi + 4] */ 9888 /* test ecx, ecx */ /* 0x3614920B: test ecx, ecx */ 9889 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9890 _cf = 0; 9891 _flag_k = FK_TEST; 9892 if (TEST_Z(_flag_a, _flag_b)) goto L_36149224; /* 0x3614920D: je 0x36149224 */ 9893 L_3614920F: 9894 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9896 eax = eax - ecx; /* 0x3614920F: sub eax, ecx */ 9897 _flag_k = FK_CMP; 9898 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149211: sar eax, 1 */ 9899 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9900 eax = (uint32_t)((int32_t)eax >> 1u); 9901 /* cmp eax, 1 */ /* 0x36149213: cmp eax, 1 */ 9902 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9903 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9904 _flag_k = FK_CMP; 9905 if (CMP_BE(_flag_a, _flag_b)) goto L_36149224; /* 0x36149216: jbe 0x36149224 */ 9906 L_36149218: 9907 ecx = esi; /* 0x36149218: mov ecx, esi */ 9908 RECOMP_ICALL(0x36140430u); /* 0x3614921A: call 0x36140430 */ /* not lifted */ 9909 RECOMP_FLAGS_IN(); 9910 MEM32(ebp + (-0x10)) = eax; /* 0x3614921F: mov dword ptr [ebp - 0x10], eax */ 9911 goto L_3614922B; /* 0x36149222: jmp 0x3614922b */ 9912 L_36149224: 9913 MEM32(ebp + (-0x10)) = 1; /* 0x36149224: mov dword ptr [ebp - 0x10], 1 */ 9914 L_3614922B: 9915 ecx = esi; /* 0x3614922B: mov ecx, esi */ 9916 RECOMP_ICALL(0x36140430u); /* 0x3614922D: call 0x36140430 */ /* not lifted */ 9917 RECOMP_FLAGS_IN(); 9918 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 9919 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9920 eax = eax + MEM32(ebp + (-0x10)); /* 0x36149232: add eax, dword ptr [ebp - 0x10] */ 9921 _flag_k = FK_ADD; 9922 MEM32(ebp + (-0x18)) = eax; /* 0x36149235: mov dword ptr [ebp - 0x18], eax */ 9923 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_3614923C; /* 0x36149238: jns 0x3614923c */ 9924 L_3614923A: 9925 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9926 eax = 0; /* 0x3614923A: xor eax, eax */ 9927 _cf = 0; 9928 _flag_k = FK_TEST; 9929 L_3614923C: 9930 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9931 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9932 eax = eax + eax; /* 0x3614923C: add eax, eax */ 9933 _flag_k = FK_ADD; 9934 PUSH32(esp, eax); /* 0x3614923E: push eax */ 9935 RECOMP_ICALL(0x3615FD6Au); /* 0x3614923F: call 0x3615fd6a */ /* not lifted */ 9936 RECOMP_FLAGS_IN(); 9937 ecx = MEM32(esi + 0x4); /* 0x36149244: mov ecx, dword ptr [esi + 4] */ 9938 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9939 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9940 esp = esp + 4; /* 0x36149247: add esp, 4 */ 9941 _flag_k = FK_ADD; 9942 PUSH32(esp, eax); /* 0x3614924A: push eax */ 9943 PUSH32(esp, edi); /* 0x3614924B: push edi */ 9944 PUSH32(esp, ecx); /* 0x3614924C: push ecx */ 9945 ecx = esi; /* 0x3614924D: mov ecx, esi */ 9946 MEM32(ebp + (-0x2C)) = eax; /* 0x3614924F: mov dword ptr [ebp - 0x2c], eax */ 9947 RECOMP_ICALL(0x36140900u); /* 0x36149252: call 0x36140900 */ /* not lifted */ 9948 RECOMP_FLAGS_IN(); 9949 edx = ebp + (-0x1E); /* 0x36149257: lea edx, [ebp - 0x1e] */ 9950 PUSH32(esp, edx); /* 0x3614925A: push edx */ 9951 PUSH32(esp, 1); /* 0x3614925B: push 1 */ 9952 PUSH32(esp, eax); /* 0x3614925D: push eax */ 9953 ecx = esi; /* 0x3614925E: mov ecx, esi */ 9954 MEM32(ebp + (-0x10)) = eax; /* 0x36149260: mov dword ptr [ebp - 0x10], eax */ 9955 RECOMP_ICALL(0x3614A1F0u); /* 0x36149263: call 0x3614a1f0 */ /* not lifted */ 9956 RECOMP_FLAGS_IN(); 9957 eax = MEM32(ebp + (-0x10)); /* 0x36149268: mov eax, dword ptr [ebp - 0x10] */ 9958 ecx = MEM32(esi + 0x8); /* 0x3614926B: mov ecx, dword ptr [esi + 8] */ 9959 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 9960 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9961 eax = eax + 2; /* 0x3614926E: add eax, 2 */ 9962 _flag_k = FK_ADD; 9963 PUSH32(esp, eax); /* 0x36149271: push eax */ 9964 PUSH32(esp, ecx); /* 0x36149272: push ecx */ 9965 PUSH32(esp, edi); /* 0x36149273: push edi */ 9966 ecx = esi; /* 0x36149274: mov ecx, esi */ 9967 RECOMP_ICALL(0x36140900u); /* 0x36149276: call 0x36140900 */ /* not lifted */ 9968 RECOMP_FLAGS_IN(); 9969 edx = MEM32(esi + 0x8); /* 0x3614927B: mov edx, dword ptr [esi + 8] */ 9970 eax = MEM32(esi + 0x4); /* 0x3614927E: mov eax, dword ptr [esi + 4] */ 9971 PUSH32(esp, edx); /* 0x36149281: push edx */ 9972 PUSH32(esp, eax); /* 0x36149282: push eax */ 9973 ecx = esi; /* 0x36149283: mov ecx, esi */ 9974 RECOMP_ICALL(0x3610ED60u); /* 0x36149285: call 0x3610ed60 */ /* not lifted */ 9975 RECOMP_FLAGS_IN(); 9976 eax = MEM32(esi + 0x4); /* 0x3614928A: mov eax, dword ptr [esi + 4] */ 9977 PUSH32(esp, eax); /* 0x3614928D: push eax */ 9978 RECOMP_ICALL(0x3615FCC4u); /* 0x3614928E: call 0x3615fcc4 */ /* not lifted */ 9979 RECOMP_FLAGS_IN(); 9980 ecx = MEM32(ebp + (-0x18)); /* 0x36149293: mov ecx, dword ptr [ebp - 0x18] */ 9981 edi = MEM32(ebp + (-0x2C)); /* 0x36149296: mov edi, dword ptr [ebp - 0x2c] */ 9982 edx = edi + ecx * 2; /* 0x36149299: lea edx, [edi + ecx*2] */ 9983 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9984 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9985 esp = esp + 4; /* 0x3614929C: add esp, 4 */ 9986 _flag_k = FK_ADD; 9987 ecx = esi; /* 0x3614929F: mov ecx, esi */ 9988 MEM32(esi + 0xC) = edx; /* 0x361492A1: mov dword ptr [esi + 0xc], edx */ 9989 RECOMP_ICALL(0x36140430u); /* 0x361492A4: call 0x36140430 */ /* not lifted */ 9990 RECOMP_FLAGS_IN(); 9991 eax = edi + eax * 2 + 0x2; /* 0x361492A9: lea eax, [edi + eax*2 + 2] */ 9992 MEM32(esi + 0x8) = eax; /* 0x361492AD: mov dword ptr [esi + 8], eax */ 9993 MEM32(esi + 0x4) = edi; /* 0x361492B0: mov dword ptr [esi + 4], edi */ 9994 goto L_36149348; /* 0x361492B3: jmp 0x36149348 */ 9995 L_361492B8: 9996 ecx = eax; /* 0x361492B8: mov ecx, eax */ 9997 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 9998 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9999 ecx = ecx - edi; /* 0x361492BA: sub ecx, edi */ 10000 _flag_k = FK_CMP; 10001 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492BC: sar ecx, 1 */ 10002 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10003 ecx = (uint32_t)((int32_t)ecx >> 1u); 10004 /* cmp ecx, 1 */ /* 0x361492BE: cmp ecx, 1 */ 10005 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10006 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10007 _flag_k = FK_CMP; 10008 if (CMP_AE(_flag_a, _flag_b)) goto L_36149304; /* 0x361492C1: jae 0x36149304 */ 10009 L_361492C3: 10010 ecx = edi + 0x2; /* 0x361492C3: lea ecx, [edi + 2] */ 10011 PUSH32(esp, ecx); /* 0x361492C6: push ecx */ 10012 PUSH32(esp, eax); /* 0x361492C7: push eax */ 10013 PUSH32(esp, edi); /* 0x361492C8: push edi */ 10014 ecx = esi; /* 0x361492C9: mov ecx, esi */ 10015 RECOMP_ICALL(0x36140900u); /* 0x361492CB: call 0x36140900 */ /* not lifted */ 10016 RECOMP_FLAGS_IN(); 10017 eax = MEM32(esi + 0x8); /* 0x361492D0: mov eax, dword ptr [esi + 8] */ 10018 ecx = eax; /* 0x361492D3: mov ecx, eax */ 10019 edx = ebp + (-0x1E); /* 0x361492D5: lea edx, [ebp - 0x1e] */ 10020 PUSH32(esp, edx); /* 0x361492D8: push edx */ 10021 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 10022 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10023 ecx = ecx - edi; /* 0x361492D9: sub ecx, edi */ 10024 _flag_k = FK_CMP; 10025 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492DB: sar ecx, 1 */ 10026 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10027 ecx = (uint32_t)((int32_t)ecx >> 1u); 10028 edx = 1; /* 0x361492DD: mov edx, 1 */ 10029 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 10030 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10031 edx = edx - ecx; /* 0x361492E2: sub edx, ecx */ 10032 _flag_k = FK_CMP; 10033 PUSH32(esp, edx); /* 0x361492E4: push edx */ 10034 PUSH32(esp, eax); /* 0x361492E5: push eax */ 10035 ecx = esi; /* 0x361492E6: mov ecx, esi */ 10036 RECOMP_ICALL(0x3614A1F0u); /* 0x361492E8: call 0x3614a1f0 */ /* not lifted */ 10037 RECOMP_FLAGS_IN(); 10038 eax = MEM32(esi + 0x8); /* 0x361492ED: mov eax, dword ptr [esi + 8] */ 10039 /* cmp edi, eax */ /* 0x361492F0: cmp edi, eax */ 10040 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10041 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10042 _flag_k = FK_CMP; 10043 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x361492F2: je 0x36149344 */ 10044 L_361492F4: 10045 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x361492F4: mov cx, word ptr [ebp - 0x1e] */ 10046 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x361492F8: mov word ptr [edi], cx */ 10047 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 10048 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10049 edi = edi + 2; /* 0x361492FB: add edi, 2 */ 10050 _flag_k = FK_ADD; 10051 /* cmp edi, eax */ /* 0x361492FE: cmp edi, eax */ 10052 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10053 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10054 _flag_k = FK_CMP; 10055 RECOMP_BACKEDGE(); 10056 if (CMP_NE(_flag_a, _flag_b)) goto L_361492F4; /* 0x36149300: jne 0x361492f4 */ 10057 L_36149302: 10058 goto L_36149344; /* 0x36149302: jmp 0x36149344 */ 10059 L_36149304: 10060 PUSH32(esp, eax); /* 0x36149304: push eax */ 10061 ecx = eax + (-0x2); /* 0x36149305: lea ecx, [eax - 2] */ 10062 PUSH32(esp, eax); /* 0x36149308: push eax */ 10063 MEM32(ebp + (-0x18)) = ecx; /* 0x36149309: mov dword ptr [ebp - 0x18], ecx */ 10064 PUSH32(esp, ecx); /* 0x3614930C: push ecx */ 10065 ecx = esi; /* 0x3614930D: mov ecx, esi */ 10066 RECOMP_ICALL(0x36140900u); /* 0x3614930F: call 0x36140900 */ /* not lifted */ 10067 RECOMP_FLAGS_IN(); 10068 ecx = MEM32(esi + 0x8); /* 0x36149314: mov ecx, dword ptr [esi + 8] */ 10069 eax = ecx + (-0x2); /* 0x36149317: lea eax, [ecx - 2] */ 10070 /* cmp edi, eax */ /* 0x3614931A: cmp edi, eax */ 10071 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10072 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10073 _flag_k = FK_CMP; 10074 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614932F; /* 0x3614931C: je 0x3614932f */ 10075 L_3614931E: 10076 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x3614931E: mov dx, word ptr [eax - 2] */ 10077 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 10078 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10079 eax = eax - 2; /* 0x36149322: sub eax, 2 */ 10080 _flag_k = FK_CMP; 10081 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 10082 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10083 ecx = ecx - 2; /* 0x36149325: sub ecx, 2 */ 10084 _flag_k = FK_CMP; 10085 /* cmp eax, edi */ /* 0x36149328: cmp eax, edi */ 10086 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 10087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10088 _flag_k = FK_CMP; 10089 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x3614932A: mov word ptr [ecx], dx */ 10090 RECOMP_BACKEDGE(); 10091 if (CMP_NE(_flag_a, _flag_b)) goto L_3614931E; /* 0x3614932D: jne 0x3614931e */ 10092 L_3614932F: 10093 eax = edi + 0x2; /* 0x3614932F: lea eax, [edi + 2] */ 10094 /* cmp edi, eax */ /* 0x36149332: cmp edi, eax */ 10095 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10096 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10097 _flag_k = FK_CMP; 10098 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x36149334: je 0x36149344 */ 10099 L_36149336: 10100 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x36149336: mov cx, word ptr [ebp - 0x1e] */ 10101 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x3614933A: mov word ptr [edi], cx */ 10102 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 10103 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10104 edi = edi + 2; /* 0x3614933D: add edi, 2 */ 10105 _flag_k = FK_ADD; 10106 /* cmp edi, eax */ /* 0x36149340: cmp edi, eax */ 10107 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10108 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10109 _flag_k = FK_CMP; 10110 RECOMP_BACKEDGE(); 10111 if (CMP_NE(_flag_a, _flag_b)) goto L_36149336; /* 0x36149342: jne 0x36149336 */ 10112 L_36149344: 10113 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 10114 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10115 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x36149344: add dword ptr [esi + 8], 2 */ 10116 _flag_k = FK_ADD; 10117 L_36149348: 10118 esi = MEM32(ebx + 0x5C); /* 0x36149348: mov esi, dword ptr [ebx + 0x5c] */ 10119 eax = MEM32(esi + 0x8); /* 0x3614934B: mov eax, dword ptr [esi + 8] */ 10120 edx = MEM32(esi + 0xC); /* 0x3614934E: mov edx, dword ptr [esi + 0xc] */ 10121 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 10122 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10123 edx = edx - eax; /* 0x36149351: sub edx, eax */ 10124 _flag_k = FK_CMP; 10125 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36149353: sar edx, 1 */ 10126 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10127 edx = (uint32_t)((int32_t)edx >> 1u); 10128 /* cmp edx, 1 */ /* 0x36149355: cmp edx, 1 */ 10129 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 10130 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10131 _flag_k = FK_CMP; 10132 edi = eax; /* 0x36149358: mov edi, eax */ 10133 if (CMP_AE(_flag_a, _flag_b)) goto L_36149410; /* 0x3614935A: jae 0x36149410 */ 10134 L_36149360: 10135 ecx = MEM32(esi + 0x4); /* 0x36149360: mov ecx, dword ptr [esi + 4] */ 10136 /* test ecx, ecx */ /* 0x36149363: test ecx, ecx */ 10137 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 10138 _cf = 0; 10139 _flag_k = FK_TEST; 10140 if (TEST_Z(_flag_a, _flag_b)) goto L_3614937C; /* 0x36149365: je 0x3614937c */ 10141 L_36149367: 10142 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10143 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10144 eax = eax - ecx; /* 0x36149367: sub eax, ecx */ 10145 _flag_k = FK_CMP; 10146 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149369: sar eax, 1 */ 10147 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10148 eax = (uint32_t)((int32_t)eax >> 1u); 10149 /* cmp eax, 1 */ /* 0x3614936B: cmp eax, 1 */ 10150 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10151 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10152 _flag_k = FK_CMP; 10153 if (CMP_BE(_flag_a, _flag_b)) goto L_3614937C; /* 0x3614936E: jbe 0x3614937c */ 10154 L_36149370: 10155 ecx = esi; /* 0x36149370: mov ecx, esi */ 10156 RECOMP_ICALL(0x36140430u); /* 0x36149372: call 0x36140430 */ /* not lifted */ 10157 RECOMP_FLAGS_IN(); 10158 MEM32(ebp + (-0x10)) = eax; /* 0x36149377: mov dword ptr [ebp - 0x10], eax */ 10159 goto L_36149383; /* 0x3614937A: jmp 0x36149383 */ 10160 L_3614937C: 10161 MEM32(ebp + (-0x10)) = 1; /* 0x3614937C: mov dword ptr [ebp - 0x10], 1 */ 10162 L_36149383: 10163 ecx = esi; /* 0x36149383: mov ecx, esi */ 10164 RECOMP_ICALL(0x36140430u); /* 0x36149385: call 0x36140430 */ /* not lifted */ 10165 RECOMP_FLAGS_IN(); 10166 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 10167 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10168 eax = eax + MEM32(ebp + (-0x10)); /* 0x3614938A: add eax, dword ptr [ebp - 0x10] */ 10169 _flag_k = FK_ADD; 10170 MEM32(ebp + (-0x10)) = eax; /* 0x3614938D: mov dword ptr [ebp - 0x10], eax */ 10171 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149394; /* 0x36149390: jns 0x36149394 */ 10172 L_36149392: 10173 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10174 eax = 0; /* 0x36149392: xor eax, eax */ 10175 _cf = 0; 10176 _flag_k = FK_TEST; 10177 L_36149394: 10178 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10179 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10180 eax = eax + eax; /* 0x36149394: add eax, eax */ 10181 _flag_k = FK_ADD; 10182 PUSH32(esp, eax); /* 0x36149396: push eax */ 10183 RECOMP_ICALL(0x3615FD6Au); /* 0x36149397: call 0x3615fd6a */ /* not lifted */ 10184 RECOMP_FLAGS_IN(); 10185 ecx = MEM32(esi + 0x4); /* 0x3614939C: mov ecx, dword ptr [esi + 4] */ 10186 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10187 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10188 esp = esp + 4; /* 0x3614939F: add esp, 4 */ 10189 _flag_k = FK_ADD; 10190 PUSH32(esp, eax); /* 0x361493A2: push eax */ 10191 PUSH32(esp, edi); /* 0x361493A3: push edi */ 10192 PUSH32(esp, ecx); /* 0x361493A4: push ecx */ 10193 ecx = esi; /* 0x361493A5: mov ecx, esi */ 10194 MEM32(ebp + (-0x2C)) = eax; /* 0x361493A7: mov dword ptr [ebp - 0x2c], eax */ 10195 RECOMP_ICALL(0x36140900u); /* 0x361493AA: call 0x36140900 */ /* not lifted */ 10196 RECOMP_FLAGS_IN(); 10197 edx = ebp + (-0x26); /* 0x361493AF: lea edx, [ebp - 0x26] */ 10198 PUSH32(esp, edx); /* 0x361493B2: push edx */ 10199 PUSH32(esp, 1); /* 0x361493B3: push 1 */ 10200 PUSH32(esp, eax); /* 0x361493B5: push eax */ 10201 ecx = esi; /* 0x361493B6: mov ecx, esi */ 10202 MEM32(ebp + (-0x18)) = eax; /* 0x361493B8: mov dword ptr [ebp - 0x18], eax */ 10203 RECOMP_ICALL(0x3614A1F0u); /* 0x361493BB: call 0x3614a1f0 */ /* not lifted */ 10204 RECOMP_FLAGS_IN(); 10205 eax = MEM32(ebp + (-0x18)); /* 0x361493C0: mov eax, dword ptr [ebp - 0x18] */ 10206 ecx = MEM32(esi + 0x8); /* 0x361493C3: mov ecx, dword ptr [esi + 8] */ 10207 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 10208 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10209 eax = eax + 2; /* 0x361493C6: add eax, 2 */ 10210 _flag_k = FK_ADD; 10211 PUSH32(esp, eax); /* 0x361493C9: push eax */ 10212 PUSH32(esp, ecx); /* 0x361493CA: push ecx */ 10213 PUSH32(esp, edi); /* 0x361493CB: push edi */ 10214 ecx = esi; /* 0x361493CC: mov ecx, esi */ 10215 RECOMP_ICALL(0x36140900u); /* 0x361493CE: call 0x36140900 */ /* not lifted */ 10216 RECOMP_FLAGS_IN(); 10217 edx = MEM32(esi + 0x8); /* 0x361493D3: mov edx, dword ptr [esi + 8] */ 10218 eax = MEM32(esi + 0x4); /* 0x361493D6: mov eax, dword ptr [esi + 4] */ 10219 PUSH32(esp, edx); /* 0x361493D9: push edx */ 10220 PUSH32(esp, eax); /* 0x361493DA: push eax */ 10221 ecx = esi; /* 0x361493DB: mov ecx, esi */ 10222 RECOMP_ICALL(0x3610ED60u); /* 0x361493DD: call 0x3610ed60 */ /* not lifted */ 10223 RECOMP_FLAGS_IN(); 10224 eax = MEM32(esi + 0x4); /* 0x361493E2: mov eax, dword ptr [esi + 4] */ 10225 PUSH32(esp, eax); /* 0x361493E5: push eax */ 10226 RECOMP_ICALL(0x3615FCC4u); /* 0x361493E6: call 0x3615fcc4 */ /* not lifted */ 10227 RECOMP_FLAGS_IN(); 10228 ecx = MEM32(ebp + (-0x10)); /* 0x361493EB: mov ecx, dword ptr [ebp - 0x10] */ 10229 edi = MEM32(ebp + (-0x2C)); /* 0x361493EE: mov edi, dword ptr [ebp - 0x2c] */ 10230 edx = edi + ecx * 2; /* 0x361493F1: lea edx, [edi + ecx*2] */ 10231 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10232 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10233 esp = esp + 4; /* 0x361493F4: add esp, 4 */ 10234 _flag_k = FK_ADD; 10235 ecx = esi; /* 0x361493F7: mov ecx, esi */ 10236 MEM32(esi + 0xC) = edx; /* 0x361493F9: mov dword ptr [esi + 0xc], edx */ 10237 RECOMP_ICALL(0x36140430u); /* 0x361493FC: call 0x36140430 */ /* not lifted */ 10238 RECOMP_FLAGS_IN(); 10239 eax = edi + eax * 2 + 0x2; /* 0x36149401: lea eax, [edi + eax*2 + 2] */ 10240 MEM32(esi + 0x8) = eax; /* 0x36149405: mov dword ptr [esi + 8], eax */ 10241 MEM32(esi + 0x4) = edi; /* 0x36149408: mov dword ptr [esi + 4], edi */ 10242 goto L_361494A0; /* 0x3614940B: jmp 0x361494a0 */ 10243 L_36149410: 10244 ecx = eax; /* 0x36149410: mov ecx, eax */ 10245 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 10246 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10247 ecx = ecx - edi; /* 0x36149412: sub ecx, edi */ 10248 _flag_k = FK_CMP; 10249 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149414: sar ecx, 1 */ 10250 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10251 ecx = (uint32_t)((int32_t)ecx >> 1u); 10252 /* cmp ecx, 1 */ /* 0x36149416: cmp ecx, 1 */ 10253 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10254 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10255 _flag_k = FK_CMP; 10256 if (CMP_AE(_flag_a, _flag_b)) goto L_3614945C; /* 0x36149419: jae 0x3614945c */ 10257 L_3614941B: 10258 ecx = edi + 0x2; /* 0x3614941B: lea ecx, [edi + 2] */ 10259 PUSH32(esp, ecx); /* 0x3614941E: push ecx */ 10260 PUSH32(esp, eax); /* 0x3614941F: push eax */ 10261 PUSH32(esp, edi); /* 0x36149420: push edi */ 10262 ecx = esi; /* 0x36149421: mov ecx, esi */ 10263 RECOMP_ICALL(0x36140900u); /* 0x36149423: call 0x36140900 */ /* not lifted */ 10264 RECOMP_FLAGS_IN(); 10265 eax = MEM32(esi + 0x8); /* 0x36149428: mov eax, dword ptr [esi + 8] */ 10266 ecx = eax; /* 0x3614942B: mov ecx, eax */ 10267 edx = ebp + (-0x26); /* 0x3614942D: lea edx, [ebp - 0x26] */ 10268 PUSH32(esp, edx); /* 0x36149430: push edx */ 10269 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 10270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10271 ecx = ecx - edi; /* 0x36149431: sub ecx, edi */ 10272 _flag_k = FK_CMP; 10273 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149433: sar ecx, 1 */ 10274 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10275 ecx = (uint32_t)((int32_t)ecx >> 1u); 10276 edx = 1; /* 0x36149435: mov edx, 1 */ 10277 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 10278 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10279 edx = edx - ecx; /* 0x3614943A: sub edx, ecx */ 10280 _flag_k = FK_CMP; 10281 PUSH32(esp, edx); /* 0x3614943C: push edx */ 10282 PUSH32(esp, eax); /* 0x3614943D: push eax */ 10283 ecx = esi; /* 0x3614943E: mov ecx, esi */ 10284 RECOMP_ICALL(0x3614A1F0u); /* 0x36149440: call 0x3614a1f0 */ /* not lifted */ 10285 RECOMP_FLAGS_IN(); 10286 eax = MEM32(esi + 0x8); /* 0x36149445: mov eax, dword ptr [esi + 8] */ 10287 /* cmp edi, eax */ /* 0x36149448: cmp edi, eax */ 10288 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10289 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10290 _flag_k = FK_CMP; 10291 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614944A: je 0x3614949c */ 10292 L_3614944C: 10293 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614944C: mov cx, word ptr [ebp - 0x26] */ 10294 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149450: mov word ptr [edi], cx */ 10295 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 10296 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10297 edi = edi + 2; /* 0x36149453: add edi, 2 */ 10298 _flag_k = FK_ADD; 10299 /* cmp edi, eax */ /* 0x36149456: cmp edi, eax */ 10300 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10301 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10302 _flag_k = FK_CMP; 10303 RECOMP_BACKEDGE(); 10304 if (CMP_NE(_flag_a, _flag_b)) goto L_3614944C; /* 0x36149458: jne 0x3614944c */ 10305 L_3614945A: 10306 goto L_3614949C; /* 0x3614945A: jmp 0x3614949c */ 10307 L_3614945C: 10308 PUSH32(esp, eax); /* 0x3614945C: push eax */ 10309 ecx = eax + (-0x2); /* 0x3614945D: lea ecx, [eax - 2] */ 10310 PUSH32(esp, eax); /* 0x36149460: push eax */ 10311 MEM32(ebp + (-0x18)) = ecx; /* 0x36149461: mov dword ptr [ebp - 0x18], ecx */ 10312 PUSH32(esp, ecx); /* 0x36149464: push ecx */ 10313 ecx = esi; /* 0x36149465: mov ecx, esi */ 10314 RECOMP_ICALL(0x36140900u); /* 0x36149467: call 0x36140900 */ /* not lifted */ 10315 RECOMP_FLAGS_IN(); 10316 ecx = MEM32(esi + 0x8); /* 0x3614946C: mov ecx, dword ptr [esi + 8] */ 10317 eax = ecx + (-0x2); /* 0x3614946F: lea eax, [ecx - 2] */ 10318 /* cmp edi, eax */ /* 0x36149472: cmp edi, eax */ 10319 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10320 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10321 _flag_k = FK_CMP; 10322 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149487; /* 0x36149474: je 0x36149487 */ 10323 L_36149476: 10324 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x36149476: mov dx, word ptr [eax - 2] */ 10325 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 10326 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10327 eax = eax - 2; /* 0x3614947A: sub eax, 2 */ 10328 _flag_k = FK_CMP; 10329 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 10330 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10331 ecx = ecx - 2; /* 0x3614947D: sub ecx, 2 */ 10332 _flag_k = FK_CMP; 10333 /* cmp eax, edi */ /* 0x36149480: cmp eax, edi */ 10334 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 10335 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10336 _flag_k = FK_CMP; 10337 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x36149482: mov word ptr [ecx], dx */ 10338 RECOMP_BACKEDGE(); 10339 if (CMP_NE(_flag_a, _flag_b)) goto L_36149476; /* 0x36149485: jne 0x36149476 */ 10340 L_36149487: 10341 eax = edi + 0x2; /* 0x36149487: lea eax, [edi + 2] */ 10342 /* cmp edi, eax */ /* 0x3614948A: cmp edi, eax */ 10343 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10344 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10345 _flag_k = FK_CMP; 10346 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614948C: je 0x3614949c */ 10347 L_3614948E: 10348 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614948E: mov cx, word ptr [ebp - 0x26] */ 10349 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149492: mov word ptr [edi], cx */ 10350 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 10351 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10352 edi = edi + 2; /* 0x36149495: add edi, 2 */ 10353 _flag_k = FK_ADD; 10354 /* cmp edi, eax */ /* 0x36149498: cmp edi, eax */ 10355 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10356 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10357 _flag_k = FK_CMP; 10358 RECOMP_BACKEDGE(); 10359 if (CMP_NE(_flag_a, _flag_b)) goto L_3614948E; /* 0x3614949A: jne 0x3614948e */ 10360 L_3614949C: 10361 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 10362 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10363 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x3614949C: add dword ptr [esi + 8], 2 */ 10364 _flag_k = FK_ADD; 10365 L_361494A0: 10366 eax = MEM32(ebp + (-0x14)); /* 0x361494A0: mov eax, dword ptr [ebp - 0x14] */ 10367 edx = MEM32(ebp + (-0x64)); /* 0x361494A3: mov edx, dword ptr [ebp - 0x64] */ 10368 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10369 eax = eax + 1; /* 0x361494A6: inc eax */ 10370 _flag_k = FK_INC; 10371 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 10372 edx = edx & 0xFFu; /* 0x361494A7: and edx, 0xff */ 10373 _cf = 0; 10374 _flag_k = FK_TEST; 10375 /* cmp eax, edx */ /* 0x361494AD: cmp eax, edx */ 10376 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 10377 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10378 _flag_k = FK_CMP; 10379 MEM32(ebp + (-0x14)) = eax; /* 0x361494AF: mov dword ptr [ebp - 0x14], eax */ 10380 RECOMP_BACKEDGE(); 10381 if (CMP_B(_flag_a, _flag_b)) goto L_361491D9; /* 0x361494B2: jb 0x361491d9 */ 10382 L_361494B8: 10383 SET_LO8(eax, MEM8(ebp + (-0x4C))); /* 0x361494B8: mov al, byte ptr [ebp - 0x4c] */ 10384 /* test LO8(eax), LO8(eax) */ /* 0x361494BB: test al, al */ 10385 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10386 _cf = 0; 10387 _flag_k = FK_NARROW(FK_TEST, 24); 10388 MEM32(ebp + (-0x10)) = 0; /* 0x361494BD: mov dword ptr [ebp - 0x10], 0 */ 10389 if (TEST_Z(_flag_a, _flag_b)) goto L_361496AB; /* 0x361494C4: jbe 0x361496ab */ 10390 L_361494CA: 10391 ecx = ebp + (-0x84); /* 0x361494CA: lea ecx, [ebp - 0x84] */ 10392 RECOMP_ICALL(0x3602F750u); /* 0x361494D0: call 0x3602f750 */ /* not lifted */ 10393 RECOMP_FLAGS_IN(); 10394 ecx = MEM32(ebp + 0x8); /* 0x361494D5: mov ecx, dword ptr [ebp + 8] */ 10395 eax = ebp + (-0x84); /* 0x361494D8: lea eax, [ebp - 0x84] */ 10396 PUSH32(esp, eax); /* 0x361494DE: push eax */ 10397 PUSH32(esp, ecx); /* 0x361494DF: push ecx */ 10398 MEM32(ebp + (-0x4)) = 0; /* 0x361494E0: mov dword ptr [ebp - 4], 0 */ 10399 RECOMP_ICALL(0x3602F810u); /* 0x361494E7: call 0x3602f810 */ /* not lifted */ 10400 RECOMP_FLAGS_IN(); 10401 esi = MEM32(ebx + 0x50); /* 0x361494EC: mov esi, dword ptr [ebx + 0x50] */ 10402 ecx = MEM32(esi + 0x8); /* 0x361494EF: mov ecx, dword ptr [esi + 8] */ 10403 edx = MEM32(esi + 0xC); /* 0x361494F2: mov edx, dword ptr [esi + 0xc] */ 10404 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 10405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10406 edx = edx - ecx; /* 0x361494F5: sub edx, ecx */ 10407 _flag_k = FK_CMP; 10408 eax = 0x66666667u; /* 0x361494F7: mov eax, 0x66666667 */ 10409 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361494FC: imul edx */ 10410 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 10411 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 10412 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361494FE: sar edx, 3 */ 10413 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10414 edx = (uint32_t)((int32_t)edx >> 3u); 10415 eax = edx; /* 0x36149501: mov eax, edx */ 10416 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149503: shr eax, 0x1f */ 10417 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10418 eax = eax >> 31u; /* 0x36149503: shr eax, 0x1f */ 10419 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 10420 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10421 edx = edx + eax; /* 0x36149506: add edx, eax */ 10422 _flag_k = FK_ADD; 10423 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10424 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10425 esp = esp + 8; /* 0x36149508: add esp, 8 */ 10426 _flag_k = FK_ADD; 10427 /* cmp edx, 1 */ /* 0x3614950B: cmp edx, 1 */ 10428 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 10429 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10430 _flag_k = FK_CMP; 10431 edi = ecx; /* 0x3614950E: mov edi, ecx */ 10432 if (CMP_AE(_flag_a, _flag_b)) goto L_361495E2; /* 0x36149510: jae 0x361495e2 */ 10433 L_36149516: 10434 eax = MEM32(esi + 0x4); /* 0x36149516: mov eax, dword ptr [esi + 4] */ 10435 /* test eax, eax */ /* 0x36149519: test eax, eax */ 10436 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10437 _cf = 0; 10438 _flag_k = FK_TEST; 10439 if (TEST_Z(_flag_a, _flag_b)) goto L_36149541; /* 0x3614951B: je 0x36149541 */ 10440 L_3614951D: 10441 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 10442 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10443 ecx = ecx - eax; /* 0x3614951D: sub ecx, eax */ 10444 _flag_k = FK_CMP; 10445 eax = 0x66666667u; /* 0x3614951F: mov eax, 0x66666667 */ 10446 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149524: imul ecx */ 10447 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 10448 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 10449 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149526: sar edx, 3 */ 10450 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10451 edx = (uint32_t)((int32_t)edx >> 3u); 10452 ecx = edx; /* 0x36149529: mov ecx, edx */ 10453 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614952B: shr ecx, 0x1f */ 10454 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10455 ecx = ecx >> 31u; /* 0x3614952B: shr ecx, 0x1f */ 10456 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 10457 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10458 edx = edx + ecx; /* 0x3614952E: add edx, ecx */ 10459 _flag_k = FK_ADD; 10460 /* cmp edx, 1 */ /* 0x36149530: cmp edx, 1 */ 10461 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 10462 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10463 _flag_k = FK_CMP; 10464 if (CMP_BE(_flag_a, _flag_b)) goto L_36149541; /* 0x36149533: jbe 0x36149541 */ 10465 L_36149535: 10466 ecx = esi; /* 0x36149535: mov ecx, esi */ 10467 RECOMP_ICALL(0x36149DC0u); /* 0x36149537: call 0x36149dc0 */ /* not lifted */ 10468 RECOMP_FLAGS_IN(); 10469 MEM32(ebp + (-0x14)) = eax; /* 0x3614953C: mov dword ptr [ebp - 0x14], eax */ 10470 goto L_36149548; /* 0x3614953F: jmp 0x36149548 */ 10471 L_36149541: 10472 MEM32(ebp + (-0x14)) = 1; /* 0x36149541: mov dword ptr [ebp - 0x14], 1 */ 10473 L_36149548: 10474 ecx = esi; /* 0x36149548: mov ecx, esi */ 10475 RECOMP_ICALL(0x36149DC0u); /* 0x3614954A: call 0x36149dc0 */ /* not lifted */ 10476 RECOMP_FLAGS_IN(); 10477 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 10478 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10479 eax = eax + MEM32(ebp + (-0x14)); /* 0x3614954F: add eax, dword ptr [ebp - 0x14] */ 10480 _flag_k = FK_ADD; 10481 MEM32(ebp + (-0x2C)) = eax; /* 0x36149552: mov dword ptr [ebp - 0x2c], eax */ 10482 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149559; /* 0x36149555: jns 0x36149559 */ 10483 L_36149557: 10484 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10485 eax = 0; /* 0x36149557: xor eax, eax */ 10486 _cf = 0; 10487 _flag_k = FK_TEST; 10488 L_36149559: 10489 edx = eax + eax * 4; /* 0x36149559: lea edx, [eax + eax*4] */ 10490 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614955C: shl edx, 2 */ 10491 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10492 edx = edx << 2u; /* 0x3614955C: shl edx, 2 */ 10493 PUSH32(esp, edx); /* 0x3614955F: push edx */ 10494 RECOMP_ICALL(0x3615FD6Au); /* 0x36149560: call 0x3615fd6a */ /* not lifted */ 10495 RECOMP_FLAGS_IN(); 10496 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10497 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10498 esp = esp + 4; /* 0x36149565: add esp, 4 */ 10499 _flag_k = FK_ADD; 10500 PUSH32(esp, eax); /* 0x36149568: push eax */ 10501 MEM32(ebp + (-0x14)) = eax; /* 0x36149569: mov dword ptr [ebp - 0x14], eax */ 10502 eax = MEM32(esi + 0x4); /* 0x3614956C: mov eax, dword ptr [esi + 4] */ 10503 PUSH32(esp, edi); /* 0x3614956F: push edi */ 10504 PUSH32(esp, eax); /* 0x36149570: push eax */ 10505 ecx = esi; /* 0x36149571: mov ecx, esi */ 10506 RECOMP_ICALL(0x36149E20u); /* 0x36149573: call 0x36149e20 */ /* not lifted */ 10507 RECOMP_FLAGS_IN(); 10508 ecx = ebp + (-0x84); /* 0x36149578: lea ecx, [ebp - 0x84] */ 10509 PUSH32(esp, ecx); /* 0x3614957E: push ecx */ 10510 PUSH32(esp, 1); /* 0x3614957F: push 1 */ 10511 PUSH32(esp, eax); /* 0x36149581: push eax */ 10512 ecx = esi; /* 0x36149582: mov ecx, esi */ 10513 MEM32(ebp + (-0x18)) = eax; /* 0x36149584: mov dword ptr [ebp - 0x18], eax */ 10514 RECOMP_ICALL(0x3614A190u); /* 0x36149587: call 0x3614a190 */ /* not lifted */ 10515 RECOMP_FLAGS_IN(); 10516 edx = MEM32(ebp + (-0x18)); /* 0x3614958C: mov edx, dword ptr [ebp - 0x18] */ 10517 eax = MEM32(esi + 0x8); /* 0x3614958F: mov eax, dword ptr [esi + 8] */ 10518 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u); 10519 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10520 edx = edx + 0x14u; /* 0x36149592: add edx, 0x14 */ 10521 _flag_k = FK_ADD; 10522 PUSH32(esp, edx); /* 0x36149595: push edx */ 10523 PUSH32(esp, eax); /* 0x36149596: push eax */ 10524 PUSH32(esp, edi); /* 0x36149597: push edi */ 10525 ecx = esi; /* 0x36149598: mov ecx, esi */ 10526 RECOMP_ICALL(0x36149E20u); /* 0x3614959A: call 0x36149e20 */ /* not lifted */ 10527 RECOMP_FLAGS_IN(); 10528 ecx = MEM32(esi + 0x8); /* 0x3614959F: mov ecx, dword ptr [esi + 8] */ 10529 edx = MEM32(esi + 0x4); /* 0x361495A2: mov edx, dword ptr [esi + 4] */ 10530 PUSH32(esp, ecx); /* 0x361495A5: push ecx */ 10531 PUSH32(esp, edx); /* 0x361495A6: push edx */ 10532 ecx = esi; /* 0x361495A7: mov ecx, esi */ 10533 RECOMP_ICALL(0x36149DF0u); /* 0x361495A9: call 0x36149df0 */ /* not lifted */ 10534 RECOMP_FLAGS_IN(); 10535 eax = MEM32(esi + 0x4); /* 0x361495AE: mov eax, dword ptr [esi + 4] */ 10536 PUSH32(esp, eax); /* 0x361495B1: push eax */ 10537 RECOMP_ICALL(0x3615FCC4u); /* 0x361495B2: call 0x3615fcc4 */ /* not lifted */ 10538 RECOMP_FLAGS_IN(); 10539 eax = MEM32(ebp + (-0x2C)); /* 0x361495B7: mov eax, dword ptr [ebp - 0x2c] */ 10540 edi = MEM32(ebp + (-0x14)); /* 0x361495BA: mov edi, dword ptr [ebp - 0x14] */ 10541 eax = eax + eax * 4; /* 0x361495BD: lea eax, [eax + eax*4] */ 10542 ecx = edi + eax * 4; /* 0x361495C0: lea ecx, [edi + eax*4] */ 10543 MEM32(esi + 0xC) = ecx; /* 0x361495C3: mov dword ptr [esi + 0xc], ecx */ 10544 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10545 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10546 esp = esp + 4; /* 0x361495C6: add esp, 4 */ 10547 _flag_k = FK_ADD; 10548 ecx = esi; /* 0x361495C9: mov ecx, esi */ 10549 RECOMP_ICALL(0x36149DC0u); /* 0x361495CB: call 0x36149dc0 */ /* not lifted */ 10550 RECOMP_FLAGS_IN(); 10551 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10552 eax = eax + 1; /* 0x361495D0: inc eax */ 10553 _flag_k = FK_INC; 10554 edx = eax + eax * 4; /* 0x361495D1: lea edx, [eax + eax*4] */ 10555 eax = edi + edx * 4; /* 0x361495D4: lea eax, [edi + edx*4] */ 10556 MEM32(esi + 0x8) = eax; /* 0x361495D7: mov dword ptr [esi + 8], eax */ 10557 MEM32(esi + 0x4) = edi; /* 0x361495DA: mov dword ptr [esi + 4], edi */ 10558 goto L_36149681; /* 0x361495DD: jmp 0x36149681 */ 10559 L_361495E2: 10560 edx = ecx; /* 0x361495E2: mov edx, ecx */ 10561 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 10562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10563 edx = edx - edi; /* 0x361495E4: sub edx, edi */ 10564 _flag_k = FK_CMP; 10565 eax = 0x66666667u; /* 0x361495E6: mov eax, 0x66666667 */ 10566 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361495EB: imul edx */ 10567 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 10568 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 10569 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361495ED: sar edx, 3 */ 10570 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10571 edx = (uint32_t)((int32_t)edx >> 3u); 10572 eax = edx; /* 0x361495F0: mov eax, edx */ 10573 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361495F2: shr eax, 0x1f */ 10574 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10575 eax = eax >> 31u; /* 0x361495F2: shr eax, 0x1f */ 10576 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 10577 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10578 edx = edx + eax; /* 0x361495F5: add edx, eax */ 10579 _flag_k = FK_ADD; 10580 /* cmp edx, 1 */ /* 0x361495F7: cmp edx, 1 */ 10581 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 10582 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10583 _flag_k = FK_CMP; 10584 if (CMP_AE(_flag_a, _flag_b)) goto L_3614964E; /* 0x361495FA: jae 0x3614964e */ 10585 L_361495FC: 10586 edx = edi + 0x14; /* 0x361495FC: lea edx, [edi + 0x14] */ 10587 PUSH32(esp, edx); /* 0x361495FF: push edx */ 10588 PUSH32(esp, ecx); /* 0x36149600: push ecx */ 10589 PUSH32(esp, edi); /* 0x36149601: push edi */ 10590 ecx = esi; /* 0x36149602: mov ecx, esi */ 10591 RECOMP_ICALL(0x36149E20u); /* 0x36149604: call 0x36149e20 */ /* not lifted */ 10592 RECOMP_FLAGS_IN(); 10593 ecx = MEM32(esi + 0x8); /* 0x36149609: mov ecx, dword ptr [esi + 8] */ 10594 eax = ebp + (-0x84); /* 0x3614960C: lea eax, [ebp - 0x84] */ 10595 PUSH32(esp, eax); /* 0x36149612: push eax */ 10596 edx = ecx; /* 0x36149613: mov edx, ecx */ 10597 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 10598 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10599 edx = edx - edi; /* 0x36149615: sub edx, edi */ 10600 _flag_k = FK_CMP; 10601 eax = 0x66666667u; /* 0x36149617: mov eax, 0x66666667 */ 10602 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3614961C: imul edx */ 10603 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 10604 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 10605 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3614961E: sar edx, 3 */ 10606 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10607 edx = (uint32_t)((int32_t)edx >> 3u); 10608 eax = edx; /* 0x36149621: mov eax, edx */ 10609 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149623: shr eax, 0x1f */ 10610 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10611 eax = eax >> 31u; /* 0x36149623: shr eax, 0x1f */ 10612 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 10613 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10614 edx = edx + eax; /* 0x36149626: add edx, eax */ 10615 _flag_k = FK_ADD; 10616 eax = 1; /* 0x36149628: mov eax, 1 */ 10617 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 10618 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10619 eax = eax - edx; /* 0x3614962D: sub eax, edx */ 10620 _flag_k = FK_CMP; 10621 PUSH32(esp, eax); /* 0x3614962F: push eax */ 10622 PUSH32(esp, ecx); /* 0x36149630: push ecx */ 10623 ecx = esi; /* 0x36149631: mov ecx, esi */ 10624 RECOMP_ICALL(0x3614A190u); /* 0x36149633: call 0x3614a190 */ /* not lifted */ 10625 RECOMP_FLAGS_IN(); 10626 edx = MEM32(esi + 0x8); /* 0x36149638: mov edx, dword ptr [esi + 8] */ 10627 ecx = ebp + (-0x84); /* 0x3614963B: lea ecx, [ebp - 0x84] */ 10628 PUSH32(esp, ecx); /* 0x36149641: push ecx */ 10629 PUSH32(esp, edx); /* 0x36149642: push edx */ 10630 PUSH32(esp, edi); /* 0x36149643: push edi */ 10631 RECOMP_ICALL(0x3614A2A0u); /* 0x36149644: call 0x3614a2a0 */ /* not lifted */ 10632 RECOMP_FLAGS_IN(); 10633 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 10634 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10635 esp = esp + 0xCu; /* 0x36149649: add esp, 0xc */ 10636 _flag_k = FK_ADD; 10637 goto L_3614967D; /* 0x3614964C: jmp 0x3614967d */ 10638 L_3614964E: 10639 PUSH32(esp, ecx); /* 0x3614964E: push ecx */ 10640 PUSH32(esp, ecx); /* 0x3614964F: push ecx */ 10641 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu); 10642 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10643 ecx = ecx + 0xFFFFFFECu; /* 0x36149650: add ecx, -0x14 */ 10644 _flag_k = FK_ADD; 10645 PUSH32(esp, ecx); /* 0x36149653: push ecx */ 10646 ecx = esi; /* 0x36149654: mov ecx, esi */ 10647 RECOMP_ICALL(0x36149E20u); /* 0x36149656: call 0x36149e20 */ /* not lifted */ 10648 RECOMP_FLAGS_IN(); 10649 eax = MEM32(esi + 0x8); /* 0x3614965B: mov eax, dword ptr [esi + 8] */ 10650 PUSH32(esp, eax); /* 0x3614965E: push eax */ 10651 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu); 10652 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10653 eax = eax + 0xFFFFFFECu; /* 0x3614965F: add eax, -0x14 */ 10654 _flag_k = FK_ADD; 10655 PUSH32(esp, eax); /* 0x36149662: push eax */ 10656 PUSH32(esp, edi); /* 0x36149663: push edi */ 10657 RECOMP_ICALL(0x3614A2D0u); /* 0x36149664: call 0x3614a2d0 */ /* not lifted */ 10658 RECOMP_FLAGS_IN(); 10659 eax = ebp + (-0x84); /* 0x36149669: lea eax, [ebp - 0x84] */ 10660 PUSH32(esp, eax); /* 0x3614966F: push eax */ 10661 ecx = edi + 0x14; /* 0x36149670: lea ecx, [edi + 0x14] */ 10662 PUSH32(esp, ecx); /* 0x36149673: push ecx */ 10663 PUSH32(esp, edi); /* 0x36149674: push edi */ 10664 RECOMP_ICALL(0x3614A2A0u); /* 0x36149675: call 0x3614a2a0 */ /* not lifted */ 10665 RECOMP_FLAGS_IN(); 10666 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 10667 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10668 esp = esp + 0x18u; /* 0x3614967A: add esp, 0x18 */ 10669 _flag_k = FK_ADD; 10670 L_3614967D: 10671 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x14u); 10672 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10673 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x14u; /* 0x3614967D: add dword ptr [esi + 8], 0x14 */ 10674 _flag_k = FK_ADD; 10675 L_36149681: 10676 ecx = ebp + (-0x84); /* 0x36149681: lea ecx, [ebp - 0x84] */ 10677 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149687: mov dword ptr [ebp - 4], 0xffffffff */ 10678 RECOMP_ICALL(0x3602F7D0u); /* 0x3614968E: call 0x3602f7d0 */ /* not lifted */ 10679 RECOMP_FLAGS_IN(); 10680 eax = MEM32(ebp + (-0x10)); /* 0x36149693: mov eax, dword ptr [ebp - 0x10] */ 10681 edx = MEM32(ebp + (-0x4C)); /* 0x36149696: mov edx, dword ptr [ebp - 0x4c] */ 10682 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10683 eax = eax + 1; /* 0x36149699: inc eax */ 10684 _flag_k = FK_INC; 10685 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 10686 edx = edx & 0xFFu; /* 0x3614969A: and edx, 0xff */ 10687 _cf = 0; 10688 _flag_k = FK_TEST; 10689 /* cmp eax, edx */ /* 0x361496A0: cmp eax, edx */ 10690 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 10691 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10692 _flag_k = FK_CMP; 10693 MEM32(ebp + (-0x10)) = eax; /* 0x361496A2: mov dword ptr [ebp - 0x10], eax */ 10694 RECOMP_BACKEDGE(); 10695 if (CMP_L(_flag_a, _flag_b)) goto L_361494CA; /* 0x361496A5: jl 0x361494ca */ 10696 L_361496AB: 10697 SET_LO8(eax, MEM8(ebp + (-0x50))); /* 0x361496AB: mov al, byte ptr [ebp - 0x50] */ 10698 /* test LO8(eax), LO8(eax) */ /* 0x361496AE: test al, al */ 10699 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10700 _cf = 0; 10701 _flag_k = FK_NARROW(FK_TEST, 24); 10702 MEM32(ebp + (-0x14)) = 0; /* 0x361496B0: mov dword ptr [ebp - 0x14], 0 */ 10703 if (TEST_Z(_flag_a, _flag_b)) goto L_361498AA; /* 0x361496B7: jbe 0x361498aa */ 10704 L_361496BD: 10705 ecx = ebp + (-0xAC); /* 0x361496BD: lea ecx, [ebp - 0xac] */ 10706 RECOMP_ICALL(0x3602F870u); /* 0x361496C3: call 0x3602f870 */ /* not lifted */ 10707 RECOMP_FLAGS_IN(); 10708 ecx = MEM32(ebp + 0x8); /* 0x361496C8: mov ecx, dword ptr [ebp + 8] */ 10709 eax = ebp + (-0xAC); /* 0x361496CB: lea eax, [ebp - 0xac] */ 10710 PUSH32(esp, eax); /* 0x361496D1: push eax */ 10711 PUSH32(esp, ecx); /* 0x361496D2: push ecx */ 10712 MEM32(ebp + (-0x4)) = 1; /* 0x361496D3: mov dword ptr [ebp - 4], 1 */ 10713 RECOMP_ICALL(0x3602F9B0u); /* 0x361496DA: call 0x3602f9b0 */ /* not lifted */ 10714 RECOMP_FLAGS_IN(); 10715 esi = MEM32(ebx + 0x54); /* 0x361496DF: mov esi, dword ptr [ebx + 0x54] */ 10716 ecx = MEM32(esi + 0x8); /* 0x361496E2: mov ecx, dword ptr [esi + 8] */ 10717 edx = MEM32(esi + 0xC); /* 0x361496E5: mov edx, dword ptr [esi + 0xc] */ 10718 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 10719 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10720 edx = edx - ecx; /* 0x361496E8: sub edx, ecx */ 10721 _flag_k = FK_CMP; 10722 MEM32(ebp + (-0x18)) = edx; /* 0x361496EA: mov dword ptr [ebp - 0x18], edx */ 10723 eax = 0x88888889u; /* 0x361496ED: mov eax, 0x88888889 */ 10724 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361496F2: imul edx */ 10725 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 10726 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 10727 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 10728 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10729 edx = edx + MEM32(ebp + (-0x18)); /* 0x361496F4: add edx, dword ptr [ebp - 0x18] */ 10730 _flag_k = FK_ADD; 10731 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361496F7: sar edx, 5 */ 10732 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10733 edx = (uint32_t)((int32_t)edx >> 5u); 10734 eax = edx; /* 0x361496FA: mov eax, edx */ 10735 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361496FC: shr eax, 0x1f */ 10736 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10737 eax = eax >> 31u; /* 0x361496FC: shr eax, 0x1f */ 10738 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 10739 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10740 edx = edx + eax; /* 0x361496FF: add edx, eax */ 10741 _flag_k = FK_ADD; 10742 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10743 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10744 esp = esp + 8; /* 0x36149701: add esp, 8 */ 10745 _flag_k = FK_ADD; 10746 /* cmp edx, 1 */ /* 0x36149704: cmp edx, 1 */ 10747 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 10748 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10749 _flag_k = FK_CMP; 10750 edi = ecx; /* 0x36149707: mov edi, ecx */ 10751 if (CMP_AE(_flag_a, _flag_b)) goto L_361497D8; /* 0x36149709: jae 0x361497d8 */ 10752 L_3614970F: 10753 eax = MEM32(esi + 0x4); /* 0x3614970F: mov eax, dword ptr [esi + 4] */ 10754 /* test eax, eax */ /* 0x36149712: test eax, eax */ 10755 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10756 _cf = 0; 10757 _flag_k = FK_TEST; 10758 if (TEST_Z(_flag_a, _flag_b)) goto L_36149732; /* 0x36149714: je 0x36149732 */ 10759 L_36149716: 10760 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 10761 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10762 ecx = ecx - eax; /* 0x36149716: sub ecx, eax */ 10763 _flag_k = FK_CMP; 10764 eax = 0x88888889u; /* 0x36149718: mov eax, 0x88888889 */ 10765 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3614971D: imul ecx */ 10766 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 10767 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 10768 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 10769 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10770 edx = edx + ecx; /* 0x3614971F: add edx, ecx */ 10771 _flag_k = FK_ADD; 10772 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36149721: sar edx, 5 */ 10773 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10774 edx = (uint32_t)((int32_t)edx >> 5u); 10775 ecx = edx; /* 0x36149724: mov ecx, edx */ 10776 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36149726: shr ecx, 0x1f */ 10777 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10778 ecx = ecx >> 31u; /* 0x36149726: shr ecx, 0x1f */ 10779 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 10780 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10781 edx = edx + ecx; /* 0x36149729: add edx, ecx */ 10782 _flag_k = FK_ADD; 10783 /* cmp edx, 1 */ /* 0x3614972B: cmp edx, 1 */ 10784 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 10785 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10786 _flag_k = FK_CMP; 10787 ebx = edx; /* 0x3614972E: mov ebx, edx */ 10788 if (CMP_A(_flag_a, _flag_b)) goto L_36149737; /* 0x36149730: ja 0x36149737 */ 10789 L_36149732: 10790 ebx = 1; /* 0x36149732: mov ebx, 1 */ 10791 L_36149737: 10792 ecx = esi; /* 0x36149737: mov ecx, esi */ 10793 RECOMP_ICALL(0x36149E90u); /* 0x36149739: call 0x36149e90 */ /* not lifted */ 10794 RECOMP_FLAGS_IN(); 10795 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 10796 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10797 eax = eax + ebx; /* 0x3614973E: add eax, ebx */ 10798 _flag_k = FK_ADD; 10799 MEM32(ebp + (-0x2C)) = eax; /* 0x36149740: mov dword ptr [ebp - 0x2c], eax */ 10800 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149747; /* 0x36149743: jns 0x36149747 */ 10801 L_36149745: 10802 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10803 eax = 0; /* 0x36149745: xor eax, eax */ 10804 _cf = 0; 10805 _flag_k = FK_TEST; 10806 L_36149747: 10807 eax = eax + eax * 2; /* 0x36149747: lea eax, [eax + eax*2] */ 10808 edx = eax + eax * 4; /* 0x3614974A: lea edx, [eax + eax*4] */ 10809 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614974D: shl edx, 2 */ 10810 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10811 edx = edx << 2u; /* 0x3614974D: shl edx, 2 */ 10812 PUSH32(esp, edx); /* 0x36149750: push edx */ 10813 RECOMP_ICALL(0x3615FD6Au); /* 0x36149751: call 0x3615fd6a */ /* not lifted */ 10814 RECOMP_FLAGS_IN(); 10815 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10816 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10817 esp = esp + 4; /* 0x36149756: add esp, 4 */ 10818 _flag_k = FK_ADD; 10819 ebx = eax; /* 0x36149759: mov ebx, eax */ 10820 eax = MEM32(esi + 0x4); /* 0x3614975B: mov eax, dword ptr [esi + 4] */ 10821 PUSH32(esp, ebx); /* 0x3614975E: push ebx */ 10822 PUSH32(esp, edi); /* 0x3614975F: push edi */ 10823 PUSH32(esp, eax); /* 0x36149760: push eax */ 10824 ecx = esi; /* 0x36149761: mov ecx, esi */ 10825 RECOMP_ICALL(0x36149EF0u); /* 0x36149763: call 0x36149ef0 */ /* not lifted */ 10826 RECOMP_FLAGS_IN(); 10827 ecx = ebp + (-0xAC); /* 0x36149768: lea ecx, [ebp - 0xac] */ 10828 PUSH32(esp, ecx); /* 0x3614976E: push ecx */ 10829 PUSH32(esp, 1); /* 0x3614976F: push 1 */ 10830 PUSH32(esp, eax); /* 0x36149771: push eax */ 10831 ecx = esi; /* 0x36149772: mov ecx, esi */ 10832 MEM32(ebp + (-0x18)) = eax; /* 0x36149774: mov dword ptr [ebp - 0x18], eax */ 10833 RECOMP_ICALL(0x3614A1C0u); /* 0x36149777: call 0x3614a1c0 */ /* not lifted */ 10834 RECOMP_FLAGS_IN(); 10835 edx = MEM32(ebp + (-0x18)); /* 0x3614977C: mov edx, dword ptr [ebp - 0x18] */ 10836 eax = MEM32(esi + 0x8); /* 0x3614977F: mov eax, dword ptr [esi + 8] */ 10837 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x3Cu); 10838 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10839 edx = edx + 0x3Cu; /* 0x36149782: add edx, 0x3c */ 10840 _flag_k = FK_ADD; 10841 PUSH32(esp, edx); /* 0x36149785: push edx */ 10842 PUSH32(esp, eax); /* 0x36149786: push eax */ 10843 PUSH32(esp, edi); /* 0x36149787: push edi */ 10844 ecx = esi; /* 0x36149788: mov ecx, esi */ 10845 RECOMP_ICALL(0x36149EF0u); /* 0x3614978A: call 0x36149ef0 */ /* not lifted */ 10846 RECOMP_FLAGS_IN(); 10847 ecx = MEM32(esi + 0x8); /* 0x3614978F: mov ecx, dword ptr [esi + 8] */ 10848 edx = MEM32(esi + 0x4); /* 0x36149792: mov edx, dword ptr [esi + 4] */ 10849 PUSH32(esp, ecx); /* 0x36149795: push ecx */ 10850 PUSH32(esp, edx); /* 0x36149796: push edx */ 10851 ecx = esi; /* 0x36149797: mov ecx, esi */ 10852 RECOMP_ICALL(0x36149EC0u); /* 0x36149799: call 0x36149ec0 */ /* not lifted */ 10853 RECOMP_FLAGS_IN(); 10854 eax = MEM32(esi + 0x4); /* 0x3614979E: mov eax, dword ptr [esi + 4] */ 10855 PUSH32(esp, eax); /* 0x361497A1: push eax */ 10856 RECOMP_ICALL(0x3615FCC4u); /* 0x361497A2: call 0x3615fcc4 */ /* not lifted */ 10857 RECOMP_FLAGS_IN(); 10858 eax = MEM32(ebp + (-0x2C)); /* 0x361497A7: mov eax, dword ptr [ebp - 0x2c] */ 10859 eax = eax + eax * 2; /* 0x361497AA: lea eax, [eax + eax*2] */ 10860 eax = eax + eax * 4; /* 0x361497AD: lea eax, [eax + eax*4] */ 10861 ecx = ebx + eax * 4; /* 0x361497B0: lea ecx, [ebx + eax*4] */ 10862 MEM32(esi + 0xC) = ecx; /* 0x361497B3: mov dword ptr [esi + 0xc], ecx */ 10863 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10864 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10865 esp = esp + 4; /* 0x361497B6: add esp, 4 */ 10866 _flag_k = FK_ADD; 10867 ecx = esi; /* 0x361497B9: mov ecx, esi */ 10868 RECOMP_ICALL(0x36149E90u); /* 0x361497BB: call 0x36149e90 */ /* not lifted */ 10869 RECOMP_FLAGS_IN(); 10870 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10871 eax = eax + 1; /* 0x361497C0: inc eax */ 10872 _flag_k = FK_INC; 10873 eax = eax + eax * 2; /* 0x361497C1: lea eax, [eax + eax*2] */ 10874 edx = eax + eax * 4; /* 0x361497C4: lea edx, [eax + eax*4] */ 10875 eax = ebx + edx * 4; /* 0x361497C7: lea eax, [ebx + edx*4] */ 10876 MEM32(esi + 0x4) = ebx; /* 0x361497CA: mov dword ptr [esi + 4], ebx */ 10877 ebx = MEM32(ebp + 0xC); /* 0x361497CD: mov ebx, dword ptr [ebp + 0xc] */ 10878 MEM32(esi + 0x8) = eax; /* 0x361497D0: mov dword ptr [esi + 8], eax */ 10879 goto L_36149880; /* 0x361497D3: jmp 0x36149880 */ 10880 L_361497D8: 10881 edx = ecx; /* 0x361497D8: mov edx, ecx */ 10882 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 10883 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10884 edx = edx - edi; /* 0x361497DA: sub edx, edi */ 10885 _flag_k = FK_CMP; 10886 MEM32(ebp + (-0x18)) = edx; /* 0x361497DC: mov dword ptr [ebp - 0x18], edx */ 10887 eax = 0x88888889u; /* 0x361497DF: mov eax, 0x88888889 */ 10888 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361497E4: imul edx */ 10889 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 10890 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 10891 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 10892 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10893 edx = edx + MEM32(ebp + (-0x18)); /* 0x361497E6: add edx, dword ptr [ebp - 0x18] */ 10894 _flag_k = FK_ADD; 10895 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361497E9: sar edx, 5 */ 10896 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10897 edx = (uint32_t)((int32_t)edx >> 5u); 10898 eax = edx; /* 0x361497EC: mov eax, edx */ 10899 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361497EE: shr eax, 0x1f */ 10900 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10901 eax = eax >> 31u; /* 0x361497EE: shr eax, 0x1f */ 10902 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 10903 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10904 edx = edx + eax; /* 0x361497F1: add edx, eax */ 10905 _flag_k = FK_ADD; 10906 /* cmp edx, 1 */ /* 0x361497F3: cmp edx, 1 */ 10907 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 10908 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10909 _flag_k = FK_CMP; 10910 if (CMP_AE(_flag_a, _flag_b)) goto L_3614984D; /* 0x361497F6: jae 0x3614984d */ 10911 L_361497F8: 10912 edx = edi + 0x3C; /* 0x361497F8: lea edx, [edi + 0x3c] */ 10913 PUSH32(esp, edx); /* 0x361497FB: push edx */ 10914 PUSH32(esp, ecx); /* 0x361497FC: push ecx */ 10915 PUSH32(esp, edi); /* 0x361497FD: push edi */ 10916 ecx = esi; /* 0x361497FE: mov ecx, esi */ 10917 RECOMP_ICALL(0x36149EF0u); /* 0x36149800: call 0x36149ef0 */ /* not lifted */ 10918 RECOMP_FLAGS_IN(); 10919 ecx = MEM32(esi + 0x8); /* 0x36149805: mov ecx, dword ptr [esi + 8] */ 10920 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 10921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10922 ecx = ecx - edi; /* 0x36149808: sub ecx, edi */ 10923 _flag_k = FK_CMP; 10924 eax = ebp + (-0xAC); /* 0x3614980A: lea eax, [ebp - 0xac] */ 10925 PUSH32(esp, eax); /* 0x36149810: push eax */ 10926 eax = 0x88888889u; /* 0x36149811: mov eax, 0x88888889 */ 10927 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149816: imul ecx */ 10928 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 10929 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 10930 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 10931 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10932 edx = edx + ecx; /* 0x36149818: add edx, ecx */ 10933 _flag_k = FK_ADD; 10934 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x3614981A: sar edx, 5 */ 10935 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10936 edx = (uint32_t)((int32_t)edx >> 5u); 10937 ecx = edx; /* 0x3614981D: mov ecx, edx */ 10938 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614981F: shr ecx, 0x1f */ 10939 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10940 ecx = ecx >> 31u; /* 0x3614981F: shr ecx, 0x1f */ 10941 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 10942 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10943 edx = edx + ecx; /* 0x36149822: add edx, ecx */ 10944 _flag_k = FK_ADD; 10945 eax = 1; /* 0x36149824: mov eax, 1 */ 10946 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 10947 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10948 eax = eax - edx; /* 0x36149829: sub eax, edx */ 10949 _flag_k = FK_CMP; 10950 PUSH32(esp, eax); /* 0x3614982B: push eax */ 10951 eax = MEM32(esi + 0x8); /* 0x3614982C: mov eax, dword ptr [esi + 8] */ 10952 PUSH32(esp, eax); /* 0x3614982F: push eax */ 10953 ecx = esi; /* 0x36149830: mov ecx, esi */ 10954 RECOMP_ICALL(0x3614A1C0u); /* 0x36149832: call 0x3614a1c0 */ /* not lifted */ 10955 RECOMP_FLAGS_IN(); 10956 edx = MEM32(esi + 0x8); /* 0x36149837: mov edx, dword ptr [esi + 8] */ 10957 ecx = ebp + (-0xAC); /* 0x3614983A: lea ecx, [ebp - 0xac] */ 10958 PUSH32(esp, ecx); /* 0x36149840: push ecx */ 10959 PUSH32(esp, edx); /* 0x36149841: push edx */ 10960 PUSH32(esp, edi); /* 0x36149842: push edi */ 10961 RECOMP_ICALL(0x3614A360u); /* 0x36149843: call 0x3614a360 */ /* not lifted */ 10962 RECOMP_FLAGS_IN(); 10963 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 10964 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10965 esp = esp + 0xCu; /* 0x36149848: add esp, 0xc */ 10966 _flag_k = FK_ADD; 10967 goto L_3614987C; /* 0x3614984B: jmp 0x3614987c */ 10968 L_3614984D: 10969 PUSH32(esp, ecx); /* 0x3614984D: push ecx */ 10970 PUSH32(esp, ecx); /* 0x3614984E: push ecx */ 10971 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC4u); 10972 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10973 ecx = ecx + 0xFFFFFFC4u; /* 0x3614984F: add ecx, -0x3c */ 10974 _flag_k = FK_ADD; 10975 PUSH32(esp, ecx); /* 0x36149852: push ecx */ 10976 ecx = esi; /* 0x36149853: mov ecx, esi */ 10977 RECOMP_ICALL(0x36149EF0u); /* 0x36149855: call 0x36149ef0 */ /* not lifted */ 10978 RECOMP_FLAGS_IN(); 10979 eax = MEM32(esi + 0x8); /* 0x3614985A: mov eax, dword ptr [esi + 8] */ 10980 PUSH32(esp, eax); /* 0x3614985D: push eax */ 10981 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFC4u); 10982 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10983 eax = eax + 0xFFFFFFC4u; /* 0x3614985E: add eax, -0x3c */ 10984 _flag_k = FK_ADD; 10985 PUSH32(esp, eax); /* 0x36149861: push eax */ 10986 PUSH32(esp, edi); /* 0x36149862: push edi */ 10987 RECOMP_ICALL(0x3614A390u); /* 0x36149863: call 0x3614a390 */ /* not lifted */ 10988 RECOMP_FLAGS_IN(); 10989 eax = ebp + (-0xAC); /* 0x36149868: lea eax, [ebp - 0xac] */ 10990 PUSH32(esp, eax); /* 0x3614986E: push eax */ 10991 ecx = edi + 0x3C; /* 0x3614986F: lea ecx, [edi + 0x3c] */ 10992 PUSH32(esp, ecx); /* 0x36149872: push ecx */ 10993 PUSH32(esp, edi); /* 0x36149873: push edi */ 10994 RECOMP_ICALL(0x3614A360u); /* 0x36149874: call 0x3614a360 */ /* not lifted */ 10995 RECOMP_FLAGS_IN(); 10996 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 10997 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10998 esp = esp + 0x18u; /* 0x36149879: add esp, 0x18 */ 10999 _flag_k = FK_ADD; 11000 L_3614987C: 11001 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x3Cu); 11002 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11003 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x3Cu; /* 0x3614987C: add dword ptr [esi + 8], 0x3c */ 11004 _flag_k = FK_ADD; 11005 L_36149880: 11006 ecx = ebp + (-0xAC); /* 0x36149880: lea ecx, [ebp - 0xac] */ 11007 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149886: mov dword ptr [ebp - 4], 0xffffffff */ 11008 RECOMP_ICALL(0x3602F940u); /* 0x3614988D: call 0x3602f940 */ /* not lifted */ 11009 RECOMP_FLAGS_IN(); 11010 eax = MEM32(ebp + (-0x14)); /* 0x36149892: mov eax, dword ptr [ebp - 0x14] */ 11011 edx = MEM32(ebp + (-0x50)); /* 0x36149895: mov edx, dword ptr [ebp - 0x50] */ 11012 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11013 eax = eax + 1; /* 0x36149898: inc eax */ 11014 _flag_k = FK_INC; 11015 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 11016 edx = edx & 0xFFu; /* 0x36149899: and edx, 0xff */ 11017 _cf = 0; 11018 _flag_k = FK_TEST; 11019 /* cmp eax, edx */ /* 0x3614989F: cmp eax, edx */ 11020 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 11021 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11022 _flag_k = FK_CMP; 11023 MEM32(ebp + (-0x14)) = eax; /* 0x361498A1: mov dword ptr [ebp - 0x14], eax */ 11024 RECOMP_BACKEDGE(); 11025 if (CMP_L(_flag_a, _flag_b)) goto L_361496BD; /* 0x361498A4: jl 0x361496bd */ 11026 L_361498AA: 11027 esi = MEM32(ebp + 0x8); /* 0x361498AA: mov esi, dword ptr [ebp + 8] */ 11028 ecx = esi; /* 0x361498AD: mov ecx, esi */ 11029 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361498AF: call dword ptr [0x3616fadc] */ 11030 RECOMP_FLAGS_IN(); 11031 /* test eax, eax */ /* 0x361498B5: test eax, eax */ 11032 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11033 _cf = 0; 11034 _flag_k = FK_TEST; 11035 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498F7; /* 0x361498B7: jne 0x361498f7 */ 11036 L_361498B9: 11037 ebx = MEM32(ebx); /* 0x361498B9: mov ebx, dword ptr [ebx] */ 11038 eax = MEM32(ebx + 0x4); /* 0x361498BB: mov eax, dword ptr [ebx + 4] */ 11039 /* test eax, eax */ /* 0x361498BE: test eax, eax */ 11040 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11041 _cf = 0; 11042 _flag_k = FK_TEST; 11043 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498C7; /* 0x361498C0: jne 0x361498c7 */ 11044 L_361498C2: 11045 eax = MEM32(0x3616F10C); /* 0x361498C2: mov eax, dword ptr [0x3616f10c] */ 11046 L_361498C7: 11047 PUSH32(esp, eax); /* 0x361498C7: push eax */ 11048 PUSH32(esp, 0x362E75FCu); /* 0x361498C8: push 0x362e75fc */ 11049 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361498CD: call dword ptr [0x3616f18c] */ 11050 RECOMP_FLAGS_IN(); 11051 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11052 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11053 esp = esp + 8; /* 0x361498D3: add esp, 8 */ 11054 _flag_k = FK_ADD; 11055 PUSH32(esp, 0x362E75CCu); /* 0x361498D6: push 0x362e75cc */ 11056 ecx = ebp + (-0xB4); /* 0x361498DB: lea ecx, [ebp - 0xb4] */ 11057 RECOMP_ICALL(0x36008EF0u); /* 0x361498E1: call 0x36008ef0 */ /* not lifted */ 11058 RECOMP_FLAGS_IN(); 11059 PUSH32(esp, 0x36184170u); /* 0x361498E6: push 0x36184170 */ 11060 eax = ebp + (-0xB4); /* 0x361498EB: lea eax, [ebp - 0xb4] */ 11061 PUSH32(esp, eax); /* 0x361498F1: push eax */ 11062 RECOMP_ICALL(0x3615FD70u); /* 0x361498F2: call 0x3615fd70 */ /* not lifted */ 11063 RECOMP_FLAGS_IN(); 11064 L_361498F7: 11065 ecx = MEM32(ebp + (-0xC)); /* 0x361498F7: mov ecx, dword ptr [ebp - 0xc] */ 11066 edi = POP32_VAL(esp); /* 0x361498FA: pop edi */ 11067 eax = esi; /* 0x361498FB: mov eax, esi */ 11068 esi = POP32_VAL(esp); /* 0x361498FD: pop esi */ 11069 ebx = POP32_VAL(esp); /* 0x361498FE: pop ebx */ 11070 MEM32(FS_BASE + (0)) = ecx; /* 0x361498FF: mov dword ptr fs:[0], ecx */ 11071 esp = ebp; /* 0x36149906: mov esp, ebp */ 11072 ebp = POP32_VAL(esp); /* 0x36149908: pop ebp */ 11073 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149909: ret */ 11074 RECOMP_REGS_OUT(); 11075 } 11076 11077 void sub_3614949C(void) { 11078 int _fpu_cmp = 0; 11079 uint32_t _cf = 0; 11080 int _df = 1; 11081 uint32_t _flag_k = FK_NONE; 11082 uint32_t _flag_a = 0, _flag_b = 0; 11083 uint32_t _itail_tgt = 0; 11084 RECOMP_REGS_LOCALS 11085 RECOMP_ENTER(0x3614949Cu); 11086 11087 goto L_3614949C; 11088 L_361491D9: 11089 ecx = MEM32(ebp + 0x8); /* 0x361491D9: mov ecx, dword ptr [ebp + 8] */ 11090 esi = MEM32(0x3616FAC8); /* 0x361491DC: mov esi, dword ptr [0x3616fac8] */ 11091 eax = ebp + (-0x1E); /* 0x361491E2: lea eax, [ebp - 0x1e] */ 11092 PUSH32(esp, eax); /* 0x361491E5: push eax */ 11093 RECOMP_ICALL(esi); /* 0x361491E6: call esi */ 11094 RECOMP_FLAGS_IN(); 11095 ecx = ebp + (-0x26); /* 0x361491E8: lea ecx, [ebp - 0x26] */ 11096 PUSH32(esp, ecx); /* 0x361491EB: push ecx */ 11097 ecx = eax; /* 0x361491EC: mov ecx, eax */ 11098 RECOMP_ICALL(esi); /* 0x361491EE: call esi */ 11099 RECOMP_FLAGS_IN(); 11100 esi = MEM32(ebx + 0x5C); /* 0x361491F0: mov esi, dword ptr [ebx + 0x5c] */ 11101 eax = MEM32(esi + 0x8); /* 0x361491F3: mov eax, dword ptr [esi + 8] */ 11102 edx = MEM32(esi + 0xC); /* 0x361491F6: mov edx, dword ptr [esi + 0xc] */ 11103 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 11104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11105 edx = edx - eax; /* 0x361491F9: sub edx, eax */ 11106 _flag_k = FK_CMP; 11107 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x361491FB: sar edx, 1 */ 11108 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11109 edx = (uint32_t)((int32_t)edx >> 1u); 11110 /* cmp edx, 1 */ /* 0x361491FD: cmp edx, 1 */ 11111 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 11112 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11113 _flag_k = FK_CMP; 11114 edi = eax; /* 0x36149200: mov edi, eax */ 11115 if (CMP_AE(_flag_a, _flag_b)) goto L_361492B8; /* 0x36149202: jae 0x361492b8 */ 11116 L_36149208: 11117 ecx = MEM32(esi + 0x4); /* 0x36149208: mov ecx, dword ptr [esi + 4] */ 11118 /* test ecx, ecx */ /* 0x3614920B: test ecx, ecx */ 11119 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11120 _cf = 0; 11121 _flag_k = FK_TEST; 11122 if (TEST_Z(_flag_a, _flag_b)) goto L_36149224; /* 0x3614920D: je 0x36149224 */ 11123 L_3614920F: 11124 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11125 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11126 eax = eax - ecx; /* 0x3614920F: sub eax, ecx */ 11127 _flag_k = FK_CMP; 11128 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149211: sar eax, 1 */ 11129 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11130 eax = (uint32_t)((int32_t)eax >> 1u); 11131 /* cmp eax, 1 */ /* 0x36149213: cmp eax, 1 */ 11132 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11134 _flag_k = FK_CMP; 11135 if (CMP_BE(_flag_a, _flag_b)) goto L_36149224; /* 0x36149216: jbe 0x36149224 */ 11136 L_36149218: 11137 ecx = esi; /* 0x36149218: mov ecx, esi */ 11138 RECOMP_ICALL(0x36140430u); /* 0x3614921A: call 0x36140430 */ /* not lifted */ 11139 RECOMP_FLAGS_IN(); 11140 MEM32(ebp + (-0x10)) = eax; /* 0x3614921F: mov dword ptr [ebp - 0x10], eax */ 11141 goto L_3614922B; /* 0x36149222: jmp 0x3614922b */ 11142 L_36149224: 11143 MEM32(ebp + (-0x10)) = 1; /* 0x36149224: mov dword ptr [ebp - 0x10], 1 */ 11144 L_3614922B: 11145 ecx = esi; /* 0x3614922B: mov ecx, esi */ 11146 RECOMP_ICALL(0x36140430u); /* 0x3614922D: call 0x36140430 */ /* not lifted */ 11147 RECOMP_FLAGS_IN(); 11148 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 11149 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11150 eax = eax + MEM32(ebp + (-0x10)); /* 0x36149232: add eax, dword ptr [ebp - 0x10] */ 11151 _flag_k = FK_ADD; 11152 MEM32(ebp + (-0x18)) = eax; /* 0x36149235: mov dword ptr [ebp - 0x18], eax */ 11153 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_3614923C; /* 0x36149238: jns 0x3614923c */ 11154 L_3614923A: 11155 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11156 eax = 0; /* 0x3614923A: xor eax, eax */ 11157 _cf = 0; 11158 _flag_k = FK_TEST; 11159 L_3614923C: 11160 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11161 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11162 eax = eax + eax; /* 0x3614923C: add eax, eax */ 11163 _flag_k = FK_ADD; 11164 PUSH32(esp, eax); /* 0x3614923E: push eax */ 11165 RECOMP_ICALL(0x3615FD6Au); /* 0x3614923F: call 0x3615fd6a */ /* not lifted */ 11166 RECOMP_FLAGS_IN(); 11167 ecx = MEM32(esi + 0x4); /* 0x36149244: mov ecx, dword ptr [esi + 4] */ 11168 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11169 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11170 esp = esp + 4; /* 0x36149247: add esp, 4 */ 11171 _flag_k = FK_ADD; 11172 PUSH32(esp, eax); /* 0x3614924A: push eax */ 11173 PUSH32(esp, edi); /* 0x3614924B: push edi */ 11174 PUSH32(esp, ecx); /* 0x3614924C: push ecx */ 11175 ecx = esi; /* 0x3614924D: mov ecx, esi */ 11176 MEM32(ebp + (-0x2C)) = eax; /* 0x3614924F: mov dword ptr [ebp - 0x2c], eax */ 11177 RECOMP_ICALL(0x36140900u); /* 0x36149252: call 0x36140900 */ /* not lifted */ 11178 RECOMP_FLAGS_IN(); 11179 edx = ebp + (-0x1E); /* 0x36149257: lea edx, [ebp - 0x1e] */ 11180 PUSH32(esp, edx); /* 0x3614925A: push edx */ 11181 PUSH32(esp, 1); /* 0x3614925B: push 1 */ 11182 PUSH32(esp, eax); /* 0x3614925D: push eax */ 11183 ecx = esi; /* 0x3614925E: mov ecx, esi */ 11184 MEM32(ebp + (-0x10)) = eax; /* 0x36149260: mov dword ptr [ebp - 0x10], eax */ 11185 RECOMP_ICALL(0x3614A1F0u); /* 0x36149263: call 0x3614a1f0 */ /* not lifted */ 11186 RECOMP_FLAGS_IN(); 11187 eax = MEM32(ebp + (-0x10)); /* 0x36149268: mov eax, dword ptr [ebp - 0x10] */ 11188 ecx = MEM32(esi + 0x8); /* 0x3614926B: mov ecx, dword ptr [esi + 8] */ 11189 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 11190 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11191 eax = eax + 2; /* 0x3614926E: add eax, 2 */ 11192 _flag_k = FK_ADD; 11193 PUSH32(esp, eax); /* 0x36149271: push eax */ 11194 PUSH32(esp, ecx); /* 0x36149272: push ecx */ 11195 PUSH32(esp, edi); /* 0x36149273: push edi */ 11196 ecx = esi; /* 0x36149274: mov ecx, esi */ 11197 RECOMP_ICALL(0x36140900u); /* 0x36149276: call 0x36140900 */ /* not lifted */ 11198 RECOMP_FLAGS_IN(); 11199 edx = MEM32(esi + 0x8); /* 0x3614927B: mov edx, dword ptr [esi + 8] */ 11200 eax = MEM32(esi + 0x4); /* 0x3614927E: mov eax, dword ptr [esi + 4] */ 11201 PUSH32(esp, edx); /* 0x36149281: push edx */ 11202 PUSH32(esp, eax); /* 0x36149282: push eax */ 11203 ecx = esi; /* 0x36149283: mov ecx, esi */ 11204 RECOMP_ICALL(0x3610ED60u); /* 0x36149285: call 0x3610ed60 */ /* not lifted */ 11205 RECOMP_FLAGS_IN(); 11206 eax = MEM32(esi + 0x4); /* 0x3614928A: mov eax, dword ptr [esi + 4] */ 11207 PUSH32(esp, eax); /* 0x3614928D: push eax */ 11208 RECOMP_ICALL(0x3615FCC4u); /* 0x3614928E: call 0x3615fcc4 */ /* not lifted */ 11209 RECOMP_FLAGS_IN(); 11210 ecx = MEM32(ebp + (-0x18)); /* 0x36149293: mov ecx, dword ptr [ebp - 0x18] */ 11211 edi = MEM32(ebp + (-0x2C)); /* 0x36149296: mov edi, dword ptr [ebp - 0x2c] */ 11212 edx = edi + ecx * 2; /* 0x36149299: lea edx, [edi + ecx*2] */ 11213 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11214 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11215 esp = esp + 4; /* 0x3614929C: add esp, 4 */ 11216 _flag_k = FK_ADD; 11217 ecx = esi; /* 0x3614929F: mov ecx, esi */ 11218 MEM32(esi + 0xC) = edx; /* 0x361492A1: mov dword ptr [esi + 0xc], edx */ 11219 RECOMP_ICALL(0x36140430u); /* 0x361492A4: call 0x36140430 */ /* not lifted */ 11220 RECOMP_FLAGS_IN(); 11221 eax = edi + eax * 2 + 0x2; /* 0x361492A9: lea eax, [edi + eax*2 + 2] */ 11222 MEM32(esi + 0x8) = eax; /* 0x361492AD: mov dword ptr [esi + 8], eax */ 11223 MEM32(esi + 0x4) = edi; /* 0x361492B0: mov dword ptr [esi + 4], edi */ 11224 goto L_36149348; /* 0x361492B3: jmp 0x36149348 */ 11225 L_361492B8: 11226 ecx = eax; /* 0x361492B8: mov ecx, eax */ 11227 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 11228 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11229 ecx = ecx - edi; /* 0x361492BA: sub ecx, edi */ 11230 _flag_k = FK_CMP; 11231 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492BC: sar ecx, 1 */ 11232 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11233 ecx = (uint32_t)((int32_t)ecx >> 1u); 11234 /* cmp ecx, 1 */ /* 0x361492BE: cmp ecx, 1 */ 11235 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 11236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11237 _flag_k = FK_CMP; 11238 if (CMP_AE(_flag_a, _flag_b)) goto L_36149304; /* 0x361492C1: jae 0x36149304 */ 11239 L_361492C3: 11240 ecx = edi + 0x2; /* 0x361492C3: lea ecx, [edi + 2] */ 11241 PUSH32(esp, ecx); /* 0x361492C6: push ecx */ 11242 PUSH32(esp, eax); /* 0x361492C7: push eax */ 11243 PUSH32(esp, edi); /* 0x361492C8: push edi */ 11244 ecx = esi; /* 0x361492C9: mov ecx, esi */ 11245 RECOMP_ICALL(0x36140900u); /* 0x361492CB: call 0x36140900 */ /* not lifted */ 11246 RECOMP_FLAGS_IN(); 11247 eax = MEM32(esi + 0x8); /* 0x361492D0: mov eax, dword ptr [esi + 8] */ 11248 ecx = eax; /* 0x361492D3: mov ecx, eax */ 11249 edx = ebp + (-0x1E); /* 0x361492D5: lea edx, [ebp - 0x1e] */ 11250 PUSH32(esp, edx); /* 0x361492D8: push edx */ 11251 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 11252 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11253 ecx = ecx - edi; /* 0x361492D9: sub ecx, edi */ 11254 _flag_k = FK_CMP; 11255 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492DB: sar ecx, 1 */ 11256 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11257 ecx = (uint32_t)((int32_t)ecx >> 1u); 11258 edx = 1; /* 0x361492DD: mov edx, 1 */ 11259 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 11260 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11261 edx = edx - ecx; /* 0x361492E2: sub edx, ecx */ 11262 _flag_k = FK_CMP; 11263 PUSH32(esp, edx); /* 0x361492E4: push edx */ 11264 PUSH32(esp, eax); /* 0x361492E5: push eax */ 11265 ecx = esi; /* 0x361492E6: mov ecx, esi */ 11266 RECOMP_ICALL(0x3614A1F0u); /* 0x361492E8: call 0x3614a1f0 */ /* not lifted */ 11267 RECOMP_FLAGS_IN(); 11268 eax = MEM32(esi + 0x8); /* 0x361492ED: mov eax, dword ptr [esi + 8] */ 11269 /* cmp edi, eax */ /* 0x361492F0: cmp edi, eax */ 11270 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11272 _flag_k = FK_CMP; 11273 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x361492F2: je 0x36149344 */ 11274 L_361492F4: 11275 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x361492F4: mov cx, word ptr [ebp - 0x1e] */ 11276 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x361492F8: mov word ptr [edi], cx */ 11277 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 11278 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11279 edi = edi + 2; /* 0x361492FB: add edi, 2 */ 11280 _flag_k = FK_ADD; 11281 /* cmp edi, eax */ /* 0x361492FE: cmp edi, eax */ 11282 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11283 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11284 _flag_k = FK_CMP; 11285 RECOMP_BACKEDGE(); 11286 if (CMP_NE(_flag_a, _flag_b)) goto L_361492F4; /* 0x36149300: jne 0x361492f4 */ 11287 L_36149302: 11288 goto L_36149344; /* 0x36149302: jmp 0x36149344 */ 11289 L_36149304: 11290 PUSH32(esp, eax); /* 0x36149304: push eax */ 11291 ecx = eax + (-0x2); /* 0x36149305: lea ecx, [eax - 2] */ 11292 PUSH32(esp, eax); /* 0x36149308: push eax */ 11293 MEM32(ebp + (-0x18)) = ecx; /* 0x36149309: mov dword ptr [ebp - 0x18], ecx */ 11294 PUSH32(esp, ecx); /* 0x3614930C: push ecx */ 11295 ecx = esi; /* 0x3614930D: mov ecx, esi */ 11296 RECOMP_ICALL(0x36140900u); /* 0x3614930F: call 0x36140900 */ /* not lifted */ 11297 RECOMP_FLAGS_IN(); 11298 ecx = MEM32(esi + 0x8); /* 0x36149314: mov ecx, dword ptr [esi + 8] */ 11299 eax = ecx + (-0x2); /* 0x36149317: lea eax, [ecx - 2] */ 11300 /* cmp edi, eax */ /* 0x3614931A: cmp edi, eax */ 11301 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11302 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11303 _flag_k = FK_CMP; 11304 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614932F; /* 0x3614931C: je 0x3614932f */ 11305 L_3614931E: 11306 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x3614931E: mov dx, word ptr [eax - 2] */ 11307 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 11308 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11309 eax = eax - 2; /* 0x36149322: sub eax, 2 */ 11310 _flag_k = FK_CMP; 11311 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 11312 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11313 ecx = ecx - 2; /* 0x36149325: sub ecx, 2 */ 11314 _flag_k = FK_CMP; 11315 /* cmp eax, edi */ /* 0x36149328: cmp eax, edi */ 11316 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11317 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11318 _flag_k = FK_CMP; 11319 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x3614932A: mov word ptr [ecx], dx */ 11320 RECOMP_BACKEDGE(); 11321 if (CMP_NE(_flag_a, _flag_b)) goto L_3614931E; /* 0x3614932D: jne 0x3614931e */ 11322 L_3614932F: 11323 eax = edi + 0x2; /* 0x3614932F: lea eax, [edi + 2] */ 11324 /* cmp edi, eax */ /* 0x36149332: cmp edi, eax */ 11325 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11326 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11327 _flag_k = FK_CMP; 11328 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x36149334: je 0x36149344 */ 11329 L_36149336: 11330 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x36149336: mov cx, word ptr [ebp - 0x1e] */ 11331 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x3614933A: mov word ptr [edi], cx */ 11332 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 11333 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11334 edi = edi + 2; /* 0x3614933D: add edi, 2 */ 11335 _flag_k = FK_ADD; 11336 /* cmp edi, eax */ /* 0x36149340: cmp edi, eax */ 11337 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11338 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11339 _flag_k = FK_CMP; 11340 RECOMP_BACKEDGE(); 11341 if (CMP_NE(_flag_a, _flag_b)) goto L_36149336; /* 0x36149342: jne 0x36149336 */ 11342 L_36149344: 11343 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 11344 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11345 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x36149344: add dword ptr [esi + 8], 2 */ 11346 _flag_k = FK_ADD; 11347 L_36149348: 11348 esi = MEM32(ebx + 0x5C); /* 0x36149348: mov esi, dword ptr [ebx + 0x5c] */ 11349 eax = MEM32(esi + 0x8); /* 0x3614934B: mov eax, dword ptr [esi + 8] */ 11350 edx = MEM32(esi + 0xC); /* 0x3614934E: mov edx, dword ptr [esi + 0xc] */ 11351 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 11352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11353 edx = edx - eax; /* 0x36149351: sub edx, eax */ 11354 _flag_k = FK_CMP; 11355 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36149353: sar edx, 1 */ 11356 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11357 edx = (uint32_t)((int32_t)edx >> 1u); 11358 /* cmp edx, 1 */ /* 0x36149355: cmp edx, 1 */ 11359 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 11360 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11361 _flag_k = FK_CMP; 11362 edi = eax; /* 0x36149358: mov edi, eax */ 11363 if (CMP_AE(_flag_a, _flag_b)) goto L_36149410; /* 0x3614935A: jae 0x36149410 */ 11364 L_36149360: 11365 ecx = MEM32(esi + 0x4); /* 0x36149360: mov ecx, dword ptr [esi + 4] */ 11366 /* test ecx, ecx */ /* 0x36149363: test ecx, ecx */ 11367 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11368 _cf = 0; 11369 _flag_k = FK_TEST; 11370 if (TEST_Z(_flag_a, _flag_b)) goto L_3614937C; /* 0x36149365: je 0x3614937c */ 11371 L_36149367: 11372 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11373 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11374 eax = eax - ecx; /* 0x36149367: sub eax, ecx */ 11375 _flag_k = FK_CMP; 11376 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149369: sar eax, 1 */ 11377 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11378 eax = (uint32_t)((int32_t)eax >> 1u); 11379 /* cmp eax, 1 */ /* 0x3614936B: cmp eax, 1 */ 11380 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11381 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11382 _flag_k = FK_CMP; 11383 if (CMP_BE(_flag_a, _flag_b)) goto L_3614937C; /* 0x3614936E: jbe 0x3614937c */ 11384 L_36149370: 11385 ecx = esi; /* 0x36149370: mov ecx, esi */ 11386 RECOMP_ICALL(0x36140430u); /* 0x36149372: call 0x36140430 */ /* not lifted */ 11387 RECOMP_FLAGS_IN(); 11388 MEM32(ebp + (-0x10)) = eax; /* 0x36149377: mov dword ptr [ebp - 0x10], eax */ 11389 goto L_36149383; /* 0x3614937A: jmp 0x36149383 */ 11390 L_3614937C: 11391 MEM32(ebp + (-0x10)) = 1; /* 0x3614937C: mov dword ptr [ebp - 0x10], 1 */ 11392 L_36149383: 11393 ecx = esi; /* 0x36149383: mov ecx, esi */ 11394 RECOMP_ICALL(0x36140430u); /* 0x36149385: call 0x36140430 */ /* not lifted */ 11395 RECOMP_FLAGS_IN(); 11396 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 11397 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11398 eax = eax + MEM32(ebp + (-0x10)); /* 0x3614938A: add eax, dword ptr [ebp - 0x10] */ 11399 _flag_k = FK_ADD; 11400 MEM32(ebp + (-0x10)) = eax; /* 0x3614938D: mov dword ptr [ebp - 0x10], eax */ 11401 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149394; /* 0x36149390: jns 0x36149394 */ 11402 L_36149392: 11403 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11404 eax = 0; /* 0x36149392: xor eax, eax */ 11405 _cf = 0; 11406 _flag_k = FK_TEST; 11407 L_36149394: 11408 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11409 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11410 eax = eax + eax; /* 0x36149394: add eax, eax */ 11411 _flag_k = FK_ADD; 11412 PUSH32(esp, eax); /* 0x36149396: push eax */ 11413 RECOMP_ICALL(0x3615FD6Au); /* 0x36149397: call 0x3615fd6a */ /* not lifted */ 11414 RECOMP_FLAGS_IN(); 11415 ecx = MEM32(esi + 0x4); /* 0x3614939C: mov ecx, dword ptr [esi + 4] */ 11416 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11417 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11418 esp = esp + 4; /* 0x3614939F: add esp, 4 */ 11419 _flag_k = FK_ADD; 11420 PUSH32(esp, eax); /* 0x361493A2: push eax */ 11421 PUSH32(esp, edi); /* 0x361493A3: push edi */ 11422 PUSH32(esp, ecx); /* 0x361493A4: push ecx */ 11423 ecx = esi; /* 0x361493A5: mov ecx, esi */ 11424 MEM32(ebp + (-0x2C)) = eax; /* 0x361493A7: mov dword ptr [ebp - 0x2c], eax */ 11425 RECOMP_ICALL(0x36140900u); /* 0x361493AA: call 0x36140900 */ /* not lifted */ 11426 RECOMP_FLAGS_IN(); 11427 edx = ebp + (-0x26); /* 0x361493AF: lea edx, [ebp - 0x26] */ 11428 PUSH32(esp, edx); /* 0x361493B2: push edx */ 11429 PUSH32(esp, 1); /* 0x361493B3: push 1 */ 11430 PUSH32(esp, eax); /* 0x361493B5: push eax */ 11431 ecx = esi; /* 0x361493B6: mov ecx, esi */ 11432 MEM32(ebp + (-0x18)) = eax; /* 0x361493B8: mov dword ptr [ebp - 0x18], eax */ 11433 RECOMP_ICALL(0x3614A1F0u); /* 0x361493BB: call 0x3614a1f0 */ /* not lifted */ 11434 RECOMP_FLAGS_IN(); 11435 eax = MEM32(ebp + (-0x18)); /* 0x361493C0: mov eax, dword ptr [ebp - 0x18] */ 11436 ecx = MEM32(esi + 0x8); /* 0x361493C3: mov ecx, dword ptr [esi + 8] */ 11437 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 11438 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11439 eax = eax + 2; /* 0x361493C6: add eax, 2 */ 11440 _flag_k = FK_ADD; 11441 PUSH32(esp, eax); /* 0x361493C9: push eax */ 11442 PUSH32(esp, ecx); /* 0x361493CA: push ecx */ 11443 PUSH32(esp, edi); /* 0x361493CB: push edi */ 11444 ecx = esi; /* 0x361493CC: mov ecx, esi */ 11445 RECOMP_ICALL(0x36140900u); /* 0x361493CE: call 0x36140900 */ /* not lifted */ 11446 RECOMP_FLAGS_IN(); 11447 edx = MEM32(esi + 0x8); /* 0x361493D3: mov edx, dword ptr [esi + 8] */ 11448 eax = MEM32(esi + 0x4); /* 0x361493D6: mov eax, dword ptr [esi + 4] */ 11449 PUSH32(esp, edx); /* 0x361493D9: push edx */ 11450 PUSH32(esp, eax); /* 0x361493DA: push eax */ 11451 ecx = esi; /* 0x361493DB: mov ecx, esi */ 11452 RECOMP_ICALL(0x3610ED60u); /* 0x361493DD: call 0x3610ed60 */ /* not lifted */ 11453 RECOMP_FLAGS_IN(); 11454 eax = MEM32(esi + 0x4); /* 0x361493E2: mov eax, dword ptr [esi + 4] */ 11455 PUSH32(esp, eax); /* 0x361493E5: push eax */ 11456 RECOMP_ICALL(0x3615FCC4u); /* 0x361493E6: call 0x3615fcc4 */ /* not lifted */ 11457 RECOMP_FLAGS_IN(); 11458 ecx = MEM32(ebp + (-0x10)); /* 0x361493EB: mov ecx, dword ptr [ebp - 0x10] */ 11459 edi = MEM32(ebp + (-0x2C)); /* 0x361493EE: mov edi, dword ptr [ebp - 0x2c] */ 11460 edx = edi + ecx * 2; /* 0x361493F1: lea edx, [edi + ecx*2] */ 11461 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11462 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11463 esp = esp + 4; /* 0x361493F4: add esp, 4 */ 11464 _flag_k = FK_ADD; 11465 ecx = esi; /* 0x361493F7: mov ecx, esi */ 11466 MEM32(esi + 0xC) = edx; /* 0x361493F9: mov dword ptr [esi + 0xc], edx */ 11467 RECOMP_ICALL(0x36140430u); /* 0x361493FC: call 0x36140430 */ /* not lifted */ 11468 RECOMP_FLAGS_IN(); 11469 eax = edi + eax * 2 + 0x2; /* 0x36149401: lea eax, [edi + eax*2 + 2] */ 11470 MEM32(esi + 0x8) = eax; /* 0x36149405: mov dword ptr [esi + 8], eax */ 11471 MEM32(esi + 0x4) = edi; /* 0x36149408: mov dword ptr [esi + 4], edi */ 11472 goto L_361494A0; /* 0x3614940B: jmp 0x361494a0 */ 11473 L_36149410: 11474 ecx = eax; /* 0x36149410: mov ecx, eax */ 11475 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 11476 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11477 ecx = ecx - edi; /* 0x36149412: sub ecx, edi */ 11478 _flag_k = FK_CMP; 11479 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149414: sar ecx, 1 */ 11480 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11481 ecx = (uint32_t)((int32_t)ecx >> 1u); 11482 /* cmp ecx, 1 */ /* 0x36149416: cmp ecx, 1 */ 11483 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 11484 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11485 _flag_k = FK_CMP; 11486 if (CMP_AE(_flag_a, _flag_b)) goto L_3614945C; /* 0x36149419: jae 0x3614945c */ 11487 L_3614941B: 11488 ecx = edi + 0x2; /* 0x3614941B: lea ecx, [edi + 2] */ 11489 PUSH32(esp, ecx); /* 0x3614941E: push ecx */ 11490 PUSH32(esp, eax); /* 0x3614941F: push eax */ 11491 PUSH32(esp, edi); /* 0x36149420: push edi */ 11492 ecx = esi; /* 0x36149421: mov ecx, esi */ 11493 RECOMP_ICALL(0x36140900u); /* 0x36149423: call 0x36140900 */ /* not lifted */ 11494 RECOMP_FLAGS_IN(); 11495 eax = MEM32(esi + 0x8); /* 0x36149428: mov eax, dword ptr [esi + 8] */ 11496 ecx = eax; /* 0x3614942B: mov ecx, eax */ 11497 edx = ebp + (-0x26); /* 0x3614942D: lea edx, [ebp - 0x26] */ 11498 PUSH32(esp, edx); /* 0x36149430: push edx */ 11499 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 11500 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11501 ecx = ecx - edi; /* 0x36149431: sub ecx, edi */ 11502 _flag_k = FK_CMP; 11503 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149433: sar ecx, 1 */ 11504 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11505 ecx = (uint32_t)((int32_t)ecx >> 1u); 11506 edx = 1; /* 0x36149435: mov edx, 1 */ 11507 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 11508 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11509 edx = edx - ecx; /* 0x3614943A: sub edx, ecx */ 11510 _flag_k = FK_CMP; 11511 PUSH32(esp, edx); /* 0x3614943C: push edx */ 11512 PUSH32(esp, eax); /* 0x3614943D: push eax */ 11513 ecx = esi; /* 0x3614943E: mov ecx, esi */ 11514 RECOMP_ICALL(0x3614A1F0u); /* 0x36149440: call 0x3614a1f0 */ /* not lifted */ 11515 RECOMP_FLAGS_IN(); 11516 eax = MEM32(esi + 0x8); /* 0x36149445: mov eax, dword ptr [esi + 8] */ 11517 /* cmp edi, eax */ /* 0x36149448: cmp edi, eax */ 11518 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11519 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11520 _flag_k = FK_CMP; 11521 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614944A: je 0x3614949c */ 11522 L_3614944C: 11523 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614944C: mov cx, word ptr [ebp - 0x26] */ 11524 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149450: mov word ptr [edi], cx */ 11525 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 11526 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11527 edi = edi + 2; /* 0x36149453: add edi, 2 */ 11528 _flag_k = FK_ADD; 11529 /* cmp edi, eax */ /* 0x36149456: cmp edi, eax */ 11530 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11531 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11532 _flag_k = FK_CMP; 11533 RECOMP_BACKEDGE(); 11534 if (CMP_NE(_flag_a, _flag_b)) goto L_3614944C; /* 0x36149458: jne 0x3614944c */ 11535 L_3614945A: 11536 goto L_3614949C; /* 0x3614945A: jmp 0x3614949c */ 11537 L_3614945C: 11538 PUSH32(esp, eax); /* 0x3614945C: push eax */ 11539 ecx = eax + (-0x2); /* 0x3614945D: lea ecx, [eax - 2] */ 11540 PUSH32(esp, eax); /* 0x36149460: push eax */ 11541 MEM32(ebp + (-0x18)) = ecx; /* 0x36149461: mov dword ptr [ebp - 0x18], ecx */ 11542 PUSH32(esp, ecx); /* 0x36149464: push ecx */ 11543 ecx = esi; /* 0x36149465: mov ecx, esi */ 11544 RECOMP_ICALL(0x36140900u); /* 0x36149467: call 0x36140900 */ /* not lifted */ 11545 RECOMP_FLAGS_IN(); 11546 ecx = MEM32(esi + 0x8); /* 0x3614946C: mov ecx, dword ptr [esi + 8] */ 11547 eax = ecx + (-0x2); /* 0x3614946F: lea eax, [ecx - 2] */ 11548 /* cmp edi, eax */ /* 0x36149472: cmp edi, eax */ 11549 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11550 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11551 _flag_k = FK_CMP; 11552 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149487; /* 0x36149474: je 0x36149487 */ 11553 L_36149476: 11554 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x36149476: mov dx, word ptr [eax - 2] */ 11555 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 11556 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11557 eax = eax - 2; /* 0x3614947A: sub eax, 2 */ 11558 _flag_k = FK_CMP; 11559 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 11560 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11561 ecx = ecx - 2; /* 0x3614947D: sub ecx, 2 */ 11562 _flag_k = FK_CMP; 11563 /* cmp eax, edi */ /* 0x36149480: cmp eax, edi */ 11564 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11565 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11566 _flag_k = FK_CMP; 11567 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x36149482: mov word ptr [ecx], dx */ 11568 RECOMP_BACKEDGE(); 11569 if (CMP_NE(_flag_a, _flag_b)) goto L_36149476; /* 0x36149485: jne 0x36149476 */ 11570 L_36149487: 11571 eax = edi + 0x2; /* 0x36149487: lea eax, [edi + 2] */ 11572 /* cmp edi, eax */ /* 0x3614948A: cmp edi, eax */ 11573 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11575 _flag_k = FK_CMP; 11576 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614948C: je 0x3614949c */ 11577 L_3614948E: 11578 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614948E: mov cx, word ptr [ebp - 0x26] */ 11579 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149492: mov word ptr [edi], cx */ 11580 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 11581 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11582 edi = edi + 2; /* 0x36149495: add edi, 2 */ 11583 _flag_k = FK_ADD; 11584 /* cmp edi, eax */ /* 0x36149498: cmp edi, eax */ 11585 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11586 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11587 _flag_k = FK_CMP; 11588 RECOMP_BACKEDGE(); 11589 if (CMP_NE(_flag_a, _flag_b)) goto L_3614948E; /* 0x3614949A: jne 0x3614948e */ 11590 L_3614949C: 11591 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 11592 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11593 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x3614949C: add dword ptr [esi + 8], 2 */ 11594 _flag_k = FK_ADD; 11595 L_361494A0: 11596 eax = MEM32(ebp + (-0x14)); /* 0x361494A0: mov eax, dword ptr [ebp - 0x14] */ 11597 edx = MEM32(ebp + (-0x64)); /* 0x361494A3: mov edx, dword ptr [ebp - 0x64] */ 11598 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11599 eax = eax + 1; /* 0x361494A6: inc eax */ 11600 _flag_k = FK_INC; 11601 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 11602 edx = edx & 0xFFu; /* 0x361494A7: and edx, 0xff */ 11603 _cf = 0; 11604 _flag_k = FK_TEST; 11605 /* cmp eax, edx */ /* 0x361494AD: cmp eax, edx */ 11606 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 11607 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11608 _flag_k = FK_CMP; 11609 MEM32(ebp + (-0x14)) = eax; /* 0x361494AF: mov dword ptr [ebp - 0x14], eax */ 11610 RECOMP_BACKEDGE(); 11611 if (CMP_B(_flag_a, _flag_b)) goto L_361491D9; /* 0x361494B2: jb 0x361491d9 */ 11612 L_361494B8: 11613 SET_LO8(eax, MEM8(ebp + (-0x4C))); /* 0x361494B8: mov al, byte ptr [ebp - 0x4c] */ 11614 /* test LO8(eax), LO8(eax) */ /* 0x361494BB: test al, al */ 11615 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11616 _cf = 0; 11617 _flag_k = FK_NARROW(FK_TEST, 24); 11618 MEM32(ebp + (-0x10)) = 0; /* 0x361494BD: mov dword ptr [ebp - 0x10], 0 */ 11619 if (TEST_Z(_flag_a, _flag_b)) goto L_361496AB; /* 0x361494C4: jbe 0x361496ab */ 11620 L_361494CA: 11621 ecx = ebp + (-0x84); /* 0x361494CA: lea ecx, [ebp - 0x84] */ 11622 RECOMP_ICALL(0x3602F750u); /* 0x361494D0: call 0x3602f750 */ /* not lifted */ 11623 RECOMP_FLAGS_IN(); 11624 ecx = MEM32(ebp + 0x8); /* 0x361494D5: mov ecx, dword ptr [ebp + 8] */ 11625 eax = ebp + (-0x84); /* 0x361494D8: lea eax, [ebp - 0x84] */ 11626 PUSH32(esp, eax); /* 0x361494DE: push eax */ 11627 PUSH32(esp, ecx); /* 0x361494DF: push ecx */ 11628 MEM32(ebp + (-0x4)) = 0; /* 0x361494E0: mov dword ptr [ebp - 4], 0 */ 11629 RECOMP_ICALL(0x3602F810u); /* 0x361494E7: call 0x3602f810 */ /* not lifted */ 11630 RECOMP_FLAGS_IN(); 11631 esi = MEM32(ebx + 0x50); /* 0x361494EC: mov esi, dword ptr [ebx + 0x50] */ 11632 ecx = MEM32(esi + 0x8); /* 0x361494EF: mov ecx, dword ptr [esi + 8] */ 11633 edx = MEM32(esi + 0xC); /* 0x361494F2: mov edx, dword ptr [esi + 0xc] */ 11634 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 11635 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11636 edx = edx - ecx; /* 0x361494F5: sub edx, ecx */ 11637 _flag_k = FK_CMP; 11638 eax = 0x66666667u; /* 0x361494F7: mov eax, 0x66666667 */ 11639 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361494FC: imul edx */ 11640 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 11641 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 11642 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361494FE: sar edx, 3 */ 11643 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11644 edx = (uint32_t)((int32_t)edx >> 3u); 11645 eax = edx; /* 0x36149501: mov eax, edx */ 11646 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149503: shr eax, 0x1f */ 11647 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11648 eax = eax >> 31u; /* 0x36149503: shr eax, 0x1f */ 11649 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 11650 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11651 edx = edx + eax; /* 0x36149506: add edx, eax */ 11652 _flag_k = FK_ADD; 11653 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11654 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11655 esp = esp + 8; /* 0x36149508: add esp, 8 */ 11656 _flag_k = FK_ADD; 11657 /* cmp edx, 1 */ /* 0x3614950B: cmp edx, 1 */ 11658 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 11659 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11660 _flag_k = FK_CMP; 11661 edi = ecx; /* 0x3614950E: mov edi, ecx */ 11662 if (CMP_AE(_flag_a, _flag_b)) goto L_361495E2; /* 0x36149510: jae 0x361495e2 */ 11663 L_36149516: 11664 eax = MEM32(esi + 0x4); /* 0x36149516: mov eax, dword ptr [esi + 4] */ 11665 /* test eax, eax */ /* 0x36149519: test eax, eax */ 11666 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11667 _cf = 0; 11668 _flag_k = FK_TEST; 11669 if (TEST_Z(_flag_a, _flag_b)) goto L_36149541; /* 0x3614951B: je 0x36149541 */ 11670 L_3614951D: 11671 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 11672 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11673 ecx = ecx - eax; /* 0x3614951D: sub ecx, eax */ 11674 _flag_k = FK_CMP; 11675 eax = 0x66666667u; /* 0x3614951F: mov eax, 0x66666667 */ 11676 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149524: imul ecx */ 11677 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 11678 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 11679 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149526: sar edx, 3 */ 11680 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11681 edx = (uint32_t)((int32_t)edx >> 3u); 11682 ecx = edx; /* 0x36149529: mov ecx, edx */ 11683 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614952B: shr ecx, 0x1f */ 11684 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11685 ecx = ecx >> 31u; /* 0x3614952B: shr ecx, 0x1f */ 11686 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 11687 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11688 edx = edx + ecx; /* 0x3614952E: add edx, ecx */ 11689 _flag_k = FK_ADD; 11690 /* cmp edx, 1 */ /* 0x36149530: cmp edx, 1 */ 11691 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 11692 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11693 _flag_k = FK_CMP; 11694 if (CMP_BE(_flag_a, _flag_b)) goto L_36149541; /* 0x36149533: jbe 0x36149541 */ 11695 L_36149535: 11696 ecx = esi; /* 0x36149535: mov ecx, esi */ 11697 RECOMP_ICALL(0x36149DC0u); /* 0x36149537: call 0x36149dc0 */ /* not lifted */ 11698 RECOMP_FLAGS_IN(); 11699 MEM32(ebp + (-0x14)) = eax; /* 0x3614953C: mov dword ptr [ebp - 0x14], eax */ 11700 goto L_36149548; /* 0x3614953F: jmp 0x36149548 */ 11701 L_36149541: 11702 MEM32(ebp + (-0x14)) = 1; /* 0x36149541: mov dword ptr [ebp - 0x14], 1 */ 11703 L_36149548: 11704 ecx = esi; /* 0x36149548: mov ecx, esi */ 11705 RECOMP_ICALL(0x36149DC0u); /* 0x3614954A: call 0x36149dc0 */ /* not lifted */ 11706 RECOMP_FLAGS_IN(); 11707 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 11708 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11709 eax = eax + MEM32(ebp + (-0x14)); /* 0x3614954F: add eax, dword ptr [ebp - 0x14] */ 11710 _flag_k = FK_ADD; 11711 MEM32(ebp + (-0x2C)) = eax; /* 0x36149552: mov dword ptr [ebp - 0x2c], eax */ 11712 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149559; /* 0x36149555: jns 0x36149559 */ 11713 L_36149557: 11714 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11715 eax = 0; /* 0x36149557: xor eax, eax */ 11716 _cf = 0; 11717 _flag_k = FK_TEST; 11718 L_36149559: 11719 edx = eax + eax * 4; /* 0x36149559: lea edx, [eax + eax*4] */ 11720 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614955C: shl edx, 2 */ 11721 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11722 edx = edx << 2u; /* 0x3614955C: shl edx, 2 */ 11723 PUSH32(esp, edx); /* 0x3614955F: push edx */ 11724 RECOMP_ICALL(0x3615FD6Au); /* 0x36149560: call 0x3615fd6a */ /* not lifted */ 11725 RECOMP_FLAGS_IN(); 11726 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11727 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11728 esp = esp + 4; /* 0x36149565: add esp, 4 */ 11729 _flag_k = FK_ADD; 11730 PUSH32(esp, eax); /* 0x36149568: push eax */ 11731 MEM32(ebp + (-0x14)) = eax; /* 0x36149569: mov dword ptr [ebp - 0x14], eax */ 11732 eax = MEM32(esi + 0x4); /* 0x3614956C: mov eax, dword ptr [esi + 4] */ 11733 PUSH32(esp, edi); /* 0x3614956F: push edi */ 11734 PUSH32(esp, eax); /* 0x36149570: push eax */ 11735 ecx = esi; /* 0x36149571: mov ecx, esi */ 11736 RECOMP_ICALL(0x36149E20u); /* 0x36149573: call 0x36149e20 */ /* not lifted */ 11737 RECOMP_FLAGS_IN(); 11738 ecx = ebp + (-0x84); /* 0x36149578: lea ecx, [ebp - 0x84] */ 11739 PUSH32(esp, ecx); /* 0x3614957E: push ecx */ 11740 PUSH32(esp, 1); /* 0x3614957F: push 1 */ 11741 PUSH32(esp, eax); /* 0x36149581: push eax */ 11742 ecx = esi; /* 0x36149582: mov ecx, esi */ 11743 MEM32(ebp + (-0x18)) = eax; /* 0x36149584: mov dword ptr [ebp - 0x18], eax */ 11744 RECOMP_ICALL(0x3614A190u); /* 0x36149587: call 0x3614a190 */ /* not lifted */ 11745 RECOMP_FLAGS_IN(); 11746 edx = MEM32(ebp + (-0x18)); /* 0x3614958C: mov edx, dword ptr [ebp - 0x18] */ 11747 eax = MEM32(esi + 0x8); /* 0x3614958F: mov eax, dword ptr [esi + 8] */ 11748 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u); 11749 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11750 edx = edx + 0x14u; /* 0x36149592: add edx, 0x14 */ 11751 _flag_k = FK_ADD; 11752 PUSH32(esp, edx); /* 0x36149595: push edx */ 11753 PUSH32(esp, eax); /* 0x36149596: push eax */ 11754 PUSH32(esp, edi); /* 0x36149597: push edi */ 11755 ecx = esi; /* 0x36149598: mov ecx, esi */ 11756 RECOMP_ICALL(0x36149E20u); /* 0x3614959A: call 0x36149e20 */ /* not lifted */ 11757 RECOMP_FLAGS_IN(); 11758 ecx = MEM32(esi + 0x8); /* 0x3614959F: mov ecx, dword ptr [esi + 8] */ 11759 edx = MEM32(esi + 0x4); /* 0x361495A2: mov edx, dword ptr [esi + 4] */ 11760 PUSH32(esp, ecx); /* 0x361495A5: push ecx */ 11761 PUSH32(esp, edx); /* 0x361495A6: push edx */ 11762 ecx = esi; /* 0x361495A7: mov ecx, esi */ 11763 RECOMP_ICALL(0x36149DF0u); /* 0x361495A9: call 0x36149df0 */ /* not lifted */ 11764 RECOMP_FLAGS_IN(); 11765 eax = MEM32(esi + 0x4); /* 0x361495AE: mov eax, dword ptr [esi + 4] */ 11766 PUSH32(esp, eax); /* 0x361495B1: push eax */ 11767 RECOMP_ICALL(0x3615FCC4u); /* 0x361495B2: call 0x3615fcc4 */ /* not lifted */ 11768 RECOMP_FLAGS_IN(); 11769 eax = MEM32(ebp + (-0x2C)); /* 0x361495B7: mov eax, dword ptr [ebp - 0x2c] */ 11770 edi = MEM32(ebp + (-0x14)); /* 0x361495BA: mov edi, dword ptr [ebp - 0x14] */ 11771 eax = eax + eax * 4; /* 0x361495BD: lea eax, [eax + eax*4] */ 11772 ecx = edi + eax * 4; /* 0x361495C0: lea ecx, [edi + eax*4] */ 11773 MEM32(esi + 0xC) = ecx; /* 0x361495C3: mov dword ptr [esi + 0xc], ecx */ 11774 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11775 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11776 esp = esp + 4; /* 0x361495C6: add esp, 4 */ 11777 _flag_k = FK_ADD; 11778 ecx = esi; /* 0x361495C9: mov ecx, esi */ 11779 RECOMP_ICALL(0x36149DC0u); /* 0x361495CB: call 0x36149dc0 */ /* not lifted */ 11780 RECOMP_FLAGS_IN(); 11781 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11782 eax = eax + 1; /* 0x361495D0: inc eax */ 11783 _flag_k = FK_INC; 11784 edx = eax + eax * 4; /* 0x361495D1: lea edx, [eax + eax*4] */ 11785 eax = edi + edx * 4; /* 0x361495D4: lea eax, [edi + edx*4] */ 11786 MEM32(esi + 0x8) = eax; /* 0x361495D7: mov dword ptr [esi + 8], eax */ 11787 MEM32(esi + 0x4) = edi; /* 0x361495DA: mov dword ptr [esi + 4], edi */ 11788 goto L_36149681; /* 0x361495DD: jmp 0x36149681 */ 11789 L_361495E2: 11790 edx = ecx; /* 0x361495E2: mov edx, ecx */ 11791 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 11792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11793 edx = edx - edi; /* 0x361495E4: sub edx, edi */ 11794 _flag_k = FK_CMP; 11795 eax = 0x66666667u; /* 0x361495E6: mov eax, 0x66666667 */ 11796 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361495EB: imul edx */ 11797 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 11798 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 11799 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361495ED: sar edx, 3 */ 11800 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11801 edx = (uint32_t)((int32_t)edx >> 3u); 11802 eax = edx; /* 0x361495F0: mov eax, edx */ 11803 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361495F2: shr eax, 0x1f */ 11804 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11805 eax = eax >> 31u; /* 0x361495F2: shr eax, 0x1f */ 11806 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 11807 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11808 edx = edx + eax; /* 0x361495F5: add edx, eax */ 11809 _flag_k = FK_ADD; 11810 /* cmp edx, 1 */ /* 0x361495F7: cmp edx, 1 */ 11811 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 11812 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11813 _flag_k = FK_CMP; 11814 if (CMP_AE(_flag_a, _flag_b)) goto L_3614964E; /* 0x361495FA: jae 0x3614964e */ 11815 L_361495FC: 11816 edx = edi + 0x14; /* 0x361495FC: lea edx, [edi + 0x14] */ 11817 PUSH32(esp, edx); /* 0x361495FF: push edx */ 11818 PUSH32(esp, ecx); /* 0x36149600: push ecx */ 11819 PUSH32(esp, edi); /* 0x36149601: push edi */ 11820 ecx = esi; /* 0x36149602: mov ecx, esi */ 11821 RECOMP_ICALL(0x36149E20u); /* 0x36149604: call 0x36149e20 */ /* not lifted */ 11822 RECOMP_FLAGS_IN(); 11823 ecx = MEM32(esi + 0x8); /* 0x36149609: mov ecx, dword ptr [esi + 8] */ 11824 eax = ebp + (-0x84); /* 0x3614960C: lea eax, [ebp - 0x84] */ 11825 PUSH32(esp, eax); /* 0x36149612: push eax */ 11826 edx = ecx; /* 0x36149613: mov edx, ecx */ 11827 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 11828 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11829 edx = edx - edi; /* 0x36149615: sub edx, edi */ 11830 _flag_k = FK_CMP; 11831 eax = 0x66666667u; /* 0x36149617: mov eax, 0x66666667 */ 11832 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3614961C: imul edx */ 11833 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 11834 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 11835 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3614961E: sar edx, 3 */ 11836 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11837 edx = (uint32_t)((int32_t)edx >> 3u); 11838 eax = edx; /* 0x36149621: mov eax, edx */ 11839 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149623: shr eax, 0x1f */ 11840 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11841 eax = eax >> 31u; /* 0x36149623: shr eax, 0x1f */ 11842 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 11843 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11844 edx = edx + eax; /* 0x36149626: add edx, eax */ 11845 _flag_k = FK_ADD; 11846 eax = 1; /* 0x36149628: mov eax, 1 */ 11847 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 11848 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11849 eax = eax - edx; /* 0x3614962D: sub eax, edx */ 11850 _flag_k = FK_CMP; 11851 PUSH32(esp, eax); /* 0x3614962F: push eax */ 11852 PUSH32(esp, ecx); /* 0x36149630: push ecx */ 11853 ecx = esi; /* 0x36149631: mov ecx, esi */ 11854 RECOMP_ICALL(0x3614A190u); /* 0x36149633: call 0x3614a190 */ /* not lifted */ 11855 RECOMP_FLAGS_IN(); 11856 edx = MEM32(esi + 0x8); /* 0x36149638: mov edx, dword ptr [esi + 8] */ 11857 ecx = ebp + (-0x84); /* 0x3614963B: lea ecx, [ebp - 0x84] */ 11858 PUSH32(esp, ecx); /* 0x36149641: push ecx */ 11859 PUSH32(esp, edx); /* 0x36149642: push edx */ 11860 PUSH32(esp, edi); /* 0x36149643: push edi */ 11861 RECOMP_ICALL(0x3614A2A0u); /* 0x36149644: call 0x3614a2a0 */ /* not lifted */ 11862 RECOMP_FLAGS_IN(); 11863 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 11864 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11865 esp = esp + 0xCu; /* 0x36149649: add esp, 0xc */ 11866 _flag_k = FK_ADD; 11867 goto L_3614967D; /* 0x3614964C: jmp 0x3614967d */ 11868 L_3614964E: 11869 PUSH32(esp, ecx); /* 0x3614964E: push ecx */ 11870 PUSH32(esp, ecx); /* 0x3614964F: push ecx */ 11871 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu); 11872 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11873 ecx = ecx + 0xFFFFFFECu; /* 0x36149650: add ecx, -0x14 */ 11874 _flag_k = FK_ADD; 11875 PUSH32(esp, ecx); /* 0x36149653: push ecx */ 11876 ecx = esi; /* 0x36149654: mov ecx, esi */ 11877 RECOMP_ICALL(0x36149E20u); /* 0x36149656: call 0x36149e20 */ /* not lifted */ 11878 RECOMP_FLAGS_IN(); 11879 eax = MEM32(esi + 0x8); /* 0x3614965B: mov eax, dword ptr [esi + 8] */ 11880 PUSH32(esp, eax); /* 0x3614965E: push eax */ 11881 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu); 11882 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11883 eax = eax + 0xFFFFFFECu; /* 0x3614965F: add eax, -0x14 */ 11884 _flag_k = FK_ADD; 11885 PUSH32(esp, eax); /* 0x36149662: push eax */ 11886 PUSH32(esp, edi); /* 0x36149663: push edi */ 11887 RECOMP_ICALL(0x3614A2D0u); /* 0x36149664: call 0x3614a2d0 */ /* not lifted */ 11888 RECOMP_FLAGS_IN(); 11889 eax = ebp + (-0x84); /* 0x36149669: lea eax, [ebp - 0x84] */ 11890 PUSH32(esp, eax); /* 0x3614966F: push eax */ 11891 ecx = edi + 0x14; /* 0x36149670: lea ecx, [edi + 0x14] */ 11892 PUSH32(esp, ecx); /* 0x36149673: push ecx */ 11893 PUSH32(esp, edi); /* 0x36149674: push edi */ 11894 RECOMP_ICALL(0x3614A2A0u); /* 0x36149675: call 0x3614a2a0 */ /* not lifted */ 11895 RECOMP_FLAGS_IN(); 11896 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 11897 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11898 esp = esp + 0x18u; /* 0x3614967A: add esp, 0x18 */ 11899 _flag_k = FK_ADD; 11900 L_3614967D: 11901 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x14u); 11902 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11903 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x14u; /* 0x3614967D: add dword ptr [esi + 8], 0x14 */ 11904 _flag_k = FK_ADD; 11905 L_36149681: 11906 ecx = ebp + (-0x84); /* 0x36149681: lea ecx, [ebp - 0x84] */ 11907 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149687: mov dword ptr [ebp - 4], 0xffffffff */ 11908 RECOMP_ICALL(0x3602F7D0u); /* 0x3614968E: call 0x3602f7d0 */ /* not lifted */ 11909 RECOMP_FLAGS_IN(); 11910 eax = MEM32(ebp + (-0x10)); /* 0x36149693: mov eax, dword ptr [ebp - 0x10] */ 11911 edx = MEM32(ebp + (-0x4C)); /* 0x36149696: mov edx, dword ptr [ebp - 0x4c] */ 11912 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11913 eax = eax + 1; /* 0x36149699: inc eax */ 11914 _flag_k = FK_INC; 11915 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 11916 edx = edx & 0xFFu; /* 0x3614969A: and edx, 0xff */ 11917 _cf = 0; 11918 _flag_k = FK_TEST; 11919 /* cmp eax, edx */ /* 0x361496A0: cmp eax, edx */ 11920 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 11921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11922 _flag_k = FK_CMP; 11923 MEM32(ebp + (-0x10)) = eax; /* 0x361496A2: mov dword ptr [ebp - 0x10], eax */ 11924 RECOMP_BACKEDGE(); 11925 if (CMP_L(_flag_a, _flag_b)) goto L_361494CA; /* 0x361496A5: jl 0x361494ca */ 11926 L_361496AB: 11927 SET_LO8(eax, MEM8(ebp + (-0x50))); /* 0x361496AB: mov al, byte ptr [ebp - 0x50] */ 11928 /* test LO8(eax), LO8(eax) */ /* 0x361496AE: test al, al */ 11929 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11930 _cf = 0; 11931 _flag_k = FK_NARROW(FK_TEST, 24); 11932 MEM32(ebp + (-0x14)) = 0; /* 0x361496B0: mov dword ptr [ebp - 0x14], 0 */ 11933 if (TEST_Z(_flag_a, _flag_b)) goto L_361498AA; /* 0x361496B7: jbe 0x361498aa */ 11934 L_361496BD: 11935 ecx = ebp + (-0xAC); /* 0x361496BD: lea ecx, [ebp - 0xac] */ 11936 RECOMP_ICALL(0x3602F870u); /* 0x361496C3: call 0x3602f870 */ /* not lifted */ 11937 RECOMP_FLAGS_IN(); 11938 ecx = MEM32(ebp + 0x8); /* 0x361496C8: mov ecx, dword ptr [ebp + 8] */ 11939 eax = ebp + (-0xAC); /* 0x361496CB: lea eax, [ebp - 0xac] */ 11940 PUSH32(esp, eax); /* 0x361496D1: push eax */ 11941 PUSH32(esp, ecx); /* 0x361496D2: push ecx */ 11942 MEM32(ebp + (-0x4)) = 1; /* 0x361496D3: mov dword ptr [ebp - 4], 1 */ 11943 RECOMP_ICALL(0x3602F9B0u); /* 0x361496DA: call 0x3602f9b0 */ /* not lifted */ 11944 RECOMP_FLAGS_IN(); 11945 esi = MEM32(ebx + 0x54); /* 0x361496DF: mov esi, dword ptr [ebx + 0x54] */ 11946 ecx = MEM32(esi + 0x8); /* 0x361496E2: mov ecx, dword ptr [esi + 8] */ 11947 edx = MEM32(esi + 0xC); /* 0x361496E5: mov edx, dword ptr [esi + 0xc] */ 11948 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 11949 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11950 edx = edx - ecx; /* 0x361496E8: sub edx, ecx */ 11951 _flag_k = FK_CMP; 11952 MEM32(ebp + (-0x18)) = edx; /* 0x361496EA: mov dword ptr [ebp - 0x18], edx */ 11953 eax = 0x88888889u; /* 0x361496ED: mov eax, 0x88888889 */ 11954 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361496F2: imul edx */ 11955 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 11956 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 11957 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 11958 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11959 edx = edx + MEM32(ebp + (-0x18)); /* 0x361496F4: add edx, dword ptr [ebp - 0x18] */ 11960 _flag_k = FK_ADD; 11961 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361496F7: sar edx, 5 */ 11962 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11963 edx = (uint32_t)((int32_t)edx >> 5u); 11964 eax = edx; /* 0x361496FA: mov eax, edx */ 11965 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361496FC: shr eax, 0x1f */ 11966 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11967 eax = eax >> 31u; /* 0x361496FC: shr eax, 0x1f */ 11968 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 11969 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11970 edx = edx + eax; /* 0x361496FF: add edx, eax */ 11971 _flag_k = FK_ADD; 11972 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11973 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11974 esp = esp + 8; /* 0x36149701: add esp, 8 */ 11975 _flag_k = FK_ADD; 11976 /* cmp edx, 1 */ /* 0x36149704: cmp edx, 1 */ 11977 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 11978 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11979 _flag_k = FK_CMP; 11980 edi = ecx; /* 0x36149707: mov edi, ecx */ 11981 if (CMP_AE(_flag_a, _flag_b)) goto L_361497D8; /* 0x36149709: jae 0x361497d8 */ 11982 L_3614970F: 11983 eax = MEM32(esi + 0x4); /* 0x3614970F: mov eax, dword ptr [esi + 4] */ 11984 /* test eax, eax */ /* 0x36149712: test eax, eax */ 11985 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11986 _cf = 0; 11987 _flag_k = FK_TEST; 11988 if (TEST_Z(_flag_a, _flag_b)) goto L_36149732; /* 0x36149714: je 0x36149732 */ 11989 L_36149716: 11990 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 11991 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11992 ecx = ecx - eax; /* 0x36149716: sub ecx, eax */ 11993 _flag_k = FK_CMP; 11994 eax = 0x88888889u; /* 0x36149718: mov eax, 0x88888889 */ 11995 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3614971D: imul ecx */ 11996 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 11997 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 11998 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 11999 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12000 edx = edx + ecx; /* 0x3614971F: add edx, ecx */ 12001 _flag_k = FK_ADD; 12002 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36149721: sar edx, 5 */ 12003 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12004 edx = (uint32_t)((int32_t)edx >> 5u); 12005 ecx = edx; /* 0x36149724: mov ecx, edx */ 12006 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36149726: shr ecx, 0x1f */ 12007 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12008 ecx = ecx >> 31u; /* 0x36149726: shr ecx, 0x1f */ 12009 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 12010 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12011 edx = edx + ecx; /* 0x36149729: add edx, ecx */ 12012 _flag_k = FK_ADD; 12013 /* cmp edx, 1 */ /* 0x3614972B: cmp edx, 1 */ 12014 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 12015 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12016 _flag_k = FK_CMP; 12017 ebx = edx; /* 0x3614972E: mov ebx, edx */ 12018 if (CMP_A(_flag_a, _flag_b)) goto L_36149737; /* 0x36149730: ja 0x36149737 */ 12019 L_36149732: 12020 ebx = 1; /* 0x36149732: mov ebx, 1 */ 12021 L_36149737: 12022 ecx = esi; /* 0x36149737: mov ecx, esi */ 12023 RECOMP_ICALL(0x36149E90u); /* 0x36149739: call 0x36149e90 */ /* not lifted */ 12024 RECOMP_FLAGS_IN(); 12025 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 12026 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12027 eax = eax + ebx; /* 0x3614973E: add eax, ebx */ 12028 _flag_k = FK_ADD; 12029 MEM32(ebp + (-0x2C)) = eax; /* 0x36149740: mov dword ptr [ebp - 0x2c], eax */ 12030 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149747; /* 0x36149743: jns 0x36149747 */ 12031 L_36149745: 12032 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12033 eax = 0; /* 0x36149745: xor eax, eax */ 12034 _cf = 0; 12035 _flag_k = FK_TEST; 12036 L_36149747: 12037 eax = eax + eax * 2; /* 0x36149747: lea eax, [eax + eax*2] */ 12038 edx = eax + eax * 4; /* 0x3614974A: lea edx, [eax + eax*4] */ 12039 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614974D: shl edx, 2 */ 12040 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12041 edx = edx << 2u; /* 0x3614974D: shl edx, 2 */ 12042 PUSH32(esp, edx); /* 0x36149750: push edx */ 12043 RECOMP_ICALL(0x3615FD6Au); /* 0x36149751: call 0x3615fd6a */ /* not lifted */ 12044 RECOMP_FLAGS_IN(); 12045 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12046 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12047 esp = esp + 4; /* 0x36149756: add esp, 4 */ 12048 _flag_k = FK_ADD; 12049 ebx = eax; /* 0x36149759: mov ebx, eax */ 12050 eax = MEM32(esi + 0x4); /* 0x3614975B: mov eax, dword ptr [esi + 4] */ 12051 PUSH32(esp, ebx); /* 0x3614975E: push ebx */ 12052 PUSH32(esp, edi); /* 0x3614975F: push edi */ 12053 PUSH32(esp, eax); /* 0x36149760: push eax */ 12054 ecx = esi; /* 0x36149761: mov ecx, esi */ 12055 RECOMP_ICALL(0x36149EF0u); /* 0x36149763: call 0x36149ef0 */ /* not lifted */ 12056 RECOMP_FLAGS_IN(); 12057 ecx = ebp + (-0xAC); /* 0x36149768: lea ecx, [ebp - 0xac] */ 12058 PUSH32(esp, ecx); /* 0x3614976E: push ecx */ 12059 PUSH32(esp, 1); /* 0x3614976F: push 1 */ 12060 PUSH32(esp, eax); /* 0x36149771: push eax */ 12061 ecx = esi; /* 0x36149772: mov ecx, esi */ 12062 MEM32(ebp + (-0x18)) = eax; /* 0x36149774: mov dword ptr [ebp - 0x18], eax */ 12063 RECOMP_ICALL(0x3614A1C0u); /* 0x36149777: call 0x3614a1c0 */ /* not lifted */ 12064 RECOMP_FLAGS_IN(); 12065 edx = MEM32(ebp + (-0x18)); /* 0x3614977C: mov edx, dword ptr [ebp - 0x18] */ 12066 eax = MEM32(esi + 0x8); /* 0x3614977F: mov eax, dword ptr [esi + 8] */ 12067 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x3Cu); 12068 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12069 edx = edx + 0x3Cu; /* 0x36149782: add edx, 0x3c */ 12070 _flag_k = FK_ADD; 12071 PUSH32(esp, edx); /* 0x36149785: push edx */ 12072 PUSH32(esp, eax); /* 0x36149786: push eax */ 12073 PUSH32(esp, edi); /* 0x36149787: push edi */ 12074 ecx = esi; /* 0x36149788: mov ecx, esi */ 12075 RECOMP_ICALL(0x36149EF0u); /* 0x3614978A: call 0x36149ef0 */ /* not lifted */ 12076 RECOMP_FLAGS_IN(); 12077 ecx = MEM32(esi + 0x8); /* 0x3614978F: mov ecx, dword ptr [esi + 8] */ 12078 edx = MEM32(esi + 0x4); /* 0x36149792: mov edx, dword ptr [esi + 4] */ 12079 PUSH32(esp, ecx); /* 0x36149795: push ecx */ 12080 PUSH32(esp, edx); /* 0x36149796: push edx */ 12081 ecx = esi; /* 0x36149797: mov ecx, esi */ 12082 RECOMP_ICALL(0x36149EC0u); /* 0x36149799: call 0x36149ec0 */ /* not lifted */ 12083 RECOMP_FLAGS_IN(); 12084 eax = MEM32(esi + 0x4); /* 0x3614979E: mov eax, dword ptr [esi + 4] */ 12085 PUSH32(esp, eax); /* 0x361497A1: push eax */ 12086 RECOMP_ICALL(0x3615FCC4u); /* 0x361497A2: call 0x3615fcc4 */ /* not lifted */ 12087 RECOMP_FLAGS_IN(); 12088 eax = MEM32(ebp + (-0x2C)); /* 0x361497A7: mov eax, dword ptr [ebp - 0x2c] */ 12089 eax = eax + eax * 2; /* 0x361497AA: lea eax, [eax + eax*2] */ 12090 eax = eax + eax * 4; /* 0x361497AD: lea eax, [eax + eax*4] */ 12091 ecx = ebx + eax * 4; /* 0x361497B0: lea ecx, [ebx + eax*4] */ 12092 MEM32(esi + 0xC) = ecx; /* 0x361497B3: mov dword ptr [esi + 0xc], ecx */ 12093 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12094 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12095 esp = esp + 4; /* 0x361497B6: add esp, 4 */ 12096 _flag_k = FK_ADD; 12097 ecx = esi; /* 0x361497B9: mov ecx, esi */ 12098 RECOMP_ICALL(0x36149E90u); /* 0x361497BB: call 0x36149e90 */ /* not lifted */ 12099 RECOMP_FLAGS_IN(); 12100 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12101 eax = eax + 1; /* 0x361497C0: inc eax */ 12102 _flag_k = FK_INC; 12103 eax = eax + eax * 2; /* 0x361497C1: lea eax, [eax + eax*2] */ 12104 edx = eax + eax * 4; /* 0x361497C4: lea edx, [eax + eax*4] */ 12105 eax = ebx + edx * 4; /* 0x361497C7: lea eax, [ebx + edx*4] */ 12106 MEM32(esi + 0x4) = ebx; /* 0x361497CA: mov dword ptr [esi + 4], ebx */ 12107 ebx = MEM32(ebp + 0xC); /* 0x361497CD: mov ebx, dword ptr [ebp + 0xc] */ 12108 MEM32(esi + 0x8) = eax; /* 0x361497D0: mov dword ptr [esi + 8], eax */ 12109 goto L_36149880; /* 0x361497D3: jmp 0x36149880 */ 12110 L_361497D8: 12111 edx = ecx; /* 0x361497D8: mov edx, ecx */ 12112 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 12113 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12114 edx = edx - edi; /* 0x361497DA: sub edx, edi */ 12115 _flag_k = FK_CMP; 12116 MEM32(ebp + (-0x18)) = edx; /* 0x361497DC: mov dword ptr [ebp - 0x18], edx */ 12117 eax = 0x88888889u; /* 0x361497DF: mov eax, 0x88888889 */ 12118 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361497E4: imul edx */ 12119 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 12120 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 12121 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 12122 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12123 edx = edx + MEM32(ebp + (-0x18)); /* 0x361497E6: add edx, dword ptr [ebp - 0x18] */ 12124 _flag_k = FK_ADD; 12125 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361497E9: sar edx, 5 */ 12126 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12127 edx = (uint32_t)((int32_t)edx >> 5u); 12128 eax = edx; /* 0x361497EC: mov eax, edx */ 12129 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361497EE: shr eax, 0x1f */ 12130 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12131 eax = eax >> 31u; /* 0x361497EE: shr eax, 0x1f */ 12132 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 12133 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12134 edx = edx + eax; /* 0x361497F1: add edx, eax */ 12135 _flag_k = FK_ADD; 12136 /* cmp edx, 1 */ /* 0x361497F3: cmp edx, 1 */ 12137 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 12138 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12139 _flag_k = FK_CMP; 12140 if (CMP_AE(_flag_a, _flag_b)) goto L_3614984D; /* 0x361497F6: jae 0x3614984d */ 12141 L_361497F8: 12142 edx = edi + 0x3C; /* 0x361497F8: lea edx, [edi + 0x3c] */ 12143 PUSH32(esp, edx); /* 0x361497FB: push edx */ 12144 PUSH32(esp, ecx); /* 0x361497FC: push ecx */ 12145 PUSH32(esp, edi); /* 0x361497FD: push edi */ 12146 ecx = esi; /* 0x361497FE: mov ecx, esi */ 12147 RECOMP_ICALL(0x36149EF0u); /* 0x36149800: call 0x36149ef0 */ /* not lifted */ 12148 RECOMP_FLAGS_IN(); 12149 ecx = MEM32(esi + 0x8); /* 0x36149805: mov ecx, dword ptr [esi + 8] */ 12150 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 12151 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12152 ecx = ecx - edi; /* 0x36149808: sub ecx, edi */ 12153 _flag_k = FK_CMP; 12154 eax = ebp + (-0xAC); /* 0x3614980A: lea eax, [ebp - 0xac] */ 12155 PUSH32(esp, eax); /* 0x36149810: push eax */ 12156 eax = 0x88888889u; /* 0x36149811: mov eax, 0x88888889 */ 12157 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149816: imul ecx */ 12158 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 12159 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 12160 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 12161 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12162 edx = edx + ecx; /* 0x36149818: add edx, ecx */ 12163 _flag_k = FK_ADD; 12164 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x3614981A: sar edx, 5 */ 12165 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12166 edx = (uint32_t)((int32_t)edx >> 5u); 12167 ecx = edx; /* 0x3614981D: mov ecx, edx */ 12168 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614981F: shr ecx, 0x1f */ 12169 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12170 ecx = ecx >> 31u; /* 0x3614981F: shr ecx, 0x1f */ 12171 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 12172 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12173 edx = edx + ecx; /* 0x36149822: add edx, ecx */ 12174 _flag_k = FK_ADD; 12175 eax = 1; /* 0x36149824: mov eax, 1 */ 12176 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 12177 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12178 eax = eax - edx; /* 0x36149829: sub eax, edx */ 12179 _flag_k = FK_CMP; 12180 PUSH32(esp, eax); /* 0x3614982B: push eax */ 12181 eax = MEM32(esi + 0x8); /* 0x3614982C: mov eax, dword ptr [esi + 8] */ 12182 PUSH32(esp, eax); /* 0x3614982F: push eax */ 12183 ecx = esi; /* 0x36149830: mov ecx, esi */ 12184 RECOMP_ICALL(0x3614A1C0u); /* 0x36149832: call 0x3614a1c0 */ /* not lifted */ 12185 RECOMP_FLAGS_IN(); 12186 edx = MEM32(esi + 0x8); /* 0x36149837: mov edx, dword ptr [esi + 8] */ 12187 ecx = ebp + (-0xAC); /* 0x3614983A: lea ecx, [ebp - 0xac] */ 12188 PUSH32(esp, ecx); /* 0x36149840: push ecx */ 12189 PUSH32(esp, edx); /* 0x36149841: push edx */ 12190 PUSH32(esp, edi); /* 0x36149842: push edi */ 12191 RECOMP_ICALL(0x3614A360u); /* 0x36149843: call 0x3614a360 */ /* not lifted */ 12192 RECOMP_FLAGS_IN(); 12193 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12194 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12195 esp = esp + 0xCu; /* 0x36149848: add esp, 0xc */ 12196 _flag_k = FK_ADD; 12197 goto L_3614987C; /* 0x3614984B: jmp 0x3614987c */ 12198 L_3614984D: 12199 PUSH32(esp, ecx); /* 0x3614984D: push ecx */ 12200 PUSH32(esp, ecx); /* 0x3614984E: push ecx */ 12201 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC4u); 12202 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12203 ecx = ecx + 0xFFFFFFC4u; /* 0x3614984F: add ecx, -0x3c */ 12204 _flag_k = FK_ADD; 12205 PUSH32(esp, ecx); /* 0x36149852: push ecx */ 12206 ecx = esi; /* 0x36149853: mov ecx, esi */ 12207 RECOMP_ICALL(0x36149EF0u); /* 0x36149855: call 0x36149ef0 */ /* not lifted */ 12208 RECOMP_FLAGS_IN(); 12209 eax = MEM32(esi + 0x8); /* 0x3614985A: mov eax, dword ptr [esi + 8] */ 12210 PUSH32(esp, eax); /* 0x3614985D: push eax */ 12211 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFC4u); 12212 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12213 eax = eax + 0xFFFFFFC4u; /* 0x3614985E: add eax, -0x3c */ 12214 _flag_k = FK_ADD; 12215 PUSH32(esp, eax); /* 0x36149861: push eax */ 12216 PUSH32(esp, edi); /* 0x36149862: push edi */ 12217 RECOMP_ICALL(0x3614A390u); /* 0x36149863: call 0x3614a390 */ /* not lifted */ 12218 RECOMP_FLAGS_IN(); 12219 eax = ebp + (-0xAC); /* 0x36149868: lea eax, [ebp - 0xac] */ 12220 PUSH32(esp, eax); /* 0x3614986E: push eax */ 12221 ecx = edi + 0x3C; /* 0x3614986F: lea ecx, [edi + 0x3c] */ 12222 PUSH32(esp, ecx); /* 0x36149872: push ecx */ 12223 PUSH32(esp, edi); /* 0x36149873: push edi */ 12224 RECOMP_ICALL(0x3614A360u); /* 0x36149874: call 0x3614a360 */ /* not lifted */ 12225 RECOMP_FLAGS_IN(); 12226 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 12227 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12228 esp = esp + 0x18u; /* 0x36149879: add esp, 0x18 */ 12229 _flag_k = FK_ADD; 12230 L_3614987C: 12231 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x3Cu); 12232 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12233 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x3Cu; /* 0x3614987C: add dword ptr [esi + 8], 0x3c */ 12234 _flag_k = FK_ADD; 12235 L_36149880: 12236 ecx = ebp + (-0xAC); /* 0x36149880: lea ecx, [ebp - 0xac] */ 12237 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149886: mov dword ptr [ebp - 4], 0xffffffff */ 12238 RECOMP_ICALL(0x3602F940u); /* 0x3614988D: call 0x3602f940 */ /* not lifted */ 12239 RECOMP_FLAGS_IN(); 12240 eax = MEM32(ebp + (-0x14)); /* 0x36149892: mov eax, dword ptr [ebp - 0x14] */ 12241 edx = MEM32(ebp + (-0x50)); /* 0x36149895: mov edx, dword ptr [ebp - 0x50] */ 12242 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12243 eax = eax + 1; /* 0x36149898: inc eax */ 12244 _flag_k = FK_INC; 12245 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 12246 edx = edx & 0xFFu; /* 0x36149899: and edx, 0xff */ 12247 _cf = 0; 12248 _flag_k = FK_TEST; 12249 /* cmp eax, edx */ /* 0x3614989F: cmp eax, edx */ 12250 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 12251 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12252 _flag_k = FK_CMP; 12253 MEM32(ebp + (-0x14)) = eax; /* 0x361498A1: mov dword ptr [ebp - 0x14], eax */ 12254 RECOMP_BACKEDGE(); 12255 if (CMP_L(_flag_a, _flag_b)) goto L_361496BD; /* 0x361498A4: jl 0x361496bd */ 12256 L_361498AA: 12257 esi = MEM32(ebp + 0x8); /* 0x361498AA: mov esi, dword ptr [ebp + 8] */ 12258 ecx = esi; /* 0x361498AD: mov ecx, esi */ 12259 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361498AF: call dword ptr [0x3616fadc] */ 12260 RECOMP_FLAGS_IN(); 12261 /* test eax, eax */ /* 0x361498B5: test eax, eax */ 12262 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12263 _cf = 0; 12264 _flag_k = FK_TEST; 12265 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498F7; /* 0x361498B7: jne 0x361498f7 */ 12266 L_361498B9: 12267 ebx = MEM32(ebx); /* 0x361498B9: mov ebx, dword ptr [ebx] */ 12268 eax = MEM32(ebx + 0x4); /* 0x361498BB: mov eax, dword ptr [ebx + 4] */ 12269 /* test eax, eax */ /* 0x361498BE: test eax, eax */ 12270 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12271 _cf = 0; 12272 _flag_k = FK_TEST; 12273 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498C7; /* 0x361498C0: jne 0x361498c7 */ 12274 L_361498C2: 12275 eax = MEM32(0x3616F10C); /* 0x361498C2: mov eax, dword ptr [0x3616f10c] */ 12276 L_361498C7: 12277 PUSH32(esp, eax); /* 0x361498C7: push eax */ 12278 PUSH32(esp, 0x362E75FCu); /* 0x361498C8: push 0x362e75fc */ 12279 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361498CD: call dword ptr [0x3616f18c] */ 12280 RECOMP_FLAGS_IN(); 12281 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12282 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12283 esp = esp + 8; /* 0x361498D3: add esp, 8 */ 12284 _flag_k = FK_ADD; 12285 PUSH32(esp, 0x362E75CCu); /* 0x361498D6: push 0x362e75cc */ 12286 ecx = ebp + (-0xB4); /* 0x361498DB: lea ecx, [ebp - 0xb4] */ 12287 RECOMP_ICALL(0x36008EF0u); /* 0x361498E1: call 0x36008ef0 */ /* not lifted */ 12288 RECOMP_FLAGS_IN(); 12289 PUSH32(esp, 0x36184170u); /* 0x361498E6: push 0x36184170 */ 12290 eax = ebp + (-0xB4); /* 0x361498EB: lea eax, [ebp - 0xb4] */ 12291 PUSH32(esp, eax); /* 0x361498F1: push eax */ 12292 RECOMP_ICALL(0x3615FD70u); /* 0x361498F2: call 0x3615fd70 */ /* not lifted */ 12293 RECOMP_FLAGS_IN(); 12294 L_361498F7: 12295 ecx = MEM32(ebp + (-0xC)); /* 0x361498F7: mov ecx, dword ptr [ebp - 0xc] */ 12296 edi = POP32_VAL(esp); /* 0x361498FA: pop edi */ 12297 eax = esi; /* 0x361498FB: mov eax, esi */ 12298 esi = POP32_VAL(esp); /* 0x361498FD: pop esi */ 12299 ebx = POP32_VAL(esp); /* 0x361498FE: pop ebx */ 12300 MEM32(FS_BASE + (0)) = ecx; /* 0x361498FF: mov dword ptr fs:[0], ecx */ 12301 esp = ebp; /* 0x36149906: mov esp, ebp */ 12302 ebp = POP32_VAL(esp); /* 0x36149908: pop ebp */ 12303 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149909: ret */ 12304 RECOMP_REGS_OUT(); 12305 } 12306 12307 void sub_361494A0(void) { 12308 int _fpu_cmp = 0; 12309 uint32_t _cf = 0; 12310 int _df = 1; 12311 uint32_t _flag_k = FK_NONE; 12312 uint32_t _flag_a = 0, _flag_b = 0; 12313 uint32_t _itail_tgt = 0; 12314 RECOMP_REGS_LOCALS 12315 RECOMP_ENTER(0x361494A0u); 12316 12317 goto L_361494A0; 12318 L_361491D9: 12319 ecx = MEM32(ebp + 0x8); /* 0x361491D9: mov ecx, dword ptr [ebp + 8] */ 12320 esi = MEM32(0x3616FAC8); /* 0x361491DC: mov esi, dword ptr [0x3616fac8] */ 12321 eax = ebp + (-0x1E); /* 0x361491E2: lea eax, [ebp - 0x1e] */ 12322 PUSH32(esp, eax); /* 0x361491E5: push eax */ 12323 RECOMP_ICALL(esi); /* 0x361491E6: call esi */ 12324 RECOMP_FLAGS_IN(); 12325 ecx = ebp + (-0x26); /* 0x361491E8: lea ecx, [ebp - 0x26] */ 12326 PUSH32(esp, ecx); /* 0x361491EB: push ecx */ 12327 ecx = eax; /* 0x361491EC: mov ecx, eax */ 12328 RECOMP_ICALL(esi); /* 0x361491EE: call esi */ 12329 RECOMP_FLAGS_IN(); 12330 esi = MEM32(ebx + 0x5C); /* 0x361491F0: mov esi, dword ptr [ebx + 0x5c] */ 12331 eax = MEM32(esi + 0x8); /* 0x361491F3: mov eax, dword ptr [esi + 8] */ 12332 edx = MEM32(esi + 0xC); /* 0x361491F6: mov edx, dword ptr [esi + 0xc] */ 12333 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 12334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12335 edx = edx - eax; /* 0x361491F9: sub edx, eax */ 12336 _flag_k = FK_CMP; 12337 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x361491FB: sar edx, 1 */ 12338 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12339 edx = (uint32_t)((int32_t)edx >> 1u); 12340 /* cmp edx, 1 */ /* 0x361491FD: cmp edx, 1 */ 12341 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 12342 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12343 _flag_k = FK_CMP; 12344 edi = eax; /* 0x36149200: mov edi, eax */ 12345 if (CMP_AE(_flag_a, _flag_b)) goto L_361492B8; /* 0x36149202: jae 0x361492b8 */ 12346 L_36149208: 12347 ecx = MEM32(esi + 0x4); /* 0x36149208: mov ecx, dword ptr [esi + 4] */ 12348 /* test ecx, ecx */ /* 0x3614920B: test ecx, ecx */ 12349 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12350 _cf = 0; 12351 _flag_k = FK_TEST; 12352 if (TEST_Z(_flag_a, _flag_b)) goto L_36149224; /* 0x3614920D: je 0x36149224 */ 12353 L_3614920F: 12354 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12355 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12356 eax = eax - ecx; /* 0x3614920F: sub eax, ecx */ 12357 _flag_k = FK_CMP; 12358 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149211: sar eax, 1 */ 12359 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12360 eax = (uint32_t)((int32_t)eax >> 1u); 12361 /* cmp eax, 1 */ /* 0x36149213: cmp eax, 1 */ 12362 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12364 _flag_k = FK_CMP; 12365 if (CMP_BE(_flag_a, _flag_b)) goto L_36149224; /* 0x36149216: jbe 0x36149224 */ 12366 L_36149218: 12367 ecx = esi; /* 0x36149218: mov ecx, esi */ 12368 RECOMP_ICALL(0x36140430u); /* 0x3614921A: call 0x36140430 */ /* not lifted */ 12369 RECOMP_FLAGS_IN(); 12370 MEM32(ebp + (-0x10)) = eax; /* 0x3614921F: mov dword ptr [ebp - 0x10], eax */ 12371 goto L_3614922B; /* 0x36149222: jmp 0x3614922b */ 12372 L_36149224: 12373 MEM32(ebp + (-0x10)) = 1; /* 0x36149224: mov dword ptr [ebp - 0x10], 1 */ 12374 L_3614922B: 12375 ecx = esi; /* 0x3614922B: mov ecx, esi */ 12376 RECOMP_ICALL(0x36140430u); /* 0x3614922D: call 0x36140430 */ /* not lifted */ 12377 RECOMP_FLAGS_IN(); 12378 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 12379 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12380 eax = eax + MEM32(ebp + (-0x10)); /* 0x36149232: add eax, dword ptr [ebp - 0x10] */ 12381 _flag_k = FK_ADD; 12382 MEM32(ebp + (-0x18)) = eax; /* 0x36149235: mov dword ptr [ebp - 0x18], eax */ 12383 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_3614923C; /* 0x36149238: jns 0x3614923c */ 12384 L_3614923A: 12385 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12386 eax = 0; /* 0x3614923A: xor eax, eax */ 12387 _cf = 0; 12388 _flag_k = FK_TEST; 12389 L_3614923C: 12390 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12391 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12392 eax = eax + eax; /* 0x3614923C: add eax, eax */ 12393 _flag_k = FK_ADD; 12394 PUSH32(esp, eax); /* 0x3614923E: push eax */ 12395 RECOMP_ICALL(0x3615FD6Au); /* 0x3614923F: call 0x3615fd6a */ /* not lifted */ 12396 RECOMP_FLAGS_IN(); 12397 ecx = MEM32(esi + 0x4); /* 0x36149244: mov ecx, dword ptr [esi + 4] */ 12398 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12399 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12400 esp = esp + 4; /* 0x36149247: add esp, 4 */ 12401 _flag_k = FK_ADD; 12402 PUSH32(esp, eax); /* 0x3614924A: push eax */ 12403 PUSH32(esp, edi); /* 0x3614924B: push edi */ 12404 PUSH32(esp, ecx); /* 0x3614924C: push ecx */ 12405 ecx = esi; /* 0x3614924D: mov ecx, esi */ 12406 MEM32(ebp + (-0x2C)) = eax; /* 0x3614924F: mov dword ptr [ebp - 0x2c], eax */ 12407 RECOMP_ICALL(0x36140900u); /* 0x36149252: call 0x36140900 */ /* not lifted */ 12408 RECOMP_FLAGS_IN(); 12409 edx = ebp + (-0x1E); /* 0x36149257: lea edx, [ebp - 0x1e] */ 12410 PUSH32(esp, edx); /* 0x3614925A: push edx */ 12411 PUSH32(esp, 1); /* 0x3614925B: push 1 */ 12412 PUSH32(esp, eax); /* 0x3614925D: push eax */ 12413 ecx = esi; /* 0x3614925E: mov ecx, esi */ 12414 MEM32(ebp + (-0x10)) = eax; /* 0x36149260: mov dword ptr [ebp - 0x10], eax */ 12415 RECOMP_ICALL(0x3614A1F0u); /* 0x36149263: call 0x3614a1f0 */ /* not lifted */ 12416 RECOMP_FLAGS_IN(); 12417 eax = MEM32(ebp + (-0x10)); /* 0x36149268: mov eax, dword ptr [ebp - 0x10] */ 12418 ecx = MEM32(esi + 0x8); /* 0x3614926B: mov ecx, dword ptr [esi + 8] */ 12419 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 12420 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12421 eax = eax + 2; /* 0x3614926E: add eax, 2 */ 12422 _flag_k = FK_ADD; 12423 PUSH32(esp, eax); /* 0x36149271: push eax */ 12424 PUSH32(esp, ecx); /* 0x36149272: push ecx */ 12425 PUSH32(esp, edi); /* 0x36149273: push edi */ 12426 ecx = esi; /* 0x36149274: mov ecx, esi */ 12427 RECOMP_ICALL(0x36140900u); /* 0x36149276: call 0x36140900 */ /* not lifted */ 12428 RECOMP_FLAGS_IN(); 12429 edx = MEM32(esi + 0x8); /* 0x3614927B: mov edx, dword ptr [esi + 8] */ 12430 eax = MEM32(esi + 0x4); /* 0x3614927E: mov eax, dword ptr [esi + 4] */ 12431 PUSH32(esp, edx); /* 0x36149281: push edx */ 12432 PUSH32(esp, eax); /* 0x36149282: push eax */ 12433 ecx = esi; /* 0x36149283: mov ecx, esi */ 12434 RECOMP_ICALL(0x3610ED60u); /* 0x36149285: call 0x3610ed60 */ /* not lifted */ 12435 RECOMP_FLAGS_IN(); 12436 eax = MEM32(esi + 0x4); /* 0x3614928A: mov eax, dword ptr [esi + 4] */ 12437 PUSH32(esp, eax); /* 0x3614928D: push eax */ 12438 RECOMP_ICALL(0x3615FCC4u); /* 0x3614928E: call 0x3615fcc4 */ /* not lifted */ 12439 RECOMP_FLAGS_IN(); 12440 ecx = MEM32(ebp + (-0x18)); /* 0x36149293: mov ecx, dword ptr [ebp - 0x18] */ 12441 edi = MEM32(ebp + (-0x2C)); /* 0x36149296: mov edi, dword ptr [ebp - 0x2c] */ 12442 edx = edi + ecx * 2; /* 0x36149299: lea edx, [edi + ecx*2] */ 12443 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12444 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12445 esp = esp + 4; /* 0x3614929C: add esp, 4 */ 12446 _flag_k = FK_ADD; 12447 ecx = esi; /* 0x3614929F: mov ecx, esi */ 12448 MEM32(esi + 0xC) = edx; /* 0x361492A1: mov dword ptr [esi + 0xc], edx */ 12449 RECOMP_ICALL(0x36140430u); /* 0x361492A4: call 0x36140430 */ /* not lifted */ 12450 RECOMP_FLAGS_IN(); 12451 eax = edi + eax * 2 + 0x2; /* 0x361492A9: lea eax, [edi + eax*2 + 2] */ 12452 MEM32(esi + 0x8) = eax; /* 0x361492AD: mov dword ptr [esi + 8], eax */ 12453 MEM32(esi + 0x4) = edi; /* 0x361492B0: mov dword ptr [esi + 4], edi */ 12454 goto L_36149348; /* 0x361492B3: jmp 0x36149348 */ 12455 L_361492B8: 12456 ecx = eax; /* 0x361492B8: mov ecx, eax */ 12457 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 12458 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12459 ecx = ecx - edi; /* 0x361492BA: sub ecx, edi */ 12460 _flag_k = FK_CMP; 12461 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492BC: sar ecx, 1 */ 12462 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12463 ecx = (uint32_t)((int32_t)ecx >> 1u); 12464 /* cmp ecx, 1 */ /* 0x361492BE: cmp ecx, 1 */ 12465 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12466 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12467 _flag_k = FK_CMP; 12468 if (CMP_AE(_flag_a, _flag_b)) goto L_36149304; /* 0x361492C1: jae 0x36149304 */ 12469 L_361492C3: 12470 ecx = edi + 0x2; /* 0x361492C3: lea ecx, [edi + 2] */ 12471 PUSH32(esp, ecx); /* 0x361492C6: push ecx */ 12472 PUSH32(esp, eax); /* 0x361492C7: push eax */ 12473 PUSH32(esp, edi); /* 0x361492C8: push edi */ 12474 ecx = esi; /* 0x361492C9: mov ecx, esi */ 12475 RECOMP_ICALL(0x36140900u); /* 0x361492CB: call 0x36140900 */ /* not lifted */ 12476 RECOMP_FLAGS_IN(); 12477 eax = MEM32(esi + 0x8); /* 0x361492D0: mov eax, dword ptr [esi + 8] */ 12478 ecx = eax; /* 0x361492D3: mov ecx, eax */ 12479 edx = ebp + (-0x1E); /* 0x361492D5: lea edx, [ebp - 0x1e] */ 12480 PUSH32(esp, edx); /* 0x361492D8: push edx */ 12481 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 12482 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12483 ecx = ecx - edi; /* 0x361492D9: sub ecx, edi */ 12484 _flag_k = FK_CMP; 12485 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x361492DB: sar ecx, 1 */ 12486 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12487 ecx = (uint32_t)((int32_t)ecx >> 1u); 12488 edx = 1; /* 0x361492DD: mov edx, 1 */ 12489 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 12490 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12491 edx = edx - ecx; /* 0x361492E2: sub edx, ecx */ 12492 _flag_k = FK_CMP; 12493 PUSH32(esp, edx); /* 0x361492E4: push edx */ 12494 PUSH32(esp, eax); /* 0x361492E5: push eax */ 12495 ecx = esi; /* 0x361492E6: mov ecx, esi */ 12496 RECOMP_ICALL(0x3614A1F0u); /* 0x361492E8: call 0x3614a1f0 */ /* not lifted */ 12497 RECOMP_FLAGS_IN(); 12498 eax = MEM32(esi + 0x8); /* 0x361492ED: mov eax, dword ptr [esi + 8] */ 12499 /* cmp edi, eax */ /* 0x361492F0: cmp edi, eax */ 12500 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12501 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12502 _flag_k = FK_CMP; 12503 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x361492F2: je 0x36149344 */ 12504 L_361492F4: 12505 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x361492F4: mov cx, word ptr [ebp - 0x1e] */ 12506 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x361492F8: mov word ptr [edi], cx */ 12507 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 12508 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12509 edi = edi + 2; /* 0x361492FB: add edi, 2 */ 12510 _flag_k = FK_ADD; 12511 /* cmp edi, eax */ /* 0x361492FE: cmp edi, eax */ 12512 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12513 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12514 _flag_k = FK_CMP; 12515 RECOMP_BACKEDGE(); 12516 if (CMP_NE(_flag_a, _flag_b)) goto L_361492F4; /* 0x36149300: jne 0x361492f4 */ 12517 L_36149302: 12518 goto L_36149344; /* 0x36149302: jmp 0x36149344 */ 12519 L_36149304: 12520 PUSH32(esp, eax); /* 0x36149304: push eax */ 12521 ecx = eax + (-0x2); /* 0x36149305: lea ecx, [eax - 2] */ 12522 PUSH32(esp, eax); /* 0x36149308: push eax */ 12523 MEM32(ebp + (-0x18)) = ecx; /* 0x36149309: mov dword ptr [ebp - 0x18], ecx */ 12524 PUSH32(esp, ecx); /* 0x3614930C: push ecx */ 12525 ecx = esi; /* 0x3614930D: mov ecx, esi */ 12526 RECOMP_ICALL(0x36140900u); /* 0x3614930F: call 0x36140900 */ /* not lifted */ 12527 RECOMP_FLAGS_IN(); 12528 ecx = MEM32(esi + 0x8); /* 0x36149314: mov ecx, dword ptr [esi + 8] */ 12529 eax = ecx + (-0x2); /* 0x36149317: lea eax, [ecx - 2] */ 12530 /* cmp edi, eax */ /* 0x3614931A: cmp edi, eax */ 12531 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12532 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12533 _flag_k = FK_CMP; 12534 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614932F; /* 0x3614931C: je 0x3614932f */ 12535 L_3614931E: 12536 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x3614931E: mov dx, word ptr [eax - 2] */ 12537 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 12538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12539 eax = eax - 2; /* 0x36149322: sub eax, 2 */ 12540 _flag_k = FK_CMP; 12541 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 12542 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12543 ecx = ecx - 2; /* 0x36149325: sub ecx, 2 */ 12544 _flag_k = FK_CMP; 12545 /* cmp eax, edi */ /* 0x36149328: cmp eax, edi */ 12546 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 12547 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12548 _flag_k = FK_CMP; 12549 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x3614932A: mov word ptr [ecx], dx */ 12550 RECOMP_BACKEDGE(); 12551 if (CMP_NE(_flag_a, _flag_b)) goto L_3614931E; /* 0x3614932D: jne 0x3614931e */ 12552 L_3614932F: 12553 eax = edi + 0x2; /* 0x3614932F: lea eax, [edi + 2] */ 12554 /* cmp edi, eax */ /* 0x36149332: cmp edi, eax */ 12555 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12556 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12557 _flag_k = FK_CMP; 12558 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149344; /* 0x36149334: je 0x36149344 */ 12559 L_36149336: 12560 SET_LO16(ecx, MEM16(ebp + (-0x1E))); /* 0x36149336: mov cx, word ptr [ebp - 0x1e] */ 12561 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x3614933A: mov word ptr [edi], cx */ 12562 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 12563 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12564 edi = edi + 2; /* 0x3614933D: add edi, 2 */ 12565 _flag_k = FK_ADD; 12566 /* cmp edi, eax */ /* 0x36149340: cmp edi, eax */ 12567 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12569 _flag_k = FK_CMP; 12570 RECOMP_BACKEDGE(); 12571 if (CMP_NE(_flag_a, _flag_b)) goto L_36149336; /* 0x36149342: jne 0x36149336 */ 12572 L_36149344: 12573 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 12574 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12575 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x36149344: add dword ptr [esi + 8], 2 */ 12576 _flag_k = FK_ADD; 12577 L_36149348: 12578 esi = MEM32(ebx + 0x5C); /* 0x36149348: mov esi, dword ptr [ebx + 0x5c] */ 12579 eax = MEM32(esi + 0x8); /* 0x3614934B: mov eax, dword ptr [esi + 8] */ 12580 edx = MEM32(esi + 0xC); /* 0x3614934E: mov edx, dword ptr [esi + 0xc] */ 12581 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 12582 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12583 edx = edx - eax; /* 0x36149351: sub edx, eax */ 12584 _flag_k = FK_CMP; 12585 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36149353: sar edx, 1 */ 12586 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12587 edx = (uint32_t)((int32_t)edx >> 1u); 12588 /* cmp edx, 1 */ /* 0x36149355: cmp edx, 1 */ 12589 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 12590 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12591 _flag_k = FK_CMP; 12592 edi = eax; /* 0x36149358: mov edi, eax */ 12593 if (CMP_AE(_flag_a, _flag_b)) goto L_36149410; /* 0x3614935A: jae 0x36149410 */ 12594 L_36149360: 12595 ecx = MEM32(esi + 0x4); /* 0x36149360: mov ecx, dword ptr [esi + 4] */ 12596 /* test ecx, ecx */ /* 0x36149363: test ecx, ecx */ 12597 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12598 _cf = 0; 12599 _flag_k = FK_TEST; 12600 if (TEST_Z(_flag_a, _flag_b)) goto L_3614937C; /* 0x36149365: je 0x3614937c */ 12601 L_36149367: 12602 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12603 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12604 eax = eax - ecx; /* 0x36149367: sub eax, ecx */ 12605 _flag_k = FK_CMP; 12606 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149369: sar eax, 1 */ 12607 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12608 eax = (uint32_t)((int32_t)eax >> 1u); 12609 /* cmp eax, 1 */ /* 0x3614936B: cmp eax, 1 */ 12610 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12612 _flag_k = FK_CMP; 12613 if (CMP_BE(_flag_a, _flag_b)) goto L_3614937C; /* 0x3614936E: jbe 0x3614937c */ 12614 L_36149370: 12615 ecx = esi; /* 0x36149370: mov ecx, esi */ 12616 RECOMP_ICALL(0x36140430u); /* 0x36149372: call 0x36140430 */ /* not lifted */ 12617 RECOMP_FLAGS_IN(); 12618 MEM32(ebp + (-0x10)) = eax; /* 0x36149377: mov dword ptr [ebp - 0x10], eax */ 12619 goto L_36149383; /* 0x3614937A: jmp 0x36149383 */ 12620 L_3614937C: 12621 MEM32(ebp + (-0x10)) = 1; /* 0x3614937C: mov dword ptr [ebp - 0x10], 1 */ 12622 L_36149383: 12623 ecx = esi; /* 0x36149383: mov ecx, esi */ 12624 RECOMP_ICALL(0x36140430u); /* 0x36149385: call 0x36140430 */ /* not lifted */ 12625 RECOMP_FLAGS_IN(); 12626 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 12627 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12628 eax = eax + MEM32(ebp + (-0x10)); /* 0x3614938A: add eax, dword ptr [ebp - 0x10] */ 12629 _flag_k = FK_ADD; 12630 MEM32(ebp + (-0x10)) = eax; /* 0x3614938D: mov dword ptr [ebp - 0x10], eax */ 12631 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149394; /* 0x36149390: jns 0x36149394 */ 12632 L_36149392: 12633 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12634 eax = 0; /* 0x36149392: xor eax, eax */ 12635 _cf = 0; 12636 _flag_k = FK_TEST; 12637 L_36149394: 12638 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12639 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12640 eax = eax + eax; /* 0x36149394: add eax, eax */ 12641 _flag_k = FK_ADD; 12642 PUSH32(esp, eax); /* 0x36149396: push eax */ 12643 RECOMP_ICALL(0x3615FD6Au); /* 0x36149397: call 0x3615fd6a */ /* not lifted */ 12644 RECOMP_FLAGS_IN(); 12645 ecx = MEM32(esi + 0x4); /* 0x3614939C: mov ecx, dword ptr [esi + 4] */ 12646 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12647 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12648 esp = esp + 4; /* 0x3614939F: add esp, 4 */ 12649 _flag_k = FK_ADD; 12650 PUSH32(esp, eax); /* 0x361493A2: push eax */ 12651 PUSH32(esp, edi); /* 0x361493A3: push edi */ 12652 PUSH32(esp, ecx); /* 0x361493A4: push ecx */ 12653 ecx = esi; /* 0x361493A5: mov ecx, esi */ 12654 MEM32(ebp + (-0x2C)) = eax; /* 0x361493A7: mov dword ptr [ebp - 0x2c], eax */ 12655 RECOMP_ICALL(0x36140900u); /* 0x361493AA: call 0x36140900 */ /* not lifted */ 12656 RECOMP_FLAGS_IN(); 12657 edx = ebp + (-0x26); /* 0x361493AF: lea edx, [ebp - 0x26] */ 12658 PUSH32(esp, edx); /* 0x361493B2: push edx */ 12659 PUSH32(esp, 1); /* 0x361493B3: push 1 */ 12660 PUSH32(esp, eax); /* 0x361493B5: push eax */ 12661 ecx = esi; /* 0x361493B6: mov ecx, esi */ 12662 MEM32(ebp + (-0x18)) = eax; /* 0x361493B8: mov dword ptr [ebp - 0x18], eax */ 12663 RECOMP_ICALL(0x3614A1F0u); /* 0x361493BB: call 0x3614a1f0 */ /* not lifted */ 12664 RECOMP_FLAGS_IN(); 12665 eax = MEM32(ebp + (-0x18)); /* 0x361493C0: mov eax, dword ptr [ebp - 0x18] */ 12666 ecx = MEM32(esi + 0x8); /* 0x361493C3: mov ecx, dword ptr [esi + 8] */ 12667 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 12668 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12669 eax = eax + 2; /* 0x361493C6: add eax, 2 */ 12670 _flag_k = FK_ADD; 12671 PUSH32(esp, eax); /* 0x361493C9: push eax */ 12672 PUSH32(esp, ecx); /* 0x361493CA: push ecx */ 12673 PUSH32(esp, edi); /* 0x361493CB: push edi */ 12674 ecx = esi; /* 0x361493CC: mov ecx, esi */ 12675 RECOMP_ICALL(0x36140900u); /* 0x361493CE: call 0x36140900 */ /* not lifted */ 12676 RECOMP_FLAGS_IN(); 12677 edx = MEM32(esi + 0x8); /* 0x361493D3: mov edx, dword ptr [esi + 8] */ 12678 eax = MEM32(esi + 0x4); /* 0x361493D6: mov eax, dword ptr [esi + 4] */ 12679 PUSH32(esp, edx); /* 0x361493D9: push edx */ 12680 PUSH32(esp, eax); /* 0x361493DA: push eax */ 12681 ecx = esi; /* 0x361493DB: mov ecx, esi */ 12682 RECOMP_ICALL(0x3610ED60u); /* 0x361493DD: call 0x3610ed60 */ /* not lifted */ 12683 RECOMP_FLAGS_IN(); 12684 eax = MEM32(esi + 0x4); /* 0x361493E2: mov eax, dword ptr [esi + 4] */ 12685 PUSH32(esp, eax); /* 0x361493E5: push eax */ 12686 RECOMP_ICALL(0x3615FCC4u); /* 0x361493E6: call 0x3615fcc4 */ /* not lifted */ 12687 RECOMP_FLAGS_IN(); 12688 ecx = MEM32(ebp + (-0x10)); /* 0x361493EB: mov ecx, dword ptr [ebp - 0x10] */ 12689 edi = MEM32(ebp + (-0x2C)); /* 0x361493EE: mov edi, dword ptr [ebp - 0x2c] */ 12690 edx = edi + ecx * 2; /* 0x361493F1: lea edx, [edi + ecx*2] */ 12691 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12692 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12693 esp = esp + 4; /* 0x361493F4: add esp, 4 */ 12694 _flag_k = FK_ADD; 12695 ecx = esi; /* 0x361493F7: mov ecx, esi */ 12696 MEM32(esi + 0xC) = edx; /* 0x361493F9: mov dword ptr [esi + 0xc], edx */ 12697 RECOMP_ICALL(0x36140430u); /* 0x361493FC: call 0x36140430 */ /* not lifted */ 12698 RECOMP_FLAGS_IN(); 12699 eax = edi + eax * 2 + 0x2; /* 0x36149401: lea eax, [edi + eax*2 + 2] */ 12700 MEM32(esi + 0x8) = eax; /* 0x36149405: mov dword ptr [esi + 8], eax */ 12701 MEM32(esi + 0x4) = edi; /* 0x36149408: mov dword ptr [esi + 4], edi */ 12702 goto L_361494A0; /* 0x3614940B: jmp 0x361494a0 */ 12703 L_36149410: 12704 ecx = eax; /* 0x36149410: mov ecx, eax */ 12705 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 12706 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12707 ecx = ecx - edi; /* 0x36149412: sub ecx, edi */ 12708 _flag_k = FK_CMP; 12709 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149414: sar ecx, 1 */ 12710 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12711 ecx = (uint32_t)((int32_t)ecx >> 1u); 12712 /* cmp ecx, 1 */ /* 0x36149416: cmp ecx, 1 */ 12713 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12714 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12715 _flag_k = FK_CMP; 12716 if (CMP_AE(_flag_a, _flag_b)) goto L_3614945C; /* 0x36149419: jae 0x3614945c */ 12717 L_3614941B: 12718 ecx = edi + 0x2; /* 0x3614941B: lea ecx, [edi + 2] */ 12719 PUSH32(esp, ecx); /* 0x3614941E: push ecx */ 12720 PUSH32(esp, eax); /* 0x3614941F: push eax */ 12721 PUSH32(esp, edi); /* 0x36149420: push edi */ 12722 ecx = esi; /* 0x36149421: mov ecx, esi */ 12723 RECOMP_ICALL(0x36140900u); /* 0x36149423: call 0x36140900 */ /* not lifted */ 12724 RECOMP_FLAGS_IN(); 12725 eax = MEM32(esi + 0x8); /* 0x36149428: mov eax, dword ptr [esi + 8] */ 12726 ecx = eax; /* 0x3614942B: mov ecx, eax */ 12727 edx = ebp + (-0x26); /* 0x3614942D: lea edx, [ebp - 0x26] */ 12728 PUSH32(esp, edx); /* 0x36149430: push edx */ 12729 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 12730 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12731 ecx = ecx - edi; /* 0x36149431: sub ecx, edi */ 12732 _flag_k = FK_CMP; 12733 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149433: sar ecx, 1 */ 12734 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12735 ecx = (uint32_t)((int32_t)ecx >> 1u); 12736 edx = 1; /* 0x36149435: mov edx, 1 */ 12737 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 12738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12739 edx = edx - ecx; /* 0x3614943A: sub edx, ecx */ 12740 _flag_k = FK_CMP; 12741 PUSH32(esp, edx); /* 0x3614943C: push edx */ 12742 PUSH32(esp, eax); /* 0x3614943D: push eax */ 12743 ecx = esi; /* 0x3614943E: mov ecx, esi */ 12744 RECOMP_ICALL(0x3614A1F0u); /* 0x36149440: call 0x3614a1f0 */ /* not lifted */ 12745 RECOMP_FLAGS_IN(); 12746 eax = MEM32(esi + 0x8); /* 0x36149445: mov eax, dword ptr [esi + 8] */ 12747 /* cmp edi, eax */ /* 0x36149448: cmp edi, eax */ 12748 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12749 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12750 _flag_k = FK_CMP; 12751 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614944A: je 0x3614949c */ 12752 L_3614944C: 12753 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614944C: mov cx, word ptr [ebp - 0x26] */ 12754 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149450: mov word ptr [edi], cx */ 12755 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 12756 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12757 edi = edi + 2; /* 0x36149453: add edi, 2 */ 12758 _flag_k = FK_ADD; 12759 /* cmp edi, eax */ /* 0x36149456: cmp edi, eax */ 12760 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12761 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12762 _flag_k = FK_CMP; 12763 RECOMP_BACKEDGE(); 12764 if (CMP_NE(_flag_a, _flag_b)) goto L_3614944C; /* 0x36149458: jne 0x3614944c */ 12765 L_3614945A: 12766 goto L_3614949C; /* 0x3614945A: jmp 0x3614949c */ 12767 L_3614945C: 12768 PUSH32(esp, eax); /* 0x3614945C: push eax */ 12769 ecx = eax + (-0x2); /* 0x3614945D: lea ecx, [eax - 2] */ 12770 PUSH32(esp, eax); /* 0x36149460: push eax */ 12771 MEM32(ebp + (-0x18)) = ecx; /* 0x36149461: mov dword ptr [ebp - 0x18], ecx */ 12772 PUSH32(esp, ecx); /* 0x36149464: push ecx */ 12773 ecx = esi; /* 0x36149465: mov ecx, esi */ 12774 RECOMP_ICALL(0x36140900u); /* 0x36149467: call 0x36140900 */ /* not lifted */ 12775 RECOMP_FLAGS_IN(); 12776 ecx = MEM32(esi + 0x8); /* 0x3614946C: mov ecx, dword ptr [esi + 8] */ 12777 eax = ecx + (-0x2); /* 0x3614946F: lea eax, [ecx - 2] */ 12778 /* cmp edi, eax */ /* 0x36149472: cmp edi, eax */ 12779 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 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_36149487; /* 0x36149474: je 0x36149487 */ 12783 L_36149476: 12784 SET_LO16(edx, MEM16(eax + (-0x2))); /* 0x36149476: mov dx, word ptr [eax - 2] */ 12785 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 12786 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12787 eax = eax - 2; /* 0x3614947A: sub eax, 2 */ 12788 _flag_k = FK_CMP; 12789 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 12790 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12791 ecx = ecx - 2; /* 0x3614947D: sub ecx, 2 */ 12792 _flag_k = FK_CMP; 12793 /* cmp eax, edi */ /* 0x36149480: cmp eax, edi */ 12794 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 12795 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12796 _flag_k = FK_CMP; 12797 MEM16(ecx) = (uint16_t)(LO16(edx)); /* 0x36149482: mov word ptr [ecx], dx */ 12798 RECOMP_BACKEDGE(); 12799 if (CMP_NE(_flag_a, _flag_b)) goto L_36149476; /* 0x36149485: jne 0x36149476 */ 12800 L_36149487: 12801 eax = edi + 0x2; /* 0x36149487: lea eax, [edi + 2] */ 12802 /* cmp edi, eax */ /* 0x3614948A: cmp edi, eax */ 12803 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12804 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12805 _flag_k = FK_CMP; 12806 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614949C; /* 0x3614948C: je 0x3614949c */ 12807 L_3614948E: 12808 SET_LO16(ecx, MEM16(ebp + (-0x26))); /* 0x3614948E: mov cx, word ptr [ebp - 0x26] */ 12809 MEM16(edi) = (uint16_t)(LO16(ecx)); /* 0x36149492: mov word ptr [edi], cx */ 12810 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 12811 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12812 edi = edi + 2; /* 0x36149495: add edi, 2 */ 12813 _flag_k = FK_ADD; 12814 /* cmp edi, eax */ /* 0x36149498: cmp edi, eax */ 12815 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12816 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12817 _flag_k = FK_CMP; 12818 RECOMP_BACKEDGE(); 12819 if (CMP_NE(_flag_a, _flag_b)) goto L_3614948E; /* 0x3614949A: jne 0x3614948e */ 12820 L_3614949C: 12821 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(2); 12822 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12823 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 2; /* 0x3614949C: add dword ptr [esi + 8], 2 */ 12824 _flag_k = FK_ADD; 12825 L_361494A0: 12826 eax = MEM32(ebp + (-0x14)); /* 0x361494A0: mov eax, dword ptr [ebp - 0x14] */ 12827 edx = MEM32(ebp + (-0x64)); /* 0x361494A3: mov edx, dword ptr [ebp - 0x64] */ 12828 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12829 eax = eax + 1; /* 0x361494A6: inc eax */ 12830 _flag_k = FK_INC; 12831 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 12832 edx = edx & 0xFFu; /* 0x361494A7: and edx, 0xff */ 12833 _cf = 0; 12834 _flag_k = FK_TEST; 12835 /* cmp eax, edx */ /* 0x361494AD: cmp eax, edx */ 12836 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 12837 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12838 _flag_k = FK_CMP; 12839 MEM32(ebp + (-0x14)) = eax; /* 0x361494AF: mov dword ptr [ebp - 0x14], eax */ 12840 RECOMP_BACKEDGE(); 12841 if (CMP_B(_flag_a, _flag_b)) goto L_361491D9; /* 0x361494B2: jb 0x361491d9 */ 12842 L_361494B8: 12843 SET_LO8(eax, MEM8(ebp + (-0x4C))); /* 0x361494B8: mov al, byte ptr [ebp - 0x4c] */ 12844 /* test LO8(eax), LO8(eax) */ /* 0x361494BB: test al, al */ 12845 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12846 _cf = 0; 12847 _flag_k = FK_NARROW(FK_TEST, 24); 12848 MEM32(ebp + (-0x10)) = 0; /* 0x361494BD: mov dword ptr [ebp - 0x10], 0 */ 12849 if (TEST_Z(_flag_a, _flag_b)) goto L_361496AB; /* 0x361494C4: jbe 0x361496ab */ 12850 L_361494CA: 12851 ecx = ebp + (-0x84); /* 0x361494CA: lea ecx, [ebp - 0x84] */ 12852 RECOMP_ICALL(0x3602F750u); /* 0x361494D0: call 0x3602f750 */ /* not lifted */ 12853 RECOMP_FLAGS_IN(); 12854 ecx = MEM32(ebp + 0x8); /* 0x361494D5: mov ecx, dword ptr [ebp + 8] */ 12855 eax = ebp + (-0x84); /* 0x361494D8: lea eax, [ebp - 0x84] */ 12856 PUSH32(esp, eax); /* 0x361494DE: push eax */ 12857 PUSH32(esp, ecx); /* 0x361494DF: push ecx */ 12858 MEM32(ebp + (-0x4)) = 0; /* 0x361494E0: mov dword ptr [ebp - 4], 0 */ 12859 RECOMP_ICALL(0x3602F810u); /* 0x361494E7: call 0x3602f810 */ /* not lifted */ 12860 RECOMP_FLAGS_IN(); 12861 esi = MEM32(ebx + 0x50); /* 0x361494EC: mov esi, dword ptr [ebx + 0x50] */ 12862 ecx = MEM32(esi + 0x8); /* 0x361494EF: mov ecx, dword ptr [esi + 8] */ 12863 edx = MEM32(esi + 0xC); /* 0x361494F2: mov edx, dword ptr [esi + 0xc] */ 12864 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 12865 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12866 edx = edx - ecx; /* 0x361494F5: sub edx, ecx */ 12867 _flag_k = FK_CMP; 12868 eax = 0x66666667u; /* 0x361494F7: mov eax, 0x66666667 */ 12869 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361494FC: imul edx */ 12870 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 12871 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 12872 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361494FE: sar edx, 3 */ 12873 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12874 edx = (uint32_t)((int32_t)edx >> 3u); 12875 eax = edx; /* 0x36149501: mov eax, edx */ 12876 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149503: shr eax, 0x1f */ 12877 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12878 eax = eax >> 31u; /* 0x36149503: shr eax, 0x1f */ 12879 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 12880 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12881 edx = edx + eax; /* 0x36149506: add edx, eax */ 12882 _flag_k = FK_ADD; 12883 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12884 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12885 esp = esp + 8; /* 0x36149508: add esp, 8 */ 12886 _flag_k = FK_ADD; 12887 /* cmp edx, 1 */ /* 0x3614950B: cmp edx, 1 */ 12888 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 12889 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12890 _flag_k = FK_CMP; 12891 edi = ecx; /* 0x3614950E: mov edi, ecx */ 12892 if (CMP_AE(_flag_a, _flag_b)) goto L_361495E2; /* 0x36149510: jae 0x361495e2 */ 12893 L_36149516: 12894 eax = MEM32(esi + 0x4); /* 0x36149516: mov eax, dword ptr [esi + 4] */ 12895 /* test eax, eax */ /* 0x36149519: test eax, eax */ 12896 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12897 _cf = 0; 12898 _flag_k = FK_TEST; 12899 if (TEST_Z(_flag_a, _flag_b)) goto L_36149541; /* 0x3614951B: je 0x36149541 */ 12900 L_3614951D: 12901 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 12902 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12903 ecx = ecx - eax; /* 0x3614951D: sub ecx, eax */ 12904 _flag_k = FK_CMP; 12905 eax = 0x66666667u; /* 0x3614951F: mov eax, 0x66666667 */ 12906 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149524: imul ecx */ 12907 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 12908 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 12909 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149526: sar edx, 3 */ 12910 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12911 edx = (uint32_t)((int32_t)edx >> 3u); 12912 ecx = edx; /* 0x36149529: mov ecx, edx */ 12913 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614952B: shr ecx, 0x1f */ 12914 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12915 ecx = ecx >> 31u; /* 0x3614952B: shr ecx, 0x1f */ 12916 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 12917 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12918 edx = edx + ecx; /* 0x3614952E: add edx, ecx */ 12919 _flag_k = FK_ADD; 12920 /* cmp edx, 1 */ /* 0x36149530: cmp edx, 1 */ 12921 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 12922 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12923 _flag_k = FK_CMP; 12924 if (CMP_BE(_flag_a, _flag_b)) goto L_36149541; /* 0x36149533: jbe 0x36149541 */ 12925 L_36149535: 12926 ecx = esi; /* 0x36149535: mov ecx, esi */ 12927 RECOMP_ICALL(0x36149DC0u); /* 0x36149537: call 0x36149dc0 */ /* not lifted */ 12928 RECOMP_FLAGS_IN(); 12929 MEM32(ebp + (-0x14)) = eax; /* 0x3614953C: mov dword ptr [ebp - 0x14], eax */ 12930 goto L_36149548; /* 0x3614953F: jmp 0x36149548 */ 12931 L_36149541: 12932 MEM32(ebp + (-0x14)) = 1; /* 0x36149541: mov dword ptr [ebp - 0x14], 1 */ 12933 L_36149548: 12934 ecx = esi; /* 0x36149548: mov ecx, esi */ 12935 RECOMP_ICALL(0x36149DC0u); /* 0x3614954A: call 0x36149dc0 */ /* not lifted */ 12936 RECOMP_FLAGS_IN(); 12937 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 12938 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12939 eax = eax + MEM32(ebp + (-0x14)); /* 0x3614954F: add eax, dword ptr [ebp - 0x14] */ 12940 _flag_k = FK_ADD; 12941 MEM32(ebp + (-0x2C)) = eax; /* 0x36149552: mov dword ptr [ebp - 0x2c], eax */ 12942 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149559; /* 0x36149555: jns 0x36149559 */ 12943 L_36149557: 12944 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12945 eax = 0; /* 0x36149557: xor eax, eax */ 12946 _cf = 0; 12947 _flag_k = FK_TEST; 12948 L_36149559: 12949 edx = eax + eax * 4; /* 0x36149559: lea edx, [eax + eax*4] */ 12950 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614955C: shl edx, 2 */ 12951 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12952 edx = edx << 2u; /* 0x3614955C: shl edx, 2 */ 12953 PUSH32(esp, edx); /* 0x3614955F: push edx */ 12954 RECOMP_ICALL(0x3615FD6Au); /* 0x36149560: call 0x3615fd6a */ /* not lifted */ 12955 RECOMP_FLAGS_IN(); 12956 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12957 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12958 esp = esp + 4; /* 0x36149565: add esp, 4 */ 12959 _flag_k = FK_ADD; 12960 PUSH32(esp, eax); /* 0x36149568: push eax */ 12961 MEM32(ebp + (-0x14)) = eax; /* 0x36149569: mov dword ptr [ebp - 0x14], eax */ 12962 eax = MEM32(esi + 0x4); /* 0x3614956C: mov eax, dword ptr [esi + 4] */ 12963 PUSH32(esp, edi); /* 0x3614956F: push edi */ 12964 PUSH32(esp, eax); /* 0x36149570: push eax */ 12965 ecx = esi; /* 0x36149571: mov ecx, esi */ 12966 RECOMP_ICALL(0x36149E20u); /* 0x36149573: call 0x36149e20 */ /* not lifted */ 12967 RECOMP_FLAGS_IN(); 12968 ecx = ebp + (-0x84); /* 0x36149578: lea ecx, [ebp - 0x84] */ 12969 PUSH32(esp, ecx); /* 0x3614957E: push ecx */ 12970 PUSH32(esp, 1); /* 0x3614957F: push 1 */ 12971 PUSH32(esp, eax); /* 0x36149581: push eax */ 12972 ecx = esi; /* 0x36149582: mov ecx, esi */ 12973 MEM32(ebp + (-0x18)) = eax; /* 0x36149584: mov dword ptr [ebp - 0x18], eax */ 12974 RECOMP_ICALL(0x3614A190u); /* 0x36149587: call 0x3614a190 */ /* not lifted */ 12975 RECOMP_FLAGS_IN(); 12976 edx = MEM32(ebp + (-0x18)); /* 0x3614958C: mov edx, dword ptr [ebp - 0x18] */ 12977 eax = MEM32(esi + 0x8); /* 0x3614958F: mov eax, dword ptr [esi + 8] */ 12978 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u); 12979 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12980 edx = edx + 0x14u; /* 0x36149592: add edx, 0x14 */ 12981 _flag_k = FK_ADD; 12982 PUSH32(esp, edx); /* 0x36149595: push edx */ 12983 PUSH32(esp, eax); /* 0x36149596: push eax */ 12984 PUSH32(esp, edi); /* 0x36149597: push edi */ 12985 ecx = esi; /* 0x36149598: mov ecx, esi */ 12986 RECOMP_ICALL(0x36149E20u); /* 0x3614959A: call 0x36149e20 */ /* not lifted */ 12987 RECOMP_FLAGS_IN(); 12988 ecx = MEM32(esi + 0x8); /* 0x3614959F: mov ecx, dword ptr [esi + 8] */ 12989 edx = MEM32(esi + 0x4); /* 0x361495A2: mov edx, dword ptr [esi + 4] */ 12990 PUSH32(esp, ecx); /* 0x361495A5: push ecx */ 12991 PUSH32(esp, edx); /* 0x361495A6: push edx */ 12992 ecx = esi; /* 0x361495A7: mov ecx, esi */ 12993 RECOMP_ICALL(0x36149DF0u); /* 0x361495A9: call 0x36149df0 */ /* not lifted */ 12994 RECOMP_FLAGS_IN(); 12995 eax = MEM32(esi + 0x4); /* 0x361495AE: mov eax, dword ptr [esi + 4] */ 12996 PUSH32(esp, eax); /* 0x361495B1: push eax */ 12997 RECOMP_ICALL(0x3615FCC4u); /* 0x361495B2: call 0x3615fcc4 */ /* not lifted */ 12998 RECOMP_FLAGS_IN(); 12999 eax = MEM32(ebp + (-0x2C)); /* 0x361495B7: mov eax, dword ptr [ebp - 0x2c] */ 13000 edi = MEM32(ebp + (-0x14)); /* 0x361495BA: mov edi, dword ptr [ebp - 0x14] */ 13001 eax = eax + eax * 4; /* 0x361495BD: lea eax, [eax + eax*4] */ 13002 ecx = edi + eax * 4; /* 0x361495C0: lea ecx, [edi + eax*4] */ 13003 MEM32(esi + 0xC) = ecx; /* 0x361495C3: mov dword ptr [esi + 0xc], ecx */ 13004 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13005 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13006 esp = esp + 4; /* 0x361495C6: add esp, 4 */ 13007 _flag_k = FK_ADD; 13008 ecx = esi; /* 0x361495C9: mov ecx, esi */ 13009 RECOMP_ICALL(0x36149DC0u); /* 0x361495CB: call 0x36149dc0 */ /* not lifted */ 13010 RECOMP_FLAGS_IN(); 13011 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13012 eax = eax + 1; /* 0x361495D0: inc eax */ 13013 _flag_k = FK_INC; 13014 edx = eax + eax * 4; /* 0x361495D1: lea edx, [eax + eax*4] */ 13015 eax = edi + edx * 4; /* 0x361495D4: lea eax, [edi + edx*4] */ 13016 MEM32(esi + 0x8) = eax; /* 0x361495D7: mov dword ptr [esi + 8], eax */ 13017 MEM32(esi + 0x4) = edi; /* 0x361495DA: mov dword ptr [esi + 4], edi */ 13018 goto L_36149681; /* 0x361495DD: jmp 0x36149681 */ 13019 L_361495E2: 13020 edx = ecx; /* 0x361495E2: mov edx, ecx */ 13021 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 13022 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13023 edx = edx - edi; /* 0x361495E4: sub edx, edi */ 13024 _flag_k = FK_CMP; 13025 eax = 0x66666667u; /* 0x361495E6: mov eax, 0x66666667 */ 13026 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361495EB: imul edx */ 13027 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13028 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13029 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361495ED: sar edx, 3 */ 13030 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13031 edx = (uint32_t)((int32_t)edx >> 3u); 13032 eax = edx; /* 0x361495F0: mov eax, edx */ 13033 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361495F2: shr eax, 0x1f */ 13034 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13035 eax = eax >> 31u; /* 0x361495F2: shr eax, 0x1f */ 13036 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 13037 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13038 edx = edx + eax; /* 0x361495F5: add edx, eax */ 13039 _flag_k = FK_ADD; 13040 /* cmp edx, 1 */ /* 0x361495F7: cmp edx, 1 */ 13041 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 13042 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13043 _flag_k = FK_CMP; 13044 if (CMP_AE(_flag_a, _flag_b)) goto L_3614964E; /* 0x361495FA: jae 0x3614964e */ 13045 L_361495FC: 13046 edx = edi + 0x14; /* 0x361495FC: lea edx, [edi + 0x14] */ 13047 PUSH32(esp, edx); /* 0x361495FF: push edx */ 13048 PUSH32(esp, ecx); /* 0x36149600: push ecx */ 13049 PUSH32(esp, edi); /* 0x36149601: push edi */ 13050 ecx = esi; /* 0x36149602: mov ecx, esi */ 13051 RECOMP_ICALL(0x36149E20u); /* 0x36149604: call 0x36149e20 */ /* not lifted */ 13052 RECOMP_FLAGS_IN(); 13053 ecx = MEM32(esi + 0x8); /* 0x36149609: mov ecx, dword ptr [esi + 8] */ 13054 eax = ebp + (-0x84); /* 0x3614960C: lea eax, [ebp - 0x84] */ 13055 PUSH32(esp, eax); /* 0x36149612: push eax */ 13056 edx = ecx; /* 0x36149613: mov edx, ecx */ 13057 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 13058 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13059 edx = edx - edi; /* 0x36149615: sub edx, edi */ 13060 _flag_k = FK_CMP; 13061 eax = 0x66666667u; /* 0x36149617: mov eax, 0x66666667 */ 13062 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3614961C: imul edx */ 13063 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13064 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13065 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3614961E: sar edx, 3 */ 13066 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13067 edx = (uint32_t)((int32_t)edx >> 3u); 13068 eax = edx; /* 0x36149621: mov eax, edx */ 13069 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149623: shr eax, 0x1f */ 13070 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13071 eax = eax >> 31u; /* 0x36149623: shr eax, 0x1f */ 13072 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 13073 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13074 edx = edx + eax; /* 0x36149626: add edx, eax */ 13075 _flag_k = FK_ADD; 13076 eax = 1; /* 0x36149628: mov eax, 1 */ 13077 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 13078 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13079 eax = eax - edx; /* 0x3614962D: sub eax, edx */ 13080 _flag_k = FK_CMP; 13081 PUSH32(esp, eax); /* 0x3614962F: push eax */ 13082 PUSH32(esp, ecx); /* 0x36149630: push ecx */ 13083 ecx = esi; /* 0x36149631: mov ecx, esi */ 13084 RECOMP_ICALL(0x3614A190u); /* 0x36149633: call 0x3614a190 */ /* not lifted */ 13085 RECOMP_FLAGS_IN(); 13086 edx = MEM32(esi + 0x8); /* 0x36149638: mov edx, dword ptr [esi + 8] */ 13087 ecx = ebp + (-0x84); /* 0x3614963B: lea ecx, [ebp - 0x84] */ 13088 PUSH32(esp, ecx); /* 0x36149641: push ecx */ 13089 PUSH32(esp, edx); /* 0x36149642: push edx */ 13090 PUSH32(esp, edi); /* 0x36149643: push edi */ 13091 RECOMP_ICALL(0x3614A2A0u); /* 0x36149644: call 0x3614a2a0 */ /* not lifted */ 13092 RECOMP_FLAGS_IN(); 13093 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 13094 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13095 esp = esp + 0xCu; /* 0x36149649: add esp, 0xc */ 13096 _flag_k = FK_ADD; 13097 goto L_3614967D; /* 0x3614964C: jmp 0x3614967d */ 13098 L_3614964E: 13099 PUSH32(esp, ecx); /* 0x3614964E: push ecx */ 13100 PUSH32(esp, ecx); /* 0x3614964F: push ecx */ 13101 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu); 13102 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13103 ecx = ecx + 0xFFFFFFECu; /* 0x36149650: add ecx, -0x14 */ 13104 _flag_k = FK_ADD; 13105 PUSH32(esp, ecx); /* 0x36149653: push ecx */ 13106 ecx = esi; /* 0x36149654: mov ecx, esi */ 13107 RECOMP_ICALL(0x36149E20u); /* 0x36149656: call 0x36149e20 */ /* not lifted */ 13108 RECOMP_FLAGS_IN(); 13109 eax = MEM32(esi + 0x8); /* 0x3614965B: mov eax, dword ptr [esi + 8] */ 13110 PUSH32(esp, eax); /* 0x3614965E: push eax */ 13111 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu); 13112 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13113 eax = eax + 0xFFFFFFECu; /* 0x3614965F: add eax, -0x14 */ 13114 _flag_k = FK_ADD; 13115 PUSH32(esp, eax); /* 0x36149662: push eax */ 13116 PUSH32(esp, edi); /* 0x36149663: push edi */ 13117 RECOMP_ICALL(0x3614A2D0u); /* 0x36149664: call 0x3614a2d0 */ /* not lifted */ 13118 RECOMP_FLAGS_IN(); 13119 eax = ebp + (-0x84); /* 0x36149669: lea eax, [ebp - 0x84] */ 13120 PUSH32(esp, eax); /* 0x3614966F: push eax */ 13121 ecx = edi + 0x14; /* 0x36149670: lea ecx, [edi + 0x14] */ 13122 PUSH32(esp, ecx); /* 0x36149673: push ecx */ 13123 PUSH32(esp, edi); /* 0x36149674: push edi */ 13124 RECOMP_ICALL(0x3614A2A0u); /* 0x36149675: call 0x3614a2a0 */ /* not lifted */ 13125 RECOMP_FLAGS_IN(); 13126 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 13127 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13128 esp = esp + 0x18u; /* 0x3614967A: add esp, 0x18 */ 13129 _flag_k = FK_ADD; 13130 L_3614967D: 13131 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x14u); 13132 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13133 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x14u; /* 0x3614967D: add dword ptr [esi + 8], 0x14 */ 13134 _flag_k = FK_ADD; 13135 L_36149681: 13136 ecx = ebp + (-0x84); /* 0x36149681: lea ecx, [ebp - 0x84] */ 13137 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149687: mov dword ptr [ebp - 4], 0xffffffff */ 13138 RECOMP_ICALL(0x3602F7D0u); /* 0x3614968E: call 0x3602f7d0 */ /* not lifted */ 13139 RECOMP_FLAGS_IN(); 13140 eax = MEM32(ebp + (-0x10)); /* 0x36149693: mov eax, dword ptr [ebp - 0x10] */ 13141 edx = MEM32(ebp + (-0x4C)); /* 0x36149696: mov edx, dword ptr [ebp - 0x4c] */ 13142 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13143 eax = eax + 1; /* 0x36149699: inc eax */ 13144 _flag_k = FK_INC; 13145 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 13146 edx = edx & 0xFFu; /* 0x3614969A: and edx, 0xff */ 13147 _cf = 0; 13148 _flag_k = FK_TEST; 13149 /* cmp eax, edx */ /* 0x361496A0: cmp eax, edx */ 13150 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 13151 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13152 _flag_k = FK_CMP; 13153 MEM32(ebp + (-0x10)) = eax; /* 0x361496A2: mov dword ptr [ebp - 0x10], eax */ 13154 RECOMP_BACKEDGE(); 13155 if (CMP_L(_flag_a, _flag_b)) goto L_361494CA; /* 0x361496A5: jl 0x361494ca */ 13156 L_361496AB: 13157 SET_LO8(eax, MEM8(ebp + (-0x50))); /* 0x361496AB: mov al, byte ptr [ebp - 0x50] */ 13158 /* test LO8(eax), LO8(eax) */ /* 0x361496AE: test al, al */ 13159 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13160 _cf = 0; 13161 _flag_k = FK_NARROW(FK_TEST, 24); 13162 MEM32(ebp + (-0x14)) = 0; /* 0x361496B0: mov dword ptr [ebp - 0x14], 0 */ 13163 if (TEST_Z(_flag_a, _flag_b)) goto L_361498AA; /* 0x361496B7: jbe 0x361498aa */ 13164 L_361496BD: 13165 ecx = ebp + (-0xAC); /* 0x361496BD: lea ecx, [ebp - 0xac] */ 13166 RECOMP_ICALL(0x3602F870u); /* 0x361496C3: call 0x3602f870 */ /* not lifted */ 13167 RECOMP_FLAGS_IN(); 13168 ecx = MEM32(ebp + 0x8); /* 0x361496C8: mov ecx, dword ptr [ebp + 8] */ 13169 eax = ebp + (-0xAC); /* 0x361496CB: lea eax, [ebp - 0xac] */ 13170 PUSH32(esp, eax); /* 0x361496D1: push eax */ 13171 PUSH32(esp, ecx); /* 0x361496D2: push ecx */ 13172 MEM32(ebp + (-0x4)) = 1; /* 0x361496D3: mov dword ptr [ebp - 4], 1 */ 13173 RECOMP_ICALL(0x3602F9B0u); /* 0x361496DA: call 0x3602f9b0 */ /* not lifted */ 13174 RECOMP_FLAGS_IN(); 13175 esi = MEM32(ebx + 0x54); /* 0x361496DF: mov esi, dword ptr [ebx + 0x54] */ 13176 ecx = MEM32(esi + 0x8); /* 0x361496E2: mov ecx, dword ptr [esi + 8] */ 13177 edx = MEM32(esi + 0xC); /* 0x361496E5: mov edx, dword ptr [esi + 0xc] */ 13178 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 13179 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13180 edx = edx - ecx; /* 0x361496E8: sub edx, ecx */ 13181 _flag_k = FK_CMP; 13182 MEM32(ebp + (-0x18)) = edx; /* 0x361496EA: mov dword ptr [ebp - 0x18], edx */ 13183 eax = 0x88888889u; /* 0x361496ED: mov eax, 0x88888889 */ 13184 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361496F2: imul edx */ 13185 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13186 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13187 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 13188 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13189 edx = edx + MEM32(ebp + (-0x18)); /* 0x361496F4: add edx, dword ptr [ebp - 0x18] */ 13190 _flag_k = FK_ADD; 13191 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361496F7: sar edx, 5 */ 13192 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13193 edx = (uint32_t)((int32_t)edx >> 5u); 13194 eax = edx; /* 0x361496FA: mov eax, edx */ 13195 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361496FC: shr eax, 0x1f */ 13196 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13197 eax = eax >> 31u; /* 0x361496FC: shr eax, 0x1f */ 13198 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 13199 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13200 edx = edx + eax; /* 0x361496FF: add edx, eax */ 13201 _flag_k = FK_ADD; 13202 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13203 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13204 esp = esp + 8; /* 0x36149701: add esp, 8 */ 13205 _flag_k = FK_ADD; 13206 /* cmp edx, 1 */ /* 0x36149704: cmp edx, 1 */ 13207 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 13208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13209 _flag_k = FK_CMP; 13210 edi = ecx; /* 0x36149707: mov edi, ecx */ 13211 if (CMP_AE(_flag_a, _flag_b)) goto L_361497D8; /* 0x36149709: jae 0x361497d8 */ 13212 L_3614970F: 13213 eax = MEM32(esi + 0x4); /* 0x3614970F: mov eax, dword ptr [esi + 4] */ 13214 /* test eax, eax */ /* 0x36149712: test eax, eax */ 13215 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13216 _cf = 0; 13217 _flag_k = FK_TEST; 13218 if (TEST_Z(_flag_a, _flag_b)) goto L_36149732; /* 0x36149714: je 0x36149732 */ 13219 L_36149716: 13220 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 13221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13222 ecx = ecx - eax; /* 0x36149716: sub ecx, eax */ 13223 _flag_k = FK_CMP; 13224 eax = 0x88888889u; /* 0x36149718: mov eax, 0x88888889 */ 13225 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3614971D: imul ecx */ 13226 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13227 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13228 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 13229 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13230 edx = edx + ecx; /* 0x3614971F: add edx, ecx */ 13231 _flag_k = FK_ADD; 13232 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36149721: sar edx, 5 */ 13233 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13234 edx = (uint32_t)((int32_t)edx >> 5u); 13235 ecx = edx; /* 0x36149724: mov ecx, edx */ 13236 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36149726: shr ecx, 0x1f */ 13237 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13238 ecx = ecx >> 31u; /* 0x36149726: shr ecx, 0x1f */ 13239 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 13240 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13241 edx = edx + ecx; /* 0x36149729: add edx, ecx */ 13242 _flag_k = FK_ADD; 13243 /* cmp edx, 1 */ /* 0x3614972B: cmp edx, 1 */ 13244 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 13245 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13246 _flag_k = FK_CMP; 13247 ebx = edx; /* 0x3614972E: mov ebx, edx */ 13248 if (CMP_A(_flag_a, _flag_b)) goto L_36149737; /* 0x36149730: ja 0x36149737 */ 13249 L_36149732: 13250 ebx = 1; /* 0x36149732: mov ebx, 1 */ 13251 L_36149737: 13252 ecx = esi; /* 0x36149737: mov ecx, esi */ 13253 RECOMP_ICALL(0x36149E90u); /* 0x36149739: call 0x36149e90 */ /* not lifted */ 13254 RECOMP_FLAGS_IN(); 13255 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 13256 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13257 eax = eax + ebx; /* 0x3614973E: add eax, ebx */ 13258 _flag_k = FK_ADD; 13259 MEM32(ebp + (-0x2C)) = eax; /* 0x36149740: mov dword ptr [ebp - 0x2c], eax */ 13260 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149747; /* 0x36149743: jns 0x36149747 */ 13261 L_36149745: 13262 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13263 eax = 0; /* 0x36149745: xor eax, eax */ 13264 _cf = 0; 13265 _flag_k = FK_TEST; 13266 L_36149747: 13267 eax = eax + eax * 2; /* 0x36149747: lea eax, [eax + eax*2] */ 13268 edx = eax + eax * 4; /* 0x3614974A: lea edx, [eax + eax*4] */ 13269 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614974D: shl edx, 2 */ 13270 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13271 edx = edx << 2u; /* 0x3614974D: shl edx, 2 */ 13272 PUSH32(esp, edx); /* 0x36149750: push edx */ 13273 RECOMP_ICALL(0x3615FD6Au); /* 0x36149751: call 0x3615fd6a */ /* not lifted */ 13274 RECOMP_FLAGS_IN(); 13275 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13276 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13277 esp = esp + 4; /* 0x36149756: add esp, 4 */ 13278 _flag_k = FK_ADD; 13279 ebx = eax; /* 0x36149759: mov ebx, eax */ 13280 eax = MEM32(esi + 0x4); /* 0x3614975B: mov eax, dword ptr [esi + 4] */ 13281 PUSH32(esp, ebx); /* 0x3614975E: push ebx */ 13282 PUSH32(esp, edi); /* 0x3614975F: push edi */ 13283 PUSH32(esp, eax); /* 0x36149760: push eax */ 13284 ecx = esi; /* 0x36149761: mov ecx, esi */ 13285 RECOMP_ICALL(0x36149EF0u); /* 0x36149763: call 0x36149ef0 */ /* not lifted */ 13286 RECOMP_FLAGS_IN(); 13287 ecx = ebp + (-0xAC); /* 0x36149768: lea ecx, [ebp - 0xac] */ 13288 PUSH32(esp, ecx); /* 0x3614976E: push ecx */ 13289 PUSH32(esp, 1); /* 0x3614976F: push 1 */ 13290 PUSH32(esp, eax); /* 0x36149771: push eax */ 13291 ecx = esi; /* 0x36149772: mov ecx, esi */ 13292 MEM32(ebp + (-0x18)) = eax; /* 0x36149774: mov dword ptr [ebp - 0x18], eax */ 13293 RECOMP_ICALL(0x3614A1C0u); /* 0x36149777: call 0x3614a1c0 */ /* not lifted */ 13294 RECOMP_FLAGS_IN(); 13295 edx = MEM32(ebp + (-0x18)); /* 0x3614977C: mov edx, dword ptr [ebp - 0x18] */ 13296 eax = MEM32(esi + 0x8); /* 0x3614977F: mov eax, dword ptr [esi + 8] */ 13297 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x3Cu); 13298 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13299 edx = edx + 0x3Cu; /* 0x36149782: add edx, 0x3c */ 13300 _flag_k = FK_ADD; 13301 PUSH32(esp, edx); /* 0x36149785: push edx */ 13302 PUSH32(esp, eax); /* 0x36149786: push eax */ 13303 PUSH32(esp, edi); /* 0x36149787: push edi */ 13304 ecx = esi; /* 0x36149788: mov ecx, esi */ 13305 RECOMP_ICALL(0x36149EF0u); /* 0x3614978A: call 0x36149ef0 */ /* not lifted */ 13306 RECOMP_FLAGS_IN(); 13307 ecx = MEM32(esi + 0x8); /* 0x3614978F: mov ecx, dword ptr [esi + 8] */ 13308 edx = MEM32(esi + 0x4); /* 0x36149792: mov edx, dword ptr [esi + 4] */ 13309 PUSH32(esp, ecx); /* 0x36149795: push ecx */ 13310 PUSH32(esp, edx); /* 0x36149796: push edx */ 13311 ecx = esi; /* 0x36149797: mov ecx, esi */ 13312 RECOMP_ICALL(0x36149EC0u); /* 0x36149799: call 0x36149ec0 */ /* not lifted */ 13313 RECOMP_FLAGS_IN(); 13314 eax = MEM32(esi + 0x4); /* 0x3614979E: mov eax, dword ptr [esi + 4] */ 13315 PUSH32(esp, eax); /* 0x361497A1: push eax */ 13316 RECOMP_ICALL(0x3615FCC4u); /* 0x361497A2: call 0x3615fcc4 */ /* not lifted */ 13317 RECOMP_FLAGS_IN(); 13318 eax = MEM32(ebp + (-0x2C)); /* 0x361497A7: mov eax, dword ptr [ebp - 0x2c] */ 13319 eax = eax + eax * 2; /* 0x361497AA: lea eax, [eax + eax*2] */ 13320 eax = eax + eax * 4; /* 0x361497AD: lea eax, [eax + eax*4] */ 13321 ecx = ebx + eax * 4; /* 0x361497B0: lea ecx, [ebx + eax*4] */ 13322 MEM32(esi + 0xC) = ecx; /* 0x361497B3: mov dword ptr [esi + 0xc], ecx */ 13323 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13324 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13325 esp = esp + 4; /* 0x361497B6: add esp, 4 */ 13326 _flag_k = FK_ADD; 13327 ecx = esi; /* 0x361497B9: mov ecx, esi */ 13328 RECOMP_ICALL(0x36149E90u); /* 0x361497BB: call 0x36149e90 */ /* not lifted */ 13329 RECOMP_FLAGS_IN(); 13330 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13331 eax = eax + 1; /* 0x361497C0: inc eax */ 13332 _flag_k = FK_INC; 13333 eax = eax + eax * 2; /* 0x361497C1: lea eax, [eax + eax*2] */ 13334 edx = eax + eax * 4; /* 0x361497C4: lea edx, [eax + eax*4] */ 13335 eax = ebx + edx * 4; /* 0x361497C7: lea eax, [ebx + edx*4] */ 13336 MEM32(esi + 0x4) = ebx; /* 0x361497CA: mov dword ptr [esi + 4], ebx */ 13337 ebx = MEM32(ebp + 0xC); /* 0x361497CD: mov ebx, dword ptr [ebp + 0xc] */ 13338 MEM32(esi + 0x8) = eax; /* 0x361497D0: mov dword ptr [esi + 8], eax */ 13339 goto L_36149880; /* 0x361497D3: jmp 0x36149880 */ 13340 L_361497D8: 13341 edx = ecx; /* 0x361497D8: mov edx, ecx */ 13342 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 13343 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13344 edx = edx - edi; /* 0x361497DA: sub edx, edi */ 13345 _flag_k = FK_CMP; 13346 MEM32(ebp + (-0x18)) = edx; /* 0x361497DC: mov dword ptr [ebp - 0x18], edx */ 13347 eax = 0x88888889u; /* 0x361497DF: mov eax, 0x88888889 */ 13348 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361497E4: imul edx */ 13349 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13350 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13351 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 13352 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13353 edx = edx + MEM32(ebp + (-0x18)); /* 0x361497E6: add edx, dword ptr [ebp - 0x18] */ 13354 _flag_k = FK_ADD; 13355 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361497E9: sar edx, 5 */ 13356 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13357 edx = (uint32_t)((int32_t)edx >> 5u); 13358 eax = edx; /* 0x361497EC: mov eax, edx */ 13359 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361497EE: shr eax, 0x1f */ 13360 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13361 eax = eax >> 31u; /* 0x361497EE: shr eax, 0x1f */ 13362 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 13363 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13364 edx = edx + eax; /* 0x361497F1: add edx, eax */ 13365 _flag_k = FK_ADD; 13366 /* cmp edx, 1 */ /* 0x361497F3: cmp edx, 1 */ 13367 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 13368 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13369 _flag_k = FK_CMP; 13370 if (CMP_AE(_flag_a, _flag_b)) goto L_3614984D; /* 0x361497F6: jae 0x3614984d */ 13371 L_361497F8: 13372 edx = edi + 0x3C; /* 0x361497F8: lea edx, [edi + 0x3c] */ 13373 PUSH32(esp, edx); /* 0x361497FB: push edx */ 13374 PUSH32(esp, ecx); /* 0x361497FC: push ecx */ 13375 PUSH32(esp, edi); /* 0x361497FD: push edi */ 13376 ecx = esi; /* 0x361497FE: mov ecx, esi */ 13377 RECOMP_ICALL(0x36149EF0u); /* 0x36149800: call 0x36149ef0 */ /* not lifted */ 13378 RECOMP_FLAGS_IN(); 13379 ecx = MEM32(esi + 0x8); /* 0x36149805: mov ecx, dword ptr [esi + 8] */ 13380 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 13381 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13382 ecx = ecx - edi; /* 0x36149808: sub ecx, edi */ 13383 _flag_k = FK_CMP; 13384 eax = ebp + (-0xAC); /* 0x3614980A: lea eax, [ebp - 0xac] */ 13385 PUSH32(esp, eax); /* 0x36149810: push eax */ 13386 eax = 0x88888889u; /* 0x36149811: mov eax, 0x88888889 */ 13387 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149816: imul ecx */ 13388 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13389 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13390 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 13391 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13392 edx = edx + ecx; /* 0x36149818: add edx, ecx */ 13393 _flag_k = FK_ADD; 13394 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x3614981A: sar edx, 5 */ 13395 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13396 edx = (uint32_t)((int32_t)edx >> 5u); 13397 ecx = edx; /* 0x3614981D: mov ecx, edx */ 13398 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614981F: shr ecx, 0x1f */ 13399 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13400 ecx = ecx >> 31u; /* 0x3614981F: shr ecx, 0x1f */ 13401 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 13402 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13403 edx = edx + ecx; /* 0x36149822: add edx, ecx */ 13404 _flag_k = FK_ADD; 13405 eax = 1; /* 0x36149824: mov eax, 1 */ 13406 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 13407 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13408 eax = eax - edx; /* 0x36149829: sub eax, edx */ 13409 _flag_k = FK_CMP; 13410 PUSH32(esp, eax); /* 0x3614982B: push eax */ 13411 eax = MEM32(esi + 0x8); /* 0x3614982C: mov eax, dword ptr [esi + 8] */ 13412 PUSH32(esp, eax); /* 0x3614982F: push eax */ 13413 ecx = esi; /* 0x36149830: mov ecx, esi */ 13414 RECOMP_ICALL(0x3614A1C0u); /* 0x36149832: call 0x3614a1c0 */ /* not lifted */ 13415 RECOMP_FLAGS_IN(); 13416 edx = MEM32(esi + 0x8); /* 0x36149837: mov edx, dword ptr [esi + 8] */ 13417 ecx = ebp + (-0xAC); /* 0x3614983A: lea ecx, [ebp - 0xac] */ 13418 PUSH32(esp, ecx); /* 0x36149840: push ecx */ 13419 PUSH32(esp, edx); /* 0x36149841: push edx */ 13420 PUSH32(esp, edi); /* 0x36149842: push edi */ 13421 RECOMP_ICALL(0x3614A360u); /* 0x36149843: call 0x3614a360 */ /* not lifted */ 13422 RECOMP_FLAGS_IN(); 13423 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 13424 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13425 esp = esp + 0xCu; /* 0x36149848: add esp, 0xc */ 13426 _flag_k = FK_ADD; 13427 goto L_3614987C; /* 0x3614984B: jmp 0x3614987c */ 13428 L_3614984D: 13429 PUSH32(esp, ecx); /* 0x3614984D: push ecx */ 13430 PUSH32(esp, ecx); /* 0x3614984E: push ecx */ 13431 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC4u); 13432 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13433 ecx = ecx + 0xFFFFFFC4u; /* 0x3614984F: add ecx, -0x3c */ 13434 _flag_k = FK_ADD; 13435 PUSH32(esp, ecx); /* 0x36149852: push ecx */ 13436 ecx = esi; /* 0x36149853: mov ecx, esi */ 13437 RECOMP_ICALL(0x36149EF0u); /* 0x36149855: call 0x36149ef0 */ /* not lifted */ 13438 RECOMP_FLAGS_IN(); 13439 eax = MEM32(esi + 0x8); /* 0x3614985A: mov eax, dword ptr [esi + 8] */ 13440 PUSH32(esp, eax); /* 0x3614985D: push eax */ 13441 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFC4u); 13442 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13443 eax = eax + 0xFFFFFFC4u; /* 0x3614985E: add eax, -0x3c */ 13444 _flag_k = FK_ADD; 13445 PUSH32(esp, eax); /* 0x36149861: push eax */ 13446 PUSH32(esp, edi); /* 0x36149862: push edi */ 13447 RECOMP_ICALL(0x3614A390u); /* 0x36149863: call 0x3614a390 */ /* not lifted */ 13448 RECOMP_FLAGS_IN(); 13449 eax = ebp + (-0xAC); /* 0x36149868: lea eax, [ebp - 0xac] */ 13450 PUSH32(esp, eax); /* 0x3614986E: push eax */ 13451 ecx = edi + 0x3C; /* 0x3614986F: lea ecx, [edi + 0x3c] */ 13452 PUSH32(esp, ecx); /* 0x36149872: push ecx */ 13453 PUSH32(esp, edi); /* 0x36149873: push edi */ 13454 RECOMP_ICALL(0x3614A360u); /* 0x36149874: call 0x3614a360 */ /* not lifted */ 13455 RECOMP_FLAGS_IN(); 13456 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 13457 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13458 esp = esp + 0x18u; /* 0x36149879: add esp, 0x18 */ 13459 _flag_k = FK_ADD; 13460 L_3614987C: 13461 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x3Cu); 13462 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13463 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x3Cu; /* 0x3614987C: add dword ptr [esi + 8], 0x3c */ 13464 _flag_k = FK_ADD; 13465 L_36149880: 13466 ecx = ebp + (-0xAC); /* 0x36149880: lea ecx, [ebp - 0xac] */ 13467 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149886: mov dword ptr [ebp - 4], 0xffffffff */ 13468 RECOMP_ICALL(0x3602F940u); /* 0x3614988D: call 0x3602f940 */ /* not lifted */ 13469 RECOMP_FLAGS_IN(); 13470 eax = MEM32(ebp + (-0x14)); /* 0x36149892: mov eax, dword ptr [ebp - 0x14] */ 13471 edx = MEM32(ebp + (-0x50)); /* 0x36149895: mov edx, dword ptr [ebp - 0x50] */ 13472 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13473 eax = eax + 1; /* 0x36149898: inc eax */ 13474 _flag_k = FK_INC; 13475 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 13476 edx = edx & 0xFFu; /* 0x36149899: and edx, 0xff */ 13477 _cf = 0; 13478 _flag_k = FK_TEST; 13479 /* cmp eax, edx */ /* 0x3614989F: cmp eax, edx */ 13480 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 13481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13482 _flag_k = FK_CMP; 13483 MEM32(ebp + (-0x14)) = eax; /* 0x361498A1: mov dword ptr [ebp - 0x14], eax */ 13484 RECOMP_BACKEDGE(); 13485 if (CMP_L(_flag_a, _flag_b)) goto L_361496BD; /* 0x361498A4: jl 0x361496bd */ 13486 L_361498AA: 13487 esi = MEM32(ebp + 0x8); /* 0x361498AA: mov esi, dword ptr [ebp + 8] */ 13488 ecx = esi; /* 0x361498AD: mov ecx, esi */ 13489 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361498AF: call dword ptr [0x3616fadc] */ 13490 RECOMP_FLAGS_IN(); 13491 /* test eax, eax */ /* 0x361498B5: test eax, eax */ 13492 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13493 _cf = 0; 13494 _flag_k = FK_TEST; 13495 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498F7; /* 0x361498B7: jne 0x361498f7 */ 13496 L_361498B9: 13497 ebx = MEM32(ebx); /* 0x361498B9: mov ebx, dword ptr [ebx] */ 13498 eax = MEM32(ebx + 0x4); /* 0x361498BB: mov eax, dword ptr [ebx + 4] */ 13499 /* test eax, eax */ /* 0x361498BE: test eax, eax */ 13500 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13501 _cf = 0; 13502 _flag_k = FK_TEST; 13503 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498C7; /* 0x361498C0: jne 0x361498c7 */ 13504 L_361498C2: 13505 eax = MEM32(0x3616F10C); /* 0x361498C2: mov eax, dword ptr [0x3616f10c] */ 13506 L_361498C7: 13507 PUSH32(esp, eax); /* 0x361498C7: push eax */ 13508 PUSH32(esp, 0x362E75FCu); /* 0x361498C8: push 0x362e75fc */ 13509 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361498CD: call dword ptr [0x3616f18c] */ 13510 RECOMP_FLAGS_IN(); 13511 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13512 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13513 esp = esp + 8; /* 0x361498D3: add esp, 8 */ 13514 _flag_k = FK_ADD; 13515 PUSH32(esp, 0x362E75CCu); /* 0x361498D6: push 0x362e75cc */ 13516 ecx = ebp + (-0xB4); /* 0x361498DB: lea ecx, [ebp - 0xb4] */ 13517 RECOMP_ICALL(0x36008EF0u); /* 0x361498E1: call 0x36008ef0 */ /* not lifted */ 13518 RECOMP_FLAGS_IN(); 13519 PUSH32(esp, 0x36184170u); /* 0x361498E6: push 0x36184170 */ 13520 eax = ebp + (-0xB4); /* 0x361498EB: lea eax, [ebp - 0xb4] */ 13521 PUSH32(esp, eax); /* 0x361498F1: push eax */ 13522 RECOMP_ICALL(0x3615FD70u); /* 0x361498F2: call 0x3615fd70 */ /* not lifted */ 13523 RECOMP_FLAGS_IN(); 13524 L_361498F7: 13525 ecx = MEM32(ebp + (-0xC)); /* 0x361498F7: mov ecx, dword ptr [ebp - 0xc] */ 13526 edi = POP32_VAL(esp); /* 0x361498FA: pop edi */ 13527 eax = esi; /* 0x361498FB: mov eax, esi */ 13528 esi = POP32_VAL(esp); /* 0x361498FD: pop esi */ 13529 ebx = POP32_VAL(esp); /* 0x361498FE: pop ebx */ 13530 MEM32(FS_BASE + (0)) = ecx; /* 0x361498FF: mov dword ptr fs:[0], ecx */ 13531 esp = ebp; /* 0x36149906: mov esp, ebp */ 13532 ebp = POP32_VAL(esp); /* 0x36149908: pop ebp */ 13533 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149909: ret */ 13534 RECOMP_REGS_OUT(); 13535 } 13536 13537 void sub_361494CA(void) { 13538 int _fpu_cmp = 0; 13539 uint32_t _cf = 0; 13540 int _df = 1; 13541 uint32_t _flag_k = FK_NONE; 13542 uint32_t _flag_a = 0, _flag_b = 0; 13543 uint32_t _itail_tgt = 0; 13544 RECOMP_REGS_LOCALS 13545 RECOMP_ENTER(0x361494CAu); 13546 13547 L_361494CA: 13548 ecx = ebp + (-0x84); /* 0x361494CA: lea ecx, [ebp - 0x84] */ 13549 RECOMP_ICALL(0x3602F750u); /* 0x361494D0: call 0x3602f750 */ /* not lifted */ 13550 RECOMP_FLAGS_IN(); 13551 ecx = MEM32(ebp + 0x8); /* 0x361494D5: mov ecx, dword ptr [ebp + 8] */ 13552 eax = ebp + (-0x84); /* 0x361494D8: lea eax, [ebp - 0x84] */ 13553 PUSH32(esp, eax); /* 0x361494DE: push eax */ 13554 PUSH32(esp, ecx); /* 0x361494DF: push ecx */ 13555 MEM32(ebp + (-0x4)) = 0; /* 0x361494E0: mov dword ptr [ebp - 4], 0 */ 13556 RECOMP_ICALL(0x3602F810u); /* 0x361494E7: call 0x3602f810 */ /* not lifted */ 13557 RECOMP_FLAGS_IN(); 13558 esi = MEM32(ebx + 0x50); /* 0x361494EC: mov esi, dword ptr [ebx + 0x50] */ 13559 ecx = MEM32(esi + 0x8); /* 0x361494EF: mov ecx, dword ptr [esi + 8] */ 13560 edx = MEM32(esi + 0xC); /* 0x361494F2: mov edx, dword ptr [esi + 0xc] */ 13561 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 13562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13563 edx = edx - ecx; /* 0x361494F5: sub edx, ecx */ 13564 _flag_k = FK_CMP; 13565 eax = 0x66666667u; /* 0x361494F7: mov eax, 0x66666667 */ 13566 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361494FC: imul edx */ 13567 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13568 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13569 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361494FE: sar edx, 3 */ 13570 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13571 edx = (uint32_t)((int32_t)edx >> 3u); 13572 eax = edx; /* 0x36149501: mov eax, edx */ 13573 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149503: shr eax, 0x1f */ 13574 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13575 eax = eax >> 31u; /* 0x36149503: shr eax, 0x1f */ 13576 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 13577 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13578 edx = edx + eax; /* 0x36149506: add edx, eax */ 13579 _flag_k = FK_ADD; 13580 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13581 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13582 esp = esp + 8; /* 0x36149508: add esp, 8 */ 13583 _flag_k = FK_ADD; 13584 /* cmp edx, 1 */ /* 0x3614950B: cmp edx, 1 */ 13585 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 13586 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13587 _flag_k = FK_CMP; 13588 edi = ecx; /* 0x3614950E: mov edi, ecx */ 13589 if (CMP_AE(_flag_a, _flag_b)) goto L_361495E2; /* 0x36149510: jae 0x361495e2 */ 13590 L_36149516: 13591 eax = MEM32(esi + 0x4); /* 0x36149516: mov eax, dword ptr [esi + 4] */ 13592 /* test eax, eax */ /* 0x36149519: test eax, eax */ 13593 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13594 _cf = 0; 13595 _flag_k = FK_TEST; 13596 if (TEST_Z(_flag_a, _flag_b)) goto L_36149541; /* 0x3614951B: je 0x36149541 */ 13597 L_3614951D: 13598 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 13599 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13600 ecx = ecx - eax; /* 0x3614951D: sub ecx, eax */ 13601 _flag_k = FK_CMP; 13602 eax = 0x66666667u; /* 0x3614951F: mov eax, 0x66666667 */ 13603 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149524: imul ecx */ 13604 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13605 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13606 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149526: sar edx, 3 */ 13607 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13608 edx = (uint32_t)((int32_t)edx >> 3u); 13609 ecx = edx; /* 0x36149529: mov ecx, edx */ 13610 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614952B: shr ecx, 0x1f */ 13611 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13612 ecx = ecx >> 31u; /* 0x3614952B: shr ecx, 0x1f */ 13613 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 13614 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13615 edx = edx + ecx; /* 0x3614952E: add edx, ecx */ 13616 _flag_k = FK_ADD; 13617 /* cmp edx, 1 */ /* 0x36149530: cmp edx, 1 */ 13618 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 13619 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13620 _flag_k = FK_CMP; 13621 if (CMP_BE(_flag_a, _flag_b)) goto L_36149541; /* 0x36149533: jbe 0x36149541 */ 13622 L_36149535: 13623 ecx = esi; /* 0x36149535: mov ecx, esi */ 13624 RECOMP_ICALL(0x36149DC0u); /* 0x36149537: call 0x36149dc0 */ /* not lifted */ 13625 RECOMP_FLAGS_IN(); 13626 MEM32(ebp + (-0x14)) = eax; /* 0x3614953C: mov dword ptr [ebp - 0x14], eax */ 13627 goto L_36149548; /* 0x3614953F: jmp 0x36149548 */ 13628 L_36149541: 13629 MEM32(ebp + (-0x14)) = 1; /* 0x36149541: mov dword ptr [ebp - 0x14], 1 */ 13630 L_36149548: 13631 ecx = esi; /* 0x36149548: mov ecx, esi */ 13632 RECOMP_ICALL(0x36149DC0u); /* 0x3614954A: call 0x36149dc0 */ /* not lifted */ 13633 RECOMP_FLAGS_IN(); 13634 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 13635 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13636 eax = eax + MEM32(ebp + (-0x14)); /* 0x3614954F: add eax, dword ptr [ebp - 0x14] */ 13637 _flag_k = FK_ADD; 13638 MEM32(ebp + (-0x2C)) = eax; /* 0x36149552: mov dword ptr [ebp - 0x2c], eax */ 13639 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149559; /* 0x36149555: jns 0x36149559 */ 13640 L_36149557: 13641 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13642 eax = 0; /* 0x36149557: xor eax, eax */ 13643 _cf = 0; 13644 _flag_k = FK_TEST; 13645 L_36149559: 13646 edx = eax + eax * 4; /* 0x36149559: lea edx, [eax + eax*4] */ 13647 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614955C: shl edx, 2 */ 13648 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13649 edx = edx << 2u; /* 0x3614955C: shl edx, 2 */ 13650 PUSH32(esp, edx); /* 0x3614955F: push edx */ 13651 RECOMP_ICALL(0x3615FD6Au); /* 0x36149560: call 0x3615fd6a */ /* not lifted */ 13652 RECOMP_FLAGS_IN(); 13653 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13654 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13655 esp = esp + 4; /* 0x36149565: add esp, 4 */ 13656 _flag_k = FK_ADD; 13657 PUSH32(esp, eax); /* 0x36149568: push eax */ 13658 MEM32(ebp + (-0x14)) = eax; /* 0x36149569: mov dword ptr [ebp - 0x14], eax */ 13659 eax = MEM32(esi + 0x4); /* 0x3614956C: mov eax, dword ptr [esi + 4] */ 13660 PUSH32(esp, edi); /* 0x3614956F: push edi */ 13661 PUSH32(esp, eax); /* 0x36149570: push eax */ 13662 ecx = esi; /* 0x36149571: mov ecx, esi */ 13663 RECOMP_ICALL(0x36149E20u); /* 0x36149573: call 0x36149e20 */ /* not lifted */ 13664 RECOMP_FLAGS_IN(); 13665 ecx = ebp + (-0x84); /* 0x36149578: lea ecx, [ebp - 0x84] */ 13666 PUSH32(esp, ecx); /* 0x3614957E: push ecx */ 13667 PUSH32(esp, 1); /* 0x3614957F: push 1 */ 13668 PUSH32(esp, eax); /* 0x36149581: push eax */ 13669 ecx = esi; /* 0x36149582: mov ecx, esi */ 13670 MEM32(ebp + (-0x18)) = eax; /* 0x36149584: mov dword ptr [ebp - 0x18], eax */ 13671 RECOMP_ICALL(0x3614A190u); /* 0x36149587: call 0x3614a190 */ /* not lifted */ 13672 RECOMP_FLAGS_IN(); 13673 edx = MEM32(ebp + (-0x18)); /* 0x3614958C: mov edx, dword ptr [ebp - 0x18] */ 13674 eax = MEM32(esi + 0x8); /* 0x3614958F: mov eax, dword ptr [esi + 8] */ 13675 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u); 13676 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13677 edx = edx + 0x14u; /* 0x36149592: add edx, 0x14 */ 13678 _flag_k = FK_ADD; 13679 PUSH32(esp, edx); /* 0x36149595: push edx */ 13680 PUSH32(esp, eax); /* 0x36149596: push eax */ 13681 PUSH32(esp, edi); /* 0x36149597: push edi */ 13682 ecx = esi; /* 0x36149598: mov ecx, esi */ 13683 RECOMP_ICALL(0x36149E20u); /* 0x3614959A: call 0x36149e20 */ /* not lifted */ 13684 RECOMP_FLAGS_IN(); 13685 ecx = MEM32(esi + 0x8); /* 0x3614959F: mov ecx, dword ptr [esi + 8] */ 13686 edx = MEM32(esi + 0x4); /* 0x361495A2: mov edx, dword ptr [esi + 4] */ 13687 PUSH32(esp, ecx); /* 0x361495A5: push ecx */ 13688 PUSH32(esp, edx); /* 0x361495A6: push edx */ 13689 ecx = esi; /* 0x361495A7: mov ecx, esi */ 13690 RECOMP_ICALL(0x36149DF0u); /* 0x361495A9: call 0x36149df0 */ /* not lifted */ 13691 RECOMP_FLAGS_IN(); 13692 eax = MEM32(esi + 0x4); /* 0x361495AE: mov eax, dword ptr [esi + 4] */ 13693 PUSH32(esp, eax); /* 0x361495B1: push eax */ 13694 RECOMP_ICALL(0x3615FCC4u); /* 0x361495B2: call 0x3615fcc4 */ /* not lifted */ 13695 RECOMP_FLAGS_IN(); 13696 eax = MEM32(ebp + (-0x2C)); /* 0x361495B7: mov eax, dword ptr [ebp - 0x2c] */ 13697 edi = MEM32(ebp + (-0x14)); /* 0x361495BA: mov edi, dword ptr [ebp - 0x14] */ 13698 eax = eax + eax * 4; /* 0x361495BD: lea eax, [eax + eax*4] */ 13699 ecx = edi + eax * 4; /* 0x361495C0: lea ecx, [edi + eax*4] */ 13700 MEM32(esi + 0xC) = ecx; /* 0x361495C3: mov dword ptr [esi + 0xc], ecx */ 13701 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13702 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13703 esp = esp + 4; /* 0x361495C6: add esp, 4 */ 13704 _flag_k = FK_ADD; 13705 ecx = esi; /* 0x361495C9: mov ecx, esi */ 13706 RECOMP_ICALL(0x36149DC0u); /* 0x361495CB: call 0x36149dc0 */ /* not lifted */ 13707 RECOMP_FLAGS_IN(); 13708 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13709 eax = eax + 1; /* 0x361495D0: inc eax */ 13710 _flag_k = FK_INC; 13711 edx = eax + eax * 4; /* 0x361495D1: lea edx, [eax + eax*4] */ 13712 eax = edi + edx * 4; /* 0x361495D4: lea eax, [edi + edx*4] */ 13713 MEM32(esi + 0x8) = eax; /* 0x361495D7: mov dword ptr [esi + 8], eax */ 13714 MEM32(esi + 0x4) = edi; /* 0x361495DA: mov dword ptr [esi + 4], edi */ 13715 goto L_36149681; /* 0x361495DD: jmp 0x36149681 */ 13716 L_361495E2: 13717 edx = ecx; /* 0x361495E2: mov edx, ecx */ 13718 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 13719 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13720 edx = edx - edi; /* 0x361495E4: sub edx, edi */ 13721 _flag_k = FK_CMP; 13722 eax = 0x66666667u; /* 0x361495E6: mov eax, 0x66666667 */ 13723 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361495EB: imul edx */ 13724 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13725 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13726 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361495ED: sar edx, 3 */ 13727 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13728 edx = (uint32_t)((int32_t)edx >> 3u); 13729 eax = edx; /* 0x361495F0: mov eax, edx */ 13730 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361495F2: shr eax, 0x1f */ 13731 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13732 eax = eax >> 31u; /* 0x361495F2: shr eax, 0x1f */ 13733 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 13734 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13735 edx = edx + eax; /* 0x361495F5: add edx, eax */ 13736 _flag_k = FK_ADD; 13737 /* cmp edx, 1 */ /* 0x361495F7: cmp edx, 1 */ 13738 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 13739 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13740 _flag_k = FK_CMP; 13741 if (CMP_AE(_flag_a, _flag_b)) goto L_3614964E; /* 0x361495FA: jae 0x3614964e */ 13742 L_361495FC: 13743 edx = edi + 0x14; /* 0x361495FC: lea edx, [edi + 0x14] */ 13744 PUSH32(esp, edx); /* 0x361495FF: push edx */ 13745 PUSH32(esp, ecx); /* 0x36149600: push ecx */ 13746 PUSH32(esp, edi); /* 0x36149601: push edi */ 13747 ecx = esi; /* 0x36149602: mov ecx, esi */ 13748 RECOMP_ICALL(0x36149E20u); /* 0x36149604: call 0x36149e20 */ /* not lifted */ 13749 RECOMP_FLAGS_IN(); 13750 ecx = MEM32(esi + 0x8); /* 0x36149609: mov ecx, dword ptr [esi + 8] */ 13751 eax = ebp + (-0x84); /* 0x3614960C: lea eax, [ebp - 0x84] */ 13752 PUSH32(esp, eax); /* 0x36149612: push eax */ 13753 edx = ecx; /* 0x36149613: mov edx, ecx */ 13754 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 13755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13756 edx = edx - edi; /* 0x36149615: sub edx, edi */ 13757 _flag_k = FK_CMP; 13758 eax = 0x66666667u; /* 0x36149617: mov eax, 0x66666667 */ 13759 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3614961C: imul edx */ 13760 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13761 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13762 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3614961E: sar edx, 3 */ 13763 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13764 edx = (uint32_t)((int32_t)edx >> 3u); 13765 eax = edx; /* 0x36149621: mov eax, edx */ 13766 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149623: shr eax, 0x1f */ 13767 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13768 eax = eax >> 31u; /* 0x36149623: shr eax, 0x1f */ 13769 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 13770 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13771 edx = edx + eax; /* 0x36149626: add edx, eax */ 13772 _flag_k = FK_ADD; 13773 eax = 1; /* 0x36149628: mov eax, 1 */ 13774 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 13775 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13776 eax = eax - edx; /* 0x3614962D: sub eax, edx */ 13777 _flag_k = FK_CMP; 13778 PUSH32(esp, eax); /* 0x3614962F: push eax */ 13779 PUSH32(esp, ecx); /* 0x36149630: push ecx */ 13780 ecx = esi; /* 0x36149631: mov ecx, esi */ 13781 RECOMP_ICALL(0x3614A190u); /* 0x36149633: call 0x3614a190 */ /* not lifted */ 13782 RECOMP_FLAGS_IN(); 13783 edx = MEM32(esi + 0x8); /* 0x36149638: mov edx, dword ptr [esi + 8] */ 13784 ecx = ebp + (-0x84); /* 0x3614963B: lea ecx, [ebp - 0x84] */ 13785 PUSH32(esp, ecx); /* 0x36149641: push ecx */ 13786 PUSH32(esp, edx); /* 0x36149642: push edx */ 13787 PUSH32(esp, edi); /* 0x36149643: push edi */ 13788 RECOMP_ICALL(0x3614A2A0u); /* 0x36149644: call 0x3614a2a0 */ /* not lifted */ 13789 RECOMP_FLAGS_IN(); 13790 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 13791 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13792 esp = esp + 0xCu; /* 0x36149649: add esp, 0xc */ 13793 _flag_k = FK_ADD; 13794 goto L_3614967D; /* 0x3614964C: jmp 0x3614967d */ 13795 L_3614964E: 13796 PUSH32(esp, ecx); /* 0x3614964E: push ecx */ 13797 PUSH32(esp, ecx); /* 0x3614964F: push ecx */ 13798 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu); 13799 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13800 ecx = ecx + 0xFFFFFFECu; /* 0x36149650: add ecx, -0x14 */ 13801 _flag_k = FK_ADD; 13802 PUSH32(esp, ecx); /* 0x36149653: push ecx */ 13803 ecx = esi; /* 0x36149654: mov ecx, esi */ 13804 RECOMP_ICALL(0x36149E20u); /* 0x36149656: call 0x36149e20 */ /* not lifted */ 13805 RECOMP_FLAGS_IN(); 13806 eax = MEM32(esi + 0x8); /* 0x3614965B: mov eax, dword ptr [esi + 8] */ 13807 PUSH32(esp, eax); /* 0x3614965E: push eax */ 13808 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu); 13809 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13810 eax = eax + 0xFFFFFFECu; /* 0x3614965F: add eax, -0x14 */ 13811 _flag_k = FK_ADD; 13812 PUSH32(esp, eax); /* 0x36149662: push eax */ 13813 PUSH32(esp, edi); /* 0x36149663: push edi */ 13814 RECOMP_ICALL(0x3614A2D0u); /* 0x36149664: call 0x3614a2d0 */ /* not lifted */ 13815 RECOMP_FLAGS_IN(); 13816 eax = ebp + (-0x84); /* 0x36149669: lea eax, [ebp - 0x84] */ 13817 PUSH32(esp, eax); /* 0x3614966F: push eax */ 13818 ecx = edi + 0x14; /* 0x36149670: lea ecx, [edi + 0x14] */ 13819 PUSH32(esp, ecx); /* 0x36149673: push ecx */ 13820 PUSH32(esp, edi); /* 0x36149674: push edi */ 13821 RECOMP_ICALL(0x3614A2A0u); /* 0x36149675: call 0x3614a2a0 */ /* not lifted */ 13822 RECOMP_FLAGS_IN(); 13823 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 13824 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13825 esp = esp + 0x18u; /* 0x3614967A: add esp, 0x18 */ 13826 _flag_k = FK_ADD; 13827 L_3614967D: 13828 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x14u); 13829 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13830 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x14u; /* 0x3614967D: add dword ptr [esi + 8], 0x14 */ 13831 _flag_k = FK_ADD; 13832 L_36149681: 13833 ecx = ebp + (-0x84); /* 0x36149681: lea ecx, [ebp - 0x84] */ 13834 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149687: mov dword ptr [ebp - 4], 0xffffffff */ 13835 RECOMP_ICALL(0x3602F7D0u); /* 0x3614968E: call 0x3602f7d0 */ /* not lifted */ 13836 RECOMP_FLAGS_IN(); 13837 eax = MEM32(ebp + (-0x10)); /* 0x36149693: mov eax, dword ptr [ebp - 0x10] */ 13838 edx = MEM32(ebp + (-0x4C)); /* 0x36149696: mov edx, dword ptr [ebp - 0x4c] */ 13839 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13840 eax = eax + 1; /* 0x36149699: inc eax */ 13841 _flag_k = FK_INC; 13842 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 13843 edx = edx & 0xFFu; /* 0x3614969A: and edx, 0xff */ 13844 _cf = 0; 13845 _flag_k = FK_TEST; 13846 /* cmp eax, edx */ /* 0x361496A0: cmp eax, edx */ 13847 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 13848 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13849 _flag_k = FK_CMP; 13850 MEM32(ebp + (-0x10)) = eax; /* 0x361496A2: mov dword ptr [ebp - 0x10], eax */ 13851 RECOMP_BACKEDGE(); 13852 if (CMP_L(_flag_a, _flag_b)) goto L_361494CA; /* 0x361496A5: jl 0x361494ca */ 13853 L_361496AB: 13854 SET_LO8(eax, MEM8(ebp + (-0x50))); /* 0x361496AB: mov al, byte ptr [ebp - 0x50] */ 13855 /* test LO8(eax), LO8(eax) */ /* 0x361496AE: test al, al */ 13856 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13857 _cf = 0; 13858 _flag_k = FK_NARROW(FK_TEST, 24); 13859 MEM32(ebp + (-0x14)) = 0; /* 0x361496B0: mov dword ptr [ebp - 0x14], 0 */ 13860 if (TEST_Z(_flag_a, _flag_b)) goto L_361498AA; /* 0x361496B7: jbe 0x361498aa */ 13861 L_361496BD: 13862 ecx = ebp + (-0xAC); /* 0x361496BD: lea ecx, [ebp - 0xac] */ 13863 RECOMP_ICALL(0x3602F870u); /* 0x361496C3: call 0x3602f870 */ /* not lifted */ 13864 RECOMP_FLAGS_IN(); 13865 ecx = MEM32(ebp + 0x8); /* 0x361496C8: mov ecx, dword ptr [ebp + 8] */ 13866 eax = ebp + (-0xAC); /* 0x361496CB: lea eax, [ebp - 0xac] */ 13867 PUSH32(esp, eax); /* 0x361496D1: push eax */ 13868 PUSH32(esp, ecx); /* 0x361496D2: push ecx */ 13869 MEM32(ebp + (-0x4)) = 1; /* 0x361496D3: mov dword ptr [ebp - 4], 1 */ 13870 RECOMP_ICALL(0x3602F9B0u); /* 0x361496DA: call 0x3602f9b0 */ /* not lifted */ 13871 RECOMP_FLAGS_IN(); 13872 esi = MEM32(ebx + 0x54); /* 0x361496DF: mov esi, dword ptr [ebx + 0x54] */ 13873 ecx = MEM32(esi + 0x8); /* 0x361496E2: mov ecx, dword ptr [esi + 8] */ 13874 edx = MEM32(esi + 0xC); /* 0x361496E5: mov edx, dword ptr [esi + 0xc] */ 13875 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 13876 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13877 edx = edx - ecx; /* 0x361496E8: sub edx, ecx */ 13878 _flag_k = FK_CMP; 13879 MEM32(ebp + (-0x18)) = edx; /* 0x361496EA: mov dword ptr [ebp - 0x18], edx */ 13880 eax = 0x88888889u; /* 0x361496ED: mov eax, 0x88888889 */ 13881 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361496F2: imul edx */ 13882 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13883 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13884 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 13885 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13886 edx = edx + MEM32(ebp + (-0x18)); /* 0x361496F4: add edx, dword ptr [ebp - 0x18] */ 13887 _flag_k = FK_ADD; 13888 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361496F7: sar edx, 5 */ 13889 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13890 edx = (uint32_t)((int32_t)edx >> 5u); 13891 eax = edx; /* 0x361496FA: mov eax, edx */ 13892 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361496FC: shr eax, 0x1f */ 13893 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13894 eax = eax >> 31u; /* 0x361496FC: shr eax, 0x1f */ 13895 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 13896 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13897 edx = edx + eax; /* 0x361496FF: add edx, eax */ 13898 _flag_k = FK_ADD; 13899 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13900 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13901 esp = esp + 8; /* 0x36149701: add esp, 8 */ 13902 _flag_k = FK_ADD; 13903 /* cmp edx, 1 */ /* 0x36149704: cmp edx, 1 */ 13904 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 13905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13906 _flag_k = FK_CMP; 13907 edi = ecx; /* 0x36149707: mov edi, ecx */ 13908 if (CMP_AE(_flag_a, _flag_b)) goto L_361497D8; /* 0x36149709: jae 0x361497d8 */ 13909 L_3614970F: 13910 eax = MEM32(esi + 0x4); /* 0x3614970F: mov eax, dword ptr [esi + 4] */ 13911 /* test eax, eax */ /* 0x36149712: test eax, eax */ 13912 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13913 _cf = 0; 13914 _flag_k = FK_TEST; 13915 if (TEST_Z(_flag_a, _flag_b)) goto L_36149732; /* 0x36149714: je 0x36149732 */ 13916 L_36149716: 13917 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 13918 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13919 ecx = ecx - eax; /* 0x36149716: sub ecx, eax */ 13920 _flag_k = FK_CMP; 13921 eax = 0x88888889u; /* 0x36149718: mov eax, 0x88888889 */ 13922 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3614971D: imul ecx */ 13923 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 13924 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 13925 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 13926 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13927 edx = edx + ecx; /* 0x3614971F: add edx, ecx */ 13928 _flag_k = FK_ADD; 13929 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36149721: sar edx, 5 */ 13930 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13931 edx = (uint32_t)((int32_t)edx >> 5u); 13932 ecx = edx; /* 0x36149724: mov ecx, edx */ 13933 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36149726: shr ecx, 0x1f */ 13934 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13935 ecx = ecx >> 31u; /* 0x36149726: shr ecx, 0x1f */ 13936 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 13937 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13938 edx = edx + ecx; /* 0x36149729: add edx, ecx */ 13939 _flag_k = FK_ADD; 13940 /* cmp edx, 1 */ /* 0x3614972B: cmp edx, 1 */ 13941 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 13942 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13943 _flag_k = FK_CMP; 13944 ebx = edx; /* 0x3614972E: mov ebx, edx */ 13945 if (CMP_A(_flag_a, _flag_b)) goto L_36149737; /* 0x36149730: ja 0x36149737 */ 13946 L_36149732: 13947 ebx = 1; /* 0x36149732: mov ebx, 1 */ 13948 L_36149737: 13949 ecx = esi; /* 0x36149737: mov ecx, esi */ 13950 RECOMP_ICALL(0x36149E90u); /* 0x36149739: call 0x36149e90 */ /* not lifted */ 13951 RECOMP_FLAGS_IN(); 13952 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 13953 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13954 eax = eax + ebx; /* 0x3614973E: add eax, ebx */ 13955 _flag_k = FK_ADD; 13956 MEM32(ebp + (-0x2C)) = eax; /* 0x36149740: mov dword ptr [ebp - 0x2c], eax */ 13957 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149747; /* 0x36149743: jns 0x36149747 */ 13958 L_36149745: 13959 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13960 eax = 0; /* 0x36149745: xor eax, eax */ 13961 _cf = 0; 13962 _flag_k = FK_TEST; 13963 L_36149747: 13964 eax = eax + eax * 2; /* 0x36149747: lea eax, [eax + eax*2] */ 13965 edx = eax + eax * 4; /* 0x3614974A: lea edx, [eax + eax*4] */ 13966 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614974D: shl edx, 2 */ 13967 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13968 edx = edx << 2u; /* 0x3614974D: shl edx, 2 */ 13969 PUSH32(esp, edx); /* 0x36149750: push edx */ 13970 RECOMP_ICALL(0x3615FD6Au); /* 0x36149751: call 0x3615fd6a */ /* not lifted */ 13971 RECOMP_FLAGS_IN(); 13972 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13973 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13974 esp = esp + 4; /* 0x36149756: add esp, 4 */ 13975 _flag_k = FK_ADD; 13976 ebx = eax; /* 0x36149759: mov ebx, eax */ 13977 eax = MEM32(esi + 0x4); /* 0x3614975B: mov eax, dword ptr [esi + 4] */ 13978 PUSH32(esp, ebx); /* 0x3614975E: push ebx */ 13979 PUSH32(esp, edi); /* 0x3614975F: push edi */ 13980 PUSH32(esp, eax); /* 0x36149760: push eax */ 13981 ecx = esi; /* 0x36149761: mov ecx, esi */ 13982 RECOMP_ICALL(0x36149EF0u); /* 0x36149763: call 0x36149ef0 */ /* not lifted */ 13983 RECOMP_FLAGS_IN(); 13984 ecx = ebp + (-0xAC); /* 0x36149768: lea ecx, [ebp - 0xac] */ 13985 PUSH32(esp, ecx); /* 0x3614976E: push ecx */ 13986 PUSH32(esp, 1); /* 0x3614976F: push 1 */ 13987 PUSH32(esp, eax); /* 0x36149771: push eax */ 13988 ecx = esi; /* 0x36149772: mov ecx, esi */ 13989 MEM32(ebp + (-0x18)) = eax; /* 0x36149774: mov dword ptr [ebp - 0x18], eax */ 13990 RECOMP_ICALL(0x3614A1C0u); /* 0x36149777: call 0x3614a1c0 */ /* not lifted */ 13991 RECOMP_FLAGS_IN(); 13992 edx = MEM32(ebp + (-0x18)); /* 0x3614977C: mov edx, dword ptr [ebp - 0x18] */ 13993 eax = MEM32(esi + 0x8); /* 0x3614977F: mov eax, dword ptr [esi + 8] */ 13994 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x3Cu); 13995 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13996 edx = edx + 0x3Cu; /* 0x36149782: add edx, 0x3c */ 13997 _flag_k = FK_ADD; 13998 PUSH32(esp, edx); /* 0x36149785: push edx */ 13999 PUSH32(esp, eax); /* 0x36149786: push eax */ 14000 PUSH32(esp, edi); /* 0x36149787: push edi */ 14001 ecx = esi; /* 0x36149788: mov ecx, esi */ 14002 RECOMP_ICALL(0x36149EF0u); /* 0x3614978A: call 0x36149ef0 */ /* not lifted */ 14003 RECOMP_FLAGS_IN(); 14004 ecx = MEM32(esi + 0x8); /* 0x3614978F: mov ecx, dword ptr [esi + 8] */ 14005 edx = MEM32(esi + 0x4); /* 0x36149792: mov edx, dword ptr [esi + 4] */ 14006 PUSH32(esp, ecx); /* 0x36149795: push ecx */ 14007 PUSH32(esp, edx); /* 0x36149796: push edx */ 14008 ecx = esi; /* 0x36149797: mov ecx, esi */ 14009 RECOMP_ICALL(0x36149EC0u); /* 0x36149799: call 0x36149ec0 */ /* not lifted */ 14010 RECOMP_FLAGS_IN(); 14011 eax = MEM32(esi + 0x4); /* 0x3614979E: mov eax, dword ptr [esi + 4] */ 14012 PUSH32(esp, eax); /* 0x361497A1: push eax */ 14013 RECOMP_ICALL(0x3615FCC4u); /* 0x361497A2: call 0x3615fcc4 */ /* not lifted */ 14014 RECOMP_FLAGS_IN(); 14015 eax = MEM32(ebp + (-0x2C)); /* 0x361497A7: mov eax, dword ptr [ebp - 0x2c] */ 14016 eax = eax + eax * 2; /* 0x361497AA: lea eax, [eax + eax*2] */ 14017 eax = eax + eax * 4; /* 0x361497AD: lea eax, [eax + eax*4] */ 14018 ecx = ebx + eax * 4; /* 0x361497B0: lea ecx, [ebx + eax*4] */ 14019 MEM32(esi + 0xC) = ecx; /* 0x361497B3: mov dword ptr [esi + 0xc], ecx */ 14020 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14021 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14022 esp = esp + 4; /* 0x361497B6: add esp, 4 */ 14023 _flag_k = FK_ADD; 14024 ecx = esi; /* 0x361497B9: mov ecx, esi */ 14025 RECOMP_ICALL(0x36149E90u); /* 0x361497BB: call 0x36149e90 */ /* not lifted */ 14026 RECOMP_FLAGS_IN(); 14027 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14028 eax = eax + 1; /* 0x361497C0: inc eax */ 14029 _flag_k = FK_INC; 14030 eax = eax + eax * 2; /* 0x361497C1: lea eax, [eax + eax*2] */ 14031 edx = eax + eax * 4; /* 0x361497C4: lea edx, [eax + eax*4] */ 14032 eax = ebx + edx * 4; /* 0x361497C7: lea eax, [ebx + edx*4] */ 14033 MEM32(esi + 0x4) = ebx; /* 0x361497CA: mov dword ptr [esi + 4], ebx */ 14034 ebx = MEM32(ebp + 0xC); /* 0x361497CD: mov ebx, dword ptr [ebp + 0xc] */ 14035 MEM32(esi + 0x8) = eax; /* 0x361497D0: mov dword ptr [esi + 8], eax */ 14036 goto L_36149880; /* 0x361497D3: jmp 0x36149880 */ 14037 L_361497D8: 14038 edx = ecx; /* 0x361497D8: mov edx, ecx */ 14039 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 14040 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14041 edx = edx - edi; /* 0x361497DA: sub edx, edi */ 14042 _flag_k = FK_CMP; 14043 MEM32(ebp + (-0x18)) = edx; /* 0x361497DC: mov dword ptr [ebp - 0x18], edx */ 14044 eax = 0x88888889u; /* 0x361497DF: mov eax, 0x88888889 */ 14045 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361497E4: imul edx */ 14046 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 14047 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 14048 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 14049 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14050 edx = edx + MEM32(ebp + (-0x18)); /* 0x361497E6: add edx, dword ptr [ebp - 0x18] */ 14051 _flag_k = FK_ADD; 14052 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361497E9: sar edx, 5 */ 14053 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14054 edx = (uint32_t)((int32_t)edx >> 5u); 14055 eax = edx; /* 0x361497EC: mov eax, edx */ 14056 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361497EE: shr eax, 0x1f */ 14057 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14058 eax = eax >> 31u; /* 0x361497EE: shr eax, 0x1f */ 14059 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 14060 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14061 edx = edx + eax; /* 0x361497F1: add edx, eax */ 14062 _flag_k = FK_ADD; 14063 /* cmp edx, 1 */ /* 0x361497F3: cmp edx, 1 */ 14064 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 14065 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14066 _flag_k = FK_CMP; 14067 if (CMP_AE(_flag_a, _flag_b)) goto L_3614984D; /* 0x361497F6: jae 0x3614984d */ 14068 L_361497F8: 14069 edx = edi + 0x3C; /* 0x361497F8: lea edx, [edi + 0x3c] */ 14070 PUSH32(esp, edx); /* 0x361497FB: push edx */ 14071 PUSH32(esp, ecx); /* 0x361497FC: push ecx */ 14072 PUSH32(esp, edi); /* 0x361497FD: push edi */ 14073 ecx = esi; /* 0x361497FE: mov ecx, esi */ 14074 RECOMP_ICALL(0x36149EF0u); /* 0x36149800: call 0x36149ef0 */ /* not lifted */ 14075 RECOMP_FLAGS_IN(); 14076 ecx = MEM32(esi + 0x8); /* 0x36149805: mov ecx, dword ptr [esi + 8] */ 14077 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 14078 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14079 ecx = ecx - edi; /* 0x36149808: sub ecx, edi */ 14080 _flag_k = FK_CMP; 14081 eax = ebp + (-0xAC); /* 0x3614980A: lea eax, [ebp - 0xac] */ 14082 PUSH32(esp, eax); /* 0x36149810: push eax */ 14083 eax = 0x88888889u; /* 0x36149811: mov eax, 0x88888889 */ 14084 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149816: imul ecx */ 14085 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 14086 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 14087 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 14088 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14089 edx = edx + ecx; /* 0x36149818: add edx, ecx */ 14090 _flag_k = FK_ADD; 14091 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x3614981A: sar edx, 5 */ 14092 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14093 edx = (uint32_t)((int32_t)edx >> 5u); 14094 ecx = edx; /* 0x3614981D: mov ecx, edx */ 14095 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614981F: shr ecx, 0x1f */ 14096 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14097 ecx = ecx >> 31u; /* 0x3614981F: shr ecx, 0x1f */ 14098 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 14099 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14100 edx = edx + ecx; /* 0x36149822: add edx, ecx */ 14101 _flag_k = FK_ADD; 14102 eax = 1; /* 0x36149824: mov eax, 1 */ 14103 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 14104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14105 eax = eax - edx; /* 0x36149829: sub eax, edx */ 14106 _flag_k = FK_CMP; 14107 PUSH32(esp, eax); /* 0x3614982B: push eax */ 14108 eax = MEM32(esi + 0x8); /* 0x3614982C: mov eax, dword ptr [esi + 8] */ 14109 PUSH32(esp, eax); /* 0x3614982F: push eax */ 14110 ecx = esi; /* 0x36149830: mov ecx, esi */ 14111 RECOMP_ICALL(0x3614A1C0u); /* 0x36149832: call 0x3614a1c0 */ /* not lifted */ 14112 RECOMP_FLAGS_IN(); 14113 edx = MEM32(esi + 0x8); /* 0x36149837: mov edx, dword ptr [esi + 8] */ 14114 ecx = ebp + (-0xAC); /* 0x3614983A: lea ecx, [ebp - 0xac] */ 14115 PUSH32(esp, ecx); /* 0x36149840: push ecx */ 14116 PUSH32(esp, edx); /* 0x36149841: push edx */ 14117 PUSH32(esp, edi); /* 0x36149842: push edi */ 14118 RECOMP_ICALL(0x3614A360u); /* 0x36149843: call 0x3614a360 */ /* not lifted */ 14119 RECOMP_FLAGS_IN(); 14120 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 14121 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14122 esp = esp + 0xCu; /* 0x36149848: add esp, 0xc */ 14123 _flag_k = FK_ADD; 14124 goto L_3614987C; /* 0x3614984B: jmp 0x3614987c */ 14125 L_3614984D: 14126 PUSH32(esp, ecx); /* 0x3614984D: push ecx */ 14127 PUSH32(esp, ecx); /* 0x3614984E: push ecx */ 14128 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC4u); 14129 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14130 ecx = ecx + 0xFFFFFFC4u; /* 0x3614984F: add ecx, -0x3c */ 14131 _flag_k = FK_ADD; 14132 PUSH32(esp, ecx); /* 0x36149852: push ecx */ 14133 ecx = esi; /* 0x36149853: mov ecx, esi */ 14134 RECOMP_ICALL(0x36149EF0u); /* 0x36149855: call 0x36149ef0 */ /* not lifted */ 14135 RECOMP_FLAGS_IN(); 14136 eax = MEM32(esi + 0x8); /* 0x3614985A: mov eax, dword ptr [esi + 8] */ 14137 PUSH32(esp, eax); /* 0x3614985D: push eax */ 14138 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFC4u); 14139 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14140 eax = eax + 0xFFFFFFC4u; /* 0x3614985E: add eax, -0x3c */ 14141 _flag_k = FK_ADD; 14142 PUSH32(esp, eax); /* 0x36149861: push eax */ 14143 PUSH32(esp, edi); /* 0x36149862: push edi */ 14144 RECOMP_ICALL(0x3614A390u); /* 0x36149863: call 0x3614a390 */ /* not lifted */ 14145 RECOMP_FLAGS_IN(); 14146 eax = ebp + (-0xAC); /* 0x36149868: lea eax, [ebp - 0xac] */ 14147 PUSH32(esp, eax); /* 0x3614986E: push eax */ 14148 ecx = edi + 0x3C; /* 0x3614986F: lea ecx, [edi + 0x3c] */ 14149 PUSH32(esp, ecx); /* 0x36149872: push ecx */ 14150 PUSH32(esp, edi); /* 0x36149873: push edi */ 14151 RECOMP_ICALL(0x3614A360u); /* 0x36149874: call 0x3614a360 */ /* not lifted */ 14152 RECOMP_FLAGS_IN(); 14153 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 14154 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14155 esp = esp + 0x18u; /* 0x36149879: add esp, 0x18 */ 14156 _flag_k = FK_ADD; 14157 L_3614987C: 14158 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x3Cu); 14159 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14160 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x3Cu; /* 0x3614987C: add dword ptr [esi + 8], 0x3c */ 14161 _flag_k = FK_ADD; 14162 L_36149880: 14163 ecx = ebp + (-0xAC); /* 0x36149880: lea ecx, [ebp - 0xac] */ 14164 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149886: mov dword ptr [ebp - 4], 0xffffffff */ 14165 RECOMP_ICALL(0x3602F940u); /* 0x3614988D: call 0x3602f940 */ /* not lifted */ 14166 RECOMP_FLAGS_IN(); 14167 eax = MEM32(ebp + (-0x14)); /* 0x36149892: mov eax, dword ptr [ebp - 0x14] */ 14168 edx = MEM32(ebp + (-0x50)); /* 0x36149895: mov edx, dword ptr [ebp - 0x50] */ 14169 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14170 eax = eax + 1; /* 0x36149898: inc eax */ 14171 _flag_k = FK_INC; 14172 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 14173 edx = edx & 0xFFu; /* 0x36149899: and edx, 0xff */ 14174 _cf = 0; 14175 _flag_k = FK_TEST; 14176 /* cmp eax, edx */ /* 0x3614989F: cmp eax, edx */ 14177 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 14178 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14179 _flag_k = FK_CMP; 14180 MEM32(ebp + (-0x14)) = eax; /* 0x361498A1: mov dword ptr [ebp - 0x14], eax */ 14181 RECOMP_BACKEDGE(); 14182 if (CMP_L(_flag_a, _flag_b)) goto L_361496BD; /* 0x361498A4: jl 0x361496bd */ 14183 L_361498AA: 14184 esi = MEM32(ebp + 0x8); /* 0x361498AA: mov esi, dword ptr [ebp + 8] */ 14185 ecx = esi; /* 0x361498AD: mov ecx, esi */ 14186 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361498AF: call dword ptr [0x3616fadc] */ 14187 RECOMP_FLAGS_IN(); 14188 /* test eax, eax */ /* 0x361498B5: test eax, eax */ 14189 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14190 _cf = 0; 14191 _flag_k = FK_TEST; 14192 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498F7; /* 0x361498B7: jne 0x361498f7 */ 14193 L_361498B9: 14194 ebx = MEM32(ebx); /* 0x361498B9: mov ebx, dword ptr [ebx] */ 14195 eax = MEM32(ebx + 0x4); /* 0x361498BB: mov eax, dword ptr [ebx + 4] */ 14196 /* test eax, eax */ /* 0x361498BE: test eax, eax */ 14197 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14198 _cf = 0; 14199 _flag_k = FK_TEST; 14200 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498C7; /* 0x361498C0: jne 0x361498c7 */ 14201 L_361498C2: 14202 eax = MEM32(0x3616F10C); /* 0x361498C2: mov eax, dword ptr [0x3616f10c] */ 14203 L_361498C7: 14204 PUSH32(esp, eax); /* 0x361498C7: push eax */ 14205 PUSH32(esp, 0x362E75FCu); /* 0x361498C8: push 0x362e75fc */ 14206 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361498CD: call dword ptr [0x3616f18c] */ 14207 RECOMP_FLAGS_IN(); 14208 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 14209 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14210 esp = esp + 8; /* 0x361498D3: add esp, 8 */ 14211 _flag_k = FK_ADD; 14212 PUSH32(esp, 0x362E75CCu); /* 0x361498D6: push 0x362e75cc */ 14213 ecx = ebp + (-0xB4); /* 0x361498DB: lea ecx, [ebp - 0xb4] */ 14214 RECOMP_ICALL(0x36008EF0u); /* 0x361498E1: call 0x36008ef0 */ /* not lifted */ 14215 RECOMP_FLAGS_IN(); 14216 PUSH32(esp, 0x36184170u); /* 0x361498E6: push 0x36184170 */ 14217 eax = ebp + (-0xB4); /* 0x361498EB: lea eax, [ebp - 0xb4] */ 14218 PUSH32(esp, eax); /* 0x361498F1: push eax */ 14219 RECOMP_ICALL(0x3615FD70u); /* 0x361498F2: call 0x3615fd70 */ /* not lifted */ 14220 RECOMP_FLAGS_IN(); 14221 L_361498F7: 14222 ecx = MEM32(ebp + (-0xC)); /* 0x361498F7: mov ecx, dword ptr [ebp - 0xc] */ 14223 edi = POP32_VAL(esp); /* 0x361498FA: pop edi */ 14224 eax = esi; /* 0x361498FB: mov eax, esi */ 14225 esi = POP32_VAL(esp); /* 0x361498FD: pop esi */ 14226 ebx = POP32_VAL(esp); /* 0x361498FE: pop ebx */ 14227 MEM32(FS_BASE + (0)) = ecx; /* 0x361498FF: mov dword ptr fs:[0], ecx */ 14228 esp = ebp; /* 0x36149906: mov esp, ebp */ 14229 ebp = POP32_VAL(esp); /* 0x36149908: pop ebp */ 14230 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149909: ret */ 14231 RECOMP_REGS_OUT(); 14232 } 14233 14234 void sub_36149548(void) { 14235 int _fpu_cmp = 0; 14236 uint32_t _cf = 0; 14237 int _df = 1; 14238 uint32_t _flag_k = FK_NONE; 14239 uint32_t _flag_a = 0, _flag_b = 0; 14240 uint32_t _itail_tgt = 0; 14241 RECOMP_REGS_LOCALS 14242 RECOMP_ENTER(0x36149548u); 14243 14244 goto L_36149548; 14245 L_361494CA: 14246 ecx = ebp + (-0x84); /* 0x361494CA: lea ecx, [ebp - 0x84] */ 14247 RECOMP_ICALL(0x3602F750u); /* 0x361494D0: call 0x3602f750 */ /* not lifted */ 14248 RECOMP_FLAGS_IN(); 14249 ecx = MEM32(ebp + 0x8); /* 0x361494D5: mov ecx, dword ptr [ebp + 8] */ 14250 eax = ebp + (-0x84); /* 0x361494D8: lea eax, [ebp - 0x84] */ 14251 PUSH32(esp, eax); /* 0x361494DE: push eax */ 14252 PUSH32(esp, ecx); /* 0x361494DF: push ecx */ 14253 MEM32(ebp + (-0x4)) = 0; /* 0x361494E0: mov dword ptr [ebp - 4], 0 */ 14254 RECOMP_ICALL(0x3602F810u); /* 0x361494E7: call 0x3602f810 */ /* not lifted */ 14255 RECOMP_FLAGS_IN(); 14256 esi = MEM32(ebx + 0x50); /* 0x361494EC: mov esi, dword ptr [ebx + 0x50] */ 14257 ecx = MEM32(esi + 0x8); /* 0x361494EF: mov ecx, dword ptr [esi + 8] */ 14258 edx = MEM32(esi + 0xC); /* 0x361494F2: mov edx, dword ptr [esi + 0xc] */ 14259 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 14260 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14261 edx = edx - ecx; /* 0x361494F5: sub edx, ecx */ 14262 _flag_k = FK_CMP; 14263 eax = 0x66666667u; /* 0x361494F7: mov eax, 0x66666667 */ 14264 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361494FC: imul edx */ 14265 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 14266 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 14267 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361494FE: sar edx, 3 */ 14268 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14269 edx = (uint32_t)((int32_t)edx >> 3u); 14270 eax = edx; /* 0x36149501: mov eax, edx */ 14271 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149503: shr eax, 0x1f */ 14272 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14273 eax = eax >> 31u; /* 0x36149503: shr eax, 0x1f */ 14274 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 14275 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14276 edx = edx + eax; /* 0x36149506: add edx, eax */ 14277 _flag_k = FK_ADD; 14278 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 14279 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14280 esp = esp + 8; /* 0x36149508: add esp, 8 */ 14281 _flag_k = FK_ADD; 14282 /* cmp edx, 1 */ /* 0x3614950B: cmp edx, 1 */ 14283 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 14284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14285 _flag_k = FK_CMP; 14286 edi = ecx; /* 0x3614950E: mov edi, ecx */ 14287 if (CMP_AE(_flag_a, _flag_b)) goto L_361495E2; /* 0x36149510: jae 0x361495e2 */ 14288 L_36149516: 14289 eax = MEM32(esi + 0x4); /* 0x36149516: mov eax, dword ptr [esi + 4] */ 14290 /* test eax, eax */ /* 0x36149519: test eax, eax */ 14291 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14292 _cf = 0; 14293 _flag_k = FK_TEST; 14294 if (TEST_Z(_flag_a, _flag_b)) goto L_36149541; /* 0x3614951B: je 0x36149541 */ 14295 L_3614951D: 14296 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 14297 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14298 ecx = ecx - eax; /* 0x3614951D: sub ecx, eax */ 14299 _flag_k = FK_CMP; 14300 eax = 0x66666667u; /* 0x3614951F: mov eax, 0x66666667 */ 14301 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149524: imul ecx */ 14302 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 14303 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 14304 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149526: sar edx, 3 */ 14305 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14306 edx = (uint32_t)((int32_t)edx >> 3u); 14307 ecx = edx; /* 0x36149529: mov ecx, edx */ 14308 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614952B: shr ecx, 0x1f */ 14309 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14310 ecx = ecx >> 31u; /* 0x3614952B: shr ecx, 0x1f */ 14311 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 14312 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14313 edx = edx + ecx; /* 0x3614952E: add edx, ecx */ 14314 _flag_k = FK_ADD; 14315 /* cmp edx, 1 */ /* 0x36149530: cmp edx, 1 */ 14316 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 14317 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14318 _flag_k = FK_CMP; 14319 if (CMP_BE(_flag_a, _flag_b)) goto L_36149541; /* 0x36149533: jbe 0x36149541 */ 14320 L_36149535: 14321 ecx = esi; /* 0x36149535: mov ecx, esi */ 14322 RECOMP_ICALL(0x36149DC0u); /* 0x36149537: call 0x36149dc0 */ /* not lifted */ 14323 RECOMP_FLAGS_IN(); 14324 MEM32(ebp + (-0x14)) = eax; /* 0x3614953C: mov dword ptr [ebp - 0x14], eax */ 14325 goto L_36149548; /* 0x3614953F: jmp 0x36149548 */ 14326 L_36149541: 14327 MEM32(ebp + (-0x14)) = 1; /* 0x36149541: mov dword ptr [ebp - 0x14], 1 */ 14328 L_36149548: 14329 ecx = esi; /* 0x36149548: mov ecx, esi */ 14330 RECOMP_ICALL(0x36149DC0u); /* 0x3614954A: call 0x36149dc0 */ /* not lifted */ 14331 RECOMP_FLAGS_IN(); 14332 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 14333 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14334 eax = eax + MEM32(ebp + (-0x14)); /* 0x3614954F: add eax, dword ptr [ebp - 0x14] */ 14335 _flag_k = FK_ADD; 14336 MEM32(ebp + (-0x2C)) = eax; /* 0x36149552: mov dword ptr [ebp - 0x2c], eax */ 14337 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149559; /* 0x36149555: jns 0x36149559 */ 14338 L_36149557: 14339 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14340 eax = 0; /* 0x36149557: xor eax, eax */ 14341 _cf = 0; 14342 _flag_k = FK_TEST; 14343 L_36149559: 14344 edx = eax + eax * 4; /* 0x36149559: lea edx, [eax + eax*4] */ 14345 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614955C: shl edx, 2 */ 14346 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14347 edx = edx << 2u; /* 0x3614955C: shl edx, 2 */ 14348 PUSH32(esp, edx); /* 0x3614955F: push edx */ 14349 RECOMP_ICALL(0x3615FD6Au); /* 0x36149560: call 0x3615fd6a */ /* not lifted */ 14350 RECOMP_FLAGS_IN(); 14351 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14352 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14353 esp = esp + 4; /* 0x36149565: add esp, 4 */ 14354 _flag_k = FK_ADD; 14355 PUSH32(esp, eax); /* 0x36149568: push eax */ 14356 MEM32(ebp + (-0x14)) = eax; /* 0x36149569: mov dword ptr [ebp - 0x14], eax */ 14357 eax = MEM32(esi + 0x4); /* 0x3614956C: mov eax, dword ptr [esi + 4] */ 14358 PUSH32(esp, edi); /* 0x3614956F: push edi */ 14359 PUSH32(esp, eax); /* 0x36149570: push eax */ 14360 ecx = esi; /* 0x36149571: mov ecx, esi */ 14361 RECOMP_ICALL(0x36149E20u); /* 0x36149573: call 0x36149e20 */ /* not lifted */ 14362 RECOMP_FLAGS_IN(); 14363 ecx = ebp + (-0x84); /* 0x36149578: lea ecx, [ebp - 0x84] */ 14364 PUSH32(esp, ecx); /* 0x3614957E: push ecx */ 14365 PUSH32(esp, 1); /* 0x3614957F: push 1 */ 14366 PUSH32(esp, eax); /* 0x36149581: push eax */ 14367 ecx = esi; /* 0x36149582: mov ecx, esi */ 14368 MEM32(ebp + (-0x18)) = eax; /* 0x36149584: mov dword ptr [ebp - 0x18], eax */ 14369 RECOMP_ICALL(0x3614A190u); /* 0x36149587: call 0x3614a190 */ /* not lifted */ 14370 RECOMP_FLAGS_IN(); 14371 edx = MEM32(ebp + (-0x18)); /* 0x3614958C: mov edx, dword ptr [ebp - 0x18] */ 14372 eax = MEM32(esi + 0x8); /* 0x3614958F: mov eax, dword ptr [esi + 8] */ 14373 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u); 14374 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14375 edx = edx + 0x14u; /* 0x36149592: add edx, 0x14 */ 14376 _flag_k = FK_ADD; 14377 PUSH32(esp, edx); /* 0x36149595: push edx */ 14378 PUSH32(esp, eax); /* 0x36149596: push eax */ 14379 PUSH32(esp, edi); /* 0x36149597: push edi */ 14380 ecx = esi; /* 0x36149598: mov ecx, esi */ 14381 RECOMP_ICALL(0x36149E20u); /* 0x3614959A: call 0x36149e20 */ /* not lifted */ 14382 RECOMP_FLAGS_IN(); 14383 ecx = MEM32(esi + 0x8); /* 0x3614959F: mov ecx, dword ptr [esi + 8] */ 14384 edx = MEM32(esi + 0x4); /* 0x361495A2: mov edx, dword ptr [esi + 4] */ 14385 PUSH32(esp, ecx); /* 0x361495A5: push ecx */ 14386 PUSH32(esp, edx); /* 0x361495A6: push edx */ 14387 ecx = esi; /* 0x361495A7: mov ecx, esi */ 14388 RECOMP_ICALL(0x36149DF0u); /* 0x361495A9: call 0x36149df0 */ /* not lifted */ 14389 RECOMP_FLAGS_IN(); 14390 eax = MEM32(esi + 0x4); /* 0x361495AE: mov eax, dword ptr [esi + 4] */ 14391 PUSH32(esp, eax); /* 0x361495B1: push eax */ 14392 RECOMP_ICALL(0x3615FCC4u); /* 0x361495B2: call 0x3615fcc4 */ /* not lifted */ 14393 RECOMP_FLAGS_IN(); 14394 eax = MEM32(ebp + (-0x2C)); /* 0x361495B7: mov eax, dword ptr [ebp - 0x2c] */ 14395 edi = MEM32(ebp + (-0x14)); /* 0x361495BA: mov edi, dword ptr [ebp - 0x14] */ 14396 eax = eax + eax * 4; /* 0x361495BD: lea eax, [eax + eax*4] */ 14397 ecx = edi + eax * 4; /* 0x361495C0: lea ecx, [edi + eax*4] */ 14398 MEM32(esi + 0xC) = ecx; /* 0x361495C3: mov dword ptr [esi + 0xc], ecx */ 14399 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14400 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14401 esp = esp + 4; /* 0x361495C6: add esp, 4 */ 14402 _flag_k = FK_ADD; 14403 ecx = esi; /* 0x361495C9: mov ecx, esi */ 14404 RECOMP_ICALL(0x36149DC0u); /* 0x361495CB: call 0x36149dc0 */ /* not lifted */ 14405 RECOMP_FLAGS_IN(); 14406 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14407 eax = eax + 1; /* 0x361495D0: inc eax */ 14408 _flag_k = FK_INC; 14409 edx = eax + eax * 4; /* 0x361495D1: lea edx, [eax + eax*4] */ 14410 eax = edi + edx * 4; /* 0x361495D4: lea eax, [edi + edx*4] */ 14411 MEM32(esi + 0x8) = eax; /* 0x361495D7: mov dword ptr [esi + 8], eax */ 14412 MEM32(esi + 0x4) = edi; /* 0x361495DA: mov dword ptr [esi + 4], edi */ 14413 goto L_36149681; /* 0x361495DD: jmp 0x36149681 */ 14414 L_361495E2: 14415 edx = ecx; /* 0x361495E2: mov edx, ecx */ 14416 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 14417 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14418 edx = edx - edi; /* 0x361495E4: sub edx, edi */ 14419 _flag_k = FK_CMP; 14420 eax = 0x66666667u; /* 0x361495E6: mov eax, 0x66666667 */ 14421 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361495EB: imul edx */ 14422 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 14423 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 14424 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361495ED: sar edx, 3 */ 14425 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14426 edx = (uint32_t)((int32_t)edx >> 3u); 14427 eax = edx; /* 0x361495F0: mov eax, edx */ 14428 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361495F2: shr eax, 0x1f */ 14429 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14430 eax = eax >> 31u; /* 0x361495F2: shr eax, 0x1f */ 14431 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 14432 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14433 edx = edx + eax; /* 0x361495F5: add edx, eax */ 14434 _flag_k = FK_ADD; 14435 /* cmp edx, 1 */ /* 0x361495F7: cmp edx, 1 */ 14436 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 14437 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14438 _flag_k = FK_CMP; 14439 if (CMP_AE(_flag_a, _flag_b)) goto L_3614964E; /* 0x361495FA: jae 0x3614964e */ 14440 L_361495FC: 14441 edx = edi + 0x14; /* 0x361495FC: lea edx, [edi + 0x14] */ 14442 PUSH32(esp, edx); /* 0x361495FF: push edx */ 14443 PUSH32(esp, ecx); /* 0x36149600: push ecx */ 14444 PUSH32(esp, edi); /* 0x36149601: push edi */ 14445 ecx = esi; /* 0x36149602: mov ecx, esi */ 14446 RECOMP_ICALL(0x36149E20u); /* 0x36149604: call 0x36149e20 */ /* not lifted */ 14447 RECOMP_FLAGS_IN(); 14448 ecx = MEM32(esi + 0x8); /* 0x36149609: mov ecx, dword ptr [esi + 8] */ 14449 eax = ebp + (-0x84); /* 0x3614960C: lea eax, [ebp - 0x84] */ 14450 PUSH32(esp, eax); /* 0x36149612: push eax */ 14451 edx = ecx; /* 0x36149613: mov edx, ecx */ 14452 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 14453 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14454 edx = edx - edi; /* 0x36149615: sub edx, edi */ 14455 _flag_k = FK_CMP; 14456 eax = 0x66666667u; /* 0x36149617: mov eax, 0x66666667 */ 14457 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3614961C: imul edx */ 14458 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 14459 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 14460 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3614961E: sar edx, 3 */ 14461 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14462 edx = (uint32_t)((int32_t)edx >> 3u); 14463 eax = edx; /* 0x36149621: mov eax, edx */ 14464 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149623: shr eax, 0x1f */ 14465 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14466 eax = eax >> 31u; /* 0x36149623: shr eax, 0x1f */ 14467 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 14468 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14469 edx = edx + eax; /* 0x36149626: add edx, eax */ 14470 _flag_k = FK_ADD; 14471 eax = 1; /* 0x36149628: mov eax, 1 */ 14472 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 14473 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14474 eax = eax - edx; /* 0x3614962D: sub eax, edx */ 14475 _flag_k = FK_CMP; 14476 PUSH32(esp, eax); /* 0x3614962F: push eax */ 14477 PUSH32(esp, ecx); /* 0x36149630: push ecx */ 14478 ecx = esi; /* 0x36149631: mov ecx, esi */ 14479 RECOMP_ICALL(0x3614A190u); /* 0x36149633: call 0x3614a190 */ /* not lifted */ 14480 RECOMP_FLAGS_IN(); 14481 edx = MEM32(esi + 0x8); /* 0x36149638: mov edx, dword ptr [esi + 8] */ 14482 ecx = ebp + (-0x84); /* 0x3614963B: lea ecx, [ebp - 0x84] */ 14483 PUSH32(esp, ecx); /* 0x36149641: push ecx */ 14484 PUSH32(esp, edx); /* 0x36149642: push edx */ 14485 PUSH32(esp, edi); /* 0x36149643: push edi */ 14486 RECOMP_ICALL(0x3614A2A0u); /* 0x36149644: call 0x3614a2a0 */ /* not lifted */ 14487 RECOMP_FLAGS_IN(); 14488 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 14489 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14490 esp = esp + 0xCu; /* 0x36149649: add esp, 0xc */ 14491 _flag_k = FK_ADD; 14492 goto L_3614967D; /* 0x3614964C: jmp 0x3614967d */ 14493 L_3614964E: 14494 PUSH32(esp, ecx); /* 0x3614964E: push ecx */ 14495 PUSH32(esp, ecx); /* 0x3614964F: push ecx */ 14496 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu); 14497 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14498 ecx = ecx + 0xFFFFFFECu; /* 0x36149650: add ecx, -0x14 */ 14499 _flag_k = FK_ADD; 14500 PUSH32(esp, ecx); /* 0x36149653: push ecx */ 14501 ecx = esi; /* 0x36149654: mov ecx, esi */ 14502 RECOMP_ICALL(0x36149E20u); /* 0x36149656: call 0x36149e20 */ /* not lifted */ 14503 RECOMP_FLAGS_IN(); 14504 eax = MEM32(esi + 0x8); /* 0x3614965B: mov eax, dword ptr [esi + 8] */ 14505 PUSH32(esp, eax); /* 0x3614965E: push eax */ 14506 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu); 14507 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14508 eax = eax + 0xFFFFFFECu; /* 0x3614965F: add eax, -0x14 */ 14509 _flag_k = FK_ADD; 14510 PUSH32(esp, eax); /* 0x36149662: push eax */ 14511 PUSH32(esp, edi); /* 0x36149663: push edi */ 14512 RECOMP_ICALL(0x3614A2D0u); /* 0x36149664: call 0x3614a2d0 */ /* not lifted */ 14513 RECOMP_FLAGS_IN(); 14514 eax = ebp + (-0x84); /* 0x36149669: lea eax, [ebp - 0x84] */ 14515 PUSH32(esp, eax); /* 0x3614966F: push eax */ 14516 ecx = edi + 0x14; /* 0x36149670: lea ecx, [edi + 0x14] */ 14517 PUSH32(esp, ecx); /* 0x36149673: push ecx */ 14518 PUSH32(esp, edi); /* 0x36149674: push edi */ 14519 RECOMP_ICALL(0x3614A2A0u); /* 0x36149675: call 0x3614a2a0 */ /* not lifted */ 14520 RECOMP_FLAGS_IN(); 14521 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 14522 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14523 esp = esp + 0x18u; /* 0x3614967A: add esp, 0x18 */ 14524 _flag_k = FK_ADD; 14525 L_3614967D: 14526 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x14u); 14527 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14528 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x14u; /* 0x3614967D: add dword ptr [esi + 8], 0x14 */ 14529 _flag_k = FK_ADD; 14530 L_36149681: 14531 ecx = ebp + (-0x84); /* 0x36149681: lea ecx, [ebp - 0x84] */ 14532 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149687: mov dword ptr [ebp - 4], 0xffffffff */ 14533 RECOMP_ICALL(0x3602F7D0u); /* 0x3614968E: call 0x3602f7d0 */ /* not lifted */ 14534 RECOMP_FLAGS_IN(); 14535 eax = MEM32(ebp + (-0x10)); /* 0x36149693: mov eax, dword ptr [ebp - 0x10] */ 14536 edx = MEM32(ebp + (-0x4C)); /* 0x36149696: mov edx, dword ptr [ebp - 0x4c] */ 14537 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14538 eax = eax + 1; /* 0x36149699: inc eax */ 14539 _flag_k = FK_INC; 14540 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 14541 edx = edx & 0xFFu; /* 0x3614969A: and edx, 0xff */ 14542 _cf = 0; 14543 _flag_k = FK_TEST; 14544 /* cmp eax, edx */ /* 0x361496A0: cmp eax, edx */ 14545 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 14546 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14547 _flag_k = FK_CMP; 14548 MEM32(ebp + (-0x10)) = eax; /* 0x361496A2: mov dword ptr [ebp - 0x10], eax */ 14549 RECOMP_BACKEDGE(); 14550 if (CMP_L(_flag_a, _flag_b)) goto L_361494CA; /* 0x361496A5: jl 0x361494ca */ 14551 L_361496AB: 14552 SET_LO8(eax, MEM8(ebp + (-0x50))); /* 0x361496AB: mov al, byte ptr [ebp - 0x50] */ 14553 /* test LO8(eax), LO8(eax) */ /* 0x361496AE: test al, al */ 14554 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14555 _cf = 0; 14556 _flag_k = FK_NARROW(FK_TEST, 24); 14557 MEM32(ebp + (-0x14)) = 0; /* 0x361496B0: mov dword ptr [ebp - 0x14], 0 */ 14558 if (TEST_Z(_flag_a, _flag_b)) goto L_361498AA; /* 0x361496B7: jbe 0x361498aa */ 14559 L_361496BD: 14560 ecx = ebp + (-0xAC); /* 0x361496BD: lea ecx, [ebp - 0xac] */ 14561 RECOMP_ICALL(0x3602F870u); /* 0x361496C3: call 0x3602f870 */ /* not lifted */ 14562 RECOMP_FLAGS_IN(); 14563 ecx = MEM32(ebp + 0x8); /* 0x361496C8: mov ecx, dword ptr [ebp + 8] */ 14564 eax = ebp + (-0xAC); /* 0x361496CB: lea eax, [ebp - 0xac] */ 14565 PUSH32(esp, eax); /* 0x361496D1: push eax */ 14566 PUSH32(esp, ecx); /* 0x361496D2: push ecx */ 14567 MEM32(ebp + (-0x4)) = 1; /* 0x361496D3: mov dword ptr [ebp - 4], 1 */ 14568 RECOMP_ICALL(0x3602F9B0u); /* 0x361496DA: call 0x3602f9b0 */ /* not lifted */ 14569 RECOMP_FLAGS_IN(); 14570 esi = MEM32(ebx + 0x54); /* 0x361496DF: mov esi, dword ptr [ebx + 0x54] */ 14571 ecx = MEM32(esi + 0x8); /* 0x361496E2: mov ecx, dword ptr [esi + 8] */ 14572 edx = MEM32(esi + 0xC); /* 0x361496E5: mov edx, dword ptr [esi + 0xc] */ 14573 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 14574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14575 edx = edx - ecx; /* 0x361496E8: sub edx, ecx */ 14576 _flag_k = FK_CMP; 14577 MEM32(ebp + (-0x18)) = edx; /* 0x361496EA: mov dword ptr [ebp - 0x18], edx */ 14578 eax = 0x88888889u; /* 0x361496ED: mov eax, 0x88888889 */ 14579 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361496F2: imul edx */ 14580 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 14581 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 14582 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 14583 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14584 edx = edx + MEM32(ebp + (-0x18)); /* 0x361496F4: add edx, dword ptr [ebp - 0x18] */ 14585 _flag_k = FK_ADD; 14586 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361496F7: sar edx, 5 */ 14587 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14588 edx = (uint32_t)((int32_t)edx >> 5u); 14589 eax = edx; /* 0x361496FA: mov eax, edx */ 14590 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361496FC: shr eax, 0x1f */ 14591 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14592 eax = eax >> 31u; /* 0x361496FC: shr eax, 0x1f */ 14593 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 14594 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14595 edx = edx + eax; /* 0x361496FF: add edx, eax */ 14596 _flag_k = FK_ADD; 14597 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 14598 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14599 esp = esp + 8; /* 0x36149701: add esp, 8 */ 14600 _flag_k = FK_ADD; 14601 /* cmp edx, 1 */ /* 0x36149704: cmp edx, 1 */ 14602 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 14603 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14604 _flag_k = FK_CMP; 14605 edi = ecx; /* 0x36149707: mov edi, ecx */ 14606 if (CMP_AE(_flag_a, _flag_b)) goto L_361497D8; /* 0x36149709: jae 0x361497d8 */ 14607 L_3614970F: 14608 eax = MEM32(esi + 0x4); /* 0x3614970F: mov eax, dword ptr [esi + 4] */ 14609 /* test eax, eax */ /* 0x36149712: test eax, eax */ 14610 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14611 _cf = 0; 14612 _flag_k = FK_TEST; 14613 if (TEST_Z(_flag_a, _flag_b)) goto L_36149732; /* 0x36149714: je 0x36149732 */ 14614 L_36149716: 14615 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 14616 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14617 ecx = ecx - eax; /* 0x36149716: sub ecx, eax */ 14618 _flag_k = FK_CMP; 14619 eax = 0x88888889u; /* 0x36149718: mov eax, 0x88888889 */ 14620 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3614971D: imul ecx */ 14621 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 14622 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 14623 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 14624 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14625 edx = edx + ecx; /* 0x3614971F: add edx, ecx */ 14626 _flag_k = FK_ADD; 14627 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36149721: sar edx, 5 */ 14628 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14629 edx = (uint32_t)((int32_t)edx >> 5u); 14630 ecx = edx; /* 0x36149724: mov ecx, edx */ 14631 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36149726: shr ecx, 0x1f */ 14632 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14633 ecx = ecx >> 31u; /* 0x36149726: shr ecx, 0x1f */ 14634 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 14635 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14636 edx = edx + ecx; /* 0x36149729: add edx, ecx */ 14637 _flag_k = FK_ADD; 14638 /* cmp edx, 1 */ /* 0x3614972B: cmp edx, 1 */ 14639 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 14640 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14641 _flag_k = FK_CMP; 14642 ebx = edx; /* 0x3614972E: mov ebx, edx */ 14643 if (CMP_A(_flag_a, _flag_b)) goto L_36149737; /* 0x36149730: ja 0x36149737 */ 14644 L_36149732: 14645 ebx = 1; /* 0x36149732: mov ebx, 1 */ 14646 L_36149737: 14647 ecx = esi; /* 0x36149737: mov ecx, esi */ 14648 RECOMP_ICALL(0x36149E90u); /* 0x36149739: call 0x36149e90 */ /* not lifted */ 14649 RECOMP_FLAGS_IN(); 14650 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 14651 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14652 eax = eax + ebx; /* 0x3614973E: add eax, ebx */ 14653 _flag_k = FK_ADD; 14654 MEM32(ebp + (-0x2C)) = eax; /* 0x36149740: mov dword ptr [ebp - 0x2c], eax */ 14655 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149747; /* 0x36149743: jns 0x36149747 */ 14656 L_36149745: 14657 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14658 eax = 0; /* 0x36149745: xor eax, eax */ 14659 _cf = 0; 14660 _flag_k = FK_TEST; 14661 L_36149747: 14662 eax = eax + eax * 2; /* 0x36149747: lea eax, [eax + eax*2] */ 14663 edx = eax + eax * 4; /* 0x3614974A: lea edx, [eax + eax*4] */ 14664 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614974D: shl edx, 2 */ 14665 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14666 edx = edx << 2u; /* 0x3614974D: shl edx, 2 */ 14667 PUSH32(esp, edx); /* 0x36149750: push edx */ 14668 RECOMP_ICALL(0x3615FD6Au); /* 0x36149751: call 0x3615fd6a */ /* not lifted */ 14669 RECOMP_FLAGS_IN(); 14670 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14671 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14672 esp = esp + 4; /* 0x36149756: add esp, 4 */ 14673 _flag_k = FK_ADD; 14674 ebx = eax; /* 0x36149759: mov ebx, eax */ 14675 eax = MEM32(esi + 0x4); /* 0x3614975B: mov eax, dword ptr [esi + 4] */ 14676 PUSH32(esp, ebx); /* 0x3614975E: push ebx */ 14677 PUSH32(esp, edi); /* 0x3614975F: push edi */ 14678 PUSH32(esp, eax); /* 0x36149760: push eax */ 14679 ecx = esi; /* 0x36149761: mov ecx, esi */ 14680 RECOMP_ICALL(0x36149EF0u); /* 0x36149763: call 0x36149ef0 */ /* not lifted */ 14681 RECOMP_FLAGS_IN(); 14682 ecx = ebp + (-0xAC); /* 0x36149768: lea ecx, [ebp - 0xac] */ 14683 PUSH32(esp, ecx); /* 0x3614976E: push ecx */ 14684 PUSH32(esp, 1); /* 0x3614976F: push 1 */ 14685 PUSH32(esp, eax); /* 0x36149771: push eax */ 14686 ecx = esi; /* 0x36149772: mov ecx, esi */ 14687 MEM32(ebp + (-0x18)) = eax; /* 0x36149774: mov dword ptr [ebp - 0x18], eax */ 14688 RECOMP_ICALL(0x3614A1C0u); /* 0x36149777: call 0x3614a1c0 */ /* not lifted */ 14689 RECOMP_FLAGS_IN(); 14690 edx = MEM32(ebp + (-0x18)); /* 0x3614977C: mov edx, dword ptr [ebp - 0x18] */ 14691 eax = MEM32(esi + 0x8); /* 0x3614977F: mov eax, dword ptr [esi + 8] */ 14692 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x3Cu); 14693 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14694 edx = edx + 0x3Cu; /* 0x36149782: add edx, 0x3c */ 14695 _flag_k = FK_ADD; 14696 PUSH32(esp, edx); /* 0x36149785: push edx */ 14697 PUSH32(esp, eax); /* 0x36149786: push eax */ 14698 PUSH32(esp, edi); /* 0x36149787: push edi */ 14699 ecx = esi; /* 0x36149788: mov ecx, esi */ 14700 RECOMP_ICALL(0x36149EF0u); /* 0x3614978A: call 0x36149ef0 */ /* not lifted */ 14701 RECOMP_FLAGS_IN(); 14702 ecx = MEM32(esi + 0x8); /* 0x3614978F: mov ecx, dword ptr [esi + 8] */ 14703 edx = MEM32(esi + 0x4); /* 0x36149792: mov edx, dword ptr [esi + 4] */ 14704 PUSH32(esp, ecx); /* 0x36149795: push ecx */ 14705 PUSH32(esp, edx); /* 0x36149796: push edx */ 14706 ecx = esi; /* 0x36149797: mov ecx, esi */ 14707 RECOMP_ICALL(0x36149EC0u); /* 0x36149799: call 0x36149ec0 */ /* not lifted */ 14708 RECOMP_FLAGS_IN(); 14709 eax = MEM32(esi + 0x4); /* 0x3614979E: mov eax, dword ptr [esi + 4] */ 14710 PUSH32(esp, eax); /* 0x361497A1: push eax */ 14711 RECOMP_ICALL(0x3615FCC4u); /* 0x361497A2: call 0x3615fcc4 */ /* not lifted */ 14712 RECOMP_FLAGS_IN(); 14713 eax = MEM32(ebp + (-0x2C)); /* 0x361497A7: mov eax, dword ptr [ebp - 0x2c] */ 14714 eax = eax + eax * 2; /* 0x361497AA: lea eax, [eax + eax*2] */ 14715 eax = eax + eax * 4; /* 0x361497AD: lea eax, [eax + eax*4] */ 14716 ecx = ebx + eax * 4; /* 0x361497B0: lea ecx, [ebx + eax*4] */ 14717 MEM32(esi + 0xC) = ecx; /* 0x361497B3: mov dword ptr [esi + 0xc], ecx */ 14718 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14719 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14720 esp = esp + 4; /* 0x361497B6: add esp, 4 */ 14721 _flag_k = FK_ADD; 14722 ecx = esi; /* 0x361497B9: mov ecx, esi */ 14723 RECOMP_ICALL(0x36149E90u); /* 0x361497BB: call 0x36149e90 */ /* not lifted */ 14724 RECOMP_FLAGS_IN(); 14725 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14726 eax = eax + 1; /* 0x361497C0: inc eax */ 14727 _flag_k = FK_INC; 14728 eax = eax + eax * 2; /* 0x361497C1: lea eax, [eax + eax*2] */ 14729 edx = eax + eax * 4; /* 0x361497C4: lea edx, [eax + eax*4] */ 14730 eax = ebx + edx * 4; /* 0x361497C7: lea eax, [ebx + edx*4] */ 14731 MEM32(esi + 0x4) = ebx; /* 0x361497CA: mov dword ptr [esi + 4], ebx */ 14732 ebx = MEM32(ebp + 0xC); /* 0x361497CD: mov ebx, dword ptr [ebp + 0xc] */ 14733 MEM32(esi + 0x8) = eax; /* 0x361497D0: mov dword ptr [esi + 8], eax */ 14734 goto L_36149880; /* 0x361497D3: jmp 0x36149880 */ 14735 L_361497D8: 14736 edx = ecx; /* 0x361497D8: mov edx, ecx */ 14737 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 14738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14739 edx = edx - edi; /* 0x361497DA: sub edx, edi */ 14740 _flag_k = FK_CMP; 14741 MEM32(ebp + (-0x18)) = edx; /* 0x361497DC: mov dword ptr [ebp - 0x18], edx */ 14742 eax = 0x88888889u; /* 0x361497DF: mov eax, 0x88888889 */ 14743 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361497E4: imul edx */ 14744 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 14745 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 14746 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 14747 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14748 edx = edx + MEM32(ebp + (-0x18)); /* 0x361497E6: add edx, dword ptr [ebp - 0x18] */ 14749 _flag_k = FK_ADD; 14750 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361497E9: sar edx, 5 */ 14751 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14752 edx = (uint32_t)((int32_t)edx >> 5u); 14753 eax = edx; /* 0x361497EC: mov eax, edx */ 14754 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361497EE: shr eax, 0x1f */ 14755 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14756 eax = eax >> 31u; /* 0x361497EE: shr eax, 0x1f */ 14757 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 14758 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14759 edx = edx + eax; /* 0x361497F1: add edx, eax */ 14760 _flag_k = FK_ADD; 14761 /* cmp edx, 1 */ /* 0x361497F3: cmp edx, 1 */ 14762 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 14763 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14764 _flag_k = FK_CMP; 14765 if (CMP_AE(_flag_a, _flag_b)) goto L_3614984D; /* 0x361497F6: jae 0x3614984d */ 14766 L_361497F8: 14767 edx = edi + 0x3C; /* 0x361497F8: lea edx, [edi + 0x3c] */ 14768 PUSH32(esp, edx); /* 0x361497FB: push edx */ 14769 PUSH32(esp, ecx); /* 0x361497FC: push ecx */ 14770 PUSH32(esp, edi); /* 0x361497FD: push edi */ 14771 ecx = esi; /* 0x361497FE: mov ecx, esi */ 14772 RECOMP_ICALL(0x36149EF0u); /* 0x36149800: call 0x36149ef0 */ /* not lifted */ 14773 RECOMP_FLAGS_IN(); 14774 ecx = MEM32(esi + 0x8); /* 0x36149805: mov ecx, dword ptr [esi + 8] */ 14775 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 14776 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14777 ecx = ecx - edi; /* 0x36149808: sub ecx, edi */ 14778 _flag_k = FK_CMP; 14779 eax = ebp + (-0xAC); /* 0x3614980A: lea eax, [ebp - 0xac] */ 14780 PUSH32(esp, eax); /* 0x36149810: push eax */ 14781 eax = 0x88888889u; /* 0x36149811: mov eax, 0x88888889 */ 14782 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149816: imul ecx */ 14783 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 14784 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 14785 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 14786 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14787 edx = edx + ecx; /* 0x36149818: add edx, ecx */ 14788 _flag_k = FK_ADD; 14789 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x3614981A: sar edx, 5 */ 14790 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14791 edx = (uint32_t)((int32_t)edx >> 5u); 14792 ecx = edx; /* 0x3614981D: mov ecx, edx */ 14793 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614981F: shr ecx, 0x1f */ 14794 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14795 ecx = ecx >> 31u; /* 0x3614981F: shr ecx, 0x1f */ 14796 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 14797 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14798 edx = edx + ecx; /* 0x36149822: add edx, ecx */ 14799 _flag_k = FK_ADD; 14800 eax = 1; /* 0x36149824: mov eax, 1 */ 14801 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 14802 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14803 eax = eax - edx; /* 0x36149829: sub eax, edx */ 14804 _flag_k = FK_CMP; 14805 PUSH32(esp, eax); /* 0x3614982B: push eax */ 14806 eax = MEM32(esi + 0x8); /* 0x3614982C: mov eax, dword ptr [esi + 8] */ 14807 PUSH32(esp, eax); /* 0x3614982F: push eax */ 14808 ecx = esi; /* 0x36149830: mov ecx, esi */ 14809 RECOMP_ICALL(0x3614A1C0u); /* 0x36149832: call 0x3614a1c0 */ /* not lifted */ 14810 RECOMP_FLAGS_IN(); 14811 edx = MEM32(esi + 0x8); /* 0x36149837: mov edx, dword ptr [esi + 8] */ 14812 ecx = ebp + (-0xAC); /* 0x3614983A: lea ecx, [ebp - 0xac] */ 14813 PUSH32(esp, ecx); /* 0x36149840: push ecx */ 14814 PUSH32(esp, edx); /* 0x36149841: push edx */ 14815 PUSH32(esp, edi); /* 0x36149842: push edi */ 14816 RECOMP_ICALL(0x3614A360u); /* 0x36149843: call 0x3614a360 */ /* not lifted */ 14817 RECOMP_FLAGS_IN(); 14818 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 14819 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14820 esp = esp + 0xCu; /* 0x36149848: add esp, 0xc */ 14821 _flag_k = FK_ADD; 14822 goto L_3614987C; /* 0x3614984B: jmp 0x3614987c */ 14823 L_3614984D: 14824 PUSH32(esp, ecx); /* 0x3614984D: push ecx */ 14825 PUSH32(esp, ecx); /* 0x3614984E: push ecx */ 14826 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC4u); 14827 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14828 ecx = ecx + 0xFFFFFFC4u; /* 0x3614984F: add ecx, -0x3c */ 14829 _flag_k = FK_ADD; 14830 PUSH32(esp, ecx); /* 0x36149852: push ecx */ 14831 ecx = esi; /* 0x36149853: mov ecx, esi */ 14832 RECOMP_ICALL(0x36149EF0u); /* 0x36149855: call 0x36149ef0 */ /* not lifted */ 14833 RECOMP_FLAGS_IN(); 14834 eax = MEM32(esi + 0x8); /* 0x3614985A: mov eax, dword ptr [esi + 8] */ 14835 PUSH32(esp, eax); /* 0x3614985D: push eax */ 14836 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFC4u); 14837 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14838 eax = eax + 0xFFFFFFC4u; /* 0x3614985E: add eax, -0x3c */ 14839 _flag_k = FK_ADD; 14840 PUSH32(esp, eax); /* 0x36149861: push eax */ 14841 PUSH32(esp, edi); /* 0x36149862: push edi */ 14842 RECOMP_ICALL(0x3614A390u); /* 0x36149863: call 0x3614a390 */ /* not lifted */ 14843 RECOMP_FLAGS_IN(); 14844 eax = ebp + (-0xAC); /* 0x36149868: lea eax, [ebp - 0xac] */ 14845 PUSH32(esp, eax); /* 0x3614986E: push eax */ 14846 ecx = edi + 0x3C; /* 0x3614986F: lea ecx, [edi + 0x3c] */ 14847 PUSH32(esp, ecx); /* 0x36149872: push ecx */ 14848 PUSH32(esp, edi); /* 0x36149873: push edi */ 14849 RECOMP_ICALL(0x3614A360u); /* 0x36149874: call 0x3614a360 */ /* not lifted */ 14850 RECOMP_FLAGS_IN(); 14851 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 14852 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14853 esp = esp + 0x18u; /* 0x36149879: add esp, 0x18 */ 14854 _flag_k = FK_ADD; 14855 L_3614987C: 14856 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x3Cu); 14857 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14858 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x3Cu; /* 0x3614987C: add dword ptr [esi + 8], 0x3c */ 14859 _flag_k = FK_ADD; 14860 L_36149880: 14861 ecx = ebp + (-0xAC); /* 0x36149880: lea ecx, [ebp - 0xac] */ 14862 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149886: mov dword ptr [ebp - 4], 0xffffffff */ 14863 RECOMP_ICALL(0x3602F940u); /* 0x3614988D: call 0x3602f940 */ /* not lifted */ 14864 RECOMP_FLAGS_IN(); 14865 eax = MEM32(ebp + (-0x14)); /* 0x36149892: mov eax, dword ptr [ebp - 0x14] */ 14866 edx = MEM32(ebp + (-0x50)); /* 0x36149895: mov edx, dword ptr [ebp - 0x50] */ 14867 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14868 eax = eax + 1; /* 0x36149898: inc eax */ 14869 _flag_k = FK_INC; 14870 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 14871 edx = edx & 0xFFu; /* 0x36149899: and edx, 0xff */ 14872 _cf = 0; 14873 _flag_k = FK_TEST; 14874 /* cmp eax, edx */ /* 0x3614989F: cmp eax, edx */ 14875 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 14876 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14877 _flag_k = FK_CMP; 14878 MEM32(ebp + (-0x14)) = eax; /* 0x361498A1: mov dword ptr [ebp - 0x14], eax */ 14879 RECOMP_BACKEDGE(); 14880 if (CMP_L(_flag_a, _flag_b)) goto L_361496BD; /* 0x361498A4: jl 0x361496bd */ 14881 L_361498AA: 14882 esi = MEM32(ebp + 0x8); /* 0x361498AA: mov esi, dword ptr [ebp + 8] */ 14883 ecx = esi; /* 0x361498AD: mov ecx, esi */ 14884 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361498AF: call dword ptr [0x3616fadc] */ 14885 RECOMP_FLAGS_IN(); 14886 /* test eax, eax */ /* 0x361498B5: test eax, eax */ 14887 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14888 _cf = 0; 14889 _flag_k = FK_TEST; 14890 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498F7; /* 0x361498B7: jne 0x361498f7 */ 14891 L_361498B9: 14892 ebx = MEM32(ebx); /* 0x361498B9: mov ebx, dword ptr [ebx] */ 14893 eax = MEM32(ebx + 0x4); /* 0x361498BB: mov eax, dword ptr [ebx + 4] */ 14894 /* test eax, eax */ /* 0x361498BE: test eax, eax */ 14895 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14896 _cf = 0; 14897 _flag_k = FK_TEST; 14898 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498C7; /* 0x361498C0: jne 0x361498c7 */ 14899 L_361498C2: 14900 eax = MEM32(0x3616F10C); /* 0x361498C2: mov eax, dword ptr [0x3616f10c] */ 14901 L_361498C7: 14902 PUSH32(esp, eax); /* 0x361498C7: push eax */ 14903 PUSH32(esp, 0x362E75FCu); /* 0x361498C8: push 0x362e75fc */ 14904 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361498CD: call dword ptr [0x3616f18c] */ 14905 RECOMP_FLAGS_IN(); 14906 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 14907 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14908 esp = esp + 8; /* 0x361498D3: add esp, 8 */ 14909 _flag_k = FK_ADD; 14910 PUSH32(esp, 0x362E75CCu); /* 0x361498D6: push 0x362e75cc */ 14911 ecx = ebp + (-0xB4); /* 0x361498DB: lea ecx, [ebp - 0xb4] */ 14912 RECOMP_ICALL(0x36008EF0u); /* 0x361498E1: call 0x36008ef0 */ /* not lifted */ 14913 RECOMP_FLAGS_IN(); 14914 PUSH32(esp, 0x36184170u); /* 0x361498E6: push 0x36184170 */ 14915 eax = ebp + (-0xB4); /* 0x361498EB: lea eax, [ebp - 0xb4] */ 14916 PUSH32(esp, eax); /* 0x361498F1: push eax */ 14917 RECOMP_ICALL(0x3615FD70u); /* 0x361498F2: call 0x3615fd70 */ /* not lifted */ 14918 RECOMP_FLAGS_IN(); 14919 L_361498F7: 14920 ecx = MEM32(ebp + (-0xC)); /* 0x361498F7: mov ecx, dword ptr [ebp - 0xc] */ 14921 edi = POP32_VAL(esp); /* 0x361498FA: pop edi */ 14922 eax = esi; /* 0x361498FB: mov eax, esi */ 14923 esi = POP32_VAL(esp); /* 0x361498FD: pop esi */ 14924 ebx = POP32_VAL(esp); /* 0x361498FE: pop ebx */ 14925 MEM32(FS_BASE + (0)) = ecx; /* 0x361498FF: mov dword ptr fs:[0], ecx */ 14926 esp = ebp; /* 0x36149906: mov esp, ebp */ 14927 ebp = POP32_VAL(esp); /* 0x36149908: pop ebp */ 14928 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149909: ret */ 14929 RECOMP_REGS_OUT(); 14930 } 14931 14932 void sub_361495E2(void) { 14933 int _fpu_cmp = 0; 14934 uint32_t _cf = 0; 14935 int _df = 1; 14936 uint32_t _flag_k = FK_NONE; 14937 uint32_t _flag_a = 0, _flag_b = 0; 14938 uint32_t _itail_tgt = 0; 14939 RECOMP_REGS_LOCALS 14940 RECOMP_ENTER(0x361495E2u); 14941 14942 goto L_361495E2; 14943 L_361494CA: 14944 ecx = ebp + (-0x84); /* 0x361494CA: lea ecx, [ebp - 0x84] */ 14945 RECOMP_ICALL(0x3602F750u); /* 0x361494D0: call 0x3602f750 */ /* not lifted */ 14946 RECOMP_FLAGS_IN(); 14947 ecx = MEM32(ebp + 0x8); /* 0x361494D5: mov ecx, dword ptr [ebp + 8] */ 14948 eax = ebp + (-0x84); /* 0x361494D8: lea eax, [ebp - 0x84] */ 14949 PUSH32(esp, eax); /* 0x361494DE: push eax */ 14950 PUSH32(esp, ecx); /* 0x361494DF: push ecx */ 14951 MEM32(ebp + (-0x4)) = 0; /* 0x361494E0: mov dword ptr [ebp - 4], 0 */ 14952 RECOMP_ICALL(0x3602F810u); /* 0x361494E7: call 0x3602f810 */ /* not lifted */ 14953 RECOMP_FLAGS_IN(); 14954 esi = MEM32(ebx + 0x50); /* 0x361494EC: mov esi, dword ptr [ebx + 0x50] */ 14955 ecx = MEM32(esi + 0x8); /* 0x361494EF: mov ecx, dword ptr [esi + 8] */ 14956 edx = MEM32(esi + 0xC); /* 0x361494F2: mov edx, dword ptr [esi + 0xc] */ 14957 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 14958 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14959 edx = edx - ecx; /* 0x361494F5: sub edx, ecx */ 14960 _flag_k = FK_CMP; 14961 eax = 0x66666667u; /* 0x361494F7: mov eax, 0x66666667 */ 14962 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361494FC: imul edx */ 14963 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 14964 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 14965 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361494FE: sar edx, 3 */ 14966 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14967 edx = (uint32_t)((int32_t)edx >> 3u); 14968 eax = edx; /* 0x36149501: mov eax, edx */ 14969 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149503: shr eax, 0x1f */ 14970 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14971 eax = eax >> 31u; /* 0x36149503: shr eax, 0x1f */ 14972 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 14973 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14974 edx = edx + eax; /* 0x36149506: add edx, eax */ 14975 _flag_k = FK_ADD; 14976 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 14977 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14978 esp = esp + 8; /* 0x36149508: add esp, 8 */ 14979 _flag_k = FK_ADD; 14980 /* cmp edx, 1 */ /* 0x3614950B: cmp edx, 1 */ 14981 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 14982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14983 _flag_k = FK_CMP; 14984 edi = ecx; /* 0x3614950E: mov edi, ecx */ 14985 if (CMP_AE(_flag_a, _flag_b)) goto L_361495E2; /* 0x36149510: jae 0x361495e2 */ 14986 L_36149516: 14987 eax = MEM32(esi + 0x4); /* 0x36149516: mov eax, dword ptr [esi + 4] */ 14988 /* test eax, eax */ /* 0x36149519: test eax, eax */ 14989 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14990 _cf = 0; 14991 _flag_k = FK_TEST; 14992 if (TEST_Z(_flag_a, _flag_b)) goto L_36149541; /* 0x3614951B: je 0x36149541 */ 14993 L_3614951D: 14994 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 14995 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14996 ecx = ecx - eax; /* 0x3614951D: sub ecx, eax */ 14997 _flag_k = FK_CMP; 14998 eax = 0x66666667u; /* 0x3614951F: mov eax, 0x66666667 */ 14999 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149524: imul ecx */ 15000 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 15001 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 15002 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149526: sar edx, 3 */ 15003 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15004 edx = (uint32_t)((int32_t)edx >> 3u); 15005 ecx = edx; /* 0x36149529: mov ecx, edx */ 15006 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614952B: shr ecx, 0x1f */ 15007 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15008 ecx = ecx >> 31u; /* 0x3614952B: shr ecx, 0x1f */ 15009 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 15010 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15011 edx = edx + ecx; /* 0x3614952E: add edx, ecx */ 15012 _flag_k = FK_ADD; 15013 /* cmp edx, 1 */ /* 0x36149530: cmp edx, 1 */ 15014 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 15015 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15016 _flag_k = FK_CMP; 15017 if (CMP_BE(_flag_a, _flag_b)) goto L_36149541; /* 0x36149533: jbe 0x36149541 */ 15018 L_36149535: 15019 ecx = esi; /* 0x36149535: mov ecx, esi */ 15020 RECOMP_ICALL(0x36149DC0u); /* 0x36149537: call 0x36149dc0 */ /* not lifted */ 15021 RECOMP_FLAGS_IN(); 15022 MEM32(ebp + (-0x14)) = eax; /* 0x3614953C: mov dword ptr [ebp - 0x14], eax */ 15023 goto L_36149548; /* 0x3614953F: jmp 0x36149548 */ 15024 L_36149541: 15025 MEM32(ebp + (-0x14)) = 1; /* 0x36149541: mov dword ptr [ebp - 0x14], 1 */ 15026 L_36149548: 15027 ecx = esi; /* 0x36149548: mov ecx, esi */ 15028 RECOMP_ICALL(0x36149DC0u); /* 0x3614954A: call 0x36149dc0 */ /* not lifted */ 15029 RECOMP_FLAGS_IN(); 15030 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 15031 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15032 eax = eax + MEM32(ebp + (-0x14)); /* 0x3614954F: add eax, dword ptr [ebp - 0x14] */ 15033 _flag_k = FK_ADD; 15034 MEM32(ebp + (-0x2C)) = eax; /* 0x36149552: mov dword ptr [ebp - 0x2c], eax */ 15035 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149559; /* 0x36149555: jns 0x36149559 */ 15036 L_36149557: 15037 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15038 eax = 0; /* 0x36149557: xor eax, eax */ 15039 _cf = 0; 15040 _flag_k = FK_TEST; 15041 L_36149559: 15042 edx = eax + eax * 4; /* 0x36149559: lea edx, [eax + eax*4] */ 15043 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614955C: shl edx, 2 */ 15044 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15045 edx = edx << 2u; /* 0x3614955C: shl edx, 2 */ 15046 PUSH32(esp, edx); /* 0x3614955F: push edx */ 15047 RECOMP_ICALL(0x3615FD6Au); /* 0x36149560: call 0x3615fd6a */ /* not lifted */ 15048 RECOMP_FLAGS_IN(); 15049 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15050 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15051 esp = esp + 4; /* 0x36149565: add esp, 4 */ 15052 _flag_k = FK_ADD; 15053 PUSH32(esp, eax); /* 0x36149568: push eax */ 15054 MEM32(ebp + (-0x14)) = eax; /* 0x36149569: mov dword ptr [ebp - 0x14], eax */ 15055 eax = MEM32(esi + 0x4); /* 0x3614956C: mov eax, dword ptr [esi + 4] */ 15056 PUSH32(esp, edi); /* 0x3614956F: push edi */ 15057 PUSH32(esp, eax); /* 0x36149570: push eax */ 15058 ecx = esi; /* 0x36149571: mov ecx, esi */ 15059 RECOMP_ICALL(0x36149E20u); /* 0x36149573: call 0x36149e20 */ /* not lifted */ 15060 RECOMP_FLAGS_IN(); 15061 ecx = ebp + (-0x84); /* 0x36149578: lea ecx, [ebp - 0x84] */ 15062 PUSH32(esp, ecx); /* 0x3614957E: push ecx */ 15063 PUSH32(esp, 1); /* 0x3614957F: push 1 */ 15064 PUSH32(esp, eax); /* 0x36149581: push eax */ 15065 ecx = esi; /* 0x36149582: mov ecx, esi */ 15066 MEM32(ebp + (-0x18)) = eax; /* 0x36149584: mov dword ptr [ebp - 0x18], eax */ 15067 RECOMP_ICALL(0x3614A190u); /* 0x36149587: call 0x3614a190 */ /* not lifted */ 15068 RECOMP_FLAGS_IN(); 15069 edx = MEM32(ebp + (-0x18)); /* 0x3614958C: mov edx, dword ptr [ebp - 0x18] */ 15070 eax = MEM32(esi + 0x8); /* 0x3614958F: mov eax, dword ptr [esi + 8] */ 15071 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u); 15072 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15073 edx = edx + 0x14u; /* 0x36149592: add edx, 0x14 */ 15074 _flag_k = FK_ADD; 15075 PUSH32(esp, edx); /* 0x36149595: push edx */ 15076 PUSH32(esp, eax); /* 0x36149596: push eax */ 15077 PUSH32(esp, edi); /* 0x36149597: push edi */ 15078 ecx = esi; /* 0x36149598: mov ecx, esi */ 15079 RECOMP_ICALL(0x36149E20u); /* 0x3614959A: call 0x36149e20 */ /* not lifted */ 15080 RECOMP_FLAGS_IN(); 15081 ecx = MEM32(esi + 0x8); /* 0x3614959F: mov ecx, dword ptr [esi + 8] */ 15082 edx = MEM32(esi + 0x4); /* 0x361495A2: mov edx, dword ptr [esi + 4] */ 15083 PUSH32(esp, ecx); /* 0x361495A5: push ecx */ 15084 PUSH32(esp, edx); /* 0x361495A6: push edx */ 15085 ecx = esi; /* 0x361495A7: mov ecx, esi */ 15086 RECOMP_ICALL(0x36149DF0u); /* 0x361495A9: call 0x36149df0 */ /* not lifted */ 15087 RECOMP_FLAGS_IN(); 15088 eax = MEM32(esi + 0x4); /* 0x361495AE: mov eax, dword ptr [esi + 4] */ 15089 PUSH32(esp, eax); /* 0x361495B1: push eax */ 15090 RECOMP_ICALL(0x3615FCC4u); /* 0x361495B2: call 0x3615fcc4 */ /* not lifted */ 15091 RECOMP_FLAGS_IN(); 15092 eax = MEM32(ebp + (-0x2C)); /* 0x361495B7: mov eax, dword ptr [ebp - 0x2c] */ 15093 edi = MEM32(ebp + (-0x14)); /* 0x361495BA: mov edi, dword ptr [ebp - 0x14] */ 15094 eax = eax + eax * 4; /* 0x361495BD: lea eax, [eax + eax*4] */ 15095 ecx = edi + eax * 4; /* 0x361495C0: lea ecx, [edi + eax*4] */ 15096 MEM32(esi + 0xC) = ecx; /* 0x361495C3: mov dword ptr [esi + 0xc], ecx */ 15097 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15098 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15099 esp = esp + 4; /* 0x361495C6: add esp, 4 */ 15100 _flag_k = FK_ADD; 15101 ecx = esi; /* 0x361495C9: mov ecx, esi */ 15102 RECOMP_ICALL(0x36149DC0u); /* 0x361495CB: call 0x36149dc0 */ /* not lifted */ 15103 RECOMP_FLAGS_IN(); 15104 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15105 eax = eax + 1; /* 0x361495D0: inc eax */ 15106 _flag_k = FK_INC; 15107 edx = eax + eax * 4; /* 0x361495D1: lea edx, [eax + eax*4] */ 15108 eax = edi + edx * 4; /* 0x361495D4: lea eax, [edi + edx*4] */ 15109 MEM32(esi + 0x8) = eax; /* 0x361495D7: mov dword ptr [esi + 8], eax */ 15110 MEM32(esi + 0x4) = edi; /* 0x361495DA: mov dword ptr [esi + 4], edi */ 15111 goto L_36149681; /* 0x361495DD: jmp 0x36149681 */ 15112 L_361495E2: 15113 edx = ecx; /* 0x361495E2: mov edx, ecx */ 15114 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 15115 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15116 edx = edx - edi; /* 0x361495E4: sub edx, edi */ 15117 _flag_k = FK_CMP; 15118 eax = 0x66666667u; /* 0x361495E6: mov eax, 0x66666667 */ 15119 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361495EB: imul edx */ 15120 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 15121 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 15122 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361495ED: sar edx, 3 */ 15123 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15124 edx = (uint32_t)((int32_t)edx >> 3u); 15125 eax = edx; /* 0x361495F0: mov eax, edx */ 15126 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361495F2: shr eax, 0x1f */ 15127 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15128 eax = eax >> 31u; /* 0x361495F2: shr eax, 0x1f */ 15129 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 15130 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15131 edx = edx + eax; /* 0x361495F5: add edx, eax */ 15132 _flag_k = FK_ADD; 15133 /* cmp edx, 1 */ /* 0x361495F7: cmp edx, 1 */ 15134 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 15135 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15136 _flag_k = FK_CMP; 15137 if (CMP_AE(_flag_a, _flag_b)) goto L_3614964E; /* 0x361495FA: jae 0x3614964e */ 15138 L_361495FC: 15139 edx = edi + 0x14; /* 0x361495FC: lea edx, [edi + 0x14] */ 15140 PUSH32(esp, edx); /* 0x361495FF: push edx */ 15141 PUSH32(esp, ecx); /* 0x36149600: push ecx */ 15142 PUSH32(esp, edi); /* 0x36149601: push edi */ 15143 ecx = esi; /* 0x36149602: mov ecx, esi */ 15144 RECOMP_ICALL(0x36149E20u); /* 0x36149604: call 0x36149e20 */ /* not lifted */ 15145 RECOMP_FLAGS_IN(); 15146 ecx = MEM32(esi + 0x8); /* 0x36149609: mov ecx, dword ptr [esi + 8] */ 15147 eax = ebp + (-0x84); /* 0x3614960C: lea eax, [ebp - 0x84] */ 15148 PUSH32(esp, eax); /* 0x36149612: push eax */ 15149 edx = ecx; /* 0x36149613: mov edx, ecx */ 15150 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 15151 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15152 edx = edx - edi; /* 0x36149615: sub edx, edi */ 15153 _flag_k = FK_CMP; 15154 eax = 0x66666667u; /* 0x36149617: mov eax, 0x66666667 */ 15155 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3614961C: imul edx */ 15156 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 15157 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 15158 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3614961E: sar edx, 3 */ 15159 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15160 edx = (uint32_t)((int32_t)edx >> 3u); 15161 eax = edx; /* 0x36149621: mov eax, edx */ 15162 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149623: shr eax, 0x1f */ 15163 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15164 eax = eax >> 31u; /* 0x36149623: shr eax, 0x1f */ 15165 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 15166 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15167 edx = edx + eax; /* 0x36149626: add edx, eax */ 15168 _flag_k = FK_ADD; 15169 eax = 1; /* 0x36149628: mov eax, 1 */ 15170 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 15171 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15172 eax = eax - edx; /* 0x3614962D: sub eax, edx */ 15173 _flag_k = FK_CMP; 15174 PUSH32(esp, eax); /* 0x3614962F: push eax */ 15175 PUSH32(esp, ecx); /* 0x36149630: push ecx */ 15176 ecx = esi; /* 0x36149631: mov ecx, esi */ 15177 RECOMP_ICALL(0x3614A190u); /* 0x36149633: call 0x3614a190 */ /* not lifted */ 15178 RECOMP_FLAGS_IN(); 15179 edx = MEM32(esi + 0x8); /* 0x36149638: mov edx, dword ptr [esi + 8] */ 15180 ecx = ebp + (-0x84); /* 0x3614963B: lea ecx, [ebp - 0x84] */ 15181 PUSH32(esp, ecx); /* 0x36149641: push ecx */ 15182 PUSH32(esp, edx); /* 0x36149642: push edx */ 15183 PUSH32(esp, edi); /* 0x36149643: push edi */ 15184 RECOMP_ICALL(0x3614A2A0u); /* 0x36149644: call 0x3614a2a0 */ /* not lifted */ 15185 RECOMP_FLAGS_IN(); 15186 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 15187 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15188 esp = esp + 0xCu; /* 0x36149649: add esp, 0xc */ 15189 _flag_k = FK_ADD; 15190 goto L_3614967D; /* 0x3614964C: jmp 0x3614967d */ 15191 L_3614964E: 15192 PUSH32(esp, ecx); /* 0x3614964E: push ecx */ 15193 PUSH32(esp, ecx); /* 0x3614964F: push ecx */ 15194 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu); 15195 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15196 ecx = ecx + 0xFFFFFFECu; /* 0x36149650: add ecx, -0x14 */ 15197 _flag_k = FK_ADD; 15198 PUSH32(esp, ecx); /* 0x36149653: push ecx */ 15199 ecx = esi; /* 0x36149654: mov ecx, esi */ 15200 RECOMP_ICALL(0x36149E20u); /* 0x36149656: call 0x36149e20 */ /* not lifted */ 15201 RECOMP_FLAGS_IN(); 15202 eax = MEM32(esi + 0x8); /* 0x3614965B: mov eax, dword ptr [esi + 8] */ 15203 PUSH32(esp, eax); /* 0x3614965E: push eax */ 15204 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu); 15205 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15206 eax = eax + 0xFFFFFFECu; /* 0x3614965F: add eax, -0x14 */ 15207 _flag_k = FK_ADD; 15208 PUSH32(esp, eax); /* 0x36149662: push eax */ 15209 PUSH32(esp, edi); /* 0x36149663: push edi */ 15210 RECOMP_ICALL(0x3614A2D0u); /* 0x36149664: call 0x3614a2d0 */ /* not lifted */ 15211 RECOMP_FLAGS_IN(); 15212 eax = ebp + (-0x84); /* 0x36149669: lea eax, [ebp - 0x84] */ 15213 PUSH32(esp, eax); /* 0x3614966F: push eax */ 15214 ecx = edi + 0x14; /* 0x36149670: lea ecx, [edi + 0x14] */ 15215 PUSH32(esp, ecx); /* 0x36149673: push ecx */ 15216 PUSH32(esp, edi); /* 0x36149674: push edi */ 15217 RECOMP_ICALL(0x3614A2A0u); /* 0x36149675: call 0x3614a2a0 */ /* not lifted */ 15218 RECOMP_FLAGS_IN(); 15219 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 15220 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15221 esp = esp + 0x18u; /* 0x3614967A: add esp, 0x18 */ 15222 _flag_k = FK_ADD; 15223 L_3614967D: 15224 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x14u); 15225 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15226 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x14u; /* 0x3614967D: add dword ptr [esi + 8], 0x14 */ 15227 _flag_k = FK_ADD; 15228 L_36149681: 15229 ecx = ebp + (-0x84); /* 0x36149681: lea ecx, [ebp - 0x84] */ 15230 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149687: mov dword ptr [ebp - 4], 0xffffffff */ 15231 RECOMP_ICALL(0x3602F7D0u); /* 0x3614968E: call 0x3602f7d0 */ /* not lifted */ 15232 RECOMP_FLAGS_IN(); 15233 eax = MEM32(ebp + (-0x10)); /* 0x36149693: mov eax, dword ptr [ebp - 0x10] */ 15234 edx = MEM32(ebp + (-0x4C)); /* 0x36149696: mov edx, dword ptr [ebp - 0x4c] */ 15235 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15236 eax = eax + 1; /* 0x36149699: inc eax */ 15237 _flag_k = FK_INC; 15238 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 15239 edx = edx & 0xFFu; /* 0x3614969A: and edx, 0xff */ 15240 _cf = 0; 15241 _flag_k = FK_TEST; 15242 /* cmp eax, edx */ /* 0x361496A0: cmp eax, edx */ 15243 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 15244 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15245 _flag_k = FK_CMP; 15246 MEM32(ebp + (-0x10)) = eax; /* 0x361496A2: mov dword ptr [ebp - 0x10], eax */ 15247 RECOMP_BACKEDGE(); 15248 if (CMP_L(_flag_a, _flag_b)) goto L_361494CA; /* 0x361496A5: jl 0x361494ca */ 15249 L_361496AB: 15250 SET_LO8(eax, MEM8(ebp + (-0x50))); /* 0x361496AB: mov al, byte ptr [ebp - 0x50] */ 15251 /* test LO8(eax), LO8(eax) */ /* 0x361496AE: test al, al */ 15252 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 15253 _cf = 0; 15254 _flag_k = FK_NARROW(FK_TEST, 24); 15255 MEM32(ebp + (-0x14)) = 0; /* 0x361496B0: mov dword ptr [ebp - 0x14], 0 */ 15256 if (TEST_Z(_flag_a, _flag_b)) goto L_361498AA; /* 0x361496B7: jbe 0x361498aa */ 15257 L_361496BD: 15258 ecx = ebp + (-0xAC); /* 0x361496BD: lea ecx, [ebp - 0xac] */ 15259 RECOMP_ICALL(0x3602F870u); /* 0x361496C3: call 0x3602f870 */ /* not lifted */ 15260 RECOMP_FLAGS_IN(); 15261 ecx = MEM32(ebp + 0x8); /* 0x361496C8: mov ecx, dword ptr [ebp + 8] */ 15262 eax = ebp + (-0xAC); /* 0x361496CB: lea eax, [ebp - 0xac] */ 15263 PUSH32(esp, eax); /* 0x361496D1: push eax */ 15264 PUSH32(esp, ecx); /* 0x361496D2: push ecx */ 15265 MEM32(ebp + (-0x4)) = 1; /* 0x361496D3: mov dword ptr [ebp - 4], 1 */ 15266 RECOMP_ICALL(0x3602F9B0u); /* 0x361496DA: call 0x3602f9b0 */ /* not lifted */ 15267 RECOMP_FLAGS_IN(); 15268 esi = MEM32(ebx + 0x54); /* 0x361496DF: mov esi, dword ptr [ebx + 0x54] */ 15269 ecx = MEM32(esi + 0x8); /* 0x361496E2: mov ecx, dword ptr [esi + 8] */ 15270 edx = MEM32(esi + 0xC); /* 0x361496E5: mov edx, dword ptr [esi + 0xc] */ 15271 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 15272 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15273 edx = edx - ecx; /* 0x361496E8: sub edx, ecx */ 15274 _flag_k = FK_CMP; 15275 MEM32(ebp + (-0x18)) = edx; /* 0x361496EA: mov dword ptr [ebp - 0x18], edx */ 15276 eax = 0x88888889u; /* 0x361496ED: mov eax, 0x88888889 */ 15277 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361496F2: imul edx */ 15278 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 15279 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 15280 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 15281 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15282 edx = edx + MEM32(ebp + (-0x18)); /* 0x361496F4: add edx, dword ptr [ebp - 0x18] */ 15283 _flag_k = FK_ADD; 15284 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361496F7: sar edx, 5 */ 15285 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15286 edx = (uint32_t)((int32_t)edx >> 5u); 15287 eax = edx; /* 0x361496FA: mov eax, edx */ 15288 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361496FC: shr eax, 0x1f */ 15289 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15290 eax = eax >> 31u; /* 0x361496FC: shr eax, 0x1f */ 15291 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 15292 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15293 edx = edx + eax; /* 0x361496FF: add edx, eax */ 15294 _flag_k = FK_ADD; 15295 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 15296 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15297 esp = esp + 8; /* 0x36149701: add esp, 8 */ 15298 _flag_k = FK_ADD; 15299 /* cmp edx, 1 */ /* 0x36149704: cmp edx, 1 */ 15300 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 15301 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15302 _flag_k = FK_CMP; 15303 edi = ecx; /* 0x36149707: mov edi, ecx */ 15304 if (CMP_AE(_flag_a, _flag_b)) goto L_361497D8; /* 0x36149709: jae 0x361497d8 */ 15305 L_3614970F: 15306 eax = MEM32(esi + 0x4); /* 0x3614970F: mov eax, dword ptr [esi + 4] */ 15307 /* test eax, eax */ /* 0x36149712: test eax, eax */ 15308 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15309 _cf = 0; 15310 _flag_k = FK_TEST; 15311 if (TEST_Z(_flag_a, _flag_b)) goto L_36149732; /* 0x36149714: je 0x36149732 */ 15312 L_36149716: 15313 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 15314 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15315 ecx = ecx - eax; /* 0x36149716: sub ecx, eax */ 15316 _flag_k = FK_CMP; 15317 eax = 0x88888889u; /* 0x36149718: mov eax, 0x88888889 */ 15318 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3614971D: imul ecx */ 15319 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 15320 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 15321 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 15322 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15323 edx = edx + ecx; /* 0x3614971F: add edx, ecx */ 15324 _flag_k = FK_ADD; 15325 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36149721: sar edx, 5 */ 15326 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15327 edx = (uint32_t)((int32_t)edx >> 5u); 15328 ecx = edx; /* 0x36149724: mov ecx, edx */ 15329 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36149726: shr ecx, 0x1f */ 15330 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15331 ecx = ecx >> 31u; /* 0x36149726: shr ecx, 0x1f */ 15332 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 15333 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15334 edx = edx + ecx; /* 0x36149729: add edx, ecx */ 15335 _flag_k = FK_ADD; 15336 /* cmp edx, 1 */ /* 0x3614972B: cmp edx, 1 */ 15337 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 15338 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15339 _flag_k = FK_CMP; 15340 ebx = edx; /* 0x3614972E: mov ebx, edx */ 15341 if (CMP_A(_flag_a, _flag_b)) goto L_36149737; /* 0x36149730: ja 0x36149737 */ 15342 L_36149732: 15343 ebx = 1; /* 0x36149732: mov ebx, 1 */ 15344 L_36149737: 15345 ecx = esi; /* 0x36149737: mov ecx, esi */ 15346 RECOMP_ICALL(0x36149E90u); /* 0x36149739: call 0x36149e90 */ /* not lifted */ 15347 RECOMP_FLAGS_IN(); 15348 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 15349 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15350 eax = eax + ebx; /* 0x3614973E: add eax, ebx */ 15351 _flag_k = FK_ADD; 15352 MEM32(ebp + (-0x2C)) = eax; /* 0x36149740: mov dword ptr [ebp - 0x2c], eax */ 15353 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149747; /* 0x36149743: jns 0x36149747 */ 15354 L_36149745: 15355 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15356 eax = 0; /* 0x36149745: xor eax, eax */ 15357 _cf = 0; 15358 _flag_k = FK_TEST; 15359 L_36149747: 15360 eax = eax + eax * 2; /* 0x36149747: lea eax, [eax + eax*2] */ 15361 edx = eax + eax * 4; /* 0x3614974A: lea edx, [eax + eax*4] */ 15362 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614974D: shl edx, 2 */ 15363 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15364 edx = edx << 2u; /* 0x3614974D: shl edx, 2 */ 15365 PUSH32(esp, edx); /* 0x36149750: push edx */ 15366 RECOMP_ICALL(0x3615FD6Au); /* 0x36149751: call 0x3615fd6a */ /* not lifted */ 15367 RECOMP_FLAGS_IN(); 15368 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15369 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15370 esp = esp + 4; /* 0x36149756: add esp, 4 */ 15371 _flag_k = FK_ADD; 15372 ebx = eax; /* 0x36149759: mov ebx, eax */ 15373 eax = MEM32(esi + 0x4); /* 0x3614975B: mov eax, dword ptr [esi + 4] */ 15374 PUSH32(esp, ebx); /* 0x3614975E: push ebx */ 15375 PUSH32(esp, edi); /* 0x3614975F: push edi */ 15376 PUSH32(esp, eax); /* 0x36149760: push eax */ 15377 ecx = esi; /* 0x36149761: mov ecx, esi */ 15378 RECOMP_ICALL(0x36149EF0u); /* 0x36149763: call 0x36149ef0 */ /* not lifted */ 15379 RECOMP_FLAGS_IN(); 15380 ecx = ebp + (-0xAC); /* 0x36149768: lea ecx, [ebp - 0xac] */ 15381 PUSH32(esp, ecx); /* 0x3614976E: push ecx */ 15382 PUSH32(esp, 1); /* 0x3614976F: push 1 */ 15383 PUSH32(esp, eax); /* 0x36149771: push eax */ 15384 ecx = esi; /* 0x36149772: mov ecx, esi */ 15385 MEM32(ebp + (-0x18)) = eax; /* 0x36149774: mov dword ptr [ebp - 0x18], eax */ 15386 RECOMP_ICALL(0x3614A1C0u); /* 0x36149777: call 0x3614a1c0 */ /* not lifted */ 15387 RECOMP_FLAGS_IN(); 15388 edx = MEM32(ebp + (-0x18)); /* 0x3614977C: mov edx, dword ptr [ebp - 0x18] */ 15389 eax = MEM32(esi + 0x8); /* 0x3614977F: mov eax, dword ptr [esi + 8] */ 15390 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x3Cu); 15391 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15392 edx = edx + 0x3Cu; /* 0x36149782: add edx, 0x3c */ 15393 _flag_k = FK_ADD; 15394 PUSH32(esp, edx); /* 0x36149785: push edx */ 15395 PUSH32(esp, eax); /* 0x36149786: push eax */ 15396 PUSH32(esp, edi); /* 0x36149787: push edi */ 15397 ecx = esi; /* 0x36149788: mov ecx, esi */ 15398 RECOMP_ICALL(0x36149EF0u); /* 0x3614978A: call 0x36149ef0 */ /* not lifted */ 15399 RECOMP_FLAGS_IN(); 15400 ecx = MEM32(esi + 0x8); /* 0x3614978F: mov ecx, dword ptr [esi + 8] */ 15401 edx = MEM32(esi + 0x4); /* 0x36149792: mov edx, dword ptr [esi + 4] */ 15402 PUSH32(esp, ecx); /* 0x36149795: push ecx */ 15403 PUSH32(esp, edx); /* 0x36149796: push edx */ 15404 ecx = esi; /* 0x36149797: mov ecx, esi */ 15405 RECOMP_ICALL(0x36149EC0u); /* 0x36149799: call 0x36149ec0 */ /* not lifted */ 15406 RECOMP_FLAGS_IN(); 15407 eax = MEM32(esi + 0x4); /* 0x3614979E: mov eax, dword ptr [esi + 4] */ 15408 PUSH32(esp, eax); /* 0x361497A1: push eax */ 15409 RECOMP_ICALL(0x3615FCC4u); /* 0x361497A2: call 0x3615fcc4 */ /* not lifted */ 15410 RECOMP_FLAGS_IN(); 15411 eax = MEM32(ebp + (-0x2C)); /* 0x361497A7: mov eax, dword ptr [ebp - 0x2c] */ 15412 eax = eax + eax * 2; /* 0x361497AA: lea eax, [eax + eax*2] */ 15413 eax = eax + eax * 4; /* 0x361497AD: lea eax, [eax + eax*4] */ 15414 ecx = ebx + eax * 4; /* 0x361497B0: lea ecx, [ebx + eax*4] */ 15415 MEM32(esi + 0xC) = ecx; /* 0x361497B3: mov dword ptr [esi + 0xc], ecx */ 15416 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15417 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15418 esp = esp + 4; /* 0x361497B6: add esp, 4 */ 15419 _flag_k = FK_ADD; 15420 ecx = esi; /* 0x361497B9: mov ecx, esi */ 15421 RECOMP_ICALL(0x36149E90u); /* 0x361497BB: call 0x36149e90 */ /* not lifted */ 15422 RECOMP_FLAGS_IN(); 15423 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15424 eax = eax + 1; /* 0x361497C0: inc eax */ 15425 _flag_k = FK_INC; 15426 eax = eax + eax * 2; /* 0x361497C1: lea eax, [eax + eax*2] */ 15427 edx = eax + eax * 4; /* 0x361497C4: lea edx, [eax + eax*4] */ 15428 eax = ebx + edx * 4; /* 0x361497C7: lea eax, [ebx + edx*4] */ 15429 MEM32(esi + 0x4) = ebx; /* 0x361497CA: mov dword ptr [esi + 4], ebx */ 15430 ebx = MEM32(ebp + 0xC); /* 0x361497CD: mov ebx, dword ptr [ebp + 0xc] */ 15431 MEM32(esi + 0x8) = eax; /* 0x361497D0: mov dword ptr [esi + 8], eax */ 15432 goto L_36149880; /* 0x361497D3: jmp 0x36149880 */ 15433 L_361497D8: 15434 edx = ecx; /* 0x361497D8: mov edx, ecx */ 15435 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 15436 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15437 edx = edx - edi; /* 0x361497DA: sub edx, edi */ 15438 _flag_k = FK_CMP; 15439 MEM32(ebp + (-0x18)) = edx; /* 0x361497DC: mov dword ptr [ebp - 0x18], edx */ 15440 eax = 0x88888889u; /* 0x361497DF: mov eax, 0x88888889 */ 15441 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361497E4: imul edx */ 15442 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 15443 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 15444 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 15445 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15446 edx = edx + MEM32(ebp + (-0x18)); /* 0x361497E6: add edx, dword ptr [ebp - 0x18] */ 15447 _flag_k = FK_ADD; 15448 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361497E9: sar edx, 5 */ 15449 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15450 edx = (uint32_t)((int32_t)edx >> 5u); 15451 eax = edx; /* 0x361497EC: mov eax, edx */ 15452 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361497EE: shr eax, 0x1f */ 15453 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15454 eax = eax >> 31u; /* 0x361497EE: shr eax, 0x1f */ 15455 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 15456 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15457 edx = edx + eax; /* 0x361497F1: add edx, eax */ 15458 _flag_k = FK_ADD; 15459 /* cmp edx, 1 */ /* 0x361497F3: cmp edx, 1 */ 15460 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 15461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15462 _flag_k = FK_CMP; 15463 if (CMP_AE(_flag_a, _flag_b)) goto L_3614984D; /* 0x361497F6: jae 0x3614984d */ 15464 L_361497F8: 15465 edx = edi + 0x3C; /* 0x361497F8: lea edx, [edi + 0x3c] */ 15466 PUSH32(esp, edx); /* 0x361497FB: push edx */ 15467 PUSH32(esp, ecx); /* 0x361497FC: push ecx */ 15468 PUSH32(esp, edi); /* 0x361497FD: push edi */ 15469 ecx = esi; /* 0x361497FE: mov ecx, esi */ 15470 RECOMP_ICALL(0x36149EF0u); /* 0x36149800: call 0x36149ef0 */ /* not lifted */ 15471 RECOMP_FLAGS_IN(); 15472 ecx = MEM32(esi + 0x8); /* 0x36149805: mov ecx, dword ptr [esi + 8] */ 15473 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 15474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15475 ecx = ecx - edi; /* 0x36149808: sub ecx, edi */ 15476 _flag_k = FK_CMP; 15477 eax = ebp + (-0xAC); /* 0x3614980A: lea eax, [ebp - 0xac] */ 15478 PUSH32(esp, eax); /* 0x36149810: push eax */ 15479 eax = 0x88888889u; /* 0x36149811: mov eax, 0x88888889 */ 15480 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149816: imul ecx */ 15481 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 15482 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 15483 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 15484 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15485 edx = edx + ecx; /* 0x36149818: add edx, ecx */ 15486 _flag_k = FK_ADD; 15487 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x3614981A: sar edx, 5 */ 15488 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15489 edx = (uint32_t)((int32_t)edx >> 5u); 15490 ecx = edx; /* 0x3614981D: mov ecx, edx */ 15491 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614981F: shr ecx, 0x1f */ 15492 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15493 ecx = ecx >> 31u; /* 0x3614981F: shr ecx, 0x1f */ 15494 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 15495 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15496 edx = edx + ecx; /* 0x36149822: add edx, ecx */ 15497 _flag_k = FK_ADD; 15498 eax = 1; /* 0x36149824: mov eax, 1 */ 15499 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 15500 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15501 eax = eax - edx; /* 0x36149829: sub eax, edx */ 15502 _flag_k = FK_CMP; 15503 PUSH32(esp, eax); /* 0x3614982B: push eax */ 15504 eax = MEM32(esi + 0x8); /* 0x3614982C: mov eax, dword ptr [esi + 8] */ 15505 PUSH32(esp, eax); /* 0x3614982F: push eax */ 15506 ecx = esi; /* 0x36149830: mov ecx, esi */ 15507 RECOMP_ICALL(0x3614A1C0u); /* 0x36149832: call 0x3614a1c0 */ /* not lifted */ 15508 RECOMP_FLAGS_IN(); 15509 edx = MEM32(esi + 0x8); /* 0x36149837: mov edx, dword ptr [esi + 8] */ 15510 ecx = ebp + (-0xAC); /* 0x3614983A: lea ecx, [ebp - 0xac] */ 15511 PUSH32(esp, ecx); /* 0x36149840: push ecx */ 15512 PUSH32(esp, edx); /* 0x36149841: push edx */ 15513 PUSH32(esp, edi); /* 0x36149842: push edi */ 15514 RECOMP_ICALL(0x3614A360u); /* 0x36149843: call 0x3614a360 */ /* not lifted */ 15515 RECOMP_FLAGS_IN(); 15516 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 15517 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15518 esp = esp + 0xCu; /* 0x36149848: add esp, 0xc */ 15519 _flag_k = FK_ADD; 15520 goto L_3614987C; /* 0x3614984B: jmp 0x3614987c */ 15521 L_3614984D: 15522 PUSH32(esp, ecx); /* 0x3614984D: push ecx */ 15523 PUSH32(esp, ecx); /* 0x3614984E: push ecx */ 15524 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC4u); 15525 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15526 ecx = ecx + 0xFFFFFFC4u; /* 0x3614984F: add ecx, -0x3c */ 15527 _flag_k = FK_ADD; 15528 PUSH32(esp, ecx); /* 0x36149852: push ecx */ 15529 ecx = esi; /* 0x36149853: mov ecx, esi */ 15530 RECOMP_ICALL(0x36149EF0u); /* 0x36149855: call 0x36149ef0 */ /* not lifted */ 15531 RECOMP_FLAGS_IN(); 15532 eax = MEM32(esi + 0x8); /* 0x3614985A: mov eax, dword ptr [esi + 8] */ 15533 PUSH32(esp, eax); /* 0x3614985D: push eax */ 15534 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFC4u); 15535 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15536 eax = eax + 0xFFFFFFC4u; /* 0x3614985E: add eax, -0x3c */ 15537 _flag_k = FK_ADD; 15538 PUSH32(esp, eax); /* 0x36149861: push eax */ 15539 PUSH32(esp, edi); /* 0x36149862: push edi */ 15540 RECOMP_ICALL(0x3614A390u); /* 0x36149863: call 0x3614a390 */ /* not lifted */ 15541 RECOMP_FLAGS_IN(); 15542 eax = ebp + (-0xAC); /* 0x36149868: lea eax, [ebp - 0xac] */ 15543 PUSH32(esp, eax); /* 0x3614986E: push eax */ 15544 ecx = edi + 0x3C; /* 0x3614986F: lea ecx, [edi + 0x3c] */ 15545 PUSH32(esp, ecx); /* 0x36149872: push ecx */ 15546 PUSH32(esp, edi); /* 0x36149873: push edi */ 15547 RECOMP_ICALL(0x3614A360u); /* 0x36149874: call 0x3614a360 */ /* not lifted */ 15548 RECOMP_FLAGS_IN(); 15549 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 15550 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15551 esp = esp + 0x18u; /* 0x36149879: add esp, 0x18 */ 15552 _flag_k = FK_ADD; 15553 L_3614987C: 15554 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x3Cu); 15555 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15556 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x3Cu; /* 0x3614987C: add dword ptr [esi + 8], 0x3c */ 15557 _flag_k = FK_ADD; 15558 L_36149880: 15559 ecx = ebp + (-0xAC); /* 0x36149880: lea ecx, [ebp - 0xac] */ 15560 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149886: mov dword ptr [ebp - 4], 0xffffffff */ 15561 RECOMP_ICALL(0x3602F940u); /* 0x3614988D: call 0x3602f940 */ /* not lifted */ 15562 RECOMP_FLAGS_IN(); 15563 eax = MEM32(ebp + (-0x14)); /* 0x36149892: mov eax, dword ptr [ebp - 0x14] */ 15564 edx = MEM32(ebp + (-0x50)); /* 0x36149895: mov edx, dword ptr [ebp - 0x50] */ 15565 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15566 eax = eax + 1; /* 0x36149898: inc eax */ 15567 _flag_k = FK_INC; 15568 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 15569 edx = edx & 0xFFu; /* 0x36149899: and edx, 0xff */ 15570 _cf = 0; 15571 _flag_k = FK_TEST; 15572 /* cmp eax, edx */ /* 0x3614989F: cmp eax, edx */ 15573 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 15574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15575 _flag_k = FK_CMP; 15576 MEM32(ebp + (-0x14)) = eax; /* 0x361498A1: mov dword ptr [ebp - 0x14], eax */ 15577 RECOMP_BACKEDGE(); 15578 if (CMP_L(_flag_a, _flag_b)) goto L_361496BD; /* 0x361498A4: jl 0x361496bd */ 15579 L_361498AA: 15580 esi = MEM32(ebp + 0x8); /* 0x361498AA: mov esi, dword ptr [ebp + 8] */ 15581 ecx = esi; /* 0x361498AD: mov ecx, esi */ 15582 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361498AF: call dword ptr [0x3616fadc] */ 15583 RECOMP_FLAGS_IN(); 15584 /* test eax, eax */ /* 0x361498B5: test eax, eax */ 15585 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15586 _cf = 0; 15587 _flag_k = FK_TEST; 15588 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498F7; /* 0x361498B7: jne 0x361498f7 */ 15589 L_361498B9: 15590 ebx = MEM32(ebx); /* 0x361498B9: mov ebx, dword ptr [ebx] */ 15591 eax = MEM32(ebx + 0x4); /* 0x361498BB: mov eax, dword ptr [ebx + 4] */ 15592 /* test eax, eax */ /* 0x361498BE: test eax, eax */ 15593 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15594 _cf = 0; 15595 _flag_k = FK_TEST; 15596 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498C7; /* 0x361498C0: jne 0x361498c7 */ 15597 L_361498C2: 15598 eax = MEM32(0x3616F10C); /* 0x361498C2: mov eax, dword ptr [0x3616f10c] */ 15599 L_361498C7: 15600 PUSH32(esp, eax); /* 0x361498C7: push eax */ 15601 PUSH32(esp, 0x362E75FCu); /* 0x361498C8: push 0x362e75fc */ 15602 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361498CD: call dword ptr [0x3616f18c] */ 15603 RECOMP_FLAGS_IN(); 15604 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 15605 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15606 esp = esp + 8; /* 0x361498D3: add esp, 8 */ 15607 _flag_k = FK_ADD; 15608 PUSH32(esp, 0x362E75CCu); /* 0x361498D6: push 0x362e75cc */ 15609 ecx = ebp + (-0xB4); /* 0x361498DB: lea ecx, [ebp - 0xb4] */ 15610 RECOMP_ICALL(0x36008EF0u); /* 0x361498E1: call 0x36008ef0 */ /* not lifted */ 15611 RECOMP_FLAGS_IN(); 15612 PUSH32(esp, 0x36184170u); /* 0x361498E6: push 0x36184170 */ 15613 eax = ebp + (-0xB4); /* 0x361498EB: lea eax, [ebp - 0xb4] */ 15614 PUSH32(esp, eax); /* 0x361498F1: push eax */ 15615 RECOMP_ICALL(0x3615FD70u); /* 0x361498F2: call 0x3615fd70 */ /* not lifted */ 15616 RECOMP_FLAGS_IN(); 15617 L_361498F7: 15618 ecx = MEM32(ebp + (-0xC)); /* 0x361498F7: mov ecx, dword ptr [ebp - 0xc] */ 15619 edi = POP32_VAL(esp); /* 0x361498FA: pop edi */ 15620 eax = esi; /* 0x361498FB: mov eax, esi */ 15621 esi = POP32_VAL(esp); /* 0x361498FD: pop esi */ 15622 ebx = POP32_VAL(esp); /* 0x361498FE: pop ebx */ 15623 MEM32(FS_BASE + (0)) = ecx; /* 0x361498FF: mov dword ptr fs:[0], ecx */ 15624 esp = ebp; /* 0x36149906: mov esp, ebp */ 15625 ebp = POP32_VAL(esp); /* 0x36149908: pop ebp */ 15626 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149909: ret */ 15627 RECOMP_REGS_OUT(); 15628 } 15629 15630 void sub_3614967D(void) { 15631 int _fpu_cmp = 0; 15632 uint32_t _cf = 0; 15633 int _df = 1; 15634 uint32_t _flag_k = FK_NONE; 15635 uint32_t _flag_a = 0, _flag_b = 0; 15636 uint32_t _itail_tgt = 0; 15637 RECOMP_REGS_LOCALS 15638 RECOMP_ENTER(0x3614967Du); 15639 15640 goto L_3614967D; 15641 L_361494CA: 15642 ecx = ebp + (-0x84); /* 0x361494CA: lea ecx, [ebp - 0x84] */ 15643 RECOMP_ICALL(0x3602F750u); /* 0x361494D0: call 0x3602f750 */ /* not lifted */ 15644 RECOMP_FLAGS_IN(); 15645 ecx = MEM32(ebp + 0x8); /* 0x361494D5: mov ecx, dword ptr [ebp + 8] */ 15646 eax = ebp + (-0x84); /* 0x361494D8: lea eax, [ebp - 0x84] */ 15647 PUSH32(esp, eax); /* 0x361494DE: push eax */ 15648 PUSH32(esp, ecx); /* 0x361494DF: push ecx */ 15649 MEM32(ebp + (-0x4)) = 0; /* 0x361494E0: mov dword ptr [ebp - 4], 0 */ 15650 RECOMP_ICALL(0x3602F810u); /* 0x361494E7: call 0x3602f810 */ /* not lifted */ 15651 RECOMP_FLAGS_IN(); 15652 esi = MEM32(ebx + 0x50); /* 0x361494EC: mov esi, dword ptr [ebx + 0x50] */ 15653 ecx = MEM32(esi + 0x8); /* 0x361494EF: mov ecx, dword ptr [esi + 8] */ 15654 edx = MEM32(esi + 0xC); /* 0x361494F2: mov edx, dword ptr [esi + 0xc] */ 15655 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 15656 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15657 edx = edx - ecx; /* 0x361494F5: sub edx, ecx */ 15658 _flag_k = FK_CMP; 15659 eax = 0x66666667u; /* 0x361494F7: mov eax, 0x66666667 */ 15660 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361494FC: imul edx */ 15661 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 15662 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 15663 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361494FE: sar edx, 3 */ 15664 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15665 edx = (uint32_t)((int32_t)edx >> 3u); 15666 eax = edx; /* 0x36149501: mov eax, edx */ 15667 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149503: shr eax, 0x1f */ 15668 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15669 eax = eax >> 31u; /* 0x36149503: shr eax, 0x1f */ 15670 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 15671 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15672 edx = edx + eax; /* 0x36149506: add edx, eax */ 15673 _flag_k = FK_ADD; 15674 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 15675 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15676 esp = esp + 8; /* 0x36149508: add esp, 8 */ 15677 _flag_k = FK_ADD; 15678 /* cmp edx, 1 */ /* 0x3614950B: cmp edx, 1 */ 15679 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 15680 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15681 _flag_k = FK_CMP; 15682 edi = ecx; /* 0x3614950E: mov edi, ecx */ 15683 if (CMP_AE(_flag_a, _flag_b)) goto L_361495E2; /* 0x36149510: jae 0x361495e2 */ 15684 L_36149516: 15685 eax = MEM32(esi + 0x4); /* 0x36149516: mov eax, dword ptr [esi + 4] */ 15686 /* test eax, eax */ /* 0x36149519: test eax, eax */ 15687 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15688 _cf = 0; 15689 _flag_k = FK_TEST; 15690 if (TEST_Z(_flag_a, _flag_b)) goto L_36149541; /* 0x3614951B: je 0x36149541 */ 15691 L_3614951D: 15692 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 15693 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15694 ecx = ecx - eax; /* 0x3614951D: sub ecx, eax */ 15695 _flag_k = FK_CMP; 15696 eax = 0x66666667u; /* 0x3614951F: mov eax, 0x66666667 */ 15697 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149524: imul ecx */ 15698 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 15699 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 15700 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149526: sar edx, 3 */ 15701 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15702 edx = (uint32_t)((int32_t)edx >> 3u); 15703 ecx = edx; /* 0x36149529: mov ecx, edx */ 15704 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614952B: shr ecx, 0x1f */ 15705 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15706 ecx = ecx >> 31u; /* 0x3614952B: shr ecx, 0x1f */ 15707 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 15708 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15709 edx = edx + ecx; /* 0x3614952E: add edx, ecx */ 15710 _flag_k = FK_ADD; 15711 /* cmp edx, 1 */ /* 0x36149530: cmp edx, 1 */ 15712 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 15713 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15714 _flag_k = FK_CMP; 15715 if (CMP_BE(_flag_a, _flag_b)) goto L_36149541; /* 0x36149533: jbe 0x36149541 */ 15716 L_36149535: 15717 ecx = esi; /* 0x36149535: mov ecx, esi */ 15718 RECOMP_ICALL(0x36149DC0u); /* 0x36149537: call 0x36149dc0 */ /* not lifted */ 15719 RECOMP_FLAGS_IN(); 15720 MEM32(ebp + (-0x14)) = eax; /* 0x3614953C: mov dword ptr [ebp - 0x14], eax */ 15721 goto L_36149548; /* 0x3614953F: jmp 0x36149548 */ 15722 L_36149541: 15723 MEM32(ebp + (-0x14)) = 1; /* 0x36149541: mov dword ptr [ebp - 0x14], 1 */ 15724 L_36149548: 15725 ecx = esi; /* 0x36149548: mov ecx, esi */ 15726 RECOMP_ICALL(0x36149DC0u); /* 0x3614954A: call 0x36149dc0 */ /* not lifted */ 15727 RECOMP_FLAGS_IN(); 15728 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 15729 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15730 eax = eax + MEM32(ebp + (-0x14)); /* 0x3614954F: add eax, dword ptr [ebp - 0x14] */ 15731 _flag_k = FK_ADD; 15732 MEM32(ebp + (-0x2C)) = eax; /* 0x36149552: mov dword ptr [ebp - 0x2c], eax */ 15733 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149559; /* 0x36149555: jns 0x36149559 */ 15734 L_36149557: 15735 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15736 eax = 0; /* 0x36149557: xor eax, eax */ 15737 _cf = 0; 15738 _flag_k = FK_TEST; 15739 L_36149559: 15740 edx = eax + eax * 4; /* 0x36149559: lea edx, [eax + eax*4] */ 15741 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614955C: shl edx, 2 */ 15742 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15743 edx = edx << 2u; /* 0x3614955C: shl edx, 2 */ 15744 PUSH32(esp, edx); /* 0x3614955F: push edx */ 15745 RECOMP_ICALL(0x3615FD6Au); /* 0x36149560: call 0x3615fd6a */ /* not lifted */ 15746 RECOMP_FLAGS_IN(); 15747 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15748 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15749 esp = esp + 4; /* 0x36149565: add esp, 4 */ 15750 _flag_k = FK_ADD; 15751 PUSH32(esp, eax); /* 0x36149568: push eax */ 15752 MEM32(ebp + (-0x14)) = eax; /* 0x36149569: mov dword ptr [ebp - 0x14], eax */ 15753 eax = MEM32(esi + 0x4); /* 0x3614956C: mov eax, dword ptr [esi + 4] */ 15754 PUSH32(esp, edi); /* 0x3614956F: push edi */ 15755 PUSH32(esp, eax); /* 0x36149570: push eax */ 15756 ecx = esi; /* 0x36149571: mov ecx, esi */ 15757 RECOMP_ICALL(0x36149E20u); /* 0x36149573: call 0x36149e20 */ /* not lifted */ 15758 RECOMP_FLAGS_IN(); 15759 ecx = ebp + (-0x84); /* 0x36149578: lea ecx, [ebp - 0x84] */ 15760 PUSH32(esp, ecx); /* 0x3614957E: push ecx */ 15761 PUSH32(esp, 1); /* 0x3614957F: push 1 */ 15762 PUSH32(esp, eax); /* 0x36149581: push eax */ 15763 ecx = esi; /* 0x36149582: mov ecx, esi */ 15764 MEM32(ebp + (-0x18)) = eax; /* 0x36149584: mov dword ptr [ebp - 0x18], eax */ 15765 RECOMP_ICALL(0x3614A190u); /* 0x36149587: call 0x3614a190 */ /* not lifted */ 15766 RECOMP_FLAGS_IN(); 15767 edx = MEM32(ebp + (-0x18)); /* 0x3614958C: mov edx, dword ptr [ebp - 0x18] */ 15768 eax = MEM32(esi + 0x8); /* 0x3614958F: mov eax, dword ptr [esi + 8] */ 15769 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u); 15770 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15771 edx = edx + 0x14u; /* 0x36149592: add edx, 0x14 */ 15772 _flag_k = FK_ADD; 15773 PUSH32(esp, edx); /* 0x36149595: push edx */ 15774 PUSH32(esp, eax); /* 0x36149596: push eax */ 15775 PUSH32(esp, edi); /* 0x36149597: push edi */ 15776 ecx = esi; /* 0x36149598: mov ecx, esi */ 15777 RECOMP_ICALL(0x36149E20u); /* 0x3614959A: call 0x36149e20 */ /* not lifted */ 15778 RECOMP_FLAGS_IN(); 15779 ecx = MEM32(esi + 0x8); /* 0x3614959F: mov ecx, dword ptr [esi + 8] */ 15780 edx = MEM32(esi + 0x4); /* 0x361495A2: mov edx, dword ptr [esi + 4] */ 15781 PUSH32(esp, ecx); /* 0x361495A5: push ecx */ 15782 PUSH32(esp, edx); /* 0x361495A6: push edx */ 15783 ecx = esi; /* 0x361495A7: mov ecx, esi */ 15784 RECOMP_ICALL(0x36149DF0u); /* 0x361495A9: call 0x36149df0 */ /* not lifted */ 15785 RECOMP_FLAGS_IN(); 15786 eax = MEM32(esi + 0x4); /* 0x361495AE: mov eax, dword ptr [esi + 4] */ 15787 PUSH32(esp, eax); /* 0x361495B1: push eax */ 15788 RECOMP_ICALL(0x3615FCC4u); /* 0x361495B2: call 0x3615fcc4 */ /* not lifted */ 15789 RECOMP_FLAGS_IN(); 15790 eax = MEM32(ebp + (-0x2C)); /* 0x361495B7: mov eax, dword ptr [ebp - 0x2c] */ 15791 edi = MEM32(ebp + (-0x14)); /* 0x361495BA: mov edi, dword ptr [ebp - 0x14] */ 15792 eax = eax + eax * 4; /* 0x361495BD: lea eax, [eax + eax*4] */ 15793 ecx = edi + eax * 4; /* 0x361495C0: lea ecx, [edi + eax*4] */ 15794 MEM32(esi + 0xC) = ecx; /* 0x361495C3: mov dword ptr [esi + 0xc], ecx */ 15795 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15796 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15797 esp = esp + 4; /* 0x361495C6: add esp, 4 */ 15798 _flag_k = FK_ADD; 15799 ecx = esi; /* 0x361495C9: mov ecx, esi */ 15800 RECOMP_ICALL(0x36149DC0u); /* 0x361495CB: call 0x36149dc0 */ /* not lifted */ 15801 RECOMP_FLAGS_IN(); 15802 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15803 eax = eax + 1; /* 0x361495D0: inc eax */ 15804 _flag_k = FK_INC; 15805 edx = eax + eax * 4; /* 0x361495D1: lea edx, [eax + eax*4] */ 15806 eax = edi + edx * 4; /* 0x361495D4: lea eax, [edi + edx*4] */ 15807 MEM32(esi + 0x8) = eax; /* 0x361495D7: mov dword ptr [esi + 8], eax */ 15808 MEM32(esi + 0x4) = edi; /* 0x361495DA: mov dword ptr [esi + 4], edi */ 15809 goto L_36149681; /* 0x361495DD: jmp 0x36149681 */ 15810 L_361495E2: 15811 edx = ecx; /* 0x361495E2: mov edx, ecx */ 15812 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 15813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15814 edx = edx - edi; /* 0x361495E4: sub edx, edi */ 15815 _flag_k = FK_CMP; 15816 eax = 0x66666667u; /* 0x361495E6: mov eax, 0x66666667 */ 15817 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361495EB: imul edx */ 15818 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 15819 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 15820 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361495ED: sar edx, 3 */ 15821 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15822 edx = (uint32_t)((int32_t)edx >> 3u); 15823 eax = edx; /* 0x361495F0: mov eax, edx */ 15824 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361495F2: shr eax, 0x1f */ 15825 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15826 eax = eax >> 31u; /* 0x361495F2: shr eax, 0x1f */ 15827 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 15828 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15829 edx = edx + eax; /* 0x361495F5: add edx, eax */ 15830 _flag_k = FK_ADD; 15831 /* cmp edx, 1 */ /* 0x361495F7: cmp edx, 1 */ 15832 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 15833 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15834 _flag_k = FK_CMP; 15835 if (CMP_AE(_flag_a, _flag_b)) goto L_3614964E; /* 0x361495FA: jae 0x3614964e */ 15836 L_361495FC: 15837 edx = edi + 0x14; /* 0x361495FC: lea edx, [edi + 0x14] */ 15838 PUSH32(esp, edx); /* 0x361495FF: push edx */ 15839 PUSH32(esp, ecx); /* 0x36149600: push ecx */ 15840 PUSH32(esp, edi); /* 0x36149601: push edi */ 15841 ecx = esi; /* 0x36149602: mov ecx, esi */ 15842 RECOMP_ICALL(0x36149E20u); /* 0x36149604: call 0x36149e20 */ /* not lifted */ 15843 RECOMP_FLAGS_IN(); 15844 ecx = MEM32(esi + 0x8); /* 0x36149609: mov ecx, dword ptr [esi + 8] */ 15845 eax = ebp + (-0x84); /* 0x3614960C: lea eax, [ebp - 0x84] */ 15846 PUSH32(esp, eax); /* 0x36149612: push eax */ 15847 edx = ecx; /* 0x36149613: mov edx, ecx */ 15848 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 15849 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15850 edx = edx - edi; /* 0x36149615: sub edx, edi */ 15851 _flag_k = FK_CMP; 15852 eax = 0x66666667u; /* 0x36149617: mov eax, 0x66666667 */ 15853 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3614961C: imul edx */ 15854 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 15855 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 15856 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3614961E: sar edx, 3 */ 15857 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15858 edx = (uint32_t)((int32_t)edx >> 3u); 15859 eax = edx; /* 0x36149621: mov eax, edx */ 15860 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149623: shr eax, 0x1f */ 15861 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15862 eax = eax >> 31u; /* 0x36149623: shr eax, 0x1f */ 15863 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 15864 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15865 edx = edx + eax; /* 0x36149626: add edx, eax */ 15866 _flag_k = FK_ADD; 15867 eax = 1; /* 0x36149628: mov eax, 1 */ 15868 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 15869 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15870 eax = eax - edx; /* 0x3614962D: sub eax, edx */ 15871 _flag_k = FK_CMP; 15872 PUSH32(esp, eax); /* 0x3614962F: push eax */ 15873 PUSH32(esp, ecx); /* 0x36149630: push ecx */ 15874 ecx = esi; /* 0x36149631: mov ecx, esi */ 15875 RECOMP_ICALL(0x3614A190u); /* 0x36149633: call 0x3614a190 */ /* not lifted */ 15876 RECOMP_FLAGS_IN(); 15877 edx = MEM32(esi + 0x8); /* 0x36149638: mov edx, dword ptr [esi + 8] */ 15878 ecx = ebp + (-0x84); /* 0x3614963B: lea ecx, [ebp - 0x84] */ 15879 PUSH32(esp, ecx); /* 0x36149641: push ecx */ 15880 PUSH32(esp, edx); /* 0x36149642: push edx */ 15881 PUSH32(esp, edi); /* 0x36149643: push edi */ 15882 RECOMP_ICALL(0x3614A2A0u); /* 0x36149644: call 0x3614a2a0 */ /* not lifted */ 15883 RECOMP_FLAGS_IN(); 15884 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 15885 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15886 esp = esp + 0xCu; /* 0x36149649: add esp, 0xc */ 15887 _flag_k = FK_ADD; 15888 goto L_3614967D; /* 0x3614964C: jmp 0x3614967d */ 15889 L_3614964E: 15890 PUSH32(esp, ecx); /* 0x3614964E: push ecx */ 15891 PUSH32(esp, ecx); /* 0x3614964F: push ecx */ 15892 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu); 15893 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15894 ecx = ecx + 0xFFFFFFECu; /* 0x36149650: add ecx, -0x14 */ 15895 _flag_k = FK_ADD; 15896 PUSH32(esp, ecx); /* 0x36149653: push ecx */ 15897 ecx = esi; /* 0x36149654: mov ecx, esi */ 15898 RECOMP_ICALL(0x36149E20u); /* 0x36149656: call 0x36149e20 */ /* not lifted */ 15899 RECOMP_FLAGS_IN(); 15900 eax = MEM32(esi + 0x8); /* 0x3614965B: mov eax, dword ptr [esi + 8] */ 15901 PUSH32(esp, eax); /* 0x3614965E: push eax */ 15902 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu); 15903 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15904 eax = eax + 0xFFFFFFECu; /* 0x3614965F: add eax, -0x14 */ 15905 _flag_k = FK_ADD; 15906 PUSH32(esp, eax); /* 0x36149662: push eax */ 15907 PUSH32(esp, edi); /* 0x36149663: push edi */ 15908 RECOMP_ICALL(0x3614A2D0u); /* 0x36149664: call 0x3614a2d0 */ /* not lifted */ 15909 RECOMP_FLAGS_IN(); 15910 eax = ebp + (-0x84); /* 0x36149669: lea eax, [ebp - 0x84] */ 15911 PUSH32(esp, eax); /* 0x3614966F: push eax */ 15912 ecx = edi + 0x14; /* 0x36149670: lea ecx, [edi + 0x14] */ 15913 PUSH32(esp, ecx); /* 0x36149673: push ecx */ 15914 PUSH32(esp, edi); /* 0x36149674: push edi */ 15915 RECOMP_ICALL(0x3614A2A0u); /* 0x36149675: call 0x3614a2a0 */ /* not lifted */ 15916 RECOMP_FLAGS_IN(); 15917 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 15918 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15919 esp = esp + 0x18u; /* 0x3614967A: add esp, 0x18 */ 15920 _flag_k = FK_ADD; 15921 L_3614967D: 15922 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x14u); 15923 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15924 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x14u; /* 0x3614967D: add dword ptr [esi + 8], 0x14 */ 15925 _flag_k = FK_ADD; 15926 L_36149681: 15927 ecx = ebp + (-0x84); /* 0x36149681: lea ecx, [ebp - 0x84] */ 15928 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149687: mov dword ptr [ebp - 4], 0xffffffff */ 15929 RECOMP_ICALL(0x3602F7D0u); /* 0x3614968E: call 0x3602f7d0 */ /* not lifted */ 15930 RECOMP_FLAGS_IN(); 15931 eax = MEM32(ebp + (-0x10)); /* 0x36149693: mov eax, dword ptr [ebp - 0x10] */ 15932 edx = MEM32(ebp + (-0x4C)); /* 0x36149696: mov edx, dword ptr [ebp - 0x4c] */ 15933 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15934 eax = eax + 1; /* 0x36149699: inc eax */ 15935 _flag_k = FK_INC; 15936 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 15937 edx = edx & 0xFFu; /* 0x3614969A: and edx, 0xff */ 15938 _cf = 0; 15939 _flag_k = FK_TEST; 15940 /* cmp eax, edx */ /* 0x361496A0: cmp eax, edx */ 15941 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 15942 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15943 _flag_k = FK_CMP; 15944 MEM32(ebp + (-0x10)) = eax; /* 0x361496A2: mov dword ptr [ebp - 0x10], eax */ 15945 RECOMP_BACKEDGE(); 15946 if (CMP_L(_flag_a, _flag_b)) goto L_361494CA; /* 0x361496A5: jl 0x361494ca */ 15947 L_361496AB: 15948 SET_LO8(eax, MEM8(ebp + (-0x50))); /* 0x361496AB: mov al, byte ptr [ebp - 0x50] */ 15949 /* test LO8(eax), LO8(eax) */ /* 0x361496AE: test al, al */ 15950 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 15951 _cf = 0; 15952 _flag_k = FK_NARROW(FK_TEST, 24); 15953 MEM32(ebp + (-0x14)) = 0; /* 0x361496B0: mov dword ptr [ebp - 0x14], 0 */ 15954 if (TEST_Z(_flag_a, _flag_b)) goto L_361498AA; /* 0x361496B7: jbe 0x361498aa */ 15955 L_361496BD: 15956 ecx = ebp + (-0xAC); /* 0x361496BD: lea ecx, [ebp - 0xac] */ 15957 RECOMP_ICALL(0x3602F870u); /* 0x361496C3: call 0x3602f870 */ /* not lifted */ 15958 RECOMP_FLAGS_IN(); 15959 ecx = MEM32(ebp + 0x8); /* 0x361496C8: mov ecx, dword ptr [ebp + 8] */ 15960 eax = ebp + (-0xAC); /* 0x361496CB: lea eax, [ebp - 0xac] */ 15961 PUSH32(esp, eax); /* 0x361496D1: push eax */ 15962 PUSH32(esp, ecx); /* 0x361496D2: push ecx */ 15963 MEM32(ebp + (-0x4)) = 1; /* 0x361496D3: mov dword ptr [ebp - 4], 1 */ 15964 RECOMP_ICALL(0x3602F9B0u); /* 0x361496DA: call 0x3602f9b0 */ /* not lifted */ 15965 RECOMP_FLAGS_IN(); 15966 esi = MEM32(ebx + 0x54); /* 0x361496DF: mov esi, dword ptr [ebx + 0x54] */ 15967 ecx = MEM32(esi + 0x8); /* 0x361496E2: mov ecx, dword ptr [esi + 8] */ 15968 edx = MEM32(esi + 0xC); /* 0x361496E5: mov edx, dword ptr [esi + 0xc] */ 15969 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 15970 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15971 edx = edx - ecx; /* 0x361496E8: sub edx, ecx */ 15972 _flag_k = FK_CMP; 15973 MEM32(ebp + (-0x18)) = edx; /* 0x361496EA: mov dword ptr [ebp - 0x18], edx */ 15974 eax = 0x88888889u; /* 0x361496ED: mov eax, 0x88888889 */ 15975 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361496F2: imul edx */ 15976 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 15977 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 15978 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 15979 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15980 edx = edx + MEM32(ebp + (-0x18)); /* 0x361496F4: add edx, dword ptr [ebp - 0x18] */ 15981 _flag_k = FK_ADD; 15982 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361496F7: sar edx, 5 */ 15983 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15984 edx = (uint32_t)((int32_t)edx >> 5u); 15985 eax = edx; /* 0x361496FA: mov eax, edx */ 15986 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361496FC: shr eax, 0x1f */ 15987 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15988 eax = eax >> 31u; /* 0x361496FC: shr eax, 0x1f */ 15989 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 15990 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15991 edx = edx + eax; /* 0x361496FF: add edx, eax */ 15992 _flag_k = FK_ADD; 15993 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 15994 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15995 esp = esp + 8; /* 0x36149701: add esp, 8 */ 15996 _flag_k = FK_ADD; 15997 /* cmp edx, 1 */ /* 0x36149704: cmp edx, 1 */ 15998 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 15999 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16000 _flag_k = FK_CMP; 16001 edi = ecx; /* 0x36149707: mov edi, ecx */ 16002 if (CMP_AE(_flag_a, _flag_b)) goto L_361497D8; /* 0x36149709: jae 0x361497d8 */ 16003 L_3614970F: 16004 eax = MEM32(esi + 0x4); /* 0x3614970F: mov eax, dword ptr [esi + 4] */ 16005 /* test eax, eax */ /* 0x36149712: test eax, eax */ 16006 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16007 _cf = 0; 16008 _flag_k = FK_TEST; 16009 if (TEST_Z(_flag_a, _flag_b)) goto L_36149732; /* 0x36149714: je 0x36149732 */ 16010 L_36149716: 16011 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 16012 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16013 ecx = ecx - eax; /* 0x36149716: sub ecx, eax */ 16014 _flag_k = FK_CMP; 16015 eax = 0x88888889u; /* 0x36149718: mov eax, 0x88888889 */ 16016 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3614971D: imul ecx */ 16017 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 16018 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 16019 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 16020 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16021 edx = edx + ecx; /* 0x3614971F: add edx, ecx */ 16022 _flag_k = FK_ADD; 16023 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36149721: sar edx, 5 */ 16024 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16025 edx = (uint32_t)((int32_t)edx >> 5u); 16026 ecx = edx; /* 0x36149724: mov ecx, edx */ 16027 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36149726: shr ecx, 0x1f */ 16028 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16029 ecx = ecx >> 31u; /* 0x36149726: shr ecx, 0x1f */ 16030 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 16031 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16032 edx = edx + ecx; /* 0x36149729: add edx, ecx */ 16033 _flag_k = FK_ADD; 16034 /* cmp edx, 1 */ /* 0x3614972B: cmp edx, 1 */ 16035 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 16036 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16037 _flag_k = FK_CMP; 16038 ebx = edx; /* 0x3614972E: mov ebx, edx */ 16039 if (CMP_A(_flag_a, _flag_b)) goto L_36149737; /* 0x36149730: ja 0x36149737 */ 16040 L_36149732: 16041 ebx = 1; /* 0x36149732: mov ebx, 1 */ 16042 L_36149737: 16043 ecx = esi; /* 0x36149737: mov ecx, esi */ 16044 RECOMP_ICALL(0x36149E90u); /* 0x36149739: call 0x36149e90 */ /* not lifted */ 16045 RECOMP_FLAGS_IN(); 16046 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 16047 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16048 eax = eax + ebx; /* 0x3614973E: add eax, ebx */ 16049 _flag_k = FK_ADD; 16050 MEM32(ebp + (-0x2C)) = eax; /* 0x36149740: mov dword ptr [ebp - 0x2c], eax */ 16051 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149747; /* 0x36149743: jns 0x36149747 */ 16052 L_36149745: 16053 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16054 eax = 0; /* 0x36149745: xor eax, eax */ 16055 _cf = 0; 16056 _flag_k = FK_TEST; 16057 L_36149747: 16058 eax = eax + eax * 2; /* 0x36149747: lea eax, [eax + eax*2] */ 16059 edx = eax + eax * 4; /* 0x3614974A: lea edx, [eax + eax*4] */ 16060 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614974D: shl edx, 2 */ 16061 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16062 edx = edx << 2u; /* 0x3614974D: shl edx, 2 */ 16063 PUSH32(esp, edx); /* 0x36149750: push edx */ 16064 RECOMP_ICALL(0x3615FD6Au); /* 0x36149751: call 0x3615fd6a */ /* not lifted */ 16065 RECOMP_FLAGS_IN(); 16066 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16067 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16068 esp = esp + 4; /* 0x36149756: add esp, 4 */ 16069 _flag_k = FK_ADD; 16070 ebx = eax; /* 0x36149759: mov ebx, eax */ 16071 eax = MEM32(esi + 0x4); /* 0x3614975B: mov eax, dword ptr [esi + 4] */ 16072 PUSH32(esp, ebx); /* 0x3614975E: push ebx */ 16073 PUSH32(esp, edi); /* 0x3614975F: push edi */ 16074 PUSH32(esp, eax); /* 0x36149760: push eax */ 16075 ecx = esi; /* 0x36149761: mov ecx, esi */ 16076 RECOMP_ICALL(0x36149EF0u); /* 0x36149763: call 0x36149ef0 */ /* not lifted */ 16077 RECOMP_FLAGS_IN(); 16078 ecx = ebp + (-0xAC); /* 0x36149768: lea ecx, [ebp - 0xac] */ 16079 PUSH32(esp, ecx); /* 0x3614976E: push ecx */ 16080 PUSH32(esp, 1); /* 0x3614976F: push 1 */ 16081 PUSH32(esp, eax); /* 0x36149771: push eax */ 16082 ecx = esi; /* 0x36149772: mov ecx, esi */ 16083 MEM32(ebp + (-0x18)) = eax; /* 0x36149774: mov dword ptr [ebp - 0x18], eax */ 16084 RECOMP_ICALL(0x3614A1C0u); /* 0x36149777: call 0x3614a1c0 */ /* not lifted */ 16085 RECOMP_FLAGS_IN(); 16086 edx = MEM32(ebp + (-0x18)); /* 0x3614977C: mov edx, dword ptr [ebp - 0x18] */ 16087 eax = MEM32(esi + 0x8); /* 0x3614977F: mov eax, dword ptr [esi + 8] */ 16088 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x3Cu); 16089 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16090 edx = edx + 0x3Cu; /* 0x36149782: add edx, 0x3c */ 16091 _flag_k = FK_ADD; 16092 PUSH32(esp, edx); /* 0x36149785: push edx */ 16093 PUSH32(esp, eax); /* 0x36149786: push eax */ 16094 PUSH32(esp, edi); /* 0x36149787: push edi */ 16095 ecx = esi; /* 0x36149788: mov ecx, esi */ 16096 RECOMP_ICALL(0x36149EF0u); /* 0x3614978A: call 0x36149ef0 */ /* not lifted */ 16097 RECOMP_FLAGS_IN(); 16098 ecx = MEM32(esi + 0x8); /* 0x3614978F: mov ecx, dword ptr [esi + 8] */ 16099 edx = MEM32(esi + 0x4); /* 0x36149792: mov edx, dword ptr [esi + 4] */ 16100 PUSH32(esp, ecx); /* 0x36149795: push ecx */ 16101 PUSH32(esp, edx); /* 0x36149796: push edx */ 16102 ecx = esi; /* 0x36149797: mov ecx, esi */ 16103 RECOMP_ICALL(0x36149EC0u); /* 0x36149799: call 0x36149ec0 */ /* not lifted */ 16104 RECOMP_FLAGS_IN(); 16105 eax = MEM32(esi + 0x4); /* 0x3614979E: mov eax, dword ptr [esi + 4] */ 16106 PUSH32(esp, eax); /* 0x361497A1: push eax */ 16107 RECOMP_ICALL(0x3615FCC4u); /* 0x361497A2: call 0x3615fcc4 */ /* not lifted */ 16108 RECOMP_FLAGS_IN(); 16109 eax = MEM32(ebp + (-0x2C)); /* 0x361497A7: mov eax, dword ptr [ebp - 0x2c] */ 16110 eax = eax + eax * 2; /* 0x361497AA: lea eax, [eax + eax*2] */ 16111 eax = eax + eax * 4; /* 0x361497AD: lea eax, [eax + eax*4] */ 16112 ecx = ebx + eax * 4; /* 0x361497B0: lea ecx, [ebx + eax*4] */ 16113 MEM32(esi + 0xC) = ecx; /* 0x361497B3: mov dword ptr [esi + 0xc], ecx */ 16114 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16115 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16116 esp = esp + 4; /* 0x361497B6: add esp, 4 */ 16117 _flag_k = FK_ADD; 16118 ecx = esi; /* 0x361497B9: mov ecx, esi */ 16119 RECOMP_ICALL(0x36149E90u); /* 0x361497BB: call 0x36149e90 */ /* not lifted */ 16120 RECOMP_FLAGS_IN(); 16121 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 16122 eax = eax + 1; /* 0x361497C0: inc eax */ 16123 _flag_k = FK_INC; 16124 eax = eax + eax * 2; /* 0x361497C1: lea eax, [eax + eax*2] */ 16125 edx = eax + eax * 4; /* 0x361497C4: lea edx, [eax + eax*4] */ 16126 eax = ebx + edx * 4; /* 0x361497C7: lea eax, [ebx + edx*4] */ 16127 MEM32(esi + 0x4) = ebx; /* 0x361497CA: mov dword ptr [esi + 4], ebx */ 16128 ebx = MEM32(ebp + 0xC); /* 0x361497CD: mov ebx, dword ptr [ebp + 0xc] */ 16129 MEM32(esi + 0x8) = eax; /* 0x361497D0: mov dword ptr [esi + 8], eax */ 16130 goto L_36149880; /* 0x361497D3: jmp 0x36149880 */ 16131 L_361497D8: 16132 edx = ecx; /* 0x361497D8: mov edx, ecx */ 16133 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 16134 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16135 edx = edx - edi; /* 0x361497DA: sub edx, edi */ 16136 _flag_k = FK_CMP; 16137 MEM32(ebp + (-0x18)) = edx; /* 0x361497DC: mov dword ptr [ebp - 0x18], edx */ 16138 eax = 0x88888889u; /* 0x361497DF: mov eax, 0x88888889 */ 16139 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361497E4: imul edx */ 16140 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 16141 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 16142 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 16143 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16144 edx = edx + MEM32(ebp + (-0x18)); /* 0x361497E6: add edx, dword ptr [ebp - 0x18] */ 16145 _flag_k = FK_ADD; 16146 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361497E9: sar edx, 5 */ 16147 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16148 edx = (uint32_t)((int32_t)edx >> 5u); 16149 eax = edx; /* 0x361497EC: mov eax, edx */ 16150 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361497EE: shr eax, 0x1f */ 16151 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16152 eax = eax >> 31u; /* 0x361497EE: shr eax, 0x1f */ 16153 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 16154 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16155 edx = edx + eax; /* 0x361497F1: add edx, eax */ 16156 _flag_k = FK_ADD; 16157 /* cmp edx, 1 */ /* 0x361497F3: cmp edx, 1 */ 16158 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 16159 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16160 _flag_k = FK_CMP; 16161 if (CMP_AE(_flag_a, _flag_b)) goto L_3614984D; /* 0x361497F6: jae 0x3614984d */ 16162 L_361497F8: 16163 edx = edi + 0x3C; /* 0x361497F8: lea edx, [edi + 0x3c] */ 16164 PUSH32(esp, edx); /* 0x361497FB: push edx */ 16165 PUSH32(esp, ecx); /* 0x361497FC: push ecx */ 16166 PUSH32(esp, edi); /* 0x361497FD: push edi */ 16167 ecx = esi; /* 0x361497FE: mov ecx, esi */ 16168 RECOMP_ICALL(0x36149EF0u); /* 0x36149800: call 0x36149ef0 */ /* not lifted */ 16169 RECOMP_FLAGS_IN(); 16170 ecx = MEM32(esi + 0x8); /* 0x36149805: mov ecx, dword ptr [esi + 8] */ 16171 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 16172 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16173 ecx = ecx - edi; /* 0x36149808: sub ecx, edi */ 16174 _flag_k = FK_CMP; 16175 eax = ebp + (-0xAC); /* 0x3614980A: lea eax, [ebp - 0xac] */ 16176 PUSH32(esp, eax); /* 0x36149810: push eax */ 16177 eax = 0x88888889u; /* 0x36149811: mov eax, 0x88888889 */ 16178 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149816: imul ecx */ 16179 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 16180 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 16181 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 16182 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16183 edx = edx + ecx; /* 0x36149818: add edx, ecx */ 16184 _flag_k = FK_ADD; 16185 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x3614981A: sar edx, 5 */ 16186 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16187 edx = (uint32_t)((int32_t)edx >> 5u); 16188 ecx = edx; /* 0x3614981D: mov ecx, edx */ 16189 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614981F: shr ecx, 0x1f */ 16190 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16191 ecx = ecx >> 31u; /* 0x3614981F: shr ecx, 0x1f */ 16192 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 16193 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16194 edx = edx + ecx; /* 0x36149822: add edx, ecx */ 16195 _flag_k = FK_ADD; 16196 eax = 1; /* 0x36149824: mov eax, 1 */ 16197 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 16198 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16199 eax = eax - edx; /* 0x36149829: sub eax, edx */ 16200 _flag_k = FK_CMP; 16201 PUSH32(esp, eax); /* 0x3614982B: push eax */ 16202 eax = MEM32(esi + 0x8); /* 0x3614982C: mov eax, dword ptr [esi + 8] */ 16203 PUSH32(esp, eax); /* 0x3614982F: push eax */ 16204 ecx = esi; /* 0x36149830: mov ecx, esi */ 16205 RECOMP_ICALL(0x3614A1C0u); /* 0x36149832: call 0x3614a1c0 */ /* not lifted */ 16206 RECOMP_FLAGS_IN(); 16207 edx = MEM32(esi + 0x8); /* 0x36149837: mov edx, dword ptr [esi + 8] */ 16208 ecx = ebp + (-0xAC); /* 0x3614983A: lea ecx, [ebp - 0xac] */ 16209 PUSH32(esp, ecx); /* 0x36149840: push ecx */ 16210 PUSH32(esp, edx); /* 0x36149841: push edx */ 16211 PUSH32(esp, edi); /* 0x36149842: push edi */ 16212 RECOMP_ICALL(0x3614A360u); /* 0x36149843: call 0x3614a360 */ /* not lifted */ 16213 RECOMP_FLAGS_IN(); 16214 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 16215 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16216 esp = esp + 0xCu; /* 0x36149848: add esp, 0xc */ 16217 _flag_k = FK_ADD; 16218 goto L_3614987C; /* 0x3614984B: jmp 0x3614987c */ 16219 L_3614984D: 16220 PUSH32(esp, ecx); /* 0x3614984D: push ecx */ 16221 PUSH32(esp, ecx); /* 0x3614984E: push ecx */ 16222 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC4u); 16223 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16224 ecx = ecx + 0xFFFFFFC4u; /* 0x3614984F: add ecx, -0x3c */ 16225 _flag_k = FK_ADD; 16226 PUSH32(esp, ecx); /* 0x36149852: push ecx */ 16227 ecx = esi; /* 0x36149853: mov ecx, esi */ 16228 RECOMP_ICALL(0x36149EF0u); /* 0x36149855: call 0x36149ef0 */ /* not lifted */ 16229 RECOMP_FLAGS_IN(); 16230 eax = MEM32(esi + 0x8); /* 0x3614985A: mov eax, dword ptr [esi + 8] */ 16231 PUSH32(esp, eax); /* 0x3614985D: push eax */ 16232 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFC4u); 16233 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16234 eax = eax + 0xFFFFFFC4u; /* 0x3614985E: add eax, -0x3c */ 16235 _flag_k = FK_ADD; 16236 PUSH32(esp, eax); /* 0x36149861: push eax */ 16237 PUSH32(esp, edi); /* 0x36149862: push edi */ 16238 RECOMP_ICALL(0x3614A390u); /* 0x36149863: call 0x3614a390 */ /* not lifted */ 16239 RECOMP_FLAGS_IN(); 16240 eax = ebp + (-0xAC); /* 0x36149868: lea eax, [ebp - 0xac] */ 16241 PUSH32(esp, eax); /* 0x3614986E: push eax */ 16242 ecx = edi + 0x3C; /* 0x3614986F: lea ecx, [edi + 0x3c] */ 16243 PUSH32(esp, ecx); /* 0x36149872: push ecx */ 16244 PUSH32(esp, edi); /* 0x36149873: push edi */ 16245 RECOMP_ICALL(0x3614A360u); /* 0x36149874: call 0x3614a360 */ /* not lifted */ 16246 RECOMP_FLAGS_IN(); 16247 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 16248 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16249 esp = esp + 0x18u; /* 0x36149879: add esp, 0x18 */ 16250 _flag_k = FK_ADD; 16251 L_3614987C: 16252 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x3Cu); 16253 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16254 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x3Cu; /* 0x3614987C: add dword ptr [esi + 8], 0x3c */ 16255 _flag_k = FK_ADD; 16256 L_36149880: 16257 ecx = ebp + (-0xAC); /* 0x36149880: lea ecx, [ebp - 0xac] */ 16258 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149886: mov dword ptr [ebp - 4], 0xffffffff */ 16259 RECOMP_ICALL(0x3602F940u); /* 0x3614988D: call 0x3602f940 */ /* not lifted */ 16260 RECOMP_FLAGS_IN(); 16261 eax = MEM32(ebp + (-0x14)); /* 0x36149892: mov eax, dword ptr [ebp - 0x14] */ 16262 edx = MEM32(ebp + (-0x50)); /* 0x36149895: mov edx, dword ptr [ebp - 0x50] */ 16263 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 16264 eax = eax + 1; /* 0x36149898: inc eax */ 16265 _flag_k = FK_INC; 16266 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 16267 edx = edx & 0xFFu; /* 0x36149899: and edx, 0xff */ 16268 _cf = 0; 16269 _flag_k = FK_TEST; 16270 /* cmp eax, edx */ /* 0x3614989F: cmp eax, edx */ 16271 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 16272 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16273 _flag_k = FK_CMP; 16274 MEM32(ebp + (-0x14)) = eax; /* 0x361498A1: mov dword ptr [ebp - 0x14], eax */ 16275 RECOMP_BACKEDGE(); 16276 if (CMP_L(_flag_a, _flag_b)) goto L_361496BD; /* 0x361498A4: jl 0x361496bd */ 16277 L_361498AA: 16278 esi = MEM32(ebp + 0x8); /* 0x361498AA: mov esi, dword ptr [ebp + 8] */ 16279 ecx = esi; /* 0x361498AD: mov ecx, esi */ 16280 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361498AF: call dword ptr [0x3616fadc] */ 16281 RECOMP_FLAGS_IN(); 16282 /* test eax, eax */ /* 0x361498B5: test eax, eax */ 16283 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16284 _cf = 0; 16285 _flag_k = FK_TEST; 16286 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498F7; /* 0x361498B7: jne 0x361498f7 */ 16287 L_361498B9: 16288 ebx = MEM32(ebx); /* 0x361498B9: mov ebx, dword ptr [ebx] */ 16289 eax = MEM32(ebx + 0x4); /* 0x361498BB: mov eax, dword ptr [ebx + 4] */ 16290 /* test eax, eax */ /* 0x361498BE: test eax, eax */ 16291 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16292 _cf = 0; 16293 _flag_k = FK_TEST; 16294 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498C7; /* 0x361498C0: jne 0x361498c7 */ 16295 L_361498C2: 16296 eax = MEM32(0x3616F10C); /* 0x361498C2: mov eax, dword ptr [0x3616f10c] */ 16297 L_361498C7: 16298 PUSH32(esp, eax); /* 0x361498C7: push eax */ 16299 PUSH32(esp, 0x362E75FCu); /* 0x361498C8: push 0x362e75fc */ 16300 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361498CD: call dword ptr [0x3616f18c] */ 16301 RECOMP_FLAGS_IN(); 16302 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 16303 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16304 esp = esp + 8; /* 0x361498D3: add esp, 8 */ 16305 _flag_k = FK_ADD; 16306 PUSH32(esp, 0x362E75CCu); /* 0x361498D6: push 0x362e75cc */ 16307 ecx = ebp + (-0xB4); /* 0x361498DB: lea ecx, [ebp - 0xb4] */ 16308 RECOMP_ICALL(0x36008EF0u); /* 0x361498E1: call 0x36008ef0 */ /* not lifted */ 16309 RECOMP_FLAGS_IN(); 16310 PUSH32(esp, 0x36184170u); /* 0x361498E6: push 0x36184170 */ 16311 eax = ebp + (-0xB4); /* 0x361498EB: lea eax, [ebp - 0xb4] */ 16312 PUSH32(esp, eax); /* 0x361498F1: push eax */ 16313 RECOMP_ICALL(0x3615FD70u); /* 0x361498F2: call 0x3615fd70 */ /* not lifted */ 16314 RECOMP_FLAGS_IN(); 16315 L_361498F7: 16316 ecx = MEM32(ebp + (-0xC)); /* 0x361498F7: mov ecx, dword ptr [ebp - 0xc] */ 16317 edi = POP32_VAL(esp); /* 0x361498FA: pop edi */ 16318 eax = esi; /* 0x361498FB: mov eax, esi */ 16319 esi = POP32_VAL(esp); /* 0x361498FD: pop esi */ 16320 ebx = POP32_VAL(esp); /* 0x361498FE: pop ebx */ 16321 MEM32(FS_BASE + (0)) = ecx; /* 0x361498FF: mov dword ptr fs:[0], ecx */ 16322 esp = ebp; /* 0x36149906: mov esp, ebp */ 16323 ebp = POP32_VAL(esp); /* 0x36149908: pop ebp */ 16324 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149909: ret */ 16325 RECOMP_REGS_OUT(); 16326 } 16327 16328 void sub_36149681(void) { 16329 int _fpu_cmp = 0; 16330 uint32_t _cf = 0; 16331 int _df = 1; 16332 uint32_t _flag_k = FK_NONE; 16333 uint32_t _flag_a = 0, _flag_b = 0; 16334 uint32_t _itail_tgt = 0; 16335 RECOMP_REGS_LOCALS 16336 RECOMP_ENTER(0x36149681u); 16337 16338 goto L_36149681; 16339 L_361494CA: 16340 ecx = ebp + (-0x84); /* 0x361494CA: lea ecx, [ebp - 0x84] */ 16341 RECOMP_ICALL(0x3602F750u); /* 0x361494D0: call 0x3602f750 */ /* not lifted */ 16342 RECOMP_FLAGS_IN(); 16343 ecx = MEM32(ebp + 0x8); /* 0x361494D5: mov ecx, dword ptr [ebp + 8] */ 16344 eax = ebp + (-0x84); /* 0x361494D8: lea eax, [ebp - 0x84] */ 16345 PUSH32(esp, eax); /* 0x361494DE: push eax */ 16346 PUSH32(esp, ecx); /* 0x361494DF: push ecx */ 16347 MEM32(ebp + (-0x4)) = 0; /* 0x361494E0: mov dword ptr [ebp - 4], 0 */ 16348 RECOMP_ICALL(0x3602F810u); /* 0x361494E7: call 0x3602f810 */ /* not lifted */ 16349 RECOMP_FLAGS_IN(); 16350 esi = MEM32(ebx + 0x50); /* 0x361494EC: mov esi, dword ptr [ebx + 0x50] */ 16351 ecx = MEM32(esi + 0x8); /* 0x361494EF: mov ecx, dword ptr [esi + 8] */ 16352 edx = MEM32(esi + 0xC); /* 0x361494F2: mov edx, dword ptr [esi + 0xc] */ 16353 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 16354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16355 edx = edx - ecx; /* 0x361494F5: sub edx, ecx */ 16356 _flag_k = FK_CMP; 16357 eax = 0x66666667u; /* 0x361494F7: mov eax, 0x66666667 */ 16358 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361494FC: imul edx */ 16359 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 16360 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 16361 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361494FE: sar edx, 3 */ 16362 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16363 edx = (uint32_t)((int32_t)edx >> 3u); 16364 eax = edx; /* 0x36149501: mov eax, edx */ 16365 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149503: shr eax, 0x1f */ 16366 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16367 eax = eax >> 31u; /* 0x36149503: shr eax, 0x1f */ 16368 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 16369 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16370 edx = edx + eax; /* 0x36149506: add edx, eax */ 16371 _flag_k = FK_ADD; 16372 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 16373 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16374 esp = esp + 8; /* 0x36149508: add esp, 8 */ 16375 _flag_k = FK_ADD; 16376 /* cmp edx, 1 */ /* 0x3614950B: cmp edx, 1 */ 16377 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 16378 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16379 _flag_k = FK_CMP; 16380 edi = ecx; /* 0x3614950E: mov edi, ecx */ 16381 if (CMP_AE(_flag_a, _flag_b)) goto L_361495E2; /* 0x36149510: jae 0x361495e2 */ 16382 L_36149516: 16383 eax = MEM32(esi + 0x4); /* 0x36149516: mov eax, dword ptr [esi + 4] */ 16384 /* test eax, eax */ /* 0x36149519: test eax, eax */ 16385 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16386 _cf = 0; 16387 _flag_k = FK_TEST; 16388 if (TEST_Z(_flag_a, _flag_b)) goto L_36149541; /* 0x3614951B: je 0x36149541 */ 16389 L_3614951D: 16390 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 16391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16392 ecx = ecx - eax; /* 0x3614951D: sub ecx, eax */ 16393 _flag_k = FK_CMP; 16394 eax = 0x66666667u; /* 0x3614951F: mov eax, 0x66666667 */ 16395 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149524: imul ecx */ 16396 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 16397 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 16398 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149526: sar edx, 3 */ 16399 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16400 edx = (uint32_t)((int32_t)edx >> 3u); 16401 ecx = edx; /* 0x36149529: mov ecx, edx */ 16402 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614952B: shr ecx, 0x1f */ 16403 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16404 ecx = ecx >> 31u; /* 0x3614952B: shr ecx, 0x1f */ 16405 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 16406 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16407 edx = edx + ecx; /* 0x3614952E: add edx, ecx */ 16408 _flag_k = FK_ADD; 16409 /* cmp edx, 1 */ /* 0x36149530: cmp edx, 1 */ 16410 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 16411 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16412 _flag_k = FK_CMP; 16413 if (CMP_BE(_flag_a, _flag_b)) goto L_36149541; /* 0x36149533: jbe 0x36149541 */ 16414 L_36149535: 16415 ecx = esi; /* 0x36149535: mov ecx, esi */ 16416 RECOMP_ICALL(0x36149DC0u); /* 0x36149537: call 0x36149dc0 */ /* not lifted */ 16417 RECOMP_FLAGS_IN(); 16418 MEM32(ebp + (-0x14)) = eax; /* 0x3614953C: mov dword ptr [ebp - 0x14], eax */ 16419 goto L_36149548; /* 0x3614953F: jmp 0x36149548 */ 16420 L_36149541: 16421 MEM32(ebp + (-0x14)) = 1; /* 0x36149541: mov dword ptr [ebp - 0x14], 1 */ 16422 L_36149548: 16423 ecx = esi; /* 0x36149548: mov ecx, esi */ 16424 RECOMP_ICALL(0x36149DC0u); /* 0x3614954A: call 0x36149dc0 */ /* not lifted */ 16425 RECOMP_FLAGS_IN(); 16426 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 16427 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16428 eax = eax + MEM32(ebp + (-0x14)); /* 0x3614954F: add eax, dword ptr [ebp - 0x14] */ 16429 _flag_k = FK_ADD; 16430 MEM32(ebp + (-0x2C)) = eax; /* 0x36149552: mov dword ptr [ebp - 0x2c], eax */ 16431 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149559; /* 0x36149555: jns 0x36149559 */ 16432 L_36149557: 16433 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16434 eax = 0; /* 0x36149557: xor eax, eax */ 16435 _cf = 0; 16436 _flag_k = FK_TEST; 16437 L_36149559: 16438 edx = eax + eax * 4; /* 0x36149559: lea edx, [eax + eax*4] */ 16439 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614955C: shl edx, 2 */ 16440 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16441 edx = edx << 2u; /* 0x3614955C: shl edx, 2 */ 16442 PUSH32(esp, edx); /* 0x3614955F: push edx */ 16443 RECOMP_ICALL(0x3615FD6Au); /* 0x36149560: call 0x3615fd6a */ /* not lifted */ 16444 RECOMP_FLAGS_IN(); 16445 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16446 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16447 esp = esp + 4; /* 0x36149565: add esp, 4 */ 16448 _flag_k = FK_ADD; 16449 PUSH32(esp, eax); /* 0x36149568: push eax */ 16450 MEM32(ebp + (-0x14)) = eax; /* 0x36149569: mov dword ptr [ebp - 0x14], eax */ 16451 eax = MEM32(esi + 0x4); /* 0x3614956C: mov eax, dword ptr [esi + 4] */ 16452 PUSH32(esp, edi); /* 0x3614956F: push edi */ 16453 PUSH32(esp, eax); /* 0x36149570: push eax */ 16454 ecx = esi; /* 0x36149571: mov ecx, esi */ 16455 RECOMP_ICALL(0x36149E20u); /* 0x36149573: call 0x36149e20 */ /* not lifted */ 16456 RECOMP_FLAGS_IN(); 16457 ecx = ebp + (-0x84); /* 0x36149578: lea ecx, [ebp - 0x84] */ 16458 PUSH32(esp, ecx); /* 0x3614957E: push ecx */ 16459 PUSH32(esp, 1); /* 0x3614957F: push 1 */ 16460 PUSH32(esp, eax); /* 0x36149581: push eax */ 16461 ecx = esi; /* 0x36149582: mov ecx, esi */ 16462 MEM32(ebp + (-0x18)) = eax; /* 0x36149584: mov dword ptr [ebp - 0x18], eax */ 16463 RECOMP_ICALL(0x3614A190u); /* 0x36149587: call 0x3614a190 */ /* not lifted */ 16464 RECOMP_FLAGS_IN(); 16465 edx = MEM32(ebp + (-0x18)); /* 0x3614958C: mov edx, dword ptr [ebp - 0x18] */ 16466 eax = MEM32(esi + 0x8); /* 0x3614958F: mov eax, dword ptr [esi + 8] */ 16467 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u); 16468 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16469 edx = edx + 0x14u; /* 0x36149592: add edx, 0x14 */ 16470 _flag_k = FK_ADD; 16471 PUSH32(esp, edx); /* 0x36149595: push edx */ 16472 PUSH32(esp, eax); /* 0x36149596: push eax */ 16473 PUSH32(esp, edi); /* 0x36149597: push edi */ 16474 ecx = esi; /* 0x36149598: mov ecx, esi */ 16475 RECOMP_ICALL(0x36149E20u); /* 0x3614959A: call 0x36149e20 */ /* not lifted */ 16476 RECOMP_FLAGS_IN(); 16477 ecx = MEM32(esi + 0x8); /* 0x3614959F: mov ecx, dword ptr [esi + 8] */ 16478 edx = MEM32(esi + 0x4); /* 0x361495A2: mov edx, dword ptr [esi + 4] */ 16479 PUSH32(esp, ecx); /* 0x361495A5: push ecx */ 16480 PUSH32(esp, edx); /* 0x361495A6: push edx */ 16481 ecx = esi; /* 0x361495A7: mov ecx, esi */ 16482 RECOMP_ICALL(0x36149DF0u); /* 0x361495A9: call 0x36149df0 */ /* not lifted */ 16483 RECOMP_FLAGS_IN(); 16484 eax = MEM32(esi + 0x4); /* 0x361495AE: mov eax, dword ptr [esi + 4] */ 16485 PUSH32(esp, eax); /* 0x361495B1: push eax */ 16486 RECOMP_ICALL(0x3615FCC4u); /* 0x361495B2: call 0x3615fcc4 */ /* not lifted */ 16487 RECOMP_FLAGS_IN(); 16488 eax = MEM32(ebp + (-0x2C)); /* 0x361495B7: mov eax, dword ptr [ebp - 0x2c] */ 16489 edi = MEM32(ebp + (-0x14)); /* 0x361495BA: mov edi, dword ptr [ebp - 0x14] */ 16490 eax = eax + eax * 4; /* 0x361495BD: lea eax, [eax + eax*4] */ 16491 ecx = edi + eax * 4; /* 0x361495C0: lea ecx, [edi + eax*4] */ 16492 MEM32(esi + 0xC) = ecx; /* 0x361495C3: mov dword ptr [esi + 0xc], ecx */ 16493 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16494 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16495 esp = esp + 4; /* 0x361495C6: add esp, 4 */ 16496 _flag_k = FK_ADD; 16497 ecx = esi; /* 0x361495C9: mov ecx, esi */ 16498 RECOMP_ICALL(0x36149DC0u); /* 0x361495CB: call 0x36149dc0 */ /* not lifted */ 16499 RECOMP_FLAGS_IN(); 16500 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 16501 eax = eax + 1; /* 0x361495D0: inc eax */ 16502 _flag_k = FK_INC; 16503 edx = eax + eax * 4; /* 0x361495D1: lea edx, [eax + eax*4] */ 16504 eax = edi + edx * 4; /* 0x361495D4: lea eax, [edi + edx*4] */ 16505 MEM32(esi + 0x8) = eax; /* 0x361495D7: mov dword ptr [esi + 8], eax */ 16506 MEM32(esi + 0x4) = edi; /* 0x361495DA: mov dword ptr [esi + 4], edi */ 16507 goto L_36149681; /* 0x361495DD: jmp 0x36149681 */ 16508 L_361495E2: 16509 edx = ecx; /* 0x361495E2: mov edx, ecx */ 16510 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 16511 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16512 edx = edx - edi; /* 0x361495E4: sub edx, edi */ 16513 _flag_k = FK_CMP; 16514 eax = 0x66666667u; /* 0x361495E6: mov eax, 0x66666667 */ 16515 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361495EB: imul edx */ 16516 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 16517 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 16518 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x361495ED: sar edx, 3 */ 16519 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16520 edx = (uint32_t)((int32_t)edx >> 3u); 16521 eax = edx; /* 0x361495F0: mov eax, edx */ 16522 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361495F2: shr eax, 0x1f */ 16523 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16524 eax = eax >> 31u; /* 0x361495F2: shr eax, 0x1f */ 16525 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 16526 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16527 edx = edx + eax; /* 0x361495F5: add edx, eax */ 16528 _flag_k = FK_ADD; 16529 /* cmp edx, 1 */ /* 0x361495F7: cmp edx, 1 */ 16530 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 16531 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16532 _flag_k = FK_CMP; 16533 if (CMP_AE(_flag_a, _flag_b)) goto L_3614964E; /* 0x361495FA: jae 0x3614964e */ 16534 L_361495FC: 16535 edx = edi + 0x14; /* 0x361495FC: lea edx, [edi + 0x14] */ 16536 PUSH32(esp, edx); /* 0x361495FF: push edx */ 16537 PUSH32(esp, ecx); /* 0x36149600: push ecx */ 16538 PUSH32(esp, edi); /* 0x36149601: push edi */ 16539 ecx = esi; /* 0x36149602: mov ecx, esi */ 16540 RECOMP_ICALL(0x36149E20u); /* 0x36149604: call 0x36149e20 */ /* not lifted */ 16541 RECOMP_FLAGS_IN(); 16542 ecx = MEM32(esi + 0x8); /* 0x36149609: mov ecx, dword ptr [esi + 8] */ 16543 eax = ebp + (-0x84); /* 0x3614960C: lea eax, [ebp - 0x84] */ 16544 PUSH32(esp, eax); /* 0x36149612: push eax */ 16545 edx = ecx; /* 0x36149613: mov edx, ecx */ 16546 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 16547 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16548 edx = edx - edi; /* 0x36149615: sub edx, edi */ 16549 _flag_k = FK_CMP; 16550 eax = 0x66666667u; /* 0x36149617: mov eax, 0x66666667 */ 16551 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3614961C: imul edx */ 16552 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 16553 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 16554 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3614961E: sar edx, 3 */ 16555 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16556 edx = (uint32_t)((int32_t)edx >> 3u); 16557 eax = edx; /* 0x36149621: mov eax, edx */ 16558 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149623: shr eax, 0x1f */ 16559 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16560 eax = eax >> 31u; /* 0x36149623: shr eax, 0x1f */ 16561 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 16562 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16563 edx = edx + eax; /* 0x36149626: add edx, eax */ 16564 _flag_k = FK_ADD; 16565 eax = 1; /* 0x36149628: mov eax, 1 */ 16566 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 16567 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16568 eax = eax - edx; /* 0x3614962D: sub eax, edx */ 16569 _flag_k = FK_CMP; 16570 PUSH32(esp, eax); /* 0x3614962F: push eax */ 16571 PUSH32(esp, ecx); /* 0x36149630: push ecx */ 16572 ecx = esi; /* 0x36149631: mov ecx, esi */ 16573 RECOMP_ICALL(0x3614A190u); /* 0x36149633: call 0x3614a190 */ /* not lifted */ 16574 RECOMP_FLAGS_IN(); 16575 edx = MEM32(esi + 0x8); /* 0x36149638: mov edx, dword ptr [esi + 8] */ 16576 ecx = ebp + (-0x84); /* 0x3614963B: lea ecx, [ebp - 0x84] */ 16577 PUSH32(esp, ecx); /* 0x36149641: push ecx */ 16578 PUSH32(esp, edx); /* 0x36149642: push edx */ 16579 PUSH32(esp, edi); /* 0x36149643: push edi */ 16580 RECOMP_ICALL(0x3614A2A0u); /* 0x36149644: call 0x3614a2a0 */ /* not lifted */ 16581 RECOMP_FLAGS_IN(); 16582 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 16583 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16584 esp = esp + 0xCu; /* 0x36149649: add esp, 0xc */ 16585 _flag_k = FK_ADD; 16586 goto L_3614967D; /* 0x3614964C: jmp 0x3614967d */ 16587 L_3614964E: 16588 PUSH32(esp, ecx); /* 0x3614964E: push ecx */ 16589 PUSH32(esp, ecx); /* 0x3614964F: push ecx */ 16590 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu); 16591 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16592 ecx = ecx + 0xFFFFFFECu; /* 0x36149650: add ecx, -0x14 */ 16593 _flag_k = FK_ADD; 16594 PUSH32(esp, ecx); /* 0x36149653: push ecx */ 16595 ecx = esi; /* 0x36149654: mov ecx, esi */ 16596 RECOMP_ICALL(0x36149E20u); /* 0x36149656: call 0x36149e20 */ /* not lifted */ 16597 RECOMP_FLAGS_IN(); 16598 eax = MEM32(esi + 0x8); /* 0x3614965B: mov eax, dword ptr [esi + 8] */ 16599 PUSH32(esp, eax); /* 0x3614965E: push eax */ 16600 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFECu); 16601 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16602 eax = eax + 0xFFFFFFECu; /* 0x3614965F: add eax, -0x14 */ 16603 _flag_k = FK_ADD; 16604 PUSH32(esp, eax); /* 0x36149662: push eax */ 16605 PUSH32(esp, edi); /* 0x36149663: push edi */ 16606 RECOMP_ICALL(0x3614A2D0u); /* 0x36149664: call 0x3614a2d0 */ /* not lifted */ 16607 RECOMP_FLAGS_IN(); 16608 eax = ebp + (-0x84); /* 0x36149669: lea eax, [ebp - 0x84] */ 16609 PUSH32(esp, eax); /* 0x3614966F: push eax */ 16610 ecx = edi + 0x14; /* 0x36149670: lea ecx, [edi + 0x14] */ 16611 PUSH32(esp, ecx); /* 0x36149673: push ecx */ 16612 PUSH32(esp, edi); /* 0x36149674: push edi */ 16613 RECOMP_ICALL(0x3614A2A0u); /* 0x36149675: call 0x3614a2a0 */ /* not lifted */ 16614 RECOMP_FLAGS_IN(); 16615 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 16616 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16617 esp = esp + 0x18u; /* 0x3614967A: add esp, 0x18 */ 16618 _flag_k = FK_ADD; 16619 L_3614967D: 16620 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x14u); 16621 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16622 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x14u; /* 0x3614967D: add dword ptr [esi + 8], 0x14 */ 16623 _flag_k = FK_ADD; 16624 L_36149681: 16625 ecx = ebp + (-0x84); /* 0x36149681: lea ecx, [ebp - 0x84] */ 16626 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149687: mov dword ptr [ebp - 4], 0xffffffff */ 16627 RECOMP_ICALL(0x3602F7D0u); /* 0x3614968E: call 0x3602f7d0 */ /* not lifted */ 16628 RECOMP_FLAGS_IN(); 16629 eax = MEM32(ebp + (-0x10)); /* 0x36149693: mov eax, dword ptr [ebp - 0x10] */ 16630 edx = MEM32(ebp + (-0x4C)); /* 0x36149696: mov edx, dword ptr [ebp - 0x4c] */ 16631 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 16632 eax = eax + 1; /* 0x36149699: inc eax */ 16633 _flag_k = FK_INC; 16634 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 16635 edx = edx & 0xFFu; /* 0x3614969A: and edx, 0xff */ 16636 _cf = 0; 16637 _flag_k = FK_TEST; 16638 /* cmp eax, edx */ /* 0x361496A0: cmp eax, edx */ 16639 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 16640 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16641 _flag_k = FK_CMP; 16642 MEM32(ebp + (-0x10)) = eax; /* 0x361496A2: mov dword ptr [ebp - 0x10], eax */ 16643 RECOMP_BACKEDGE(); 16644 if (CMP_L(_flag_a, _flag_b)) goto L_361494CA; /* 0x361496A5: jl 0x361494ca */ 16645 L_361496AB: 16646 SET_LO8(eax, MEM8(ebp + (-0x50))); /* 0x361496AB: mov al, byte ptr [ebp - 0x50] */ 16647 /* test LO8(eax), LO8(eax) */ /* 0x361496AE: test al, al */ 16648 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 16649 _cf = 0; 16650 _flag_k = FK_NARROW(FK_TEST, 24); 16651 MEM32(ebp + (-0x14)) = 0; /* 0x361496B0: mov dword ptr [ebp - 0x14], 0 */ 16652 if (TEST_Z(_flag_a, _flag_b)) goto L_361498AA; /* 0x361496B7: jbe 0x361498aa */ 16653 L_361496BD: 16654 ecx = ebp + (-0xAC); /* 0x361496BD: lea ecx, [ebp - 0xac] */ 16655 RECOMP_ICALL(0x3602F870u); /* 0x361496C3: call 0x3602f870 */ /* not lifted */ 16656 RECOMP_FLAGS_IN(); 16657 ecx = MEM32(ebp + 0x8); /* 0x361496C8: mov ecx, dword ptr [ebp + 8] */ 16658 eax = ebp + (-0xAC); /* 0x361496CB: lea eax, [ebp - 0xac] */ 16659 PUSH32(esp, eax); /* 0x361496D1: push eax */ 16660 PUSH32(esp, ecx); /* 0x361496D2: push ecx */ 16661 MEM32(ebp + (-0x4)) = 1; /* 0x361496D3: mov dword ptr [ebp - 4], 1 */ 16662 RECOMP_ICALL(0x3602F9B0u); /* 0x361496DA: call 0x3602f9b0 */ /* not lifted */ 16663 RECOMP_FLAGS_IN(); 16664 esi = MEM32(ebx + 0x54); /* 0x361496DF: mov esi, dword ptr [ebx + 0x54] */ 16665 ecx = MEM32(esi + 0x8); /* 0x361496E2: mov ecx, dword ptr [esi + 8] */ 16666 edx = MEM32(esi + 0xC); /* 0x361496E5: mov edx, dword ptr [esi + 0xc] */ 16667 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 16668 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16669 edx = edx - ecx; /* 0x361496E8: sub edx, ecx */ 16670 _flag_k = FK_CMP; 16671 MEM32(ebp + (-0x18)) = edx; /* 0x361496EA: mov dword ptr [ebp - 0x18], edx */ 16672 eax = 0x88888889u; /* 0x361496ED: mov eax, 0x88888889 */ 16673 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361496F2: imul edx */ 16674 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 16675 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 16676 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 16677 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16678 edx = edx + MEM32(ebp + (-0x18)); /* 0x361496F4: add edx, dword ptr [ebp - 0x18] */ 16679 _flag_k = FK_ADD; 16680 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361496F7: sar edx, 5 */ 16681 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16682 edx = (uint32_t)((int32_t)edx >> 5u); 16683 eax = edx; /* 0x361496FA: mov eax, edx */ 16684 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361496FC: shr eax, 0x1f */ 16685 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16686 eax = eax >> 31u; /* 0x361496FC: shr eax, 0x1f */ 16687 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 16688 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16689 edx = edx + eax; /* 0x361496FF: add edx, eax */ 16690 _flag_k = FK_ADD; 16691 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 16692 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16693 esp = esp + 8; /* 0x36149701: add esp, 8 */ 16694 _flag_k = FK_ADD; 16695 /* cmp edx, 1 */ /* 0x36149704: cmp edx, 1 */ 16696 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 16697 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16698 _flag_k = FK_CMP; 16699 edi = ecx; /* 0x36149707: mov edi, ecx */ 16700 if (CMP_AE(_flag_a, _flag_b)) goto L_361497D8; /* 0x36149709: jae 0x361497d8 */ 16701 L_3614970F: 16702 eax = MEM32(esi + 0x4); /* 0x3614970F: mov eax, dword ptr [esi + 4] */ 16703 /* test eax, eax */ /* 0x36149712: test eax, eax */ 16704 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16705 _cf = 0; 16706 _flag_k = FK_TEST; 16707 if (TEST_Z(_flag_a, _flag_b)) goto L_36149732; /* 0x36149714: je 0x36149732 */ 16708 L_36149716: 16709 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 16710 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16711 ecx = ecx - eax; /* 0x36149716: sub ecx, eax */ 16712 _flag_k = FK_CMP; 16713 eax = 0x88888889u; /* 0x36149718: mov eax, 0x88888889 */ 16714 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3614971D: imul ecx */ 16715 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 16716 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 16717 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 16718 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16719 edx = edx + ecx; /* 0x3614971F: add edx, ecx */ 16720 _flag_k = FK_ADD; 16721 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36149721: sar edx, 5 */ 16722 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16723 edx = (uint32_t)((int32_t)edx >> 5u); 16724 ecx = edx; /* 0x36149724: mov ecx, edx */ 16725 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36149726: shr ecx, 0x1f */ 16726 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16727 ecx = ecx >> 31u; /* 0x36149726: shr ecx, 0x1f */ 16728 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 16729 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16730 edx = edx + ecx; /* 0x36149729: add edx, ecx */ 16731 _flag_k = FK_ADD; 16732 /* cmp edx, 1 */ /* 0x3614972B: cmp edx, 1 */ 16733 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 16734 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16735 _flag_k = FK_CMP; 16736 ebx = edx; /* 0x3614972E: mov ebx, edx */ 16737 if (CMP_A(_flag_a, _flag_b)) goto L_36149737; /* 0x36149730: ja 0x36149737 */ 16738 L_36149732: 16739 ebx = 1; /* 0x36149732: mov ebx, 1 */ 16740 L_36149737: 16741 ecx = esi; /* 0x36149737: mov ecx, esi */ 16742 RECOMP_ICALL(0x36149E90u); /* 0x36149739: call 0x36149e90 */ /* not lifted */ 16743 RECOMP_FLAGS_IN(); 16744 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 16745 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16746 eax = eax + ebx; /* 0x3614973E: add eax, ebx */ 16747 _flag_k = FK_ADD; 16748 MEM32(ebp + (-0x2C)) = eax; /* 0x36149740: mov dword ptr [ebp - 0x2c], eax */ 16749 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149747; /* 0x36149743: jns 0x36149747 */ 16750 L_36149745: 16751 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16752 eax = 0; /* 0x36149745: xor eax, eax */ 16753 _cf = 0; 16754 _flag_k = FK_TEST; 16755 L_36149747: 16756 eax = eax + eax * 2; /* 0x36149747: lea eax, [eax + eax*2] */ 16757 edx = eax + eax * 4; /* 0x3614974A: lea edx, [eax + eax*4] */ 16758 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614974D: shl edx, 2 */ 16759 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16760 edx = edx << 2u; /* 0x3614974D: shl edx, 2 */ 16761 PUSH32(esp, edx); /* 0x36149750: push edx */ 16762 RECOMP_ICALL(0x3615FD6Au); /* 0x36149751: call 0x3615fd6a */ /* not lifted */ 16763 RECOMP_FLAGS_IN(); 16764 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16765 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16766 esp = esp + 4; /* 0x36149756: add esp, 4 */ 16767 _flag_k = FK_ADD; 16768 ebx = eax; /* 0x36149759: mov ebx, eax */ 16769 eax = MEM32(esi + 0x4); /* 0x3614975B: mov eax, dword ptr [esi + 4] */ 16770 PUSH32(esp, ebx); /* 0x3614975E: push ebx */ 16771 PUSH32(esp, edi); /* 0x3614975F: push edi */ 16772 PUSH32(esp, eax); /* 0x36149760: push eax */ 16773 ecx = esi; /* 0x36149761: mov ecx, esi */ 16774 RECOMP_ICALL(0x36149EF0u); /* 0x36149763: call 0x36149ef0 */ /* not lifted */ 16775 RECOMP_FLAGS_IN(); 16776 ecx = ebp + (-0xAC); /* 0x36149768: lea ecx, [ebp - 0xac] */ 16777 PUSH32(esp, ecx); /* 0x3614976E: push ecx */ 16778 PUSH32(esp, 1); /* 0x3614976F: push 1 */ 16779 PUSH32(esp, eax); /* 0x36149771: push eax */ 16780 ecx = esi; /* 0x36149772: mov ecx, esi */ 16781 MEM32(ebp + (-0x18)) = eax; /* 0x36149774: mov dword ptr [ebp - 0x18], eax */ 16782 RECOMP_ICALL(0x3614A1C0u); /* 0x36149777: call 0x3614a1c0 */ /* not lifted */ 16783 RECOMP_FLAGS_IN(); 16784 edx = MEM32(ebp + (-0x18)); /* 0x3614977C: mov edx, dword ptr [ebp - 0x18] */ 16785 eax = MEM32(esi + 0x8); /* 0x3614977F: mov eax, dword ptr [esi + 8] */ 16786 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x3Cu); 16787 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16788 edx = edx + 0x3Cu; /* 0x36149782: add edx, 0x3c */ 16789 _flag_k = FK_ADD; 16790 PUSH32(esp, edx); /* 0x36149785: push edx */ 16791 PUSH32(esp, eax); /* 0x36149786: push eax */ 16792 PUSH32(esp, edi); /* 0x36149787: push edi */ 16793 ecx = esi; /* 0x36149788: mov ecx, esi */ 16794 RECOMP_ICALL(0x36149EF0u); /* 0x3614978A: call 0x36149ef0 */ /* not lifted */ 16795 RECOMP_FLAGS_IN(); 16796 ecx = MEM32(esi + 0x8); /* 0x3614978F: mov ecx, dword ptr [esi + 8] */ 16797 edx = MEM32(esi + 0x4); /* 0x36149792: mov edx, dword ptr [esi + 4] */ 16798 PUSH32(esp, ecx); /* 0x36149795: push ecx */ 16799 PUSH32(esp, edx); /* 0x36149796: push edx */ 16800 ecx = esi; /* 0x36149797: mov ecx, esi */ 16801 RECOMP_ICALL(0x36149EC0u); /* 0x36149799: call 0x36149ec0 */ /* not lifted */ 16802 RECOMP_FLAGS_IN(); 16803 eax = MEM32(esi + 0x4); /* 0x3614979E: mov eax, dword ptr [esi + 4] */ 16804 PUSH32(esp, eax); /* 0x361497A1: push eax */ 16805 RECOMP_ICALL(0x3615FCC4u); /* 0x361497A2: call 0x3615fcc4 */ /* not lifted */ 16806 RECOMP_FLAGS_IN(); 16807 eax = MEM32(ebp + (-0x2C)); /* 0x361497A7: mov eax, dword ptr [ebp - 0x2c] */ 16808 eax = eax + eax * 2; /* 0x361497AA: lea eax, [eax + eax*2] */ 16809 eax = eax + eax * 4; /* 0x361497AD: lea eax, [eax + eax*4] */ 16810 ecx = ebx + eax * 4; /* 0x361497B0: lea ecx, [ebx + eax*4] */ 16811 MEM32(esi + 0xC) = ecx; /* 0x361497B3: mov dword ptr [esi + 0xc], ecx */ 16812 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16813 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16814 esp = esp + 4; /* 0x361497B6: add esp, 4 */ 16815 _flag_k = FK_ADD; 16816 ecx = esi; /* 0x361497B9: mov ecx, esi */ 16817 RECOMP_ICALL(0x36149E90u); /* 0x361497BB: call 0x36149e90 */ /* not lifted */ 16818 RECOMP_FLAGS_IN(); 16819 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 16820 eax = eax + 1; /* 0x361497C0: inc eax */ 16821 _flag_k = FK_INC; 16822 eax = eax + eax * 2; /* 0x361497C1: lea eax, [eax + eax*2] */ 16823 edx = eax + eax * 4; /* 0x361497C4: lea edx, [eax + eax*4] */ 16824 eax = ebx + edx * 4; /* 0x361497C7: lea eax, [ebx + edx*4] */ 16825 MEM32(esi + 0x4) = ebx; /* 0x361497CA: mov dword ptr [esi + 4], ebx */ 16826 ebx = MEM32(ebp + 0xC); /* 0x361497CD: mov ebx, dword ptr [ebp + 0xc] */ 16827 MEM32(esi + 0x8) = eax; /* 0x361497D0: mov dword ptr [esi + 8], eax */ 16828 goto L_36149880; /* 0x361497D3: jmp 0x36149880 */ 16829 L_361497D8: 16830 edx = ecx; /* 0x361497D8: mov edx, ecx */ 16831 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 16832 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16833 edx = edx - edi; /* 0x361497DA: sub edx, edi */ 16834 _flag_k = FK_CMP; 16835 MEM32(ebp + (-0x18)) = edx; /* 0x361497DC: mov dword ptr [ebp - 0x18], edx */ 16836 eax = 0x88888889u; /* 0x361497DF: mov eax, 0x88888889 */ 16837 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361497E4: imul edx */ 16838 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 16839 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 16840 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 16841 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16842 edx = edx + MEM32(ebp + (-0x18)); /* 0x361497E6: add edx, dword ptr [ebp - 0x18] */ 16843 _flag_k = FK_ADD; 16844 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361497E9: sar edx, 5 */ 16845 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16846 edx = (uint32_t)((int32_t)edx >> 5u); 16847 eax = edx; /* 0x361497EC: mov eax, edx */ 16848 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361497EE: shr eax, 0x1f */ 16849 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16850 eax = eax >> 31u; /* 0x361497EE: shr eax, 0x1f */ 16851 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 16852 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16853 edx = edx + eax; /* 0x361497F1: add edx, eax */ 16854 _flag_k = FK_ADD; 16855 /* cmp edx, 1 */ /* 0x361497F3: cmp edx, 1 */ 16856 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 16857 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16858 _flag_k = FK_CMP; 16859 if (CMP_AE(_flag_a, _flag_b)) goto L_3614984D; /* 0x361497F6: jae 0x3614984d */ 16860 L_361497F8: 16861 edx = edi + 0x3C; /* 0x361497F8: lea edx, [edi + 0x3c] */ 16862 PUSH32(esp, edx); /* 0x361497FB: push edx */ 16863 PUSH32(esp, ecx); /* 0x361497FC: push ecx */ 16864 PUSH32(esp, edi); /* 0x361497FD: push edi */ 16865 ecx = esi; /* 0x361497FE: mov ecx, esi */ 16866 RECOMP_ICALL(0x36149EF0u); /* 0x36149800: call 0x36149ef0 */ /* not lifted */ 16867 RECOMP_FLAGS_IN(); 16868 ecx = MEM32(esi + 0x8); /* 0x36149805: mov ecx, dword ptr [esi + 8] */ 16869 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 16870 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16871 ecx = ecx - edi; /* 0x36149808: sub ecx, edi */ 16872 _flag_k = FK_CMP; 16873 eax = ebp + (-0xAC); /* 0x3614980A: lea eax, [ebp - 0xac] */ 16874 PUSH32(esp, eax); /* 0x36149810: push eax */ 16875 eax = 0x88888889u; /* 0x36149811: mov eax, 0x88888889 */ 16876 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149816: imul ecx */ 16877 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 16878 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 16879 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 16880 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16881 edx = edx + ecx; /* 0x36149818: add edx, ecx */ 16882 _flag_k = FK_ADD; 16883 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x3614981A: sar edx, 5 */ 16884 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16885 edx = (uint32_t)((int32_t)edx >> 5u); 16886 ecx = edx; /* 0x3614981D: mov ecx, edx */ 16887 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614981F: shr ecx, 0x1f */ 16888 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16889 ecx = ecx >> 31u; /* 0x3614981F: shr ecx, 0x1f */ 16890 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 16891 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16892 edx = edx + ecx; /* 0x36149822: add edx, ecx */ 16893 _flag_k = FK_ADD; 16894 eax = 1; /* 0x36149824: mov eax, 1 */ 16895 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 16896 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16897 eax = eax - edx; /* 0x36149829: sub eax, edx */ 16898 _flag_k = FK_CMP; 16899 PUSH32(esp, eax); /* 0x3614982B: push eax */ 16900 eax = MEM32(esi + 0x8); /* 0x3614982C: mov eax, dword ptr [esi + 8] */ 16901 PUSH32(esp, eax); /* 0x3614982F: push eax */ 16902 ecx = esi; /* 0x36149830: mov ecx, esi */ 16903 RECOMP_ICALL(0x3614A1C0u); /* 0x36149832: call 0x3614a1c0 */ /* not lifted */ 16904 RECOMP_FLAGS_IN(); 16905 edx = MEM32(esi + 0x8); /* 0x36149837: mov edx, dword ptr [esi + 8] */ 16906 ecx = ebp + (-0xAC); /* 0x3614983A: lea ecx, [ebp - 0xac] */ 16907 PUSH32(esp, ecx); /* 0x36149840: push ecx */ 16908 PUSH32(esp, edx); /* 0x36149841: push edx */ 16909 PUSH32(esp, edi); /* 0x36149842: push edi */ 16910 RECOMP_ICALL(0x3614A360u); /* 0x36149843: call 0x3614a360 */ /* not lifted */ 16911 RECOMP_FLAGS_IN(); 16912 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 16913 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16914 esp = esp + 0xCu; /* 0x36149848: add esp, 0xc */ 16915 _flag_k = FK_ADD; 16916 goto L_3614987C; /* 0x3614984B: jmp 0x3614987c */ 16917 L_3614984D: 16918 PUSH32(esp, ecx); /* 0x3614984D: push ecx */ 16919 PUSH32(esp, ecx); /* 0x3614984E: push ecx */ 16920 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC4u); 16921 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16922 ecx = ecx + 0xFFFFFFC4u; /* 0x3614984F: add ecx, -0x3c */ 16923 _flag_k = FK_ADD; 16924 PUSH32(esp, ecx); /* 0x36149852: push ecx */ 16925 ecx = esi; /* 0x36149853: mov ecx, esi */ 16926 RECOMP_ICALL(0x36149EF0u); /* 0x36149855: call 0x36149ef0 */ /* not lifted */ 16927 RECOMP_FLAGS_IN(); 16928 eax = MEM32(esi + 0x8); /* 0x3614985A: mov eax, dword ptr [esi + 8] */ 16929 PUSH32(esp, eax); /* 0x3614985D: push eax */ 16930 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFC4u); 16931 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16932 eax = eax + 0xFFFFFFC4u; /* 0x3614985E: add eax, -0x3c */ 16933 _flag_k = FK_ADD; 16934 PUSH32(esp, eax); /* 0x36149861: push eax */ 16935 PUSH32(esp, edi); /* 0x36149862: push edi */ 16936 RECOMP_ICALL(0x3614A390u); /* 0x36149863: call 0x3614a390 */ /* not lifted */ 16937 RECOMP_FLAGS_IN(); 16938 eax = ebp + (-0xAC); /* 0x36149868: lea eax, [ebp - 0xac] */ 16939 PUSH32(esp, eax); /* 0x3614986E: push eax */ 16940 ecx = edi + 0x3C; /* 0x3614986F: lea ecx, [edi + 0x3c] */ 16941 PUSH32(esp, ecx); /* 0x36149872: push ecx */ 16942 PUSH32(esp, edi); /* 0x36149873: push edi */ 16943 RECOMP_ICALL(0x3614A360u); /* 0x36149874: call 0x3614a360 */ /* not lifted */ 16944 RECOMP_FLAGS_IN(); 16945 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 16946 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16947 esp = esp + 0x18u; /* 0x36149879: add esp, 0x18 */ 16948 _flag_k = FK_ADD; 16949 L_3614987C: 16950 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x3Cu); 16951 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16952 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x3Cu; /* 0x3614987C: add dword ptr [esi + 8], 0x3c */ 16953 _flag_k = FK_ADD; 16954 L_36149880: 16955 ecx = ebp + (-0xAC); /* 0x36149880: lea ecx, [ebp - 0xac] */ 16956 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149886: mov dword ptr [ebp - 4], 0xffffffff */ 16957 RECOMP_ICALL(0x3602F940u); /* 0x3614988D: call 0x3602f940 */ /* not lifted */ 16958 RECOMP_FLAGS_IN(); 16959 eax = MEM32(ebp + (-0x14)); /* 0x36149892: mov eax, dword ptr [ebp - 0x14] */ 16960 edx = MEM32(ebp + (-0x50)); /* 0x36149895: mov edx, dword ptr [ebp - 0x50] */ 16961 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 16962 eax = eax + 1; /* 0x36149898: inc eax */ 16963 _flag_k = FK_INC; 16964 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 16965 edx = edx & 0xFFu; /* 0x36149899: and edx, 0xff */ 16966 _cf = 0; 16967 _flag_k = FK_TEST; 16968 /* cmp eax, edx */ /* 0x3614989F: cmp eax, edx */ 16969 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 16970 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16971 _flag_k = FK_CMP; 16972 MEM32(ebp + (-0x14)) = eax; /* 0x361498A1: mov dword ptr [ebp - 0x14], eax */ 16973 RECOMP_BACKEDGE(); 16974 if (CMP_L(_flag_a, _flag_b)) goto L_361496BD; /* 0x361498A4: jl 0x361496bd */ 16975 L_361498AA: 16976 esi = MEM32(ebp + 0x8); /* 0x361498AA: mov esi, dword ptr [ebp + 8] */ 16977 ecx = esi; /* 0x361498AD: mov ecx, esi */ 16978 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361498AF: call dword ptr [0x3616fadc] */ 16979 RECOMP_FLAGS_IN(); 16980 /* test eax, eax */ /* 0x361498B5: test eax, eax */ 16981 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16982 _cf = 0; 16983 _flag_k = FK_TEST; 16984 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498F7; /* 0x361498B7: jne 0x361498f7 */ 16985 L_361498B9: 16986 ebx = MEM32(ebx); /* 0x361498B9: mov ebx, dword ptr [ebx] */ 16987 eax = MEM32(ebx + 0x4); /* 0x361498BB: mov eax, dword ptr [ebx + 4] */ 16988 /* test eax, eax */ /* 0x361498BE: test eax, eax */ 16989 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16990 _cf = 0; 16991 _flag_k = FK_TEST; 16992 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498C7; /* 0x361498C0: jne 0x361498c7 */ 16993 L_361498C2: 16994 eax = MEM32(0x3616F10C); /* 0x361498C2: mov eax, dword ptr [0x3616f10c] */ 16995 L_361498C7: 16996 PUSH32(esp, eax); /* 0x361498C7: push eax */ 16997 PUSH32(esp, 0x362E75FCu); /* 0x361498C8: push 0x362e75fc */ 16998 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361498CD: call dword ptr [0x3616f18c] */ 16999 RECOMP_FLAGS_IN(); 17000 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 17001 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17002 esp = esp + 8; /* 0x361498D3: add esp, 8 */ 17003 _flag_k = FK_ADD; 17004 PUSH32(esp, 0x362E75CCu); /* 0x361498D6: push 0x362e75cc */ 17005 ecx = ebp + (-0xB4); /* 0x361498DB: lea ecx, [ebp - 0xb4] */ 17006 RECOMP_ICALL(0x36008EF0u); /* 0x361498E1: call 0x36008ef0 */ /* not lifted */ 17007 RECOMP_FLAGS_IN(); 17008 PUSH32(esp, 0x36184170u); /* 0x361498E6: push 0x36184170 */ 17009 eax = ebp + (-0xB4); /* 0x361498EB: lea eax, [ebp - 0xb4] */ 17010 PUSH32(esp, eax); /* 0x361498F1: push eax */ 17011 RECOMP_ICALL(0x3615FD70u); /* 0x361498F2: call 0x3615fd70 */ /* not lifted */ 17012 RECOMP_FLAGS_IN(); 17013 L_361498F7: 17014 ecx = MEM32(ebp + (-0xC)); /* 0x361498F7: mov ecx, dword ptr [ebp - 0xc] */ 17015 edi = POP32_VAL(esp); /* 0x361498FA: pop edi */ 17016 eax = esi; /* 0x361498FB: mov eax, esi */ 17017 esi = POP32_VAL(esp); /* 0x361498FD: pop esi */ 17018 ebx = POP32_VAL(esp); /* 0x361498FE: pop ebx */ 17019 MEM32(FS_BASE + (0)) = ecx; /* 0x361498FF: mov dword ptr fs:[0], ecx */ 17020 esp = ebp; /* 0x36149906: mov esp, ebp */ 17021 ebp = POP32_VAL(esp); /* 0x36149908: pop ebp */ 17022 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149909: ret */ 17023 RECOMP_REGS_OUT(); 17024 } 17025 17026 void sub_361496BD(void) { 17027 int _fpu_cmp = 0; 17028 uint32_t _cf = 0; 17029 int _df = 1; 17030 uint32_t _flag_k = FK_NONE; 17031 uint32_t _flag_a = 0, _flag_b = 0; 17032 uint32_t _itail_tgt = 0; 17033 RECOMP_REGS_LOCALS 17034 RECOMP_ENTER(0x361496BDu); 17035 17036 L_361496BD: 17037 ecx = ebp + (-0xAC); /* 0x361496BD: lea ecx, [ebp - 0xac] */ 17038 RECOMP_ICALL(0x3602F870u); /* 0x361496C3: call 0x3602f870 */ /* not lifted */ 17039 RECOMP_FLAGS_IN(); 17040 ecx = MEM32(ebp + 0x8); /* 0x361496C8: mov ecx, dword ptr [ebp + 8] */ 17041 eax = ebp + (-0xAC); /* 0x361496CB: lea eax, [ebp - 0xac] */ 17042 PUSH32(esp, eax); /* 0x361496D1: push eax */ 17043 PUSH32(esp, ecx); /* 0x361496D2: push ecx */ 17044 MEM32(ebp + (-0x4)) = 1; /* 0x361496D3: mov dword ptr [ebp - 4], 1 */ 17045 RECOMP_ICALL(0x3602F9B0u); /* 0x361496DA: call 0x3602f9b0 */ /* not lifted */ 17046 RECOMP_FLAGS_IN(); 17047 esi = MEM32(ebx + 0x54); /* 0x361496DF: mov esi, dword ptr [ebx + 0x54] */ 17048 ecx = MEM32(esi + 0x8); /* 0x361496E2: mov ecx, dword ptr [esi + 8] */ 17049 edx = MEM32(esi + 0xC); /* 0x361496E5: mov edx, dword ptr [esi + 0xc] */ 17050 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 17051 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17052 edx = edx - ecx; /* 0x361496E8: sub edx, ecx */ 17053 _flag_k = FK_CMP; 17054 MEM32(ebp + (-0x18)) = edx; /* 0x361496EA: mov dword ptr [ebp - 0x18], edx */ 17055 eax = 0x88888889u; /* 0x361496ED: mov eax, 0x88888889 */ 17056 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361496F2: imul edx */ 17057 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 17058 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 17059 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 17060 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17061 edx = edx + MEM32(ebp + (-0x18)); /* 0x361496F4: add edx, dword ptr [ebp - 0x18] */ 17062 _flag_k = FK_ADD; 17063 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361496F7: sar edx, 5 */ 17064 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17065 edx = (uint32_t)((int32_t)edx >> 5u); 17066 eax = edx; /* 0x361496FA: mov eax, edx */ 17067 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361496FC: shr eax, 0x1f */ 17068 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17069 eax = eax >> 31u; /* 0x361496FC: shr eax, 0x1f */ 17070 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 17071 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17072 edx = edx + eax; /* 0x361496FF: add edx, eax */ 17073 _flag_k = FK_ADD; 17074 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 17075 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17076 esp = esp + 8; /* 0x36149701: add esp, 8 */ 17077 _flag_k = FK_ADD; 17078 /* cmp edx, 1 */ /* 0x36149704: cmp edx, 1 */ 17079 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 17080 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17081 _flag_k = FK_CMP; 17082 edi = ecx; /* 0x36149707: mov edi, ecx */ 17083 if (CMP_AE(_flag_a, _flag_b)) goto L_361497D8; /* 0x36149709: jae 0x361497d8 */ 17084 L_3614970F: 17085 eax = MEM32(esi + 0x4); /* 0x3614970F: mov eax, dword ptr [esi + 4] */ 17086 /* test eax, eax */ /* 0x36149712: test eax, eax */ 17087 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17088 _cf = 0; 17089 _flag_k = FK_TEST; 17090 if (TEST_Z(_flag_a, _flag_b)) goto L_36149732; /* 0x36149714: je 0x36149732 */ 17091 L_36149716: 17092 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 17093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17094 ecx = ecx - eax; /* 0x36149716: sub ecx, eax */ 17095 _flag_k = FK_CMP; 17096 eax = 0x88888889u; /* 0x36149718: mov eax, 0x88888889 */ 17097 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3614971D: imul ecx */ 17098 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 17099 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 17100 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 17101 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17102 edx = edx + ecx; /* 0x3614971F: add edx, ecx */ 17103 _flag_k = FK_ADD; 17104 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36149721: sar edx, 5 */ 17105 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17106 edx = (uint32_t)((int32_t)edx >> 5u); 17107 ecx = edx; /* 0x36149724: mov ecx, edx */ 17108 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36149726: shr ecx, 0x1f */ 17109 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17110 ecx = ecx >> 31u; /* 0x36149726: shr ecx, 0x1f */ 17111 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 17112 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17113 edx = edx + ecx; /* 0x36149729: add edx, ecx */ 17114 _flag_k = FK_ADD; 17115 /* cmp edx, 1 */ /* 0x3614972B: cmp edx, 1 */ 17116 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 17117 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17118 _flag_k = FK_CMP; 17119 ebx = edx; /* 0x3614972E: mov ebx, edx */ 17120 if (CMP_A(_flag_a, _flag_b)) goto L_36149737; /* 0x36149730: ja 0x36149737 */ 17121 L_36149732: 17122 ebx = 1; /* 0x36149732: mov ebx, 1 */ 17123 L_36149737: 17124 ecx = esi; /* 0x36149737: mov ecx, esi */ 17125 RECOMP_ICALL(0x36149E90u); /* 0x36149739: call 0x36149e90 */ /* not lifted */ 17126 RECOMP_FLAGS_IN(); 17127 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 17128 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17129 eax = eax + ebx; /* 0x3614973E: add eax, ebx */ 17130 _flag_k = FK_ADD; 17131 MEM32(ebp + (-0x2C)) = eax; /* 0x36149740: mov dword ptr [ebp - 0x2c], eax */ 17132 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149747; /* 0x36149743: jns 0x36149747 */ 17133 L_36149745: 17134 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 17135 eax = 0; /* 0x36149745: xor eax, eax */ 17136 _cf = 0; 17137 _flag_k = FK_TEST; 17138 L_36149747: 17139 eax = eax + eax * 2; /* 0x36149747: lea eax, [eax + eax*2] */ 17140 edx = eax + eax * 4; /* 0x3614974A: lea edx, [eax + eax*4] */ 17141 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614974D: shl edx, 2 */ 17142 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17143 edx = edx << 2u; /* 0x3614974D: shl edx, 2 */ 17144 PUSH32(esp, edx); /* 0x36149750: push edx */ 17145 RECOMP_ICALL(0x3615FD6Au); /* 0x36149751: call 0x3615fd6a */ /* not lifted */ 17146 RECOMP_FLAGS_IN(); 17147 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17148 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17149 esp = esp + 4; /* 0x36149756: add esp, 4 */ 17150 _flag_k = FK_ADD; 17151 ebx = eax; /* 0x36149759: mov ebx, eax */ 17152 eax = MEM32(esi + 0x4); /* 0x3614975B: mov eax, dword ptr [esi + 4] */ 17153 PUSH32(esp, ebx); /* 0x3614975E: push ebx */ 17154 PUSH32(esp, edi); /* 0x3614975F: push edi */ 17155 PUSH32(esp, eax); /* 0x36149760: push eax */ 17156 ecx = esi; /* 0x36149761: mov ecx, esi */ 17157 RECOMP_ICALL(0x36149EF0u); /* 0x36149763: call 0x36149ef0 */ /* not lifted */ 17158 RECOMP_FLAGS_IN(); 17159 ecx = ebp + (-0xAC); /* 0x36149768: lea ecx, [ebp - 0xac] */ 17160 PUSH32(esp, ecx); /* 0x3614976E: push ecx */ 17161 PUSH32(esp, 1); /* 0x3614976F: push 1 */ 17162 PUSH32(esp, eax); /* 0x36149771: push eax */ 17163 ecx = esi; /* 0x36149772: mov ecx, esi */ 17164 MEM32(ebp + (-0x18)) = eax; /* 0x36149774: mov dword ptr [ebp - 0x18], eax */ 17165 RECOMP_ICALL(0x3614A1C0u); /* 0x36149777: call 0x3614a1c0 */ /* not lifted */ 17166 RECOMP_FLAGS_IN(); 17167 edx = MEM32(ebp + (-0x18)); /* 0x3614977C: mov edx, dword ptr [ebp - 0x18] */ 17168 eax = MEM32(esi + 0x8); /* 0x3614977F: mov eax, dword ptr [esi + 8] */ 17169 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x3Cu); 17170 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17171 edx = edx + 0x3Cu; /* 0x36149782: add edx, 0x3c */ 17172 _flag_k = FK_ADD; 17173 PUSH32(esp, edx); /* 0x36149785: push edx */ 17174 PUSH32(esp, eax); /* 0x36149786: push eax */ 17175 PUSH32(esp, edi); /* 0x36149787: push edi */ 17176 ecx = esi; /* 0x36149788: mov ecx, esi */ 17177 RECOMP_ICALL(0x36149EF0u); /* 0x3614978A: call 0x36149ef0 */ /* not lifted */ 17178 RECOMP_FLAGS_IN(); 17179 ecx = MEM32(esi + 0x8); /* 0x3614978F: mov ecx, dword ptr [esi + 8] */ 17180 edx = MEM32(esi + 0x4); /* 0x36149792: mov edx, dword ptr [esi + 4] */ 17181 PUSH32(esp, ecx); /* 0x36149795: push ecx */ 17182 PUSH32(esp, edx); /* 0x36149796: push edx */ 17183 ecx = esi; /* 0x36149797: mov ecx, esi */ 17184 RECOMP_ICALL(0x36149EC0u); /* 0x36149799: call 0x36149ec0 */ /* not lifted */ 17185 RECOMP_FLAGS_IN(); 17186 eax = MEM32(esi + 0x4); /* 0x3614979E: mov eax, dword ptr [esi + 4] */ 17187 PUSH32(esp, eax); /* 0x361497A1: push eax */ 17188 RECOMP_ICALL(0x3615FCC4u); /* 0x361497A2: call 0x3615fcc4 */ /* not lifted */ 17189 RECOMP_FLAGS_IN(); 17190 eax = MEM32(ebp + (-0x2C)); /* 0x361497A7: mov eax, dword ptr [ebp - 0x2c] */ 17191 eax = eax + eax * 2; /* 0x361497AA: lea eax, [eax + eax*2] */ 17192 eax = eax + eax * 4; /* 0x361497AD: lea eax, [eax + eax*4] */ 17193 ecx = ebx + eax * 4; /* 0x361497B0: lea ecx, [ebx + eax*4] */ 17194 MEM32(esi + 0xC) = ecx; /* 0x361497B3: mov dword ptr [esi + 0xc], ecx */ 17195 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17196 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17197 esp = esp + 4; /* 0x361497B6: add esp, 4 */ 17198 _flag_k = FK_ADD; 17199 ecx = esi; /* 0x361497B9: mov ecx, esi */ 17200 RECOMP_ICALL(0x36149E90u); /* 0x361497BB: call 0x36149e90 */ /* not lifted */ 17201 RECOMP_FLAGS_IN(); 17202 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 17203 eax = eax + 1; /* 0x361497C0: inc eax */ 17204 _flag_k = FK_INC; 17205 eax = eax + eax * 2; /* 0x361497C1: lea eax, [eax + eax*2] */ 17206 edx = eax + eax * 4; /* 0x361497C4: lea edx, [eax + eax*4] */ 17207 eax = ebx + edx * 4; /* 0x361497C7: lea eax, [ebx + edx*4] */ 17208 MEM32(esi + 0x4) = ebx; /* 0x361497CA: mov dword ptr [esi + 4], ebx */ 17209 ebx = MEM32(ebp + 0xC); /* 0x361497CD: mov ebx, dword ptr [ebp + 0xc] */ 17210 MEM32(esi + 0x8) = eax; /* 0x361497D0: mov dword ptr [esi + 8], eax */ 17211 goto L_36149880; /* 0x361497D3: jmp 0x36149880 */ 17212 L_361497D8: 17213 edx = ecx; /* 0x361497D8: mov edx, ecx */ 17214 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 17215 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17216 edx = edx - edi; /* 0x361497DA: sub edx, edi */ 17217 _flag_k = FK_CMP; 17218 MEM32(ebp + (-0x18)) = edx; /* 0x361497DC: mov dword ptr [ebp - 0x18], edx */ 17219 eax = 0x88888889u; /* 0x361497DF: mov eax, 0x88888889 */ 17220 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361497E4: imul edx */ 17221 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 17222 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 17223 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 17224 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17225 edx = edx + MEM32(ebp + (-0x18)); /* 0x361497E6: add edx, dword ptr [ebp - 0x18] */ 17226 _flag_k = FK_ADD; 17227 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361497E9: sar edx, 5 */ 17228 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17229 edx = (uint32_t)((int32_t)edx >> 5u); 17230 eax = edx; /* 0x361497EC: mov eax, edx */ 17231 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361497EE: shr eax, 0x1f */ 17232 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17233 eax = eax >> 31u; /* 0x361497EE: shr eax, 0x1f */ 17234 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 17235 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17236 edx = edx + eax; /* 0x361497F1: add edx, eax */ 17237 _flag_k = FK_ADD; 17238 /* cmp edx, 1 */ /* 0x361497F3: cmp edx, 1 */ 17239 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 17240 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17241 _flag_k = FK_CMP; 17242 if (CMP_AE(_flag_a, _flag_b)) goto L_3614984D; /* 0x361497F6: jae 0x3614984d */ 17243 L_361497F8: 17244 edx = edi + 0x3C; /* 0x361497F8: lea edx, [edi + 0x3c] */ 17245 PUSH32(esp, edx); /* 0x361497FB: push edx */ 17246 PUSH32(esp, ecx); /* 0x361497FC: push ecx */ 17247 PUSH32(esp, edi); /* 0x361497FD: push edi */ 17248 ecx = esi; /* 0x361497FE: mov ecx, esi */ 17249 RECOMP_ICALL(0x36149EF0u); /* 0x36149800: call 0x36149ef0 */ /* not lifted */ 17250 RECOMP_FLAGS_IN(); 17251 ecx = MEM32(esi + 0x8); /* 0x36149805: mov ecx, dword ptr [esi + 8] */ 17252 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 17253 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17254 ecx = ecx - edi; /* 0x36149808: sub ecx, edi */ 17255 _flag_k = FK_CMP; 17256 eax = ebp + (-0xAC); /* 0x3614980A: lea eax, [ebp - 0xac] */ 17257 PUSH32(esp, eax); /* 0x36149810: push eax */ 17258 eax = 0x88888889u; /* 0x36149811: mov eax, 0x88888889 */ 17259 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149816: imul ecx */ 17260 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 17261 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 17262 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 17263 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17264 edx = edx + ecx; /* 0x36149818: add edx, ecx */ 17265 _flag_k = FK_ADD; 17266 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x3614981A: sar edx, 5 */ 17267 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17268 edx = (uint32_t)((int32_t)edx >> 5u); 17269 ecx = edx; /* 0x3614981D: mov ecx, edx */ 17270 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614981F: shr ecx, 0x1f */ 17271 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17272 ecx = ecx >> 31u; /* 0x3614981F: shr ecx, 0x1f */ 17273 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 17274 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17275 edx = edx + ecx; /* 0x36149822: add edx, ecx */ 17276 _flag_k = FK_ADD; 17277 eax = 1; /* 0x36149824: mov eax, 1 */ 17278 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 17279 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17280 eax = eax - edx; /* 0x36149829: sub eax, edx */ 17281 _flag_k = FK_CMP; 17282 PUSH32(esp, eax); /* 0x3614982B: push eax */ 17283 eax = MEM32(esi + 0x8); /* 0x3614982C: mov eax, dword ptr [esi + 8] */ 17284 PUSH32(esp, eax); /* 0x3614982F: push eax */ 17285 ecx = esi; /* 0x36149830: mov ecx, esi */ 17286 RECOMP_ICALL(0x3614A1C0u); /* 0x36149832: call 0x3614a1c0 */ /* not lifted */ 17287 RECOMP_FLAGS_IN(); 17288 edx = MEM32(esi + 0x8); /* 0x36149837: mov edx, dword ptr [esi + 8] */ 17289 ecx = ebp + (-0xAC); /* 0x3614983A: lea ecx, [ebp - 0xac] */ 17290 PUSH32(esp, ecx); /* 0x36149840: push ecx */ 17291 PUSH32(esp, edx); /* 0x36149841: push edx */ 17292 PUSH32(esp, edi); /* 0x36149842: push edi */ 17293 RECOMP_ICALL(0x3614A360u); /* 0x36149843: call 0x3614a360 */ /* not lifted */ 17294 RECOMP_FLAGS_IN(); 17295 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 17296 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17297 esp = esp + 0xCu; /* 0x36149848: add esp, 0xc */ 17298 _flag_k = FK_ADD; 17299 goto L_3614987C; /* 0x3614984B: jmp 0x3614987c */ 17300 L_3614984D: 17301 PUSH32(esp, ecx); /* 0x3614984D: push ecx */ 17302 PUSH32(esp, ecx); /* 0x3614984E: push ecx */ 17303 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC4u); 17304 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17305 ecx = ecx + 0xFFFFFFC4u; /* 0x3614984F: add ecx, -0x3c */ 17306 _flag_k = FK_ADD; 17307 PUSH32(esp, ecx); /* 0x36149852: push ecx */ 17308 ecx = esi; /* 0x36149853: mov ecx, esi */ 17309 RECOMP_ICALL(0x36149EF0u); /* 0x36149855: call 0x36149ef0 */ /* not lifted */ 17310 RECOMP_FLAGS_IN(); 17311 eax = MEM32(esi + 0x8); /* 0x3614985A: mov eax, dword ptr [esi + 8] */ 17312 PUSH32(esp, eax); /* 0x3614985D: push eax */ 17313 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFC4u); 17314 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17315 eax = eax + 0xFFFFFFC4u; /* 0x3614985E: add eax, -0x3c */ 17316 _flag_k = FK_ADD; 17317 PUSH32(esp, eax); /* 0x36149861: push eax */ 17318 PUSH32(esp, edi); /* 0x36149862: push edi */ 17319 RECOMP_ICALL(0x3614A390u); /* 0x36149863: call 0x3614a390 */ /* not lifted */ 17320 RECOMP_FLAGS_IN(); 17321 eax = ebp + (-0xAC); /* 0x36149868: lea eax, [ebp - 0xac] */ 17322 PUSH32(esp, eax); /* 0x3614986E: push eax */ 17323 ecx = edi + 0x3C; /* 0x3614986F: lea ecx, [edi + 0x3c] */ 17324 PUSH32(esp, ecx); /* 0x36149872: push ecx */ 17325 PUSH32(esp, edi); /* 0x36149873: push edi */ 17326 RECOMP_ICALL(0x3614A360u); /* 0x36149874: call 0x3614a360 */ /* not lifted */ 17327 RECOMP_FLAGS_IN(); 17328 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 17329 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17330 esp = esp + 0x18u; /* 0x36149879: add esp, 0x18 */ 17331 _flag_k = FK_ADD; 17332 L_3614987C: 17333 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x3Cu); 17334 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17335 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x3Cu; /* 0x3614987C: add dword ptr [esi + 8], 0x3c */ 17336 _flag_k = FK_ADD; 17337 L_36149880: 17338 ecx = ebp + (-0xAC); /* 0x36149880: lea ecx, [ebp - 0xac] */ 17339 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149886: mov dword ptr [ebp - 4], 0xffffffff */ 17340 RECOMP_ICALL(0x3602F940u); /* 0x3614988D: call 0x3602f940 */ /* not lifted */ 17341 RECOMP_FLAGS_IN(); 17342 eax = MEM32(ebp + (-0x14)); /* 0x36149892: mov eax, dword ptr [ebp - 0x14] */ 17343 edx = MEM32(ebp + (-0x50)); /* 0x36149895: mov edx, dword ptr [ebp - 0x50] */ 17344 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 17345 eax = eax + 1; /* 0x36149898: inc eax */ 17346 _flag_k = FK_INC; 17347 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 17348 edx = edx & 0xFFu; /* 0x36149899: and edx, 0xff */ 17349 _cf = 0; 17350 _flag_k = FK_TEST; 17351 /* cmp eax, edx */ /* 0x3614989F: cmp eax, edx */ 17352 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 17353 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17354 _flag_k = FK_CMP; 17355 MEM32(ebp + (-0x14)) = eax; /* 0x361498A1: mov dword ptr [ebp - 0x14], eax */ 17356 RECOMP_BACKEDGE(); 17357 if (CMP_L(_flag_a, _flag_b)) goto L_361496BD; /* 0x361498A4: jl 0x361496bd */ 17358 L_361498AA: 17359 esi = MEM32(ebp + 0x8); /* 0x361498AA: mov esi, dword ptr [ebp + 8] */ 17360 ecx = esi; /* 0x361498AD: mov ecx, esi */ 17361 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361498AF: call dword ptr [0x3616fadc] */ 17362 RECOMP_FLAGS_IN(); 17363 /* test eax, eax */ /* 0x361498B5: test eax, eax */ 17364 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17365 _cf = 0; 17366 _flag_k = FK_TEST; 17367 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498F7; /* 0x361498B7: jne 0x361498f7 */ 17368 L_361498B9: 17369 ebx = MEM32(ebx); /* 0x361498B9: mov ebx, dword ptr [ebx] */ 17370 eax = MEM32(ebx + 0x4); /* 0x361498BB: mov eax, dword ptr [ebx + 4] */ 17371 /* test eax, eax */ /* 0x361498BE: test eax, eax */ 17372 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17373 _cf = 0; 17374 _flag_k = FK_TEST; 17375 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498C7; /* 0x361498C0: jne 0x361498c7 */ 17376 L_361498C2: 17377 eax = MEM32(0x3616F10C); /* 0x361498C2: mov eax, dword ptr [0x3616f10c] */ 17378 L_361498C7: 17379 PUSH32(esp, eax); /* 0x361498C7: push eax */ 17380 PUSH32(esp, 0x362E75FCu); /* 0x361498C8: push 0x362e75fc */ 17381 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361498CD: call dword ptr [0x3616f18c] */ 17382 RECOMP_FLAGS_IN(); 17383 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 17384 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17385 esp = esp + 8; /* 0x361498D3: add esp, 8 */ 17386 _flag_k = FK_ADD; 17387 PUSH32(esp, 0x362E75CCu); /* 0x361498D6: push 0x362e75cc */ 17388 ecx = ebp + (-0xB4); /* 0x361498DB: lea ecx, [ebp - 0xb4] */ 17389 RECOMP_ICALL(0x36008EF0u); /* 0x361498E1: call 0x36008ef0 */ /* not lifted */ 17390 RECOMP_FLAGS_IN(); 17391 PUSH32(esp, 0x36184170u); /* 0x361498E6: push 0x36184170 */ 17392 eax = ebp + (-0xB4); /* 0x361498EB: lea eax, [ebp - 0xb4] */ 17393 PUSH32(esp, eax); /* 0x361498F1: push eax */ 17394 RECOMP_ICALL(0x3615FD70u); /* 0x361498F2: call 0x3615fd70 */ /* not lifted */ 17395 RECOMP_FLAGS_IN(); 17396 L_361498F7: 17397 ecx = MEM32(ebp + (-0xC)); /* 0x361498F7: mov ecx, dword ptr [ebp - 0xc] */ 17398 edi = POP32_VAL(esp); /* 0x361498FA: pop edi */ 17399 eax = esi; /* 0x361498FB: mov eax, esi */ 17400 esi = POP32_VAL(esp); /* 0x361498FD: pop esi */ 17401 ebx = POP32_VAL(esp); /* 0x361498FE: pop ebx */ 17402 MEM32(FS_BASE + (0)) = ecx; /* 0x361498FF: mov dword ptr fs:[0], ecx */ 17403 esp = ebp; /* 0x36149906: mov esp, ebp */ 17404 ebp = POP32_VAL(esp); /* 0x36149908: pop ebp */ 17405 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149909: ret */ 17406 RECOMP_REGS_OUT(); 17407 } 17408 17409 void sub_3614987C(void) { 17410 int _fpu_cmp = 0; 17411 uint32_t _cf = 0; 17412 int _df = 1; 17413 uint32_t _flag_k = FK_NONE; 17414 uint32_t _flag_a = 0, _flag_b = 0; 17415 uint32_t _itail_tgt = 0; 17416 RECOMP_REGS_LOCALS 17417 RECOMP_ENTER(0x3614987Cu); 17418 17419 goto L_3614987C; 17420 L_361496BD: 17421 ecx = ebp + (-0xAC); /* 0x361496BD: lea ecx, [ebp - 0xac] */ 17422 RECOMP_ICALL(0x3602F870u); /* 0x361496C3: call 0x3602f870 */ /* not lifted */ 17423 RECOMP_FLAGS_IN(); 17424 ecx = MEM32(ebp + 0x8); /* 0x361496C8: mov ecx, dword ptr [ebp + 8] */ 17425 eax = ebp + (-0xAC); /* 0x361496CB: lea eax, [ebp - 0xac] */ 17426 PUSH32(esp, eax); /* 0x361496D1: push eax */ 17427 PUSH32(esp, ecx); /* 0x361496D2: push ecx */ 17428 MEM32(ebp + (-0x4)) = 1; /* 0x361496D3: mov dword ptr [ebp - 4], 1 */ 17429 RECOMP_ICALL(0x3602F9B0u); /* 0x361496DA: call 0x3602f9b0 */ /* not lifted */ 17430 RECOMP_FLAGS_IN(); 17431 esi = MEM32(ebx + 0x54); /* 0x361496DF: mov esi, dword ptr [ebx + 0x54] */ 17432 ecx = MEM32(esi + 0x8); /* 0x361496E2: mov ecx, dword ptr [esi + 8] */ 17433 edx = MEM32(esi + 0xC); /* 0x361496E5: mov edx, dword ptr [esi + 0xc] */ 17434 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 17435 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17436 edx = edx - ecx; /* 0x361496E8: sub edx, ecx */ 17437 _flag_k = FK_CMP; 17438 MEM32(ebp + (-0x18)) = edx; /* 0x361496EA: mov dword ptr [ebp - 0x18], edx */ 17439 eax = 0x88888889u; /* 0x361496ED: mov eax, 0x88888889 */ 17440 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361496F2: imul edx */ 17441 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 17442 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 17443 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 17444 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17445 edx = edx + MEM32(ebp + (-0x18)); /* 0x361496F4: add edx, dword ptr [ebp - 0x18] */ 17446 _flag_k = FK_ADD; 17447 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361496F7: sar edx, 5 */ 17448 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17449 edx = (uint32_t)((int32_t)edx >> 5u); 17450 eax = edx; /* 0x361496FA: mov eax, edx */ 17451 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361496FC: shr eax, 0x1f */ 17452 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17453 eax = eax >> 31u; /* 0x361496FC: shr eax, 0x1f */ 17454 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 17455 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17456 edx = edx + eax; /* 0x361496FF: add edx, eax */ 17457 _flag_k = FK_ADD; 17458 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 17459 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17460 esp = esp + 8; /* 0x36149701: add esp, 8 */ 17461 _flag_k = FK_ADD; 17462 /* cmp edx, 1 */ /* 0x36149704: cmp edx, 1 */ 17463 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 17464 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17465 _flag_k = FK_CMP; 17466 edi = ecx; /* 0x36149707: mov edi, ecx */ 17467 if (CMP_AE(_flag_a, _flag_b)) goto L_361497D8; /* 0x36149709: jae 0x361497d8 */ 17468 L_3614970F: 17469 eax = MEM32(esi + 0x4); /* 0x3614970F: mov eax, dword ptr [esi + 4] */ 17470 /* test eax, eax */ /* 0x36149712: test eax, eax */ 17471 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17472 _cf = 0; 17473 _flag_k = FK_TEST; 17474 if (TEST_Z(_flag_a, _flag_b)) goto L_36149732; /* 0x36149714: je 0x36149732 */ 17475 L_36149716: 17476 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 17477 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17478 ecx = ecx - eax; /* 0x36149716: sub ecx, eax */ 17479 _flag_k = FK_CMP; 17480 eax = 0x88888889u; /* 0x36149718: mov eax, 0x88888889 */ 17481 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3614971D: imul ecx */ 17482 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 17483 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 17484 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 17485 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17486 edx = edx + ecx; /* 0x3614971F: add edx, ecx */ 17487 _flag_k = FK_ADD; 17488 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36149721: sar edx, 5 */ 17489 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17490 edx = (uint32_t)((int32_t)edx >> 5u); 17491 ecx = edx; /* 0x36149724: mov ecx, edx */ 17492 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36149726: shr ecx, 0x1f */ 17493 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17494 ecx = ecx >> 31u; /* 0x36149726: shr ecx, 0x1f */ 17495 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 17496 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17497 edx = edx + ecx; /* 0x36149729: add edx, ecx */ 17498 _flag_k = FK_ADD; 17499 /* cmp edx, 1 */ /* 0x3614972B: cmp edx, 1 */ 17500 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 17501 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17502 _flag_k = FK_CMP; 17503 ebx = edx; /* 0x3614972E: mov ebx, edx */ 17504 if (CMP_A(_flag_a, _flag_b)) goto L_36149737; /* 0x36149730: ja 0x36149737 */ 17505 L_36149732: 17506 ebx = 1; /* 0x36149732: mov ebx, 1 */ 17507 L_36149737: 17508 ecx = esi; /* 0x36149737: mov ecx, esi */ 17509 RECOMP_ICALL(0x36149E90u); /* 0x36149739: call 0x36149e90 */ /* not lifted */ 17510 RECOMP_FLAGS_IN(); 17511 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 17512 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17513 eax = eax + ebx; /* 0x3614973E: add eax, ebx */ 17514 _flag_k = FK_ADD; 17515 MEM32(ebp + (-0x2C)) = eax; /* 0x36149740: mov dword ptr [ebp - 0x2c], eax */ 17516 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149747; /* 0x36149743: jns 0x36149747 */ 17517 L_36149745: 17518 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 17519 eax = 0; /* 0x36149745: xor eax, eax */ 17520 _cf = 0; 17521 _flag_k = FK_TEST; 17522 L_36149747: 17523 eax = eax + eax * 2; /* 0x36149747: lea eax, [eax + eax*2] */ 17524 edx = eax + eax * 4; /* 0x3614974A: lea edx, [eax + eax*4] */ 17525 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614974D: shl edx, 2 */ 17526 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17527 edx = edx << 2u; /* 0x3614974D: shl edx, 2 */ 17528 PUSH32(esp, edx); /* 0x36149750: push edx */ 17529 RECOMP_ICALL(0x3615FD6Au); /* 0x36149751: call 0x3615fd6a */ /* not lifted */ 17530 RECOMP_FLAGS_IN(); 17531 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17532 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17533 esp = esp + 4; /* 0x36149756: add esp, 4 */ 17534 _flag_k = FK_ADD; 17535 ebx = eax; /* 0x36149759: mov ebx, eax */ 17536 eax = MEM32(esi + 0x4); /* 0x3614975B: mov eax, dword ptr [esi + 4] */ 17537 PUSH32(esp, ebx); /* 0x3614975E: push ebx */ 17538 PUSH32(esp, edi); /* 0x3614975F: push edi */ 17539 PUSH32(esp, eax); /* 0x36149760: push eax */ 17540 ecx = esi; /* 0x36149761: mov ecx, esi */ 17541 RECOMP_ICALL(0x36149EF0u); /* 0x36149763: call 0x36149ef0 */ /* not lifted */ 17542 RECOMP_FLAGS_IN(); 17543 ecx = ebp + (-0xAC); /* 0x36149768: lea ecx, [ebp - 0xac] */ 17544 PUSH32(esp, ecx); /* 0x3614976E: push ecx */ 17545 PUSH32(esp, 1); /* 0x3614976F: push 1 */ 17546 PUSH32(esp, eax); /* 0x36149771: push eax */ 17547 ecx = esi; /* 0x36149772: mov ecx, esi */ 17548 MEM32(ebp + (-0x18)) = eax; /* 0x36149774: mov dword ptr [ebp - 0x18], eax */ 17549 RECOMP_ICALL(0x3614A1C0u); /* 0x36149777: call 0x3614a1c0 */ /* not lifted */ 17550 RECOMP_FLAGS_IN(); 17551 edx = MEM32(ebp + (-0x18)); /* 0x3614977C: mov edx, dword ptr [ebp - 0x18] */ 17552 eax = MEM32(esi + 0x8); /* 0x3614977F: mov eax, dword ptr [esi + 8] */ 17553 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x3Cu); 17554 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17555 edx = edx + 0x3Cu; /* 0x36149782: add edx, 0x3c */ 17556 _flag_k = FK_ADD; 17557 PUSH32(esp, edx); /* 0x36149785: push edx */ 17558 PUSH32(esp, eax); /* 0x36149786: push eax */ 17559 PUSH32(esp, edi); /* 0x36149787: push edi */ 17560 ecx = esi; /* 0x36149788: mov ecx, esi */ 17561 RECOMP_ICALL(0x36149EF0u); /* 0x3614978A: call 0x36149ef0 */ /* not lifted */ 17562 RECOMP_FLAGS_IN(); 17563 ecx = MEM32(esi + 0x8); /* 0x3614978F: mov ecx, dword ptr [esi + 8] */ 17564 edx = MEM32(esi + 0x4); /* 0x36149792: mov edx, dword ptr [esi + 4] */ 17565 PUSH32(esp, ecx); /* 0x36149795: push ecx */ 17566 PUSH32(esp, edx); /* 0x36149796: push edx */ 17567 ecx = esi; /* 0x36149797: mov ecx, esi */ 17568 RECOMP_ICALL(0x36149EC0u); /* 0x36149799: call 0x36149ec0 */ /* not lifted */ 17569 RECOMP_FLAGS_IN(); 17570 eax = MEM32(esi + 0x4); /* 0x3614979E: mov eax, dword ptr [esi + 4] */ 17571 PUSH32(esp, eax); /* 0x361497A1: push eax */ 17572 RECOMP_ICALL(0x3615FCC4u); /* 0x361497A2: call 0x3615fcc4 */ /* not lifted */ 17573 RECOMP_FLAGS_IN(); 17574 eax = MEM32(ebp + (-0x2C)); /* 0x361497A7: mov eax, dword ptr [ebp - 0x2c] */ 17575 eax = eax + eax * 2; /* 0x361497AA: lea eax, [eax + eax*2] */ 17576 eax = eax + eax * 4; /* 0x361497AD: lea eax, [eax + eax*4] */ 17577 ecx = ebx + eax * 4; /* 0x361497B0: lea ecx, [ebx + eax*4] */ 17578 MEM32(esi + 0xC) = ecx; /* 0x361497B3: mov dword ptr [esi + 0xc], ecx */ 17579 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17580 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17581 esp = esp + 4; /* 0x361497B6: add esp, 4 */ 17582 _flag_k = FK_ADD; 17583 ecx = esi; /* 0x361497B9: mov ecx, esi */ 17584 RECOMP_ICALL(0x36149E90u); /* 0x361497BB: call 0x36149e90 */ /* not lifted */ 17585 RECOMP_FLAGS_IN(); 17586 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 17587 eax = eax + 1; /* 0x361497C0: inc eax */ 17588 _flag_k = FK_INC; 17589 eax = eax + eax * 2; /* 0x361497C1: lea eax, [eax + eax*2] */ 17590 edx = eax + eax * 4; /* 0x361497C4: lea edx, [eax + eax*4] */ 17591 eax = ebx + edx * 4; /* 0x361497C7: lea eax, [ebx + edx*4] */ 17592 MEM32(esi + 0x4) = ebx; /* 0x361497CA: mov dword ptr [esi + 4], ebx */ 17593 ebx = MEM32(ebp + 0xC); /* 0x361497CD: mov ebx, dword ptr [ebp + 0xc] */ 17594 MEM32(esi + 0x8) = eax; /* 0x361497D0: mov dword ptr [esi + 8], eax */ 17595 goto L_36149880; /* 0x361497D3: jmp 0x36149880 */ 17596 L_361497D8: 17597 edx = ecx; /* 0x361497D8: mov edx, ecx */ 17598 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 17599 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17600 edx = edx - edi; /* 0x361497DA: sub edx, edi */ 17601 _flag_k = FK_CMP; 17602 MEM32(ebp + (-0x18)) = edx; /* 0x361497DC: mov dword ptr [ebp - 0x18], edx */ 17603 eax = 0x88888889u; /* 0x361497DF: mov eax, 0x88888889 */ 17604 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361497E4: imul edx */ 17605 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 17606 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 17607 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 17608 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17609 edx = edx + MEM32(ebp + (-0x18)); /* 0x361497E6: add edx, dword ptr [ebp - 0x18] */ 17610 _flag_k = FK_ADD; 17611 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361497E9: sar edx, 5 */ 17612 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17613 edx = (uint32_t)((int32_t)edx >> 5u); 17614 eax = edx; /* 0x361497EC: mov eax, edx */ 17615 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361497EE: shr eax, 0x1f */ 17616 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17617 eax = eax >> 31u; /* 0x361497EE: shr eax, 0x1f */ 17618 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 17619 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17620 edx = edx + eax; /* 0x361497F1: add edx, eax */ 17621 _flag_k = FK_ADD; 17622 /* cmp edx, 1 */ /* 0x361497F3: cmp edx, 1 */ 17623 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 17624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17625 _flag_k = FK_CMP; 17626 if (CMP_AE(_flag_a, _flag_b)) goto L_3614984D; /* 0x361497F6: jae 0x3614984d */ 17627 L_361497F8: 17628 edx = edi + 0x3C; /* 0x361497F8: lea edx, [edi + 0x3c] */ 17629 PUSH32(esp, edx); /* 0x361497FB: push edx */ 17630 PUSH32(esp, ecx); /* 0x361497FC: push ecx */ 17631 PUSH32(esp, edi); /* 0x361497FD: push edi */ 17632 ecx = esi; /* 0x361497FE: mov ecx, esi */ 17633 RECOMP_ICALL(0x36149EF0u); /* 0x36149800: call 0x36149ef0 */ /* not lifted */ 17634 RECOMP_FLAGS_IN(); 17635 ecx = MEM32(esi + 0x8); /* 0x36149805: mov ecx, dword ptr [esi + 8] */ 17636 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 17637 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17638 ecx = ecx - edi; /* 0x36149808: sub ecx, edi */ 17639 _flag_k = FK_CMP; 17640 eax = ebp + (-0xAC); /* 0x3614980A: lea eax, [ebp - 0xac] */ 17641 PUSH32(esp, eax); /* 0x36149810: push eax */ 17642 eax = 0x88888889u; /* 0x36149811: mov eax, 0x88888889 */ 17643 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149816: imul ecx */ 17644 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 17645 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 17646 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 17647 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17648 edx = edx + ecx; /* 0x36149818: add edx, ecx */ 17649 _flag_k = FK_ADD; 17650 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x3614981A: sar edx, 5 */ 17651 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17652 edx = (uint32_t)((int32_t)edx >> 5u); 17653 ecx = edx; /* 0x3614981D: mov ecx, edx */ 17654 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614981F: shr ecx, 0x1f */ 17655 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17656 ecx = ecx >> 31u; /* 0x3614981F: shr ecx, 0x1f */ 17657 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 17658 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17659 edx = edx + ecx; /* 0x36149822: add edx, ecx */ 17660 _flag_k = FK_ADD; 17661 eax = 1; /* 0x36149824: mov eax, 1 */ 17662 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 17663 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17664 eax = eax - edx; /* 0x36149829: sub eax, edx */ 17665 _flag_k = FK_CMP; 17666 PUSH32(esp, eax); /* 0x3614982B: push eax */ 17667 eax = MEM32(esi + 0x8); /* 0x3614982C: mov eax, dword ptr [esi + 8] */ 17668 PUSH32(esp, eax); /* 0x3614982F: push eax */ 17669 ecx = esi; /* 0x36149830: mov ecx, esi */ 17670 RECOMP_ICALL(0x3614A1C0u); /* 0x36149832: call 0x3614a1c0 */ /* not lifted */ 17671 RECOMP_FLAGS_IN(); 17672 edx = MEM32(esi + 0x8); /* 0x36149837: mov edx, dword ptr [esi + 8] */ 17673 ecx = ebp + (-0xAC); /* 0x3614983A: lea ecx, [ebp - 0xac] */ 17674 PUSH32(esp, ecx); /* 0x36149840: push ecx */ 17675 PUSH32(esp, edx); /* 0x36149841: push edx */ 17676 PUSH32(esp, edi); /* 0x36149842: push edi */ 17677 RECOMP_ICALL(0x3614A360u); /* 0x36149843: call 0x3614a360 */ /* not lifted */ 17678 RECOMP_FLAGS_IN(); 17679 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 17680 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17681 esp = esp + 0xCu; /* 0x36149848: add esp, 0xc */ 17682 _flag_k = FK_ADD; 17683 goto L_3614987C; /* 0x3614984B: jmp 0x3614987c */ 17684 L_3614984D: 17685 PUSH32(esp, ecx); /* 0x3614984D: push ecx */ 17686 PUSH32(esp, ecx); /* 0x3614984E: push ecx */ 17687 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC4u); 17688 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17689 ecx = ecx + 0xFFFFFFC4u; /* 0x3614984F: add ecx, -0x3c */ 17690 _flag_k = FK_ADD; 17691 PUSH32(esp, ecx); /* 0x36149852: push ecx */ 17692 ecx = esi; /* 0x36149853: mov ecx, esi */ 17693 RECOMP_ICALL(0x36149EF0u); /* 0x36149855: call 0x36149ef0 */ /* not lifted */ 17694 RECOMP_FLAGS_IN(); 17695 eax = MEM32(esi + 0x8); /* 0x3614985A: mov eax, dword ptr [esi + 8] */ 17696 PUSH32(esp, eax); /* 0x3614985D: push eax */ 17697 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFC4u); 17698 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17699 eax = eax + 0xFFFFFFC4u; /* 0x3614985E: add eax, -0x3c */ 17700 _flag_k = FK_ADD; 17701 PUSH32(esp, eax); /* 0x36149861: push eax */ 17702 PUSH32(esp, edi); /* 0x36149862: push edi */ 17703 RECOMP_ICALL(0x3614A390u); /* 0x36149863: call 0x3614a390 */ /* not lifted */ 17704 RECOMP_FLAGS_IN(); 17705 eax = ebp + (-0xAC); /* 0x36149868: lea eax, [ebp - 0xac] */ 17706 PUSH32(esp, eax); /* 0x3614986E: push eax */ 17707 ecx = edi + 0x3C; /* 0x3614986F: lea ecx, [edi + 0x3c] */ 17708 PUSH32(esp, ecx); /* 0x36149872: push ecx */ 17709 PUSH32(esp, edi); /* 0x36149873: push edi */ 17710 RECOMP_ICALL(0x3614A360u); /* 0x36149874: call 0x3614a360 */ /* not lifted */ 17711 RECOMP_FLAGS_IN(); 17712 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 17713 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17714 esp = esp + 0x18u; /* 0x36149879: add esp, 0x18 */ 17715 _flag_k = FK_ADD; 17716 L_3614987C: 17717 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x3Cu); 17718 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17719 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x3Cu; /* 0x3614987C: add dword ptr [esi + 8], 0x3c */ 17720 _flag_k = FK_ADD; 17721 L_36149880: 17722 ecx = ebp + (-0xAC); /* 0x36149880: lea ecx, [ebp - 0xac] */ 17723 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149886: mov dword ptr [ebp - 4], 0xffffffff */ 17724 RECOMP_ICALL(0x3602F940u); /* 0x3614988D: call 0x3602f940 */ /* not lifted */ 17725 RECOMP_FLAGS_IN(); 17726 eax = MEM32(ebp + (-0x14)); /* 0x36149892: mov eax, dword ptr [ebp - 0x14] */ 17727 edx = MEM32(ebp + (-0x50)); /* 0x36149895: mov edx, dword ptr [ebp - 0x50] */ 17728 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 17729 eax = eax + 1; /* 0x36149898: inc eax */ 17730 _flag_k = FK_INC; 17731 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 17732 edx = edx & 0xFFu; /* 0x36149899: and edx, 0xff */ 17733 _cf = 0; 17734 _flag_k = FK_TEST; 17735 /* cmp eax, edx */ /* 0x3614989F: cmp eax, edx */ 17736 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 17737 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17738 _flag_k = FK_CMP; 17739 MEM32(ebp + (-0x14)) = eax; /* 0x361498A1: mov dword ptr [ebp - 0x14], eax */ 17740 RECOMP_BACKEDGE(); 17741 if (CMP_L(_flag_a, _flag_b)) goto L_361496BD; /* 0x361498A4: jl 0x361496bd */ 17742 L_361498AA: 17743 esi = MEM32(ebp + 0x8); /* 0x361498AA: mov esi, dword ptr [ebp + 8] */ 17744 ecx = esi; /* 0x361498AD: mov ecx, esi */ 17745 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361498AF: call dword ptr [0x3616fadc] */ 17746 RECOMP_FLAGS_IN(); 17747 /* test eax, eax */ /* 0x361498B5: test eax, eax */ 17748 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17749 _cf = 0; 17750 _flag_k = FK_TEST; 17751 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498F7; /* 0x361498B7: jne 0x361498f7 */ 17752 L_361498B9: 17753 ebx = MEM32(ebx); /* 0x361498B9: mov ebx, dword ptr [ebx] */ 17754 eax = MEM32(ebx + 0x4); /* 0x361498BB: mov eax, dword ptr [ebx + 4] */ 17755 /* test eax, eax */ /* 0x361498BE: test eax, eax */ 17756 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17757 _cf = 0; 17758 _flag_k = FK_TEST; 17759 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498C7; /* 0x361498C0: jne 0x361498c7 */ 17760 L_361498C2: 17761 eax = MEM32(0x3616F10C); /* 0x361498C2: mov eax, dword ptr [0x3616f10c] */ 17762 L_361498C7: 17763 PUSH32(esp, eax); /* 0x361498C7: push eax */ 17764 PUSH32(esp, 0x362E75FCu); /* 0x361498C8: push 0x362e75fc */ 17765 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361498CD: call dword ptr [0x3616f18c] */ 17766 RECOMP_FLAGS_IN(); 17767 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 17768 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17769 esp = esp + 8; /* 0x361498D3: add esp, 8 */ 17770 _flag_k = FK_ADD; 17771 PUSH32(esp, 0x362E75CCu); /* 0x361498D6: push 0x362e75cc */ 17772 ecx = ebp + (-0xB4); /* 0x361498DB: lea ecx, [ebp - 0xb4] */ 17773 RECOMP_ICALL(0x36008EF0u); /* 0x361498E1: call 0x36008ef0 */ /* not lifted */ 17774 RECOMP_FLAGS_IN(); 17775 PUSH32(esp, 0x36184170u); /* 0x361498E6: push 0x36184170 */ 17776 eax = ebp + (-0xB4); /* 0x361498EB: lea eax, [ebp - 0xb4] */ 17777 PUSH32(esp, eax); /* 0x361498F1: push eax */ 17778 RECOMP_ICALL(0x3615FD70u); /* 0x361498F2: call 0x3615fd70 */ /* not lifted */ 17779 RECOMP_FLAGS_IN(); 17780 L_361498F7: 17781 ecx = MEM32(ebp + (-0xC)); /* 0x361498F7: mov ecx, dword ptr [ebp - 0xc] */ 17782 edi = POP32_VAL(esp); /* 0x361498FA: pop edi */ 17783 eax = esi; /* 0x361498FB: mov eax, esi */ 17784 esi = POP32_VAL(esp); /* 0x361498FD: pop esi */ 17785 ebx = POP32_VAL(esp); /* 0x361498FE: pop ebx */ 17786 MEM32(FS_BASE + (0)) = ecx; /* 0x361498FF: mov dword ptr fs:[0], ecx */ 17787 esp = ebp; /* 0x36149906: mov esp, ebp */ 17788 ebp = POP32_VAL(esp); /* 0x36149908: pop ebp */ 17789 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149909: ret */ 17790 RECOMP_REGS_OUT(); 17791 } 17792 17793 void sub_36149880(void) { 17794 int _fpu_cmp = 0; 17795 uint32_t _cf = 0; 17796 int _df = 1; 17797 uint32_t _flag_k = FK_NONE; 17798 uint32_t _flag_a = 0, _flag_b = 0; 17799 uint32_t _itail_tgt = 0; 17800 RECOMP_REGS_LOCALS 17801 RECOMP_ENTER(0x36149880u); 17802 17803 goto L_36149880; 17804 L_361496BD: 17805 ecx = ebp + (-0xAC); /* 0x361496BD: lea ecx, [ebp - 0xac] */ 17806 RECOMP_ICALL(0x3602F870u); /* 0x361496C3: call 0x3602f870 */ /* not lifted */ 17807 RECOMP_FLAGS_IN(); 17808 ecx = MEM32(ebp + 0x8); /* 0x361496C8: mov ecx, dword ptr [ebp + 8] */ 17809 eax = ebp + (-0xAC); /* 0x361496CB: lea eax, [ebp - 0xac] */ 17810 PUSH32(esp, eax); /* 0x361496D1: push eax */ 17811 PUSH32(esp, ecx); /* 0x361496D2: push ecx */ 17812 MEM32(ebp + (-0x4)) = 1; /* 0x361496D3: mov dword ptr [ebp - 4], 1 */ 17813 RECOMP_ICALL(0x3602F9B0u); /* 0x361496DA: call 0x3602f9b0 */ /* not lifted */ 17814 RECOMP_FLAGS_IN(); 17815 esi = MEM32(ebx + 0x54); /* 0x361496DF: mov esi, dword ptr [ebx + 0x54] */ 17816 ecx = MEM32(esi + 0x8); /* 0x361496E2: mov ecx, dword ptr [esi + 8] */ 17817 edx = MEM32(esi + 0xC); /* 0x361496E5: mov edx, dword ptr [esi + 0xc] */ 17818 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 17819 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17820 edx = edx - ecx; /* 0x361496E8: sub edx, ecx */ 17821 _flag_k = FK_CMP; 17822 MEM32(ebp + (-0x18)) = edx; /* 0x361496EA: mov dword ptr [ebp - 0x18], edx */ 17823 eax = 0x88888889u; /* 0x361496ED: mov eax, 0x88888889 */ 17824 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361496F2: imul edx */ 17825 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 17826 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 17827 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 17828 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17829 edx = edx + MEM32(ebp + (-0x18)); /* 0x361496F4: add edx, dword ptr [ebp - 0x18] */ 17830 _flag_k = FK_ADD; 17831 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361496F7: sar edx, 5 */ 17832 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17833 edx = (uint32_t)((int32_t)edx >> 5u); 17834 eax = edx; /* 0x361496FA: mov eax, edx */ 17835 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361496FC: shr eax, 0x1f */ 17836 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17837 eax = eax >> 31u; /* 0x361496FC: shr eax, 0x1f */ 17838 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 17839 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17840 edx = edx + eax; /* 0x361496FF: add edx, eax */ 17841 _flag_k = FK_ADD; 17842 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 17843 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17844 esp = esp + 8; /* 0x36149701: add esp, 8 */ 17845 _flag_k = FK_ADD; 17846 /* cmp edx, 1 */ /* 0x36149704: cmp edx, 1 */ 17847 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 17848 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17849 _flag_k = FK_CMP; 17850 edi = ecx; /* 0x36149707: mov edi, ecx */ 17851 if (CMP_AE(_flag_a, _flag_b)) goto L_361497D8; /* 0x36149709: jae 0x361497d8 */ 17852 L_3614970F: 17853 eax = MEM32(esi + 0x4); /* 0x3614970F: mov eax, dword ptr [esi + 4] */ 17854 /* test eax, eax */ /* 0x36149712: test eax, eax */ 17855 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17856 _cf = 0; 17857 _flag_k = FK_TEST; 17858 if (TEST_Z(_flag_a, _flag_b)) goto L_36149732; /* 0x36149714: je 0x36149732 */ 17859 L_36149716: 17860 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 17861 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17862 ecx = ecx - eax; /* 0x36149716: sub ecx, eax */ 17863 _flag_k = FK_CMP; 17864 eax = 0x88888889u; /* 0x36149718: mov eax, 0x88888889 */ 17865 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3614971D: imul ecx */ 17866 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 17867 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 17868 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 17869 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17870 edx = edx + ecx; /* 0x3614971F: add edx, ecx */ 17871 _flag_k = FK_ADD; 17872 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36149721: sar edx, 5 */ 17873 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17874 edx = (uint32_t)((int32_t)edx >> 5u); 17875 ecx = edx; /* 0x36149724: mov ecx, edx */ 17876 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36149726: shr ecx, 0x1f */ 17877 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17878 ecx = ecx >> 31u; /* 0x36149726: shr ecx, 0x1f */ 17879 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 17880 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17881 edx = edx + ecx; /* 0x36149729: add edx, ecx */ 17882 _flag_k = FK_ADD; 17883 /* cmp edx, 1 */ /* 0x3614972B: cmp edx, 1 */ 17884 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 17885 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17886 _flag_k = FK_CMP; 17887 ebx = edx; /* 0x3614972E: mov ebx, edx */ 17888 if (CMP_A(_flag_a, _flag_b)) goto L_36149737; /* 0x36149730: ja 0x36149737 */ 17889 L_36149732: 17890 ebx = 1; /* 0x36149732: mov ebx, 1 */ 17891 L_36149737: 17892 ecx = esi; /* 0x36149737: mov ecx, esi */ 17893 RECOMP_ICALL(0x36149E90u); /* 0x36149739: call 0x36149e90 */ /* not lifted */ 17894 RECOMP_FLAGS_IN(); 17895 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 17896 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17897 eax = eax + ebx; /* 0x3614973E: add eax, ebx */ 17898 _flag_k = FK_ADD; 17899 MEM32(ebp + (-0x2C)) = eax; /* 0x36149740: mov dword ptr [ebp - 0x2c], eax */ 17900 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_36149747; /* 0x36149743: jns 0x36149747 */ 17901 L_36149745: 17902 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 17903 eax = 0; /* 0x36149745: xor eax, eax */ 17904 _cf = 0; 17905 _flag_k = FK_TEST; 17906 L_36149747: 17907 eax = eax + eax * 2; /* 0x36149747: lea eax, [eax + eax*2] */ 17908 edx = eax + eax * 4; /* 0x3614974A: lea edx, [eax + eax*4] */ 17909 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614974D: shl edx, 2 */ 17910 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17911 edx = edx << 2u; /* 0x3614974D: shl edx, 2 */ 17912 PUSH32(esp, edx); /* 0x36149750: push edx */ 17913 RECOMP_ICALL(0x3615FD6Au); /* 0x36149751: call 0x3615fd6a */ /* not lifted */ 17914 RECOMP_FLAGS_IN(); 17915 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17916 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17917 esp = esp + 4; /* 0x36149756: add esp, 4 */ 17918 _flag_k = FK_ADD; 17919 ebx = eax; /* 0x36149759: mov ebx, eax */ 17920 eax = MEM32(esi + 0x4); /* 0x3614975B: mov eax, dword ptr [esi + 4] */ 17921 PUSH32(esp, ebx); /* 0x3614975E: push ebx */ 17922 PUSH32(esp, edi); /* 0x3614975F: push edi */ 17923 PUSH32(esp, eax); /* 0x36149760: push eax */ 17924 ecx = esi; /* 0x36149761: mov ecx, esi */ 17925 RECOMP_ICALL(0x36149EF0u); /* 0x36149763: call 0x36149ef0 */ /* not lifted */ 17926 RECOMP_FLAGS_IN(); 17927 ecx = ebp + (-0xAC); /* 0x36149768: lea ecx, [ebp - 0xac] */ 17928 PUSH32(esp, ecx); /* 0x3614976E: push ecx */ 17929 PUSH32(esp, 1); /* 0x3614976F: push 1 */ 17930 PUSH32(esp, eax); /* 0x36149771: push eax */ 17931 ecx = esi; /* 0x36149772: mov ecx, esi */ 17932 MEM32(ebp + (-0x18)) = eax; /* 0x36149774: mov dword ptr [ebp - 0x18], eax */ 17933 RECOMP_ICALL(0x3614A1C0u); /* 0x36149777: call 0x3614a1c0 */ /* not lifted */ 17934 RECOMP_FLAGS_IN(); 17935 edx = MEM32(ebp + (-0x18)); /* 0x3614977C: mov edx, dword ptr [ebp - 0x18] */ 17936 eax = MEM32(esi + 0x8); /* 0x3614977F: mov eax, dword ptr [esi + 8] */ 17937 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x3Cu); 17938 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17939 edx = edx + 0x3Cu; /* 0x36149782: add edx, 0x3c */ 17940 _flag_k = FK_ADD; 17941 PUSH32(esp, edx); /* 0x36149785: push edx */ 17942 PUSH32(esp, eax); /* 0x36149786: push eax */ 17943 PUSH32(esp, edi); /* 0x36149787: push edi */ 17944 ecx = esi; /* 0x36149788: mov ecx, esi */ 17945 RECOMP_ICALL(0x36149EF0u); /* 0x3614978A: call 0x36149ef0 */ /* not lifted */ 17946 RECOMP_FLAGS_IN(); 17947 ecx = MEM32(esi + 0x8); /* 0x3614978F: mov ecx, dword ptr [esi + 8] */ 17948 edx = MEM32(esi + 0x4); /* 0x36149792: mov edx, dword ptr [esi + 4] */ 17949 PUSH32(esp, ecx); /* 0x36149795: push ecx */ 17950 PUSH32(esp, edx); /* 0x36149796: push edx */ 17951 ecx = esi; /* 0x36149797: mov ecx, esi */ 17952 RECOMP_ICALL(0x36149EC0u); /* 0x36149799: call 0x36149ec0 */ /* not lifted */ 17953 RECOMP_FLAGS_IN(); 17954 eax = MEM32(esi + 0x4); /* 0x3614979E: mov eax, dword ptr [esi + 4] */ 17955 PUSH32(esp, eax); /* 0x361497A1: push eax */ 17956 RECOMP_ICALL(0x3615FCC4u); /* 0x361497A2: call 0x3615fcc4 */ /* not lifted */ 17957 RECOMP_FLAGS_IN(); 17958 eax = MEM32(ebp + (-0x2C)); /* 0x361497A7: mov eax, dword ptr [ebp - 0x2c] */ 17959 eax = eax + eax * 2; /* 0x361497AA: lea eax, [eax + eax*2] */ 17960 eax = eax + eax * 4; /* 0x361497AD: lea eax, [eax + eax*4] */ 17961 ecx = ebx + eax * 4; /* 0x361497B0: lea ecx, [ebx + eax*4] */ 17962 MEM32(esi + 0xC) = ecx; /* 0x361497B3: mov dword ptr [esi + 0xc], ecx */ 17963 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17964 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17965 esp = esp + 4; /* 0x361497B6: add esp, 4 */ 17966 _flag_k = FK_ADD; 17967 ecx = esi; /* 0x361497B9: mov ecx, esi */ 17968 RECOMP_ICALL(0x36149E90u); /* 0x361497BB: call 0x36149e90 */ /* not lifted */ 17969 RECOMP_FLAGS_IN(); 17970 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 17971 eax = eax + 1; /* 0x361497C0: inc eax */ 17972 _flag_k = FK_INC; 17973 eax = eax + eax * 2; /* 0x361497C1: lea eax, [eax + eax*2] */ 17974 edx = eax + eax * 4; /* 0x361497C4: lea edx, [eax + eax*4] */ 17975 eax = ebx + edx * 4; /* 0x361497C7: lea eax, [ebx + edx*4] */ 17976 MEM32(esi + 0x4) = ebx; /* 0x361497CA: mov dword ptr [esi + 4], ebx */ 17977 ebx = MEM32(ebp + 0xC); /* 0x361497CD: mov ebx, dword ptr [ebp + 0xc] */ 17978 MEM32(esi + 0x8) = eax; /* 0x361497D0: mov dword ptr [esi + 8], eax */ 17979 goto L_36149880; /* 0x361497D3: jmp 0x36149880 */ 17980 L_361497D8: 17981 edx = ecx; /* 0x361497D8: mov edx, ecx */ 17982 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 17983 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17984 edx = edx - edi; /* 0x361497DA: sub edx, edi */ 17985 _flag_k = FK_CMP; 17986 MEM32(ebp + (-0x18)) = edx; /* 0x361497DC: mov dword ptr [ebp - 0x18], edx */ 17987 eax = 0x88888889u; /* 0x361497DF: mov eax, 0x88888889 */ 17988 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x361497E4: imul edx */ 17989 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 17990 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 17991 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 17992 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17993 edx = edx + MEM32(ebp + (-0x18)); /* 0x361497E6: add edx, dword ptr [ebp - 0x18] */ 17994 _flag_k = FK_ADD; 17995 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x361497E9: sar edx, 5 */ 17996 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17997 edx = (uint32_t)((int32_t)edx >> 5u); 17998 eax = edx; /* 0x361497EC: mov eax, edx */ 17999 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x361497EE: shr eax, 0x1f */ 18000 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18001 eax = eax >> 31u; /* 0x361497EE: shr eax, 0x1f */ 18002 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 18003 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18004 edx = edx + eax; /* 0x361497F1: add edx, eax */ 18005 _flag_k = FK_ADD; 18006 /* cmp edx, 1 */ /* 0x361497F3: cmp edx, 1 */ 18007 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 18008 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18009 _flag_k = FK_CMP; 18010 if (CMP_AE(_flag_a, _flag_b)) goto L_3614984D; /* 0x361497F6: jae 0x3614984d */ 18011 L_361497F8: 18012 edx = edi + 0x3C; /* 0x361497F8: lea edx, [edi + 0x3c] */ 18013 PUSH32(esp, edx); /* 0x361497FB: push edx */ 18014 PUSH32(esp, ecx); /* 0x361497FC: push ecx */ 18015 PUSH32(esp, edi); /* 0x361497FD: push edi */ 18016 ecx = esi; /* 0x361497FE: mov ecx, esi */ 18017 RECOMP_ICALL(0x36149EF0u); /* 0x36149800: call 0x36149ef0 */ /* not lifted */ 18018 RECOMP_FLAGS_IN(); 18019 ecx = MEM32(esi + 0x8); /* 0x36149805: mov ecx, dword ptr [esi + 8] */ 18020 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 18021 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18022 ecx = ecx - edi; /* 0x36149808: sub ecx, edi */ 18023 _flag_k = FK_CMP; 18024 eax = ebp + (-0xAC); /* 0x3614980A: lea eax, [ebp - 0xac] */ 18025 PUSH32(esp, eax); /* 0x36149810: push eax */ 18026 eax = 0x88888889u; /* 0x36149811: mov eax, 0x88888889 */ 18027 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149816: imul ecx */ 18028 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 18029 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 18030 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 18031 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18032 edx = edx + ecx; /* 0x36149818: add edx, ecx */ 18033 _flag_k = FK_ADD; 18034 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x3614981A: sar edx, 5 */ 18035 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18036 edx = (uint32_t)((int32_t)edx >> 5u); 18037 ecx = edx; /* 0x3614981D: mov ecx, edx */ 18038 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614981F: shr ecx, 0x1f */ 18039 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18040 ecx = ecx >> 31u; /* 0x3614981F: shr ecx, 0x1f */ 18041 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 18042 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18043 edx = edx + ecx; /* 0x36149822: add edx, ecx */ 18044 _flag_k = FK_ADD; 18045 eax = 1; /* 0x36149824: mov eax, 1 */ 18046 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 18047 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18048 eax = eax - edx; /* 0x36149829: sub eax, edx */ 18049 _flag_k = FK_CMP; 18050 PUSH32(esp, eax); /* 0x3614982B: push eax */ 18051 eax = MEM32(esi + 0x8); /* 0x3614982C: mov eax, dword ptr [esi + 8] */ 18052 PUSH32(esp, eax); /* 0x3614982F: push eax */ 18053 ecx = esi; /* 0x36149830: mov ecx, esi */ 18054 RECOMP_ICALL(0x3614A1C0u); /* 0x36149832: call 0x3614a1c0 */ /* not lifted */ 18055 RECOMP_FLAGS_IN(); 18056 edx = MEM32(esi + 0x8); /* 0x36149837: mov edx, dword ptr [esi + 8] */ 18057 ecx = ebp + (-0xAC); /* 0x3614983A: lea ecx, [ebp - 0xac] */ 18058 PUSH32(esp, ecx); /* 0x36149840: push ecx */ 18059 PUSH32(esp, edx); /* 0x36149841: push edx */ 18060 PUSH32(esp, edi); /* 0x36149842: push edi */ 18061 RECOMP_ICALL(0x3614A360u); /* 0x36149843: call 0x3614a360 */ /* not lifted */ 18062 RECOMP_FLAGS_IN(); 18063 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 18064 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18065 esp = esp + 0xCu; /* 0x36149848: add esp, 0xc */ 18066 _flag_k = FK_ADD; 18067 goto L_3614987C; /* 0x3614984B: jmp 0x3614987c */ 18068 L_3614984D: 18069 PUSH32(esp, ecx); /* 0x3614984D: push ecx */ 18070 PUSH32(esp, ecx); /* 0x3614984E: push ecx */ 18071 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC4u); 18072 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18073 ecx = ecx + 0xFFFFFFC4u; /* 0x3614984F: add ecx, -0x3c */ 18074 _flag_k = FK_ADD; 18075 PUSH32(esp, ecx); /* 0x36149852: push ecx */ 18076 ecx = esi; /* 0x36149853: mov ecx, esi */ 18077 RECOMP_ICALL(0x36149EF0u); /* 0x36149855: call 0x36149ef0 */ /* not lifted */ 18078 RECOMP_FLAGS_IN(); 18079 eax = MEM32(esi + 0x8); /* 0x3614985A: mov eax, dword ptr [esi + 8] */ 18080 PUSH32(esp, eax); /* 0x3614985D: push eax */ 18081 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFC4u); 18082 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18083 eax = eax + 0xFFFFFFC4u; /* 0x3614985E: add eax, -0x3c */ 18084 _flag_k = FK_ADD; 18085 PUSH32(esp, eax); /* 0x36149861: push eax */ 18086 PUSH32(esp, edi); /* 0x36149862: push edi */ 18087 RECOMP_ICALL(0x3614A390u); /* 0x36149863: call 0x3614a390 */ /* not lifted */ 18088 RECOMP_FLAGS_IN(); 18089 eax = ebp + (-0xAC); /* 0x36149868: lea eax, [ebp - 0xac] */ 18090 PUSH32(esp, eax); /* 0x3614986E: push eax */ 18091 ecx = edi + 0x3C; /* 0x3614986F: lea ecx, [edi + 0x3c] */ 18092 PUSH32(esp, ecx); /* 0x36149872: push ecx */ 18093 PUSH32(esp, edi); /* 0x36149873: push edi */ 18094 RECOMP_ICALL(0x3614A360u); /* 0x36149874: call 0x3614a360 */ /* not lifted */ 18095 RECOMP_FLAGS_IN(); 18096 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 18097 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18098 esp = esp + 0x18u; /* 0x36149879: add esp, 0x18 */ 18099 _flag_k = FK_ADD; 18100 L_3614987C: 18101 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x3Cu); 18102 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18103 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x3Cu; /* 0x3614987C: add dword ptr [esi + 8], 0x3c */ 18104 _flag_k = FK_ADD; 18105 L_36149880: 18106 ecx = ebp + (-0xAC); /* 0x36149880: lea ecx, [ebp - 0xac] */ 18107 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36149886: mov dword ptr [ebp - 4], 0xffffffff */ 18108 RECOMP_ICALL(0x3602F940u); /* 0x3614988D: call 0x3602f940 */ /* not lifted */ 18109 RECOMP_FLAGS_IN(); 18110 eax = MEM32(ebp + (-0x14)); /* 0x36149892: mov eax, dword ptr [ebp - 0x14] */ 18111 edx = MEM32(ebp + (-0x50)); /* 0x36149895: mov edx, dword ptr [ebp - 0x50] */ 18112 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 18113 eax = eax + 1; /* 0x36149898: inc eax */ 18114 _flag_k = FK_INC; 18115 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 18116 edx = edx & 0xFFu; /* 0x36149899: and edx, 0xff */ 18117 _cf = 0; 18118 _flag_k = FK_TEST; 18119 /* cmp eax, edx */ /* 0x3614989F: cmp eax, edx */ 18120 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 18121 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18122 _flag_k = FK_CMP; 18123 MEM32(ebp + (-0x14)) = eax; /* 0x361498A1: mov dword ptr [ebp - 0x14], eax */ 18124 RECOMP_BACKEDGE(); 18125 if (CMP_L(_flag_a, _flag_b)) goto L_361496BD; /* 0x361498A4: jl 0x361496bd */ 18126 L_361498AA: 18127 esi = MEM32(ebp + 0x8); /* 0x361498AA: mov esi, dword ptr [ebp + 8] */ 18128 ecx = esi; /* 0x361498AD: mov ecx, esi */ 18129 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361498AF: call dword ptr [0x3616fadc] */ 18130 RECOMP_FLAGS_IN(); 18131 /* test eax, eax */ /* 0x361498B5: test eax, eax */ 18132 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18133 _cf = 0; 18134 _flag_k = FK_TEST; 18135 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498F7; /* 0x361498B7: jne 0x361498f7 */ 18136 L_361498B9: 18137 ebx = MEM32(ebx); /* 0x361498B9: mov ebx, dword ptr [ebx] */ 18138 eax = MEM32(ebx + 0x4); /* 0x361498BB: mov eax, dword ptr [ebx + 4] */ 18139 /* test eax, eax */ /* 0x361498BE: test eax, eax */ 18140 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18141 _cf = 0; 18142 _flag_k = FK_TEST; 18143 if (TEST_NZ(_flag_a, _flag_b)) goto L_361498C7; /* 0x361498C0: jne 0x361498c7 */ 18144 L_361498C2: 18145 eax = MEM32(0x3616F10C); /* 0x361498C2: mov eax, dword ptr [0x3616f10c] */ 18146 L_361498C7: 18147 PUSH32(esp, eax); /* 0x361498C7: push eax */ 18148 PUSH32(esp, 0x362E75FCu); /* 0x361498C8: push 0x362e75fc */ 18149 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x361498CD: call dword ptr [0x3616f18c] */ 18150 RECOMP_FLAGS_IN(); 18151 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 18152 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18153 esp = esp + 8; /* 0x361498D3: add esp, 8 */ 18154 _flag_k = FK_ADD; 18155 PUSH32(esp, 0x362E75CCu); /* 0x361498D6: push 0x362e75cc */ 18156 ecx = ebp + (-0xB4); /* 0x361498DB: lea ecx, [ebp - 0xb4] */ 18157 RECOMP_ICALL(0x36008EF0u); /* 0x361498E1: call 0x36008ef0 */ /* not lifted */ 18158 RECOMP_FLAGS_IN(); 18159 PUSH32(esp, 0x36184170u); /* 0x361498E6: push 0x36184170 */ 18160 eax = ebp + (-0xB4); /* 0x361498EB: lea eax, [ebp - 0xb4] */ 18161 PUSH32(esp, eax); /* 0x361498F1: push eax */ 18162 RECOMP_ICALL(0x3615FD70u); /* 0x361498F2: call 0x3615fd70 */ /* not lifted */ 18163 RECOMP_FLAGS_IN(); 18164 L_361498F7: 18165 ecx = MEM32(ebp + (-0xC)); /* 0x361498F7: mov ecx, dword ptr [ebp - 0xc] */ 18166 edi = POP32_VAL(esp); /* 0x361498FA: pop edi */ 18167 eax = esi; /* 0x361498FB: mov eax, esi */ 18168 esi = POP32_VAL(esp); /* 0x361498FD: pop esi */ 18169 ebx = POP32_VAL(esp); /* 0x361498FE: pop ebx */ 18170 MEM32(FS_BASE + (0)) = ecx; /* 0x361498FF: mov dword ptr fs:[0], ecx */ 18171 esp = ebp; /* 0x36149906: mov esp, ebp */ 18172 ebp = POP32_VAL(esp); /* 0x36149908: pop ebp */ 18173 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149909: ret */ 18174 RECOMP_REGS_OUT(); 18175 } 18176 18177 void sub_36149A30(void) { 18178 int _fpu_cmp = 0; 18179 uint32_t _cf = 0; 18180 int _df = 1; 18181 uint32_t _flag_k = FK_NONE; 18182 uint32_t _flag_a = 0, _flag_b = 0; 18183 uint32_t _itail_tgt = 0; 18184 RECOMP_REGS_LOCALS 18185 RECOMP_ENTER(0x36149A30u); 18186 18187 L_36149A30: 18188 PUSH32(esp, ebp); /* 0x36149A30: push ebp */ 18189 ebp = esp; /* 0x36149A31: mov ebp, esp */ 18190 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 18191 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18192 esp = esp - 8; /* 0x36149A33: sub esp, 8 */ 18193 _flag_k = FK_CMP; 18194 eax = ecx; /* 0x36149A36: mov eax, ecx */ 18195 ecx = MEM32(ebp + 0x8); /* 0x36149A38: mov ecx, dword ptr [ebp + 8] */ 18196 /* cmp eax, ecx */ /* 0x36149A3B: cmp eax, ecx */ 18197 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 18198 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18199 _flag_k = FK_CMP; 18200 PUSH32(esp, ebx); /* 0x36149A3D: push ebx */ 18201 PUSH32(esp, esi); /* 0x36149A3E: push esi */ 18202 PUSH32(esp, edi); /* 0x36149A3F: push edi */ 18203 MEM32(ebp + (-0x4)) = eax; /* 0x36149A40: mov dword ptr [ebp - 4], eax */ 18204 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149BE9; /* 0x36149A43: je 0x36149be9 */ 18205 L_36149A49: 18206 esi = MEM32(ecx + 0x4); /* 0x36149A49: mov esi, dword ptr [ecx + 4] */ 18207 /* test esi, esi */ /* 0x36149A4C: test esi, esi */ 18208 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 18209 _cf = 0; 18210 _flag_k = FK_TEST; 18211 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149A54; /* 0x36149A4E: jne 0x36149a54 */ 18212 L_36149A50: 18213 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18214 ebx = 0; /* 0x36149A50: xor ebx, ebx */ 18215 _cf = 0; 18216 _flag_k = FK_TEST; 18217 goto L_36149A5C; /* 0x36149A52: jmp 0x36149a5c */ 18218 L_36149A54: 18219 ebx = MEM32(ecx + 0x8); /* 0x36149A54: mov ebx, dword ptr [ecx + 8] */ 18220 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 18221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18222 ebx = ebx - esi; /* 0x36149A57: sub ebx, esi */ 18223 _flag_k = FK_CMP; 18224 if (3u) _cf = (((ebx) >> 2) & 1u); /* 0x36149A59: sar ebx, 3 */ 18225 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ebx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18226 ebx = (uint32_t)((int32_t)ebx >> 3u); 18227 L_36149A5C: 18228 edx = MEM32(eax + 0x4); /* 0x36149A5C: mov edx, dword ptr [eax + 4] */ 18229 /* test edx, edx */ /* 0x36149A5F: test edx, edx */ 18230 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 18231 _cf = 0; 18232 _flag_k = FK_TEST; 18233 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149A67; /* 0x36149A61: jne 0x36149a67 */ 18234 L_36149A63: 18235 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18236 edi = 0; /* 0x36149A63: xor edi, edi */ 18237 _cf = 0; 18238 _flag_k = FK_TEST; 18239 goto L_36149A6F; /* 0x36149A65: jmp 0x36149a6f */ 18240 L_36149A67: 18241 edi = MEM32(eax + 0x8); /* 0x36149A67: mov edi, dword ptr [eax + 8] */ 18242 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 18243 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18244 edi = edi - edx; /* 0x36149A6A: sub edi, edx */ 18245 _flag_k = FK_CMP; 18246 if (3u) _cf = (((edi) >> 2) & 1u); /* 0x36149A6C: sar edi, 3 */ 18247 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18248 edi = (uint32_t)((int32_t)edi >> 3u); 18249 L_36149A6F: 18250 /* cmp ebx, edi */ /* 0x36149A6F: cmp ebx, edi */ 18251 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 18252 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18253 _flag_k = FK_CMP; 18254 if (CMP_A(_flag_a, _flag_b)) goto L_36149AC9; /* 0x36149A71: ja 0x36149ac9 */ 18255 L_36149A73: 18256 ebx = MEM32(ecx + 0x8); /* 0x36149A73: mov ebx, dword ptr [ecx + 8] */ 18257 /* cmp esi, ebx */ /* 0x36149A76: cmp esi, ebx */ 18258 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 18259 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18260 _flag_k = FK_CMP; 18261 edi = edx; /* 0x36149A78: mov edi, edx */ 18262 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149A94; /* 0x36149A7A: je 0x36149a94 */ 18263 L_36149A7C: 18264 PUSH32(esp, esi); /* 0x36149A7C: push esi */ 18265 ecx = edi; /* 0x36149A7D: mov ecx, edi */ 18266 RECOMP_ICALL(0x3614A420u); /* 0x36149A7F: call 0x3614a420 */ /* not lifted */ 18267 RECOMP_FLAGS_IN(); 18268 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 18269 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18270 esi = esi + 8; /* 0x36149A84: add esi, 8 */ 18271 _flag_k = FK_ADD; 18272 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 18273 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18274 edi = edi + 8; /* 0x36149A87: add edi, 8 */ 18275 _flag_k = FK_ADD; 18276 /* cmp esi, ebx */ /* 0x36149A8A: cmp esi, ebx */ 18277 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 18278 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18279 _flag_k = FK_CMP; 18280 RECOMP_BACKEDGE(); 18281 if (CMP_NE(_flag_a, _flag_b)) goto L_36149A7C; /* 0x36149A8C: jne 0x36149a7c */ 18282 L_36149A8E: 18283 ecx = MEM32(ebp + 0x8); /* 0x36149A8E: mov ecx, dword ptr [ebp + 8] */ 18284 eax = MEM32(ebp + (-0x4)); /* 0x36149A91: mov eax, dword ptr [ebp - 4] */ 18285 L_36149A94: 18286 esi = MEM32(ecx + 0x4); /* 0x36149A94: mov esi, dword ptr [ecx + 4] */ 18287 /* test esi, esi */ /* 0x36149A97: test esi, esi */ 18288 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 18289 _cf = 0; 18290 _flag_k = FK_TEST; 18291 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AAF; /* 0x36149A99: jne 0x36149aaf */ 18292 L_36149A9B: 18293 ecx = MEM32(eax + 0x4); /* 0x36149A9B: mov ecx, dword ptr [eax + 4] */ 18294 edi = POP32_VAL(esp); /* 0x36149A9E: pop edi */ 18295 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18296 edx = 0; /* 0x36149A9F: xor edx, edx */ 18297 _cf = 0; 18298 _flag_k = FK_TEST; 18299 edx = ecx + edx * 8; /* 0x36149AA1: lea edx, [ecx + edx*8] */ 18300 esi = POP32_VAL(esp); /* 0x36149AA4: pop esi */ 18301 MEM32(eax + 0x8) = edx; /* 0x36149AA5: mov dword ptr [eax + 8], edx */ 18302 ebx = POP32_VAL(esp); /* 0x36149AA8: pop ebx */ 18303 esp = ebp; /* 0x36149AA9: mov esp, ebp */ 18304 ebp = POP32_VAL(esp); /* 0x36149AAB: pop ebp */ 18305 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149AAC: ret 4 */ 18306 L_36149AAF: 18307 edx = MEM32(ecx + 0x8); /* 0x36149AAF: mov edx, dword ptr [ecx + 8] */ 18308 ecx = MEM32(eax + 0x4); /* 0x36149AB2: mov ecx, dword ptr [eax + 4] */ 18309 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 18310 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18311 edx = edx - esi; /* 0x36149AB5: sub edx, esi */ 18312 _flag_k = FK_CMP; 18313 edi = POP32_VAL(esp); /* 0x36149AB7: pop edi */ 18314 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149AB8: sar edx, 3 */ 18315 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18316 edx = (uint32_t)((int32_t)edx >> 3u); 18317 edx = ecx + edx * 8; /* 0x36149ABB: lea edx, [ecx + edx*8] */ 18318 esi = POP32_VAL(esp); /* 0x36149ABE: pop esi */ 18319 MEM32(eax + 0x8) = edx; /* 0x36149ABF: mov dword ptr [eax + 8], edx */ 18320 ebx = POP32_VAL(esp); /* 0x36149AC2: pop ebx */ 18321 esp = ebp; /* 0x36149AC3: mov esp, ebp */ 18322 ebp = POP32_VAL(esp); /* 0x36149AC5: pop ebp */ 18323 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149AC6: ret 4 */ 18324 L_36149AC9: 18325 /* test esi, esi */ /* 0x36149AC9: test esi, esi */ 18326 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 18327 _cf = 0; 18328 _flag_k = FK_TEST; 18329 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AD1; /* 0x36149ACB: jne 0x36149ad1 */ 18330 L_36149ACD: 18331 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18332 ecx = 0; /* 0x36149ACD: xor ecx, ecx */ 18333 _cf = 0; 18334 _flag_k = FK_TEST; 18335 goto L_36149AD9; /* 0x36149ACF: jmp 0x36149ad9 */ 18336 L_36149AD1: 18337 ecx = MEM32(ecx + 0x8); /* 0x36149AD1: mov ecx, dword ptr [ecx + 8] */ 18338 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 18339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18340 ecx = ecx - esi; /* 0x36149AD4: sub ecx, esi */ 18341 _flag_k = FK_CMP; 18342 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149AD6: sar ecx, 3 */ 18343 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18344 ecx = (uint32_t)((int32_t)ecx >> 3u); 18345 L_36149AD9: 18346 /* test edx, edx */ /* 0x36149AD9: test edx, edx */ 18347 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 18348 _cf = 0; 18349 _flag_k = FK_TEST; 18350 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AE1; /* 0x36149ADB: jne 0x36149ae1 */ 18351 L_36149ADD: 18352 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18353 edi = 0; /* 0x36149ADD: xor edi, edi */ 18354 _cf = 0; 18355 _flag_k = FK_TEST; 18356 goto L_36149AE9; /* 0x36149ADF: jmp 0x36149ae9 */ 18357 L_36149AE1: 18358 edi = MEM32(eax + 0xC); /* 0x36149AE1: mov edi, dword ptr [eax + 0xc] */ 18359 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 18360 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18361 edi = edi - edx; /* 0x36149AE4: sub edi, edx */ 18362 _flag_k = FK_CMP; 18363 if (3u) _cf = (((edi) >> 2) & 1u); /* 0x36149AE6: sar edi, 3 */ 18364 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18365 edi = (uint32_t)((int32_t)edi >> 3u); 18366 L_36149AE9: 18367 /* cmp ecx, edi */ /* 0x36149AE9: cmp ecx, edi */ 18368 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 18369 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18370 _flag_k = FK_CMP; 18371 if (CMP_A(_flag_a, _flag_b)) goto L_36149B7F; /* 0x36149AEB: ja 0x36149b7f */ 18372 L_36149AF1: 18373 /* test edx, edx */ /* 0x36149AF1: test edx, edx */ 18374 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 18375 _cf = 0; 18376 _flag_k = FK_TEST; 18377 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AF9; /* 0x36149AF3: jne 0x36149af9 */ 18378 L_36149AF5: 18379 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18380 ecx = 0; /* 0x36149AF5: xor ecx, ecx */ 18381 _cf = 0; 18382 _flag_k = FK_TEST; 18383 goto L_36149B01; /* 0x36149AF7: jmp 0x36149b01 */ 18384 L_36149AF9: 18385 ecx = MEM32(eax + 0x8); /* 0x36149AF9: mov ecx, dword ptr [eax + 8] */ 18386 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 18387 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18388 ecx = ecx - edx; /* 0x36149AFC: sub ecx, edx */ 18389 _flag_k = FK_CMP; 18390 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149AFE: sar ecx, 3 */ 18391 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18392 ecx = (uint32_t)((int32_t)ecx >> 3u); 18393 L_36149B01: 18394 ecx = esi + ecx * 8; /* 0x36149B01: lea ecx, [esi + ecx*8] */ 18395 eax = esi; /* 0x36149B04: mov eax, esi */ 18396 /* cmp eax, ecx */ /* 0x36149B06: cmp eax, ecx */ 18397 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 18398 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18399 _flag_k = FK_CMP; 18400 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149B1E; /* 0x36149B08: je 0x36149b1e */ 18401 L_36149B0A: 18402 esi = MEM32(eax); /* 0x36149B0A: mov esi, dword ptr [eax] */ 18403 MEM32(edx) = esi; /* 0x36149B0C: mov dword ptr [edx], esi */ 18404 esi = MEM32(eax + 0x4); /* 0x36149B0E: mov esi, dword ptr [eax + 4] */ 18405 MEM32(edx + 0x4) = esi; /* 0x36149B11: mov dword ptr [edx + 4], esi */ 18406 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 18407 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18408 eax = eax + 8; /* 0x36149B14: add eax, 8 */ 18409 _flag_k = FK_ADD; 18410 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 18411 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18412 edx = edx + 8; /* 0x36149B17: add edx, 8 */ 18413 _flag_k = FK_ADD; 18414 /* cmp eax, ecx */ /* 0x36149B1A: cmp eax, ecx */ 18415 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 18416 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18417 _flag_k = FK_CMP; 18418 RECOMP_BACKEDGE(); 18419 if (CMP_NE(_flag_a, _flag_b)) goto L_36149B0A; /* 0x36149B1C: jne 0x36149b0a */ 18420 L_36149B1E: 18421 eax = MEM32(ebp + 0x8); /* 0x36149B1E: mov eax, dword ptr [ebp + 8] */ 18422 ebx = MEM32(eax + 0x8); /* 0x36149B21: mov ebx, dword ptr [eax + 8] */ 18423 /* cmp ecx, ebx */ /* 0x36149B24: cmp ecx, ebx */ 18424 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 18425 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18426 _flag_k = FK_CMP; 18427 eax = MEM32(ebp + (-0x4)); /* 0x36149B26: mov eax, dword ptr [ebp - 4] */ 18428 edi = MEM32(eax + 0x8); /* 0x36149B29: mov edi, dword ptr [eax + 8] */ 18429 esi = ecx; /* 0x36149B2C: mov esi, ecx */ 18430 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149B47; /* 0x36149B2E: je 0x36149b47 */ 18431 L_36149B30: 18432 PUSH32(esp, esi); /* 0x36149B30: push esi */ 18433 PUSH32(esp, edi); /* 0x36149B31: push edi */ 18434 RECOMP_ICALL(0x36059750u); /* 0x36149B32: call 0x36059750 */ /* not lifted */ 18435 RECOMP_FLAGS_IN(); 18436 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 18437 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18438 esi = esi + 8; /* 0x36149B37: add esi, 8 */ 18439 _flag_k = FK_ADD; 18440 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 18441 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18442 esp = esp + 8; /* 0x36149B3A: add esp, 8 */ 18443 _flag_k = FK_ADD; 18444 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 18445 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18446 edi = edi + 8; /* 0x36149B3D: add edi, 8 */ 18447 _flag_k = FK_ADD; 18448 /* cmp esi, ebx */ /* 0x36149B40: cmp esi, ebx */ 18449 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 18450 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18451 _flag_k = FK_CMP; 18452 RECOMP_BACKEDGE(); 18453 if (CMP_NE(_flag_a, _flag_b)) goto L_36149B30; /* 0x36149B42: jne 0x36149b30 */ 18454 L_36149B44: 18455 eax = MEM32(ebp + (-0x4)); /* 0x36149B44: mov eax, dword ptr [ebp - 4] */ 18456 L_36149B47: 18457 ecx = MEM32(ebp + 0x8); /* 0x36149B47: mov ecx, dword ptr [ebp + 8] */ 18458 edx = MEM32(ecx + 0x4); /* 0x36149B4A: mov edx, dword ptr [ecx + 4] */ 18459 /* test edx, edx */ /* 0x36149B4D: test edx, edx */ 18460 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 18461 _cf = 0; 18462 _flag_k = FK_TEST; 18463 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149B65; /* 0x36149B4F: jne 0x36149b65 */ 18464 L_36149B51: 18465 edx = MEM32(eax + 0x4); /* 0x36149B51: mov edx, dword ptr [eax + 4] */ 18466 edi = POP32_VAL(esp); /* 0x36149B54: pop edi */ 18467 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18468 ecx = 0; /* 0x36149B55: xor ecx, ecx */ 18469 _cf = 0; 18470 _flag_k = FK_TEST; 18471 ecx = edx + ecx * 8; /* 0x36149B57: lea ecx, [edx + ecx*8] */ 18472 esi = POP32_VAL(esp); /* 0x36149B5A: pop esi */ 18473 MEM32(eax + 0x8) = ecx; /* 0x36149B5B: mov dword ptr [eax + 8], ecx */ 18474 ebx = POP32_VAL(esp); /* 0x36149B5E: pop ebx */ 18475 esp = ebp; /* 0x36149B5F: mov esp, ebp */ 18476 ebp = POP32_VAL(esp); /* 0x36149B61: pop ebp */ 18477 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149B62: ret 4 */ 18478 L_36149B65: 18479 ecx = MEM32(ecx + 0x8); /* 0x36149B65: mov ecx, dword ptr [ecx + 8] */ 18480 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 18481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18482 ecx = ecx - edx; /* 0x36149B68: sub ecx, edx */ 18483 _flag_k = FK_CMP; 18484 edx = MEM32(eax + 0x4); /* 0x36149B6A: mov edx, dword ptr [eax + 4] */ 18485 edi = POP32_VAL(esp); /* 0x36149B6D: pop edi */ 18486 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149B6E: sar ecx, 3 */ 18487 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18488 ecx = (uint32_t)((int32_t)ecx >> 3u); 18489 ecx = edx + ecx * 8; /* 0x36149B71: lea ecx, [edx + ecx*8] */ 18490 esi = POP32_VAL(esp); /* 0x36149B74: pop esi */ 18491 MEM32(eax + 0x8) = ecx; /* 0x36149B75: mov dword ptr [eax + 8], ecx */ 18492 ebx = POP32_VAL(esp); /* 0x36149B78: pop ebx */ 18493 esp = ebp; /* 0x36149B79: mov esp, ebp */ 18494 ebp = POP32_VAL(esp); /* 0x36149B7B: pop ebp */ 18495 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149B7C: ret 4 */ 18496 L_36149B7F: 18497 PUSH32(esp, edx); /* 0x36149B7F: push edx */ 18498 MEM32(ebp + (-0x8)) = edx; /* 0x36149B80: mov dword ptr [ebp - 8], edx */ 18499 RECOMP_ICALL(0x3615FCC4u); /* 0x36149B83: call 0x3615fcc4 */ /* not lifted */ 18500 RECOMP_FLAGS_IN(); 18501 esi = MEM32(ebp + 0x8); /* 0x36149B88: mov esi, dword ptr [ebp + 8] */ 18502 ecx = MEM32(esi + 0x4); /* 0x36149B8B: mov ecx, dword ptr [esi + 4] */ 18503 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18504 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18505 esp = esp + 4; /* 0x36149B8E: add esp, 4 */ 18506 _flag_k = FK_ADD; 18507 /* test ecx, ecx */ /* 0x36149B91: test ecx, ecx */ 18508 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 18509 _cf = 0; 18510 _flag_k = FK_TEST; 18511 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149B99; /* 0x36149B93: jne 0x36149b99 */ 18512 L_36149B95: 18513 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18514 eax = 0; /* 0x36149B95: xor eax, eax */ 18515 _cf = 0; 18516 _flag_k = FK_TEST; 18517 goto L_36149BA1; /* 0x36149B97: jmp 0x36149ba1 */ 18518 L_36149B99: 18519 eax = MEM32(esi + 0x8); /* 0x36149B99: mov eax, dword ptr [esi + 8] */ 18520 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 18521 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18522 eax = eax - ecx; /* 0x36149B9C: sub eax, ecx */ 18523 _flag_k = FK_CMP; 18524 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x36149B9E: sar eax, 3 */ 18525 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18526 eax = (uint32_t)((int32_t)eax >> 3u); 18527 L_36149BA1: 18528 /* test eax, eax */ /* 0x36149BA1: test eax, eax */ 18529 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18530 _cf = 0; 18531 _flag_k = FK_TEST; 18532 if (TEST_NS(_flag_a, _flag_b)) goto L_36149BA7; /* 0x36149BA3: jge 0x36149ba7 */ 18533 L_36149BA5: 18534 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18535 eax = 0; /* 0x36149BA5: xor eax, eax */ 18536 _cf = 0; 18537 _flag_k = FK_TEST; 18538 L_36149BA7: 18539 edx = eax * 8; /* 0x36149BA7: lea edx, [eax*8] */ 18540 PUSH32(esp, edx); /* 0x36149BAE: push edx */ 18541 RECOMP_ICALL(0x3615FD6Au); /* 0x36149BAF: call 0x3615fd6a */ /* not lifted */ 18542 RECOMP_FLAGS_IN(); 18543 ecx = MEM32(ebp + (-0x4)); /* 0x36149BB4: mov ecx, dword ptr [ebp - 4] */ 18544 edx = MEM32(ebp + 0x8); /* 0x36149BB7: mov edx, dword ptr [ebp + 8] */ 18545 MEM32(ecx + 0x4) = eax; /* 0x36149BBA: mov dword ptr [ecx + 4], eax */ 18546 ebx = MEM32(esi + 0x8); /* 0x36149BBD: mov ebx, dword ptr [esi + 8] */ 18547 esi = MEM32(edx + 0x4); /* 0x36149BC0: mov esi, dword ptr [edx + 4] */ 18548 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18549 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18550 esp = esp + 4; /* 0x36149BC3: add esp, 4 */ 18551 _flag_k = FK_ADD; 18552 /* cmp esi, ebx */ /* 0x36149BC6: cmp esi, ebx */ 18553 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 18554 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18555 _flag_k = FK_CMP; 18556 edi = eax; /* 0x36149BC8: mov edi, eax */ 18557 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149BE0; /* 0x36149BCA: je 0x36149be0 */ 18558 L_36149BCC: 18559 PUSH32(esp, esi); /* 0x36149BCC: push esi */ 18560 PUSH32(esp, edi); /* 0x36149BCD: push edi */ 18561 RECOMP_ICALL(0x36059750u); /* 0x36149BCE: call 0x36059750 */ /* not lifted */ 18562 RECOMP_FLAGS_IN(); 18563 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 18564 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18565 esi = esi + 8; /* 0x36149BD3: add esi, 8 */ 18566 _flag_k = FK_ADD; 18567 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 18568 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18569 esp = esp + 8; /* 0x36149BD6: add esp, 8 */ 18570 _flag_k = FK_ADD; 18571 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 18572 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18573 edi = edi + 8; /* 0x36149BD9: add edi, 8 */ 18574 _flag_k = FK_ADD; 18575 /* cmp esi, ebx */ /* 0x36149BDC: cmp esi, ebx */ 18576 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 18577 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18578 _flag_k = FK_CMP; 18579 RECOMP_BACKEDGE(); 18580 if (CMP_NE(_flag_a, _flag_b)) goto L_36149BCC; /* 0x36149BDE: jne 0x36149bcc */ 18581 L_36149BE0: 18582 eax = MEM32(ebp + (-0x4)); /* 0x36149BE0: mov eax, dword ptr [ebp - 4] */ 18583 MEM32(eax + 0x8) = edi; /* 0x36149BE3: mov dword ptr [eax + 8], edi */ 18584 MEM32(eax + 0xC) = edi; /* 0x36149BE6: mov dword ptr [eax + 0xc], edi */ 18585 L_36149BE9: 18586 edi = POP32_VAL(esp); /* 0x36149BE9: pop edi */ 18587 esi = POP32_VAL(esp); /* 0x36149BEA: pop esi */ 18588 ebx = POP32_VAL(esp); /* 0x36149BEB: pop ebx */ 18589 esp = ebp; /* 0x36149BEC: mov esp, ebp */ 18590 ebp = POP32_VAL(esp); /* 0x36149BEE: pop ebp */ 18591 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149BEF: ret 4 */ 18592 RECOMP_REGS_OUT(); 18593 } 18594 18595 void sub_36149A5C(void) { 18596 int _fpu_cmp = 0; 18597 uint32_t _cf = 0; 18598 int _df = 1; 18599 uint32_t _flag_k = FK_NONE; 18600 uint32_t _flag_a = 0, _flag_b = 0; 18601 uint32_t _itail_tgt = 0; 18602 RECOMP_REGS_LOCALS 18603 RECOMP_ENTER(0x36149A5Cu); 18604 18605 L_36149A5C: 18606 edx = MEM32(eax + 0x4); /* 0x36149A5C: mov edx, dword ptr [eax + 4] */ 18607 /* test edx, edx */ /* 0x36149A5F: test edx, edx */ 18608 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 18609 _cf = 0; 18610 _flag_k = FK_TEST; 18611 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149A67; /* 0x36149A61: jne 0x36149a67 */ 18612 L_36149A63: 18613 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18614 edi = 0; /* 0x36149A63: xor edi, edi */ 18615 _cf = 0; 18616 _flag_k = FK_TEST; 18617 goto L_36149A6F; /* 0x36149A65: jmp 0x36149a6f */ 18618 L_36149A67: 18619 edi = MEM32(eax + 0x8); /* 0x36149A67: mov edi, dword ptr [eax + 8] */ 18620 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 18621 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18622 edi = edi - edx; /* 0x36149A6A: sub edi, edx */ 18623 _flag_k = FK_CMP; 18624 if (3u) _cf = (((edi) >> 2) & 1u); /* 0x36149A6C: sar edi, 3 */ 18625 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18626 edi = (uint32_t)((int32_t)edi >> 3u); 18627 L_36149A6F: 18628 /* cmp ebx, edi */ /* 0x36149A6F: cmp ebx, edi */ 18629 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 18630 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18631 _flag_k = FK_CMP; 18632 if (CMP_A(_flag_a, _flag_b)) goto L_36149AC9; /* 0x36149A71: ja 0x36149ac9 */ 18633 L_36149A73: 18634 ebx = MEM32(ecx + 0x8); /* 0x36149A73: mov ebx, dword ptr [ecx + 8] */ 18635 /* cmp esi, ebx */ /* 0x36149A76: cmp esi, ebx */ 18636 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 18637 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18638 _flag_k = FK_CMP; 18639 edi = edx; /* 0x36149A78: mov edi, edx */ 18640 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149A94; /* 0x36149A7A: je 0x36149a94 */ 18641 L_36149A7C: 18642 PUSH32(esp, esi); /* 0x36149A7C: push esi */ 18643 ecx = edi; /* 0x36149A7D: mov ecx, edi */ 18644 RECOMP_ICALL(0x3614A420u); /* 0x36149A7F: call 0x3614a420 */ /* not lifted */ 18645 RECOMP_FLAGS_IN(); 18646 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 18647 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18648 esi = esi + 8; /* 0x36149A84: add esi, 8 */ 18649 _flag_k = FK_ADD; 18650 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 18651 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18652 edi = edi + 8; /* 0x36149A87: add edi, 8 */ 18653 _flag_k = FK_ADD; 18654 /* cmp esi, ebx */ /* 0x36149A8A: cmp esi, ebx */ 18655 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 18656 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18657 _flag_k = FK_CMP; 18658 RECOMP_BACKEDGE(); 18659 if (CMP_NE(_flag_a, _flag_b)) goto L_36149A7C; /* 0x36149A8C: jne 0x36149a7c */ 18660 L_36149A8E: 18661 ecx = MEM32(ebp + 0x8); /* 0x36149A8E: mov ecx, dword ptr [ebp + 8] */ 18662 eax = MEM32(ebp + (-0x4)); /* 0x36149A91: mov eax, dword ptr [ebp - 4] */ 18663 L_36149A94: 18664 esi = MEM32(ecx + 0x4); /* 0x36149A94: mov esi, dword ptr [ecx + 4] */ 18665 /* test esi, esi */ /* 0x36149A97: test esi, esi */ 18666 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 18667 _cf = 0; 18668 _flag_k = FK_TEST; 18669 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AAF; /* 0x36149A99: jne 0x36149aaf */ 18670 L_36149A9B: 18671 ecx = MEM32(eax + 0x4); /* 0x36149A9B: mov ecx, dword ptr [eax + 4] */ 18672 edi = POP32_VAL(esp); /* 0x36149A9E: pop edi */ 18673 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18674 edx = 0; /* 0x36149A9F: xor edx, edx */ 18675 _cf = 0; 18676 _flag_k = FK_TEST; 18677 edx = ecx + edx * 8; /* 0x36149AA1: lea edx, [ecx + edx*8] */ 18678 esi = POP32_VAL(esp); /* 0x36149AA4: pop esi */ 18679 MEM32(eax + 0x8) = edx; /* 0x36149AA5: mov dword ptr [eax + 8], edx */ 18680 ebx = POP32_VAL(esp); /* 0x36149AA8: pop ebx */ 18681 esp = ebp; /* 0x36149AA9: mov esp, ebp */ 18682 ebp = POP32_VAL(esp); /* 0x36149AAB: pop ebp */ 18683 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149AAC: ret 4 */ 18684 L_36149AAF: 18685 edx = MEM32(ecx + 0x8); /* 0x36149AAF: mov edx, dword ptr [ecx + 8] */ 18686 ecx = MEM32(eax + 0x4); /* 0x36149AB2: mov ecx, dword ptr [eax + 4] */ 18687 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 18688 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18689 edx = edx - esi; /* 0x36149AB5: sub edx, esi */ 18690 _flag_k = FK_CMP; 18691 edi = POP32_VAL(esp); /* 0x36149AB7: pop edi */ 18692 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149AB8: sar edx, 3 */ 18693 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18694 edx = (uint32_t)((int32_t)edx >> 3u); 18695 edx = ecx + edx * 8; /* 0x36149ABB: lea edx, [ecx + edx*8] */ 18696 esi = POP32_VAL(esp); /* 0x36149ABE: pop esi */ 18697 MEM32(eax + 0x8) = edx; /* 0x36149ABF: mov dword ptr [eax + 8], edx */ 18698 ebx = POP32_VAL(esp); /* 0x36149AC2: pop ebx */ 18699 esp = ebp; /* 0x36149AC3: mov esp, ebp */ 18700 ebp = POP32_VAL(esp); /* 0x36149AC5: pop ebp */ 18701 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149AC6: ret 4 */ 18702 L_36149AC9: 18703 /* test esi, esi */ /* 0x36149AC9: test esi, esi */ 18704 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 18705 _cf = 0; 18706 _flag_k = FK_TEST; 18707 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AD1; /* 0x36149ACB: jne 0x36149ad1 */ 18708 L_36149ACD: 18709 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18710 ecx = 0; /* 0x36149ACD: xor ecx, ecx */ 18711 _cf = 0; 18712 _flag_k = FK_TEST; 18713 goto L_36149AD9; /* 0x36149ACF: jmp 0x36149ad9 */ 18714 L_36149AD1: 18715 ecx = MEM32(ecx + 0x8); /* 0x36149AD1: mov ecx, dword ptr [ecx + 8] */ 18716 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 18717 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18718 ecx = ecx - esi; /* 0x36149AD4: sub ecx, esi */ 18719 _flag_k = FK_CMP; 18720 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149AD6: sar ecx, 3 */ 18721 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18722 ecx = (uint32_t)((int32_t)ecx >> 3u); 18723 L_36149AD9: 18724 /* test edx, edx */ /* 0x36149AD9: test edx, edx */ 18725 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 18726 _cf = 0; 18727 _flag_k = FK_TEST; 18728 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AE1; /* 0x36149ADB: jne 0x36149ae1 */ 18729 L_36149ADD: 18730 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18731 edi = 0; /* 0x36149ADD: xor edi, edi */ 18732 _cf = 0; 18733 _flag_k = FK_TEST; 18734 goto L_36149AE9; /* 0x36149ADF: jmp 0x36149ae9 */ 18735 L_36149AE1: 18736 edi = MEM32(eax + 0xC); /* 0x36149AE1: mov edi, dword ptr [eax + 0xc] */ 18737 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 18738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18739 edi = edi - edx; /* 0x36149AE4: sub edi, edx */ 18740 _flag_k = FK_CMP; 18741 if (3u) _cf = (((edi) >> 2) & 1u); /* 0x36149AE6: sar edi, 3 */ 18742 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18743 edi = (uint32_t)((int32_t)edi >> 3u); 18744 L_36149AE9: 18745 /* cmp ecx, edi */ /* 0x36149AE9: cmp ecx, edi */ 18746 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 18747 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18748 _flag_k = FK_CMP; 18749 if (CMP_A(_flag_a, _flag_b)) goto L_36149B7F; /* 0x36149AEB: ja 0x36149b7f */ 18750 L_36149AF1: 18751 /* test edx, edx */ /* 0x36149AF1: test edx, edx */ 18752 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 18753 _cf = 0; 18754 _flag_k = FK_TEST; 18755 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AF9; /* 0x36149AF3: jne 0x36149af9 */ 18756 L_36149AF5: 18757 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18758 ecx = 0; /* 0x36149AF5: xor ecx, ecx */ 18759 _cf = 0; 18760 _flag_k = FK_TEST; 18761 goto L_36149B01; /* 0x36149AF7: jmp 0x36149b01 */ 18762 L_36149AF9: 18763 ecx = MEM32(eax + 0x8); /* 0x36149AF9: mov ecx, dword ptr [eax + 8] */ 18764 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 18765 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18766 ecx = ecx - edx; /* 0x36149AFC: sub ecx, edx */ 18767 _flag_k = FK_CMP; 18768 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149AFE: sar ecx, 3 */ 18769 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18770 ecx = (uint32_t)((int32_t)ecx >> 3u); 18771 L_36149B01: 18772 ecx = esi + ecx * 8; /* 0x36149B01: lea ecx, [esi + ecx*8] */ 18773 eax = esi; /* 0x36149B04: mov eax, esi */ 18774 /* cmp eax, ecx */ /* 0x36149B06: cmp eax, ecx */ 18775 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 18776 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18777 _flag_k = FK_CMP; 18778 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149B1E; /* 0x36149B08: je 0x36149b1e */ 18779 L_36149B0A: 18780 esi = MEM32(eax); /* 0x36149B0A: mov esi, dword ptr [eax] */ 18781 MEM32(edx) = esi; /* 0x36149B0C: mov dword ptr [edx], esi */ 18782 esi = MEM32(eax + 0x4); /* 0x36149B0E: mov esi, dword ptr [eax + 4] */ 18783 MEM32(edx + 0x4) = esi; /* 0x36149B11: mov dword ptr [edx + 4], esi */ 18784 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 18785 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18786 eax = eax + 8; /* 0x36149B14: add eax, 8 */ 18787 _flag_k = FK_ADD; 18788 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 18789 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18790 edx = edx + 8; /* 0x36149B17: add edx, 8 */ 18791 _flag_k = FK_ADD; 18792 /* cmp eax, ecx */ /* 0x36149B1A: cmp eax, ecx */ 18793 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 18794 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18795 _flag_k = FK_CMP; 18796 RECOMP_BACKEDGE(); 18797 if (CMP_NE(_flag_a, _flag_b)) goto L_36149B0A; /* 0x36149B1C: jne 0x36149b0a */ 18798 L_36149B1E: 18799 eax = MEM32(ebp + 0x8); /* 0x36149B1E: mov eax, dword ptr [ebp + 8] */ 18800 ebx = MEM32(eax + 0x8); /* 0x36149B21: mov ebx, dword ptr [eax + 8] */ 18801 /* cmp ecx, ebx */ /* 0x36149B24: cmp ecx, ebx */ 18802 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 18803 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18804 _flag_k = FK_CMP; 18805 eax = MEM32(ebp + (-0x4)); /* 0x36149B26: mov eax, dword ptr [ebp - 4] */ 18806 edi = MEM32(eax + 0x8); /* 0x36149B29: mov edi, dword ptr [eax + 8] */ 18807 esi = ecx; /* 0x36149B2C: mov esi, ecx */ 18808 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149B47; /* 0x36149B2E: je 0x36149b47 */ 18809 L_36149B30: 18810 PUSH32(esp, esi); /* 0x36149B30: push esi */ 18811 PUSH32(esp, edi); /* 0x36149B31: push edi */ 18812 RECOMP_ICALL(0x36059750u); /* 0x36149B32: call 0x36059750 */ /* not lifted */ 18813 RECOMP_FLAGS_IN(); 18814 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 18815 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18816 esi = esi + 8; /* 0x36149B37: add esi, 8 */ 18817 _flag_k = FK_ADD; 18818 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 18819 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18820 esp = esp + 8; /* 0x36149B3A: add esp, 8 */ 18821 _flag_k = FK_ADD; 18822 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 18823 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18824 edi = edi + 8; /* 0x36149B3D: add edi, 8 */ 18825 _flag_k = FK_ADD; 18826 /* cmp esi, ebx */ /* 0x36149B40: cmp esi, ebx */ 18827 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 18828 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18829 _flag_k = FK_CMP; 18830 RECOMP_BACKEDGE(); 18831 if (CMP_NE(_flag_a, _flag_b)) goto L_36149B30; /* 0x36149B42: jne 0x36149b30 */ 18832 L_36149B44: 18833 eax = MEM32(ebp + (-0x4)); /* 0x36149B44: mov eax, dword ptr [ebp - 4] */ 18834 L_36149B47: 18835 ecx = MEM32(ebp + 0x8); /* 0x36149B47: mov ecx, dword ptr [ebp + 8] */ 18836 edx = MEM32(ecx + 0x4); /* 0x36149B4A: mov edx, dword ptr [ecx + 4] */ 18837 /* test edx, edx */ /* 0x36149B4D: test edx, edx */ 18838 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 18839 _cf = 0; 18840 _flag_k = FK_TEST; 18841 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149B65; /* 0x36149B4F: jne 0x36149b65 */ 18842 L_36149B51: 18843 edx = MEM32(eax + 0x4); /* 0x36149B51: mov edx, dword ptr [eax + 4] */ 18844 edi = POP32_VAL(esp); /* 0x36149B54: pop edi */ 18845 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18846 ecx = 0; /* 0x36149B55: xor ecx, ecx */ 18847 _cf = 0; 18848 _flag_k = FK_TEST; 18849 ecx = edx + ecx * 8; /* 0x36149B57: lea ecx, [edx + ecx*8] */ 18850 esi = POP32_VAL(esp); /* 0x36149B5A: pop esi */ 18851 MEM32(eax + 0x8) = ecx; /* 0x36149B5B: mov dword ptr [eax + 8], ecx */ 18852 ebx = POP32_VAL(esp); /* 0x36149B5E: pop ebx */ 18853 esp = ebp; /* 0x36149B5F: mov esp, ebp */ 18854 ebp = POP32_VAL(esp); /* 0x36149B61: pop ebp */ 18855 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149B62: ret 4 */ 18856 L_36149B65: 18857 ecx = MEM32(ecx + 0x8); /* 0x36149B65: mov ecx, dword ptr [ecx + 8] */ 18858 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 18859 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18860 ecx = ecx - edx; /* 0x36149B68: sub ecx, edx */ 18861 _flag_k = FK_CMP; 18862 edx = MEM32(eax + 0x4); /* 0x36149B6A: mov edx, dword ptr [eax + 4] */ 18863 edi = POP32_VAL(esp); /* 0x36149B6D: pop edi */ 18864 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149B6E: sar ecx, 3 */ 18865 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18866 ecx = (uint32_t)((int32_t)ecx >> 3u); 18867 ecx = edx + ecx * 8; /* 0x36149B71: lea ecx, [edx + ecx*8] */ 18868 esi = POP32_VAL(esp); /* 0x36149B74: pop esi */ 18869 MEM32(eax + 0x8) = ecx; /* 0x36149B75: mov dword ptr [eax + 8], ecx */ 18870 ebx = POP32_VAL(esp); /* 0x36149B78: pop ebx */ 18871 esp = ebp; /* 0x36149B79: mov esp, ebp */ 18872 ebp = POP32_VAL(esp); /* 0x36149B7B: pop ebp */ 18873 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149B7C: ret 4 */ 18874 L_36149B7F: 18875 PUSH32(esp, edx); /* 0x36149B7F: push edx */ 18876 MEM32(ebp + (-0x8)) = edx; /* 0x36149B80: mov dword ptr [ebp - 8], edx */ 18877 RECOMP_ICALL(0x3615FCC4u); /* 0x36149B83: call 0x3615fcc4 */ /* not lifted */ 18878 RECOMP_FLAGS_IN(); 18879 esi = MEM32(ebp + 0x8); /* 0x36149B88: mov esi, dword ptr [ebp + 8] */ 18880 ecx = MEM32(esi + 0x4); /* 0x36149B8B: mov ecx, dword ptr [esi + 4] */ 18881 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18882 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18883 esp = esp + 4; /* 0x36149B8E: add esp, 4 */ 18884 _flag_k = FK_ADD; 18885 /* test ecx, ecx */ /* 0x36149B91: test ecx, ecx */ 18886 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 18887 _cf = 0; 18888 _flag_k = FK_TEST; 18889 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149B99; /* 0x36149B93: jne 0x36149b99 */ 18890 L_36149B95: 18891 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18892 eax = 0; /* 0x36149B95: xor eax, eax */ 18893 _cf = 0; 18894 _flag_k = FK_TEST; 18895 goto L_36149BA1; /* 0x36149B97: jmp 0x36149ba1 */ 18896 L_36149B99: 18897 eax = MEM32(esi + 0x8); /* 0x36149B99: mov eax, dword ptr [esi + 8] */ 18898 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 18899 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18900 eax = eax - ecx; /* 0x36149B9C: sub eax, ecx */ 18901 _flag_k = FK_CMP; 18902 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x36149B9E: sar eax, 3 */ 18903 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18904 eax = (uint32_t)((int32_t)eax >> 3u); 18905 L_36149BA1: 18906 /* test eax, eax */ /* 0x36149BA1: test eax, eax */ 18907 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18908 _cf = 0; 18909 _flag_k = FK_TEST; 18910 if (TEST_NS(_flag_a, _flag_b)) goto L_36149BA7; /* 0x36149BA3: jge 0x36149ba7 */ 18911 L_36149BA5: 18912 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18913 eax = 0; /* 0x36149BA5: xor eax, eax */ 18914 _cf = 0; 18915 _flag_k = FK_TEST; 18916 L_36149BA7: 18917 edx = eax * 8; /* 0x36149BA7: lea edx, [eax*8] */ 18918 PUSH32(esp, edx); /* 0x36149BAE: push edx */ 18919 RECOMP_ICALL(0x3615FD6Au); /* 0x36149BAF: call 0x3615fd6a */ /* not lifted */ 18920 RECOMP_FLAGS_IN(); 18921 ecx = MEM32(ebp + (-0x4)); /* 0x36149BB4: mov ecx, dword ptr [ebp - 4] */ 18922 edx = MEM32(ebp + 0x8); /* 0x36149BB7: mov edx, dword ptr [ebp + 8] */ 18923 MEM32(ecx + 0x4) = eax; /* 0x36149BBA: mov dword ptr [ecx + 4], eax */ 18924 ebx = MEM32(esi + 0x8); /* 0x36149BBD: mov ebx, dword ptr [esi + 8] */ 18925 esi = MEM32(edx + 0x4); /* 0x36149BC0: mov esi, dword ptr [edx + 4] */ 18926 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18927 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18928 esp = esp + 4; /* 0x36149BC3: add esp, 4 */ 18929 _flag_k = FK_ADD; 18930 /* cmp esi, ebx */ /* 0x36149BC6: cmp esi, ebx */ 18931 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 18932 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18933 _flag_k = FK_CMP; 18934 edi = eax; /* 0x36149BC8: mov edi, eax */ 18935 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149BE0; /* 0x36149BCA: je 0x36149be0 */ 18936 L_36149BCC: 18937 PUSH32(esp, esi); /* 0x36149BCC: push esi */ 18938 PUSH32(esp, edi); /* 0x36149BCD: push edi */ 18939 RECOMP_ICALL(0x36059750u); /* 0x36149BCE: call 0x36059750 */ /* not lifted */ 18940 RECOMP_FLAGS_IN(); 18941 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 18942 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18943 esi = esi + 8; /* 0x36149BD3: add esi, 8 */ 18944 _flag_k = FK_ADD; 18945 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 18946 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18947 esp = esp + 8; /* 0x36149BD6: add esp, 8 */ 18948 _flag_k = FK_ADD; 18949 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 18950 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18951 edi = edi + 8; /* 0x36149BD9: add edi, 8 */ 18952 _flag_k = FK_ADD; 18953 /* cmp esi, ebx */ /* 0x36149BDC: cmp esi, ebx */ 18954 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 18955 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18956 _flag_k = FK_CMP; 18957 RECOMP_BACKEDGE(); 18958 if (CMP_NE(_flag_a, _flag_b)) goto L_36149BCC; /* 0x36149BDE: jne 0x36149bcc */ 18959 L_36149BE0: 18960 eax = MEM32(ebp + (-0x4)); /* 0x36149BE0: mov eax, dword ptr [ebp - 4] */ 18961 MEM32(eax + 0x8) = edi; /* 0x36149BE3: mov dword ptr [eax + 8], edi */ 18962 MEM32(eax + 0xC) = edi; /* 0x36149BE6: mov dword ptr [eax + 0xc], edi */ 18963 edi = POP32_VAL(esp); /* 0x36149BE9: pop edi */ 18964 esi = POP32_VAL(esp); /* 0x36149BEA: pop esi */ 18965 ebx = POP32_VAL(esp); /* 0x36149BEB: pop ebx */ 18966 esp = ebp; /* 0x36149BEC: mov esp, ebp */ 18967 ebp = POP32_VAL(esp); /* 0x36149BEE: pop ebp */ 18968 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149BEF: ret 4 */ 18969 RECOMP_REGS_OUT(); 18970 } 18971 18972 void sub_36149A6F(void) { 18973 int _fpu_cmp = 0; 18974 uint32_t _cf = 0; 18975 int _df = 1; 18976 uint32_t _flag_k = FK_NONE; 18977 uint32_t _flag_a = 0, _flag_b = 0; 18978 uint32_t _itail_tgt = 0; 18979 RECOMP_REGS_LOCALS 18980 RECOMP_ENTER(0x36149A6Fu); 18981 18982 L_36149A6F: 18983 /* cmp ebx, edi */ /* 0x36149A6F: cmp ebx, edi */ 18984 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 18985 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18986 _flag_k = FK_CMP; 18987 if (CMP_A(_flag_a, _flag_b)) goto L_36149AC9; /* 0x36149A71: ja 0x36149ac9 */ 18988 L_36149A73: 18989 ebx = MEM32(ecx + 0x8); /* 0x36149A73: mov ebx, dword ptr [ecx + 8] */ 18990 /* cmp esi, ebx */ /* 0x36149A76: cmp esi, ebx */ 18991 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 18992 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18993 _flag_k = FK_CMP; 18994 edi = edx; /* 0x36149A78: mov edi, edx */ 18995 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149A94; /* 0x36149A7A: je 0x36149a94 */ 18996 L_36149A7C: 18997 PUSH32(esp, esi); /* 0x36149A7C: push esi */ 18998 ecx = edi; /* 0x36149A7D: mov ecx, edi */ 18999 RECOMP_ICALL(0x3614A420u); /* 0x36149A7F: call 0x3614a420 */ /* not lifted */ 19000 RECOMP_FLAGS_IN(); 19001 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 19002 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19003 esi = esi + 8; /* 0x36149A84: add esi, 8 */ 19004 _flag_k = FK_ADD; 19005 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 19006 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19007 edi = edi + 8; /* 0x36149A87: add edi, 8 */ 19008 _flag_k = FK_ADD; 19009 /* cmp esi, ebx */ /* 0x36149A8A: cmp esi, ebx */ 19010 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 19011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19012 _flag_k = FK_CMP; 19013 RECOMP_BACKEDGE(); 19014 if (CMP_NE(_flag_a, _flag_b)) goto L_36149A7C; /* 0x36149A8C: jne 0x36149a7c */ 19015 L_36149A8E: 19016 ecx = MEM32(ebp + 0x8); /* 0x36149A8E: mov ecx, dword ptr [ebp + 8] */ 19017 eax = MEM32(ebp + (-0x4)); /* 0x36149A91: mov eax, dword ptr [ebp - 4] */ 19018 L_36149A94: 19019 esi = MEM32(ecx + 0x4); /* 0x36149A94: mov esi, dword ptr [ecx + 4] */ 19020 /* test esi, esi */ /* 0x36149A97: test esi, esi */ 19021 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 19022 _cf = 0; 19023 _flag_k = FK_TEST; 19024 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AAF; /* 0x36149A99: jne 0x36149aaf */ 19025 L_36149A9B: 19026 ecx = MEM32(eax + 0x4); /* 0x36149A9B: mov ecx, dword ptr [eax + 4] */ 19027 edi = POP32_VAL(esp); /* 0x36149A9E: pop edi */ 19028 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19029 edx = 0; /* 0x36149A9F: xor edx, edx */ 19030 _cf = 0; 19031 _flag_k = FK_TEST; 19032 edx = ecx + edx * 8; /* 0x36149AA1: lea edx, [ecx + edx*8] */ 19033 esi = POP32_VAL(esp); /* 0x36149AA4: pop esi */ 19034 MEM32(eax + 0x8) = edx; /* 0x36149AA5: mov dword ptr [eax + 8], edx */ 19035 ebx = POP32_VAL(esp); /* 0x36149AA8: pop ebx */ 19036 esp = ebp; /* 0x36149AA9: mov esp, ebp */ 19037 ebp = POP32_VAL(esp); /* 0x36149AAB: pop ebp */ 19038 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149AAC: ret 4 */ 19039 L_36149AAF: 19040 edx = MEM32(ecx + 0x8); /* 0x36149AAF: mov edx, dword ptr [ecx + 8] */ 19041 ecx = MEM32(eax + 0x4); /* 0x36149AB2: mov ecx, dword ptr [eax + 4] */ 19042 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 19043 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19044 edx = edx - esi; /* 0x36149AB5: sub edx, esi */ 19045 _flag_k = FK_CMP; 19046 edi = POP32_VAL(esp); /* 0x36149AB7: pop edi */ 19047 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149AB8: sar edx, 3 */ 19048 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19049 edx = (uint32_t)((int32_t)edx >> 3u); 19050 edx = ecx + edx * 8; /* 0x36149ABB: lea edx, [ecx + edx*8] */ 19051 esi = POP32_VAL(esp); /* 0x36149ABE: pop esi */ 19052 MEM32(eax + 0x8) = edx; /* 0x36149ABF: mov dword ptr [eax + 8], edx */ 19053 ebx = POP32_VAL(esp); /* 0x36149AC2: pop ebx */ 19054 esp = ebp; /* 0x36149AC3: mov esp, ebp */ 19055 ebp = POP32_VAL(esp); /* 0x36149AC5: pop ebp */ 19056 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149AC6: ret 4 */ 19057 L_36149AC9: 19058 /* test esi, esi */ /* 0x36149AC9: test esi, esi */ 19059 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 19060 _cf = 0; 19061 _flag_k = FK_TEST; 19062 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AD1; /* 0x36149ACB: jne 0x36149ad1 */ 19063 L_36149ACD: 19064 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19065 ecx = 0; /* 0x36149ACD: xor ecx, ecx */ 19066 _cf = 0; 19067 _flag_k = FK_TEST; 19068 goto L_36149AD9; /* 0x36149ACF: jmp 0x36149ad9 */ 19069 L_36149AD1: 19070 ecx = MEM32(ecx + 0x8); /* 0x36149AD1: mov ecx, dword ptr [ecx + 8] */ 19071 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 19072 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19073 ecx = ecx - esi; /* 0x36149AD4: sub ecx, esi */ 19074 _flag_k = FK_CMP; 19075 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149AD6: sar ecx, 3 */ 19076 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19077 ecx = (uint32_t)((int32_t)ecx >> 3u); 19078 L_36149AD9: 19079 /* test edx, edx */ /* 0x36149AD9: test edx, edx */ 19080 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 19081 _cf = 0; 19082 _flag_k = FK_TEST; 19083 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AE1; /* 0x36149ADB: jne 0x36149ae1 */ 19084 L_36149ADD: 19085 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19086 edi = 0; /* 0x36149ADD: xor edi, edi */ 19087 _cf = 0; 19088 _flag_k = FK_TEST; 19089 goto L_36149AE9; /* 0x36149ADF: jmp 0x36149ae9 */ 19090 L_36149AE1: 19091 edi = MEM32(eax + 0xC); /* 0x36149AE1: mov edi, dword ptr [eax + 0xc] */ 19092 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 19093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19094 edi = edi - edx; /* 0x36149AE4: sub edi, edx */ 19095 _flag_k = FK_CMP; 19096 if (3u) _cf = (((edi) >> 2) & 1u); /* 0x36149AE6: sar edi, 3 */ 19097 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19098 edi = (uint32_t)((int32_t)edi >> 3u); 19099 L_36149AE9: 19100 /* cmp ecx, edi */ /* 0x36149AE9: cmp ecx, edi */ 19101 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 19102 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19103 _flag_k = FK_CMP; 19104 if (CMP_A(_flag_a, _flag_b)) goto L_36149B7F; /* 0x36149AEB: ja 0x36149b7f */ 19105 L_36149AF1: 19106 /* test edx, edx */ /* 0x36149AF1: test edx, edx */ 19107 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 19108 _cf = 0; 19109 _flag_k = FK_TEST; 19110 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AF9; /* 0x36149AF3: jne 0x36149af9 */ 19111 L_36149AF5: 19112 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19113 ecx = 0; /* 0x36149AF5: xor ecx, ecx */ 19114 _cf = 0; 19115 _flag_k = FK_TEST; 19116 goto L_36149B01; /* 0x36149AF7: jmp 0x36149b01 */ 19117 L_36149AF9: 19118 ecx = MEM32(eax + 0x8); /* 0x36149AF9: mov ecx, dword ptr [eax + 8] */ 19119 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 19120 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19121 ecx = ecx - edx; /* 0x36149AFC: sub ecx, edx */ 19122 _flag_k = FK_CMP; 19123 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149AFE: sar ecx, 3 */ 19124 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19125 ecx = (uint32_t)((int32_t)ecx >> 3u); 19126 L_36149B01: 19127 ecx = esi + ecx * 8; /* 0x36149B01: lea ecx, [esi + ecx*8] */ 19128 eax = esi; /* 0x36149B04: mov eax, esi */ 19129 /* cmp eax, ecx */ /* 0x36149B06: cmp eax, ecx */ 19130 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 19131 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19132 _flag_k = FK_CMP; 19133 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149B1E; /* 0x36149B08: je 0x36149b1e */ 19134 L_36149B0A: 19135 esi = MEM32(eax); /* 0x36149B0A: mov esi, dword ptr [eax] */ 19136 MEM32(edx) = esi; /* 0x36149B0C: mov dword ptr [edx], esi */ 19137 esi = MEM32(eax + 0x4); /* 0x36149B0E: mov esi, dword ptr [eax + 4] */ 19138 MEM32(edx + 0x4) = esi; /* 0x36149B11: mov dword ptr [edx + 4], esi */ 19139 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 19140 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19141 eax = eax + 8; /* 0x36149B14: add eax, 8 */ 19142 _flag_k = FK_ADD; 19143 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 19144 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19145 edx = edx + 8; /* 0x36149B17: add edx, 8 */ 19146 _flag_k = FK_ADD; 19147 /* cmp eax, ecx */ /* 0x36149B1A: cmp eax, ecx */ 19148 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 19149 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19150 _flag_k = FK_CMP; 19151 RECOMP_BACKEDGE(); 19152 if (CMP_NE(_flag_a, _flag_b)) goto L_36149B0A; /* 0x36149B1C: jne 0x36149b0a */ 19153 L_36149B1E: 19154 eax = MEM32(ebp + 0x8); /* 0x36149B1E: mov eax, dword ptr [ebp + 8] */ 19155 ebx = MEM32(eax + 0x8); /* 0x36149B21: mov ebx, dword ptr [eax + 8] */ 19156 /* cmp ecx, ebx */ /* 0x36149B24: cmp ecx, ebx */ 19157 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 19158 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19159 _flag_k = FK_CMP; 19160 eax = MEM32(ebp + (-0x4)); /* 0x36149B26: mov eax, dword ptr [ebp - 4] */ 19161 edi = MEM32(eax + 0x8); /* 0x36149B29: mov edi, dword ptr [eax + 8] */ 19162 esi = ecx; /* 0x36149B2C: mov esi, ecx */ 19163 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149B47; /* 0x36149B2E: je 0x36149b47 */ 19164 L_36149B30: 19165 PUSH32(esp, esi); /* 0x36149B30: push esi */ 19166 PUSH32(esp, edi); /* 0x36149B31: push edi */ 19167 RECOMP_ICALL(0x36059750u); /* 0x36149B32: call 0x36059750 */ /* not lifted */ 19168 RECOMP_FLAGS_IN(); 19169 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 19170 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19171 esi = esi + 8; /* 0x36149B37: add esi, 8 */ 19172 _flag_k = FK_ADD; 19173 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 19174 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19175 esp = esp + 8; /* 0x36149B3A: add esp, 8 */ 19176 _flag_k = FK_ADD; 19177 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 19178 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19179 edi = edi + 8; /* 0x36149B3D: add edi, 8 */ 19180 _flag_k = FK_ADD; 19181 /* cmp esi, ebx */ /* 0x36149B40: cmp esi, ebx */ 19182 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 19183 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19184 _flag_k = FK_CMP; 19185 RECOMP_BACKEDGE(); 19186 if (CMP_NE(_flag_a, _flag_b)) goto L_36149B30; /* 0x36149B42: jne 0x36149b30 */ 19187 L_36149B44: 19188 eax = MEM32(ebp + (-0x4)); /* 0x36149B44: mov eax, dword ptr [ebp - 4] */ 19189 L_36149B47: 19190 ecx = MEM32(ebp + 0x8); /* 0x36149B47: mov ecx, dword ptr [ebp + 8] */ 19191 edx = MEM32(ecx + 0x4); /* 0x36149B4A: mov edx, dword ptr [ecx + 4] */ 19192 /* test edx, edx */ /* 0x36149B4D: test edx, edx */ 19193 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 19194 _cf = 0; 19195 _flag_k = FK_TEST; 19196 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149B65; /* 0x36149B4F: jne 0x36149b65 */ 19197 L_36149B51: 19198 edx = MEM32(eax + 0x4); /* 0x36149B51: mov edx, dword ptr [eax + 4] */ 19199 edi = POP32_VAL(esp); /* 0x36149B54: pop edi */ 19200 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19201 ecx = 0; /* 0x36149B55: xor ecx, ecx */ 19202 _cf = 0; 19203 _flag_k = FK_TEST; 19204 ecx = edx + ecx * 8; /* 0x36149B57: lea ecx, [edx + ecx*8] */ 19205 esi = POP32_VAL(esp); /* 0x36149B5A: pop esi */ 19206 MEM32(eax + 0x8) = ecx; /* 0x36149B5B: mov dword ptr [eax + 8], ecx */ 19207 ebx = POP32_VAL(esp); /* 0x36149B5E: pop ebx */ 19208 esp = ebp; /* 0x36149B5F: mov esp, ebp */ 19209 ebp = POP32_VAL(esp); /* 0x36149B61: pop ebp */ 19210 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149B62: ret 4 */ 19211 L_36149B65: 19212 ecx = MEM32(ecx + 0x8); /* 0x36149B65: mov ecx, dword ptr [ecx + 8] */ 19213 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 19214 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19215 ecx = ecx - edx; /* 0x36149B68: sub ecx, edx */ 19216 _flag_k = FK_CMP; 19217 edx = MEM32(eax + 0x4); /* 0x36149B6A: mov edx, dword ptr [eax + 4] */ 19218 edi = POP32_VAL(esp); /* 0x36149B6D: pop edi */ 19219 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149B6E: sar ecx, 3 */ 19220 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19221 ecx = (uint32_t)((int32_t)ecx >> 3u); 19222 ecx = edx + ecx * 8; /* 0x36149B71: lea ecx, [edx + ecx*8] */ 19223 esi = POP32_VAL(esp); /* 0x36149B74: pop esi */ 19224 MEM32(eax + 0x8) = ecx; /* 0x36149B75: mov dword ptr [eax + 8], ecx */ 19225 ebx = POP32_VAL(esp); /* 0x36149B78: pop ebx */ 19226 esp = ebp; /* 0x36149B79: mov esp, ebp */ 19227 ebp = POP32_VAL(esp); /* 0x36149B7B: pop ebp */ 19228 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149B7C: ret 4 */ 19229 L_36149B7F: 19230 PUSH32(esp, edx); /* 0x36149B7F: push edx */ 19231 MEM32(ebp + (-0x8)) = edx; /* 0x36149B80: mov dword ptr [ebp - 8], edx */ 19232 RECOMP_ICALL(0x3615FCC4u); /* 0x36149B83: call 0x3615fcc4 */ /* not lifted */ 19233 RECOMP_FLAGS_IN(); 19234 esi = MEM32(ebp + 0x8); /* 0x36149B88: mov esi, dword ptr [ebp + 8] */ 19235 ecx = MEM32(esi + 0x4); /* 0x36149B8B: mov ecx, dword ptr [esi + 4] */ 19236 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 19237 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19238 esp = esp + 4; /* 0x36149B8E: add esp, 4 */ 19239 _flag_k = FK_ADD; 19240 /* test ecx, ecx */ /* 0x36149B91: test ecx, ecx */ 19241 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 19242 _cf = 0; 19243 _flag_k = FK_TEST; 19244 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149B99; /* 0x36149B93: jne 0x36149b99 */ 19245 L_36149B95: 19246 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19247 eax = 0; /* 0x36149B95: xor eax, eax */ 19248 _cf = 0; 19249 _flag_k = FK_TEST; 19250 goto L_36149BA1; /* 0x36149B97: jmp 0x36149ba1 */ 19251 L_36149B99: 19252 eax = MEM32(esi + 0x8); /* 0x36149B99: mov eax, dword ptr [esi + 8] */ 19253 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 19254 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19255 eax = eax - ecx; /* 0x36149B9C: sub eax, ecx */ 19256 _flag_k = FK_CMP; 19257 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x36149B9E: sar eax, 3 */ 19258 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19259 eax = (uint32_t)((int32_t)eax >> 3u); 19260 L_36149BA1: 19261 /* test eax, eax */ /* 0x36149BA1: test eax, eax */ 19262 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19263 _cf = 0; 19264 _flag_k = FK_TEST; 19265 if (TEST_NS(_flag_a, _flag_b)) goto L_36149BA7; /* 0x36149BA3: jge 0x36149ba7 */ 19266 L_36149BA5: 19267 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19268 eax = 0; /* 0x36149BA5: xor eax, eax */ 19269 _cf = 0; 19270 _flag_k = FK_TEST; 19271 L_36149BA7: 19272 edx = eax * 8; /* 0x36149BA7: lea edx, [eax*8] */ 19273 PUSH32(esp, edx); /* 0x36149BAE: push edx */ 19274 RECOMP_ICALL(0x3615FD6Au); /* 0x36149BAF: call 0x3615fd6a */ /* not lifted */ 19275 RECOMP_FLAGS_IN(); 19276 ecx = MEM32(ebp + (-0x4)); /* 0x36149BB4: mov ecx, dword ptr [ebp - 4] */ 19277 edx = MEM32(ebp + 0x8); /* 0x36149BB7: mov edx, dword ptr [ebp + 8] */ 19278 MEM32(ecx + 0x4) = eax; /* 0x36149BBA: mov dword ptr [ecx + 4], eax */ 19279 ebx = MEM32(esi + 0x8); /* 0x36149BBD: mov ebx, dword ptr [esi + 8] */ 19280 esi = MEM32(edx + 0x4); /* 0x36149BC0: mov esi, dword ptr [edx + 4] */ 19281 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 19282 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19283 esp = esp + 4; /* 0x36149BC3: add esp, 4 */ 19284 _flag_k = FK_ADD; 19285 /* cmp esi, ebx */ /* 0x36149BC6: cmp esi, ebx */ 19286 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 19287 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19288 _flag_k = FK_CMP; 19289 edi = eax; /* 0x36149BC8: mov edi, eax */ 19290 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149BE0; /* 0x36149BCA: je 0x36149be0 */ 19291 L_36149BCC: 19292 PUSH32(esp, esi); /* 0x36149BCC: push esi */ 19293 PUSH32(esp, edi); /* 0x36149BCD: push edi */ 19294 RECOMP_ICALL(0x36059750u); /* 0x36149BCE: call 0x36059750 */ /* not lifted */ 19295 RECOMP_FLAGS_IN(); 19296 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 19297 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19298 esi = esi + 8; /* 0x36149BD3: add esi, 8 */ 19299 _flag_k = FK_ADD; 19300 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 19301 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19302 esp = esp + 8; /* 0x36149BD6: add esp, 8 */ 19303 _flag_k = FK_ADD; 19304 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 19305 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19306 edi = edi + 8; /* 0x36149BD9: add edi, 8 */ 19307 _flag_k = FK_ADD; 19308 /* cmp esi, ebx */ /* 0x36149BDC: cmp esi, ebx */ 19309 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 19310 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19311 _flag_k = FK_CMP; 19312 RECOMP_BACKEDGE(); 19313 if (CMP_NE(_flag_a, _flag_b)) goto L_36149BCC; /* 0x36149BDE: jne 0x36149bcc */ 19314 L_36149BE0: 19315 eax = MEM32(ebp + (-0x4)); /* 0x36149BE0: mov eax, dword ptr [ebp - 4] */ 19316 MEM32(eax + 0x8) = edi; /* 0x36149BE3: mov dword ptr [eax + 8], edi */ 19317 MEM32(eax + 0xC) = edi; /* 0x36149BE6: mov dword ptr [eax + 0xc], edi */ 19318 edi = POP32_VAL(esp); /* 0x36149BE9: pop edi */ 19319 esi = POP32_VAL(esp); /* 0x36149BEA: pop esi */ 19320 ebx = POP32_VAL(esp); /* 0x36149BEB: pop ebx */ 19321 esp = ebp; /* 0x36149BEC: mov esp, ebp */ 19322 ebp = POP32_VAL(esp); /* 0x36149BEE: pop ebp */ 19323 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149BEF: ret 4 */ 19324 RECOMP_REGS_OUT(); 19325 } 19326 19327 void sub_36149AD9(void) { 19328 int _fpu_cmp = 0; 19329 uint32_t _cf = 0; 19330 int _df = 1; 19331 uint32_t _flag_k = FK_NONE; 19332 uint32_t _flag_a = 0, _flag_b = 0; 19333 uint32_t _itail_tgt = 0; 19334 RECOMP_REGS_LOCALS 19335 RECOMP_ENTER(0x36149AD9u); 19336 19337 L_36149AD9: 19338 /* test edx, edx */ /* 0x36149AD9: test edx, edx */ 19339 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 19340 _cf = 0; 19341 _flag_k = FK_TEST; 19342 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AE1; /* 0x36149ADB: jne 0x36149ae1 */ 19343 L_36149ADD: 19344 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19345 edi = 0; /* 0x36149ADD: xor edi, edi */ 19346 _cf = 0; 19347 _flag_k = FK_TEST; 19348 goto L_36149AE9; /* 0x36149ADF: jmp 0x36149ae9 */ 19349 L_36149AE1: 19350 edi = MEM32(eax + 0xC); /* 0x36149AE1: mov edi, dword ptr [eax + 0xc] */ 19351 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 19352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19353 edi = edi - edx; /* 0x36149AE4: sub edi, edx */ 19354 _flag_k = FK_CMP; 19355 if (3u) _cf = (((edi) >> 2) & 1u); /* 0x36149AE6: sar edi, 3 */ 19356 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19357 edi = (uint32_t)((int32_t)edi >> 3u); 19358 L_36149AE9: 19359 /* cmp ecx, edi */ /* 0x36149AE9: cmp ecx, edi */ 19360 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 19361 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19362 _flag_k = FK_CMP; 19363 if (CMP_A(_flag_a, _flag_b)) goto L_36149B7F; /* 0x36149AEB: ja 0x36149b7f */ 19364 L_36149AF1: 19365 /* test edx, edx */ /* 0x36149AF1: test edx, edx */ 19366 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 19367 _cf = 0; 19368 _flag_k = FK_TEST; 19369 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AF9; /* 0x36149AF3: jne 0x36149af9 */ 19370 L_36149AF5: 19371 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19372 ecx = 0; /* 0x36149AF5: xor ecx, ecx */ 19373 _cf = 0; 19374 _flag_k = FK_TEST; 19375 goto L_36149B01; /* 0x36149AF7: jmp 0x36149b01 */ 19376 L_36149AF9: 19377 ecx = MEM32(eax + 0x8); /* 0x36149AF9: mov ecx, dword ptr [eax + 8] */ 19378 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 19379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19380 ecx = ecx - edx; /* 0x36149AFC: sub ecx, edx */ 19381 _flag_k = FK_CMP; 19382 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149AFE: sar ecx, 3 */ 19383 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19384 ecx = (uint32_t)((int32_t)ecx >> 3u); 19385 L_36149B01: 19386 ecx = esi + ecx * 8; /* 0x36149B01: lea ecx, [esi + ecx*8] */ 19387 eax = esi; /* 0x36149B04: mov eax, esi */ 19388 /* cmp eax, ecx */ /* 0x36149B06: cmp eax, ecx */ 19389 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 19390 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19391 _flag_k = FK_CMP; 19392 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149B1E; /* 0x36149B08: je 0x36149b1e */ 19393 L_36149B0A: 19394 esi = MEM32(eax); /* 0x36149B0A: mov esi, dword ptr [eax] */ 19395 MEM32(edx) = esi; /* 0x36149B0C: mov dword ptr [edx], esi */ 19396 esi = MEM32(eax + 0x4); /* 0x36149B0E: mov esi, dword ptr [eax + 4] */ 19397 MEM32(edx + 0x4) = esi; /* 0x36149B11: mov dword ptr [edx + 4], esi */ 19398 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 19399 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19400 eax = eax + 8; /* 0x36149B14: add eax, 8 */ 19401 _flag_k = FK_ADD; 19402 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 19403 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19404 edx = edx + 8; /* 0x36149B17: add edx, 8 */ 19405 _flag_k = FK_ADD; 19406 /* cmp eax, ecx */ /* 0x36149B1A: cmp eax, ecx */ 19407 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 19408 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19409 _flag_k = FK_CMP; 19410 RECOMP_BACKEDGE(); 19411 if (CMP_NE(_flag_a, _flag_b)) goto L_36149B0A; /* 0x36149B1C: jne 0x36149b0a */ 19412 L_36149B1E: 19413 eax = MEM32(ebp + 0x8); /* 0x36149B1E: mov eax, dword ptr [ebp + 8] */ 19414 ebx = MEM32(eax + 0x8); /* 0x36149B21: mov ebx, dword ptr [eax + 8] */ 19415 /* cmp ecx, ebx */ /* 0x36149B24: cmp ecx, ebx */ 19416 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 19417 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19418 _flag_k = FK_CMP; 19419 eax = MEM32(ebp + (-0x4)); /* 0x36149B26: mov eax, dword ptr [ebp - 4] */ 19420 edi = MEM32(eax + 0x8); /* 0x36149B29: mov edi, dword ptr [eax + 8] */ 19421 esi = ecx; /* 0x36149B2C: mov esi, ecx */ 19422 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149B47; /* 0x36149B2E: je 0x36149b47 */ 19423 L_36149B30: 19424 PUSH32(esp, esi); /* 0x36149B30: push esi */ 19425 PUSH32(esp, edi); /* 0x36149B31: push edi */ 19426 RECOMP_ICALL(0x36059750u); /* 0x36149B32: call 0x36059750 */ /* not lifted */ 19427 RECOMP_FLAGS_IN(); 19428 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 19429 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19430 esi = esi + 8; /* 0x36149B37: add esi, 8 */ 19431 _flag_k = FK_ADD; 19432 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 19433 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19434 esp = esp + 8; /* 0x36149B3A: add esp, 8 */ 19435 _flag_k = FK_ADD; 19436 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 19437 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19438 edi = edi + 8; /* 0x36149B3D: add edi, 8 */ 19439 _flag_k = FK_ADD; 19440 /* cmp esi, ebx */ /* 0x36149B40: cmp esi, ebx */ 19441 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 19442 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19443 _flag_k = FK_CMP; 19444 RECOMP_BACKEDGE(); 19445 if (CMP_NE(_flag_a, _flag_b)) goto L_36149B30; /* 0x36149B42: jne 0x36149b30 */ 19446 L_36149B44: 19447 eax = MEM32(ebp + (-0x4)); /* 0x36149B44: mov eax, dword ptr [ebp - 4] */ 19448 L_36149B47: 19449 ecx = MEM32(ebp + 0x8); /* 0x36149B47: mov ecx, dword ptr [ebp + 8] */ 19450 edx = MEM32(ecx + 0x4); /* 0x36149B4A: mov edx, dword ptr [ecx + 4] */ 19451 /* test edx, edx */ /* 0x36149B4D: test edx, edx */ 19452 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 19453 _cf = 0; 19454 _flag_k = FK_TEST; 19455 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149B65; /* 0x36149B4F: jne 0x36149b65 */ 19456 L_36149B51: 19457 edx = MEM32(eax + 0x4); /* 0x36149B51: mov edx, dword ptr [eax + 4] */ 19458 edi = POP32_VAL(esp); /* 0x36149B54: pop edi */ 19459 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19460 ecx = 0; /* 0x36149B55: xor ecx, ecx */ 19461 _cf = 0; 19462 _flag_k = FK_TEST; 19463 ecx = edx + ecx * 8; /* 0x36149B57: lea ecx, [edx + ecx*8] */ 19464 esi = POP32_VAL(esp); /* 0x36149B5A: pop esi */ 19465 MEM32(eax + 0x8) = ecx; /* 0x36149B5B: mov dword ptr [eax + 8], ecx */ 19466 ebx = POP32_VAL(esp); /* 0x36149B5E: pop ebx */ 19467 esp = ebp; /* 0x36149B5F: mov esp, ebp */ 19468 ebp = POP32_VAL(esp); /* 0x36149B61: pop ebp */ 19469 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149B62: ret 4 */ 19470 L_36149B65: 19471 ecx = MEM32(ecx + 0x8); /* 0x36149B65: mov ecx, dword ptr [ecx + 8] */ 19472 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 19473 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19474 ecx = ecx - edx; /* 0x36149B68: sub ecx, edx */ 19475 _flag_k = FK_CMP; 19476 edx = MEM32(eax + 0x4); /* 0x36149B6A: mov edx, dword ptr [eax + 4] */ 19477 edi = POP32_VAL(esp); /* 0x36149B6D: pop edi */ 19478 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149B6E: sar ecx, 3 */ 19479 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19480 ecx = (uint32_t)((int32_t)ecx >> 3u); 19481 ecx = edx + ecx * 8; /* 0x36149B71: lea ecx, [edx + ecx*8] */ 19482 esi = POP32_VAL(esp); /* 0x36149B74: pop esi */ 19483 MEM32(eax + 0x8) = ecx; /* 0x36149B75: mov dword ptr [eax + 8], ecx */ 19484 ebx = POP32_VAL(esp); /* 0x36149B78: pop ebx */ 19485 esp = ebp; /* 0x36149B79: mov esp, ebp */ 19486 ebp = POP32_VAL(esp); /* 0x36149B7B: pop ebp */ 19487 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149B7C: ret 4 */ 19488 L_36149B7F: 19489 PUSH32(esp, edx); /* 0x36149B7F: push edx */ 19490 MEM32(ebp + (-0x8)) = edx; /* 0x36149B80: mov dword ptr [ebp - 8], edx */ 19491 RECOMP_ICALL(0x3615FCC4u); /* 0x36149B83: call 0x3615fcc4 */ /* not lifted */ 19492 RECOMP_FLAGS_IN(); 19493 esi = MEM32(ebp + 0x8); /* 0x36149B88: mov esi, dword ptr [ebp + 8] */ 19494 ecx = MEM32(esi + 0x4); /* 0x36149B8B: mov ecx, dword ptr [esi + 4] */ 19495 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 19496 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19497 esp = esp + 4; /* 0x36149B8E: add esp, 4 */ 19498 _flag_k = FK_ADD; 19499 /* test ecx, ecx */ /* 0x36149B91: test ecx, ecx */ 19500 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 19501 _cf = 0; 19502 _flag_k = FK_TEST; 19503 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149B99; /* 0x36149B93: jne 0x36149b99 */ 19504 L_36149B95: 19505 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19506 eax = 0; /* 0x36149B95: xor eax, eax */ 19507 _cf = 0; 19508 _flag_k = FK_TEST; 19509 goto L_36149BA1; /* 0x36149B97: jmp 0x36149ba1 */ 19510 L_36149B99: 19511 eax = MEM32(esi + 0x8); /* 0x36149B99: mov eax, dword ptr [esi + 8] */ 19512 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 19513 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19514 eax = eax - ecx; /* 0x36149B9C: sub eax, ecx */ 19515 _flag_k = FK_CMP; 19516 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x36149B9E: sar eax, 3 */ 19517 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19518 eax = (uint32_t)((int32_t)eax >> 3u); 19519 L_36149BA1: 19520 /* test eax, eax */ /* 0x36149BA1: test eax, eax */ 19521 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19522 _cf = 0; 19523 _flag_k = FK_TEST; 19524 if (TEST_NS(_flag_a, _flag_b)) goto L_36149BA7; /* 0x36149BA3: jge 0x36149ba7 */ 19525 L_36149BA5: 19526 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19527 eax = 0; /* 0x36149BA5: xor eax, eax */ 19528 _cf = 0; 19529 _flag_k = FK_TEST; 19530 L_36149BA7: 19531 edx = eax * 8; /* 0x36149BA7: lea edx, [eax*8] */ 19532 PUSH32(esp, edx); /* 0x36149BAE: push edx */ 19533 RECOMP_ICALL(0x3615FD6Au); /* 0x36149BAF: call 0x3615fd6a */ /* not lifted */ 19534 RECOMP_FLAGS_IN(); 19535 ecx = MEM32(ebp + (-0x4)); /* 0x36149BB4: mov ecx, dword ptr [ebp - 4] */ 19536 edx = MEM32(ebp + 0x8); /* 0x36149BB7: mov edx, dword ptr [ebp + 8] */ 19537 MEM32(ecx + 0x4) = eax; /* 0x36149BBA: mov dword ptr [ecx + 4], eax */ 19538 ebx = MEM32(esi + 0x8); /* 0x36149BBD: mov ebx, dword ptr [esi + 8] */ 19539 esi = MEM32(edx + 0x4); /* 0x36149BC0: mov esi, dword ptr [edx + 4] */ 19540 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 19541 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19542 esp = esp + 4; /* 0x36149BC3: add esp, 4 */ 19543 _flag_k = FK_ADD; 19544 /* cmp esi, ebx */ /* 0x36149BC6: cmp esi, ebx */ 19545 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 19546 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19547 _flag_k = FK_CMP; 19548 edi = eax; /* 0x36149BC8: mov edi, eax */ 19549 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149BE0; /* 0x36149BCA: je 0x36149be0 */ 19550 L_36149BCC: 19551 PUSH32(esp, esi); /* 0x36149BCC: push esi */ 19552 PUSH32(esp, edi); /* 0x36149BCD: push edi */ 19553 RECOMP_ICALL(0x36059750u); /* 0x36149BCE: call 0x36059750 */ /* not lifted */ 19554 RECOMP_FLAGS_IN(); 19555 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 19556 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19557 esi = esi + 8; /* 0x36149BD3: add esi, 8 */ 19558 _flag_k = FK_ADD; 19559 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 19560 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19561 esp = esp + 8; /* 0x36149BD6: add esp, 8 */ 19562 _flag_k = FK_ADD; 19563 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 19564 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19565 edi = edi + 8; /* 0x36149BD9: add edi, 8 */ 19566 _flag_k = FK_ADD; 19567 /* cmp esi, ebx */ /* 0x36149BDC: cmp esi, ebx */ 19568 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 19569 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19570 _flag_k = FK_CMP; 19571 RECOMP_BACKEDGE(); 19572 if (CMP_NE(_flag_a, _flag_b)) goto L_36149BCC; /* 0x36149BDE: jne 0x36149bcc */ 19573 L_36149BE0: 19574 eax = MEM32(ebp + (-0x4)); /* 0x36149BE0: mov eax, dword ptr [ebp - 4] */ 19575 MEM32(eax + 0x8) = edi; /* 0x36149BE3: mov dword ptr [eax + 8], edi */ 19576 MEM32(eax + 0xC) = edi; /* 0x36149BE6: mov dword ptr [eax + 0xc], edi */ 19577 edi = POP32_VAL(esp); /* 0x36149BE9: pop edi */ 19578 esi = POP32_VAL(esp); /* 0x36149BEA: pop esi */ 19579 ebx = POP32_VAL(esp); /* 0x36149BEB: pop ebx */ 19580 esp = ebp; /* 0x36149BEC: mov esp, ebp */ 19581 ebp = POP32_VAL(esp); /* 0x36149BEE: pop ebp */ 19582 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149BEF: ret 4 */ 19583 RECOMP_REGS_OUT(); 19584 } 19585 19586 void sub_36149AE9(void) { 19587 int _fpu_cmp = 0; 19588 uint32_t _cf = 0; 19589 int _df = 1; 19590 uint32_t _flag_k = FK_NONE; 19591 uint32_t _flag_a = 0, _flag_b = 0; 19592 uint32_t _itail_tgt = 0; 19593 RECOMP_REGS_LOCALS 19594 RECOMP_ENTER(0x36149AE9u); 19595 19596 L_36149AE9: 19597 /* cmp ecx, edi */ /* 0x36149AE9: cmp ecx, edi */ 19598 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 19599 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19600 _flag_k = FK_CMP; 19601 if (CMP_A(_flag_a, _flag_b)) goto L_36149B7F; /* 0x36149AEB: ja 0x36149b7f */ 19602 L_36149AF1: 19603 /* test edx, edx */ /* 0x36149AF1: test edx, edx */ 19604 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 19605 _cf = 0; 19606 _flag_k = FK_TEST; 19607 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149AF9; /* 0x36149AF3: jne 0x36149af9 */ 19608 L_36149AF5: 19609 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19610 ecx = 0; /* 0x36149AF5: xor ecx, ecx */ 19611 _cf = 0; 19612 _flag_k = FK_TEST; 19613 goto L_36149B01; /* 0x36149AF7: jmp 0x36149b01 */ 19614 L_36149AF9: 19615 ecx = MEM32(eax + 0x8); /* 0x36149AF9: mov ecx, dword ptr [eax + 8] */ 19616 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 19617 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19618 ecx = ecx - edx; /* 0x36149AFC: sub ecx, edx */ 19619 _flag_k = FK_CMP; 19620 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149AFE: sar ecx, 3 */ 19621 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19622 ecx = (uint32_t)((int32_t)ecx >> 3u); 19623 L_36149B01: 19624 ecx = esi + ecx * 8; /* 0x36149B01: lea ecx, [esi + ecx*8] */ 19625 eax = esi; /* 0x36149B04: mov eax, esi */ 19626 /* cmp eax, ecx */ /* 0x36149B06: cmp eax, ecx */ 19627 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 19628 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19629 _flag_k = FK_CMP; 19630 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149B1E; /* 0x36149B08: je 0x36149b1e */ 19631 L_36149B0A: 19632 esi = MEM32(eax); /* 0x36149B0A: mov esi, dword ptr [eax] */ 19633 MEM32(edx) = esi; /* 0x36149B0C: mov dword ptr [edx], esi */ 19634 esi = MEM32(eax + 0x4); /* 0x36149B0E: mov esi, dword ptr [eax + 4] */ 19635 MEM32(edx + 0x4) = esi; /* 0x36149B11: mov dword ptr [edx + 4], esi */ 19636 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 19637 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19638 eax = eax + 8; /* 0x36149B14: add eax, 8 */ 19639 _flag_k = FK_ADD; 19640 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 19641 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19642 edx = edx + 8; /* 0x36149B17: add edx, 8 */ 19643 _flag_k = FK_ADD; 19644 /* cmp eax, ecx */ /* 0x36149B1A: cmp eax, ecx */ 19645 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 19646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19647 _flag_k = FK_CMP; 19648 RECOMP_BACKEDGE(); 19649 if (CMP_NE(_flag_a, _flag_b)) goto L_36149B0A; /* 0x36149B1C: jne 0x36149b0a */ 19650 L_36149B1E: 19651 eax = MEM32(ebp + 0x8); /* 0x36149B1E: mov eax, dword ptr [ebp + 8] */ 19652 ebx = MEM32(eax + 0x8); /* 0x36149B21: mov ebx, dword ptr [eax + 8] */ 19653 /* cmp ecx, ebx */ /* 0x36149B24: cmp ecx, ebx */ 19654 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 19655 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19656 _flag_k = FK_CMP; 19657 eax = MEM32(ebp + (-0x4)); /* 0x36149B26: mov eax, dword ptr [ebp - 4] */ 19658 edi = MEM32(eax + 0x8); /* 0x36149B29: mov edi, dword ptr [eax + 8] */ 19659 esi = ecx; /* 0x36149B2C: mov esi, ecx */ 19660 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149B47; /* 0x36149B2E: je 0x36149b47 */ 19661 L_36149B30: 19662 PUSH32(esp, esi); /* 0x36149B30: push esi */ 19663 PUSH32(esp, edi); /* 0x36149B31: push edi */ 19664 RECOMP_ICALL(0x36059750u); /* 0x36149B32: call 0x36059750 */ /* not lifted */ 19665 RECOMP_FLAGS_IN(); 19666 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 19667 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19668 esi = esi + 8; /* 0x36149B37: add esi, 8 */ 19669 _flag_k = FK_ADD; 19670 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 19671 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19672 esp = esp + 8; /* 0x36149B3A: add esp, 8 */ 19673 _flag_k = FK_ADD; 19674 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 19675 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19676 edi = edi + 8; /* 0x36149B3D: add edi, 8 */ 19677 _flag_k = FK_ADD; 19678 /* cmp esi, ebx */ /* 0x36149B40: cmp esi, ebx */ 19679 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 19680 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19681 _flag_k = FK_CMP; 19682 RECOMP_BACKEDGE(); 19683 if (CMP_NE(_flag_a, _flag_b)) goto L_36149B30; /* 0x36149B42: jne 0x36149b30 */ 19684 L_36149B44: 19685 eax = MEM32(ebp + (-0x4)); /* 0x36149B44: mov eax, dword ptr [ebp - 4] */ 19686 L_36149B47: 19687 ecx = MEM32(ebp + 0x8); /* 0x36149B47: mov ecx, dword ptr [ebp + 8] */ 19688 edx = MEM32(ecx + 0x4); /* 0x36149B4A: mov edx, dword ptr [ecx + 4] */ 19689 /* test edx, edx */ /* 0x36149B4D: test edx, edx */ 19690 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 19691 _cf = 0; 19692 _flag_k = FK_TEST; 19693 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149B65; /* 0x36149B4F: jne 0x36149b65 */ 19694 L_36149B51: 19695 edx = MEM32(eax + 0x4); /* 0x36149B51: mov edx, dword ptr [eax + 4] */ 19696 edi = POP32_VAL(esp); /* 0x36149B54: pop edi */ 19697 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19698 ecx = 0; /* 0x36149B55: xor ecx, ecx */ 19699 _cf = 0; 19700 _flag_k = FK_TEST; 19701 ecx = edx + ecx * 8; /* 0x36149B57: lea ecx, [edx + ecx*8] */ 19702 esi = POP32_VAL(esp); /* 0x36149B5A: pop esi */ 19703 MEM32(eax + 0x8) = ecx; /* 0x36149B5B: mov dword ptr [eax + 8], ecx */ 19704 ebx = POP32_VAL(esp); /* 0x36149B5E: pop ebx */ 19705 esp = ebp; /* 0x36149B5F: mov esp, ebp */ 19706 ebp = POP32_VAL(esp); /* 0x36149B61: pop ebp */ 19707 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149B62: ret 4 */ 19708 L_36149B65: 19709 ecx = MEM32(ecx + 0x8); /* 0x36149B65: mov ecx, dword ptr [ecx + 8] */ 19710 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 19711 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19712 ecx = ecx - edx; /* 0x36149B68: sub ecx, edx */ 19713 _flag_k = FK_CMP; 19714 edx = MEM32(eax + 0x4); /* 0x36149B6A: mov edx, dword ptr [eax + 4] */ 19715 edi = POP32_VAL(esp); /* 0x36149B6D: pop edi */ 19716 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149B6E: sar ecx, 3 */ 19717 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19718 ecx = (uint32_t)((int32_t)ecx >> 3u); 19719 ecx = edx + ecx * 8; /* 0x36149B71: lea ecx, [edx + ecx*8] */ 19720 esi = POP32_VAL(esp); /* 0x36149B74: pop esi */ 19721 MEM32(eax + 0x8) = ecx; /* 0x36149B75: mov dword ptr [eax + 8], ecx */ 19722 ebx = POP32_VAL(esp); /* 0x36149B78: pop ebx */ 19723 esp = ebp; /* 0x36149B79: mov esp, ebp */ 19724 ebp = POP32_VAL(esp); /* 0x36149B7B: pop ebp */ 19725 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149B7C: ret 4 */ 19726 L_36149B7F: 19727 PUSH32(esp, edx); /* 0x36149B7F: push edx */ 19728 MEM32(ebp + (-0x8)) = edx; /* 0x36149B80: mov dword ptr [ebp - 8], edx */ 19729 RECOMP_ICALL(0x3615FCC4u); /* 0x36149B83: call 0x3615fcc4 */ /* not lifted */ 19730 RECOMP_FLAGS_IN(); 19731 esi = MEM32(ebp + 0x8); /* 0x36149B88: mov esi, dword ptr [ebp + 8] */ 19732 ecx = MEM32(esi + 0x4); /* 0x36149B8B: mov ecx, dword ptr [esi + 4] */ 19733 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 19734 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19735 esp = esp + 4; /* 0x36149B8E: add esp, 4 */ 19736 _flag_k = FK_ADD; 19737 /* test ecx, ecx */ /* 0x36149B91: test ecx, ecx */ 19738 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 19739 _cf = 0; 19740 _flag_k = FK_TEST; 19741 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149B99; /* 0x36149B93: jne 0x36149b99 */ 19742 L_36149B95: 19743 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19744 eax = 0; /* 0x36149B95: xor eax, eax */ 19745 _cf = 0; 19746 _flag_k = FK_TEST; 19747 goto L_36149BA1; /* 0x36149B97: jmp 0x36149ba1 */ 19748 L_36149B99: 19749 eax = MEM32(esi + 0x8); /* 0x36149B99: mov eax, dword ptr [esi + 8] */ 19750 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 19751 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19752 eax = eax - ecx; /* 0x36149B9C: sub eax, ecx */ 19753 _flag_k = FK_CMP; 19754 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x36149B9E: sar eax, 3 */ 19755 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19756 eax = (uint32_t)((int32_t)eax >> 3u); 19757 L_36149BA1: 19758 /* test eax, eax */ /* 0x36149BA1: test eax, eax */ 19759 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19760 _cf = 0; 19761 _flag_k = FK_TEST; 19762 if (TEST_NS(_flag_a, _flag_b)) goto L_36149BA7; /* 0x36149BA3: jge 0x36149ba7 */ 19763 L_36149BA5: 19764 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19765 eax = 0; /* 0x36149BA5: xor eax, eax */ 19766 _cf = 0; 19767 _flag_k = FK_TEST; 19768 L_36149BA7: 19769 edx = eax * 8; /* 0x36149BA7: lea edx, [eax*8] */ 19770 PUSH32(esp, edx); /* 0x36149BAE: push edx */ 19771 RECOMP_ICALL(0x3615FD6Au); /* 0x36149BAF: call 0x3615fd6a */ /* not lifted */ 19772 RECOMP_FLAGS_IN(); 19773 ecx = MEM32(ebp + (-0x4)); /* 0x36149BB4: mov ecx, dword ptr [ebp - 4] */ 19774 edx = MEM32(ebp + 0x8); /* 0x36149BB7: mov edx, dword ptr [ebp + 8] */ 19775 MEM32(ecx + 0x4) = eax; /* 0x36149BBA: mov dword ptr [ecx + 4], eax */ 19776 ebx = MEM32(esi + 0x8); /* 0x36149BBD: mov ebx, dword ptr [esi + 8] */ 19777 esi = MEM32(edx + 0x4); /* 0x36149BC0: mov esi, dword ptr [edx + 4] */ 19778 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 19779 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19780 esp = esp + 4; /* 0x36149BC3: add esp, 4 */ 19781 _flag_k = FK_ADD; 19782 /* cmp esi, ebx */ /* 0x36149BC6: cmp esi, ebx */ 19783 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 19784 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19785 _flag_k = FK_CMP; 19786 edi = eax; /* 0x36149BC8: mov edi, eax */ 19787 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149BE0; /* 0x36149BCA: je 0x36149be0 */ 19788 L_36149BCC: 19789 PUSH32(esp, esi); /* 0x36149BCC: push esi */ 19790 PUSH32(esp, edi); /* 0x36149BCD: push edi */ 19791 RECOMP_ICALL(0x36059750u); /* 0x36149BCE: call 0x36059750 */ /* not lifted */ 19792 RECOMP_FLAGS_IN(); 19793 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 19794 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19795 esi = esi + 8; /* 0x36149BD3: add esi, 8 */ 19796 _flag_k = FK_ADD; 19797 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 19798 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19799 esp = esp + 8; /* 0x36149BD6: add esp, 8 */ 19800 _flag_k = FK_ADD; 19801 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 19802 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19803 edi = edi + 8; /* 0x36149BD9: add edi, 8 */ 19804 _flag_k = FK_ADD; 19805 /* cmp esi, ebx */ /* 0x36149BDC: cmp esi, ebx */ 19806 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 19807 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19808 _flag_k = FK_CMP; 19809 RECOMP_BACKEDGE(); 19810 if (CMP_NE(_flag_a, _flag_b)) goto L_36149BCC; /* 0x36149BDE: jne 0x36149bcc */ 19811 L_36149BE0: 19812 eax = MEM32(ebp + (-0x4)); /* 0x36149BE0: mov eax, dword ptr [ebp - 4] */ 19813 MEM32(eax + 0x8) = edi; /* 0x36149BE3: mov dword ptr [eax + 8], edi */ 19814 MEM32(eax + 0xC) = edi; /* 0x36149BE6: mov dword ptr [eax + 0xc], edi */ 19815 edi = POP32_VAL(esp); /* 0x36149BE9: pop edi */ 19816 esi = POP32_VAL(esp); /* 0x36149BEA: pop esi */ 19817 ebx = POP32_VAL(esp); /* 0x36149BEB: pop ebx */ 19818 esp = ebp; /* 0x36149BEC: mov esp, ebp */ 19819 ebp = POP32_VAL(esp); /* 0x36149BEE: pop ebp */ 19820 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149BEF: ret 4 */ 19821 RECOMP_REGS_OUT(); 19822 } 19823 19824 void sub_36149B01(void) { 19825 int _fpu_cmp = 0; 19826 uint32_t _cf = 0; 19827 int _df = 1; 19828 uint32_t _flag_k = FK_NONE; 19829 uint32_t _flag_a = 0, _flag_b = 0; 19830 uint32_t _itail_tgt = 0; 19831 RECOMP_REGS_LOCALS 19832 RECOMP_ENTER(0x36149B01u); 19833 19834 L_36149B01: 19835 ecx = esi + ecx * 8; /* 0x36149B01: lea ecx, [esi + ecx*8] */ 19836 eax = esi; /* 0x36149B04: mov eax, esi */ 19837 /* cmp eax, ecx */ /* 0x36149B06: cmp eax, ecx */ 19838 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 19839 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19840 _flag_k = FK_CMP; 19841 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149B1E; /* 0x36149B08: je 0x36149b1e */ 19842 L_36149B0A: 19843 esi = MEM32(eax); /* 0x36149B0A: mov esi, dword ptr [eax] */ 19844 MEM32(edx) = esi; /* 0x36149B0C: mov dword ptr [edx], esi */ 19845 esi = MEM32(eax + 0x4); /* 0x36149B0E: mov esi, dword ptr [eax + 4] */ 19846 MEM32(edx + 0x4) = esi; /* 0x36149B11: mov dword ptr [edx + 4], esi */ 19847 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 19848 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19849 eax = eax + 8; /* 0x36149B14: add eax, 8 */ 19850 _flag_k = FK_ADD; 19851 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 19852 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19853 edx = edx + 8; /* 0x36149B17: add edx, 8 */ 19854 _flag_k = FK_ADD; 19855 /* cmp eax, ecx */ /* 0x36149B1A: cmp eax, ecx */ 19856 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 19857 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19858 _flag_k = FK_CMP; 19859 RECOMP_BACKEDGE(); 19860 if (CMP_NE(_flag_a, _flag_b)) goto L_36149B0A; /* 0x36149B1C: jne 0x36149b0a */ 19861 L_36149B1E: 19862 eax = MEM32(ebp + 0x8); /* 0x36149B1E: mov eax, dword ptr [ebp + 8] */ 19863 ebx = MEM32(eax + 0x8); /* 0x36149B21: mov ebx, dword ptr [eax + 8] */ 19864 /* cmp ecx, ebx */ /* 0x36149B24: cmp ecx, ebx */ 19865 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 19866 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19867 _flag_k = FK_CMP; 19868 eax = MEM32(ebp + (-0x4)); /* 0x36149B26: mov eax, dword ptr [ebp - 4] */ 19869 edi = MEM32(eax + 0x8); /* 0x36149B29: mov edi, dword ptr [eax + 8] */ 19870 esi = ecx; /* 0x36149B2C: mov esi, ecx */ 19871 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149B47; /* 0x36149B2E: je 0x36149b47 */ 19872 L_36149B30: 19873 PUSH32(esp, esi); /* 0x36149B30: push esi */ 19874 PUSH32(esp, edi); /* 0x36149B31: push edi */ 19875 RECOMP_ICALL(0x36059750u); /* 0x36149B32: call 0x36059750 */ /* not lifted */ 19876 RECOMP_FLAGS_IN(); 19877 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 19878 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19879 esi = esi + 8; /* 0x36149B37: add esi, 8 */ 19880 _flag_k = FK_ADD; 19881 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 19882 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19883 esp = esp + 8; /* 0x36149B3A: add esp, 8 */ 19884 _flag_k = FK_ADD; 19885 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 19886 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19887 edi = edi + 8; /* 0x36149B3D: add edi, 8 */ 19888 _flag_k = FK_ADD; 19889 /* cmp esi, ebx */ /* 0x36149B40: cmp esi, ebx */ 19890 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 19891 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19892 _flag_k = FK_CMP; 19893 RECOMP_BACKEDGE(); 19894 if (CMP_NE(_flag_a, _flag_b)) goto L_36149B30; /* 0x36149B42: jne 0x36149b30 */ 19895 L_36149B44: 19896 eax = MEM32(ebp + (-0x4)); /* 0x36149B44: mov eax, dword ptr [ebp - 4] */ 19897 L_36149B47: 19898 ecx = MEM32(ebp + 0x8); /* 0x36149B47: mov ecx, dword ptr [ebp + 8] */ 19899 edx = MEM32(ecx + 0x4); /* 0x36149B4A: mov edx, dword ptr [ecx + 4] */ 19900 /* test edx, edx */ /* 0x36149B4D: test edx, edx */ 19901 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 19902 _cf = 0; 19903 _flag_k = FK_TEST; 19904 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149B65; /* 0x36149B4F: jne 0x36149b65 */ 19905 L_36149B51: 19906 edx = MEM32(eax + 0x4); /* 0x36149B51: mov edx, dword ptr [eax + 4] */ 19907 edi = POP32_VAL(esp); /* 0x36149B54: pop edi */ 19908 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19909 ecx = 0; /* 0x36149B55: xor ecx, ecx */ 19910 _cf = 0; 19911 _flag_k = FK_TEST; 19912 ecx = edx + ecx * 8; /* 0x36149B57: lea ecx, [edx + ecx*8] */ 19913 esi = POP32_VAL(esp); /* 0x36149B5A: pop esi */ 19914 MEM32(eax + 0x8) = ecx; /* 0x36149B5B: mov dword ptr [eax + 8], ecx */ 19915 ebx = POP32_VAL(esp); /* 0x36149B5E: pop ebx */ 19916 esp = ebp; /* 0x36149B5F: mov esp, ebp */ 19917 ebp = POP32_VAL(esp); /* 0x36149B61: pop ebp */ 19918 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149B62: ret 4 */ 19919 L_36149B65: 19920 ecx = MEM32(ecx + 0x8); /* 0x36149B65: mov ecx, dword ptr [ecx + 8] */ 19921 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 19922 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19923 ecx = ecx - edx; /* 0x36149B68: sub ecx, edx */ 19924 _flag_k = FK_CMP; 19925 edx = MEM32(eax + 0x4); /* 0x36149B6A: mov edx, dword ptr [eax + 4] */ 19926 edi = POP32_VAL(esp); /* 0x36149B6D: pop edi */ 19927 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149B6E: sar ecx, 3 */ 19928 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19929 ecx = (uint32_t)((int32_t)ecx >> 3u); 19930 ecx = edx + ecx * 8; /* 0x36149B71: lea ecx, [edx + ecx*8] */ 19931 esi = POP32_VAL(esp); /* 0x36149B74: pop esi */ 19932 MEM32(eax + 0x8) = ecx; /* 0x36149B75: mov dword ptr [eax + 8], ecx */ 19933 ebx = POP32_VAL(esp); /* 0x36149B78: pop ebx */ 19934 esp = ebp; /* 0x36149B79: mov esp, ebp */ 19935 ebp = POP32_VAL(esp); /* 0x36149B7B: pop ebp */ 19936 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149B7C: ret 4 */ 19937 RECOMP_REGS_OUT(); 19938 } 19939 19940 void sub_36149BA1(void) { 19941 int _fpu_cmp = 0; 19942 uint32_t _cf = 0; 19943 int _df = 1; 19944 uint32_t _flag_k = FK_NONE; 19945 uint32_t _flag_a = 0, _flag_b = 0; 19946 uint32_t _itail_tgt = 0; 19947 RECOMP_REGS_LOCALS 19948 RECOMP_ENTER(0x36149BA1u); 19949 19950 L_36149BA1: 19951 /* test eax, eax */ /* 0x36149BA1: test eax, eax */ 19952 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19953 _cf = 0; 19954 _flag_k = FK_TEST; 19955 if (TEST_NS(_flag_a, _flag_b)) goto L_36149BA7; /* 0x36149BA3: jge 0x36149ba7 */ 19956 L_36149BA5: 19957 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19958 eax = 0; /* 0x36149BA5: xor eax, eax */ 19959 _cf = 0; 19960 _flag_k = FK_TEST; 19961 L_36149BA7: 19962 edx = eax * 8; /* 0x36149BA7: lea edx, [eax*8] */ 19963 PUSH32(esp, edx); /* 0x36149BAE: push edx */ 19964 RECOMP_ICALL(0x3615FD6Au); /* 0x36149BAF: call 0x3615fd6a */ /* not lifted */ 19965 RECOMP_FLAGS_IN(); 19966 ecx = MEM32(ebp + (-0x4)); /* 0x36149BB4: mov ecx, dword ptr [ebp - 4] */ 19967 edx = MEM32(ebp + 0x8); /* 0x36149BB7: mov edx, dword ptr [ebp + 8] */ 19968 MEM32(ecx + 0x4) = eax; /* 0x36149BBA: mov dword ptr [ecx + 4], eax */ 19969 ebx = MEM32(esi + 0x8); /* 0x36149BBD: mov ebx, dword ptr [esi + 8] */ 19970 esi = MEM32(edx + 0x4); /* 0x36149BC0: mov esi, dword ptr [edx + 4] */ 19971 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 19972 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19973 esp = esp + 4; /* 0x36149BC3: add esp, 4 */ 19974 _flag_k = FK_ADD; 19975 /* cmp esi, ebx */ /* 0x36149BC6: cmp esi, ebx */ 19976 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 19977 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19978 _flag_k = FK_CMP; 19979 edi = eax; /* 0x36149BC8: mov edi, eax */ 19980 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149BE0; /* 0x36149BCA: je 0x36149be0 */ 19981 L_36149BCC: 19982 PUSH32(esp, esi); /* 0x36149BCC: push esi */ 19983 PUSH32(esp, edi); /* 0x36149BCD: push edi */ 19984 RECOMP_ICALL(0x36059750u); /* 0x36149BCE: call 0x36059750 */ /* not lifted */ 19985 RECOMP_FLAGS_IN(); 19986 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 19987 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19988 esi = esi + 8; /* 0x36149BD3: add esi, 8 */ 19989 _flag_k = FK_ADD; 19990 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 19991 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19992 esp = esp + 8; /* 0x36149BD6: add esp, 8 */ 19993 _flag_k = FK_ADD; 19994 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 19995 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19996 edi = edi + 8; /* 0x36149BD9: add edi, 8 */ 19997 _flag_k = FK_ADD; 19998 /* cmp esi, ebx */ /* 0x36149BDC: cmp esi, ebx */ 19999 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 20000 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20001 _flag_k = FK_CMP; 20002 RECOMP_BACKEDGE(); 20003 if (CMP_NE(_flag_a, _flag_b)) goto L_36149BCC; /* 0x36149BDE: jne 0x36149bcc */ 20004 L_36149BE0: 20005 eax = MEM32(ebp + (-0x4)); /* 0x36149BE0: mov eax, dword ptr [ebp - 4] */ 20006 MEM32(eax + 0x8) = edi; /* 0x36149BE3: mov dword ptr [eax + 8], edi */ 20007 MEM32(eax + 0xC) = edi; /* 0x36149BE6: mov dword ptr [eax + 0xc], edi */ 20008 edi = POP32_VAL(esp); /* 0x36149BE9: pop edi */ 20009 esi = POP32_VAL(esp); /* 0x36149BEA: pop esi */ 20010 ebx = POP32_VAL(esp); /* 0x36149BEB: pop ebx */ 20011 esp = ebp; /* 0x36149BEC: mov esp, ebp */ 20012 ebp = POP32_VAL(esp); /* 0x36149BEE: pop ebp */ 20013 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149BEF: ret 4 */ 20014 RECOMP_REGS_OUT(); 20015 } 20016 20017 void sub_36149C00(void) { 20018 int _fpu_cmp = 0; 20019 uint32_t _cf = 0; 20020 int _df = 1; 20021 uint32_t _flag_k = FK_NONE; 20022 uint32_t _flag_a = 0, _flag_b = 0; 20023 uint32_t _itail_tgt = 0; 20024 RECOMP_REGS_LOCALS 20025 RECOMP_ENTER(0x36149C00u); 20026 20027 L_36149C00: 20028 PUSH32(esp, ebp); /* 0x36149C00: push ebp */ 20029 ebp = esp; /* 0x36149C01: mov ebp, esp */ 20030 PUSH32(esp, ebx); /* 0x36149C03: push ebx */ 20031 PUSH32(esp, esi); /* 0x36149C04: push esi */ 20032 esi = MEM32(ebp + 0x8); /* 0x36149C05: mov esi, dword ptr [ebp + 8] */ 20033 ebx = ecx; /* 0x36149C08: mov ebx, ecx */ 20034 /* cmp ebx, esi */ /* 0x36149C0A: cmp ebx, esi */ 20035 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 20036 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20037 _flag_k = FK_CMP; 20038 PUSH32(esp, edi); /* 0x36149C0C: push edi */ 20039 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149D7B; /* 0x36149C0D: je 0x36149d7b */ 20040 L_36149C13: 20041 eax = MEM32(esi + 0x4); /* 0x36149C13: mov eax, dword ptr [esi + 4] */ 20042 /* test eax, eax */ /* 0x36149C16: test eax, eax */ 20043 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20044 _cf = 0; 20045 _flag_k = FK_TEST; 20046 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149C1E; /* 0x36149C18: jne 0x36149c1e */ 20047 L_36149C1A: 20048 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20049 edi = 0; /* 0x36149C1A: xor edi, edi */ 20050 _cf = 0; 20051 _flag_k = FK_TEST; 20052 goto L_36149C25; /* 0x36149C1C: jmp 0x36149c25 */ 20053 L_36149C1E: 20054 edi = MEM32(esi + 0x8); /* 0x36149C1E: mov edi, dword ptr [esi + 8] */ 20055 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 20056 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20057 edi = edi - eax; /* 0x36149C21: sub edi, eax */ 20058 _flag_k = FK_CMP; 20059 if (1u) _cf = (((edi) >> 0) & 1u); /* 0x36149C23: sar edi, 1 */ 20060 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20061 edi = (uint32_t)((int32_t)edi >> 1u); 20062 L_36149C25: 20063 edx = MEM32(ebx + 0x4); /* 0x36149C25: mov edx, dword ptr [ebx + 4] */ 20064 /* test edx, edx */ /* 0x36149C28: test edx, edx */ 20065 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 20066 _cf = 0; 20067 _flag_k = FK_TEST; 20068 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149C30; /* 0x36149C2A: jne 0x36149c30 */ 20069 L_36149C2C: 20070 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20071 ecx = 0; /* 0x36149C2C: xor ecx, ecx */ 20072 _cf = 0; 20073 _flag_k = FK_TEST; 20074 goto L_36149C37; /* 0x36149C2E: jmp 0x36149c37 */ 20075 L_36149C30: 20076 ecx = MEM32(ebx + 0x8); /* 0x36149C30: mov ecx, dword ptr [ebx + 8] */ 20077 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 20078 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20079 ecx = ecx - edx; /* 0x36149C33: sub ecx, edx */ 20080 _flag_k = FK_CMP; 20081 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149C35: sar ecx, 1 */ 20082 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20083 ecx = (uint32_t)((int32_t)ecx >> 1u); 20084 L_36149C37: 20085 /* cmp edi, ecx */ /* 0x36149C37: cmp edi, ecx */ 20086 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 20087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20088 _flag_k = FK_CMP; 20089 if (CMP_A(_flag_a, _flag_b)) goto L_36149C86; /* 0x36149C39: ja 0x36149c86 */ 20090 L_36149C3B: 20091 ecx = MEM32(esi + 0x8); /* 0x36149C3B: mov ecx, dword ptr [esi + 8] */ 20092 /* cmp eax, ecx */ /* 0x36149C3E: cmp eax, ecx */ 20093 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 20094 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20095 _flag_k = FK_CMP; 20096 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149C52; /* 0x36149C40: je 0x36149c52 */ 20097 L_36149C42: 20098 SET_LO16(edi, MEM16(eax)); /* 0x36149C42: mov di, word ptr [eax] */ 20099 MEM16(edx) = (uint16_t)(LO16(edi)); /* 0x36149C45: mov word ptr [edx], di */ 20100 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 20101 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20102 eax = eax + 2; /* 0x36149C48: add eax, 2 */ 20103 _flag_k = FK_ADD; 20104 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 20105 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20106 edx = edx + 2; /* 0x36149C4B: add edx, 2 */ 20107 _flag_k = FK_ADD; 20108 /* cmp eax, ecx */ /* 0x36149C4E: cmp eax, ecx */ 20109 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 20110 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20111 _flag_k = FK_CMP; 20112 RECOMP_BACKEDGE(); 20113 if (CMP_NE(_flag_a, _flag_b)) goto L_36149C42; /* 0x36149C50: jne 0x36149c42 */ 20114 L_36149C52: 20115 eax = MEM32(esi + 0x4); /* 0x36149C52: mov eax, dword ptr [esi + 4] */ 20116 /* test eax, eax */ /* 0x36149C55: test eax, eax */ 20117 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20118 _cf = 0; 20119 _flag_k = FK_TEST; 20120 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149C6D; /* 0x36149C57: jne 0x36149c6d */ 20121 L_36149C59: 20122 eax = MEM32(ebx + 0x4); /* 0x36149C59: mov eax, dword ptr [ebx + 4] */ 20123 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20124 esi = 0; /* 0x36149C5C: xor esi, esi */ 20125 _cf = 0; 20126 _flag_k = FK_TEST; 20127 ecx = eax + esi * 2; /* 0x36149C5E: lea ecx, [eax + esi*2] */ 20128 edi = POP32_VAL(esp); /* 0x36149C61: pop edi */ 20129 esi = POP32_VAL(esp); /* 0x36149C62: pop esi */ 20130 MEM32(ebx + 0x8) = ecx; /* 0x36149C63: mov dword ptr [ebx + 8], ecx */ 20131 eax = ebx; /* 0x36149C66: mov eax, ebx */ 20132 ebx = POP32_VAL(esp); /* 0x36149C68: pop ebx */ 20133 ebp = POP32_VAL(esp); /* 0x36149C69: pop ebp */ 20134 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149C6A: ret 4 */ 20135 L_36149C6D: 20136 esi = MEM32(esi + 0x8); /* 0x36149C6D: mov esi, dword ptr [esi + 8] */ 20137 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 20138 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20139 esi = esi - eax; /* 0x36149C70: sub esi, eax */ 20140 _flag_k = FK_CMP; 20141 eax = MEM32(ebx + 0x4); /* 0x36149C72: mov eax, dword ptr [ebx + 4] */ 20142 if (1u) _cf = (((esi) >> 0) & 1u); /* 0x36149C75: sar esi, 1 */ 20143 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20144 esi = (uint32_t)((int32_t)esi >> 1u); 20145 ecx = eax + esi * 2; /* 0x36149C77: lea ecx, [eax + esi*2] */ 20146 edi = POP32_VAL(esp); /* 0x36149C7A: pop edi */ 20147 esi = POP32_VAL(esp); /* 0x36149C7B: pop esi */ 20148 MEM32(ebx + 0x8) = ecx; /* 0x36149C7C: mov dword ptr [ebx + 8], ecx */ 20149 eax = ebx; /* 0x36149C7F: mov eax, ebx */ 20150 ebx = POP32_VAL(esp); /* 0x36149C81: pop ebx */ 20151 ebp = POP32_VAL(esp); /* 0x36149C82: pop ebp */ 20152 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149C83: ret 4 */ 20153 L_36149C86: 20154 /* test eax, eax */ /* 0x36149C86: test eax, eax */ 20155 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20156 _cf = 0; 20157 _flag_k = FK_TEST; 20158 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149C8E; /* 0x36149C88: jne 0x36149c8e */ 20159 L_36149C8A: 20160 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20161 edi = 0; /* 0x36149C8A: xor edi, edi */ 20162 _cf = 0; 20163 _flag_k = FK_TEST; 20164 goto L_36149C95; /* 0x36149C8C: jmp 0x36149c95 */ 20165 L_36149C8E: 20166 edi = MEM32(esi + 0x8); /* 0x36149C8E: mov edi, dword ptr [esi + 8] */ 20167 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 20168 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20169 edi = edi - eax; /* 0x36149C91: sub edi, eax */ 20170 _flag_k = FK_CMP; 20171 if (1u) _cf = (((edi) >> 0) & 1u); /* 0x36149C93: sar edi, 1 */ 20172 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20173 edi = (uint32_t)((int32_t)edi >> 1u); 20174 L_36149C95: 20175 /* test edx, edx */ /* 0x36149C95: test edx, edx */ 20176 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 20177 _cf = 0; 20178 _flag_k = FK_TEST; 20179 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149C9D; /* 0x36149C97: jne 0x36149c9d */ 20180 L_36149C99: 20181 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20182 ecx = 0; /* 0x36149C99: xor ecx, ecx */ 20183 _cf = 0; 20184 _flag_k = FK_TEST; 20185 goto L_36149CA4; /* 0x36149C9B: jmp 0x36149ca4 */ 20186 L_36149C9D: 20187 ecx = MEM32(ebx + 0xC); /* 0x36149C9D: mov ecx, dword ptr [ebx + 0xc] */ 20188 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 20189 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20190 ecx = ecx - edx; /* 0x36149CA0: sub ecx, edx */ 20191 _flag_k = FK_CMP; 20192 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149CA2: sar ecx, 1 */ 20193 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20194 ecx = (uint32_t)((int32_t)ecx >> 1u); 20195 L_36149CA4: 20196 /* cmp edi, ecx */ /* 0x36149CA4: cmp edi, ecx */ 20197 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 20198 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20199 _flag_k = FK_CMP; 20200 if (CMP_A(_flag_a, _flag_b)) goto L_36149D22; /* 0x36149CA6: ja 0x36149d22 */ 20201 L_36149CA8: 20202 /* test edx, edx */ /* 0x36149CA8: test edx, edx */ 20203 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 20204 _cf = 0; 20205 _flag_k = FK_TEST; 20206 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149CB0; /* 0x36149CAA: jne 0x36149cb0 */ 20207 L_36149CAC: 20208 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20209 ecx = 0; /* 0x36149CAC: xor ecx, ecx */ 20210 _cf = 0; 20211 _flag_k = FK_TEST; 20212 goto L_36149CB7; /* 0x36149CAE: jmp 0x36149cb7 */ 20213 L_36149CB0: 20214 ecx = MEM32(ebx + 0x8); /* 0x36149CB0: mov ecx, dword ptr [ebx + 8] */ 20215 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 20216 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20217 ecx = ecx - edx; /* 0x36149CB3: sub ecx, edx */ 20218 _flag_k = FK_CMP; 20219 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x36149CB5: sar ecx, 1 */ 20220 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20221 ecx = (uint32_t)((int32_t)ecx >> 1u); 20222 L_36149CB7: 20223 ecx = eax + ecx * 2; /* 0x36149CB7: lea ecx, [eax + ecx*2] */ 20224 /* cmp eax, ecx */ /* 0x36149CBA: cmp eax, ecx */ 20225 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 20226 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20227 _flag_k = FK_CMP; 20228 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149CCE; /* 0x36149CBC: je 0x36149cce */ 20229 L_36149CBE: 20230 SET_LO16(edi, MEM16(eax)); /* 0x36149CBE: mov di, word ptr [eax] */ 20231 MEM16(edx) = (uint16_t)(LO16(edi)); /* 0x36149CC1: mov word ptr [edx], di */ 20232 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 20233 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20234 eax = eax + 2; /* 0x36149CC4: add eax, 2 */ 20235 _flag_k = FK_ADD; 20236 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 20237 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20238 edx = edx + 2; /* 0x36149CC7: add edx, 2 */ 20239 _flag_k = FK_ADD; 20240 /* cmp eax, ecx */ /* 0x36149CCA: cmp eax, ecx */ 20241 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 20242 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20243 _flag_k = FK_CMP; 20244 RECOMP_BACKEDGE(); 20245 if (CMP_NE(_flag_a, _flag_b)) goto L_36149CBE; /* 0x36149CCC: jne 0x36149cbe */ 20246 L_36149CCE: 20247 edi = MEM32(esi + 0x8); /* 0x36149CCE: mov edi, dword ptr [esi + 8] */ 20248 /* cmp ecx, edi */ /* 0x36149CD1: cmp ecx, edi */ 20249 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 20250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20251 _flag_k = FK_CMP; 20252 edx = MEM32(ebx + 0x8); /* 0x36149CD3: mov edx, dword ptr [ebx + 8] */ 20253 eax = ecx; /* 0x36149CD6: mov eax, ecx */ 20254 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149CEE; /* 0x36149CD8: je 0x36149cee */ 20255 L_36149CDA: 20256 /* test edx, edx */ /* 0x36149CDA: test edx, edx */ 20257 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 20258 _cf = 0; 20259 _flag_k = FK_TEST; 20260 if (TEST_Z(_flag_a, _flag_b)) goto L_36149CE4; /* 0x36149CDC: je 0x36149ce4 */ 20261 L_36149CDE: 20262 SET_LO16(ecx, MEM16(eax)); /* 0x36149CDE: mov cx, word ptr [eax] */ 20263 MEM16(edx) = (uint16_t)(LO16(ecx)); /* 0x36149CE1: mov word ptr [edx], cx */ 20264 L_36149CE4: 20265 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 20266 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20267 eax = eax + 2; /* 0x36149CE4: add eax, 2 */ 20268 _flag_k = FK_ADD; 20269 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 20270 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20271 edx = edx + 2; /* 0x36149CE7: add edx, 2 */ 20272 _flag_k = FK_ADD; 20273 /* cmp eax, edi */ /* 0x36149CEA: cmp eax, edi */ 20274 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 20275 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20276 _flag_k = FK_CMP; 20277 RECOMP_BACKEDGE(); 20278 if (CMP_NE(_flag_a, _flag_b)) goto L_36149CDA; /* 0x36149CEC: jne 0x36149cda */ 20279 L_36149CEE: 20280 eax = MEM32(esi + 0x4); /* 0x36149CEE: mov eax, dword ptr [esi + 4] */ 20281 /* test eax, eax */ /* 0x36149CF1: test eax, eax */ 20282 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20283 _cf = 0; 20284 _flag_k = FK_TEST; 20285 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149D09; /* 0x36149CF3: jne 0x36149d09 */ 20286 L_36149CF5: 20287 edx = MEM32(ebx + 0x4); /* 0x36149CF5: mov edx, dword ptr [ebx + 4] */ 20288 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20289 esi = 0; /* 0x36149CF8: xor esi, esi */ 20290 _cf = 0; 20291 _flag_k = FK_TEST; 20292 eax = edx + esi * 2; /* 0x36149CFA: lea eax, [edx + esi*2] */ 20293 edi = POP32_VAL(esp); /* 0x36149CFD: pop edi */ 20294 MEM32(ebx + 0x8) = eax; /* 0x36149CFE: mov dword ptr [ebx + 8], eax */ 20295 esi = POP32_VAL(esp); /* 0x36149D01: pop esi */ 20296 eax = ebx; /* 0x36149D02: mov eax, ebx */ 20297 ebx = POP32_VAL(esp); /* 0x36149D04: pop ebx */ 20298 ebp = POP32_VAL(esp); /* 0x36149D05: pop ebp */ 20299 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149D06: ret 4 */ 20300 L_36149D09: 20301 esi = MEM32(esi + 0x8); /* 0x36149D09: mov esi, dword ptr [esi + 8] */ 20302 edx = MEM32(ebx + 0x4); /* 0x36149D0C: mov edx, dword ptr [ebx + 4] */ 20303 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 20304 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20305 esi = esi - eax; /* 0x36149D0F: sub esi, eax */ 20306 _flag_k = FK_CMP; 20307 if (1u) _cf = (((esi) >> 0) & 1u); /* 0x36149D11: sar esi, 1 */ 20308 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20309 esi = (uint32_t)((int32_t)esi >> 1u); 20310 eax = edx + esi * 2; /* 0x36149D13: lea eax, [edx + esi*2] */ 20311 edi = POP32_VAL(esp); /* 0x36149D16: pop edi */ 20312 MEM32(ebx + 0x8) = eax; /* 0x36149D17: mov dword ptr [ebx + 8], eax */ 20313 esi = POP32_VAL(esp); /* 0x36149D1A: pop esi */ 20314 eax = ebx; /* 0x36149D1B: mov eax, ebx */ 20315 ebx = POP32_VAL(esp); /* 0x36149D1D: pop ebx */ 20316 ebp = POP32_VAL(esp); /* 0x36149D1E: pop ebp */ 20317 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149D1F: ret 4 */ 20318 L_36149D22: 20319 PUSH32(esp, edx); /* 0x36149D22: push edx */ 20320 MEM32(ebp + 0x8) = edx; /* 0x36149D23: mov dword ptr [ebp + 8], edx */ 20321 RECOMP_ICALL(0x3615FCC4u); /* 0x36149D26: call 0x3615fcc4 */ /* not lifted */ 20322 RECOMP_FLAGS_IN(); 20323 ecx = MEM32(esi + 0x4); /* 0x36149D2B: mov ecx, dword ptr [esi + 4] */ 20324 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 20325 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20326 esp = esp + 4; /* 0x36149D2E: add esp, 4 */ 20327 _flag_k = FK_ADD; 20328 /* test ecx, ecx */ /* 0x36149D31: test ecx, ecx */ 20329 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 20330 _cf = 0; 20331 _flag_k = FK_TEST; 20332 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149D39; /* 0x36149D33: jne 0x36149d39 */ 20333 L_36149D35: 20334 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20335 eax = 0; /* 0x36149D35: xor eax, eax */ 20336 _cf = 0; 20337 _flag_k = FK_TEST; 20338 goto L_36149D40; /* 0x36149D37: jmp 0x36149d40 */ 20339 L_36149D39: 20340 eax = MEM32(esi + 0x8); /* 0x36149D39: mov eax, dword ptr [esi + 8] */ 20341 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 20342 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20343 eax = eax - ecx; /* 0x36149D3C: sub eax, ecx */ 20344 _flag_k = FK_CMP; 20345 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x36149D3E: sar eax, 1 */ 20346 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20347 eax = (uint32_t)((int32_t)eax >> 1u); 20348 L_36149D40: 20349 /* test eax, eax */ /* 0x36149D40: test eax, eax */ 20350 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20351 _cf = 0; 20352 _flag_k = FK_TEST; 20353 if (TEST_NS(_flag_a, _flag_b)) goto L_36149D46; /* 0x36149D42: jge 0x36149d46 */ 20354 L_36149D44: 20355 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20356 eax = 0; /* 0x36149D44: xor eax, eax */ 20357 _cf = 0; 20358 _flag_k = FK_TEST; 20359 L_36149D46: 20360 ecx = eax + eax; /* 0x36149D46: lea ecx, [eax + eax] */ 20361 PUSH32(esp, ecx); /* 0x36149D49: push ecx */ 20362 RECOMP_ICALL(0x3615FD6Au); /* 0x36149D4A: call 0x3615fd6a */ /* not lifted */ 20363 RECOMP_FLAGS_IN(); 20364 MEM32(ebx + 0x4) = eax; /* 0x36149D4F: mov dword ptr [ebx + 4], eax */ 20365 edx = MEM32(esi + 0x8); /* 0x36149D52: mov edx, dword ptr [esi + 8] */ 20366 ecx = eax; /* 0x36149D55: mov ecx, eax */ 20367 eax = MEM32(esi + 0x4); /* 0x36149D57: mov eax, dword ptr [esi + 4] */ 20368 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 20369 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20370 esp = esp + 4; /* 0x36149D5A: add esp, 4 */ 20371 _flag_k = FK_ADD; 20372 /* cmp eax, edx */ /* 0x36149D5D: cmp eax, edx */ 20373 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 20374 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20375 _flag_k = FK_CMP; 20376 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149D75; /* 0x36149D5F: je 0x36149d75 */ 20377 L_36149D61: 20378 /* test ecx, ecx */ /* 0x36149D61: test ecx, ecx */ 20379 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 20380 _cf = 0; 20381 _flag_k = FK_TEST; 20382 if (TEST_Z(_flag_a, _flag_b)) goto L_36149D6B; /* 0x36149D63: je 0x36149d6b */ 20383 L_36149D65: 20384 SET_LO16(esi, MEM16(eax)); /* 0x36149D65: mov si, word ptr [eax] */ 20385 MEM16(ecx) = (uint16_t)(LO16(esi)); /* 0x36149D68: mov word ptr [ecx], si */ 20386 L_36149D6B: 20387 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 20388 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20389 eax = eax + 2; /* 0x36149D6B: add eax, 2 */ 20390 _flag_k = FK_ADD; 20391 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 20392 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20393 ecx = ecx + 2; /* 0x36149D6E: add ecx, 2 */ 20394 _flag_k = FK_ADD; 20395 /* cmp eax, edx */ /* 0x36149D71: cmp eax, edx */ 20396 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 20397 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20398 _flag_k = FK_CMP; 20399 RECOMP_BACKEDGE(); 20400 if (CMP_NE(_flag_a, _flag_b)) goto L_36149D61; /* 0x36149D73: jne 0x36149d61 */ 20401 L_36149D75: 20402 MEM32(ebx + 0x8) = ecx; /* 0x36149D75: mov dword ptr [ebx + 8], ecx */ 20403 MEM32(ebx + 0xC) = ecx; /* 0x36149D78: mov dword ptr [ebx + 0xc], ecx */ 20404 L_36149D7B: 20405 edi = POP32_VAL(esp); /* 0x36149D7B: pop edi */ 20406 esi = POP32_VAL(esp); /* 0x36149D7C: pop esi */ 20407 eax = ebx; /* 0x36149D7D: mov eax, ebx */ 20408 ebx = POP32_VAL(esp); /* 0x36149D7F: pop ebx */ 20409 ebp = POP32_VAL(esp); /* 0x36149D80: pop ebp */ 20410 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36149D81: ret 4 */ 20411 RECOMP_REGS_OUT(); 20412 } 20413 20414 void sub_36149D90(void) { 20415 int _fpu_cmp = 0; 20416 uint32_t _cf = 0; 20417 int _df = 1; 20418 uint32_t _flag_k = FK_NONE; 20419 uint32_t _flag_a = 0, _flag_b = 0; 20420 uint32_t _itail_tgt = 0; 20421 RECOMP_REGS_LOCALS 20422 RECOMP_ENTER(0x36149D90u); 20423 20424 L_36149D90: 20425 eax = MEM32(ecx + 0x4); /* 0x36149D90: mov eax, dword ptr [ecx + 4] */ 20426 /* test eax, eax */ /* 0x36149D93: test eax, eax */ 20427 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20428 _cf = 0; 20429 _flag_k = FK_TEST; 20430 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149D98; /* 0x36149D95: jne 0x36149d98 */ 20431 L_36149D97: 20432 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149D97: ret */ 20433 L_36149D98: 20434 ecx = MEM32(ecx + 0xC); /* 0x36149D98: mov ecx, dword ptr [ecx + 0xc] */ 20435 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 20436 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20437 ecx = ecx - eax; /* 0x36149D9B: sub ecx, eax */ 20438 _flag_k = FK_CMP; 20439 eax = 0x66666667u; /* 0x36149D9D: mov eax, 0x66666667 */ 20440 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149DA2: imul ecx */ 20441 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 20442 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 20443 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149DA4: sar edx, 3 */ 20444 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20445 edx = (uint32_t)((int32_t)edx >> 3u); 20446 eax = edx; /* 0x36149DA7: mov eax, edx */ 20447 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149DA9: shr eax, 0x1f */ 20448 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20449 eax = eax >> 31u; /* 0x36149DA9: shr eax, 0x1f */ 20450 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 20451 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20452 edx = edx + eax; /* 0x36149DAC: add edx, eax */ 20453 _flag_k = FK_ADD; 20454 eax = edx; /* 0x36149DAE: mov eax, edx */ 20455 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149DB0: ret */ 20456 RECOMP_REGS_OUT(); 20457 } 20458 20459 void sub_36149DC0(void) { 20460 int _fpu_cmp = 0; 20461 uint32_t _cf = 0; 20462 int _df = 1; 20463 uint32_t _flag_k = FK_NONE; 20464 uint32_t _flag_a = 0, _flag_b = 0; 20465 uint32_t _itail_tgt = 0; 20466 RECOMP_REGS_LOCALS 20467 RECOMP_ENTER(0x36149DC0u); 20468 20469 L_36149DC0: 20470 eax = MEM32(ecx + 0x4); /* 0x36149DC0: mov eax, dword ptr [ecx + 4] */ 20471 /* test eax, eax */ /* 0x36149DC3: test eax, eax */ 20472 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20473 _cf = 0; 20474 _flag_k = FK_TEST; 20475 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149DC8; /* 0x36149DC5: jne 0x36149dc8 */ 20476 L_36149DC7: 20477 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149DC7: ret */ 20478 L_36149DC8: 20479 ecx = MEM32(ecx + 0x8); /* 0x36149DC8: mov ecx, dword ptr [ecx + 8] */ 20480 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 20481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20482 ecx = ecx - eax; /* 0x36149DCB: sub ecx, eax */ 20483 _flag_k = FK_CMP; 20484 eax = 0x66666667u; /* 0x36149DCD: mov eax, 0x66666667 */ 20485 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149DD2: imul ecx */ 20486 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 20487 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 20488 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149DD4: sar edx, 3 */ 20489 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20490 edx = (uint32_t)((int32_t)edx >> 3u); 20491 eax = edx; /* 0x36149DD7: mov eax, edx */ 20492 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149DD9: shr eax, 0x1f */ 20493 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20494 eax = eax >> 31u; /* 0x36149DD9: shr eax, 0x1f */ 20495 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 20496 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20497 edx = edx + eax; /* 0x36149DDC: add edx, eax */ 20498 _flag_k = FK_ADD; 20499 eax = edx; /* 0x36149DDE: mov eax, edx */ 20500 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149DE0: ret */ 20501 RECOMP_REGS_OUT(); 20502 } 20503 20504 void sub_36149DF0(void) { 20505 int _fpu_cmp = 0; 20506 uint32_t _cf = 0; 20507 int _df = 1; 20508 uint32_t _flag_k = FK_NONE; 20509 uint32_t _flag_a = 0, _flag_b = 0; 20510 uint32_t _itail_tgt = 0; 20511 RECOMP_REGS_LOCALS 20512 RECOMP_ENTER(0x36149DF0u); 20513 20514 L_36149DF0: 20515 PUSH32(esp, ebp); /* 0x36149DF0: push ebp */ 20516 ebp = esp; /* 0x36149DF1: mov ebp, esp */ 20517 PUSH32(esp, esi); /* 0x36149DF3: push esi */ 20518 esi = MEM32(ebp + 0x8); /* 0x36149DF4: mov esi, dword ptr [ebp + 8] */ 20519 PUSH32(esp, edi); /* 0x36149DF7: push edi */ 20520 edi = MEM32(ebp + 0xC); /* 0x36149DF8: mov edi, dword ptr [ebp + 0xc] */ 20521 /* cmp esi, edi */ /* 0x36149DFB: cmp esi, edi */ 20522 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 20523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20524 _flag_k = FK_CMP; 20525 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149E0E; /* 0x36149DFD: je 0x36149e0e */ 20526 L_36149DFF: 20527 eax = MEM32(esi); /* 0x36149DFF: mov eax, dword ptr [esi] */ 20528 PUSH32(esp, 0); /* 0x36149E01: push 0 */ 20529 ecx = esi; /* 0x36149E03: mov ecx, esi */ 20530 RECOMP_ICALL(MEM32(eax)); /* 0x36149E05: call dword ptr [eax] */ 20531 RECOMP_FLAGS_IN(); 20532 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 20533 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20534 esi = esi + 0x14u; /* 0x36149E07: add esi, 0x14 */ 20535 _flag_k = FK_ADD; 20536 /* cmp esi, edi */ /* 0x36149E0A: cmp esi, edi */ 20537 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 20538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20539 _flag_k = FK_CMP; 20540 RECOMP_BACKEDGE(); 20541 if (CMP_NE(_flag_a, _flag_b)) goto L_36149DFF; /* 0x36149E0C: jne 0x36149dff */ 20542 L_36149E0E: 20543 edi = POP32_VAL(esp); /* 0x36149E0E: pop edi */ 20544 esi = POP32_VAL(esp); /* 0x36149E0F: pop esi */ 20545 ebp = POP32_VAL(esp); /* 0x36149E10: pop ebp */ 20546 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36149E11: ret 8 */ 20547 RECOMP_REGS_OUT(); 20548 } 20549 20550 void sub_36149E20(void) { 20551 int _fpu_cmp = 0; 20552 uint32_t _cf = 0; 20553 int _df = 1; 20554 uint32_t _flag_k = FK_NONE; 20555 uint32_t _flag_a = 0, _flag_b = 0; 20556 uint32_t _itail_tgt = 0; 20557 RECOMP_REGS_LOCALS 20558 RECOMP_ENTER(0x36149E20u); 20559 20560 L_36149E20: 20561 PUSH32(esp, ebp); /* 0x36149E20: push ebp */ 20562 ebp = esp; /* 0x36149E21: mov ebp, esp */ 20563 PUSH32(esp, ebx); /* 0x36149E23: push ebx */ 20564 ebx = MEM32(ebp + 0xC); /* 0x36149E24: mov ebx, dword ptr [ebp + 0xc] */ 20565 PUSH32(esp, esi); /* 0x36149E27: push esi */ 20566 esi = MEM32(ebp + 0x8); /* 0x36149E28: mov esi, dword ptr [ebp + 8] */ 20567 /* cmp esi, ebx */ /* 0x36149E2B: cmp esi, ebx */ 20568 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 20569 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20570 _flag_k = FK_CMP; 20571 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149E50; /* 0x36149E2D: je 0x36149e50 */ 20572 L_36149E2F: 20573 PUSH32(esp, edi); /* 0x36149E2F: push edi */ 20574 edi = MEM32(ebp + 0x10); /* 0x36149E30: mov edi, dword ptr [ebp + 0x10] */ 20575 L_36149E33: 20576 PUSH32(esp, esi); /* 0x36149E33: push esi */ 20577 PUSH32(esp, edi); /* 0x36149E34: push edi */ 20578 RECOMP_ICALL(0x3614A310u); /* 0x36149E35: call 0x3614a310 */ /* not lifted */ 20579 RECOMP_FLAGS_IN(); 20580 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 20581 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20582 esi = esi + 0x14u; /* 0x36149E3A: add esi, 0x14 */ 20583 _flag_k = FK_ADD; 20584 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 20585 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20586 esp = esp + 8; /* 0x36149E3D: add esp, 8 */ 20587 _flag_k = FK_ADD; 20588 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 20589 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20590 edi = edi + 0x14u; /* 0x36149E40: add edi, 0x14 */ 20591 _flag_k = FK_ADD; 20592 /* cmp esi, ebx */ /* 0x36149E43: cmp esi, ebx */ 20593 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 20594 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20595 _flag_k = FK_CMP; 20596 RECOMP_BACKEDGE(); 20597 if (CMP_NE(_flag_a, _flag_b)) goto L_36149E33; /* 0x36149E45: jne 0x36149e33 */ 20598 L_36149E47: 20599 eax = edi; /* 0x36149E47: mov eax, edi */ 20600 edi = POP32_VAL(esp); /* 0x36149E49: pop edi */ 20601 esi = POP32_VAL(esp); /* 0x36149E4A: pop esi */ 20602 ebx = POP32_VAL(esp); /* 0x36149E4B: pop ebx */ 20603 ebp = POP32_VAL(esp); /* 0x36149E4C: pop ebp */ 20604 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36149E4D: ret 0xc */ 20605 L_36149E50: 20606 eax = MEM32(ebp + 0x10); /* 0x36149E50: mov eax, dword ptr [ebp + 0x10] */ 20607 esi = POP32_VAL(esp); /* 0x36149E53: pop esi */ 20608 ebx = POP32_VAL(esp); /* 0x36149E54: pop ebx */ 20609 ebp = POP32_VAL(esp); /* 0x36149E55: pop ebp */ 20610 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36149E56: ret 0xc */ 20611 RECOMP_REGS_OUT(); 20612 } 20613 20614 void sub_36149E60(void) { 20615 int _fpu_cmp = 0; 20616 uint32_t _cf = 0; 20617 int _df = 1; 20618 uint32_t _flag_k = FK_NONE; 20619 uint32_t _flag_a = 0, _flag_b = 0; 20620 uint32_t _itail_tgt = 0; 20621 RECOMP_REGS_LOCALS 20622 RECOMP_ENTER(0x36149E60u); 20623 20624 L_36149E60: 20625 eax = MEM32(ecx + 0x4); /* 0x36149E60: mov eax, dword ptr [ecx + 4] */ 20626 /* test eax, eax */ /* 0x36149E63: test eax, eax */ 20627 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20628 _cf = 0; 20629 _flag_k = FK_TEST; 20630 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149E68; /* 0x36149E65: jne 0x36149e68 */ 20631 L_36149E67: 20632 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149E67: ret */ 20633 L_36149E68: 20634 ecx = MEM32(ecx + 0xC); /* 0x36149E68: mov ecx, dword ptr [ecx + 0xc] */ 20635 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 20636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20637 ecx = ecx - eax; /* 0x36149E6B: sub ecx, eax */ 20638 _flag_k = FK_CMP; 20639 eax = 0x88888889u; /* 0x36149E6D: mov eax, 0x88888889 */ 20640 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149E72: imul ecx */ 20641 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 20642 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 20643 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 20644 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20645 edx = edx + ecx; /* 0x36149E74: add edx, ecx */ 20646 _flag_k = FK_ADD; 20647 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36149E76: sar edx, 5 */ 20648 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20649 edx = (uint32_t)((int32_t)edx >> 5u); 20650 eax = edx; /* 0x36149E79: mov eax, edx */ 20651 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149E7B: shr eax, 0x1f */ 20652 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20653 eax = eax >> 31u; /* 0x36149E7B: shr eax, 0x1f */ 20654 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 20655 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20656 edx = edx + eax; /* 0x36149E7E: add edx, eax */ 20657 _flag_k = FK_ADD; 20658 eax = edx; /* 0x36149E80: mov eax, edx */ 20659 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149E82: ret */ 20660 RECOMP_REGS_OUT(); 20661 } 20662 20663 void sub_36149E90(void) { 20664 int _fpu_cmp = 0; 20665 uint32_t _cf = 0; 20666 int _df = 1; 20667 uint32_t _flag_k = FK_NONE; 20668 uint32_t _flag_a = 0, _flag_b = 0; 20669 uint32_t _itail_tgt = 0; 20670 RECOMP_REGS_LOCALS 20671 RECOMP_ENTER(0x36149E90u); 20672 20673 L_36149E90: 20674 eax = MEM32(ecx + 0x4); /* 0x36149E90: mov eax, dword ptr [ecx + 4] */ 20675 /* test eax, eax */ /* 0x36149E93: test eax, eax */ 20676 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20677 _cf = 0; 20678 _flag_k = FK_TEST; 20679 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149E98; /* 0x36149E95: jne 0x36149e98 */ 20680 L_36149E97: 20681 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149E97: ret */ 20682 L_36149E98: 20683 ecx = MEM32(ecx + 0x8); /* 0x36149E98: mov ecx, dword ptr [ecx + 8] */ 20684 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 20685 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20686 ecx = ecx - eax; /* 0x36149E9B: sub ecx, eax */ 20687 _flag_k = FK_CMP; 20688 eax = 0x88888889u; /* 0x36149E9D: mov eax, 0x88888889 */ 20689 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36149EA2: imul ecx */ 20690 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 20691 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 20692 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 20693 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20694 edx = edx + ecx; /* 0x36149EA4: add edx, ecx */ 20695 _flag_k = FK_ADD; 20696 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36149EA6: sar edx, 5 */ 20697 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20698 edx = (uint32_t)((int32_t)edx >> 5u); 20699 eax = edx; /* 0x36149EA9: mov eax, edx */ 20700 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36149EAB: shr eax, 0x1f */ 20701 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20702 eax = eax >> 31u; /* 0x36149EAB: shr eax, 0x1f */ 20703 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 20704 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20705 edx = edx + eax; /* 0x36149EAE: add edx, eax */ 20706 _flag_k = FK_ADD; 20707 eax = edx; /* 0x36149EB0: mov eax, edx */ 20708 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36149EB2: ret */ 20709 RECOMP_REGS_OUT(); 20710 } 20711 20712 void sub_36149EC0(void) { 20713 int _fpu_cmp = 0; 20714 uint32_t _cf = 0; 20715 int _df = 1; 20716 uint32_t _flag_k = FK_NONE; 20717 uint32_t _flag_a = 0, _flag_b = 0; 20718 uint32_t _itail_tgt = 0; 20719 RECOMP_REGS_LOCALS 20720 RECOMP_ENTER(0x36149EC0u); 20721 20722 L_36149EC0: 20723 PUSH32(esp, ebp); /* 0x36149EC0: push ebp */ 20724 ebp = esp; /* 0x36149EC1: mov ebp, esp */ 20725 PUSH32(esp, esi); /* 0x36149EC3: push esi */ 20726 esi = MEM32(ebp + 0x8); /* 0x36149EC4: mov esi, dword ptr [ebp + 8] */ 20727 PUSH32(esp, edi); /* 0x36149EC7: push edi */ 20728 edi = MEM32(ebp + 0xC); /* 0x36149EC8: mov edi, dword ptr [ebp + 0xc] */ 20729 /* cmp esi, edi */ /* 0x36149ECB: cmp esi, edi */ 20730 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 20731 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20732 _flag_k = FK_CMP; 20733 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149EDE; /* 0x36149ECD: je 0x36149ede */ 20734 L_36149ECF: 20735 eax = MEM32(esi); /* 0x36149ECF: mov eax, dword ptr [esi] */ 20736 PUSH32(esp, 0); /* 0x36149ED1: push 0 */ 20737 ecx = esi; /* 0x36149ED3: mov ecx, esi */ 20738 RECOMP_ICALL(MEM32(eax)); /* 0x36149ED5: call dword ptr [eax] */ 20739 RECOMP_FLAGS_IN(); 20740 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x3Cu); 20741 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20742 esi = esi + 0x3Cu; /* 0x36149ED7: add esi, 0x3c */ 20743 _flag_k = FK_ADD; 20744 /* cmp esi, edi */ /* 0x36149EDA: cmp esi, edi */ 20745 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 20746 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20747 _flag_k = FK_CMP; 20748 RECOMP_BACKEDGE(); 20749 if (CMP_NE(_flag_a, _flag_b)) goto L_36149ECF; /* 0x36149EDC: jne 0x36149ecf */ 20750 L_36149EDE: 20751 edi = POP32_VAL(esp); /* 0x36149EDE: pop edi */ 20752 esi = POP32_VAL(esp); /* 0x36149EDF: pop esi */ 20753 ebp = POP32_VAL(esp); /* 0x36149EE0: pop ebp */ 20754 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36149EE1: ret 8 */ 20755 RECOMP_REGS_OUT(); 20756 } 20757 20758 void sub_36149EF0(void) { 20759 int _fpu_cmp = 0; 20760 uint32_t _cf = 0; 20761 int _df = 1; 20762 uint32_t _flag_k = FK_NONE; 20763 uint32_t _flag_a = 0, _flag_b = 0; 20764 uint32_t _itail_tgt = 0; 20765 RECOMP_REGS_LOCALS 20766 RECOMP_ENTER(0x36149EF0u); 20767 20768 L_36149EF0: 20769 PUSH32(esp, ebp); /* 0x36149EF0: push ebp */ 20770 ebp = esp; /* 0x36149EF1: mov ebp, esp */ 20771 PUSH32(esp, ebx); /* 0x36149EF3: push ebx */ 20772 ebx = MEM32(ebp + 0xC); /* 0x36149EF4: mov ebx, dword ptr [ebp + 0xc] */ 20773 PUSH32(esp, esi); /* 0x36149EF7: push esi */ 20774 esi = MEM32(ebp + 0x8); /* 0x36149EF8: mov esi, dword ptr [ebp + 8] */ 20775 /* cmp esi, ebx */ /* 0x36149EFB: cmp esi, ebx */ 20776 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 20777 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20778 _flag_k = FK_CMP; 20779 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149F20; /* 0x36149EFD: je 0x36149f20 */ 20780 L_36149EFF: 20781 PUSH32(esp, edi); /* 0x36149EFF: push edi */ 20782 edi = MEM32(ebp + 0x10); /* 0x36149F00: mov edi, dword ptr [ebp + 0x10] */ 20783 L_36149F03: 20784 PUSH32(esp, esi); /* 0x36149F03: push esi */ 20785 PUSH32(esp, edi); /* 0x36149F04: push edi */ 20786 RECOMP_ICALL(0x3614A3D0u); /* 0x36149F05: call 0x3614a3d0 */ /* not lifted */ 20787 RECOMP_FLAGS_IN(); 20788 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x3Cu); 20789 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20790 esi = esi + 0x3Cu; /* 0x36149F0A: add esi, 0x3c */ 20791 _flag_k = FK_ADD; 20792 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 20793 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20794 esp = esp + 8; /* 0x36149F0D: add esp, 8 */ 20795 _flag_k = FK_ADD; 20796 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x3Cu); 20797 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20798 edi = edi + 0x3Cu; /* 0x36149F10: add edi, 0x3c */ 20799 _flag_k = FK_ADD; 20800 /* cmp esi, ebx */ /* 0x36149F13: cmp esi, ebx */ 20801 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 20802 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20803 _flag_k = FK_CMP; 20804 RECOMP_BACKEDGE(); 20805 if (CMP_NE(_flag_a, _flag_b)) goto L_36149F03; /* 0x36149F15: jne 0x36149f03 */ 20806 L_36149F17: 20807 eax = edi; /* 0x36149F17: mov eax, edi */ 20808 edi = POP32_VAL(esp); /* 0x36149F19: pop edi */ 20809 esi = POP32_VAL(esp); /* 0x36149F1A: pop esi */ 20810 ebx = POP32_VAL(esp); /* 0x36149F1B: pop ebx */ 20811 ebp = POP32_VAL(esp); /* 0x36149F1C: pop ebp */ 20812 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36149F1D: ret 0xc */ 20813 L_36149F20: 20814 eax = MEM32(ebp + 0x10); /* 0x36149F20: mov eax, dword ptr [ebp + 0x10] */ 20815 esi = POP32_VAL(esp); /* 0x36149F23: pop esi */ 20816 ebx = POP32_VAL(esp); /* 0x36149F24: pop ebx */ 20817 ebp = POP32_VAL(esp); /* 0x36149F25: pop ebp */ 20818 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36149F26: ret 0xc */ 20819 RECOMP_REGS_OUT(); 20820 } 20821 20822 void sub_36149F30(void) { 20823 int _fpu_cmp = 0; 20824 uint32_t _cf = 0; 20825 int _df = 1; 20826 uint32_t _flag_k = FK_NONE; 20827 uint32_t _flag_a = 0, _flag_b = 0; 20828 uint32_t _itail_tgt = 0; 20829 RECOMP_REGS_LOCALS 20830 RECOMP_ENTER(0x36149F30u); 20831 20832 L_36149F30: 20833 PUSH32(esp, ebp); /* 0x36149F30: push ebp */ 20834 ebp = esp; /* 0x36149F31: mov ebp, esp */ 20835 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 20836 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20837 esp = esp - 0x10u; /* 0x36149F33: sub esp, 0x10 */ 20838 _flag_k = FK_CMP; 20839 edx = MEM32(ecx + 0xC); /* 0x36149F36: mov edx, dword ptr [ecx + 0xc] */ 20840 eax = MEM32(ebp + 0xC); /* 0x36149F39: mov eax, dword ptr [ebp + 0xc] */ 20841 PUSH32(esp, ebx); /* 0x36149F3C: push ebx */ 20842 PUSH32(esp, esi); /* 0x36149F3D: push esi */ 20843 esi = MEM32(ecx + 0x8); /* 0x36149F3E: mov esi, dword ptr [ecx + 8] */ 20844 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 20845 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20846 edx = edx - esi; /* 0x36149F41: sub edx, esi */ 20847 _flag_k = FK_CMP; 20848 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36149F43: sar edx, 3 */ 20849 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20850 edx = (uint32_t)((int32_t)edx >> 3u); 20851 /* cmp edx, eax */ /* 0x36149F46: cmp edx, eax */ 20852 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 20853 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20854 _flag_k = FK_CMP; 20855 PUSH32(esp, edi); /* 0x36149F48: push edi */ 20856 MEM32(ebp + (-0x4)) = ecx; /* 0x36149F49: mov dword ptr [ebp - 4], ecx */ 20857 if (CMP_AE(_flag_a, _flag_b)) goto L_3614A062; /* 0x36149F4C: jae 0x3614a062 */ 20858 L_36149F52: 20859 edx = MEM32(ecx + 0x4); /* 0x36149F52: mov edx, dword ptr [ecx + 4] */ 20860 /* test edx, edx */ /* 0x36149F55: test edx, edx */ 20861 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 20862 _cf = 0; 20863 _flag_k = FK_TEST; 20864 if (TEST_Z(_flag_a, _flag_b)) goto L_36149F6A; /* 0x36149F57: je 0x36149f6a */ 20865 L_36149F59: 20866 ecx = esi; /* 0x36149F59: mov ecx, esi */ 20867 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 20868 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20869 ecx = ecx - edx; /* 0x36149F5B: sub ecx, edx */ 20870 _flag_k = FK_CMP; 20871 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x36149F5D: sar ecx, 3 */ 20872 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20873 ecx = (uint32_t)((int32_t)ecx >> 3u); 20874 /* cmp eax, ecx */ /* 0x36149F60: cmp eax, ecx */ 20875 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 20876 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20877 _flag_k = FK_CMP; 20878 if (CMP_AE(_flag_a, _flag_b)) goto L_36149F66; /* 0x36149F62: jae 0x36149f66 */ 20879 L_36149F64: 20880 eax = ecx; /* 0x36149F64: mov eax, ecx */ 20881 L_36149F66: 20882 /* test edx, edx */ /* 0x36149F66: test edx, edx */ 20883 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 20884 _cf = 0; 20885 _flag_k = FK_TEST; 20886 if (TEST_NZ(_flag_a, _flag_b)) goto L_36149F6E; /* 0x36149F68: jne 0x36149f6e */ 20887 L_36149F6A: 20888 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20889 esi = 0; /* 0x36149F6A: xor esi, esi */ 20890 _cf = 0; 20891 _flag_k = FK_TEST; 20892 goto L_36149F73; /* 0x36149F6C: jmp 0x36149f73 */ 20893 L_36149F6E: 20894 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 20895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20896 esi = esi - edx; /* 0x36149F6E: sub esi, edx */ 20897 _flag_k = FK_CMP; 20898 if (3u) _cf = (((esi) >> 2) & 1u); /* 0x36149F70: sar esi, 3 */ 20899 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20900 esi = (uint32_t)((int32_t)esi >> 3u); 20901 L_36149F73: 20902 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 20903 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20904 eax = eax + esi; /* 0x36149F73: add eax, esi */ 20905 _flag_k = FK_ADD; 20906 /* test eax, eax */ /* 0x36149F75: test eax, eax */ 20907 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20908 _cf = 0; 20909 _flag_k = FK_TEST; 20910 MEM32(ebp + (-0x10)) = eax; /* 0x36149F77: mov dword ptr [ebp - 0x10], eax */ 20911 if (TEST_NS(_flag_a, _flag_b)) goto L_36149F7E; /* 0x36149F7A: jge 0x36149f7e */ 20912 L_36149F7C: 20913 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20914 eax = 0; /* 0x36149F7C: xor eax, eax */ 20915 _cf = 0; 20916 _flag_k = FK_TEST; 20917 L_36149F7E: 20918 if (3u) _cf = (((eax) >> 29) & 1u); /* 0x36149F7E: shl eax, 3 */ 20919 if (3u) { _flag_a = recomp_flags_pack((eax << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20920 eax = eax << 3u; /* 0x36149F7E: shl eax, 3 */ 20921 PUSH32(esp, eax); /* 0x36149F81: push eax */ 20922 RECOMP_ICALL(0x3615FD6Au); /* 0x36149F82: call 0x3615fd6a */ /* not lifted */ 20923 RECOMP_FLAGS_IN(); 20924 ebx = MEM32(ebp + (-0x4)); /* 0x36149F87: mov ebx, dword ptr [ebp - 4] */ 20925 esi = MEM32(ebx + 0x4); /* 0x36149F8A: mov esi, dword ptr [ebx + 4] */ 20926 MEM32(ebp + (-0xC)) = eax; /* 0x36149F8D: mov dword ptr [ebp - 0xc], eax */ 20927 edi = eax; /* 0x36149F90: mov edi, eax */ 20928 eax = MEM32(ebp + 0x8); /* 0x36149F92: mov eax, dword ptr [ebp + 8] */ 20929 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 20930 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20931 esp = esp + 4; /* 0x36149F95: add esp, 4 */ 20932 _flag_k = FK_ADD; 20933 /* cmp esi, eax */ /* 0x36149F98: cmp esi, eax */ 20934 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 20935 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20936 _flag_k = FK_CMP; 20937 if (CMP_EQ(_flag_a, _flag_b)) goto L_36149FB3; /* 0x36149F9A: je 0x36149fb3 */ 20938 L_36149F9C: 20939 PUSH32(esp, esi); /* 0x36149F9C: push esi */ 20940 PUSH32(esp, edi); /* 0x36149F9D: push edi */ 20941 RECOMP_ICALL(0x36059750u); /* 0x36149F9E: call 0x36059750 */ /* not lifted */ 20942 RECOMP_FLAGS_IN(); 20943 eax = MEM32(ebp + 0x8); /* 0x36149FA3: mov eax, dword ptr [ebp + 8] */ 20944 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 20945 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20946 esi = esi + 8; /* 0x36149FA6: add esi, 8 */ 20947 _flag_k = FK_ADD; 20948 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 20949 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20950 esp = esp + 8; /* 0x36149FA9: add esp, 8 */ 20951 _flag_k = FK_ADD; 20952 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 20953 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20954 edi = edi + 8; /* 0x36149FAC: add edi, 8 */ 20955 _flag_k = FK_ADD; 20956 /* cmp esi, eax */ /* 0x36149FAF: cmp esi, eax */ 20957 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 20958 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20959 _flag_k = FK_CMP; 20960 RECOMP_BACKEDGE(); 20961 if (CMP_NE(_flag_a, _flag_b)) goto L_36149F9C; /* 0x36149FB1: jne 0x36149f9c */ 20962 L_36149FB3: 20963 eax = MEM32(ebp + 0xC); /* 0x36149FB3: mov eax, dword ptr [ebp + 0xc] */ 20964 /* test eax, eax */ /* 0x36149FB6: test eax, eax */ 20965 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20966 _cf = 0; 20967 _flag_k = FK_TEST; 20968 esi = edi; /* 0x36149FB8: mov esi, edi */ 20969 if (TEST_Z(_flag_a, _flag_b)) goto L_36149FDB; /* 0x36149FBA: jbe 0x36149fdb */ 20970 L_36149FBC: 20971 MEM32(ebp + (-0x8)) = eax; /* 0x36149FBC: mov dword ptr [ebp - 8], eax */ 20972 L_36149FBF: 20973 ecx = MEM32(ebp + 0x10); /* 0x36149FBF: mov ecx, dword ptr [ebp + 0x10] */ 20974 PUSH32(esp, ecx); /* 0x36149FC2: push ecx */ 20975 PUSH32(esp, esi); /* 0x36149FC3: push esi */ 20976 RECOMP_ICALL(0x36059750u); /* 0x36149FC4: call 0x36059750 */ /* not lifted */ 20977 RECOMP_FLAGS_IN(); 20978 eax = MEM32(ebp + (-0x8)); /* 0x36149FC9: mov eax, dword ptr [ebp - 8] */ 20979 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 20980 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20981 esp = esp + 8; /* 0x36149FCC: add esp, 8 */ 20982 _flag_k = FK_ADD; 20983 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 20984 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20985 esi = esi + 8; /* 0x36149FCF: add esi, 8 */ 20986 _flag_k = FK_ADD; 20987 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 20988 eax = eax - 1; /* 0x36149FD2: dec eax */ 20989 _flag_k = FK_DEC; 20990 MEM32(ebp + (-0x8)) = eax; /* 0x36149FD3: mov dword ptr [ebp - 8], eax */ 20991 RECOMP_BACKEDGE(); 20992 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36149FBF; /* 0x36149FD6: jne 0x36149fbf */ 20993 L_36149FD8: 20994 eax = MEM32(ebp + 0xC); /* 0x36149FD8: mov eax, dword ptr [ebp + 0xc] */ 20995 L_36149FDB: 20996 esi = MEM32(ebp + 0x8); /* 0x36149FDB: mov esi, dword ptr [ebp + 8] */ 20997 eax = edi + eax * 8; /* 0x36149FDE: lea eax, [edi + eax*8] */ 20998 edi = MEM32(ebx + 0x8); /* 0x36149FE1: mov edi, dword ptr [ebx + 8] */ 20999 /* cmp esi, edi */ /* 0x36149FE4: cmp esi, edi */ 21000 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 21001 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21002 _flag_k = FK_CMP; 21003 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614A008; /* 0x36149FE6: je 0x3614a008 */ 21004 L_36149FE8: 21005 MEM32(ebp + 0x8) = eax; /* 0x36149FE8: mov dword ptr [ebp + 8], eax */ 21006 L_36149FEB: 21007 edx = MEM32(ebp + 0x8); /* 0x36149FEB: mov edx, dword ptr [ebp + 8] */ 21008 PUSH32(esp, esi); /* 0x36149FEE: push esi */ 21009 PUSH32(esp, edx); /* 0x36149FEF: push edx */ 21010 RECOMP_ICALL(0x36059750u); /* 0x36149FF0: call 0x36059750 */ /* not lifted */ 21011 RECOMP_FLAGS_IN(); 21012 ecx = MEM32(ebp + 0x8); /* 0x36149FF5: mov ecx, dword ptr [ebp + 8] */ 21013 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 21014 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21015 esi = esi + 8; /* 0x36149FF8: add esi, 8 */ 21016 _flag_k = FK_ADD; 21017 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 21018 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21019 ecx = ecx + 8; /* 0x36149FFB: add ecx, 8 */ 21020 _flag_k = FK_ADD; 21021 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 21022 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21023 esp = esp + 8; /* 0x36149FFE: add esp, 8 */ 21024 _flag_k = FK_ADD; 21025 /* cmp esi, edi */ /* 0x3614A001: cmp esi, edi */ 21026 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 21027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21028 _flag_k = FK_CMP; 21029 MEM32(ebp + 0x8) = ecx; /* 0x3614A003: mov dword ptr [ebp + 8], ecx */ 21030 RECOMP_BACKEDGE(); 21031 if (CMP_NE(_flag_a, _flag_b)) goto L_36149FEB; /* 0x3614A006: jne 0x36149feb */ 21032 L_3614A008: 21033 eax = MEM32(ebx + 0x4); /* 0x3614A008: mov eax, dword ptr [ebx + 4] */ 21034 PUSH32(esp, eax); /* 0x3614A00B: push eax */ 21035 MEM32(ebp + 0x8) = eax; /* 0x3614A00C: mov dword ptr [ebp + 8], eax */ 21036 RECOMP_ICALL(0x3615FCC4u); /* 0x3614A00F: call 0x3615fcc4 */ /* not lifted */ 21037 RECOMP_FLAGS_IN(); 21038 edx = MEM32(ebp + (-0xC)); /* 0x3614A014: mov edx, dword ptr [ebp - 0xc] */ 21039 eax = MEM32(ebp + (-0x10)); /* 0x3614A017: mov eax, dword ptr [ebp - 0x10] */ 21040 ecx = edx + eax * 8; /* 0x3614A01A: lea ecx, [edx + eax*8] */ 21041 MEM32(ebx + 0xC) = ecx; /* 0x3614A01D: mov dword ptr [ebx + 0xc], ecx */ 21042 ecx = MEM32(ebx + 0x4); /* 0x3614A020: mov ecx, dword ptr [ebx + 4] */ 21043 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 21044 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21045 esp = esp + 4; /* 0x3614A023: add esp, 4 */ 21046 _flag_k = FK_ADD; 21047 /* test ecx, ecx */ /* 0x3614A026: test ecx, ecx */ 21048 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 21049 _cf = 0; 21050 _flag_k = FK_TEST; 21051 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614A043; /* 0x3614A028: jne 0x3614a043 */ 21052 L_3614A02A: 21053 ecx = MEM32(ebp + 0xC); /* 0x3614A02A: mov ecx, dword ptr [ebp + 0xc] */ 21054 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 21055 eax = 0; /* 0x3614A02D: xor eax, eax */ 21056 _cf = 0; 21057 _flag_k = FK_TEST; 21058 eax = ecx; /* 0x3614A02F: mov eax, ecx */ 21059 edi = POP32_VAL(esp); /* 0x3614A031: pop edi */ 21060 eax = edx + eax * 8; /* 0x3614A032: lea eax, [edx + eax*8] */ 21061 esi = POP32_VAL(esp); /* 0x3614A035: pop esi */ 21062 MEM32(ebx + 0x8) = eax; /* 0x3614A036: mov dword ptr [ebx + 8], eax */ 21063 MEM32(ebx + 0x4) = edx; /* 0x3614A039: mov dword ptr [ebx + 4], edx */ 21064 ebx = POP32_VAL(esp); /* 0x3614A03C: pop ebx */ 21065 esp = ebp; /* 0x3614A03D: mov esp, ebp */ 21066 ebp = POP32_VAL(esp); /* 0x3614A03F: pop ebp */ 21067 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3614A040: ret 0xc */ 21068 L_3614A043: 21069 eax = MEM32(ebx + 0x8); /* 0x3614A043: mov eax, dword ptr [ebx + 8] */ 21070 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 21071 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21072 eax = eax - ecx; /* 0x3614A046: sub eax, ecx */ 21073 _flag_k = FK_CMP; 21074 ecx = MEM32(ebp + 0xC); /* 0x3614A048: mov ecx, dword ptr [ebp + 0xc] */ 21075 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x3614A04B: sar eax, 3 */ 21076 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 21077 eax = (uint32_t)((int32_t)eax >> 3u); 21078 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 21079 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21080 eax = eax + ecx; /* 0x3614A04E: add eax, ecx */ 21081 _flag_k = FK_ADD; 21082 edi = POP32_VAL(esp); /* 0x3614A050: pop edi */ 21083 eax = edx + eax * 8; /* 0x3614A051: lea eax, [edx + eax*8] */ 21084 esi = POP32_VAL(esp); /* 0x3614A054: pop esi */ 21085 MEM32(ebx + 0x8) = eax; /* 0x3614A055: mov dword ptr [ebx + 8], eax */ 21086 MEM32(ebx + 0x4) = edx; /* 0x3614A058: mov dword ptr [ebx + 4], edx */ 21087 ebx = POP32_VAL(esp); /* 0x3614A05B: pop ebx */ 21088 esp = ebp; /* 0x3614A05C: mov esp, ebp */ 21089 ebp = POP32_VAL(esp); /* 0x3614A05E: pop ebp */ 21090 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3614A05F: ret 0xc */ 21091 L_3614A062: 21092 ebx = MEM32(ebp + 0x8); /* 0x3614A062: mov ebx, dword ptr [ebp + 8] */ 21093 edx = esi; /* 0x3614A065: mov edx, esi */ 21094 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 21095 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21096 edx = edx - ebx; /* 0x3614A067: sub edx, ebx */ 21097 _flag_k = FK_CMP; 21098 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3614A069: sar edx, 3 */ 21099 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 21100 edx = (uint32_t)((int32_t)edx >> 3u); 21101 /* cmp edx, eax */ /* 0x3614A06C: cmp edx, eax */ 21102 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 21103 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21104 _flag_k = FK_CMP; 21105 if (CMP_AE(_flag_a, _flag_b)) goto L_3614A105; /* 0x3614A06E: jae 0x3614a105 */ 21106 L_3614A074: 21107 edx = eax * 8; /* 0x3614A074: lea edx, [eax*8] */ 21108 MEM32(ebp + (-0x8)) = edx; /* 0x3614A07B: mov dword ptr [ebp - 8], edx */ 21109 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 21110 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21111 edx = edx + ebx; /* 0x3614A07E: add edx, ebx */ 21112 _flag_k = FK_ADD; 21113 /* cmp ebx, esi */ /* 0x3614A080: cmp ebx, esi */ 21114 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 21115 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21116 _flag_k = FK_CMP; 21117 edi = ebx; /* 0x3614A082: mov edi, ebx */ 21118 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614A0AC; /* 0x3614A084: je 0x3614a0ac */ 21119 L_3614A086: 21120 MEM32(ebp + 0x8) = edx; /* 0x3614A086: mov dword ptr [ebp + 8], edx */ 21121 L_3614A089: 21122 eax = MEM32(ebp + 0x8); /* 0x3614A089: mov eax, dword ptr [ebp + 8] */ 21123 PUSH32(esp, edi); /* 0x3614A08C: push edi */ 21124 PUSH32(esp, eax); /* 0x3614A08D: push eax */ 21125 RECOMP_ICALL(0x36059750u); /* 0x3614A08E: call 0x36059750 */ /* not lifted */ 21126 RECOMP_FLAGS_IN(); 21127 ecx = MEM32(ebp + 0x8); /* 0x3614A093: mov ecx, dword ptr [ebp + 8] */ 21128 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 21129 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21130 edi = edi + 8; /* 0x3614A096: add edi, 8 */ 21131 _flag_k = FK_ADD; 21132 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 21133 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21134 ecx = ecx + 8; /* 0x3614A099: add ecx, 8 */ 21135 _flag_k = FK_ADD; 21136 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 21137 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21138 esp = esp + 8; /* 0x3614A09C: add esp, 8 */ 21139 _flag_k = FK_ADD; 21140 /* cmp edi, esi */ /* 0x3614A09F: cmp edi, esi */ 21141 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 21142 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21143 _flag_k = FK_CMP; 21144 MEM32(ebp + 0x8) = ecx; /* 0x3614A0A1: mov dword ptr [ebp + 8], ecx */ 21145 RECOMP_BACKEDGE(); 21146 if (CMP_NE(_flag_a, _flag_b)) goto L_3614A089; /* 0x3614A0A4: jne 0x3614a089 */ 21147 L_3614A0A6: 21148 ecx = MEM32(ebp + (-0x4)); /* 0x3614A0A6: mov ecx, dword ptr [ebp - 4] */ 21149 eax = MEM32(ebp + 0xC); /* 0x3614A0A9: mov eax, dword ptr [ebp + 0xc] */ 21150 L_3614A0AC: 21151 esi = MEM32(ecx + 0x8); /* 0x3614A0AC: mov esi, dword ptr [ecx + 8] */ 21152 edi = MEM32(ebp + 0x10); /* 0x3614A0AF: mov edi, dword ptr [ebp + 0x10] */ 21153 edx = esi; /* 0x3614A0B2: mov edx, esi */ 21154 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 21155 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21156 edx = edx - ebx; /* 0x3614A0B4: sub edx, ebx */ 21157 _flag_k = FK_CMP; 21158 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3614A0B6: sar edx, 3 */ 21159 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 21160 edx = (uint32_t)((int32_t)edx >> 3u); 21161 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 21162 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21163 eax = eax - edx; /* 0x3614A0B9: sub eax, edx */ 21164 _flag_k = FK_CMP; 21165 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_3614A0D9; /* 0x3614A0BB: je 0x3614a0d9 */ 21166 L_3614A0BD: 21167 MEM32(ebp + 0xC) = eax; /* 0x3614A0BD: mov dword ptr [ebp + 0xc], eax */ 21168 L_3614A0C0: 21169 PUSH32(esp, edi); /* 0x3614A0C0: push edi */ 21170 PUSH32(esp, esi); /* 0x3614A0C1: push esi */ 21171 RECOMP_ICALL(0x36059750u); /* 0x3614A0C2: call 0x36059750 */ /* not lifted */ 21172 RECOMP_FLAGS_IN(); 21173 eax = MEM32(ebp + 0xC); /* 0x3614A0C7: mov eax, dword ptr [ebp + 0xc] */ 21174 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 21175 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21176 esp = esp + 8; /* 0x3614A0CA: add esp, 8 */ 21177 _flag_k = FK_ADD; 21178 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 21179 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21180 esi = esi + 8; /* 0x3614A0CD: add esi, 8 */ 21181 _flag_k = FK_ADD; 21182 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 21183 eax = eax - 1; /* 0x3614A0D0: dec eax */ 21184 _flag_k = FK_DEC; 21185 MEM32(ebp + 0xC) = eax; /* 0x3614A0D1: mov dword ptr [ebp + 0xc], eax */ 21186 RECOMP_BACKEDGE(); 21187 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3614A0C0; /* 0x3614A0D4: jne 0x3614a0c0 */ 21188 L_3614A0D6: 21189 ecx = MEM32(ebp + (-0x4)); /* 0x3614A0D6: mov ecx, dword ptr [ebp - 4] */ 21190 L_3614A0D9: 21191 eax = MEM32(ecx + 0x8); /* 0x3614A0D9: mov eax, dword ptr [ecx + 8] */ 21192 /* cmp ebx, eax */ /* 0x3614A0DC: cmp ebx, eax */ 21193 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 21194 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21195 _flag_k = FK_CMP; 21196 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614A0F1; /* 0x3614A0DE: je 0x3614a0f1 */ 21197 L_3614A0E0: 21198 edx = MEM32(edi); /* 0x3614A0E0: mov edx, dword ptr [edi] */ 21199 MEM32(ebx) = edx; /* 0x3614A0E2: mov dword ptr [ebx], edx */ 21200 edx = MEM32(edi + 0x4); /* 0x3614A0E4: mov edx, dword ptr [edi + 4] */ 21201 MEM32(ebx + 0x4) = edx; /* 0x3614A0E7: mov dword ptr [ebx + 4], edx */ 21202 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8); 21203 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21204 ebx = ebx + 8; /* 0x3614A0EA: add ebx, 8 */ 21205 _flag_k = FK_ADD; 21206 /* cmp ebx, eax */ /* 0x3614A0ED: cmp ebx, eax */ 21207 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 21208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21209 _flag_k = FK_CMP; 21210 RECOMP_BACKEDGE(); 21211 if (CMP_NE(_flag_a, _flag_b)) goto L_3614A0E0; /* 0x3614A0EF: jne 0x3614a0e0 */ 21212 L_3614A0F1: 21213 edx = MEM32(ecx + 0x8); /* 0x3614A0F1: mov edx, dword ptr [ecx + 8] */ 21214 eax = MEM32(ebp + (-0x8)); /* 0x3614A0F4: mov eax, dword ptr [ebp - 8] */ 21215 edi = POP32_VAL(esp); /* 0x3614A0F7: pop edi */ 21216 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 21217 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21218 edx = edx + eax; /* 0x3614A0F8: add edx, eax */ 21219 _flag_k = FK_ADD; 21220 esi = POP32_VAL(esp); /* 0x3614A0FA: pop esi */ 21221 MEM32(ecx + 0x8) = edx; /* 0x3614A0FB: mov dword ptr [ecx + 8], edx */ 21222 ebx = POP32_VAL(esp); /* 0x3614A0FE: pop ebx */ 21223 esp = ebp; /* 0x3614A0FF: mov esp, ebp */ 21224 ebp = POP32_VAL(esp); /* 0x3614A101: pop ebp */ 21225 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3614A102: ret 0xc */ 21226 L_3614A105: 21227 /* test eax, eax */ /* 0x3614A105: test eax, eax */ 21228 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 21229 _cf = 0; 21230 _flag_k = FK_TEST; 21231 if (TEST_Z(_flag_a, _flag_b)) goto L_3614A17B; /* 0x3614A107: jbe 0x3614a17b */ 21232 L_3614A109: 21233 if (3u) _cf = (((eax) >> 29) & 1u); /* 0x3614A109: shl eax, 3 */ 21234 if (3u) { _flag_a = recomp_flags_pack((eax << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 21235 eax = eax << 3u; /* 0x3614A109: shl eax, 3 */ 21236 edi = esi; /* 0x3614A10C: mov edi, esi */ 21237 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 21238 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21239 edi = edi - eax; /* 0x3614A10E: sub edi, eax */ 21240 _flag_k = FK_CMP; 21241 /* cmp edi, esi */ /* 0x3614A110: cmp edi, esi */ 21242 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 21243 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21244 _flag_k = FK_CMP; 21245 MEM32(ebp + 0xC) = esi; /* 0x3614A112: mov dword ptr [ebp + 0xc], esi */ 21246 MEM32(ebp + (-0x8)) = eax; /* 0x3614A115: mov dword ptr [ebp - 8], eax */ 21247 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614A13A; /* 0x3614A118: je 0x3614a13a */ 21248 L_3614A11A: 21249 ecx = MEM32(ebp + 0xC); /* 0x3614A11A: mov ecx, dword ptr [ebp + 0xc] */ 21250 PUSH32(esp, edi); /* 0x3614A11D: push edi */ 21251 PUSH32(esp, ecx); /* 0x3614A11E: push ecx */ 21252 RECOMP_ICALL(0x36059750u); /* 0x3614A11F: call 0x36059750 */ /* not lifted */ 21253 RECOMP_FLAGS_IN(); 21254 edx = MEM32(ebp + 0xC); /* 0x3614A124: mov edx, dword ptr [ebp + 0xc] */ 21255 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 21256 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21257 edx = edx + 8; /* 0x3614A127: add edx, 8 */ 21258 _flag_k = FK_ADD; 21259 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 21260 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21261 edi = edi + 8; /* 0x3614A12A: add edi, 8 */ 21262 _flag_k = FK_ADD; 21263 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 21264 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21265 esp = esp + 8; /* 0x3614A12D: add esp, 8 */ 21266 _flag_k = FK_ADD; 21267 /* cmp edi, esi */ /* 0x3614A130: cmp edi, esi */ 21268 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 21269 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21270 _flag_k = FK_CMP; 21271 MEM32(ebp + 0xC) = edx; /* 0x3614A132: mov dword ptr [ebp + 0xc], edx */ 21272 RECOMP_BACKEDGE(); 21273 if (CMP_NE(_flag_a, _flag_b)) goto L_3614A11A; /* 0x3614A135: jne 0x3614a11a */ 21274 L_3614A137: 21275 ecx = MEM32(ebp + (-0x4)); /* 0x3614A137: mov ecx, dword ptr [ebp - 4] */ 21276 L_3614A13A: 21277 edx = MEM32(ecx + 0x8); /* 0x3614A13A: mov edx, dword ptr [ecx + 8] */ 21278 esi = MEM32(ebp + (-0x8)); /* 0x3614A13D: mov esi, dword ptr [ebp - 8] */ 21279 eax = edx; /* 0x3614A140: mov eax, edx */ 21280 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 21281 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21282 eax = eax - esi; /* 0x3614A142: sub eax, esi */ 21283 _flag_k = FK_CMP; 21284 /* cmp ebx, eax */ /* 0x3614A144: cmp ebx, eax */ 21285 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 21286 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21287 _flag_k = FK_CMP; 21288 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614A15D; /* 0x3614A146: je 0x3614a15d */ 21289 L_3614A148: 21290 edi = MEM32(eax + (-0x8)); /* 0x3614A148: mov edi, dword ptr [eax - 8] */ 21291 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 21292 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21293 eax = eax - 8; /* 0x3614A14B: sub eax, 8 */ 21294 _flag_k = FK_CMP; 21295 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 21296 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21297 edx = edx - 8; /* 0x3614A14E: sub edx, 8 */ 21298 _flag_k = FK_CMP; 21299 /* cmp eax, ebx */ /* 0x3614A151: cmp eax, ebx */ 21300 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 21301 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21302 _flag_k = FK_CMP; 21303 MEM32(edx) = edi; /* 0x3614A153: mov dword ptr [edx], edi */ 21304 edi = MEM32(eax + 0x4); /* 0x3614A155: mov edi, dword ptr [eax + 4] */ 21305 MEM32(edx + 0x4) = edi; /* 0x3614A158: mov dword ptr [edx + 4], edi */ 21306 RECOMP_BACKEDGE(); 21307 if (CMP_NE(_flag_a, _flag_b)) goto L_3614A148; /* 0x3614A15B: jne 0x3614a148 */ 21308 L_3614A15D: 21309 edx = esi + ebx; /* 0x3614A15D: lea edx, [esi + ebx] */ 21310 /* cmp ebx, edx */ /* 0x3614A160: cmp ebx, edx */ 21311 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 21312 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21313 _flag_k = FK_CMP; 21314 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614A178; /* 0x3614A162: je 0x3614a178 */ 21315 L_3614A164: 21316 eax = MEM32(ebp + 0x10); /* 0x3614A164: mov eax, dword ptr [ebp + 0x10] */ 21317 L_3614A167: 21318 edi = MEM32(eax); /* 0x3614A167: mov edi, dword ptr [eax] */ 21319 MEM32(ebx) = edi; /* 0x3614A169: mov dword ptr [ebx], edi */ 21320 edi = MEM32(eax + 0x4); /* 0x3614A16B: mov edi, dword ptr [eax + 4] */ 21321 MEM32(ebx + 0x4) = edi; /* 0x3614A16E: mov dword ptr [ebx + 4], edi */ 21322 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8); 21323 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21324 ebx = ebx + 8; /* 0x3614A171: add ebx, 8 */ 21325 _flag_k = FK_ADD; 21326 /* cmp ebx, edx */ /* 0x3614A174: cmp ebx, edx */ 21327 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 21328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21329 _flag_k = FK_CMP; 21330 RECOMP_BACKEDGE(); 21331 if (CMP_NE(_flag_a, _flag_b)) goto L_3614A167; /* 0x3614A176: jne 0x3614a167 */ 21332 L_3614A178: 21333 _flag_a = (uint32_t)(MEM32(ecx + 0x8)); _flag_b = (uint32_t)(esi); 21334 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21335 MEM32(ecx + 0x8) = MEM32(ecx + 0x8) + esi; /* 0x3614A178: add dword ptr [ecx + 8], esi */ 21336 _flag_k = FK_ADD; 21337 L_3614A17B: 21338 edi = POP32_VAL(esp); /* 0x3614A17B: pop edi */ 21339 esi = POP32_VAL(esp); /* 0x3614A17C: pop esi */ 21340 ebx = POP32_VAL(esp); /* 0x3614A17D: pop ebx */ 21341 esp = ebp; /* 0x3614A17E: mov esp, ebp */ 21342 ebp = POP32_VAL(esp); /* 0x3614A180: pop ebp */ 21343 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3614A181: ret 0xc */ 21344 RECOMP_REGS_OUT(); 21345 } 21346 21347 void sub_3614A190(void) { 21348 int _fpu_cmp = 0; 21349 uint32_t _cf = 0; 21350 int _df = 1; 21351 uint32_t _flag_k = FK_NONE; 21352 uint32_t _flag_a = 0, _flag_b = 0; 21353 uint32_t _itail_tgt = 0; 21354 RECOMP_REGS_LOCALS 21355 RECOMP_ENTER(0x3614A190u); 21356 21357 L_3614A190: 21358 PUSH32(esp, ebp); /* 0x3614A190: push ebp */ 21359 ebp = esp; /* 0x3614A191: mov ebp, esp */ 21360 PUSH32(esp, edi); /* 0x3614A193: push edi */ 21361 edi = MEM32(ebp + 0xC); /* 0x3614A194: mov edi, dword ptr [ebp + 0xc] */ 21362 /* test edi, edi */ /* 0x3614A197: test edi, edi */ 21363 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 21364 _cf = 0; 21365 _flag_k = FK_TEST; 21366 if (TEST_Z(_flag_a, _flag_b)) goto L_3614A1B5; /* 0x3614A199: jbe 0x3614a1b5 */ 21367 L_3614A19B: 21368 PUSH32(esp, ebx); /* 0x3614A19B: push ebx */ 21369 ebx = MEM32(ebp + 0x10); /* 0x3614A19C: mov ebx, dword ptr [ebp + 0x10] */ 21370 PUSH32(esp, esi); /* 0x3614A19F: push esi */ 21371 esi = MEM32(ebp + 0x8); /* 0x3614A1A0: mov esi, dword ptr [ebp + 8] */ 21372 L_3614A1A3: 21373 PUSH32(esp, ebx); /* 0x3614A1A3: push ebx */ 21374 PUSH32(esp, esi); /* 0x3614A1A4: push esi */ 21375 RECOMP_ICALL(0x3614A310u); /* 0x3614A1A5: call 0x3614a310 */ /* not lifted */ 21376 RECOMP_FLAGS_IN(); 21377 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 21378 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21379 esp = esp + 8; /* 0x3614A1AA: add esp, 8 */ 21380 _flag_k = FK_ADD; 21381 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 21382 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21383 esi = esi + 0x14u; /* 0x3614A1AD: add esi, 0x14 */ 21384 _flag_k = FK_ADD; 21385 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 21386 edi = edi - 1; /* 0x3614A1B0: dec edi */ 21387 _flag_k = FK_DEC; 21388 RECOMP_BACKEDGE(); 21389 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3614A1A3; /* 0x3614A1B1: jne 0x3614a1a3 */ 21390 L_3614A1B3: 21391 esi = POP32_VAL(esp); /* 0x3614A1B3: pop esi */ 21392 ebx = POP32_VAL(esp); /* 0x3614A1B4: pop ebx */ 21393 L_3614A1B5: 21394 edi = POP32_VAL(esp); /* 0x3614A1B5: pop edi */ 21395 ebp = POP32_VAL(esp); /* 0x3614A1B6: pop ebp */ 21396 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3614A1B7: ret 0xc */ 21397 RECOMP_REGS_OUT(); 21398 } 21399 21400 void sub_3614A1C0(void) { 21401 int _fpu_cmp = 0; 21402 uint32_t _cf = 0; 21403 int _df = 1; 21404 uint32_t _flag_k = FK_NONE; 21405 uint32_t _flag_a = 0, _flag_b = 0; 21406 uint32_t _itail_tgt = 0; 21407 RECOMP_REGS_LOCALS 21408 RECOMP_ENTER(0x3614A1C0u); 21409 21410 L_3614A1C0: 21411 PUSH32(esp, ebp); /* 0x3614A1C0: push ebp */ 21412 ebp = esp; /* 0x3614A1C1: mov ebp, esp */ 21413 PUSH32(esp, edi); /* 0x3614A1C3: push edi */ 21414 edi = MEM32(ebp + 0xC); /* 0x3614A1C4: mov edi, dword ptr [ebp + 0xc] */ 21415 /* test edi, edi */ /* 0x3614A1C7: test edi, edi */ 21416 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 21417 _cf = 0; 21418 _flag_k = FK_TEST; 21419 if (TEST_Z(_flag_a, _flag_b)) goto L_3614A1E5; /* 0x3614A1C9: jbe 0x3614a1e5 */ 21420 L_3614A1CB: 21421 PUSH32(esp, ebx); /* 0x3614A1CB: push ebx */ 21422 ebx = MEM32(ebp + 0x10); /* 0x3614A1CC: mov ebx, dword ptr [ebp + 0x10] */ 21423 PUSH32(esp, esi); /* 0x3614A1CF: push esi */ 21424 esi = MEM32(ebp + 0x8); /* 0x3614A1D0: mov esi, dword ptr [ebp + 8] */ 21425 L_3614A1D3: 21426 PUSH32(esp, ebx); /* 0x3614A1D3: push ebx */ 21427 PUSH32(esp, esi); /* 0x3614A1D4: push esi */ 21428 RECOMP_ICALL(0x3614A3D0u); /* 0x3614A1D5: call 0x3614a3d0 */ /* not lifted */ 21429 RECOMP_FLAGS_IN(); 21430 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 21431 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21432 esp = esp + 8; /* 0x3614A1DA: add esp, 8 */ 21433 _flag_k = FK_ADD; 21434 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x3Cu); 21435 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21436 esi = esi + 0x3Cu; /* 0x3614A1DD: add esi, 0x3c */ 21437 _flag_k = FK_ADD; 21438 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 21439 edi = edi - 1; /* 0x3614A1E0: dec edi */ 21440 _flag_k = FK_DEC; 21441 RECOMP_BACKEDGE(); 21442 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3614A1D3; /* 0x3614A1E1: jne 0x3614a1d3 */ 21443 L_3614A1E3: 21444 esi = POP32_VAL(esp); /* 0x3614A1E3: pop esi */ 21445 ebx = POP32_VAL(esp); /* 0x3614A1E4: pop ebx */ 21446 L_3614A1E5: 21447 edi = POP32_VAL(esp); /* 0x3614A1E5: pop edi */ 21448 ebp = POP32_VAL(esp); /* 0x3614A1E6: pop ebp */ 21449 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3614A1E7: ret 0xc */ 21450 RECOMP_REGS_OUT(); 21451 } 21452 21453 void sub_3614A1F0(void) { 21454 int _fpu_cmp = 0; 21455 uint32_t _cf = 0; 21456 int _df = 1; 21457 uint32_t _flag_k = FK_NONE; 21458 uint32_t _flag_a = 0, _flag_b = 0; 21459 uint32_t _itail_tgt = 0; 21460 RECOMP_REGS_LOCALS 21461 RECOMP_ENTER(0x3614A1F0u); 21462 21463 L_3614A1F0: 21464 PUSH32(esp, ebp); /* 0x3614A1F0: push ebp */ 21465 ebp = esp; /* 0x3614A1F1: mov ebp, esp */ 21466 eax = MEM32(ebp + 0xC); /* 0x3614A1F3: mov eax, dword ptr [ebp + 0xc] */ 21467 /* test eax, eax */ /* 0x3614A1F6: test eax, eax */ 21468 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 21469 _cf = 0; 21470 _flag_k = FK_TEST; 21471 if (TEST_Z(_flag_a, _flag_b)) goto L_3614A214; /* 0x3614A1F8: jbe 0x3614a214 */ 21472 L_3614A1FA: 21473 edx = MEM32(ebp + 0x10); /* 0x3614A1FA: mov edx, dword ptr [ebp + 0x10] */ 21474 ecx = eax; /* 0x3614A1FD: mov ecx, eax */ 21475 eax = MEM32(ebp + 0x8); /* 0x3614A1FF: mov eax, dword ptr [ebp + 8] */ 21476 PUSH32(esp, esi); /* 0x3614A202: push esi */ 21477 L_3614A203: 21478 /* test eax, eax */ /* 0x3614A203: test eax, eax */ 21479 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 21480 _cf = 0; 21481 _flag_k = FK_TEST; 21482 if (TEST_Z(_flag_a, _flag_b)) goto L_3614A20D; /* 0x3614A205: je 0x3614a20d */ 21483 L_3614A207: 21484 SET_LO16(esi, MEM16(edx)); /* 0x3614A207: mov si, word ptr [edx] */ 21485 MEM16(eax) = (uint16_t)(LO16(esi)); /* 0x3614A20A: mov word ptr [eax], si */ 21486 L_3614A20D: 21487 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 21488 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21489 eax = eax + 2; /* 0x3614A20D: add eax, 2 */ 21490 _flag_k = FK_ADD; 21491 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 21492 ecx = ecx - 1; /* 0x3614A210: dec ecx */ 21493 _flag_k = FK_DEC; 21494 RECOMP_BACKEDGE(); 21495 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3614A203; /* 0x3614A211: jne 0x3614a203 */ 21496 L_3614A213: 21497 esi = POP32_VAL(esp); /* 0x3614A213: pop esi */ 21498 L_3614A214: 21499 ebp = POP32_VAL(esp); /* 0x3614A214: pop ebp */ 21500 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3614A215: ret 0xc */ 21501 RECOMP_REGS_OUT(); 21502 } 21503 21504 void sub_3614A220(void) { 21505 int _fpu_cmp = 0; 21506 uint32_t _cf = 0; 21507 int _df = 1; 21508 uint32_t _flag_k = FK_NONE; 21509 uint32_t _flag_a = 0, _flag_b = 0; 21510 uint32_t _itail_tgt = 0; 21511 RECOMP_REGS_LOCALS 21512 RECOMP_ENTER(0x3614A220u); 21513 21514 L_3614A220: 21515 PUSH32(esp, ebp); /* 0x3614A220: push ebp */ 21516 ebp = esp; /* 0x3614A221: mov ebp, esp */ 21517 PUSH32(esp, ebx); /* 0x3614A223: push ebx */ 21518 ebx = MEM32(ebp + 0xC); /* 0x3614A224: mov ebx, dword ptr [ebp + 0xc] */ 21519 PUSH32(esp, esi); /* 0x3614A227: push esi */ 21520 esi = MEM32(ebp + 0x8); /* 0x3614A228: mov esi, dword ptr [ebp + 8] */ 21521 /* cmp esi, ebx */ /* 0x3614A22B: cmp esi, ebx */ 21522 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 21523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21524 _flag_k = FK_CMP; 21525 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614A24C; /* 0x3614A22D: je 0x3614a24c */ 21526 L_3614A22F: 21527 PUSH32(esp, edi); /* 0x3614A22F: push edi */ 21528 edi = MEM32(ebp + 0x10); /* 0x3614A230: mov edi, dword ptr [ebp + 0x10] */ 21529 L_3614A233: 21530 PUSH32(esp, esi); /* 0x3614A233: push esi */ 21531 ecx = edi; /* 0x3614A234: mov ecx, edi */ 21532 RECOMP_ICALL(0x3602F7E0u); /* 0x3614A236: call 0x3602f7e0 */ /* not lifted */ 21533 RECOMP_FLAGS_IN(); 21534 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 21535 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21536 esi = esi + 0x14u; /* 0x3614A23B: add esi, 0x14 */ 21537 _flag_k = FK_ADD; 21538 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 21539 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21540 edi = edi + 0x14u; /* 0x3614A23E: add edi, 0x14 */ 21541 _flag_k = FK_ADD; 21542 /* cmp esi, ebx */ /* 0x3614A241: cmp esi, ebx */ 21543 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 21544 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21545 _flag_k = FK_CMP; 21546 RECOMP_BACKEDGE(); 21547 if (CMP_NE(_flag_a, _flag_b)) goto L_3614A233; /* 0x3614A243: jne 0x3614a233 */ 21548 L_3614A245: 21549 eax = edi; /* 0x3614A245: mov eax, edi */ 21550 edi = POP32_VAL(esp); /* 0x3614A247: pop edi */ 21551 esi = POP32_VAL(esp); /* 0x3614A248: pop esi */ 21552 ebx = POP32_VAL(esp); /* 0x3614A249: pop ebx */ 21553 ebp = POP32_VAL(esp); /* 0x3614A24A: pop ebp */ 21554 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614A24B: ret */ 21555 L_3614A24C: 21556 eax = MEM32(ebp + 0x10); /* 0x3614A24C: mov eax, dword ptr [ebp + 0x10] */ 21557 esi = POP32_VAL(esp); /* 0x3614A24F: pop esi */ 21558 ebx = POP32_VAL(esp); /* 0x3614A250: pop ebx */ 21559 ebp = POP32_VAL(esp); /* 0x3614A251: pop ebp */ 21560 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614A252: ret */ 21561 RECOMP_REGS_OUT(); 21562 } 21563 21564 void sub_3614A260(void) { 21565 int _fpu_cmp = 0; 21566 uint32_t _cf = 0; 21567 int _df = 1; 21568 uint32_t _flag_k = FK_NONE; 21569 uint32_t _flag_a = 0, _flag_b = 0; 21570 uint32_t _itail_tgt = 0; 21571 RECOMP_REGS_LOCALS 21572 RECOMP_ENTER(0x3614A260u); 21573 21574 L_3614A260: 21575 PUSH32(esp, ebp); /* 0x3614A260: push ebp */ 21576 ebp = esp; /* 0x3614A261: mov ebp, esp */ 21577 PUSH32(esp, ebx); /* 0x3614A263: push ebx */ 21578 ebx = MEM32(ebp + 0xC); /* 0x3614A264: mov ebx, dword ptr [ebp + 0xc] */ 21579 PUSH32(esp, esi); /* 0x3614A267: push esi */ 21580 esi = MEM32(ebp + 0x8); /* 0x3614A268: mov esi, dword ptr [ebp + 8] */ 21581 /* cmp esi, ebx */ /* 0x3614A26B: cmp esi, ebx */ 21582 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 21583 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21584 _flag_k = FK_CMP; 21585 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614A28C; /* 0x3614A26D: je 0x3614a28c */ 21586 L_3614A26F: 21587 PUSH32(esp, edi); /* 0x3614A26F: push edi */ 21588 edi = MEM32(ebp + 0x10); /* 0x3614A270: mov edi, dword ptr [ebp + 0x10] */ 21589 L_3614A273: 21590 PUSH32(esp, esi); /* 0x3614A273: push esi */ 21591 ecx = edi; /* 0x3614A274: mov ecx, edi */ 21592 RECOMP_ICALL(0x3602F950u); /* 0x3614A276: call 0x3602f950 */ /* not lifted */ 21593 RECOMP_FLAGS_IN(); 21594 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x3Cu); 21595 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21596 esi = esi + 0x3Cu; /* 0x3614A27B: add esi, 0x3c */ 21597 _flag_k = FK_ADD; 21598 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x3Cu); 21599 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21600 edi = edi + 0x3Cu; /* 0x3614A27E: add edi, 0x3c */ 21601 _flag_k = FK_ADD; 21602 /* cmp esi, ebx */ /* 0x3614A281: cmp esi, ebx */ 21603 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 21604 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21605 _flag_k = FK_CMP; 21606 RECOMP_BACKEDGE(); 21607 if (CMP_NE(_flag_a, _flag_b)) goto L_3614A273; /* 0x3614A283: jne 0x3614a273 */ 21608 L_3614A285: 21609 eax = edi; /* 0x3614A285: mov eax, edi */ 21610 edi = POP32_VAL(esp); /* 0x3614A287: pop edi */ 21611 esi = POP32_VAL(esp); /* 0x3614A288: pop esi */ 21612 ebx = POP32_VAL(esp); /* 0x3614A289: pop ebx */ 21613 ebp = POP32_VAL(esp); /* 0x3614A28A: pop ebp */ 21614 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614A28B: ret */ 21615 L_3614A28C: 21616 eax = MEM32(ebp + 0x10); /* 0x3614A28C: mov eax, dword ptr [ebp + 0x10] */ 21617 esi = POP32_VAL(esp); /* 0x3614A28F: pop esi */ 21618 ebx = POP32_VAL(esp); /* 0x3614A290: pop ebx */ 21619 ebp = POP32_VAL(esp); /* 0x3614A291: pop ebp */ 21620 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614A292: ret */ 21621 RECOMP_REGS_OUT(); 21622 } 21623 21624 void sub_3614A2A0(void) { 21625 int _fpu_cmp = 0; 21626 uint32_t _cf = 0; 21627 int _df = 1; 21628 uint32_t _flag_k = FK_NONE; 21629 uint32_t _flag_a = 0, _flag_b = 0; 21630 uint32_t _itail_tgt = 0; 21631 RECOMP_REGS_LOCALS 21632 RECOMP_ENTER(0x3614A2A0u); 21633 21634 L_3614A2A0: 21635 PUSH32(esp, ebp); /* 0x3614A2A0: push ebp */ 21636 ebp = esp; /* 0x3614A2A1: mov ebp, esp */ 21637 PUSH32(esp, esi); /* 0x3614A2A3: push esi */ 21638 esi = MEM32(ebp + 0x8); /* 0x3614A2A4: mov esi, dword ptr [ebp + 8] */ 21639 PUSH32(esp, edi); /* 0x3614A2A7: push edi */ 21640 edi = MEM32(ebp + 0xC); /* 0x3614A2A8: mov edi, dword ptr [ebp + 0xc] */ 21641 /* cmp esi, edi */ /* 0x3614A2AB: cmp esi, edi */ 21642 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 21643 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21644 _flag_k = FK_CMP; 21645 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614A2C3; /* 0x3614A2AD: je 0x3614a2c3 */ 21646 L_3614A2AF: 21647 PUSH32(esp, ebx); /* 0x3614A2AF: push ebx */ 21648 ebx = MEM32(ebp + 0x10); /* 0x3614A2B0: mov ebx, dword ptr [ebp + 0x10] */ 21649 L_3614A2B3: 21650 PUSH32(esp, ebx); /* 0x3614A2B3: push ebx */ 21651 ecx = esi; /* 0x3614A2B4: mov ecx, esi */ 21652 RECOMP_ICALL(0x3602F7E0u); /* 0x3614A2B6: call 0x3602f7e0 */ /* not lifted */ 21653 RECOMP_FLAGS_IN(); 21654 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 21655 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21656 esi = esi + 0x14u; /* 0x3614A2BB: add esi, 0x14 */ 21657 _flag_k = FK_ADD; 21658 /* cmp esi, edi */ /* 0x3614A2BE: cmp esi, edi */ 21659 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 21660 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21661 _flag_k = FK_CMP; 21662 RECOMP_BACKEDGE(); 21663 if (CMP_NE(_flag_a, _flag_b)) goto L_3614A2B3; /* 0x3614A2C0: jne 0x3614a2b3 */ 21664 L_3614A2C2: 21665 ebx = POP32_VAL(esp); /* 0x3614A2C2: pop ebx */ 21666 L_3614A2C3: 21667 edi = POP32_VAL(esp); /* 0x3614A2C3: pop edi */ 21668 esi = POP32_VAL(esp); /* 0x3614A2C4: pop esi */ 21669 ebp = POP32_VAL(esp); /* 0x3614A2C5: pop ebp */ 21670 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614A2C6: ret */ 21671 RECOMP_REGS_OUT(); 21672 } 21673 21674 void sub_3614A2D0(void) { 21675 int _fpu_cmp = 0; 21676 uint32_t _cf = 0; 21677 int _df = 1; 21678 uint32_t _flag_k = FK_NONE; 21679 uint32_t _flag_a = 0, _flag_b = 0; 21680 uint32_t _itail_tgt = 0; 21681 RECOMP_REGS_LOCALS 21682 RECOMP_ENTER(0x3614A2D0u); 21683 21684 L_3614A2D0: 21685 PUSH32(esp, ebp); /* 0x3614A2D0: push ebp */ 21686 ebp = esp; /* 0x3614A2D1: mov ebp, esp */ 21687 PUSH32(esp, ebx); /* 0x3614A2D3: push ebx */ 21688 ebx = MEM32(ebp + 0x8); /* 0x3614A2D4: mov ebx, dword ptr [ebp + 8] */ 21689 PUSH32(esp, esi); /* 0x3614A2D7: push esi */ 21690 esi = MEM32(ebp + 0xC); /* 0x3614A2D8: mov esi, dword ptr [ebp + 0xc] */ 21691 /* cmp ebx, esi */ /* 0x3614A2DB: cmp ebx, esi */ 21692 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 21693 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21694 _flag_k = FK_CMP; 21695 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614A2FC; /* 0x3614A2DD: je 0x3614a2fc */ 21696 L_3614A2DF: 21697 PUSH32(esp, edi); /* 0x3614A2DF: push edi */ 21698 edi = MEM32(ebp + 0x10); /* 0x3614A2E0: mov edi, dword ptr [ebp + 0x10] */ 21699 L_3614A2E3: 21700 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 21701 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21702 esi = esi - 0x14u; /* 0x3614A2E3: sub esi, 0x14 */ 21703 _flag_k = FK_CMP; 21704 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u); 21705 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21706 edi = edi - 0x14u; /* 0x3614A2E6: sub edi, 0x14 */ 21707 _flag_k = FK_CMP; 21708 PUSH32(esp, esi); /* 0x3614A2E9: push esi */ 21709 ecx = edi; /* 0x3614A2EA: mov ecx, edi */ 21710 RECOMP_ICALL(0x3602F7E0u); /* 0x3614A2EC: call 0x3602f7e0 */ /* not lifted */ 21711 RECOMP_FLAGS_IN(); 21712 /* cmp esi, ebx */ /* 0x3614A2F1: cmp esi, ebx */ 21713 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 21714 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21715 _flag_k = FK_CMP; 21716 RECOMP_BACKEDGE(); 21717 if (CMP_NE(_flag_a, _flag_b)) goto L_3614A2E3; /* 0x3614A2F3: jne 0x3614a2e3 */ 21718 L_3614A2F5: 21719 eax = edi; /* 0x3614A2F5: mov eax, edi */ 21720 edi = POP32_VAL(esp); /* 0x3614A2F7: pop edi */ 21721 esi = POP32_VAL(esp); /* 0x3614A2F8: pop esi */ 21722 ebx = POP32_VAL(esp); /* 0x3614A2F9: pop ebx */ 21723 ebp = POP32_VAL(esp); /* 0x3614A2FA: pop ebp */ 21724 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614A2FB: ret */ 21725 L_3614A2FC: 21726 eax = MEM32(ebp + 0x10); /* 0x3614A2FC: mov eax, dword ptr [ebp + 0x10] */ 21727 esi = POP32_VAL(esp); /* 0x3614A2FF: pop esi */ 21728 ebx = POP32_VAL(esp); /* 0x3614A300: pop ebx */ 21729 ebp = POP32_VAL(esp); /* 0x3614A301: pop ebp */ 21730 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614A302: ret */ 21731 RECOMP_REGS_OUT(); 21732 } 21733 21734 void sub_3614A310(void) { 21735 int _fpu_cmp = 0; 21736 uint32_t _cf = 0; 21737 int _df = 1; 21738 uint32_t _flag_k = FK_NONE; 21739 uint32_t _flag_a = 0, _flag_b = 0; 21740 uint32_t _itail_tgt = 0; 21741 RECOMP_REGS_LOCALS 21742 RECOMP_ENTER(0x3614A310u); 21743 21744 L_3614A310: 21745 PUSH32(esp, ebp); /* 0x3614A310: push ebp */ 21746 ebp = esp; /* 0x3614A311: mov ebp, esp */ 21747 PUSH32(esp, 0xFFFFFFFFu); /* 0x3614A313: push -1 */ 21748 PUSH32(esp, 0x3616D121u); /* 0x3614A315: push 0x3616d121 */ 21749 eax = MEM32(FS_BASE + (0)); /* 0x3614A31A: mov eax, dword ptr fs:[0] */ 21750 PUSH32(esp, eax); /* 0x3614A320: push eax */ 21751 MEM32(FS_BASE + (0)) = esp; /* 0x3614A321: mov dword ptr fs:[0], esp */ 21752 PUSH32(esp, ecx); /* 0x3614A328: push ecx */ 21753 ecx = MEM32(ebp + 0x8); /* 0x3614A329: mov ecx, dword ptr [ebp + 8] */ 21754 MEM32(ebp + (-0x10)) = ecx; /* 0x3614A32C: mov dword ptr [ebp - 0x10], ecx */ 21755 /* test ecx, ecx */ /* 0x3614A32F: test ecx, ecx */ 21756 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 21757 _cf = 0; 21758 _flag_k = FK_TEST; 21759 MEM32(ebp + (-0x4)) = 0; /* 0x3614A331: mov dword ptr [ebp - 4], 0 */ 21760 if (TEST_Z(_flag_a, _flag_b)) goto L_3614A343; /* 0x3614A338: je 0x3614a343 */ 21761 L_3614A33A: 21762 eax = MEM32(ebp + 0xC); /* 0x3614A33A: mov eax, dword ptr [ebp + 0xc] */ 21763 PUSH32(esp, eax); /* 0x3614A33D: push eax */ 21764 RECOMP_ICALL(0x3602F7A0u); /* 0x3614A33E: call 0x3602f7a0 */ /* not lifted */ 21765 RECOMP_FLAGS_IN(); 21766 L_3614A343: 21767 ecx = MEM32(ebp + (-0xC)); /* 0x3614A343: mov ecx, dword ptr [ebp - 0xc] */ 21768 MEM32(FS_BASE + (0)) = ecx; /* 0x3614A346: mov dword ptr fs:[0], ecx */ 21769 esp = ebp; /* 0x3614A34D: mov esp, ebp */ 21770 ebp = POP32_VAL(esp); /* 0x3614A34F: pop ebp */ 21771 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614A350: ret */ 21772 RECOMP_REGS_OUT(); 21773 } 21774 21775 void sub_3614A360(void) { 21776 int _fpu_cmp = 0; 21777 uint32_t _cf = 0; 21778 int _df = 1; 21779 uint32_t _flag_k = FK_NONE; 21780 uint32_t _flag_a = 0, _flag_b = 0; 21781 uint32_t _itail_tgt = 0; 21782 RECOMP_REGS_LOCALS 21783 RECOMP_ENTER(0x3614A360u); 21784 21785 L_3614A360: 21786 PUSH32(esp, ebp); /* 0x3614A360: push ebp */ 21787 ebp = esp; /* 0x3614A361: mov ebp, esp */ 21788 PUSH32(esp, esi); /* 0x3614A363: push esi */ 21789 esi = MEM32(ebp + 0x8); /* 0x3614A364: mov esi, dword ptr [ebp + 8] */ 21790 PUSH32(esp, edi); /* 0x3614A367: push edi */ 21791 edi = MEM32(ebp + 0xC); /* 0x3614A368: mov edi, dword ptr [ebp + 0xc] */ 21792 /* cmp esi, edi */ /* 0x3614A36B: cmp esi, edi */ 21793 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 21794 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21795 _flag_k = FK_CMP; 21796 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614A383; /* 0x3614A36D: je 0x3614a383 */ 21797 L_3614A36F: 21798 PUSH32(esp, ebx); /* 0x3614A36F: push ebx */ 21799 ebx = MEM32(ebp + 0x10); /* 0x3614A370: mov ebx, dword ptr [ebp + 0x10] */ 21800 L_3614A373: 21801 PUSH32(esp, ebx); /* 0x3614A373: push ebx */ 21802 ecx = esi; /* 0x3614A374: mov ecx, esi */ 21803 RECOMP_ICALL(0x3602F950u); /* 0x3614A376: call 0x3602f950 */ /* not lifted */ 21804 RECOMP_FLAGS_IN(); 21805 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x3Cu); 21806 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21807 esi = esi + 0x3Cu; /* 0x3614A37B: add esi, 0x3c */ 21808 _flag_k = FK_ADD; 21809 /* cmp esi, edi */ /* 0x3614A37E: cmp esi, edi */ 21810 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 21811 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21812 _flag_k = FK_CMP; 21813 RECOMP_BACKEDGE(); 21814 if (CMP_NE(_flag_a, _flag_b)) goto L_3614A373; /* 0x3614A380: jne 0x3614a373 */ 21815 L_3614A382: 21816 ebx = POP32_VAL(esp); /* 0x3614A382: pop ebx */ 21817 L_3614A383: 21818 edi = POP32_VAL(esp); /* 0x3614A383: pop edi */ 21819 esi = POP32_VAL(esp); /* 0x3614A384: pop esi */ 21820 ebp = POP32_VAL(esp); /* 0x3614A385: pop ebp */ 21821 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614A386: ret */ 21822 RECOMP_REGS_OUT(); 21823 } 21824 21825 void sub_3614A390(void) { 21826 int _fpu_cmp = 0; 21827 uint32_t _cf = 0; 21828 int _df = 1; 21829 uint32_t _flag_k = FK_NONE; 21830 uint32_t _flag_a = 0, _flag_b = 0; 21831 uint32_t _itail_tgt = 0; 21832 RECOMP_REGS_LOCALS 21833 RECOMP_ENTER(0x3614A390u); 21834 21835 L_3614A390: 21836 PUSH32(esp, ebp); /* 0x3614A390: push ebp */ 21837 ebp = esp; /* 0x3614A391: mov ebp, esp */ 21838 PUSH32(esp, ebx); /* 0x3614A393: push ebx */ 21839 ebx = MEM32(ebp + 0x8); /* 0x3614A394: mov ebx, dword ptr [ebp + 8] */ 21840 PUSH32(esp, esi); /* 0x3614A397: push esi */ 21841 esi = MEM32(ebp + 0xC); /* 0x3614A398: mov esi, dword ptr [ebp + 0xc] */ 21842 /* cmp ebx, esi */ /* 0x3614A39B: cmp ebx, esi */ 21843 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 21844 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21845 _flag_k = FK_CMP; 21846 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614A3BC; /* 0x3614A39D: je 0x3614a3bc */ 21847 L_3614A39F: 21848 PUSH32(esp, edi); /* 0x3614A39F: push edi */ 21849 edi = MEM32(ebp + 0x10); /* 0x3614A3A0: mov edi, dword ptr [ebp + 0x10] */ 21850 L_3614A3A3: 21851 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x3Cu); 21852 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21853 esi = esi - 0x3Cu; /* 0x3614A3A3: sub esi, 0x3c */ 21854 _flag_k = FK_CMP; 21855 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x3Cu); 21856 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21857 edi = edi - 0x3Cu; /* 0x3614A3A6: sub edi, 0x3c */ 21858 _flag_k = FK_CMP; 21859 PUSH32(esp, esi); /* 0x3614A3A9: push esi */ 21860 ecx = edi; /* 0x3614A3AA: mov ecx, edi */ 21861 RECOMP_ICALL(0x3602F950u); /* 0x3614A3AC: call 0x3602f950 */ /* not lifted */ 21862 RECOMP_FLAGS_IN(); 21863 /* cmp esi, ebx */ /* 0x3614A3B1: cmp esi, ebx */ 21864 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 21865 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21866 _flag_k = FK_CMP; 21867 RECOMP_BACKEDGE(); 21868 if (CMP_NE(_flag_a, _flag_b)) goto L_3614A3A3; /* 0x3614A3B3: jne 0x3614a3a3 */ 21869 L_3614A3B5: 21870 eax = edi; /* 0x3614A3B5: mov eax, edi */ 21871 edi = POP32_VAL(esp); /* 0x3614A3B7: pop edi */ 21872 esi = POP32_VAL(esp); /* 0x3614A3B8: pop esi */ 21873 ebx = POP32_VAL(esp); /* 0x3614A3B9: pop ebx */ 21874 ebp = POP32_VAL(esp); /* 0x3614A3BA: pop ebp */ 21875 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614A3BB: ret */ 21876 L_3614A3BC: 21877 eax = MEM32(ebp + 0x10); /* 0x3614A3BC: mov eax, dword ptr [ebp + 0x10] */ 21878 esi = POP32_VAL(esp); /* 0x3614A3BF: pop esi */ 21879 ebx = POP32_VAL(esp); /* 0x3614A3C0: pop ebx */ 21880 ebp = POP32_VAL(esp); /* 0x3614A3C1: pop ebp */ 21881 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614A3C2: ret */ 21882 RECOMP_REGS_OUT(); 21883 } 21884 21885 void sub_3614A3D0(void) { 21886 int _fpu_cmp = 0; 21887 uint32_t _cf = 0; 21888 int _df = 1; 21889 uint32_t _flag_k = FK_NONE; 21890 uint32_t _flag_a = 0, _flag_b = 0; 21891 uint32_t _itail_tgt = 0; 21892 RECOMP_REGS_LOCALS 21893 RECOMP_ENTER(0x3614A3D0u); 21894 21895 L_3614A3D0: 21896 PUSH32(esp, ebp); /* 0x3614A3D0: push ebp */ 21897 ebp = esp; /* 0x3614A3D1: mov ebp, esp */ 21898 PUSH32(esp, 0xFFFFFFFFu); /* 0x3614A3D3: push -1 */ 21899 PUSH32(esp, 0x3616D141u); /* 0x3614A3D5: push 0x3616d141 */ 21900 eax = MEM32(FS_BASE + (0)); /* 0x3614A3DA: mov eax, dword ptr fs:[0] */ 21901 PUSH32(esp, eax); /* 0x3614A3E0: push eax */ 21902 MEM32(FS_BASE + (0)) = esp; /* 0x3614A3E1: mov dword ptr fs:[0], esp */ 21903 PUSH32(esp, ecx); /* 0x3614A3E8: push ecx */ 21904 ecx = MEM32(ebp + 0x8); /* 0x3614A3E9: mov ecx, dword ptr [ebp + 8] */ 21905 MEM32(ebp + (-0x10)) = ecx; /* 0x3614A3EC: mov dword ptr [ebp - 0x10], ecx */ 21906 /* test ecx, ecx */ /* 0x3614A3EF: test ecx, ecx */ 21907 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 21908 _cf = 0; 21909 _flag_k = FK_TEST; 21910 MEM32(ebp + (-0x4)) = 0; /* 0x3614A3F1: mov dword ptr [ebp - 4], 0 */ 21911 if (TEST_Z(_flag_a, _flag_b)) goto L_3614A403; /* 0x3614A3F8: je 0x3614a403 */ 21912 L_3614A3FA: 21913 eax = MEM32(ebp + 0xC); /* 0x3614A3FA: mov eax, dword ptr [ebp + 0xc] */ 21914 PUSH32(esp, eax); /* 0x3614A3FD: push eax */ 21915 RECOMP_ICALL(0x3602F8E0u); /* 0x3614A3FE: call 0x3602f8e0 */ /* not lifted */ 21916 RECOMP_FLAGS_IN(); 21917 L_3614A403: 21918 ecx = MEM32(ebp + (-0xC)); /* 0x3614A403: mov ecx, dword ptr [ebp - 0xc] */ 21919 MEM32(FS_BASE + (0)) = ecx; /* 0x3614A406: mov dword ptr fs:[0], ecx */ 21920 esp = ebp; /* 0x3614A40D: mov esp, ebp */ 21921 ebp = POP32_VAL(esp); /* 0x3614A40F: pop ebp */ 21922 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614A410: ret */ 21923 RECOMP_REGS_OUT(); 21924 } 21925 21926 void sub_3614A420(void) { 21927 int _fpu_cmp = 0; 21928 uint32_t _cf = 0; 21929 int _df = 1; 21930 uint32_t _flag_k = FK_NONE; 21931 uint32_t _flag_a = 0, _flag_b = 0; 21932 uint32_t _itail_tgt = 0; 21933 RECOMP_REGS_LOCALS 21934 RECOMP_ENTER(0x3614A420u); 21935 21936 L_3614A420: 21937 PUSH32(esp, ebp); /* 0x3614A420: push ebp */ 21938 ebp = esp; /* 0x3614A421: mov ebp, esp */ 21939 eax = ecx; /* 0x3614A423: mov eax, ecx */ 21940 ecx = MEM32(ebp + 0x8); /* 0x3614A425: mov ecx, dword ptr [ebp + 8] */ 21941 edx = MEM32(ecx); /* 0x3614A428: mov edx, dword ptr [ecx] */ 21942 MEM32(eax) = edx; /* 0x3614A42A: mov dword ptr [eax], edx */ 21943 ecx = MEM32(ecx + 0x4); /* 0x3614A42C: mov ecx, dword ptr [ecx + 4] */ 21944 MEM32(eax + 0x4) = ecx; /* 0x3614A42F: mov dword ptr [eax + 4], ecx */ 21945 ebp = POP32_VAL(esp); /* 0x3614A432: pop ebp */ 21946 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614A433: ret 4 */ 21947 RECOMP_REGS_OUT(); 21948 } 21949 21950 void sub_3614A440(void) { 21951 int _fpu_cmp = 0; 21952 uint32_t _cf = 0; 21953 int _df = 1; 21954 uint32_t _flag_k = FK_NONE; 21955 uint32_t _flag_a = 0, _flag_b = 0; 21956 uint32_t _itail_tgt = 0; 21957 RECOMP_REGS_LOCALS 21958 RECOMP_ENTER(0x3614A440u); 21959 21960 L_3614A440: 21961 eax = ecx; /* 0x3614A440: mov eax, ecx */ 21962 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 21963 ecx = 0; /* 0x3614A442: xor ecx, ecx */ 21964 _cf = 0; 21965 _flag_k = FK_TEST; 21966 MEM32(eax) = ecx; /* 0x3614A444: mov dword ptr [eax], ecx */ 21967 MEM32(eax + 0x4) = ecx; /* 0x3614A446: mov dword ptr [eax + 4], ecx */ 21968 MEM32(eax + 0x8) = ecx; /* 0x3614A449: mov dword ptr [eax + 8], ecx */ 21969 MEM32(eax + 0xC) = ecx; /* 0x3614A44C: mov dword ptr [eax + 0xc], ecx */ 21970 MEM32(eax + 0x10) = ecx; /* 0x3614A44F: mov dword ptr [eax + 0x10], ecx */ 21971 MEM32(eax + 0x14) = ecx; /* 0x3614A452: mov dword ptr [eax + 0x14], ecx */ 21972 MEM32(eax + 0x18) = ecx; /* 0x3614A455: mov dword ptr [eax + 0x18], ecx */ 21973 MEM32(eax + 0x1C) = ecx; /* 0x3614A458: mov dword ptr [eax + 0x1c], ecx */ 21974 MEM32(eax + 0x20) = ecx; /* 0x3614A45B: mov dword ptr [eax + 0x20], ecx */ 21975 MEM32(eax + 0x24) = ecx; /* 0x3614A45E: mov dword ptr [eax + 0x24], ecx */ 21976 MEM32(eax + 0x28) = ecx; /* 0x3614A461: mov dword ptr [eax + 0x28], ecx */ 21977 MEM32(eax + 0x2C) = ecx; /* 0x3614A464: mov dword ptr [eax + 0x2c], ecx */ 21978 MEM32(eax + 0x30) = ecx; /* 0x3614A467: mov dword ptr [eax + 0x30], ecx */ 21979 MEM32(eax + 0x34) = ecx; /* 0x3614A46A: mov dword ptr [eax + 0x34], ecx */ 21980 MEM32(eax + 0x38) = ecx; /* 0x3614A46D: mov dword ptr [eax + 0x38], ecx */ 21981 MEM32(eax + 0x3C) = ecx; /* 0x3614A470: mov dword ptr [eax + 0x3c], ecx */ 21982 MEM32(eax + 0x40) = ecx; /* 0x3614A473: mov dword ptr [eax + 0x40], ecx */ 21983 MEM32(eax + 0x44) = ecx; /* 0x3614A476: mov dword ptr [eax + 0x44], ecx */ 21984 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614A479: ret */ 21985 RECOMP_REGS_OUT(); 21986 } 21987 21988 void sub_3614A480(void) { 21989 int _fpu_cmp = 0; 21990 uint32_t _cf = 0; 21991 int _df = 1; 21992 uint32_t _flag_k = FK_NONE; 21993 uint32_t _flag_a = 0, _flag_b = 0; 21994 uint32_t _itail_tgt = 0; 21995 RECOMP_REGS_LOCALS 21996 RECOMP_ENTER(0x3614A480u); 21997 21998 L_3614A480: 21999 PUSH32(esp, esi); /* 0x3614A480: push esi */ 22000 esi = ecx; /* 0x3614A481: mov esi, ecx */ 22001 eax = MEM32(esi + 0x40); /* 0x3614A483: mov eax, dword ptr [esi + 0x40] */ 22002 PUSH32(esp, eax); /* 0x3614A486: push eax */ 22003 RECOMP_ICALL(0x3615FCC4u); /* 0x3614A487: call 0x3615fcc4 */ /* not lifted */ 22004 RECOMP_FLAGS_IN(); 22005 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 22006 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22007 esp = esp + 4; /* 0x3614A48C: add esp, 4 */ 22008 _flag_k = FK_ADD; 22009 MEM32(esi + 0x40) = 0; /* 0x3614A48F: mov dword ptr [esi + 0x40], 0 */ 22010 esi = POP32_VAL(esp); /* 0x3614A496: pop esi */ 22011 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614A497: ret */ 22012 RECOMP_REGS_OUT(); 22013 } 22014 22015 void sub_3614A4A0(void) { 22016 int _fpu_cmp = 0; 22017 uint32_t _cf = 0; 22018 int _df = 1; 22019 uint32_t _flag_k = FK_NONE; 22020 uint32_t _flag_a = 0, _flag_b = 0; 22021 uint32_t _itail_tgt = 0; 22022 RECOMP_REGS_LOCALS 22023 RECOMP_ENTER(0x3614A4A0u); 22024 22025 L_3614A4A0: 22026 /* cmp MEM32(ecx), 0 */ /* 0x3614A4A0: cmp dword ptr [ecx], 0 */ 22027 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(0); 22028 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22029 _flag_k = FK_CMP; 22030 SET_LO8(edx, 1); /* 0x3614A4A3: mov dl, 1 */ 22031 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614A4FF; /* 0x3614A4A5: je 0x3614a4ff */ 22032 L_3614A4A7: 22033 eax = MEM32(ecx + 0x4); /* 0x3614A4A7: mov eax, dword ptr [ecx + 4] */ 22034 /* test eax, eax */ /* 0x3614A4AA: test eax, eax */ 22035 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 22036 _cf = 0; 22037 _flag_k = FK_TEST; 22038 if (TEST_Z(_flag_a, _flag_b)) goto L_3614A4FF; /* 0x3614A4AC: je 0x3614a4ff */ 22039 L_3614A4AE: 22040 eax = MEM32(ecx + 0x8); /* 0x3614A4AE: mov eax, dword ptr [ecx + 8] */ 22041 /* test eax, eax */ /* 0x3614A4B1: test eax, eax */ 22042 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 22043 _cf = 0; 22044 _flag_k = FK_TEST; 22045 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614A4FF; /* 0x3614A4B3: jne 0x3614a4ff */ 22046 L_3614A4B5: 22047 eax = MEM32(ecx + 0xC); /* 0x3614A4B5: mov eax, dword ptr [ecx + 0xc] */ 22048 /* test eax, eax */ /* 0x3614A4B8: test eax, eax */ 22049 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 22050 _cf = 0; 22051 _flag_k = FK_TEST; 22052 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614A4FF; /* 0x3614A4BA: jne 0x3614a4ff */ 22053 L_3614A4BC: 22054 eax = MEM32(ecx + 0x10); /* 0x3614A4BC: mov eax, dword ptr [ecx + 0x10] */ 22055 /* test eax, eax */ /* 0x3614A4BF: test eax, eax */ 22056 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 22057 _cf = 0; 22058 _flag_k = FK_TEST; 22059 if (TEST_Z(_flag_a, _flag_b)) goto L_3614A4FF; /* 0x3614A4C1: jbe 0x3614a4ff */ 22060 L_3614A4C3: 22061 /* cmp eax, 0x00010000u */ /* 0x3614A4C3: cmp eax, 0x10000 */ 22062 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00010000u); 22063 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22064 _flag_k = FK_CMP; 22065 if (CMP_AE(_flag_a, _flag_b)) goto L_3614A4FF; /* 0x3614A4C8: jae 0x3614a4ff */ 22066 L_3614A4CA: 22067 fp_push(*(float*)&MEM32(0x3617040C)); /* 0x3614A4CA: fld dword ptr [0x3617040c] */ 22068 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x14)); /* 0x3614A4D0: fcomp dword ptr [ecx + 0x14] */ 22069 fp_pop(); 22070 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3614A4D3: fnstsw ax */ 22071 /* test LO8(edx), HI8(eax) */ /* 0x3614A4D5: test dl, ah */ 22072 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(HI8(eax)) << 24; 22073 _cf = 0; 22074 _flag_k = FK_NARROW(FK_TEST, 24); 22075 if (TEST_Z(_flag_a, _flag_b)) goto L_3614A4FF; /* 0x3614A4D7: je 0x3614a4ff */ 22076 L_3614A4D9: 22077 fp_push(*(float*)&MEM32(0x3617040C)); /* 0x3614A4D9: fld dword ptr [0x3617040c] */ 22078 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x18)); /* 0x3614A4DF: fcomp dword ptr [ecx + 0x18] */ 22079 fp_pop(); 22080 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3614A4E2: fnstsw ax */ 22081 /* test HI8(eax), 0x41u */ /* 0x3614A4E4: test ah, 0x41 */ 22082 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 22083 _cf = 0; 22084 _flag_k = FK_NARROW(FK_TEST, 24); 22085 if (TEST_Z(_flag_a, _flag_b)) goto L_3614A4FF; /* 0x3614A4E7: je 0x3614a4ff */ 22086 L_3614A4E9: 22087 fp_push(*(float*)&MEM32(0x3617040C)); /* 0x3614A4E9: fld dword ptr [0x3617040c] */ 22088 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x1C)); /* 0x3614A4EF: fcomp dword ptr [ecx + 0x1c] */ 22089 fp_pop(); 22090 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3614A4F2: fnstsw ax */ 22091 /* test LO8(edx), HI8(eax) */ /* 0x3614A4F4: test dl, ah */ 22092 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(HI8(eax)) << 24; 22093 _cf = 0; 22094 _flag_k = FK_NARROW(FK_TEST, 24); 22095 if (TEST_Z(_flag_a, _flag_b)) goto L_3614A4FF; /* 0x3614A4F6: je 0x3614a4ff */ 22096 L_3614A4F8: 22097 eax = MEM32(ecx + 0x34); /* 0x3614A4F8: mov eax, dword ptr [ecx + 0x34] */ 22098 /* test eax, eax */ /* 0x3614A4FB: test eax, eax */ 22099 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 22100 _cf = 0; 22101 _flag_k = FK_TEST; 22102 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614A502; /* 0x3614A4FD: jne 0x3614a502 */ 22103 L_3614A4FF: 22104 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 22105 SET_LO8(eax, 0); /* 0x3614A4FF: xor al, al */ 22106 _cf = 0; 22107 _flag_k = FK_NARROW(FK_TEST, 24); 22108 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614A501: ret */ 22109 L_3614A502: 22110 SET_LO8(eax, LO8(edx)); /* 0x3614A502: mov al, dl */ 22111 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614A504: ret */ 22112 RECOMP_REGS_OUT(); 22113 } 22114 22115 void sub_3614A510(void) { 22116 int _fpu_cmp = 0; 22117 uint32_t _cf = 0; 22118 int _df = 1; 22119 uint32_t _flag_k = FK_NONE; 22120 uint32_t _flag_a = 0, _flag_b = 0; 22121 uint32_t _itail_tgt = 0; 22122 RECOMP_REGS_LOCALS 22123 RECOMP_ENTER(0x3614A510u); 22124 22125 L_3614A510: 22126 PUSH32(esp, ebp); /* 0x3614A510: push ebp */ 22127 ebp = esp; /* 0x3614A511: mov ebp, esp */ 22128 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 22129 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22130 esp = esp - 8; /* 0x3614A513: sub esp, 8 */ 22131 _flag_k = FK_CMP; 22132 PUSH32(esp, ebx); /* 0x3614A516: push ebx */ 22133 ebx = MEM32(0x3616FA8C); /* 0x3614A517: mov ebx, dword ptr [0x3616fa8c] */ 22134 PUSH32(esp, esi); /* 0x3614A51D: push esi */ 22135 esi = MEM32(ebp + 0x8); /* 0x3614A51E: mov esi, dword ptr [ebp + 8] */ 22136 PUSH32(esp, edi); /* 0x3614A521: push edi */ 22137 edi = MEM32(ebp + 0xC); /* 0x3614A522: mov edi, dword ptr [ebp + 0xc] */ 22138 PUSH32(esp, edi); /* 0x3614A525: push edi */ 22139 ecx = esi; /* 0x3614A526: mov ecx, esi */ 22140 RECOMP_ICALL(ebx); /* 0x3614A528: call ebx */ 22141 RECOMP_FLAGS_IN(); 22142 eax = edi + 0x4; /* 0x3614A52A: lea eax, [edi + 4] */ 22143 PUSH32(esp, eax); /* 0x3614A52D: push eax */ 22144 ecx = esi; /* 0x3614A52E: mov ecx, esi */ 22145 RECOMP_ICALL(ebx); /* 0x3614A530: call ebx */ 22146 RECOMP_FLAGS_IN(); 22147 ecx = ebp + 0xC; /* 0x3614A532: lea ecx, [ebp + 0xc] */ 22148 PUSH32(esp, ecx); /* 0x3614A535: push ecx */ 22149 ecx = esi; /* 0x3614A536: mov ecx, esi */ 22150 RECOMP_ICALL(ebx); /* 0x3614A538: call ebx */ 22151 RECOMP_FLAGS_IN(); 22152 edx = edi + 0xC; /* 0x3614A53A: lea edx, [edi + 0xc] */ 22153 PUSH32(esp, edx); /* 0x3614A53D: push edx */ 22154 ecx = esi; /* 0x3614A53E: mov ecx, esi */ 22155 RECOMP_ICALL(ebx); /* 0x3614A540: call ebx */ 22156 RECOMP_FLAGS_IN(); 22157 eax = edi + 0x8; /* 0x3614A542: lea eax, [edi + 8] */ 22158 PUSH32(esp, eax); /* 0x3614A545: push eax */ 22159 ecx = esi; /* 0x3614A546: mov ecx, esi */ 22160 RECOMP_ICALL(ebx); /* 0x3614A548: call ebx */ 22161 RECOMP_FLAGS_IN(); 22162 ecx = edi + 0x10; /* 0x3614A54A: lea ecx, [edi + 0x10] */ 22163 PUSH32(esp, ecx); /* 0x3614A54D: push ecx */ 22164 ecx = esi; /* 0x3614A54E: mov ecx, esi */ 22165 RECOMP_ICALL(ebx); /* 0x3614A550: call ebx */ 22166 RECOMP_FLAGS_IN(); 22167 edx = edi + 0x14; /* 0x3614A552: lea edx, [edi + 0x14] */ 22168 PUSH32(esp, edx); /* 0x3614A555: push edx */ 22169 ecx = esi; /* 0x3614A556: mov ecx, esi */ 22170 RECOMP_ICALL(MEM32(0x3616FAD0)); /* 0x3614A558: call dword ptr [0x3616fad0] */ 22171 RECOMP_FLAGS_IN(); 22172 eax = edi + 0x18; /* 0x3614A55E: lea eax, [edi + 0x18] */ 22173 PUSH32(esp, eax); /* 0x3614A561: push eax */ 22174 ecx = esi; /* 0x3614A562: mov ecx, esi */ 22175 RECOMP_ICALL(MEM32(0x3616FAD0)); /* 0x3614A564: call dword ptr [0x3616fad0] */ 22176 RECOMP_FLAGS_IN(); 22177 ecx = edi + 0x1C; /* 0x3614A56A: lea ecx, [edi + 0x1c] */ 22178 PUSH32(esp, ecx); /* 0x3614A56D: push ecx */ 22179 ecx = esi; /* 0x3614A56E: mov ecx, esi */ 22180 RECOMP_ICALL(MEM32(0x3616FAD0)); /* 0x3614A570: call dword ptr [0x3616fad0] */ 22181 RECOMP_FLAGS_IN(); 22182 edx = edi + 0x2C; /* 0x3614A576: lea edx, [edi + 0x2c] */ 22183 PUSH32(esp, edx); /* 0x3614A579: push edx */ 22184 ecx = esi; /* 0x3614A57A: mov ecx, esi */ 22185 RECOMP_ICALL(MEM32(0x3616FAD0)); /* 0x3614A57C: call dword ptr [0x3616fad0] */ 22186 RECOMP_FLAGS_IN(); 22187 eax = edi + 0x20; /* 0x3614A582: lea eax, [edi + 0x20] */ 22188 PUSH32(esp, eax); /* 0x3614A585: push eax */ 22189 ecx = esi; /* 0x3614A586: mov ecx, esi */ 22190 RECOMP_ICALL(MEM32(0x3616FAD0)); /* 0x3614A588: call dword ptr [0x3616fad0] */ 22191 RECOMP_FLAGS_IN(); 22192 ecx = edi + 0x24; /* 0x3614A58E: lea ecx, [edi + 0x24] */ 22193 PUSH32(esp, ecx); /* 0x3614A591: push ecx */ 22194 ecx = esi; /* 0x3614A592: mov ecx, esi */ 22195 RECOMP_ICALL(MEM32(0x3616FAD0)); /* 0x3614A594: call dword ptr [0x3616fad0] */ 22196 RECOMP_FLAGS_IN(); 22197 edx = edi + 0x28; /* 0x3614A59A: lea edx, [edi + 0x28] */ 22198 PUSH32(esp, edx); /* 0x3614A59D: push edx */ 22199 ecx = esi; /* 0x3614A59E: mov ecx, esi */ 22200 RECOMP_ICALL(MEM32(0x3616FAD0)); /* 0x3614A5A0: call dword ptr [0x3616fad0] */ 22201 RECOMP_FLAGS_IN(); 22202 eax = edi + 0x30; /* 0x3614A5A6: lea eax, [edi + 0x30] */ 22203 PUSH32(esp, eax); /* 0x3614A5A9: push eax */ 22204 ecx = esi; /* 0x3614A5AA: mov ecx, esi */ 22205 RECOMP_ICALL(ebx); /* 0x3614A5AC: call ebx */ 22206 RECOMP_FLAGS_IN(); 22207 ecx = edi + 0x34; /* 0x3614A5AE: lea ecx, [edi + 0x34] */ 22208 PUSH32(esp, ecx); /* 0x3614A5B1: push ecx */ 22209 ecx = esi; /* 0x3614A5B2: mov ecx, esi */ 22210 RECOMP_ICALL(ebx); /* 0x3614A5B4: call ebx */ 22211 RECOMP_FLAGS_IN(); 22212 eax = edi + 0x38; /* 0x3614A5B6: lea eax, [edi + 0x38] */ 22213 PUSH32(esp, eax); /* 0x3614A5B9: push eax */ 22214 ecx = esi; /* 0x3614A5BA: mov ecx, esi */ 22215 RECOMP_ICALL(ebx); /* 0x3614A5BC: call ebx */ 22216 RECOMP_FLAGS_IN(); 22217 eax = MEM32(edi + 0x38); /* 0x3614A5BE: mov eax, dword ptr [edi + 0x38] */ 22218 /* test eax, eax */ /* 0x3614A5C1: test eax, eax */ 22219 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 22220 _cf = 0; 22221 _flag_k = FK_TEST; 22222 if (TEST_Z(_flag_a, _flag_b)) goto L_3614A5DE; /* 0x3614A5C3: je 0x3614a5de */ 22223 L_3614A5C5: 22224 PUSH32(esp, eax); /* 0x3614A5C5: push eax */ 22225 RECOMP_ICALL(0x3615FD6Au); /* 0x3614A5C6: call 0x3615fd6a */ /* not lifted */ 22226 RECOMP_FLAGS_IN(); 22227 edx = MEM32(edi + 0x38); /* 0x3614A5CB: mov edx, dword ptr [edi + 0x38] */ 22228 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 22229 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22230 esp = esp + 4; /* 0x3614A5CE: add esp, 4 */ 22231 _flag_k = FK_ADD; 22232 PUSH32(esp, edx); /* 0x3614A5D1: push edx */ 22233 PUSH32(esp, eax); /* 0x3614A5D2: push eax */ 22234 ecx = esi; /* 0x3614A5D3: mov ecx, esi */ 22235 MEM32(edi + 0x40) = eax; /* 0x3614A5D5: mov dword ptr [edi + 0x40], eax */ 22236 RECOMP_ICALL(MEM32(0x3616FAC4)); /* 0x3614A5D8: call dword ptr [0x3616fac4] */ 22237 RECOMP_FLAGS_IN(); 22238 L_3614A5DE: 22239 ecx = edi; /* 0x3614A5DE: mov ecx, edi */ 22240 RECOMP_ICALL(0x3614A4A0u); /* 0x3614A5E0: call 0x3614a4a0 */ /* not lifted */ 22241 RECOMP_FLAGS_IN(); 22242 /* test LO8(eax), LO8(eax) */ /* 0x3614A5E5: test al, al */ 22243 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 22244 _cf = 0; 22245 _flag_k = FK_NARROW(FK_TEST, 24); 22246 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614A604; /* 0x3614A5E7: jne 0x3614a604 */ 22247 L_3614A5E9: 22248 PUSH32(esp, 0x362E77A0u); /* 0x3614A5E9: push 0x362e77a0 */ 22249 ecx = ebp + (-0x8); /* 0x3614A5EE: lea ecx, [ebp - 8] */ 22250 RECOMP_ICALL(0x36008EF0u); /* 0x3614A5F1: call 0x36008ef0 */ /* not lifted */ 22251 RECOMP_FLAGS_IN(); 22252 PUSH32(esp, 0x36184170u); /* 0x3614A5F6: push 0x36184170 */ 22253 eax = ebp + (-0x8); /* 0x3614A5FB: lea eax, [ebp - 8] */ 22254 PUSH32(esp, eax); /* 0x3614A5FE: push eax */ 22255 RECOMP_ICALL(0x3615FD70u); /* 0x3614A5FF: call 0x3615fd70 */ /* not lifted */ 22256 RECOMP_FLAGS_IN(); 22257 L_3614A604: 22258 ecx = esi; /* 0x3614A604: mov ecx, esi */ 22259 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3614A606: call dword ptr [0x3616fadc] */ 22260 RECOMP_FLAGS_IN(); 22261 /* test eax, eax */ /* 0x3614A60C: test eax, eax */ 22262 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 22263 _cf = 0; 22264 _flag_k = FK_TEST; 22265 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614A62B; /* 0x3614A60E: jne 0x3614a62b */ 22266 L_3614A610: 22267 PUSH32(esp, 0x362E7774u); /* 0x3614A610: push 0x362e7774 */ 22268 ecx = ebp + (-0x8); /* 0x3614A615: lea ecx, [ebp - 8] */ 22269 RECOMP_ICALL(0x36008EF0u); /* 0x3614A618: call 0x36008ef0 */ /* not lifted */ 22270 RECOMP_FLAGS_IN(); 22271 PUSH32(esp, 0x36184170u); /* 0x3614A61D: push 0x36184170 */ 22272 ecx = ebp + (-0x8); /* 0x3614A622: lea ecx, [ebp - 8] */ 22273 PUSH32(esp, ecx); /* 0x3614A625: push ecx */ 22274 RECOMP_ICALL(0x3615FD70u); /* 0x3614A626: call 0x3615fd70 */ /* not lifted */ 22275 RECOMP_FLAGS_IN(); 22276 L_3614A62B: 22277 edi = POP32_VAL(esp); /* 0x3614A62B: pop edi */ 22278 eax = esi; /* 0x3614A62C: mov eax, esi */ 22279 esi = POP32_VAL(esp); /* 0x3614A62E: pop esi */ 22280 ebx = POP32_VAL(esp); /* 0x3614A62F: pop ebx */ 22281 esp = ebp; /* 0x3614A630: mov esp, ebp */ 22282 ebp = POP32_VAL(esp); /* 0x3614A632: pop ebp */ 22283 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614A633: ret */ 22284 RECOMP_REGS_OUT(); 22285 } 22286 22287 void sub_3614A640(void) { 22288 int _fpu_cmp = 0; 22289 uint32_t _cf = 0; 22290 int _df = 1; 22291 uint32_t _flag_k = FK_NONE; 22292 uint32_t _flag_a = 0, _flag_b = 0; 22293 uint32_t _itail_tgt = 0; 22294 RECOMP_REGS_LOCALS 22295 RECOMP_ENTER(0x3614A640u); 22296 22297 L_3614A640: 22298 PUSH32(esp, ebp); /* 0x3614A640: push ebp */ 22299 ebp = esp; /* 0x3614A641: mov ebp, esp */ 22300 PUSH32(esp, ecx); /* 0x3614A643: push ecx */ 22301 SET_LO8(edx, MEM8(ebp + (-0x1))); /* 0x3614A644: mov dl, byte ptr [ebp - 1] */ 22302 eax = ecx; /* 0x3614A647: mov eax, ecx */ 22303 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 22304 ecx = 0; /* 0x3614A649: xor ecx, ecx */ 22305 _cf = 0; 22306 _flag_k = FK_TEST; 22307 MEM32(eax) = ecx; /* 0x3614A64B: mov dword ptr [eax], ecx */ 22308 MEM8(eax + 0x4) = (uint8_t)(LO8(edx)); /* 0x3614A64D: mov byte ptr [eax + 4], dl */ 22309 MEM32(eax + 0x8) = ecx; /* 0x3614A650: mov dword ptr [eax + 8], ecx */ 22310 MEM32(eax + 0xC) = ecx; /* 0x3614A653: mov dword ptr [eax + 0xc], ecx */ 22311 MEM32(eax + 0x10) = ecx; /* 0x3614A656: mov dword ptr [eax + 0x10], ecx */ 22312 MEM32(eax + 0x14) = ecx; /* 0x3614A659: mov dword ptr [eax + 0x14], ecx */ 22313 MEM32(eax + 0x18) = ecx; /* 0x3614A65C: mov dword ptr [eax + 0x18], ecx */ 22314 MEM32(eax + 0x1C) = ecx; /* 0x3614A65F: mov dword ptr [eax + 0x1c], ecx */ 22315 MEM8(eax + 0x20) = (uint8_t)(LO8(ecx)); /* 0x3614A662: mov byte ptr [eax + 0x20], cl */ 22316 esp = ebp; /* 0x3614A665: mov esp, ebp */ 22317 ebp = POP32_VAL(esp); /* 0x3614A667: pop ebp */ 22318 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614A668: ret */ 22319 RECOMP_REGS_OUT(); 22320 } 22321 22322 void sub_3614A670(void) { 22323 int _fpu_cmp = 0; 22324 uint32_t _cf = 0; 22325 int _df = 1; 22326 uint32_t _flag_k = FK_NONE; 22327 uint32_t _flag_a = 0, _flag_b = 0; 22328 uint32_t _itail_tgt = 0; 22329 RECOMP_REGS_LOCALS 22330 RECOMP_ENTER(0x3614A670u); 22331 22332 L_3614A670: 22333 eax = MEM32(ecx + 0xC); /* 0x3614A670: mov eax, dword ptr [ecx + 0xc] */ 22334 /* test eax, eax */ /* 0x3614A673: test eax, eax */ 22335 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 22336 _cf = 0; 22337 _flag_k = FK_TEST; 22338 if (TEST_Z(_flag_a, _flag_b)) goto L_3614A69F; /* 0x3614A675: je 0x3614a69f */ 22339 L_3614A677: 22340 eax = MEM32(ecx + 0x18); /* 0x3614A677: mov eax, dword ptr [ecx + 0x18] */ 22341 /* test eax, eax */ /* 0x3614A67A: test eax, eax */ 22342 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 22343 _cf = 0; 22344 _flag_k = FK_TEST; 22345 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614A68B; /* 0x3614A67C: jne 0x3614a68b */ 22346 L_3614A67E: 22347 edx = MEM32(ecx + 0x1C); /* 0x3614A67E: mov edx, dword ptr [ecx + 0x1c] */ 22348 /* cmp edx, 0xFFFFFFFCu */ /* 0x3614A681: cmp edx, -4 */ 22349 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFCu); 22350 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22351 _flag_k = FK_CMP; 22352 if (CMP_L(_flag_a, _flag_b)) goto L_3614A68B; /* 0x3614A684: jl 0x3614a68b */ 22353 L_3614A686: 22354 /* cmp edx, 4 */ /* 0x3614A686: cmp edx, 4 */ 22355 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 22356 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22357 _flag_k = FK_CMP; 22358 if (CMP_LE(_flag_a, _flag_b)) goto L_3614A69C; /* 0x3614A689: jle 0x3614a69c */ 22359 L_3614A68B: 22360 /* cmp eax, 1 */ /* 0x3614A68B: cmp eax, 1 */ 22361 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 22362 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22363 _flag_k = FK_CMP; 22364 if (CMP_NE(_flag_a, _flag_b)) goto L_3614A69F; /* 0x3614A68E: jne 0x3614a69f */ 22365 L_3614A690: 22366 ecx = MEM32(ecx + 0x1C); /* 0x3614A690: mov ecx, dword ptr [ecx + 0x1c] */ 22367 /* test ecx, ecx */ /* 0x3614A693: test ecx, ecx */ 22368 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 22369 _cf = 0; 22370 _flag_k = FK_TEST; 22371 if (TEST_S(_flag_a, _flag_b)) goto L_3614A69F; /* 0x3614A695: jl 0x3614a69f */ 22372 L_3614A697: 22373 /* cmp ecx, 4 */ /* 0x3614A697: cmp ecx, 4 */ 22374 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 22375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22376 _flag_k = FK_CMP; 22377 if (CMP_G(_flag_a, _flag_b)) goto L_3614A69F; /* 0x3614A69A: jg 0x3614a69f */ 22378 L_3614A69C: 22379 SET_LO8(eax, 1); /* 0x3614A69C: mov al, 1 */ 22380 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614A69E: ret */ 22381 L_3614A69F: 22382 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 22383 SET_LO8(eax, 0); /* 0x3614A69F: xor al, al */ 22384 _cf = 0; 22385 _flag_k = FK_NARROW(FK_TEST, 24); 22386 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614A6A1: ret */ 22387 RECOMP_REGS_OUT(); 22388 } 22389 22390 void sub_3614A6B0(void) { 22391 int _fpu_cmp = 0; 22392 uint32_t _cf = 0; 22393 int _df = 1; 22394 uint32_t _flag_k = FK_NONE; 22395 uint32_t _flag_a = 0, _flag_b = 0; 22396 uint32_t _itail_tgt = 0; 22397 RECOMP_REGS_LOCALS 22398 RECOMP_ENTER(0x3614A6B0u); 22399 22400 L_3614A6B0: 22401 PUSH32(esp, ebp); /* 0x3614A6B0: push ebp */ 22402 ebp = esp; /* 0x3614A6B1: mov ebp, esp */ 22403 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 22404 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22405 esp = esp - 0x1Cu; /* 0x3614A6B3: sub esp, 0x1c */ 22406 _flag_k = FK_CMP; 22407 ecx = MEM32(ebp + 0x8); /* 0x3614A6B6: mov ecx, dword ptr [ebp + 8] */ 22408 PUSH32(esp, ebx); /* 0x3614A6B9: push ebx */ 22409 PUSH32(esp, esi); /* 0x3614A6BA: push esi */ 22410 esi = MEM32(ebp + 0xC); /* 0x3614A6BB: mov esi, dword ptr [ebp + 0xc] */ 22411 PUSH32(esp, edi); /* 0x3614A6BE: push edi */ 22412 PUSH32(esp, esi); /* 0x3614A6BF: push esi */ 22413 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3614A6C0: call dword ptr [0x3616fa8c] */ 22414 RECOMP_FLAGS_IN(); 22415 ecx = ebp + (-0x8); /* 0x3614A6C6: lea ecx, [ebp - 8] */ 22416 PUSH32(esp, ecx); /* 0x3614A6C9: push ecx */ 22417 ecx = eax; /* 0x3614A6CA: mov ecx, eax */ 22418 MEM32(ebp + (-0xC)) = eax; /* 0x3614A6CC: mov dword ptr [ebp - 0xc], eax */ 22419 ebx = esi + 0x4; /* 0x3614A6CF: lea ebx, [esi + 4] */ 22420 MEM32(ebp + (-0x8)) = 0; /* 0x3614A6D2: mov dword ptr [ebp - 8], 0 */ 22421 RECOMP_ICALL(MEM32(0x3616FAC8)); /* 0x3614A6D9: call dword ptr [0x3616fac8] */ 22422 RECOMP_FLAGS_IN(); 22423 eax = MEM32(ebp + (-0x8)); /* 0x3614A6DF: mov eax, dword ptr [ebp - 8] */ 22424 /* test LO16(eax), LO16(eax) */ /* 0x3614A6E2: test ax, ax */ 22425 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(LO16(eax)) << 16; 22426 _cf = 0; 22427 _flag_k = FK_NARROW(FK_TEST, 16); 22428 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614A709; /* 0x3614A6E5: jne 0x3614a709 */ 22429 L_3614A6E7: 22430 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 22431 ecx = ecx | 0xFFFFFFFFu; /* 0x3614A6E7: or ecx, 0xffffffff */ 22432 _cf = 0; 22433 _flag_k = FK_TEST; 22434 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 22435 eax = 0; /* 0x3614A6EA: xor eax, eax */ 22436 _cf = 0; 22437 _flag_k = FK_TEST; 22438 edi = 0x363033BCu; /* 0x3614A6EC: mov edi, 0x363033bc */ 22439 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x3614A6F1: repne scasb al, byte ptr es:[edi] */ 22440 ecx = ~ecx; /* 0x3614A6F3: not ecx */ 22441 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 22442 ecx = ecx - 1; /* 0x3614A6F5: dec ecx */ 22443 _flag_k = FK_DEC; 22444 PUSH32(esp, ecx); /* 0x3614A6F6: push ecx */ 22445 PUSH32(esp, 0x363033BCu); /* 0x3614A6F7: push 0x363033bc */ 22446 ecx = ebx; /* 0x3614A6FC: mov ecx, ebx */ 22447 RECOMP_ICALL(MEM32(0x3616F014)); /* 0x3614A6FE: call dword ptr [0x3616f014] */ 22448 RECOMP_FLAGS_IN(); 22449 goto L_3614A7EB; /* 0x3614A704: jmp 0x3614a7eb */ 22450 L_3614A709: 22451 /* cmp LO16(eax), 0x8000u */ /* 0x3614A709: cmp ax, 0x8000 */ 22452 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(0x8000u) << 16; 22453 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22454 _flag_k = FK_NARROW(FK_CMP, 16); 22455 if (CMP_AE(_flag_a, _flag_b)) goto L_3614A796; /* 0x3614A70D: jae 0x3614a796 */ 22456 L_3614A713: 22457 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 22458 eax = eax & 0xFFFFu; /* 0x3614A713: and eax, 0xffff */ 22459 _cf = 0; 22460 _flag_k = FK_TEST; 22461 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 22462 eax = eax + 1; /* 0x3614A718: inc eax */ 22463 _flag_k = FK_INC; 22464 PUSH32(esp, eax); /* 0x3614A719: push eax */ 22465 RECOMP_ICALL(0x3615FD6Au); /* 0x3614A71A: call 0x3615fd6a */ /* not lifted */ 22466 RECOMP_FLAGS_IN(); 22467 edx = MEM32(ebp + (-0x8)); /* 0x3614A71F: mov edx, dword ptr [ebp - 8] */ 22468 ecx = MEM32(ebp + (-0xC)); /* 0x3614A722: mov ecx, dword ptr [ebp - 0xc] */ 22469 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 22470 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22471 esp = esp + 4; /* 0x3614A725: add esp, 4 */ 22472 _flag_k = FK_ADD; 22473 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFu); 22474 edx = edx & 0xFFFFu; /* 0x3614A728: and edx, 0xffff */ 22475 _cf = 0; 22476 _flag_k = FK_TEST; 22477 esi = eax; /* 0x3614A72E: mov esi, eax */ 22478 PUSH32(esp, edx); /* 0x3614A730: push edx */ 22479 PUSH32(esp, esi); /* 0x3614A731: push esi */ 22480 MEM32(ebp + (-0x18)) = esi; /* 0x3614A732: mov dword ptr [ebp - 0x18], esi */ 22481 RECOMP_ICALL(MEM32(0x3616FAC4)); /* 0x3614A735: call dword ptr [0x3616fac4] */ 22482 RECOMP_FLAGS_IN(); 22483 eax = MEM32(ebp + (-0x8)); /* 0x3614A73B: mov eax, dword ptr [ebp - 8] */ 22484 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 22485 eax = eax & 0xFFFFu; /* 0x3614A73E: and eax, 0xffff */ 22486 _cf = 0; 22487 _flag_k = FK_TEST; 22488 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 22489 ecx = ecx | 0xFFFFFFFFu; /* 0x3614A743: or ecx, 0xffffffff */ 22490 _cf = 0; 22491 _flag_k = FK_TEST; 22492 MEM8(eax + esi) = (uint8_t)(0); /* 0x3614A746: mov byte ptr [eax + esi], 0 */ 22493 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 22494 eax = 0; /* 0x3614A74A: xor eax, eax */ 22495 _cf = 0; 22496 _flag_k = FK_TEST; 22497 edi = esi; /* 0x3614A74C: mov edi, esi */ 22498 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x3614A74E: repne scasb al, byte ptr es:[edi] */ 22499 ecx = ~ecx; /* 0x3614A750: not ecx */ 22500 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 22501 ecx = ecx - 1; /* 0x3614A752: dec ecx */ 22502 _flag_k = FK_DEC; 22503 edi = ecx; /* 0x3614A753: mov edi, ecx */ 22504 PUSH32(esp, 1); /* 0x3614A755: push 1 */ 22505 PUSH32(esp, edi); /* 0x3614A757: push edi */ 22506 ecx = ebx; /* 0x3614A758: mov ecx, ebx */ 22507 MEM32(ebp + (-0x14)) = edi; /* 0x3614A75A: mov dword ptr [ebp - 0x14], edi */ 22508 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x3614A75D: call dword ptr [0x3616f00c] */ 22509 RECOMP_FLAGS_IN(); 22510 /* test LO8(eax), LO8(eax) */ /* 0x3614A763: test al, al */ 22511 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 22512 _cf = 0; 22513 _flag_k = FK_NARROW(FK_TEST, 24); 22514 if (TEST_Z(_flag_a, _flag_b)) goto L_3614A788; /* 0x3614A765: je 0x3614a788 */ 22515 L_3614A767: 22516 ecx = edi; /* 0x3614A767: mov ecx, edi */ 22517 edi = MEM32(ebx + 0x4); /* 0x3614A769: mov edi, dword ptr [ebx + 4] */ 22518 edx = ecx; /* 0x3614A76C: mov edx, ecx */ 22519 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3614A76E: shr ecx, 2 */ 22520 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 22521 ecx = ecx >> 2u; /* 0x3614A76E: shr ecx, 2 */ 22522 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3614A771: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 22523 ecx = edx; /* 0x3614A773: mov ecx, edx */ 22524 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 22525 ecx = ecx & 3; /* 0x3614A775: and ecx, 3 */ 22526 _cf = 0; 22527 _flag_k = FK_TEST; 22528 eax = edx; /* 0x3614A778: mov eax, edx */ 22529 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3614A77A: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 22530 PUSH32(esp, eax); /* 0x3614A77C: push eax */ 22531 ecx = ebx; /* 0x3614A77D: mov ecx, ebx */ 22532 RECOMP_ICALL(MEM32(0x3616F044)); /* 0x3614A77F: call dword ptr [0x3616f044] */ 22533 RECOMP_FLAGS_IN(); 22534 esi = MEM32(ebp + (-0x18)); /* 0x3614A785: mov esi, dword ptr [ebp - 0x18] */ 22535 L_3614A788: 22536 PUSH32(esp, esi); /* 0x3614A788: push esi */ 22537 RECOMP_ICALL(0x3615FCC4u); /* 0x3614A789: call 0x3615fcc4 */ /* not lifted */ 22538 RECOMP_FLAGS_IN(); 22539 esi = MEM32(ebp + 0xC); /* 0x3614A78E: mov esi, dword ptr [ebp + 0xc] */ 22540 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 22541 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 22542 esp = esp + 4; /* 0x3614A791: add esp, 4 */ 22543 _flag_k = FK_ADD; 22544 goto L_3614A7EB; /* 0x3614A794: jmp 0x3614a7eb */ 22545 L_3614A796: 22546 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 22547 ecx = ecx | 0xFFFFFFFFu; /* 0x3614A796: or ecx, 0xffffffff */ 22548 _cf = 0; 22549 _flag_k = FK_TEST; 22550 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 22551 eax = 0; /* 0x3614A799: xor eax, eax */ 22552 _cf = 0; 22553 _flag_k = FK_TEST; 22554 edi = 0x363033BCu; /* 0x3614A79B: mov edi, 0x363033bc */ 22555 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x3614A7A0: repne scasb al, byte ptr es:[edi] */ 22556 ecx = ~ecx; /* 0x3614A7A2: not ecx */ 22557 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 22558 ecx = ecx - 1; /* 0x3614A7A4: dec ecx */ 22559 _flag_k = FK_DEC; 22560 edi = ecx; /* 0x3614A7A5: mov edi, ecx */ 22561 PUSH32(esp, 1); /* 0x3614A7A7: push 1 */ 22562 PUSH32(esp, edi); /* 0x3614A7A9: push edi */ 22563 ecx = ebx; /* 0x3614A7AA: mov ecx, ebx */ 22564 MEM32(ebp + (-0x18)) = edi; /* 0x3614A7AC: mov dword ptr [ebp - 0x18], edi */ 22565 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x3614A7AF: call dword ptr [0x3616f00c] */ 22566 RECOMP_FLAGS_IN(); 22567 /* test LO8(eax), LO8(eax) */ /* 0x3614A7B5: test al, al */ 22568 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 22569 _cf = 0; 22570 _flag_k = FK_NARROW(FK_TEST, 24); 22571 if (TEST_Z(_flag_a, _flag_b)) goto L_3614A7E0; /* 0x3614A7B7: je 0x3614a7e0 */ 22572 L_3614A7B9: 22573 ecx = edi; /* 0x3614A7B9: mov ecx, edi */ 22574 edi = MEM32(ebx + 0x4); /* 0x3614A7BB: mov edi, dword ptr [ebx + 4] */ 22575 edx = ecx; /* 0x3614A7BE: mov edx, ecx */ 22576 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3614A7C0: shr ecx, 2 */ 22577 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 22578 ecx = ecx >> 2u; /* 0x3614A7C0: shr ecx, 2 */ 22579 esi = 0x363033BCu; /* 0x3614A7C3: mov esi, 0x363033bc */ 22580 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3614A7C8: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 22581 ecx = edx; /* 0x3614A7CA: mov ecx, edx */ 22582 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 22583 ecx = ecx & 3; /* 0x3614A7CC: and ecx, 3 */ 22584 _cf = 0; 22585 _flag_k = FK_TEST; 22586 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3614A7CF: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 22587 ecx = MEM32(ebx + 0x4); /* 0x3614A7D1: mov ecx, dword ptr [ebx + 4] */ 22588 esi = MEM32(ebp + 0xC); /* 0x3614A7D4: mov esi, dword ptr [ebp + 0xc] */ 22589 eax = edx; /* 0x3614A7D7: mov eax, edx */ 22590 MEM32(ebx + 0x8) = eax; /* 0x3614A7D9: mov dword ptr [ebx + 8], eax */ 22591 MEM8(eax + ecx) = (uint8_t)(0); /* 0x3614A7DC: mov byte ptr [eax + ecx], 0 */ 22592 L_3614A7E0: 22593 ecx = MEM32(ebp + (-0xC)); /* 0x3614A7E0: mov ecx, dword ptr [ebp - 0xc] */ 22594 PUSH32(esp, 4); /* 0x3614A7E3: push 4 */ 22595 RECOMP_ICALL(MEM32(0x3616FAE4)); /* 0x3614A7E5: call dword ptr [0x3616fae4] */ 22596 RECOMP_FLAGS_IN(); 22597 L_3614A7EB: 22598 ecx = MEM32(ebp + (-0xC)); /* 0x3614A7EB: mov ecx, dword ptr [ebp - 0xc] */ 22599 edi = MEM32(0x3616FAE0); /* 0x3614A7EE: mov edi, dword ptr [0x3616fae0] */ 22600 edx = ebp + (-0x10); /* 0x3614A7F4: lea edx, [ebp - 0x10] */ 22601 PUSH32(esp, edx); /* 0x3614A7F7: push edx */ 22602 RECOMP_ICALL(edi); /* 0x3614A7F8: call edi */ 22603 RECOMP_FLAGS_IN(); 22604 ecx = ebp + (-0x1); /* 0x3614A7FA: lea ecx, [ebp - 1] */ 22605 PUSH32(esp, ecx); /* 0x3614A7FD: push ecx */ 22606 ecx = eax; /* 0x3614A7FE: mov ecx, eax */ 22607 RECOMP_ICALL(edi); /* 0x3614A800: call edi */ 22608 RECOMP_FLAGS_IN(); 22609 /* cmp MEM32(esi), 0 */ /* 0x3614A802: cmp dword ptr [esi], 0 */ 22610 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0); 22611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22612 _flag_k = FK_CMP; 22613 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614A898; /* 0x3614A805: je 0x3614a898 */ 22614 L_3614A80B: 22615 eax = MEM32(esi + 0xC); /* 0x3614A80B: mov eax, dword ptr [esi + 0xc] */ 22616 /* test eax, eax */ /* 0x3614A80E: test eax, eax */ 22617 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 22618 _cf = 0; 22619 _flag_k = FK_TEST; 22620 if (TEST_Z(_flag_a, _flag_b)) goto L_3614A898; /* 0x3614A810: je 0x3614a898 */ 22621 L_3614A816: 22622 SET_LO8(ecx, MEM8(ebp + (-0x10))); /* 0x3614A816: mov cl, byte ptr [ebp - 0x10] */ 22623 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 22624 SET_LO8(ecx, LO8(ecx) & 1); /* 0x3614A819: and cl, 1 */ 22625 _cf = 0; 22626 _flag_k = FK_NARROW(FK_TEST, 24); 22627 SET_LO8(eax, MEM8(ebp + (-0x1))); /* 0x3614A81C: mov al, byte ptr [ebp - 1] */ 22628 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614A829; /* 0x3614A81F: jne 0x3614a829 */ 22629 L_3614A821: 22630 /* cmp LO8(eax), 0xFCu */ /* 0x3614A821: cmp al, 0xfc */ 22631 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFCu) << 24; 22632 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22633 _flag_k = FK_NARROW(FK_CMP, 24); 22634 if (CMP_L(_flag_a, _flag_b)) goto L_3614A898; /* 0x3614A823: jl 0x3614a898 */ 22635 L_3614A825: 22636 /* cmp LO8(eax), 4 */ /* 0x3614A825: cmp al, 4 */ 22637 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(4) << 24; 22638 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22639 _flag_k = FK_NARROW(FK_CMP, 24); 22640 if (CMP_G(_flag_a, _flag_b)) goto L_3614A898; /* 0x3614A827: jg 0x3614a898 */ 22641 L_3614A829: 22642 /* cmp LO8(ecx), 1 */ /* 0x3614A829: cmp cl, 1 */ 22643 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 22644 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22645 _flag_k = FK_NARROW(FK_CMP, 24); 22646 if (CMP_NE(_flag_a, _flag_b)) goto L_3614A836; /* 0x3614A82C: jne 0x3614a836 */ 22647 L_3614A82E: 22648 /* test LO8(eax), LO8(eax) */ /* 0x3614A82E: test al, al */ 22649 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 22650 _cf = 0; 22651 _flag_k = FK_NARROW(FK_TEST, 24); 22652 if (TEST_S(_flag_a, _flag_b)) goto L_3614A898; /* 0x3614A830: jl 0x3614a898 */ 22653 L_3614A832: 22654 /* cmp LO8(eax), 4 */ /* 0x3614A832: cmp al, 4 */ 22655 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(4) << 24; 22656 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22657 _flag_k = FK_NARROW(FK_CMP, 24); 22658 if (CMP_G(_flag_a, _flag_b)) goto L_3614A898; /* 0x3614A834: jg 0x3614a898 */ 22659 L_3614A836: 22660 /* test LO8(eax), 0xF8u */ /* 0x3614A836: test al, 0xf8 */ 22661 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xF8u) << 24; 22662 _cf = 0; 22663 _flag_k = FK_NARROW(FK_TEST, 24); 22664 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614A898; /* 0x3614A838: jne 0x3614a898 */ 22665 L_3614A83A: 22666 edi = MEM32(ebp + 0x8); /* 0x3614A83A: mov edi, dword ptr [ebp + 8] */ 22667 ecx = edi; /* 0x3614A83D: mov ecx, edi */ 22668 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3614A83F: call dword ptr [0x3616fadc] */ 22669 RECOMP_FLAGS_IN(); 22670 /* test eax, eax */ /* 0x3614A845: test eax, eax */ 22671 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 22672 _cf = 0; 22673 _flag_k = FK_TEST; 22674 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614A865; /* 0x3614A847: jne 0x3614a865 */ 22675 L_3614A849: 22676 PUSH32(esp, 0x362E77E0u); /* 0x3614A849: push 0x362e77e0 */ 22677 ecx = ebp + (-0x1C); /* 0x3614A84E: lea ecx, [ebp - 0x1c] */ 22678 RECOMP_ICALL(MEM32(0x3616FD8C)); /* 0x3614A851: call dword ptr [0x3616fd8c] */ 22679 RECOMP_FLAGS_IN(); 22680 PUSH32(esp, 0x3618CC40u); /* 0x3614A857: push 0x3618cc40 */ 22681 edx = ebp + (-0x1C); /* 0x3614A85C: lea edx, [ebp - 0x1c] */ 22682 PUSH32(esp, edx); /* 0x3614A85F: push edx */ 22683 RECOMP_ICALL(0x3615FD70u); /* 0x3614A860: call 0x3615fd70 */ /* not lifted */ 22684 RECOMP_FLAGS_IN(); 22685 L_3614A865: 22686 ecx = MEM32(ebp + (-0x10)); /* 0x3614A865: mov ecx, dword ptr [ebp - 0x10] */ 22687 eax = ecx; /* 0x3614A868: mov eax, ecx */ 22688 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 22689 eax = eax & 0xFFu; /* 0x3614A86A: and eax, 0xff */ 22690 _cf = 0; 22691 _flag_k = FK_TEST; 22692 edx = eax; /* 0x3614A86F: mov edx, eax */ 22693 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 22694 edx = edx & 1; /* 0x3614A871: and edx, 1 */ 22695 _cf = 0; 22696 _flag_k = FK_TEST; 22697 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x3614A874: shr eax, 1 */ 22698 if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 22699 eax = eax >> 1u; /* 0x3614A874: shr eax, 1 */ 22700 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 22701 eax = eax & 1; /* 0x3614A876: and eax, 1 */ 22702 _cf = 0; 22703 _flag_k = FK_TEST; 22704 MEM32(esi + 0x18) = edx; /* 0x3614A879: mov dword ptr [esi + 0x18], edx */ 22705 edx = (int32_t)(int8_t)MEM8(ebp + (-0x1)); /* 0x3614A87C: movsx edx, byte ptr [ebp - 1] */ 22706 MEM32(esi + 0x14) = eax; /* 0x3614A880: mov dword ptr [esi + 0x14], eax */ 22707 if (2u) _cf = (((LO8(ecx)) >> 1) & 1u); /* 0x3614A883: shr cl, 2 */ 22708 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((LO8(ecx) >> 2u)) << 24), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 22709 SET_LO8(ecx, LO8(ecx) >> 2u); /* 0x3614A883: shr cl, 2 */ 22710 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 22711 SET_LO8(ecx, LO8(ecx) & 1); /* 0x3614A886: and cl, 1 */ 22712 _cf = 0; 22713 _flag_k = FK_NARROW(FK_TEST, 24); 22714 eax = edi; /* 0x3614A889: mov eax, edi */ 22715 edi = POP32_VAL(esp); /* 0x3614A88B: pop edi */ 22716 MEM32(esi + 0x1C) = edx; /* 0x3614A88C: mov dword ptr [esi + 0x1c], edx */ 22717 MEM8(esi + 0x20) = (uint8_t)(LO8(ecx)); /* 0x3614A88F: mov byte ptr [esi + 0x20], cl */ 22718 esi = POP32_VAL(esp); /* 0x3614A892: pop esi */ 22719 ebx = POP32_VAL(esp); /* 0x3614A893: pop ebx */ 22720 esp = ebp; /* 0x3614A894: mov esp, ebp */ 22721 ebp = POP32_VAL(esp); /* 0x3614A896: pop ebp */ 22722 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614A897: ret */ 22723 L_3614A898: 22724 PUSH32(esp, 0x362E77BCu); /* 0x3614A898: push 0x362e77bc */ 22725 ecx = ebp + (-0x1C); /* 0x3614A89D: lea ecx, [ebp - 0x1c] */ 22726 RECOMP_ICALL(MEM32(0x3616FD8C)); /* 0x3614A8A0: call dword ptr [0x3616fd8c] */ 22727 RECOMP_FLAGS_IN(); 22728 PUSH32(esp, 0x3618CC40u); /* 0x3614A8A6: push 0x3618cc40 */ 22729 eax = ebp + (-0x1C); /* 0x3614A8AB: lea eax, [ebp - 0x1c] */ 22730 PUSH32(esp, eax); /* 0x3614A8AE: push eax */ 22731 RECOMP_ICALL(0x3615FD70u); /* 0x3614A8AF: call 0x3615fd70 */ /* not lifted */ 22732 RECOMP_FLAGS_IN(); 22733 /* nop */ /* 0x3614A8B4: nop */ 22734 /* nop */ /* 0x3614A8B5: nop */ 22735 /* nop */ /* 0x3614A8B6: nop */ 22736 /* nop */ /* 0x3614A8B7: nop */ 22737 /* nop */ /* 0x3614A8B8: nop */ 22738 /* nop */ /* 0x3614A8B9: nop */ 22739 /* nop */ /* 0x3614A8BA: nop */ 22740 /* nop */ /* 0x3614A8BB: nop */ 22741 /* nop */ /* 0x3614A8BC: nop */ 22742 /* nop */ /* 0x3614A8BD: nop */ 22743 /* nop */ /* 0x3614A8BE: nop */ 22744 /* nop */ /* 0x3614A8BF: nop */ 22745 PUSH32(esp, ebp); /* 0x3614A8C0: push ebp */ 22746 ebp = esp; /* 0x3614A8C1: mov ebp, esp */ 22747 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 22748 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22749 esp = esp - 8; /* 0x3614A8C3: sub esp, 8 */ 22750 _flag_k = FK_CMP; 22751 PUSH32(esp, esi); /* 0x3614A8C6: push esi */ 22752 esi = MEM32(ebp + 0xC); /* 0x3614A8C7: mov esi, dword ptr [ebp + 0xc] */ 22753 ecx = esi; /* 0x3614A8CA: mov ecx, esi */ 22754 RECOMP_ICALL(0x3614A670u); /* 0x3614A8CC: call 0x3614a670 */ /* not lifted */ 22755 RECOMP_FLAGS_IN(); 22756 /* test LO8(eax), LO8(eax) */ /* 0x3614A8D1: test al, al */ 22757 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 22758 _cf = 0; 22759 _flag_k = FK_NARROW(FK_TEST, 24); 22760 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614A8F1; /* 0x3614A8D3: jne 0x3614a8f1 */ 22761 L_3614A8D5: 22762 PUSH32(esp, 0x362E7804u); /* 0x3614A8D5: push 0x362e7804 */ 22763 ecx = ebp + (-0x8); /* 0x3614A8DA: lea ecx, [ebp - 8] */ 22764 RECOMP_ICALL(MEM32(0x3616FD8C)); /* 0x3614A8DD: call dword ptr [0x3616fd8c] */ 22765 RECOMP_FLAGS_IN(); 22766 PUSH32(esp, 0x3618CC40u); /* 0x3614A8E3: push 0x3618cc40 */ 22767 eax = ebp + (-0x8); /* 0x3614A8E8: lea eax, [ebp - 8] */ 22768 PUSH32(esp, eax); /* 0x3614A8EB: push eax */ 22769 RECOMP_ICALL(0x3615FD70u); /* 0x3614A8EC: call 0x3615fd70 */ /* not lifted */ 22770 RECOMP_FLAGS_IN(); 22771 L_3614A8F1: 22772 ecx = MEM32(esi + 0x18); /* 0x3614A8F1: mov ecx, dword ptr [esi + 0x18] */ 22773 eax = 1; /* 0x3614A8F4: mov eax, 1 */ 22774 /* cmp ecx, eax */ /* 0x3614A8F9: cmp ecx, eax */ 22775 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 22776 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22777 _flag_k = FK_CMP; 22778 MEM8(ebp + 0xC) = (uint8_t)(0); /* 0x3614A8FB: mov byte ptr [ebp + 0xc], 0 */ 22779 if (CMP_NE(_flag_a, _flag_b)) goto L_3614A904; /* 0x3614A8FF: jne 0x3614a904 */ 22780 L_3614A901: 22781 MEM8(ebp + 0xC) = (uint8_t)(LO8(eax)); /* 0x3614A901: mov byte ptr [ebp + 0xc], al */ 22782 L_3614A904: 22783 /* cmp MEM32(esi + 0x14), eax */ /* 0x3614A904: cmp dword ptr [esi + 0x14], eax */ 22784 _flag_a = (uint32_t)(MEM32(esi + 0x14)); _flag_b = (uint32_t)(eax); 22785 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22786 _flag_k = FK_CMP; 22787 if (CMP_NE(_flag_a, _flag_b)) goto L_3614A90D; /* 0x3614A907: jne 0x3614a90d */ 22788 L_3614A909: 22789 _flag_a = (uint32_t)((MEM8(ebp + 0xC) | 2)) << 24; _flag_b = (uint32_t)((MEM8(ebp + 0xC) | 2)) << 24; 22790 MEM8(ebp + 0xC) = (uint8_t)(MEM8(ebp + 0xC) | 2); /* 0x3614A909: or byte ptr [ebp + 0xc], 2 */ 22791 _cf = 0; 22792 _flag_k = FK_NARROW(FK_TEST, 24); 22793 L_3614A90D: 22794 SET_LO8(eax, MEM8(esi + 0x20)); /* 0x3614A90D: mov al, byte ptr [esi + 0x20] */ 22795 /* test LO8(eax), LO8(eax) */ /* 0x3614A910: test al, al */ 22796 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 22797 _cf = 0; 22798 _flag_k = FK_NARROW(FK_TEST, 24); 22799 if (TEST_Z(_flag_a, _flag_b)) goto L_3614A918; /* 0x3614A912: je 0x3614a918 */ 22800 L_3614A914: 22801 _flag_a = (uint32_t)((MEM8(ebp + 0xC) | 4)) << 24; _flag_b = (uint32_t)((MEM8(ebp + 0xC) | 4)) << 24; 22802 MEM8(ebp + 0xC) = (uint8_t)(MEM8(ebp + 0xC) | 4); /* 0x3614A914: or byte ptr [ebp + 0xc], 4 */ 22803 _cf = 0; 22804 _flag_k = FK_NARROW(FK_TEST, 24); 22805 L_3614A918: 22806 eax = MEM32(esi); /* 0x3614A918: mov eax, dword ptr [esi] */ 22807 ecx = MEM32(ebp + 0x8); /* 0x3614A91A: mov ecx, dword ptr [ebp + 8] */ 22808 PUSH32(esp, ebx); /* 0x3614A91D: push ebx */ 22809 PUSH32(esp, edi); /* 0x3614A91E: push edi */ 22810 PUSH32(esp, eax); /* 0x3614A91F: push eax */ 22811 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x3614A920: call dword ptr [0x3616faec] */ 22812 RECOMP_FLAGS_IN(); 22813 edi = MEM32(esi + 0xC); /* 0x3614A926: mov edi, dword ptr [esi + 0xc] */ 22814 /* cmp edi, 0xFFFFu */ /* 0x3614A929: cmp edi, 0xffff */ 22815 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFu); 22816 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22817 _flag_k = FK_CMP; 22818 ebx = eax; /* 0x3614A92F: mov ebx, eax */ 22819 if (CMP_B(_flag_a, _flag_b)) goto L_3614A938; /* 0x3614A931: jb 0x3614a938 */ 22820 L_3614A933: 22821 edi = 0xFFFFu; /* 0x3614A933: mov edi, 0xffff */ 22822 L_3614A938: 22823 PUSH32(esp, edi); /* 0x3614A938: push edi */ 22824 ecx = ebx; /* 0x3614A939: mov ecx, ebx */ 22825 RECOMP_ICALL(MEM32(0x3616FACC)); /* 0x3614A93B: call dword ptr [0x3616facc] */ 22826 RECOMP_FLAGS_IN(); 22827 /* test LO16(edi), LO16(edi) */ /* 0x3614A941: test di, di */ 22828 _flag_a = (uint32_t)(LO16(edi)) << 16; _flag_b = (uint32_t)(LO16(edi)) << 16; 22829 _cf = 0; 22830 _flag_k = FK_NARROW(FK_TEST, 16); 22831 if (TEST_Z(_flag_a, _flag_b)) goto L_3614A962; /* 0x3614A944: je 0x3614a962 */ 22832 L_3614A946: 22833 eax = MEM32(esi + 0x8); /* 0x3614A946: mov eax, dword ptr [esi + 8] */ 22834 /* test eax, eax */ /* 0x3614A949: test eax, eax */ 22835 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 22836 _cf = 0; 22837 _flag_k = FK_TEST; 22838 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614A952; /* 0x3614A94B: jne 0x3614a952 */ 22839 L_3614A94D: 22840 eax = MEM32(0x3616F10C); /* 0x3614A94D: mov eax, dword ptr [0x3616f10c] */ 22841 L_3614A952: 22842 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFu); 22843 edi = edi & 0xFFFFu; /* 0x3614A952: and edi, 0xffff */ 22844 _cf = 0; 22845 _flag_k = FK_TEST; 22846 PUSH32(esp, edi); /* 0x3614A958: push edi */ 22847 PUSH32(esp, eax); /* 0x3614A959: push eax */ 22848 ecx = ebx; /* 0x3614A95A: mov ecx, ebx */ 22849 RECOMP_ICALL(MEM32(0x3616FAB0)); /* 0x3614A95C: call dword ptr [0x3616fab0] */ 22850 RECOMP_FLAGS_IN(); 22851 L_3614A962: 22852 ecx = MEM32(ebp + 0xC); /* 0x3614A962: mov ecx, dword ptr [ebp + 0xc] */ 22853 edi = MEM32(0x3616FAE8); /* 0x3614A965: mov edi, dword ptr [0x3616fae8] */ 22854 PUSH32(esp, ecx); /* 0x3614A96B: push ecx */ 22855 ecx = ebx; /* 0x3614A96C: mov ecx, ebx */ 22856 RECOMP_ICALL(edi); /* 0x3614A96E: call edi */ 22857 RECOMP_FLAGS_IN(); 22858 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 22859 edx = 0; /* 0x3614A970: xor edx, edx */ 22860 _cf = 0; 22861 _flag_k = FK_TEST; 22862 SET_LO8(edx, MEM8(esi + 0x1C)); /* 0x3614A972: mov dl, byte ptr [esi + 0x1c] */ 22863 ecx = eax; /* 0x3614A975: mov ecx, eax */ 22864 PUSH32(esp, edx); /* 0x3614A977: push edx */ 22865 RECOMP_ICALL(edi); /* 0x3614A978: call edi */ 22866 RECOMP_FLAGS_IN(); 22867 esi = MEM32(ebp + 0x8); /* 0x3614A97A: mov esi, dword ptr [ebp + 8] */ 22868 ecx = esi; /* 0x3614A97D: mov ecx, esi */ 22869 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3614A97F: call dword ptr [0x3616fadc] */ 22870 RECOMP_FLAGS_IN(); 22871 /* test eax, eax */ /* 0x3614A985: test eax, eax */ 22872 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 22873 _cf = 0; 22874 _flag_k = FK_TEST; 22875 edi = POP32_VAL(esp); /* 0x3614A987: pop edi */ 22876 ebx = POP32_VAL(esp); /* 0x3614A988: pop ebx */ 22877 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614A9A7; /* 0x3614A989: jne 0x3614a9a7 */ 22878 L_3614A98B: 22879 PUSH32(esp, 0x362E77E0u); /* 0x3614A98B: push 0x362e77e0 */ 22880 ecx = ebp + (-0x8); /* 0x3614A990: lea ecx, [ebp - 8] */ 22881 RECOMP_ICALL(MEM32(0x3616FD8C)); /* 0x3614A993: call dword ptr [0x3616fd8c] */ 22882 RECOMP_FLAGS_IN(); 22883 PUSH32(esp, 0x3618CC40u); /* 0x3614A999: push 0x3618cc40 */ 22884 eax = ebp + (-0x8); /* 0x3614A99E: lea eax, [ebp - 8] */ 22885 PUSH32(esp, eax); /* 0x3614A9A1: push eax */ 22886 RECOMP_ICALL(0x3615FD70u); /* 0x3614A9A2: call 0x3615fd70 */ /* not lifted */ 22887 RECOMP_FLAGS_IN(); 22888 L_3614A9A7: 22889 eax = esi; /* 0x3614A9A7: mov eax, esi */ 22890 esi = POP32_VAL(esp); /* 0x3614A9A9: pop esi */ 22891 esp = ebp; /* 0x3614A9AA: mov esp, ebp */ 22892 ebp = POP32_VAL(esp); /* 0x3614A9AC: pop ebp */ 22893 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614A9AD: ret */ 22894 RECOMP_REGS_OUT(); 22895 } 22896 22897 void sub_3614A7EB(void) { 22898 int _fpu_cmp = 0; 22899 uint32_t _cf = 0; 22900 int _df = 1; 22901 uint32_t _flag_k = FK_NONE; 22902 uint32_t _flag_a = 0, _flag_b = 0; 22903 uint32_t _itail_tgt = 0; 22904 RECOMP_REGS_LOCALS 22905 RECOMP_ENTER(0x3614A7EBu); 22906 22907 L_3614A7EB: 22908 ecx = MEM32(ebp + (-0xC)); /* 0x3614A7EB: mov ecx, dword ptr [ebp - 0xc] */ 22909 edi = MEM32(0x3616FAE0); /* 0x3614A7EE: mov edi, dword ptr [0x3616fae0] */ 22910 edx = ebp + (-0x10); /* 0x3614A7F4: lea edx, [ebp - 0x10] */ 22911 PUSH32(esp, edx); /* 0x3614A7F7: push edx */ 22912 RECOMP_ICALL(edi); /* 0x3614A7F8: call edi */ 22913 RECOMP_FLAGS_IN(); 22914 ecx = ebp + (-0x1); /* 0x3614A7FA: lea ecx, [ebp - 1] */ 22915 PUSH32(esp, ecx); /* 0x3614A7FD: push ecx */ 22916 ecx = eax; /* 0x3614A7FE: mov ecx, eax */ 22917 RECOMP_ICALL(edi); /* 0x3614A800: call edi */ 22918 RECOMP_FLAGS_IN(); 22919 /* cmp MEM32(esi), 0 */ /* 0x3614A802: cmp dword ptr [esi], 0 */ 22920 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0); 22921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22922 _flag_k = FK_CMP; 22923 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614A898; /* 0x3614A805: je 0x3614a898 */ 22924 L_3614A80B: 22925 eax = MEM32(esi + 0xC); /* 0x3614A80B: mov eax, dword ptr [esi + 0xc] */ 22926 /* test eax, eax */ /* 0x3614A80E: test eax, eax */ 22927 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 22928 _cf = 0; 22929 _flag_k = FK_TEST; 22930 if (TEST_Z(_flag_a, _flag_b)) goto L_3614A898; /* 0x3614A810: je 0x3614a898 */ 22931 L_3614A816: 22932 SET_LO8(ecx, MEM8(ebp + (-0x10))); /* 0x3614A816: mov cl, byte ptr [ebp - 0x10] */ 22933 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 22934 SET_LO8(ecx, LO8(ecx) & 1); /* 0x3614A819: and cl, 1 */ 22935 _cf = 0; 22936 _flag_k = FK_NARROW(FK_TEST, 24); 22937 SET_LO8(eax, MEM8(ebp + (-0x1))); /* 0x3614A81C: mov al, byte ptr [ebp - 1] */ 22938 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614A829; /* 0x3614A81F: jne 0x3614a829 */ 22939 L_3614A821: 22940 /* cmp LO8(eax), 0xFCu */ /* 0x3614A821: cmp al, 0xfc */ 22941 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFCu) << 24; 22942 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22943 _flag_k = FK_NARROW(FK_CMP, 24); 22944 if (CMP_L(_flag_a, _flag_b)) goto L_3614A898; /* 0x3614A823: jl 0x3614a898 */ 22945 L_3614A825: 22946 /* cmp LO8(eax), 4 */ /* 0x3614A825: cmp al, 4 */ 22947 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(4) << 24; 22948 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22949 _flag_k = FK_NARROW(FK_CMP, 24); 22950 if (CMP_G(_flag_a, _flag_b)) goto L_3614A898; /* 0x3614A827: jg 0x3614a898 */ 22951 L_3614A829: 22952 /* cmp LO8(ecx), 1 */ /* 0x3614A829: cmp cl, 1 */ 22953 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 22954 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22955 _flag_k = FK_NARROW(FK_CMP, 24); 22956 if (CMP_NE(_flag_a, _flag_b)) goto L_3614A836; /* 0x3614A82C: jne 0x3614a836 */ 22957 L_3614A82E: 22958 /* test LO8(eax), LO8(eax) */ /* 0x3614A82E: test al, al */ 22959 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 22960 _cf = 0; 22961 _flag_k = FK_NARROW(FK_TEST, 24); 22962 if (TEST_S(_flag_a, _flag_b)) goto L_3614A898; /* 0x3614A830: jl 0x3614a898 */ 22963 L_3614A832: 22964 /* cmp LO8(eax), 4 */ /* 0x3614A832: cmp al, 4 */ 22965 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(4) << 24; 22966 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 22967 _flag_k = FK_NARROW(FK_CMP, 24); 22968 if (CMP_G(_flag_a, _flag_b)) goto L_3614A898; /* 0x3614A834: jg 0x3614a898 */ 22969 L_3614A836: 22970 /* test LO8(eax), 0xF8u */ /* 0x3614A836: test al, 0xf8 */ 22971 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xF8u) << 24; 22972 _cf = 0; 22973 _flag_k = FK_NARROW(FK_TEST, 24); 22974 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614A898; /* 0x3614A838: jne 0x3614a898 */ 22975 L_3614A83A: 22976 edi = MEM32(ebp + 0x8); /* 0x3614A83A: mov edi, dword ptr [ebp + 8] */ 22977 ecx = edi; /* 0x3614A83D: mov ecx, edi */ 22978 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3614A83F: call dword ptr [0x3616fadc] */ 22979 RECOMP_FLAGS_IN(); 22980 /* test eax, eax */ /* 0x3614A845: test eax, eax */ 22981 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 22982 _cf = 0; 22983 _flag_k = FK_TEST; 22984 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614A865; /* 0x3614A847: jne 0x3614a865 */ 22985 L_3614A849: 22986 PUSH32(esp, 0x362E77E0u); /* 0x3614A849: push 0x362e77e0 */ 22987 ecx = ebp + (-0x1C); /* 0x3614A84E: lea ecx, [ebp - 0x1c] */ 22988 RECOMP_ICALL(MEM32(0x3616FD8C)); /* 0x3614A851: call dword ptr [0x3616fd8c] */ 22989 RECOMP_FLAGS_IN(); 22990 PUSH32(esp, 0x3618CC40u); /* 0x3614A857: push 0x3618cc40 */ 22991 edx = ebp + (-0x1C); /* 0x3614A85C: lea edx, [ebp - 0x1c] */ 22992 PUSH32(esp, edx); /* 0x3614A85F: push edx */ 22993 RECOMP_ICALL(0x3615FD70u); /* 0x3614A860: call 0x3615fd70 */ /* not lifted */ 22994 RECOMP_FLAGS_IN(); 22995 L_3614A865: 22996 ecx = MEM32(ebp + (-0x10)); /* 0x3614A865: mov ecx, dword ptr [ebp - 0x10] */ 22997 eax = ecx; /* 0x3614A868: mov eax, ecx */ 22998 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 22999 eax = eax & 0xFFu; /* 0x3614A86A: and eax, 0xff */ 23000 _cf = 0; 23001 _flag_k = FK_TEST; 23002 edx = eax; /* 0x3614A86F: mov edx, eax */ 23003 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 23004 edx = edx & 1; /* 0x3614A871: and edx, 1 */ 23005 _cf = 0; 23006 _flag_k = FK_TEST; 23007 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x3614A874: shr eax, 1 */ 23008 if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 23009 eax = eax >> 1u; /* 0x3614A874: shr eax, 1 */ 23010 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 23011 eax = eax & 1; /* 0x3614A876: and eax, 1 */ 23012 _cf = 0; 23013 _flag_k = FK_TEST; 23014 MEM32(esi + 0x18) = edx; /* 0x3614A879: mov dword ptr [esi + 0x18], edx */ 23015 edx = (int32_t)(int8_t)MEM8(ebp + (-0x1)); /* 0x3614A87C: movsx edx, byte ptr [ebp - 1] */ 23016 MEM32(esi + 0x14) = eax; /* 0x3614A880: mov dword ptr [esi + 0x14], eax */ 23017 if (2u) _cf = (((LO8(ecx)) >> 1) & 1u); /* 0x3614A883: shr cl, 2 */ 23018 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((LO8(ecx) >> 2u)) << 24), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 23019 SET_LO8(ecx, LO8(ecx) >> 2u); /* 0x3614A883: shr cl, 2 */ 23020 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 23021 SET_LO8(ecx, LO8(ecx) & 1); /* 0x3614A886: and cl, 1 */ 23022 _cf = 0; 23023 _flag_k = FK_NARROW(FK_TEST, 24); 23024 eax = edi; /* 0x3614A889: mov eax, edi */ 23025 edi = POP32_VAL(esp); /* 0x3614A88B: pop edi */ 23026 MEM32(esi + 0x1C) = edx; /* 0x3614A88C: mov dword ptr [esi + 0x1c], edx */ 23027 MEM8(esi + 0x20) = (uint8_t)(LO8(ecx)); /* 0x3614A88F: mov byte ptr [esi + 0x20], cl */ 23028 esi = POP32_VAL(esp); /* 0x3614A892: pop esi */ 23029 ebx = POP32_VAL(esp); /* 0x3614A893: pop ebx */ 23030 esp = ebp; /* 0x3614A894: mov esp, ebp */ 23031 ebp = POP32_VAL(esp); /* 0x3614A896: pop ebp */ 23032 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614A897: ret */ 23033 L_3614A898: 23034 PUSH32(esp, 0x362E77BCu); /* 0x3614A898: push 0x362e77bc */ 23035 ecx = ebp + (-0x1C); /* 0x3614A89D: lea ecx, [ebp - 0x1c] */ 23036 RECOMP_ICALL(MEM32(0x3616FD8C)); /* 0x3614A8A0: call dword ptr [0x3616fd8c] */ 23037 RECOMP_FLAGS_IN(); 23038 PUSH32(esp, 0x3618CC40u); /* 0x3614A8A6: push 0x3618cc40 */ 23039 eax = ebp + (-0x1C); /* 0x3614A8AB: lea eax, [ebp - 0x1c] */ 23040 PUSH32(esp, eax); /* 0x3614A8AE: push eax */ 23041 RECOMP_ICALL(0x3615FD70u); /* 0x3614A8AF: call 0x3615fd70 */ /* not lifted */ 23042 RECOMP_FLAGS_IN(); 23043 /* nop */ /* 0x3614A8B4: nop */ 23044 /* nop */ /* 0x3614A8B5: nop */ 23045 /* nop */ /* 0x3614A8B6: nop */ 23046 /* nop */ /* 0x3614A8B7: nop */ 23047 /* nop */ /* 0x3614A8B8: nop */ 23048 /* nop */ /* 0x3614A8B9: nop */ 23049 /* nop */ /* 0x3614A8BA: nop */ 23050 /* nop */ /* 0x3614A8BB: nop */ 23051 /* nop */ /* 0x3614A8BC: nop */ 23052 /* nop */ /* 0x3614A8BD: nop */ 23053 /* nop */ /* 0x3614A8BE: nop */ 23054 /* nop */ /* 0x3614A8BF: nop */ 23055 PUSH32(esp, ebp); /* 0x3614A8C0: push ebp */ 23056 ebp = esp; /* 0x3614A8C1: mov ebp, esp */ 23057 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 23058 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23059 esp = esp - 8; /* 0x3614A8C3: sub esp, 8 */ 23060 _flag_k = FK_CMP; 23061 PUSH32(esp, esi); /* 0x3614A8C6: push esi */ 23062 esi = MEM32(ebp + 0xC); /* 0x3614A8C7: mov esi, dword ptr [ebp + 0xc] */ 23063 ecx = esi; /* 0x3614A8CA: mov ecx, esi */ 23064 RECOMP_ICALL(0x3614A670u); /* 0x3614A8CC: call 0x3614a670 */ /* not lifted */ 23065 RECOMP_FLAGS_IN(); 23066 /* test LO8(eax), LO8(eax) */ /* 0x3614A8D1: test al, al */ 23067 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 23068 _cf = 0; 23069 _flag_k = FK_NARROW(FK_TEST, 24); 23070 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614A8F1; /* 0x3614A8D3: jne 0x3614a8f1 */ 23071 L_3614A8D5: 23072 PUSH32(esp, 0x362E7804u); /* 0x3614A8D5: push 0x362e7804 */ 23073 ecx = ebp + (-0x8); /* 0x3614A8DA: lea ecx, [ebp - 8] */ 23074 RECOMP_ICALL(MEM32(0x3616FD8C)); /* 0x3614A8DD: call dword ptr [0x3616fd8c] */ 23075 RECOMP_FLAGS_IN(); 23076 PUSH32(esp, 0x3618CC40u); /* 0x3614A8E3: push 0x3618cc40 */ 23077 eax = ebp + (-0x8); /* 0x3614A8E8: lea eax, [ebp - 8] */ 23078 PUSH32(esp, eax); /* 0x3614A8EB: push eax */ 23079 RECOMP_ICALL(0x3615FD70u); /* 0x3614A8EC: call 0x3615fd70 */ /* not lifted */ 23080 RECOMP_FLAGS_IN(); 23081 L_3614A8F1: 23082 ecx = MEM32(esi + 0x18); /* 0x3614A8F1: mov ecx, dword ptr [esi + 0x18] */ 23083 eax = 1; /* 0x3614A8F4: mov eax, 1 */ 23084 /* cmp ecx, eax */ /* 0x3614A8F9: cmp ecx, eax */ 23085 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 23086 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23087 _flag_k = FK_CMP; 23088 MEM8(ebp + 0xC) = (uint8_t)(0); /* 0x3614A8FB: mov byte ptr [ebp + 0xc], 0 */ 23089 if (CMP_NE(_flag_a, _flag_b)) goto L_3614A904; /* 0x3614A8FF: jne 0x3614a904 */ 23090 L_3614A901: 23091 MEM8(ebp + 0xC) = (uint8_t)(LO8(eax)); /* 0x3614A901: mov byte ptr [ebp + 0xc], al */ 23092 L_3614A904: 23093 /* cmp MEM32(esi + 0x14), eax */ /* 0x3614A904: cmp dword ptr [esi + 0x14], eax */ 23094 _flag_a = (uint32_t)(MEM32(esi + 0x14)); _flag_b = (uint32_t)(eax); 23095 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23096 _flag_k = FK_CMP; 23097 if (CMP_NE(_flag_a, _flag_b)) goto L_3614A90D; /* 0x3614A907: jne 0x3614a90d */ 23098 L_3614A909: 23099 _flag_a = (uint32_t)((MEM8(ebp + 0xC) | 2)) << 24; _flag_b = (uint32_t)((MEM8(ebp + 0xC) | 2)) << 24; 23100 MEM8(ebp + 0xC) = (uint8_t)(MEM8(ebp + 0xC) | 2); /* 0x3614A909: or byte ptr [ebp + 0xc], 2 */ 23101 _cf = 0; 23102 _flag_k = FK_NARROW(FK_TEST, 24); 23103 L_3614A90D: 23104 SET_LO8(eax, MEM8(esi + 0x20)); /* 0x3614A90D: mov al, byte ptr [esi + 0x20] */ 23105 /* test LO8(eax), LO8(eax) */ /* 0x3614A910: test al, al */ 23106 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 23107 _cf = 0; 23108 _flag_k = FK_NARROW(FK_TEST, 24); 23109 if (TEST_Z(_flag_a, _flag_b)) goto L_3614A918; /* 0x3614A912: je 0x3614a918 */ 23110 L_3614A914: 23111 _flag_a = (uint32_t)((MEM8(ebp + 0xC) | 4)) << 24; _flag_b = (uint32_t)((MEM8(ebp + 0xC) | 4)) << 24; 23112 MEM8(ebp + 0xC) = (uint8_t)(MEM8(ebp + 0xC) | 4); /* 0x3614A914: or byte ptr [ebp + 0xc], 4 */ 23113 _cf = 0; 23114 _flag_k = FK_NARROW(FK_TEST, 24); 23115 L_3614A918: 23116 eax = MEM32(esi); /* 0x3614A918: mov eax, dword ptr [esi] */ 23117 ecx = MEM32(ebp + 0x8); /* 0x3614A91A: mov ecx, dword ptr [ebp + 8] */ 23118 PUSH32(esp, ebx); /* 0x3614A91D: push ebx */ 23119 PUSH32(esp, edi); /* 0x3614A91E: push edi */ 23120 PUSH32(esp, eax); /* 0x3614A91F: push eax */ 23121 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x3614A920: call dword ptr [0x3616faec] */ 23122 RECOMP_FLAGS_IN(); 23123 edi = MEM32(esi + 0xC); /* 0x3614A926: mov edi, dword ptr [esi + 0xc] */ 23124 /* cmp edi, 0xFFFFu */ /* 0x3614A929: cmp edi, 0xffff */ 23125 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFu); 23126 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23127 _flag_k = FK_CMP; 23128 ebx = eax; /* 0x3614A92F: mov ebx, eax */ 23129 if (CMP_B(_flag_a, _flag_b)) goto L_3614A938; /* 0x3614A931: jb 0x3614a938 */ 23130 L_3614A933: 23131 edi = 0xFFFFu; /* 0x3614A933: mov edi, 0xffff */ 23132 L_3614A938: 23133 PUSH32(esp, edi); /* 0x3614A938: push edi */ 23134 ecx = ebx; /* 0x3614A939: mov ecx, ebx */ 23135 RECOMP_ICALL(MEM32(0x3616FACC)); /* 0x3614A93B: call dword ptr [0x3616facc] */ 23136 RECOMP_FLAGS_IN(); 23137 /* test LO16(edi), LO16(edi) */ /* 0x3614A941: test di, di */ 23138 _flag_a = (uint32_t)(LO16(edi)) << 16; _flag_b = (uint32_t)(LO16(edi)) << 16; 23139 _cf = 0; 23140 _flag_k = FK_NARROW(FK_TEST, 16); 23141 if (TEST_Z(_flag_a, _flag_b)) goto L_3614A962; /* 0x3614A944: je 0x3614a962 */ 23142 L_3614A946: 23143 eax = MEM32(esi + 0x8); /* 0x3614A946: mov eax, dword ptr [esi + 8] */ 23144 /* test eax, eax */ /* 0x3614A949: test eax, eax */ 23145 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 23146 _cf = 0; 23147 _flag_k = FK_TEST; 23148 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614A952; /* 0x3614A94B: jne 0x3614a952 */ 23149 L_3614A94D: 23150 eax = MEM32(0x3616F10C); /* 0x3614A94D: mov eax, dword ptr [0x3616f10c] */ 23151 L_3614A952: 23152 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFu); 23153 edi = edi & 0xFFFFu; /* 0x3614A952: and edi, 0xffff */ 23154 _cf = 0; 23155 _flag_k = FK_TEST; 23156 PUSH32(esp, edi); /* 0x3614A958: push edi */ 23157 PUSH32(esp, eax); /* 0x3614A959: push eax */ 23158 ecx = ebx; /* 0x3614A95A: mov ecx, ebx */ 23159 RECOMP_ICALL(MEM32(0x3616FAB0)); /* 0x3614A95C: call dword ptr [0x3616fab0] */ 23160 RECOMP_FLAGS_IN(); 23161 L_3614A962: 23162 ecx = MEM32(ebp + 0xC); /* 0x3614A962: mov ecx, dword ptr [ebp + 0xc] */ 23163 edi = MEM32(0x3616FAE8); /* 0x3614A965: mov edi, dword ptr [0x3616fae8] */ 23164 PUSH32(esp, ecx); /* 0x3614A96B: push ecx */ 23165 ecx = ebx; /* 0x3614A96C: mov ecx, ebx */ 23166 RECOMP_ICALL(edi); /* 0x3614A96E: call edi */ 23167 RECOMP_FLAGS_IN(); 23168 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 23169 edx = 0; /* 0x3614A970: xor edx, edx */ 23170 _cf = 0; 23171 _flag_k = FK_TEST; 23172 SET_LO8(edx, MEM8(esi + 0x1C)); /* 0x3614A972: mov dl, byte ptr [esi + 0x1c] */ 23173 ecx = eax; /* 0x3614A975: mov ecx, eax */ 23174 PUSH32(esp, edx); /* 0x3614A977: push edx */ 23175 RECOMP_ICALL(edi); /* 0x3614A978: call edi */ 23176 RECOMP_FLAGS_IN(); 23177 esi = MEM32(ebp + 0x8); /* 0x3614A97A: mov esi, dword ptr [ebp + 8] */ 23178 ecx = esi; /* 0x3614A97D: mov ecx, esi */ 23179 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3614A97F: call dword ptr [0x3616fadc] */ 23180 RECOMP_FLAGS_IN(); 23181 /* test eax, eax */ /* 0x3614A985: test eax, eax */ 23182 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 23183 _cf = 0; 23184 _flag_k = FK_TEST; 23185 edi = POP32_VAL(esp); /* 0x3614A987: pop edi */ 23186 ebx = POP32_VAL(esp); /* 0x3614A988: pop ebx */ 23187 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614A9A7; /* 0x3614A989: jne 0x3614a9a7 */ 23188 L_3614A98B: 23189 PUSH32(esp, 0x362E77E0u); /* 0x3614A98B: push 0x362e77e0 */ 23190 ecx = ebp + (-0x8); /* 0x3614A990: lea ecx, [ebp - 8] */ 23191 RECOMP_ICALL(MEM32(0x3616FD8C)); /* 0x3614A993: call dword ptr [0x3616fd8c] */ 23192 RECOMP_FLAGS_IN(); 23193 PUSH32(esp, 0x3618CC40u); /* 0x3614A999: push 0x3618cc40 */ 23194 eax = ebp + (-0x8); /* 0x3614A99E: lea eax, [ebp - 8] */ 23195 PUSH32(esp, eax); /* 0x3614A9A1: push eax */ 23196 RECOMP_ICALL(0x3615FD70u); /* 0x3614A9A2: call 0x3615fd70 */ /* not lifted */ 23197 RECOMP_FLAGS_IN(); 23198 L_3614A9A7: 23199 eax = esi; /* 0x3614A9A7: mov eax, esi */ 23200 esi = POP32_VAL(esp); /* 0x3614A9A9: pop esi */ 23201 esp = ebp; /* 0x3614A9AA: mov esp, ebp */ 23202 ebp = POP32_VAL(esp); /* 0x3614A9AC: pop ebp */ 23203 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614A9AD: ret */ 23204 RECOMP_REGS_OUT(); 23205 } 23206 23207 void sub_3614A8C0(void) { 23208 int _fpu_cmp = 0; 23209 uint32_t _cf = 0; 23210 int _df = 1; 23211 uint32_t _flag_k = FK_NONE; 23212 uint32_t _flag_a = 0, _flag_b = 0; 23213 uint32_t _itail_tgt = 0; 23214 RECOMP_REGS_LOCALS 23215 RECOMP_ENTER(0x3614A8C0u); 23216 23217 L_3614A8C0: 23218 PUSH32(esp, ebp); /* 0x3614A8C0: push ebp */ 23219 ebp = esp; /* 0x3614A8C1: mov ebp, esp */ 23220 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 23221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23222 esp = esp - 8; /* 0x3614A8C3: sub esp, 8 */ 23223 _flag_k = FK_CMP; 23224 PUSH32(esp, esi); /* 0x3614A8C6: push esi */ 23225 esi = MEM32(ebp + 0xC); /* 0x3614A8C7: mov esi, dword ptr [ebp + 0xc] */ 23226 ecx = esi; /* 0x3614A8CA: mov ecx, esi */ 23227 RECOMP_ICALL(0x3614A670u); /* 0x3614A8CC: call 0x3614a670 */ /* not lifted */ 23228 RECOMP_FLAGS_IN(); 23229 /* test LO8(eax), LO8(eax) */ /* 0x3614A8D1: test al, al */ 23230 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 23231 _cf = 0; 23232 _flag_k = FK_NARROW(FK_TEST, 24); 23233 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614A8F1; /* 0x3614A8D3: jne 0x3614a8f1 */ 23234 L_3614A8D5: 23235 PUSH32(esp, 0x362E7804u); /* 0x3614A8D5: push 0x362e7804 */ 23236 ecx = ebp + (-0x8); /* 0x3614A8DA: lea ecx, [ebp - 8] */ 23237 RECOMP_ICALL(MEM32(0x3616FD8C)); /* 0x3614A8DD: call dword ptr [0x3616fd8c] */ 23238 RECOMP_FLAGS_IN(); 23239 PUSH32(esp, 0x3618CC40u); /* 0x3614A8E3: push 0x3618cc40 */ 23240 eax = ebp + (-0x8); /* 0x3614A8E8: lea eax, [ebp - 8] */ 23241 PUSH32(esp, eax); /* 0x3614A8EB: push eax */ 23242 RECOMP_ICALL(0x3615FD70u); /* 0x3614A8EC: call 0x3615fd70 */ /* not lifted */ 23243 RECOMP_FLAGS_IN(); 23244 L_3614A8F1: 23245 ecx = MEM32(esi + 0x18); /* 0x3614A8F1: mov ecx, dword ptr [esi + 0x18] */ 23246 eax = 1; /* 0x3614A8F4: mov eax, 1 */ 23247 /* cmp ecx, eax */ /* 0x3614A8F9: cmp ecx, eax */ 23248 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 23249 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23250 _flag_k = FK_CMP; 23251 MEM8(ebp + 0xC) = (uint8_t)(0); /* 0x3614A8FB: mov byte ptr [ebp + 0xc], 0 */ 23252 if (CMP_NE(_flag_a, _flag_b)) goto L_3614A904; /* 0x3614A8FF: jne 0x3614a904 */ 23253 L_3614A901: 23254 MEM8(ebp + 0xC) = (uint8_t)(LO8(eax)); /* 0x3614A901: mov byte ptr [ebp + 0xc], al */ 23255 L_3614A904: 23256 /* cmp MEM32(esi + 0x14), eax */ /* 0x3614A904: cmp dword ptr [esi + 0x14], eax */ 23257 _flag_a = (uint32_t)(MEM32(esi + 0x14)); _flag_b = (uint32_t)(eax); 23258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23259 _flag_k = FK_CMP; 23260 if (CMP_NE(_flag_a, _flag_b)) goto L_3614A90D; /* 0x3614A907: jne 0x3614a90d */ 23261 L_3614A909: 23262 _flag_a = (uint32_t)((MEM8(ebp + 0xC) | 2)) << 24; _flag_b = (uint32_t)((MEM8(ebp + 0xC) | 2)) << 24; 23263 MEM8(ebp + 0xC) = (uint8_t)(MEM8(ebp + 0xC) | 2); /* 0x3614A909: or byte ptr [ebp + 0xc], 2 */ 23264 _cf = 0; 23265 _flag_k = FK_NARROW(FK_TEST, 24); 23266 L_3614A90D: 23267 SET_LO8(eax, MEM8(esi + 0x20)); /* 0x3614A90D: mov al, byte ptr [esi + 0x20] */ 23268 /* test LO8(eax), LO8(eax) */ /* 0x3614A910: test al, al */ 23269 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 23270 _cf = 0; 23271 _flag_k = FK_NARROW(FK_TEST, 24); 23272 if (TEST_Z(_flag_a, _flag_b)) goto L_3614A918; /* 0x3614A912: je 0x3614a918 */ 23273 L_3614A914: 23274 _flag_a = (uint32_t)((MEM8(ebp + 0xC) | 4)) << 24; _flag_b = (uint32_t)((MEM8(ebp + 0xC) | 4)) << 24; 23275 MEM8(ebp + 0xC) = (uint8_t)(MEM8(ebp + 0xC) | 4); /* 0x3614A914: or byte ptr [ebp + 0xc], 4 */ 23276 _cf = 0; 23277 _flag_k = FK_NARROW(FK_TEST, 24); 23278 L_3614A918: 23279 eax = MEM32(esi); /* 0x3614A918: mov eax, dword ptr [esi] */ 23280 ecx = MEM32(ebp + 0x8); /* 0x3614A91A: mov ecx, dword ptr [ebp + 8] */ 23281 PUSH32(esp, ebx); /* 0x3614A91D: push ebx */ 23282 PUSH32(esp, edi); /* 0x3614A91E: push edi */ 23283 PUSH32(esp, eax); /* 0x3614A91F: push eax */ 23284 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x3614A920: call dword ptr [0x3616faec] */ 23285 RECOMP_FLAGS_IN(); 23286 edi = MEM32(esi + 0xC); /* 0x3614A926: mov edi, dword ptr [esi + 0xc] */ 23287 /* cmp edi, 0xFFFFu */ /* 0x3614A929: cmp edi, 0xffff */ 23288 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFu); 23289 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23290 _flag_k = FK_CMP; 23291 ebx = eax; /* 0x3614A92F: mov ebx, eax */ 23292 if (CMP_B(_flag_a, _flag_b)) goto L_3614A938; /* 0x3614A931: jb 0x3614a938 */ 23293 L_3614A933: 23294 edi = 0xFFFFu; /* 0x3614A933: mov edi, 0xffff */ 23295 L_3614A938: 23296 PUSH32(esp, edi); /* 0x3614A938: push edi */ 23297 ecx = ebx; /* 0x3614A939: mov ecx, ebx */ 23298 RECOMP_ICALL(MEM32(0x3616FACC)); /* 0x3614A93B: call dword ptr [0x3616facc] */ 23299 RECOMP_FLAGS_IN(); 23300 /* test LO16(edi), LO16(edi) */ /* 0x3614A941: test di, di */ 23301 _flag_a = (uint32_t)(LO16(edi)) << 16; _flag_b = (uint32_t)(LO16(edi)) << 16; 23302 _cf = 0; 23303 _flag_k = FK_NARROW(FK_TEST, 16); 23304 if (TEST_Z(_flag_a, _flag_b)) goto L_3614A962; /* 0x3614A944: je 0x3614a962 */ 23305 L_3614A946: 23306 eax = MEM32(esi + 0x8); /* 0x3614A946: mov eax, dword ptr [esi + 8] */ 23307 /* test eax, eax */ /* 0x3614A949: test eax, eax */ 23308 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 23309 _cf = 0; 23310 _flag_k = FK_TEST; 23311 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614A952; /* 0x3614A94B: jne 0x3614a952 */ 23312 L_3614A94D: 23313 eax = MEM32(0x3616F10C); /* 0x3614A94D: mov eax, dword ptr [0x3616f10c] */ 23314 L_3614A952: 23315 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFu); 23316 edi = edi & 0xFFFFu; /* 0x3614A952: and edi, 0xffff */ 23317 _cf = 0; 23318 _flag_k = FK_TEST; 23319 PUSH32(esp, edi); /* 0x3614A958: push edi */ 23320 PUSH32(esp, eax); /* 0x3614A959: push eax */ 23321 ecx = ebx; /* 0x3614A95A: mov ecx, ebx */ 23322 RECOMP_ICALL(MEM32(0x3616FAB0)); /* 0x3614A95C: call dword ptr [0x3616fab0] */ 23323 RECOMP_FLAGS_IN(); 23324 L_3614A962: 23325 ecx = MEM32(ebp + 0xC); /* 0x3614A962: mov ecx, dword ptr [ebp + 0xc] */ 23326 edi = MEM32(0x3616FAE8); /* 0x3614A965: mov edi, dword ptr [0x3616fae8] */ 23327 PUSH32(esp, ecx); /* 0x3614A96B: push ecx */ 23328 ecx = ebx; /* 0x3614A96C: mov ecx, ebx */ 23329 RECOMP_ICALL(edi); /* 0x3614A96E: call edi */ 23330 RECOMP_FLAGS_IN(); 23331 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 23332 edx = 0; /* 0x3614A970: xor edx, edx */ 23333 _cf = 0; 23334 _flag_k = FK_TEST; 23335 SET_LO8(edx, MEM8(esi + 0x1C)); /* 0x3614A972: mov dl, byte ptr [esi + 0x1c] */ 23336 ecx = eax; /* 0x3614A975: mov ecx, eax */ 23337 PUSH32(esp, edx); /* 0x3614A977: push edx */ 23338 RECOMP_ICALL(edi); /* 0x3614A978: call edi */ 23339 RECOMP_FLAGS_IN(); 23340 esi = MEM32(ebp + 0x8); /* 0x3614A97A: mov esi, dword ptr [ebp + 8] */ 23341 ecx = esi; /* 0x3614A97D: mov ecx, esi */ 23342 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3614A97F: call dword ptr [0x3616fadc] */ 23343 RECOMP_FLAGS_IN(); 23344 /* test eax, eax */ /* 0x3614A985: test eax, eax */ 23345 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 23346 _cf = 0; 23347 _flag_k = FK_TEST; 23348 edi = POP32_VAL(esp); /* 0x3614A987: pop edi */ 23349 ebx = POP32_VAL(esp); /* 0x3614A988: pop ebx */ 23350 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614A9A7; /* 0x3614A989: jne 0x3614a9a7 */ 23351 L_3614A98B: 23352 PUSH32(esp, 0x362E77E0u); /* 0x3614A98B: push 0x362e77e0 */ 23353 ecx = ebp + (-0x8); /* 0x3614A990: lea ecx, [ebp - 8] */ 23354 RECOMP_ICALL(MEM32(0x3616FD8C)); /* 0x3614A993: call dword ptr [0x3616fd8c] */ 23355 RECOMP_FLAGS_IN(); 23356 PUSH32(esp, 0x3618CC40u); /* 0x3614A999: push 0x3618cc40 */ 23357 eax = ebp + (-0x8); /* 0x3614A99E: lea eax, [ebp - 8] */ 23358 PUSH32(esp, eax); /* 0x3614A9A1: push eax */ 23359 RECOMP_ICALL(0x3615FD70u); /* 0x3614A9A2: call 0x3615fd70 */ /* not lifted */ 23360 RECOMP_FLAGS_IN(); 23361 L_3614A9A7: 23362 eax = esi; /* 0x3614A9A7: mov eax, esi */ 23363 esi = POP32_VAL(esp); /* 0x3614A9A9: pop esi */ 23364 esp = ebp; /* 0x3614A9AA: mov esp, ebp */ 23365 ebp = POP32_VAL(esp); /* 0x3614A9AC: pop ebp */ 23366 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614A9AD: ret */ 23367 RECOMP_REGS_OUT(); 23368 } 23369 23370 void sub_3614A9B0(void) { 23371 int _fpu_cmp = 0; 23372 uint32_t _cf = 0; 23373 int _df = 1; 23374 uint32_t _flag_k = FK_NONE; 23375 uint32_t _flag_a = 0, _flag_b = 0; 23376 uint32_t _itail_tgt = 0; 23377 RECOMP_REGS_LOCALS 23378 RECOMP_ENTER(0x3614A9B0u); 23379 23380 L_3614A9B0: 23381 PUSH32(esp, ebp); /* 0x3614A9B0: push ebp */ 23382 ebp = esp; /* 0x3614A9B1: mov ebp, esp */ 23383 eax = MEM32(ebp + 0x8); /* 0x3614A9B3: mov eax, dword ptr [ebp + 8] */ 23384 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x3614A9B6: mov dl, byte ptr [ebp + 0xb] */ 23385 PUSH32(esp, ebx); /* 0x3614A9B9: push ebx */ 23386 PUSH32(esp, esi); /* 0x3614A9BA: push esi */ 23387 esi = ecx; /* 0x3614A9BB: mov esi, ecx */ 23388 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x3614A9BD: mov cl, byte ptr [ebp + 0xb] */ 23389 MEM32(esi) = eax; /* 0x3614A9C0: mov dword ptr [esi], eax */ 23390 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 23391 ebx = 0; /* 0x3614A9C2: xor ebx, ebx */ 23392 _cf = 0; 23393 _flag_k = FK_TEST; 23394 MEM32(esi + 0x4) = ebx; /* 0x3614A9C4: mov dword ptr [esi + 4], ebx */ 23395 PUSH32(esp, edi); /* 0x3614A9C7: push edi */ 23396 PUSH32(esp, 0x24u); /* 0x3614A9C8: push 0x24 */ 23397 MEM8(esi + 0x8) = (uint8_t)(LO8(ecx)); /* 0x3614A9CA: mov byte ptr [esi + 8], cl */ 23398 MEM8(esi + 0x9) = (uint8_t)(LO8(edx)); /* 0x3614A9CD: mov byte ptr [esi + 9], dl */ 23399 MEM8(esi + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3614A9D0: mov byte ptr [esi + 0x14], bl */ 23400 RECOMP_ICALL(0x3615FD6Au); /* 0x3614A9D3: call 0x3615fd6a */ /* not lifted */ 23401 RECOMP_FLAGS_IN(); 23402 MEM32(eax + 0x4) = ebx; /* 0x3614A9D8: mov dword ptr [eax + 4], ebx */ 23403 MEM8(eax + 0x21) = (uint8_t)(LO8(ebx)); /* 0x3614A9DB: mov byte ptr [eax + 0x21], bl */ 23404 SET_LO8(ecx, 1); /* 0x3614A9DE: mov cl, 1 */ 23405 MEM8(eax + 0x20) = (uint8_t)(LO8(ecx)); /* 0x3614A9E0: mov byte ptr [eax + 0x20], cl */ 23406 MEM32(esi + 0x10) = eax; /* 0x3614A9E3: mov dword ptr [esi + 0x10], eax */ 23407 MEM8(eax + 0x21) = (uint8_t)(LO8(ecx)); /* 0x3614A9E6: mov byte ptr [eax + 0x21], cl */ 23408 eax = MEM32(esi + 0x10); /* 0x3614A9E9: mov eax, dword ptr [esi + 0x10] */ 23409 MEM32(eax) = ebx; /* 0x3614A9EC: mov dword ptr [eax], ebx */ 23410 ecx = MEM32(esi + 0x10); /* 0x3614A9EE: mov ecx, dword ptr [esi + 0x10] */ 23411 MEM32(ecx + 0x8) = ebx; /* 0x3614A9F1: mov dword ptr [ecx + 8], ebx */ 23412 edi = MEM32(esi + 0x10); /* 0x3614A9F4: mov edi, dword ptr [esi + 0x10] */ 23413 PUSH32(esp, 0x24u); /* 0x3614A9F7: push 0x24 */ 23414 RECOMP_ICALL(0x3615FD6Au); /* 0x3614A9F9: call 0x3615fd6a */ /* not lifted */ 23415 RECOMP_FLAGS_IN(); 23416 MEM32(eax + 0x4) = edi; /* 0x3614A9FE: mov dword ptr [eax + 4], edi */ 23417 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614AA01: mov byte ptr [eax + 0x20], bl */ 23418 MEM8(eax + 0x21) = (uint8_t)(LO8(ebx)); /* 0x3614AA04: mov byte ptr [eax + 0x21], bl */ 23419 MEM32(esi + 0xC) = eax; /* 0x3614AA07: mov dword ptr [esi + 0xc], eax */ 23420 MEM32(eax) = eax; /* 0x3614AA0A: mov dword ptr [eax], eax */ 23421 eax = MEM32(esi + 0xC); /* 0x3614AA0C: mov eax, dword ptr [esi + 0xc] */ 23422 MEM32(eax + 0x8) = eax; /* 0x3614AA0F: mov dword ptr [eax + 8], eax */ 23423 MEM32(esi + 0x18) = ebx; /* 0x3614AA12: mov dword ptr [esi + 0x18], ebx */ 23424 eax = MEM32(esi); /* 0x3614AA15: mov eax, dword ptr [esi] */ 23425 ecx = MEM32(eax + 0xC); /* 0x3614AA17: mov ecx, dword ptr [eax + 0xc] */ 23426 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 23427 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23428 esp = esp + 8; /* 0x3614AA1A: add esp, 8 */ 23429 _flag_k = FK_ADD; 23430 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 23431 ecx = ecx + 1; /* 0x3614AA1D: inc ecx */ 23432 _flag_k = FK_INC; 23433 edi = POP32_VAL(esp); /* 0x3614AA1E: pop edi */ 23434 MEM32(eax + 0xC) = ecx; /* 0x3614AA1F: mov dword ptr [eax + 0xc], ecx */ 23435 eax = esi; /* 0x3614AA22: mov eax, esi */ 23436 esi = POP32_VAL(esp); /* 0x3614AA24: pop esi */ 23437 ebx = POP32_VAL(esp); /* 0x3614AA25: pop ebx */ 23438 ebp = POP32_VAL(esp); /* 0x3614AA26: pop ebp */ 23439 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614AA27: ret 4 */ 23440 RECOMP_REGS_OUT(); 23441 } 23442 23443 void sub_3614AA30(void) { 23444 int _fpu_cmp = 0; 23445 uint32_t _cf = 0; 23446 int _df = 1; 23447 uint32_t _flag_k = FK_NONE; 23448 uint32_t _flag_a = 0, _flag_b = 0; 23449 uint32_t _itail_tgt = 0; 23450 RECOMP_REGS_LOCALS 23451 RECOMP_ENTER(0x3614AA30u); 23452 23453 L_3614AA30: 23454 PUSH32(esp, ebp); /* 0x3614AA30: push ebp */ 23455 ebp = esp; /* 0x3614AA31: mov ebp, esp */ 23456 PUSH32(esp, 0xFFFFFFFFu); /* 0x3614AA33: push -1 */ 23457 PUSH32(esp, 0x3616D15Bu); /* 0x3614AA35: push 0x3616d15b */ 23458 eax = MEM32(FS_BASE + (0)); /* 0x3614AA3A: mov eax, dword ptr fs:[0] */ 23459 PUSH32(esp, eax); /* 0x3614AA40: push eax */ 23460 MEM32(FS_BASE + (0)) = esp; /* 0x3614AA41: mov dword ptr fs:[0], esp */ 23461 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 23462 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23463 esp = esp - 0xCu; /* 0x3614AA48: sub esp, 0xc */ 23464 _flag_k = FK_CMP; 23465 PUSH32(esp, ebx); /* 0x3614AA4B: push ebx */ 23466 PUSH32(esp, esi); /* 0x3614AA4C: push esi */ 23467 esi = ecx; /* 0x3614AA4D: mov esi, ecx */ 23468 PUSH32(esp, edi); /* 0x3614AA4F: push edi */ 23469 MEM32(ebp + (-0x10)) = esi; /* 0x3614AA50: mov dword ptr [ebp - 0x10], esi */ 23470 ecx = MEM32(esi); /* 0x3614AA53: mov ecx, dword ptr [esi] */ 23471 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 23472 ebx = 0; /* 0x3614AA55: xor ebx, ebx */ 23473 _cf = 0; 23474 _flag_k = FK_TEST; 23475 MEM32(ebp + (-0x4)) = ebx; /* 0x3614AA57: mov dword ptr [ebp - 4], ebx */ 23476 RECOMP_ICALL(MEM32(0x3616FB14)); /* 0x3614AA5A: call dword ptr [0x3616fb14] */ 23477 RECOMP_FLAGS_IN(); 23478 edi = MEM32(esi + 0xC); /* 0x3614AA60: mov edi, dword ptr [esi + 0xc] */ 23479 ecx = MEM32(esi + 0x18); /* 0x3614AA63: mov ecx, dword ptr [esi + 0x18] */ 23480 eax = MEM32(edi); /* 0x3614AA66: mov eax, dword ptr [edi] */ 23481 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 23482 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23483 esi = esi + 8; /* 0x3614AA68: add esi, 8 */ 23484 _flag_k = FK_ADD; 23485 /* cmp ecx, ebx */ /* 0x3614AA6B: cmp ecx, ebx */ 23486 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 23487 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23488 _flag_k = FK_CMP; 23489 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3614AA6D: mov dword ptr [ebp - 4], 0xffffffff */ 23490 MEM32(ebp + (-0x10)) = eax; /* 0x3614AA74: mov dword ptr [ebp - 0x10], eax */ 23491 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614AADE; /* 0x3614AA77: je 0x3614aade */ 23492 L_3614AA79: 23493 ecx = eax; /* 0x3614AA79: mov ecx, eax */ 23494 /* cmp eax, ecx */ /* 0x3614AA7B: cmp eax, ecx */ 23495 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 23496 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23497 _flag_k = FK_CMP; 23498 if (CMP_NE(_flag_a, _flag_b)) goto L_3614AADE; /* 0x3614AA7D: jne 0x3614aade */ 23499 L_3614AA7F: 23500 /* cmp edi, edi */ /* 0x3614AA7F: cmp edi, edi */ 23501 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 23502 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23503 _flag_k = FK_CMP; 23504 if (CMP_NE(_flag_a, _flag_b)) goto L_3614AADE; /* 0x3614AA81: jne 0x3614aade */ 23505 L_3614AA83: 23506 ebx = MEM32(edi + 0x4); /* 0x3614AA83: mov ebx, dword ptr [edi + 4] */ 23507 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3614AA86: cmp ebx, dword ptr [esi + 8] */ 23508 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 23509 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23510 _flag_k = FK_CMP; 23511 edi = ebx; /* 0x3614AA89: mov edi, ebx */ 23512 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614AAB6; /* 0x3614AA8B: je 0x3614aab6 */ 23513 L_3614AA8D: 23514 eax = MEM32(edi + 0x8); /* 0x3614AA8D: mov eax, dword ptr [edi + 8] */ 23515 PUSH32(esp, eax); /* 0x3614AA90: push eax */ 23516 ecx = esi; /* 0x3614AA91: mov ecx, esi */ 23517 RECOMP_ICALL(0x3614B680u); /* 0x3614AA93: call 0x3614b680 */ /* not lifted */ 23518 RECOMP_FLAGS_IN(); 23519 edi = MEM32(edi); /* 0x3614AA98: mov edi, dword ptr [edi] */ 23520 PUSH32(esp, 0); /* 0x3614AA9A: push 0 */ 23521 ecx = ebx + 0xC; /* 0x3614AA9C: lea ecx, [ebx + 0xc] */ 23522 RECOMP_ICALL(0x3614BBE0u); /* 0x3614AA9F: call 0x3614bbe0 */ /* not lifted */ 23523 RECOMP_FLAGS_IN(); 23524 PUSH32(esp, ebx); /* 0x3614AAA4: push ebx */ 23525 RECOMP_ICALL(0x3615FCC4u); /* 0x3614AAA5: call 0x3615fcc4 */ /* not lifted */ 23526 RECOMP_FLAGS_IN(); 23527 eax = MEM32(esi + 0x8); /* 0x3614AAAA: mov eax, dword ptr [esi + 8] */ 23528 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 23529 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23530 esp = esp + 4; /* 0x3614AAAD: add esp, 4 */ 23531 _flag_k = FK_ADD; 23532 /* cmp edi, eax */ /* 0x3614AAB0: cmp edi, eax */ 23533 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 23534 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23535 _flag_k = FK_CMP; 23536 ebx = edi; /* 0x3614AAB2: mov ebx, edi */ 23537 RECOMP_BACKEDGE(); 23538 if (CMP_NE(_flag_a, _flag_b)) goto L_3614AA8D; /* 0x3614AAB4: jne 0x3614aa8d */ 23539 L_3614AAB6: 23540 ecx = MEM32(esi + 0x4); /* 0x3614AAB6: mov ecx, dword ptr [esi + 4] */ 23541 edx = MEM32(esi + 0x8); /* 0x3614AAB9: mov edx, dword ptr [esi + 8] */ 23542 MEM32(ecx + 0x4) = edx; /* 0x3614AABC: mov dword ptr [ecx + 4], edx */ 23543 eax = MEM32(esi + 0x4); /* 0x3614AABF: mov eax, dword ptr [esi + 4] */ 23544 MEM32(esi + 0x10) = 0; /* 0x3614AAC2: mov dword ptr [esi + 0x10], 0 */ 23545 MEM32(eax) = eax; /* 0x3614AAC9: mov dword ptr [eax], eax */ 23546 eax = MEM32(esi + 0x4); /* 0x3614AACB: mov eax, dword ptr [esi + 4] */ 23547 MEM32(eax + 0x8) = eax; /* 0x3614AACE: mov dword ptr [eax + 8], eax */ 23548 eax = ebp + (-0x14); /* 0x3614AAD1: lea eax, [ebp - 0x14] */ 23549 PUSH32(esp, eax); /* 0x3614AAD4: push eax */ 23550 ecx = esi; /* 0x3614AAD5: mov ecx, esi */ 23551 RECOMP_ICALL(0x3614FC30u); /* 0x3614AAD7: call 0x3614fc30 */ /* not lifted */ 23552 RECOMP_FLAGS_IN(); 23553 goto L_3614AAFF; /* 0x3614AADC: jmp 0x3614aaff */ 23554 L_3614AADE: 23555 /* cmp eax, edi */ /* 0x3614AADE: cmp eax, edi */ 23556 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 23557 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23558 _flag_k = FK_CMP; 23559 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614AB01; /* 0x3614AAE0: je 0x3614ab01 */ 23560 L_3614AAE2: 23561 ecx = ebp + (-0x10); /* 0x3614AAE2: lea ecx, [ebp - 0x10] */ 23562 ebx = eax; /* 0x3614AAE5: mov ebx, eax */ 23563 RECOMP_ICALL(0x361458D0u); /* 0x3614AAE7: call 0x361458d0 */ /* not lifted */ 23564 RECOMP_FLAGS_IN(); 23565 PUSH32(esp, ebx); /* 0x3614AAEC: push ebx */ 23566 ecx = ebp + (-0x18); /* 0x3614AAED: lea ecx, [ebp - 0x18] */ 23567 PUSH32(esp, ecx); /* 0x3614AAF0: push ecx */ 23568 ecx = esi; /* 0x3614AAF1: mov ecx, esi */ 23569 RECOMP_ICALL(0x3614B2B0u); /* 0x3614AAF3: call 0x3614b2b0 */ /* not lifted */ 23570 RECOMP_FLAGS_IN(); 23571 eax = MEM32(ebp + (-0x10)); /* 0x3614AAF8: mov eax, dword ptr [ebp - 0x10] */ 23572 /* cmp eax, edi */ /* 0x3614AAFB: cmp eax, edi */ 23573 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 23574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23575 _flag_k = FK_CMP; 23576 RECOMP_BACKEDGE(); 23577 if (CMP_NE(_flag_a, _flag_b)) goto L_3614AAE2; /* 0x3614AAFD: jne 0x3614aae2 */ 23578 L_3614AAFF: 23579 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 23580 ebx = 0; /* 0x3614AAFF: xor ebx, ebx */ 23581 _cf = 0; 23582 _flag_k = FK_TEST; 23583 L_3614AB01: 23584 edx = MEM32(esi + 0x4); /* 0x3614AB01: mov edx, dword ptr [esi + 4] */ 23585 PUSH32(esp, edx); /* 0x3614AB04: push edx */ 23586 RECOMP_ICALL(0x3615FCC4u); /* 0x3614AB05: call 0x3615fcc4 */ /* not lifted */ 23587 RECOMP_FLAGS_IN(); 23588 eax = MEM32(esi + 0x8); /* 0x3614AB0A: mov eax, dword ptr [esi + 8] */ 23589 PUSH32(esp, eax); /* 0x3614AB0D: push eax */ 23590 MEM32(esi + 0x4) = ebx; /* 0x3614AB0E: mov dword ptr [esi + 4], ebx */ 23591 MEM32(esi + 0x10) = ebx; /* 0x3614AB11: mov dword ptr [esi + 0x10], ebx */ 23592 RECOMP_ICALL(0x3615FCC4u); /* 0x3614AB14: call 0x3615fcc4 */ /* not lifted */ 23593 RECOMP_FLAGS_IN(); 23594 ecx = MEM32(ebp + (-0xC)); /* 0x3614AB19: mov ecx, dword ptr [ebp - 0xc] */ 23595 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 23596 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23597 esp = esp + 8; /* 0x3614AB1C: add esp, 8 */ 23598 _flag_k = FK_ADD; 23599 MEM32(esi + 0x8) = ebx; /* 0x3614AB1F: mov dword ptr [esi + 8], ebx */ 23600 edi = POP32_VAL(esp); /* 0x3614AB22: pop edi */ 23601 esi = POP32_VAL(esp); /* 0x3614AB23: pop esi */ 23602 ebx = POP32_VAL(esp); /* 0x3614AB24: pop ebx */ 23603 MEM32(FS_BASE + (0)) = ecx; /* 0x3614AB25: mov dword ptr fs:[0], ecx */ 23604 esp = ebp; /* 0x3614AB2C: mov esp, ebp */ 23605 ebp = POP32_VAL(esp); /* 0x3614AB2E: pop ebp */ 23606 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614AB2F: ret */ 23607 RECOMP_REGS_OUT(); 23608 } 23609 23610 void sub_3614AB30(void) { 23611 int _fpu_cmp = 0; 23612 uint32_t _cf = 0; 23613 int _df = 1; 23614 uint32_t _flag_k = FK_NONE; 23615 uint32_t _flag_a = 0, _flag_b = 0; 23616 uint32_t _itail_tgt = 0; 23617 RECOMP_REGS_LOCALS 23618 RECOMP_ENTER(0x3614AB30u); 23619 23620 L_3614AB30: 23621 PUSH32(esp, ebp); /* 0x3614AB30: push ebp */ 23622 ebp = esp; /* 0x3614AB31: mov ebp, esp */ 23623 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 23624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23625 esp = esp - 8; /* 0x3614AB33: sub esp, 8 */ 23626 _flag_k = FK_CMP; 23627 PUSH32(esp, ebx); /* 0x3614AB36: push ebx */ 23628 PUSH32(esp, esi); /* 0x3614AB37: push esi */ 23629 esi = ecx; /* 0x3614AB38: mov esi, ecx */ 23630 ecx = MEM32(esi + 0x10); /* 0x3614AB3A: mov ecx, dword ptr [esi + 0x10] */ 23631 /* test ecx, ecx */ /* 0x3614AB3D: test ecx, ecx */ 23632 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 23633 _cf = 0; 23634 _flag_k = FK_TEST; 23635 PUSH32(esp, edi); /* 0x3614AB3F: push edi */ 23636 edi = MEM32(esi + 0x4); /* 0x3614AB40: mov edi, dword ptr [esi + 4] */ 23637 eax = MEM32(edi); /* 0x3614AB43: mov eax, dword ptr [edi] */ 23638 MEM32(ebp + (-0x4)) = eax; /* 0x3614AB45: mov dword ptr [ebp - 4], eax */ 23639 if (TEST_Z(_flag_a, _flag_b)) goto L_3614ABAF; /* 0x3614AB48: je 0x3614abaf */ 23640 L_3614AB4A: 23641 ecx = eax; /* 0x3614AB4A: mov ecx, eax */ 23642 /* cmp eax, ecx */ /* 0x3614AB4C: cmp eax, ecx */ 23643 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 23644 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23645 _flag_k = FK_CMP; 23646 if (CMP_NE(_flag_a, _flag_b)) goto L_3614ABAF; /* 0x3614AB4E: jne 0x3614abaf */ 23647 L_3614AB50: 23648 /* cmp edi, edi */ /* 0x3614AB50: cmp edi, edi */ 23649 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 23650 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23651 _flag_k = FK_CMP; 23652 if (CMP_NE(_flag_a, _flag_b)) goto L_3614ABAF; /* 0x3614AB52: jne 0x3614abaf */ 23653 L_3614AB54: 23654 ebx = MEM32(edi + 0x4); /* 0x3614AB54: mov ebx, dword ptr [edi + 4] */ 23655 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3614AB57: cmp ebx, dword ptr [esi + 8] */ 23656 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 23657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23658 _flag_k = FK_CMP; 23659 edi = ebx; /* 0x3614AB5A: mov edi, ebx */ 23660 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614AB87; /* 0x3614AB5C: je 0x3614ab87 */ 23661 L_3614AB5E: 23662 eax = MEM32(edi + 0x8); /* 0x3614AB5E: mov eax, dword ptr [edi + 8] */ 23663 PUSH32(esp, eax); /* 0x3614AB61: push eax */ 23664 ecx = esi; /* 0x3614AB62: mov ecx, esi */ 23665 RECOMP_ICALL(0x3614B680u); /* 0x3614AB64: call 0x3614b680 */ /* not lifted */ 23666 RECOMP_FLAGS_IN(); 23667 edi = MEM32(edi); /* 0x3614AB69: mov edi, dword ptr [edi] */ 23668 PUSH32(esp, 0); /* 0x3614AB6B: push 0 */ 23669 ecx = ebx + 0xC; /* 0x3614AB6D: lea ecx, [ebx + 0xc] */ 23670 RECOMP_ICALL(0x3614BBE0u); /* 0x3614AB70: call 0x3614bbe0 */ /* not lifted */ 23671 RECOMP_FLAGS_IN(); 23672 PUSH32(esp, ebx); /* 0x3614AB75: push ebx */ 23673 RECOMP_ICALL(0x3615FCC4u); /* 0x3614AB76: call 0x3615fcc4 */ /* not lifted */ 23674 RECOMP_FLAGS_IN(); 23675 eax = MEM32(esi + 0x8); /* 0x3614AB7B: mov eax, dword ptr [esi + 8] */ 23676 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 23677 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23678 esp = esp + 4; /* 0x3614AB7E: add esp, 4 */ 23679 _flag_k = FK_ADD; 23680 /* cmp edi, eax */ /* 0x3614AB81: cmp edi, eax */ 23681 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 23682 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23683 _flag_k = FK_CMP; 23684 ebx = edi; /* 0x3614AB83: mov ebx, edi */ 23685 RECOMP_BACKEDGE(); 23686 if (CMP_NE(_flag_a, _flag_b)) goto L_3614AB5E; /* 0x3614AB85: jne 0x3614ab5e */ 23687 L_3614AB87: 23688 ecx = MEM32(esi + 0x4); /* 0x3614AB87: mov ecx, dword ptr [esi + 4] */ 23689 edx = MEM32(esi + 0x8); /* 0x3614AB8A: mov edx, dword ptr [esi + 8] */ 23690 MEM32(ecx + 0x4) = edx; /* 0x3614AB8D: mov dword ptr [ecx + 4], edx */ 23691 eax = MEM32(esi + 0x4); /* 0x3614AB90: mov eax, dword ptr [esi + 4] */ 23692 MEM32(esi + 0x10) = 0; /* 0x3614AB93: mov dword ptr [esi + 0x10], 0 */ 23693 MEM32(eax) = eax; /* 0x3614AB9A: mov dword ptr [eax], eax */ 23694 eax = MEM32(esi + 0x4); /* 0x3614AB9C: mov eax, dword ptr [esi + 4] */ 23695 MEM32(eax + 0x8) = eax; /* 0x3614AB9F: mov dword ptr [eax + 8], eax */ 23696 eax = ebp + (-0x8); /* 0x3614ABA2: lea eax, [ebp - 8] */ 23697 PUSH32(esp, eax); /* 0x3614ABA5: push eax */ 23698 ecx = esi; /* 0x3614ABA6: mov ecx, esi */ 23699 RECOMP_ICALL(0x3614FC30u); /* 0x3614ABA8: call 0x3614fc30 */ /* not lifted */ 23700 RECOMP_FLAGS_IN(); 23701 goto L_3614ABD0; /* 0x3614ABAD: jmp 0x3614abd0 */ 23702 L_3614ABAF: 23703 /* cmp eax, edi */ /* 0x3614ABAF: cmp eax, edi */ 23704 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 23705 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23706 _flag_k = FK_CMP; 23707 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614ABD0; /* 0x3614ABB1: je 0x3614abd0 */ 23708 L_3614ABB3: 23709 ecx = ebp + (-0x4); /* 0x3614ABB3: lea ecx, [ebp - 4] */ 23710 ebx = eax; /* 0x3614ABB6: mov ebx, eax */ 23711 RECOMP_ICALL(0x361458D0u); /* 0x3614ABB8: call 0x361458d0 */ /* not lifted */ 23712 RECOMP_FLAGS_IN(); 23713 PUSH32(esp, ebx); /* 0x3614ABBD: push ebx */ 23714 ecx = ebp + (-0x8); /* 0x3614ABBE: lea ecx, [ebp - 8] */ 23715 PUSH32(esp, ecx); /* 0x3614ABC1: push ecx */ 23716 ecx = esi; /* 0x3614ABC2: mov ecx, esi */ 23717 RECOMP_ICALL(0x3614B2B0u); /* 0x3614ABC4: call 0x3614b2b0 */ /* not lifted */ 23718 RECOMP_FLAGS_IN(); 23719 eax = MEM32(ebp + (-0x4)); /* 0x3614ABC9: mov eax, dword ptr [ebp - 4] */ 23720 /* cmp eax, edi */ /* 0x3614ABCC: cmp eax, edi */ 23721 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 23722 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23723 _flag_k = FK_CMP; 23724 RECOMP_BACKEDGE(); 23725 if (CMP_NE(_flag_a, _flag_b)) goto L_3614ABB3; /* 0x3614ABCE: jne 0x3614abb3 */ 23726 L_3614ABD0: 23727 edx = MEM32(esi + 0x4); /* 0x3614ABD0: mov edx, dword ptr [esi + 4] */ 23728 PUSH32(esp, edx); /* 0x3614ABD3: push edx */ 23729 RECOMP_ICALL(0x3615FCC4u); /* 0x3614ABD4: call 0x3615fcc4 */ /* not lifted */ 23730 RECOMP_FLAGS_IN(); 23731 eax = MEM32(esi + 0x8); /* 0x3614ABD9: mov eax, dword ptr [esi + 8] */ 23732 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 23733 edi = 0; /* 0x3614ABDC: xor edi, edi */ 23734 _cf = 0; 23735 _flag_k = FK_TEST; 23736 PUSH32(esp, eax); /* 0x3614ABDE: push eax */ 23737 MEM32(esi + 0x4) = edi; /* 0x3614ABDF: mov dword ptr [esi + 4], edi */ 23738 MEM32(esi + 0x10) = edi; /* 0x3614ABE2: mov dword ptr [esi + 0x10], edi */ 23739 RECOMP_ICALL(0x3615FCC4u); /* 0x3614ABE5: call 0x3615fcc4 */ /* not lifted */ 23740 RECOMP_FLAGS_IN(); 23741 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 23742 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23743 esp = esp + 8; /* 0x3614ABEA: add esp, 8 */ 23744 _flag_k = FK_ADD; 23745 MEM32(esi + 0x8) = edi; /* 0x3614ABED: mov dword ptr [esi + 8], edi */ 23746 edi = POP32_VAL(esp); /* 0x3614ABF0: pop edi */ 23747 esi = POP32_VAL(esp); /* 0x3614ABF1: pop esi */ 23748 ebx = POP32_VAL(esp); /* 0x3614ABF2: pop ebx */ 23749 esp = ebp; /* 0x3614ABF3: mov esp, ebp */ 23750 ebp = POP32_VAL(esp); /* 0x3614ABF5: pop ebp */ 23751 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614ABF6: ret */ 23752 RECOMP_REGS_OUT(); 23753 } 23754 23755 void sub_3614ABD0(void) { 23756 int _fpu_cmp = 0; 23757 uint32_t _cf = 0; 23758 int _df = 1; 23759 uint32_t _flag_k = FK_NONE; 23760 uint32_t _flag_a = 0, _flag_b = 0; 23761 uint32_t _itail_tgt = 0; 23762 RECOMP_REGS_LOCALS 23763 RECOMP_ENTER(0x3614ABD0u); 23764 23765 L_3614ABD0: 23766 edx = MEM32(esi + 0x4); /* 0x3614ABD0: mov edx, dword ptr [esi + 4] */ 23767 PUSH32(esp, edx); /* 0x3614ABD3: push edx */ 23768 RECOMP_ICALL(0x3615FCC4u); /* 0x3614ABD4: call 0x3615fcc4 */ /* not lifted */ 23769 RECOMP_FLAGS_IN(); 23770 eax = MEM32(esi + 0x8); /* 0x3614ABD9: mov eax, dword ptr [esi + 8] */ 23771 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 23772 edi = 0; /* 0x3614ABDC: xor edi, edi */ 23773 _cf = 0; 23774 _flag_k = FK_TEST; 23775 PUSH32(esp, eax); /* 0x3614ABDE: push eax */ 23776 MEM32(esi + 0x4) = edi; /* 0x3614ABDF: mov dword ptr [esi + 4], edi */ 23777 MEM32(esi + 0x10) = edi; /* 0x3614ABE2: mov dword ptr [esi + 0x10], edi */ 23778 RECOMP_ICALL(0x3615FCC4u); /* 0x3614ABE5: call 0x3615fcc4 */ /* not lifted */ 23779 RECOMP_FLAGS_IN(); 23780 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 23781 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23782 esp = esp + 8; /* 0x3614ABEA: add esp, 8 */ 23783 _flag_k = FK_ADD; 23784 MEM32(esi + 0x8) = edi; /* 0x3614ABED: mov dword ptr [esi + 8], edi */ 23785 edi = POP32_VAL(esp); /* 0x3614ABF0: pop edi */ 23786 esi = POP32_VAL(esp); /* 0x3614ABF1: pop esi */ 23787 ebx = POP32_VAL(esp); /* 0x3614ABF2: pop ebx */ 23788 esp = ebp; /* 0x3614ABF3: mov esp, ebp */ 23789 ebp = POP32_VAL(esp); /* 0x3614ABF5: pop ebp */ 23790 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614ABF6: ret */ 23791 RECOMP_REGS_OUT(); 23792 } 23793 23794 void sub_3614AC00(void) { 23795 int _fpu_cmp = 0; 23796 uint32_t _cf = 0; 23797 int _df = 1; 23798 uint32_t _flag_k = FK_NONE; 23799 uint32_t _flag_a = 0, _flag_b = 0; 23800 uint32_t _itail_tgt = 0; 23801 RECOMP_REGS_LOCALS 23802 RECOMP_ENTER(0x3614AC00u); 23803 23804 L_3614AC00: 23805 PUSH32(esp, ebp); /* 0x3614AC00: push ebp */ 23806 ebp = esp; /* 0x3614AC01: mov ebp, esp */ 23807 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 23808 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23809 esp = esp - 0x14u; /* 0x3614AC03: sub esp, 0x14 */ 23810 _flag_k = FK_CMP; 23811 eax = MEM32(ebp + 0x8); /* 0x3614AC06: mov eax, dword ptr [ebp + 8] */ 23812 eax = MEM32(eax + 0x4); /* 0x3614AC09: mov eax, dword ptr [eax + 4] */ 23813 PUSH32(esp, ebx); /* 0x3614AC0C: push ebx */ 23814 PUSH32(esp, esi); /* 0x3614AC0D: push esi */ 23815 PUSH32(esp, edi); /* 0x3614AC0E: push edi */ 23816 edi = ecx; /* 0x3614AC0F: mov edi, ecx */ 23817 ecx = MEM32(eax + 0x4C); /* 0x3614AC11: mov ecx, dword ptr [eax + 0x4c] */ 23818 edx = ebp + (-0x4); /* 0x3614AC14: lea edx, [ebp - 4] */ 23819 MEM32(ebp + (-0x4)) = eax; /* 0x3614AC17: mov dword ptr [ebp - 4], eax */ 23820 PUSH32(esp, edx); /* 0x3614AC1A: push edx */ 23821 eax = ebp + (-0xC); /* 0x3614AC1B: lea eax, [ebp - 0xc] */ 23822 MEM32(ebp + 0x8) = ecx; /* 0x3614AC1E: mov dword ptr [ebp + 8], ecx */ 23823 esi = edi + 0x8; /* 0x3614AC21: lea esi, [edi + 8] */ 23824 PUSH32(esp, eax); /* 0x3614AC24: push eax */ 23825 ecx = esi; /* 0x3614AC25: mov ecx, esi */ 23826 RECOMP_ICALL(0x360943D0u); /* 0x3614AC27: call 0x360943d0 */ /* not lifted */ 23827 RECOMP_FLAGS_IN(); 23828 ebx = MEM32(eax); /* 0x3614AC2C: mov ebx, dword ptr [eax] */ 23829 ecx = ebp + (-0x10); /* 0x3614AC2E: lea ecx, [ebp - 0x10] */ 23830 PUSH32(esp, ecx); /* 0x3614AC31: push ecx */ 23831 ecx = esi; /* 0x3614AC32: mov ecx, esi */ 23832 MEM32(ebp + (-0x8)) = ebx; /* 0x3614AC34: mov dword ptr [ebp - 8], ebx */ 23833 RECOMP_ICALL(0x360C5CB0u); /* 0x3614AC37: call 0x360c5cb0 */ /* not lifted */ 23834 RECOMP_FLAGS_IN(); 23835 /* cmp ebx, MEM32(eax) */ /* 0x3614AC3C: cmp ebx, dword ptr [eax] */ 23836 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax)); 23837 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23838 _flag_k = FK_CMP; 23839 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614AC4D; /* 0x3614AC3E: je 0x3614ac4d */ 23840 L_3614AC40: 23841 edx = MEM32(ebp + (-0x4)); /* 0x3614AC40: mov edx, dword ptr [ebp - 4] */ 23842 /* cmp edx, MEM32(ebx + 0xC) */ /* 0x3614AC43: cmp edx, dword ptr [ebx + 0xc] */ 23843 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebx + 0xC)); 23844 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23845 _flag_k = FK_CMP; 23846 if (CMP_B(_flag_a, _flag_b)) goto L_3614AC4D; /* 0x3614AC46: jb 0x3614ac4d */ 23847 L_3614AC48: 23848 eax = ebp + (-0x8); /* 0x3614AC48: lea eax, [ebp - 8] */ 23849 goto L_3614AC58; /* 0x3614AC4B: jmp 0x3614ac58 */ 23850 L_3614AC4D: 23851 eax = ebp + (-0x14); /* 0x3614AC4D: lea eax, [ebp - 0x14] */ 23852 PUSH32(esp, eax); /* 0x3614AC50: push eax */ 23853 ecx = esi; /* 0x3614AC51: mov ecx, esi */ 23854 RECOMP_ICALL(0x360C5CB0u); /* 0x3614AC53: call 0x360c5cb0 */ /* not lifted */ 23855 RECOMP_FLAGS_IN(); 23856 L_3614AC58: 23857 ecx = MEM32(eax); /* 0x3614AC58: mov ecx, dword ptr [eax] */ 23858 edi = MEM32(edi + 0xC); /* 0x3614AC5A: mov edi, dword ptr [edi + 0xc] */ 23859 /* cmp ecx, edi */ /* 0x3614AC5D: cmp ecx, edi */ 23860 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 23861 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23862 _flag_k = FK_CMP; 23863 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614AC99; /* 0x3614AC5F: je 0x3614ac99 */ 23864 L_3614AC61: 23865 eax = MEM32(ecx + 0x14); /* 0x3614AC61: mov eax, dword ptr [ecx + 0x14] */ 23866 ecx = MEM32(ecx + 0x18); /* 0x3614AC64: mov ecx, dword ptr [ecx + 0x18] */ 23867 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 23868 SET_LO8(edx, 0); /* 0x3614AC67: xor dl, dl */ 23869 _cf = 0; 23870 _flag_k = FK_NARROW(FK_TEST, 24); 23871 /* cmp ecx, eax */ /* 0x3614AC69: cmp ecx, eax */ 23872 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 23873 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23874 _flag_k = FK_CMP; 23875 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614AC99; /* 0x3614AC6B: je 0x3614ac99 */ 23876 L_3614AC6D: 23877 ebx = 1; /* 0x3614AC6D: mov ebx, 1 */ 23878 L_3614AC72: 23879 /* test LO8(edx), LO8(edx) */ /* 0x3614AC72: test dl, dl */ 23880 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 23881 _cf = 0; 23882 _flag_k = FK_NARROW(FK_TEST, 24); 23883 if (TEST_Z(_flag_a, _flag_b)) goto L_3614AC7B; /* 0x3614AC74: je 0x3614ac7b */ 23884 L_3614AC76: 23885 /* cmp MEM32(eax + 0x14), ebx */ /* 0x3614AC76: cmp dword ptr [eax + 0x14], ebx */ 23886 _flag_a = (uint32_t)(MEM32(eax + 0x14)); _flag_b = (uint32_t)(ebx); 23887 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23888 _flag_k = FK_CMP; 23889 if (CMP_NE(_flag_a, _flag_b)) goto L_3614AC92; /* 0x3614AC79: jne 0x3614ac92 */ 23890 L_3614AC7B: 23891 /* cmp MEM32(eax + 0x14), ebx */ /* 0x3614AC7B: cmp dword ptr [eax + 0x14], ebx */ 23892 _flag_a = (uint32_t)(MEM32(eax + 0x14)); _flag_b = (uint32_t)(ebx); 23893 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23894 _flag_k = FK_CMP; 23895 if (CMP_NE(_flag_a, _flag_b)) goto L_3614AC82; /* 0x3614AC7E: jne 0x3614ac82 */ 23896 L_3614AC80: 23897 SET_LO8(edx, LO8(ebx)); /* 0x3614AC80: mov dl, bl */ 23898 L_3614AC82: 23899 /* cmp MEM32(eax + 0x18), ebx */ /* 0x3614AC82: cmp dword ptr [eax + 0x18], ebx */ 23900 _flag_a = (uint32_t)(MEM32(eax + 0x18)); _flag_b = (uint32_t)(ebx); 23901 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23902 _flag_k = FK_CMP; 23903 esi = MEM32(eax + 0x1C); /* 0x3614AC85: mov esi, dword ptr [eax + 0x1c] */ 23904 if (CMP_NE(_flag_a, _flag_b)) goto L_3614AC8F; /* 0x3614AC88: jne 0x3614ac8f */ 23905 L_3614AC8A: 23906 MEM32(ebp + 0x8) = esi; /* 0x3614AC8A: mov dword ptr [ebp + 8], esi */ 23907 goto L_3614AC92; /* 0x3614AC8D: jmp 0x3614ac92 */ 23908 L_3614AC8F: 23909 _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(esi); 23910 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23911 MEM32(ebp + 0x8) = MEM32(ebp + 0x8) + esi; /* 0x3614AC8F: add dword ptr [ebp + 8], esi */ 23912 _flag_k = FK_ADD; 23913 L_3614AC92: 23914 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u); 23915 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23916 eax = eax + 0x24u; /* 0x3614AC92: add eax, 0x24 */ 23917 _flag_k = FK_ADD; 23918 /* cmp eax, ecx */ /* 0x3614AC95: cmp eax, ecx */ 23919 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 23920 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23921 _flag_k = FK_CMP; 23922 RECOMP_BACKEDGE(); 23923 if (CMP_NE(_flag_a, _flag_b)) goto L_3614AC72; /* 0x3614AC97: jne 0x3614ac72 */ 23924 L_3614AC99: 23925 eax = MEM32(ebp + 0x8); /* 0x3614AC99: mov eax, dword ptr [ebp + 8] */ 23926 /* test eax, eax */ /* 0x3614AC9C: test eax, eax */ 23927 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 23928 _cf = 0; 23929 _flag_k = FK_TEST; 23930 edi = POP32_VAL(esp); /* 0x3614AC9E: pop edi */ 23931 esi = POP32_VAL(esp); /* 0x3614AC9F: pop esi */ 23932 ebx = POP32_VAL(esp); /* 0x3614ACA0: pop ebx */ 23933 if (TEST_S(_flag_a, _flag_b)) goto L_3614ACAE; /* 0x3614ACA1: jl 0x3614acae */ 23934 L_3614ACA3: 23935 /* cmp eax, 4 */ /* 0x3614ACA3: cmp eax, 4 */ 23936 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 23937 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23938 _flag_k = FK_CMP; 23939 if (CMP_G(_flag_a, _flag_b)) goto L_3614ACB3; /* 0x3614ACA6: jg 0x3614acb3 */ 23940 L_3614ACA8: 23941 esp = ebp; /* 0x3614ACA8: mov esp, ebp */ 23942 ebp = POP32_VAL(esp); /* 0x3614ACAA: pop ebp */ 23943 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614ACAB: ret 4 */ 23944 L_3614ACAE: 23945 /* cmp eax, 4 */ /* 0x3614ACAE: cmp eax, 4 */ 23946 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 23947 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23948 _flag_k = FK_CMP; 23949 if (CMP_LE(_flag_a, _flag_b)) goto L_3614ACBE; /* 0x3614ACB1: jle 0x3614acbe */ 23950 L_3614ACB3: 23951 eax = 4; /* 0x3614ACB3: mov eax, 4 */ 23952 esp = ebp; /* 0x3614ACB8: mov esp, ebp */ 23953 ebp = POP32_VAL(esp); /* 0x3614ACBA: pop ebp */ 23954 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614ACBB: ret 4 */ 23955 L_3614ACBE: 23956 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 23957 eax = 0; /* 0x3614ACBE: xor eax, eax */ 23958 _cf = 0; 23959 _flag_k = FK_TEST; 23960 esp = ebp; /* 0x3614ACC0: mov esp, ebp */ 23961 ebp = POP32_VAL(esp); /* 0x3614ACC2: pop ebp */ 23962 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614ACC3: ret 4 */ 23963 RECOMP_REGS_OUT(); 23964 } 23965 23966 void sub_3614ACD0(void) { 23967 int _fpu_cmp = 0; 23968 uint32_t _cf = 0; 23969 int _df = 1; 23970 uint32_t _flag_k = FK_NONE; 23971 uint32_t _flag_a = 0, _flag_b = 0; 23972 uint32_t _itail_tgt = 0; 23973 RECOMP_REGS_LOCALS 23974 RECOMP_ENTER(0x3614ACD0u); 23975 23976 L_3614ACD0: 23977 PUSH32(esp, ebp); /* 0x3614ACD0: push ebp */ 23978 ebp = esp; /* 0x3614ACD1: mov ebp, esp */ 23979 PUSH32(esp, 0xFFFFFFFFu); /* 0x3614ACD3: push -1 */ 23980 PUSH32(esp, 0x3616D188u); /* 0x3614ACD5: push 0x3616d188 */ 23981 eax = MEM32(FS_BASE + (0)); /* 0x3614ACDA: mov eax, dword ptr fs:[0] */ 23982 PUSH32(esp, eax); /* 0x3614ACE0: push eax */ 23983 MEM32(FS_BASE + (0)) = esp; /* 0x3614ACE1: mov dword ptr fs:[0], esp */ 23984 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x68u); 23985 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23986 esp = esp - 0x68u; /* 0x3614ACE8: sub esp, 0x68 */ 23987 _flag_k = FK_CMP; 23988 PUSH32(esp, ebx); /* 0x3614ACEB: push ebx */ 23989 PUSH32(esp, esi); /* 0x3614ACEC: push esi */ 23990 esi = MEM32(ebp + 0x8); /* 0x3614ACED: mov esi, dword ptr [ebp + 8] */ 23991 ebx = ecx; /* 0x3614ACF0: mov ebx, ecx */ 23992 PUSH32(esp, edi); /* 0x3614ACF2: push edi */ 23993 ecx = esi; /* 0x3614ACF3: mov ecx, esi */ 23994 MEM32(ebp + (-0x10)) = ebx; /* 0x3614ACF5: mov dword ptr [ebp - 0x10], ebx */ 23995 RECOMP_ICALL(0x3614A670u); /* 0x3614ACF8: call 0x3614a670 */ /* not lifted */ 23996 RECOMP_FLAGS_IN(); 23997 /* test LO8(eax), LO8(eax) */ /* 0x3614ACFD: test al, al */ 23998 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 23999 _cf = 0; 24000 _flag_k = FK_NARROW(FK_TEST, 24); 24001 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614AD16; /* 0x3614ACFF: jne 0x3614ad16 */ 24002 L_3614AD01: 24003 edi = POP32_VAL(esp); /* 0x3614AD01: pop edi */ 24004 esi = POP32_VAL(esp); /* 0x3614AD02: pop esi */ 24005 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 24006 eax = 0; /* 0x3614AD03: xor eax, eax */ 24007 _cf = 0; 24008 _flag_k = FK_TEST; 24009 ebx = POP32_VAL(esp); /* 0x3614AD05: pop ebx */ 24010 ecx = MEM32(ebp + (-0xC)); /* 0x3614AD06: mov ecx, dword ptr [ebp - 0xc] */ 24011 MEM32(FS_BASE + (0)) = ecx; /* 0x3614AD09: mov dword ptr fs:[0], ecx */ 24012 esp = ebp; /* 0x3614AD10: mov esp, ebp */ 24013 ebp = POP32_VAL(esp); /* 0x3614AD12: pop ebp */ 24014 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614AD13: ret 4 */ 24015 L_3614AD16: 24016 ecx = MEM32(ebx); /* 0x3614AD16: mov ecx, dword ptr [ebx] */ 24017 edi = esi + 0x4; /* 0x3614AD18: lea edi, [esi + 4] */ 24018 PUSH32(esp, edi); /* 0x3614AD1B: push edi */ 24019 RECOMP_ICALL(0x3614ECF0u); /* 0x3614AD1C: call 0x3614ecf0 */ /* not lifted */ 24020 RECOMP_FLAGS_IN(); 24021 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 24022 ebx = 0; /* 0x3614AD21: xor ebx, ebx */ 24023 _cf = 0; 24024 _flag_k = FK_TEST; 24025 /* cmp eax, ebx */ /* 0x3614AD23: cmp eax, ebx */ 24026 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 24027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24028 _flag_k = FK_CMP; 24029 if (CMP_NE(_flag_a, _flag_b)) goto L_3614AD61; /* 0x3614AD25: jne 0x3614ad61 */ 24030 L_3614AD27: 24031 eax = MEM32(ebp + (-0x10)); /* 0x3614AD27: mov eax, dword ptr [ebp - 0x10] */ 24032 edi = MEM32(edi + 0x4); /* 0x3614AD2A: mov edi, dword ptr [edi + 4] */ 24033 /* cmp edi, ebx */ /* 0x3614AD2D: cmp edi, ebx */ 24034 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 24035 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24036 _flag_k = FK_CMP; 24037 ecx = MEM32(eax); /* 0x3614AD2F: mov ecx, dword ptr [eax] */ 24038 eax = MEM32(ecx + 0x8); /* 0x3614AD31: mov eax, dword ptr [ecx + 8] */ 24039 if (CMP_NE(_flag_a, _flag_b)) goto L_3614AD3C; /* 0x3614AD34: jne 0x3614ad3c */ 24040 L_3614AD36: 24041 edi = MEM32(0x3616F10C); /* 0x3614AD36: mov edi, dword ptr [0x3616f10c] */ 24042 L_3614AD3C: 24043 PUSH32(esp, eax); /* 0x3614AD3C: push eax */ 24044 PUSH32(esp, edi); /* 0x3614AD3D: push edi */ 24045 PUSH32(esp, 0x362E7820u); /* 0x3614AD3E: push 0x362e7820 */ 24046 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x3614AD43: call dword ptr [0x3616f18c] */ 24047 RECOMP_FLAGS_IN(); 24048 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 24049 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24050 esp = esp + 0xCu; /* 0x3614AD49: add esp, 0xc */ 24051 _flag_k = FK_ADD; 24052 edi = POP32_VAL(esp); /* 0x3614AD4C: pop edi */ 24053 esi = POP32_VAL(esp); /* 0x3614AD4D: pop esi */ 24054 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 24055 eax = 0; /* 0x3614AD4E: xor eax, eax */ 24056 _cf = 0; 24057 _flag_k = FK_TEST; 24058 ebx = POP32_VAL(esp); /* 0x3614AD50: pop ebx */ 24059 ecx = MEM32(ebp + (-0xC)); /* 0x3614AD51: mov ecx, dword ptr [ebp - 0xc] */ 24060 MEM32(FS_BASE + (0)) = ecx; /* 0x3614AD54: mov dword ptr fs:[0], ecx */ 24061 esp = ebp; /* 0x3614AD5B: mov esp, ebp */ 24062 ebp = POP32_VAL(esp); /* 0x3614AD5D: pop ebp */ 24063 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614AD5E: ret 4 */ 24064 L_3614AD61: 24065 edx = MEM32(eax + 0x4); /* 0x3614AD61: mov edx, dword ptr [eax + 4] */ 24066 eax = MEM32(esi); /* 0x3614AD64: mov eax, dword ptr [esi] */ 24067 SET_LO8(ecx, MEM8(edi)); /* 0x3614AD66: mov cl, byte ptr [edi] */ 24068 MEM32(ebp + 0x8) = edx; /* 0x3614AD68: mov dword ptr [ebp + 8], edx */ 24069 edx = MEM32(0x3616F010); /* 0x3614AD6B: mov edx, dword ptr [0x3616f010] */ 24070 MEM8(ebp + (-0x70)) = (uint8_t)(LO8(ecx)); /* 0x3614AD71: mov byte ptr [ebp - 0x70], cl */ 24071 MEM32(ebp + (-0x74)) = eax; /* 0x3614AD74: mov dword ptr [ebp - 0x74], eax */ 24072 MEM32(ebp + (-0x6C)) = ebx; /* 0x3614AD77: mov dword ptr [ebp - 0x6c], ebx */ 24073 MEM32(ebp + (-0x68)) = ebx; /* 0x3614AD7A: mov dword ptr [ebp - 0x68], ebx */ 24074 MEM32(ebp + (-0x64)) = ebx; /* 0x3614AD7D: mov dword ptr [ebp - 0x64], ebx */ 24075 eax = MEM32(edx); /* 0x3614AD80: mov eax, dword ptr [edx] */ 24076 PUSH32(esp, eax); /* 0x3614AD82: push eax */ 24077 PUSH32(esp, ebx); /* 0x3614AD83: push ebx */ 24078 PUSH32(esp, edi); /* 0x3614AD84: push edi */ 24079 ecx = ebp + (-0x70); /* 0x3614AD85: lea ecx, [ebp - 0x70] */ 24080 RECOMP_ICALL(MEM32(0x3616F024)); /* 0x3614AD88: call dword ptr [0x3616f024] */ 24081 RECOMP_FLAGS_IN(); 24082 ecx = MEM32(esi + 0x14); /* 0x3614AD8E: mov ecx, dword ptr [esi + 0x14] */ 24083 edx = MEM32(esi + 0x18); /* 0x3614AD91: mov edx, dword ptr [esi + 0x18] */ 24084 eax = MEM32(esi + 0x1C); /* 0x3614AD94: mov eax, dword ptr [esi + 0x1c] */ 24085 MEM32(ebp + (-0x60)) = ecx; /* 0x3614AD97: mov dword ptr [ebp - 0x60], ecx */ 24086 SET_LO8(ecx, MEM8(esi + 0x20)); /* 0x3614AD9A: mov cl, byte ptr [esi + 0x20] */ 24087 MEM32(ebp + (-0x5C)) = edx; /* 0x3614AD9D: mov dword ptr [ebp - 0x5c], edx */ 24088 MEM32(ebp + (-0x58)) = eax; /* 0x3614ADA0: mov dword ptr [ebp - 0x58], eax */ 24089 MEM8(ebp + (-0x54)) = (uint8_t)(LO8(ecx)); /* 0x3614ADA3: mov byte ptr [ebp - 0x54], cl */ 24090 /* cmp MEM32(ebp + (-0x74)), ebx */ /* 0x3614ADA6: cmp dword ptr [ebp - 0x74], ebx */ 24091 _flag_a = (uint32_t)(MEM32(ebp + (-0x74))); _flag_b = (uint32_t)(ebx); 24092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24093 _flag_k = FK_CMP; 24094 MEM32(ebp + (-0x4)) = ebx; /* 0x3614ADA9: mov dword ptr [ebp - 4], ebx */ 24095 if (CMP_NE(_flag_a, _flag_b)) goto L_3614ADB9; /* 0x3614ADAC: jne 0x3614adb9 */ 24096 L_3614ADAE: 24097 ecx = MEM32(ebp + (-0x10)); /* 0x3614ADAE: mov ecx, dword ptr [ebp - 0x10] */ 24098 RECOMP_ICALL(0x3614AFB0u); /* 0x3614ADB1: call 0x3614afb0 */ /* not lifted */ 24099 RECOMP_FLAGS_IN(); 24100 MEM32(ebp + (-0x74)) = eax; /* 0x3614ADB6: mov dword ptr [ebp - 0x74], eax */ 24101 L_3614ADB9: 24102 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x3614ADB9: mov dl, byte ptr [ebp + 0xb] */ 24103 MEM8(ebp + (-0x3C)) = (uint8_t)(LO8(edx)); /* 0x3614ADBC: mov byte ptr [ebp - 0x3c], dl */ 24104 MEM32(ebp + (-0x38)) = ebx; /* 0x3614ADBF: mov dword ptr [ebp - 0x38], ebx */ 24105 MEM32(ebp + (-0x34)) = ebx; /* 0x3614ADC2: mov dword ptr [ebp - 0x34], ebx */ 24106 MEM32(ebp + (-0x30)) = ebx; /* 0x3614ADC5: mov dword ptr [ebp - 0x30], ebx */ 24107 eax = MEM32(ebp + 0x8); /* 0x3614ADC8: mov eax, dword ptr [ebp + 8] */ 24108 ecx = ebp + (-0x3C); /* 0x3614ADCB: lea ecx, [ebp - 0x3c] */ 24109 PUSH32(esp, ecx); /* 0x3614ADCE: push ecx */ 24110 ecx = ebp + (-0x4C); /* 0x3614ADCF: lea ecx, [ebp - 0x4c] */ 24111 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3614ADD2: mov byte ptr [ebp - 4], 1 */ 24112 MEM32(ebp + (-0x50)) = eax; /* 0x3614ADD6: mov dword ptr [ebp - 0x50], eax */ 24113 RECOMP_ICALL(0x3614B6F0u); /* 0x3614ADD9: call 0x3614b6f0 */ /* not lifted */ 24114 RECOMP_FLAGS_IN(); 24115 ecx = MEM32(ebp + (-0x10)); /* 0x3614ADDE: mov ecx, dword ptr [ebp - 0x10] */ 24116 edx = ebp + (-0x50); /* 0x3614ADE1: lea edx, [ebp - 0x50] */ 24117 PUSH32(esp, edx); /* 0x3614ADE4: push edx */ 24118 eax = ebp + (-0x24); /* 0x3614ADE5: lea eax, [ebp - 0x24] */ 24119 PUSH32(esp, eax); /* 0x3614ADE8: push eax */ 24120 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 24121 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24122 ecx = ecx + 8; /* 0x3614ADE9: add ecx, 8 */ 24123 _flag_k = FK_ADD; 24124 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3614ADEC: mov byte ptr [ebp - 4], 2 */ 24125 RECOMP_ICALL(0x3614B060u); /* 0x3614ADF0: call 0x3614b060 */ /* not lifted */ 24126 RECOMP_FLAGS_IN(); 24127 edx = MEM32(eax); /* 0x3614ADF5: mov edx, dword ptr [eax] */ 24128 MEM32(ebp + (-0x1C)) = edx; /* 0x3614ADF7: mov dword ptr [ebp - 0x1c], edx */ 24129 eax = MEM32(eax + 0x4); /* 0x3614ADFA: mov eax, dword ptr [eax + 4] */ 24130 ecx = ebp + (-0x18); /* 0x3614ADFD: lea ecx, [ebp - 0x18] */ 24131 PUSH32(esp, ecx); /* 0x3614AE00: push ecx */ 24132 edx = ebp + (-0x1C); /* 0x3614AE01: lea edx, [ebp - 0x1c] */ 24133 PUSH32(esp, edx); /* 0x3614AE04: push edx */ 24134 ecx = ebp + (-0x2C); /* 0x3614AE05: lea ecx, [ebp - 0x2c] */ 24135 MEM32(ebp + (-0x18)) = eax; /* 0x3614AE08: mov dword ptr [ebp - 0x18], eax */ 24136 RECOMP_ICALL(0x3614FCB0u); /* 0x3614AE0B: call 0x3614fcb0 */ /* not lifted */ 24137 RECOMP_FLAGS_IN(); 24138 esi = MEM32(eax); /* 0x3614AE10: mov esi, dword ptr [eax] */ 24139 eax = MEM32(eax + 0x4); /* 0x3614AE12: mov eax, dword ptr [eax + 4] */ 24140 ecx = ebp + (-0x4C); /* 0x3614AE15: lea ecx, [ebp - 0x4c] */ 24141 MEM32(ebp + (-0x10)) = eax; /* 0x3614AE18: mov dword ptr [ebp - 0x10], eax */ 24142 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3614AE1B: mov byte ptr [ebp - 4], 1 */ 24143 RECOMP_ICALL(0x36144FC0u); /* 0x3614AE1F: call 0x36144fc0 */ /* not lifted */ 24144 RECOMP_FLAGS_IN(); 24145 ecx = ebp + (-0x3C); /* 0x3614AE24: lea ecx, [ebp - 0x3c] */ 24146 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3614AE27: mov byte ptr [ebp - 4], bl */ 24147 RECOMP_ICALL(0x36144FC0u); /* 0x3614AE2A: call 0x36144fc0 */ /* not lifted */ 24148 RECOMP_FLAGS_IN(); 24149 eax = MEM32(esi + 0x18); /* 0x3614AE2F: mov eax, dword ptr [esi + 0x18] */ 24150 edx = ebp + (-0x74); /* 0x3614AE32: lea edx, [ebp - 0x74] */ 24151 PUSH32(esp, edx); /* 0x3614AE35: push edx */ 24152 ecx = esi + 0x10; /* 0x3614AE36: lea ecx, [esi + 0x10] */ 24153 PUSH32(esp, 1); /* 0x3614AE39: push 1 */ 24154 PUSH32(esp, eax); /* 0x3614AE3B: push eax */ 24155 RECOMP_ICALL(0x36145150u); /* 0x3614AE3C: call 0x36145150 */ /* not lifted */ 24156 RECOMP_FLAGS_IN(); 24157 eax = MEM32(ebp + (-0x6C)); /* 0x3614AE41: mov eax, dword ptr [ebp - 0x6c] */ 24158 /* cmp eax, ebx */ /* 0x3614AE44: cmp eax, ebx */ 24159 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 24160 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24161 _flag_k = FK_CMP; 24162 esi = MEM32(ebp + (-0x74)); /* 0x3614AE46: mov esi, dword ptr [ebp - 0x74] */ 24163 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614AE67; /* 0x3614AE49: je 0x3614ae67 */ 24164 L_3614AE4B: 24165 ecx = eax + (-0x1); /* 0x3614AE4B: lea ecx, [eax - 1] */ 24166 SET_LO8(eax, MEM8(ecx)); /* 0x3614AE4E: mov al, byte ptr [ecx] */ 24167 /* cmp LO8(eax), LO8(ebx) */ /* 0x3614AE50: cmp al, bl */ 24168 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 24169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24170 _flag_k = FK_NARROW(FK_CMP, 24); 24171 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614AE5E; /* 0x3614AE52: je 0x3614ae5e */ 24172 L_3614AE54: 24173 /* cmp LO8(eax), 0xFFu */ /* 0x3614AE54: cmp al, 0xff */ 24174 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 24175 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24176 _flag_k = FK_NARROW(FK_CMP, 24); 24177 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614AE5E; /* 0x3614AE56: je 0x3614ae5e */ 24178 L_3614AE58: 24179 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 24180 SET_LO8(eax, LO8(eax) - 1); /* 0x3614AE58: dec al */ 24181 _flag_k = FK_NARROW(FK_DEC, 24); 24182 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3614AE5A: mov byte ptr [ecx], al */ 24183 goto L_3614AE67; /* 0x3614AE5C: jmp 0x3614ae67 */ 24184 L_3614AE5E: 24185 PUSH32(esp, ecx); /* 0x3614AE5E: push ecx */ 24186 RECOMP_ICALL(0x3615FCC4u); /* 0x3614AE5F: call 0x3615fcc4 */ /* not lifted */ 24187 RECOMP_FLAGS_IN(); 24188 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 24189 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24190 esp = esp + 4; /* 0x3614AE64: add esp, 4 */ 24191 _flag_k = FK_ADD; 24192 L_3614AE67: 24193 ecx = MEM32(ebp + (-0xC)); /* 0x3614AE67: mov ecx, dword ptr [ebp - 0xc] */ 24194 edi = POP32_VAL(esp); /* 0x3614AE6A: pop edi */ 24195 eax = esi; /* 0x3614AE6B: mov eax, esi */ 24196 esi = POP32_VAL(esp); /* 0x3614AE6D: pop esi */ 24197 ebx = POP32_VAL(esp); /* 0x3614AE6E: pop ebx */ 24198 MEM32(FS_BASE + (0)) = ecx; /* 0x3614AE6F: mov dword ptr fs:[0], ecx */ 24199 esp = ebp; /* 0x3614AE76: mov esp, ebp */ 24200 ebp = POP32_VAL(esp); /* 0x3614AE78: pop ebp */ 24201 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614AE79: ret 4 */ 24202 RECOMP_REGS_OUT(); 24203 } 24204 24205 void sub_3614AE80(void) { 24206 int _fpu_cmp = 0; 24207 uint32_t _cf = 0; 24208 int _df = 1; 24209 uint32_t _flag_k = FK_NONE; 24210 uint32_t _flag_a = 0, _flag_b = 0; 24211 uint32_t _itail_tgt = 0; 24212 RECOMP_REGS_LOCALS 24213 RECOMP_ENTER(0x3614AE80u); 24214 24215 L_3614AE80: 24216 PUSH32(esp, ebp); /* 0x3614AE80: push ebp */ 24217 ebp = esp; /* 0x3614AE81: mov ebp, esp */ 24218 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 24219 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24220 esp = esp - 0xCu; /* 0x3614AE83: sub esp, 0xc */ 24221 _flag_k = FK_CMP; 24222 PUSH32(esp, edi); /* 0x3614AE86: push edi */ 24223 edi = MEM32(ebp + 0x8); /* 0x3614AE87: mov edi, dword ptr [ebp + 8] */ 24224 /* test edi, edi */ /* 0x3614AE8A: test edi, edi */ 24225 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 24226 _cf = 0; 24227 _flag_k = FK_TEST; 24228 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614AE97; /* 0x3614AE8C: jne 0x3614ae97 */ 24229 L_3614AE8E: 24230 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 24231 SET_LO8(eax, 0); /* 0x3614AE8E: xor al, al */ 24232 _cf = 0; 24233 _flag_k = FK_NARROW(FK_TEST, 24); 24234 edi = POP32_VAL(esp); /* 0x3614AE90: pop edi */ 24235 esp = ebp; /* 0x3614AE91: mov esp, ebp */ 24236 ebp = POP32_VAL(esp); /* 0x3614AE93: pop ebp */ 24237 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614AE94: ret 4 */ 24238 L_3614AE97: 24239 PUSH32(esp, esi); /* 0x3614AE97: push esi */ 24240 esi = MEM32(ecx + 0xC); /* 0x3614AE98: mov esi, dword ptr [ecx + 0xc] */ 24241 ecx = MEM32(esi); /* 0x3614AE9B: mov ecx, dword ptr [esi] */ 24242 /* cmp esi, ecx */ /* 0x3614AE9D: cmp esi, ecx */ 24243 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 24244 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24245 _flag_k = FK_CMP; 24246 MEM8(ebp + (-0x1)) = (uint8_t)(0); /* 0x3614AE9F: mov byte ptr [ebp - 1], 0 */ 24247 MEM32(ebp + (-0xC)) = esi; /* 0x3614AEA3: mov dword ptr [ebp - 0xc], esi */ 24248 MEM32(ebp + (-0x8)) = ecx; /* 0x3614AEA6: mov dword ptr [ebp - 8], ecx */ 24249 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614AF88; /* 0x3614AEA9: je 0x3614af88 */ 24250 L_3614AEAF: 24251 PUSH32(esp, ebx); /* 0x3614AEAF: push ebx */ 24252 L_3614AEB0: 24253 eax = MEM32(ecx + 0x14); /* 0x3614AEB0: mov eax, dword ptr [ecx + 0x14] */ 24254 ebx = MEM32(ecx + 0x18); /* 0x3614AEB3: mov ebx, dword ptr [ecx + 0x18] */ 24255 /* cmp ebx, eax */ /* 0x3614AEB6: cmp ebx, eax */ 24256 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 24257 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24258 _flag_k = FK_CMP; 24259 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614AF44; /* 0x3614AEB8: je 0x3614af44 */ 24260 L_3614AEBE: 24261 /* cmp MEM32(eax), edi */ /* 0x3614AEBE: cmp dword ptr [eax], edi */ 24262 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(edi); 24263 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24264 _flag_k = FK_CMP; 24265 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614AECB; /* 0x3614AEC0: je 0x3614aecb */ 24266 L_3614AEC2: 24267 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u); 24268 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24269 eax = eax + 0x24u; /* 0x3614AEC2: add eax, 0x24 */ 24270 _flag_k = FK_ADD; 24271 /* cmp ebx, eax */ /* 0x3614AEC5: cmp ebx, eax */ 24272 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 24273 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24274 _flag_k = FK_CMP; 24275 RECOMP_BACKEDGE(); 24276 if (CMP_NE(_flag_a, _flag_b)) goto L_3614AEBE; /* 0x3614AEC7: jne 0x3614aebe */ 24277 L_3614AEC9: 24278 goto L_3614AF44; /* 0x3614AEC9: jmp 0x3614af44 */ 24279 L_3614AECB: 24280 edi = eax + 0x24; /* 0x3614AECB: lea edi, [eax + 0x24] */ 24281 /* cmp edi, ebx */ /* 0x3614AECE: cmp edi, ebx */ 24282 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 24283 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24284 _flag_k = FK_CMP; 24285 MEM8(ebp + (-0x1)) = (uint8_t)(1); /* 0x3614AED0: mov byte ptr [ebp - 1], 1 */ 24286 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614AF1A; /* 0x3614AED4: je 0x3614af1a */ 24287 L_3614AED6: 24288 esi = edi + (-0x10); /* 0x3614AED6: lea esi, [edi - 0x10] */ 24289 L_3614AED9: 24290 eax = MEM32(edi); /* 0x3614AED9: mov eax, dword ptr [edi] */ 24291 MEM32(esi + (-0x14)) = eax; /* 0x3614AEDB: mov dword ptr [esi - 0x14], eax */ 24292 ecx = MEM32(0x3616F010); /* 0x3614AEDE: mov ecx, dword ptr [0x3616f010] */ 24293 edx = MEM32(ecx); /* 0x3614AEE4: mov edx, dword ptr [ecx] */ 24294 PUSH32(esp, edx); /* 0x3614AEE6: push edx */ 24295 PUSH32(esp, 0); /* 0x3614AEE7: push 0 */ 24296 eax = esi + 0x14; /* 0x3614AEE9: lea eax, [esi + 0x14] */ 24297 PUSH32(esp, eax); /* 0x3614AEEC: push eax */ 24298 ecx = esi + (-0x10); /* 0x3614AEED: lea ecx, [esi - 0x10] */ 24299 RECOMP_ICALL(MEM32(0x3616F024)); /* 0x3614AEF0: call dword ptr [0x3616f024] */ 24300 RECOMP_FLAGS_IN(); 24301 ecx = MEM32(esi + 0x24); /* 0x3614AEF6: mov ecx, dword ptr [esi + 0x24] */ 24302 MEM32(esi) = ecx; /* 0x3614AEF9: mov dword ptr [esi], ecx */ 24303 edx = MEM32(esi + 0x28); /* 0x3614AEFB: mov edx, dword ptr [esi + 0x28] */ 24304 MEM32(esi + 0x4) = edx; /* 0x3614AEFE: mov dword ptr [esi + 4], edx */ 24305 eax = MEM32(esi + 0x2C); /* 0x3614AF01: mov eax, dword ptr [esi + 0x2c] */ 24306 MEM32(esi + 0x8) = eax; /* 0x3614AF04: mov dword ptr [esi + 8], eax */ 24307 SET_LO8(ecx, MEM8(esi + 0x30)); /* 0x3614AF07: mov cl, byte ptr [esi + 0x30] */ 24308 MEM8(esi + 0xC) = (uint8_t)(LO8(ecx)); /* 0x3614AF0A: mov byte ptr [esi + 0xc], cl */ 24309 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x24u); 24310 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24311 edi = edi + 0x24u; /* 0x3614AF0D: add edi, 0x24 */ 24312 _flag_k = FK_ADD; 24313 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 24314 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24315 esi = esi + 0x24u; /* 0x3614AF10: add esi, 0x24 */ 24316 _flag_k = FK_ADD; 24317 /* cmp edi, ebx */ /* 0x3614AF13: cmp edi, ebx */ 24318 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 24319 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24320 _flag_k = FK_CMP; 24321 RECOMP_BACKEDGE(); 24322 if (CMP_NE(_flag_a, _flag_b)) goto L_3614AED9; /* 0x3614AF15: jne 0x3614aed9 */ 24323 L_3614AF17: 24324 ecx = MEM32(ebp + (-0x8)); /* 0x3614AF17: mov ecx, dword ptr [ebp - 8] */ 24325 L_3614AF1A: 24326 edi = MEM32(ecx + 0x18); /* 0x3614AF1A: mov edi, dword ptr [ecx + 0x18] */ 24327 esi = edi + (-0x24); /* 0x3614AF1D: lea esi, [edi - 0x24] */ 24328 /* cmp esi, edi */ /* 0x3614AF20: cmp esi, edi */ 24329 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 24330 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24331 _flag_k = FK_CMP; 24332 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614AF35; /* 0x3614AF22: je 0x3614af35 */ 24333 L_3614AF24: 24334 ecx = esi; /* 0x3614AF24: mov ecx, esi */ 24335 RECOMP_ICALL(0x36145B40u); /* 0x3614AF26: call 0x36145b40 */ /* not lifted */ 24336 RECOMP_FLAGS_IN(); 24337 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 24338 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24339 esi = esi + 0x24u; /* 0x3614AF2B: add esi, 0x24 */ 24340 _flag_k = FK_ADD; 24341 /* cmp esi, edi */ /* 0x3614AF2E: cmp esi, edi */ 24342 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 24343 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24344 _flag_k = FK_CMP; 24345 RECOMP_BACKEDGE(); 24346 if (CMP_NE(_flag_a, _flag_b)) goto L_3614AF24; /* 0x3614AF30: jne 0x3614af24 */ 24347 L_3614AF32: 24348 ecx = MEM32(ebp + (-0x8)); /* 0x3614AF32: mov ecx, dword ptr [ebp - 8] */ 24349 L_3614AF35: 24350 eax = MEM32(ecx + 0x18); /* 0x3614AF35: mov eax, dword ptr [ecx + 0x18] */ 24351 edi = MEM32(ebp + 0x8); /* 0x3614AF38: mov edi, dword ptr [ebp + 8] */ 24352 esi = MEM32(ebp + (-0xC)); /* 0x3614AF3B: mov esi, dword ptr [ebp - 0xc] */ 24353 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFDCu); 24354 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24355 eax = eax + 0xFFFFFFDCu; /* 0x3614AF3E: add eax, -0x24 */ 24356 _flag_k = FK_ADD; 24357 MEM32(ecx + 0x18) = eax; /* 0x3614AF41: mov dword ptr [ecx + 0x18], eax */ 24358 L_3614AF44: 24359 eax = MEM32(ecx + 0x8); /* 0x3614AF44: mov eax, dword ptr [ecx + 8] */ 24360 SET_LO8(edx, MEM8(eax + 0x21)); /* 0x3614AF47: mov dl, byte ptr [eax + 0x21] */ 24361 /* test LO8(edx), LO8(edx) */ /* 0x3614AF4A: test dl, dl */ 24362 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 24363 _cf = 0; 24364 _flag_k = FK_NARROW(FK_TEST, 24); 24365 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614AF59; /* 0x3614AF4C: jne 0x3614af59 */ 24366 L_3614AF4E: 24367 PUSH32(esp, eax); /* 0x3614AF4E: push eax */ 24368 RECOMP_ICALL(0x3614B6D0u); /* 0x3614AF4F: call 0x3614b6d0 */ /* not lifted */ 24369 RECOMP_FLAGS_IN(); 24370 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 24371 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24372 esp = esp + 4; /* 0x3614AF54: add esp, 4 */ 24373 _flag_k = FK_ADD; 24374 goto L_3614AF73; /* 0x3614AF57: jmp 0x3614af73 */ 24375 L_3614AF59: 24376 eax = MEM32(ecx + 0x4); /* 0x3614AF59: mov eax, dword ptr [ecx + 4] */ 24377 /* cmp ecx, MEM32(eax + 0x8) */ /* 0x3614AF5C: cmp ecx, dword ptr [eax + 8] */ 24378 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 24379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24380 _flag_k = FK_CMP; 24381 if (CMP_NE(_flag_a, _flag_b)) goto L_3614AF6E; /* 0x3614AF5F: jne 0x3614af6e */ 24382 L_3614AF61: 24383 ecx = eax; /* 0x3614AF61: mov ecx, eax */ 24384 eax = MEM32(eax + 0x4); /* 0x3614AF63: mov eax, dword ptr [eax + 4] */ 24385 /* cmp ecx, MEM32(eax + 0x8) */ /* 0x3614AF66: cmp ecx, dword ptr [eax + 8] */ 24386 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 24387 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24388 _flag_k = FK_CMP; 24389 MEM32(ebp + (-0x8)) = ecx; /* 0x3614AF69: mov dword ptr [ebp - 8], ecx */ 24390 RECOMP_BACKEDGE(); 24391 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614AF61; /* 0x3614AF6C: je 0x3614af61 */ 24392 L_3614AF6E: 24393 /* cmp MEM32(ecx + 0x8), eax */ /* 0x3614AF6E: cmp dword ptr [ecx + 8], eax */ 24394 _flag_a = (uint32_t)(MEM32(ecx + 0x8)); _flag_b = (uint32_t)(eax); 24395 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24396 _flag_k = FK_CMP; 24397 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614AF78; /* 0x3614AF71: je 0x3614af78 */ 24398 L_3614AF73: 24399 MEM32(ebp + (-0x8)) = eax; /* 0x3614AF73: mov dword ptr [ebp - 8], eax */ 24400 ecx = eax; /* 0x3614AF76: mov ecx, eax */ 24401 L_3614AF78: 24402 /* cmp esi, ecx */ /* 0x3614AF78: cmp esi, ecx */ 24403 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 24404 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24405 _flag_k = FK_CMP; 24406 RECOMP_BACKEDGE(); 24407 if (CMP_NE(_flag_a, _flag_b)) goto L_3614AEB0; /* 0x3614AF7A: jne 0x3614aeb0 */ 24408 L_3614AF80: 24409 SET_LO8(eax, MEM8(ebp + (-0x1))); /* 0x3614AF80: mov al, byte ptr [ebp - 1] */ 24410 /* test LO8(eax), LO8(eax) */ /* 0x3614AF83: test al, al */ 24411 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 24412 _cf = 0; 24413 _flag_k = FK_NARROW(FK_TEST, 24); 24414 ebx = POP32_VAL(esp); /* 0x3614AF85: pop ebx */ 24415 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614AF97; /* 0x3614AF86: jne 0x3614af97 */ 24416 L_3614AF88: 24417 PUSH32(esp, edi); /* 0x3614AF88: push edi */ 24418 PUSH32(esp, 0x362E7870u); /* 0x3614AF89: push 0x362e7870 */ 24419 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x3614AF8E: call dword ptr [0x3616f18c] */ 24420 RECOMP_FLAGS_IN(); 24421 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 24422 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24423 esp = esp + 8; /* 0x3614AF94: add esp, 8 */ 24424 _flag_k = FK_ADD; 24425 L_3614AF97: 24426 SET_LO8(eax, MEM8(ebp + (-0x1))); /* 0x3614AF97: mov al, byte ptr [ebp - 1] */ 24427 esi = POP32_VAL(esp); /* 0x3614AF9A: pop esi */ 24428 edi = POP32_VAL(esp); /* 0x3614AF9B: pop edi */ 24429 esp = ebp; /* 0x3614AF9C: mov esp, ebp */ 24430 ebp = POP32_VAL(esp); /* 0x3614AF9E: pop ebp */ 24431 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614AF9F: ret 4 */ 24432 RECOMP_REGS_OUT(); 24433 } 24434 24435 void sub_3614AFB0(void) { 24436 int _fpu_cmp = 0; 24437 uint32_t _cf = 0; 24438 int _df = 1; 24439 uint32_t _flag_k = FK_NONE; 24440 uint32_t _flag_a = 0, _flag_b = 0; 24441 uint32_t _itail_tgt = 0; 24442 RECOMP_REGS_LOCALS 24443 RECOMP_ENTER(0x3614AFB0u); 24444 24445 L_3614AFB0: 24446 eax = MEM32(ecx + 0x4); /* 0x3614AFB0: mov eax, dword ptr [ecx + 4] */ 24447 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 24448 eax = eax + 1; /* 0x3614AFB3: inc eax */ 24449 _flag_k = FK_INC; 24450 MEM32(ecx + 0x4) = eax; /* 0x3614AFB4: mov dword ptr [ecx + 4], eax */ 24451 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614AFB7: ret */ 24452 RECOMP_REGS_OUT(); 24453 } 24454 24455 void sub_3614AFC0(void) { 24456 int _fpu_cmp = 0; 24457 uint32_t _cf = 0; 24458 int _df = 1; 24459 uint32_t _flag_k = FK_NONE; 24460 uint32_t _flag_a = 0, _flag_b = 0; 24461 uint32_t _itail_tgt = 0; 24462 RECOMP_REGS_LOCALS 24463 RECOMP_ENTER(0x3614AFC0u); 24464 24465 L_3614AFC0: 24466 PUSH32(esp, ebp); /* 0x3614AFC0: push ebp */ 24467 ebp = esp; /* 0x3614AFC1: mov ebp, esp */ 24468 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 24469 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24470 esp = esp - 8; /* 0x3614AFC3: sub esp, 8 */ 24471 _flag_k = FK_CMP; 24472 PUSH32(esp, ebx); /* 0x3614AFC6: push ebx */ 24473 PUSH32(esp, edi); /* 0x3614AFC7: push edi */ 24474 edi = ecx; /* 0x3614AFC8: mov edi, ecx */ 24475 eax = MEM32(edi + 0xC); /* 0x3614AFCA: mov eax, dword ptr [edi + 0xc] */ 24476 ebx = MEM32(edi + 0x8); /* 0x3614AFCD: mov ebx, dword ptr [edi + 8] */ 24477 /* cmp ebx, eax */ /* 0x3614AFD0: cmp ebx, eax */ 24478 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 24479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24480 _flag_k = FK_CMP; 24481 MEM32(ebp + (-0x4)) = edi; /* 0x3614AFD2: mov dword ptr [ebp - 4], edi */ 24482 MEM32(ebp + (-0x8)) = eax; /* 0x3614AFD5: mov dword ptr [ebp - 8], eax */ 24483 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B041; /* 0x3614AFD8: je 0x3614b041 */ 24484 L_3614AFDA: 24485 PUSH32(esp, esi); /* 0x3614AFDA: push esi */ 24486 esi = ebx + 0x8; /* 0x3614AFDB: lea esi, [ebx + 8] */ 24487 L_3614AFDE: 24488 eax = MEM32(esi); /* 0x3614AFDE: mov eax, dword ptr [esi] */ 24489 /* test eax, eax */ /* 0x3614AFE0: test eax, eax */ 24490 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 24491 _cf = 0; 24492 _flag_k = FK_TEST; 24493 if (TEST_Z(_flag_a, _flag_b)) goto L_3614B029; /* 0x3614AFE2: je 0x3614b029 */ 24494 L_3614AFE4: 24495 edi = esi + (-0x4); /* 0x3614AFE4: lea edi, [esi - 4] */ 24496 PUSH32(esp, eax); /* 0x3614AFE7: push eax */ 24497 ecx = edi; /* 0x3614AFE8: mov ecx, edi */ 24498 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x3614AFEA: call dword ptr [0x3616f158] */ 24499 RECOMP_FLAGS_IN(); 24500 /* cmp MEM8(eax), 0 */ /* 0x3614AFF0: cmp byte ptr [eax], 0 */ 24501 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0) << 24; 24502 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24503 _flag_k = FK_NARROW(FK_CMP, 24); 24504 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B014; /* 0x3614AFF3: je 0x3614b014 */ 24505 L_3614AFF5: 24506 eax = MEM32(esi); /* 0x3614AFF5: mov eax, dword ptr [esi] */ 24507 PUSH32(esp, eax); /* 0x3614AFF7: push eax */ 24508 ecx = edi; /* 0x3614AFF8: mov ecx, edi */ 24509 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x3614AFFA: call dword ptr [0x3616f158] */ 24510 RECOMP_FLAGS_IN(); 24511 /* cmp MEM8(eax), 0xFFu */ /* 0x3614B000: cmp byte ptr [eax], 0xff */ 24512 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 24513 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24514 _flag_k = FK_NARROW(FK_CMP, 24); 24515 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B014; /* 0x3614B003: je 0x3614b014 */ 24516 L_3614B005: 24517 ecx = MEM32(esi); /* 0x3614B005: mov ecx, dword ptr [esi] */ 24518 PUSH32(esp, ecx); /* 0x3614B007: push ecx */ 24519 ecx = edi; /* 0x3614B008: mov ecx, edi */ 24520 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x3614B00A: call dword ptr [0x3616f158] */ 24521 RECOMP_FLAGS_IN(); 24522 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 24523 MEM8(eax) = (uint8_t)(MEM8(eax) - 1); /* 0x3614B010: dec byte ptr [eax] */ 24524 _flag_k = FK_NARROW(FK_DEC, 24); 24525 goto L_3614B026; /* 0x3614B012: jmp 0x3614b026 */ 24526 L_3614B014: 24527 edx = MEM32(esi + 0x8); /* 0x3614B014: mov edx, dword ptr [esi + 8] */ 24528 eax = MEM32(esi); /* 0x3614B017: mov eax, dword ptr [esi] */ 24529 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 24530 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24531 edx = edx + 2; /* 0x3614B019: add edx, 2 */ 24532 _flag_k = FK_ADD; 24533 PUSH32(esp, edx); /* 0x3614B01C: push edx */ 24534 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 24535 eax = eax - 1; /* 0x3614B01D: dec eax */ 24536 _flag_k = FK_DEC; 24537 PUSH32(esp, eax); /* 0x3614B01E: push eax */ 24538 ecx = edi; /* 0x3614B01F: mov ecx, edi */ 24539 RECOMP_ICALL(0x36029840u); /* 0x3614B021: call 0x36029840 */ /* not lifted */ 24540 RECOMP_FLAGS_IN(); 24541 L_3614B026: 24542 edi = MEM32(ebp + (-0x4)); /* 0x3614B026: mov edi, dword ptr [ebp - 4] */ 24543 L_3614B029: 24544 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 24545 eax = 0; /* 0x3614B029: xor eax, eax */ 24546 _cf = 0; 24547 _flag_k = FK_TEST; 24548 MEM32(esi) = eax; /* 0x3614B02B: mov dword ptr [esi], eax */ 24549 MEM32(esi + 0x4) = eax; /* 0x3614B02D: mov dword ptr [esi + 4], eax */ 24550 MEM32(esi + 0x8) = eax; /* 0x3614B030: mov dword ptr [esi + 8], eax */ 24551 eax = MEM32(ebp + (-0x8)); /* 0x3614B033: mov eax, dword ptr [ebp - 8] */ 24552 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x24u); 24553 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24554 ebx = ebx + 0x24u; /* 0x3614B036: add ebx, 0x24 */ 24555 _flag_k = FK_ADD; 24556 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 24557 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24558 esi = esi + 0x24u; /* 0x3614B039: add esi, 0x24 */ 24559 _flag_k = FK_ADD; 24560 /* cmp ebx, eax */ /* 0x3614B03C: cmp ebx, eax */ 24561 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 24562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24563 _flag_k = FK_CMP; 24564 RECOMP_BACKEDGE(); 24565 if (CMP_NE(_flag_a, _flag_b)) goto L_3614AFDE; /* 0x3614B03E: jne 0x3614afde */ 24566 L_3614B040: 24567 esi = POP32_VAL(esp); /* 0x3614B040: pop esi */ 24568 L_3614B041: 24569 ecx = MEM32(edi + 0x8); /* 0x3614B041: mov ecx, dword ptr [edi + 8] */ 24570 PUSH32(esp, ecx); /* 0x3614B044: push ecx */ 24571 RECOMP_ICALL(0x3615FCC4u); /* 0x3614B045: call 0x3615fcc4 */ /* not lifted */ 24572 RECOMP_FLAGS_IN(); 24573 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 24574 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24575 esp = esp + 4; /* 0x3614B04A: add esp, 4 */ 24576 _flag_k = FK_ADD; 24577 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 24578 eax = 0; /* 0x3614B04D: xor eax, eax */ 24579 _cf = 0; 24580 _flag_k = FK_TEST; 24581 MEM32(edi + 0x8) = eax; /* 0x3614B04F: mov dword ptr [edi + 8], eax */ 24582 MEM32(edi + 0xC) = eax; /* 0x3614B052: mov dword ptr [edi + 0xc], eax */ 24583 MEM32(edi + 0x10) = eax; /* 0x3614B055: mov dword ptr [edi + 0x10], eax */ 24584 edi = POP32_VAL(esp); /* 0x3614B058: pop edi */ 24585 ebx = POP32_VAL(esp); /* 0x3614B059: pop ebx */ 24586 esp = ebp; /* 0x3614B05A: mov esp, ebp */ 24587 ebp = POP32_VAL(esp); /* 0x3614B05C: pop ebp */ 24588 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614B05D: ret */ 24589 RECOMP_REGS_OUT(); 24590 } 24591 24592 void sub_3614AFDE(void) { 24593 int _fpu_cmp = 0; 24594 uint32_t _cf = 0; 24595 int _df = 1; 24596 uint32_t _flag_k = FK_NONE; 24597 uint32_t _flag_a = 0, _flag_b = 0; 24598 uint32_t _itail_tgt = 0; 24599 RECOMP_REGS_LOCALS 24600 RECOMP_ENTER(0x3614AFDEu); 24601 24602 L_3614AFDE: 24603 eax = MEM32(esi); /* 0x3614AFDE: mov eax, dword ptr [esi] */ 24604 /* test eax, eax */ /* 0x3614AFE0: test eax, eax */ 24605 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 24606 _cf = 0; 24607 _flag_k = FK_TEST; 24608 if (TEST_Z(_flag_a, _flag_b)) goto L_3614B029; /* 0x3614AFE2: je 0x3614b029 */ 24609 L_3614AFE4: 24610 edi = esi + (-0x4); /* 0x3614AFE4: lea edi, [esi - 4] */ 24611 PUSH32(esp, eax); /* 0x3614AFE7: push eax */ 24612 ecx = edi; /* 0x3614AFE8: mov ecx, edi */ 24613 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x3614AFEA: call dword ptr [0x3616f158] */ 24614 RECOMP_FLAGS_IN(); 24615 /* cmp MEM8(eax), 0 */ /* 0x3614AFF0: cmp byte ptr [eax], 0 */ 24616 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0) << 24; 24617 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24618 _flag_k = FK_NARROW(FK_CMP, 24); 24619 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B014; /* 0x3614AFF3: je 0x3614b014 */ 24620 L_3614AFF5: 24621 eax = MEM32(esi); /* 0x3614AFF5: mov eax, dword ptr [esi] */ 24622 PUSH32(esp, eax); /* 0x3614AFF7: push eax */ 24623 ecx = edi; /* 0x3614AFF8: mov ecx, edi */ 24624 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x3614AFFA: call dword ptr [0x3616f158] */ 24625 RECOMP_FLAGS_IN(); 24626 /* cmp MEM8(eax), 0xFFu */ /* 0x3614B000: cmp byte ptr [eax], 0xff */ 24627 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 24628 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24629 _flag_k = FK_NARROW(FK_CMP, 24); 24630 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B014; /* 0x3614B003: je 0x3614b014 */ 24631 L_3614B005: 24632 ecx = MEM32(esi); /* 0x3614B005: mov ecx, dword ptr [esi] */ 24633 PUSH32(esp, ecx); /* 0x3614B007: push ecx */ 24634 ecx = edi; /* 0x3614B008: mov ecx, edi */ 24635 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x3614B00A: call dword ptr [0x3616f158] */ 24636 RECOMP_FLAGS_IN(); 24637 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 24638 MEM8(eax) = (uint8_t)(MEM8(eax) - 1); /* 0x3614B010: dec byte ptr [eax] */ 24639 _flag_k = FK_NARROW(FK_DEC, 24); 24640 goto L_3614B026; /* 0x3614B012: jmp 0x3614b026 */ 24641 L_3614B014: 24642 edx = MEM32(esi + 0x8); /* 0x3614B014: mov edx, dword ptr [esi + 8] */ 24643 eax = MEM32(esi); /* 0x3614B017: mov eax, dword ptr [esi] */ 24644 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 24645 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24646 edx = edx + 2; /* 0x3614B019: add edx, 2 */ 24647 _flag_k = FK_ADD; 24648 PUSH32(esp, edx); /* 0x3614B01C: push edx */ 24649 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 24650 eax = eax - 1; /* 0x3614B01D: dec eax */ 24651 _flag_k = FK_DEC; 24652 PUSH32(esp, eax); /* 0x3614B01E: push eax */ 24653 ecx = edi; /* 0x3614B01F: mov ecx, edi */ 24654 RECOMP_ICALL(0x36029840u); /* 0x3614B021: call 0x36029840 */ /* not lifted */ 24655 RECOMP_FLAGS_IN(); 24656 L_3614B026: 24657 edi = MEM32(ebp + (-0x4)); /* 0x3614B026: mov edi, dword ptr [ebp - 4] */ 24658 L_3614B029: 24659 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 24660 eax = 0; /* 0x3614B029: xor eax, eax */ 24661 _cf = 0; 24662 _flag_k = FK_TEST; 24663 MEM32(esi) = eax; /* 0x3614B02B: mov dword ptr [esi], eax */ 24664 MEM32(esi + 0x4) = eax; /* 0x3614B02D: mov dword ptr [esi + 4], eax */ 24665 MEM32(esi + 0x8) = eax; /* 0x3614B030: mov dword ptr [esi + 8], eax */ 24666 eax = MEM32(ebp + (-0x8)); /* 0x3614B033: mov eax, dword ptr [ebp - 8] */ 24667 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x24u); 24668 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24669 ebx = ebx + 0x24u; /* 0x3614B036: add ebx, 0x24 */ 24670 _flag_k = FK_ADD; 24671 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 24672 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24673 esi = esi + 0x24u; /* 0x3614B039: add esi, 0x24 */ 24674 _flag_k = FK_ADD; 24675 /* cmp ebx, eax */ /* 0x3614B03C: cmp ebx, eax */ 24676 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 24677 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24678 _flag_k = FK_CMP; 24679 RECOMP_BACKEDGE(); 24680 if (CMP_NE(_flag_a, _flag_b)) goto L_3614AFDE; /* 0x3614B03E: jne 0x3614afde */ 24681 L_3614B040: 24682 esi = POP32_VAL(esp); /* 0x3614B040: pop esi */ 24683 ecx = MEM32(edi + 0x8); /* 0x3614B041: mov ecx, dword ptr [edi + 8] */ 24684 PUSH32(esp, ecx); /* 0x3614B044: push ecx */ 24685 RECOMP_ICALL(0x3615FCC4u); /* 0x3614B045: call 0x3615fcc4 */ /* not lifted */ 24686 RECOMP_FLAGS_IN(); 24687 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 24688 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24689 esp = esp + 4; /* 0x3614B04A: add esp, 4 */ 24690 _flag_k = FK_ADD; 24691 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 24692 eax = 0; /* 0x3614B04D: xor eax, eax */ 24693 _cf = 0; 24694 _flag_k = FK_TEST; 24695 MEM32(edi + 0x8) = eax; /* 0x3614B04F: mov dword ptr [edi + 8], eax */ 24696 MEM32(edi + 0xC) = eax; /* 0x3614B052: mov dword ptr [edi + 0xc], eax */ 24697 MEM32(edi + 0x10) = eax; /* 0x3614B055: mov dword ptr [edi + 0x10], eax */ 24698 edi = POP32_VAL(esp); /* 0x3614B058: pop edi */ 24699 ebx = POP32_VAL(esp); /* 0x3614B059: pop ebx */ 24700 esp = ebp; /* 0x3614B05A: mov esp, ebp */ 24701 ebp = POP32_VAL(esp); /* 0x3614B05C: pop ebp */ 24702 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614B05D: ret */ 24703 RECOMP_REGS_OUT(); 24704 } 24705 24706 void sub_3614B026(void) { 24707 int _fpu_cmp = 0; 24708 uint32_t _cf = 0; 24709 int _df = 1; 24710 uint32_t _flag_k = FK_NONE; 24711 uint32_t _flag_a = 0, _flag_b = 0; 24712 uint32_t _itail_tgt = 0; 24713 RECOMP_REGS_LOCALS 24714 RECOMP_ENTER(0x3614B026u); 24715 24716 goto L_3614B026; 24717 L_3614AFDE: 24718 eax = MEM32(esi); /* 0x3614AFDE: mov eax, dword ptr [esi] */ 24719 /* test eax, eax */ /* 0x3614AFE0: test eax, eax */ 24720 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 24721 _cf = 0; 24722 _flag_k = FK_TEST; 24723 if (TEST_Z(_flag_a, _flag_b)) goto L_3614B029; /* 0x3614AFE2: je 0x3614b029 */ 24724 L_3614AFE4: 24725 edi = esi + (-0x4); /* 0x3614AFE4: lea edi, [esi - 4] */ 24726 PUSH32(esp, eax); /* 0x3614AFE7: push eax */ 24727 ecx = edi; /* 0x3614AFE8: mov ecx, edi */ 24728 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x3614AFEA: call dword ptr [0x3616f158] */ 24729 RECOMP_FLAGS_IN(); 24730 /* cmp MEM8(eax), 0 */ /* 0x3614AFF0: cmp byte ptr [eax], 0 */ 24731 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0) << 24; 24732 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24733 _flag_k = FK_NARROW(FK_CMP, 24); 24734 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B014; /* 0x3614AFF3: je 0x3614b014 */ 24735 L_3614AFF5: 24736 eax = MEM32(esi); /* 0x3614AFF5: mov eax, dword ptr [esi] */ 24737 PUSH32(esp, eax); /* 0x3614AFF7: push eax */ 24738 ecx = edi; /* 0x3614AFF8: mov ecx, edi */ 24739 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x3614AFFA: call dword ptr [0x3616f158] */ 24740 RECOMP_FLAGS_IN(); 24741 /* cmp MEM8(eax), 0xFFu */ /* 0x3614B000: cmp byte ptr [eax], 0xff */ 24742 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 24743 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24744 _flag_k = FK_NARROW(FK_CMP, 24); 24745 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B014; /* 0x3614B003: je 0x3614b014 */ 24746 L_3614B005: 24747 ecx = MEM32(esi); /* 0x3614B005: mov ecx, dword ptr [esi] */ 24748 PUSH32(esp, ecx); /* 0x3614B007: push ecx */ 24749 ecx = edi; /* 0x3614B008: mov ecx, edi */ 24750 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x3614B00A: call dword ptr [0x3616f158] */ 24751 RECOMP_FLAGS_IN(); 24752 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 24753 MEM8(eax) = (uint8_t)(MEM8(eax) - 1); /* 0x3614B010: dec byte ptr [eax] */ 24754 _flag_k = FK_NARROW(FK_DEC, 24); 24755 goto L_3614B026; /* 0x3614B012: jmp 0x3614b026 */ 24756 L_3614B014: 24757 edx = MEM32(esi + 0x8); /* 0x3614B014: mov edx, dword ptr [esi + 8] */ 24758 eax = MEM32(esi); /* 0x3614B017: mov eax, dword ptr [esi] */ 24759 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 24760 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24761 edx = edx + 2; /* 0x3614B019: add edx, 2 */ 24762 _flag_k = FK_ADD; 24763 PUSH32(esp, edx); /* 0x3614B01C: push edx */ 24764 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 24765 eax = eax - 1; /* 0x3614B01D: dec eax */ 24766 _flag_k = FK_DEC; 24767 PUSH32(esp, eax); /* 0x3614B01E: push eax */ 24768 ecx = edi; /* 0x3614B01F: mov ecx, edi */ 24769 RECOMP_ICALL(0x36029840u); /* 0x3614B021: call 0x36029840 */ /* not lifted */ 24770 RECOMP_FLAGS_IN(); 24771 L_3614B026: 24772 edi = MEM32(ebp + (-0x4)); /* 0x3614B026: mov edi, dword ptr [ebp - 4] */ 24773 L_3614B029: 24774 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 24775 eax = 0; /* 0x3614B029: xor eax, eax */ 24776 _cf = 0; 24777 _flag_k = FK_TEST; 24778 MEM32(esi) = eax; /* 0x3614B02B: mov dword ptr [esi], eax */ 24779 MEM32(esi + 0x4) = eax; /* 0x3614B02D: mov dword ptr [esi + 4], eax */ 24780 MEM32(esi + 0x8) = eax; /* 0x3614B030: mov dword ptr [esi + 8], eax */ 24781 eax = MEM32(ebp + (-0x8)); /* 0x3614B033: mov eax, dword ptr [ebp - 8] */ 24782 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x24u); 24783 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24784 ebx = ebx + 0x24u; /* 0x3614B036: add ebx, 0x24 */ 24785 _flag_k = FK_ADD; 24786 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 24787 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24788 esi = esi + 0x24u; /* 0x3614B039: add esi, 0x24 */ 24789 _flag_k = FK_ADD; 24790 /* cmp ebx, eax */ /* 0x3614B03C: cmp ebx, eax */ 24791 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 24792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24793 _flag_k = FK_CMP; 24794 RECOMP_BACKEDGE(); 24795 if (CMP_NE(_flag_a, _flag_b)) goto L_3614AFDE; /* 0x3614B03E: jne 0x3614afde */ 24796 L_3614B040: 24797 esi = POP32_VAL(esp); /* 0x3614B040: pop esi */ 24798 ecx = MEM32(edi + 0x8); /* 0x3614B041: mov ecx, dword ptr [edi + 8] */ 24799 PUSH32(esp, ecx); /* 0x3614B044: push ecx */ 24800 RECOMP_ICALL(0x3615FCC4u); /* 0x3614B045: call 0x3615fcc4 */ /* not lifted */ 24801 RECOMP_FLAGS_IN(); 24802 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 24803 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24804 esp = esp + 4; /* 0x3614B04A: add esp, 4 */ 24805 _flag_k = FK_ADD; 24806 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 24807 eax = 0; /* 0x3614B04D: xor eax, eax */ 24808 _cf = 0; 24809 _flag_k = FK_TEST; 24810 MEM32(edi + 0x8) = eax; /* 0x3614B04F: mov dword ptr [edi + 8], eax */ 24811 MEM32(edi + 0xC) = eax; /* 0x3614B052: mov dword ptr [edi + 0xc], eax */ 24812 MEM32(edi + 0x10) = eax; /* 0x3614B055: mov dword ptr [edi + 0x10], eax */ 24813 edi = POP32_VAL(esp); /* 0x3614B058: pop edi */ 24814 ebx = POP32_VAL(esp); /* 0x3614B059: pop ebx */ 24815 esp = ebp; /* 0x3614B05A: mov esp, ebp */ 24816 ebp = POP32_VAL(esp); /* 0x3614B05C: pop ebp */ 24817 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614B05D: ret */ 24818 RECOMP_REGS_OUT(); 24819 } 24820 24821 void sub_3614B029(void) { 24822 int _fpu_cmp = 0; 24823 uint32_t _cf = 0; 24824 int _df = 1; 24825 uint32_t _flag_k = FK_NONE; 24826 uint32_t _flag_a = 0, _flag_b = 0; 24827 uint32_t _itail_tgt = 0; 24828 RECOMP_REGS_LOCALS 24829 RECOMP_ENTER(0x3614B029u); 24830 24831 goto L_3614B029; 24832 L_3614AFDE: 24833 eax = MEM32(esi); /* 0x3614AFDE: mov eax, dword ptr [esi] */ 24834 /* test eax, eax */ /* 0x3614AFE0: test eax, eax */ 24835 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 24836 _cf = 0; 24837 _flag_k = FK_TEST; 24838 if (TEST_Z(_flag_a, _flag_b)) goto L_3614B029; /* 0x3614AFE2: je 0x3614b029 */ 24839 L_3614AFE4: 24840 edi = esi + (-0x4); /* 0x3614AFE4: lea edi, [esi - 4] */ 24841 PUSH32(esp, eax); /* 0x3614AFE7: push eax */ 24842 ecx = edi; /* 0x3614AFE8: mov ecx, edi */ 24843 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x3614AFEA: call dword ptr [0x3616f158] */ 24844 RECOMP_FLAGS_IN(); 24845 /* cmp MEM8(eax), 0 */ /* 0x3614AFF0: cmp byte ptr [eax], 0 */ 24846 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0) << 24; 24847 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24848 _flag_k = FK_NARROW(FK_CMP, 24); 24849 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B014; /* 0x3614AFF3: je 0x3614b014 */ 24850 L_3614AFF5: 24851 eax = MEM32(esi); /* 0x3614AFF5: mov eax, dword ptr [esi] */ 24852 PUSH32(esp, eax); /* 0x3614AFF7: push eax */ 24853 ecx = edi; /* 0x3614AFF8: mov ecx, edi */ 24854 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x3614AFFA: call dword ptr [0x3616f158] */ 24855 RECOMP_FLAGS_IN(); 24856 /* cmp MEM8(eax), 0xFFu */ /* 0x3614B000: cmp byte ptr [eax], 0xff */ 24857 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 24858 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24859 _flag_k = FK_NARROW(FK_CMP, 24); 24860 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B014; /* 0x3614B003: je 0x3614b014 */ 24861 L_3614B005: 24862 ecx = MEM32(esi); /* 0x3614B005: mov ecx, dword ptr [esi] */ 24863 PUSH32(esp, ecx); /* 0x3614B007: push ecx */ 24864 ecx = edi; /* 0x3614B008: mov ecx, edi */ 24865 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x3614B00A: call dword ptr [0x3616f158] */ 24866 RECOMP_FLAGS_IN(); 24867 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 24868 MEM8(eax) = (uint8_t)(MEM8(eax) - 1); /* 0x3614B010: dec byte ptr [eax] */ 24869 _flag_k = FK_NARROW(FK_DEC, 24); 24870 goto L_3614B026; /* 0x3614B012: jmp 0x3614b026 */ 24871 L_3614B014: 24872 edx = MEM32(esi + 0x8); /* 0x3614B014: mov edx, dword ptr [esi + 8] */ 24873 eax = MEM32(esi); /* 0x3614B017: mov eax, dword ptr [esi] */ 24874 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 24875 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24876 edx = edx + 2; /* 0x3614B019: add edx, 2 */ 24877 _flag_k = FK_ADD; 24878 PUSH32(esp, edx); /* 0x3614B01C: push edx */ 24879 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 24880 eax = eax - 1; /* 0x3614B01D: dec eax */ 24881 _flag_k = FK_DEC; 24882 PUSH32(esp, eax); /* 0x3614B01E: push eax */ 24883 ecx = edi; /* 0x3614B01F: mov ecx, edi */ 24884 RECOMP_ICALL(0x36029840u); /* 0x3614B021: call 0x36029840 */ /* not lifted */ 24885 RECOMP_FLAGS_IN(); 24886 L_3614B026: 24887 edi = MEM32(ebp + (-0x4)); /* 0x3614B026: mov edi, dword ptr [ebp - 4] */ 24888 L_3614B029: 24889 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 24890 eax = 0; /* 0x3614B029: xor eax, eax */ 24891 _cf = 0; 24892 _flag_k = FK_TEST; 24893 MEM32(esi) = eax; /* 0x3614B02B: mov dword ptr [esi], eax */ 24894 MEM32(esi + 0x4) = eax; /* 0x3614B02D: mov dword ptr [esi + 4], eax */ 24895 MEM32(esi + 0x8) = eax; /* 0x3614B030: mov dword ptr [esi + 8], eax */ 24896 eax = MEM32(ebp + (-0x8)); /* 0x3614B033: mov eax, dword ptr [ebp - 8] */ 24897 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x24u); 24898 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24899 ebx = ebx + 0x24u; /* 0x3614B036: add ebx, 0x24 */ 24900 _flag_k = FK_ADD; 24901 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 24902 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24903 esi = esi + 0x24u; /* 0x3614B039: add esi, 0x24 */ 24904 _flag_k = FK_ADD; 24905 /* cmp ebx, eax */ /* 0x3614B03C: cmp ebx, eax */ 24906 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 24907 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24908 _flag_k = FK_CMP; 24909 RECOMP_BACKEDGE(); 24910 if (CMP_NE(_flag_a, _flag_b)) goto L_3614AFDE; /* 0x3614B03E: jne 0x3614afde */ 24911 L_3614B040: 24912 esi = POP32_VAL(esp); /* 0x3614B040: pop esi */ 24913 ecx = MEM32(edi + 0x8); /* 0x3614B041: mov ecx, dword ptr [edi + 8] */ 24914 PUSH32(esp, ecx); /* 0x3614B044: push ecx */ 24915 RECOMP_ICALL(0x3615FCC4u); /* 0x3614B045: call 0x3615fcc4 */ /* not lifted */ 24916 RECOMP_FLAGS_IN(); 24917 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 24918 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 24919 esp = esp + 4; /* 0x3614B04A: add esp, 4 */ 24920 _flag_k = FK_ADD; 24921 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 24922 eax = 0; /* 0x3614B04D: xor eax, eax */ 24923 _cf = 0; 24924 _flag_k = FK_TEST; 24925 MEM32(edi + 0x8) = eax; /* 0x3614B04F: mov dword ptr [edi + 8], eax */ 24926 MEM32(edi + 0xC) = eax; /* 0x3614B052: mov dword ptr [edi + 0xc], eax */ 24927 MEM32(edi + 0x10) = eax; /* 0x3614B055: mov dword ptr [edi + 0x10], eax */ 24928 edi = POP32_VAL(esp); /* 0x3614B058: pop edi */ 24929 ebx = POP32_VAL(esp); /* 0x3614B059: pop ebx */ 24930 esp = ebp; /* 0x3614B05A: mov esp, ebp */ 24931 ebp = POP32_VAL(esp); /* 0x3614B05C: pop ebp */ 24932 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614B05D: ret */ 24933 RECOMP_REGS_OUT(); 24934 } 24935 24936 void sub_3614B060(void) { 24937 int _fpu_cmp = 0; 24938 uint32_t _cf = 0; 24939 int _df = 1; 24940 uint32_t _flag_k = FK_NONE; 24941 uint32_t _flag_a = 0, _flag_b = 0; 24942 uint32_t _itail_tgt = 0; 24943 RECOMP_REGS_LOCALS 24944 RECOMP_ENTER(0x3614B060u); 24945 24946 L_3614B060: 24947 PUSH32(esp, ebp); /* 0x3614B060: push ebp */ 24948 ebp = esp; /* 0x3614B061: mov ebp, esp */ 24949 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 24950 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24951 esp = esp - 0xCu; /* 0x3614B063: sub esp, 0xc */ 24952 _flag_k = FK_CMP; 24953 PUSH32(esp, ebx); /* 0x3614B066: push ebx */ 24954 PUSH32(esp, esi); /* 0x3614B067: push esi */ 24955 PUSH32(esp, edi); /* 0x3614B068: push edi */ 24956 edi = ecx; /* 0x3614B069: mov edi, ecx */ 24957 ecx = MEM32(edi + 0x4); /* 0x3614B06B: mov ecx, dword ptr [edi + 4] */ 24958 ebx = MEM32(ecx + 0x4); /* 0x3614B06E: mov ebx, dword ptr [ecx + 4] */ 24959 edx = MEM32(edi + 0x8); /* 0x3614B071: mov edx, dword ptr [edi + 8] */ 24960 /* cmp ebx, edx */ /* 0x3614B074: cmp ebx, edx */ 24961 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 24962 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24963 _flag_k = FK_CMP; 24964 esi = ecx; /* 0x3614B076: mov esi, ecx */ 24965 SET_LO8(eax, 1); /* 0x3614B078: mov al, 1 */ 24966 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B09E; /* 0x3614B07A: je 0x3614b09e */ 24967 L_3614B07C: 24968 eax = MEM32(ebp + 0xC); /* 0x3614B07C: mov eax, dword ptr [ebp + 0xc] */ 24969 eax = MEM32(eax); /* 0x3614B07F: mov eax, dword ptr [eax] */ 24970 MEM32(ebp + (-0x8)) = eax; /* 0x3614B081: mov dword ptr [ebp - 8], eax */ 24971 L_3614B084: 24972 eax = MEM32(ebp + (-0x8)); /* 0x3614B084: mov eax, dword ptr [ebp - 8] */ 24973 /* cmp eax, MEM32(ebx + 0xC) */ /* 0x3614B087: cmp eax, dword ptr [ebx + 0xc] */ 24974 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0xC)); 24975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24976 _flag_k = FK_CMP; 24977 esi = ebx; /* 0x3614B08A: mov esi, ebx */ 24978 SET_LO8(eax, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x3614B08C: setb al */ 24979 /* test LO8(eax), LO8(eax) */ /* 0x3614B08F: test al, al */ 24980 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 24981 _cf = 0; 24982 _flag_k = FK_NARROW(FK_TEST, 24); 24983 if (TEST_Z(_flag_a, _flag_b)) goto L_3614B097; /* 0x3614B091: je 0x3614b097 */ 24984 L_3614B093: 24985 ebx = MEM32(ebx); /* 0x3614B093: mov ebx, dword ptr [ebx] */ 24986 goto L_3614B09A; /* 0x3614B095: jmp 0x3614b09a */ 24987 L_3614B097: 24988 ebx = MEM32(ebx + 0x8); /* 0x3614B097: mov ebx, dword ptr [ebx + 8] */ 24989 L_3614B09A: 24990 /* cmp ebx, edx */ /* 0x3614B09A: cmp ebx, edx */ 24991 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 24992 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 24993 _flag_k = FK_CMP; 24994 RECOMP_BACKEDGE(); 24995 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B084; /* 0x3614B09C: jne 0x3614b084 */ 24996 L_3614B09E: 24997 SET_LO8(edx, MEM8(edi + 0xC)); /* 0x3614B09E: mov dl, byte ptr [edi + 0xc] */ 24998 /* test LO8(edx), LO8(edx) */ /* 0x3614B0A1: test dl, dl */ 24999 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 25000 _cf = 0; 25001 _flag_k = FK_NARROW(FK_TEST, 24); 25002 if (TEST_Z(_flag_a, _flag_b)) goto L_3614B219; /* 0x3614B0A3: je 0x3614b219 */ 25003 L_3614B0A9: 25004 PUSH32(esp, 0); /* 0x3614B0A9: push 0 */ 25005 PUSH32(esp, esi); /* 0x3614B0AB: push esi */ 25006 ecx = edi; /* 0x3614B0AC: mov ecx, edi */ 25007 RECOMP_ICALL(0x3614B9B0u); /* 0x3614B0AE: call 0x3614b9b0 */ /* not lifted */ 25008 RECOMP_FLAGS_IN(); 25009 ecx = MEM32(edi + 0x8); /* 0x3614B0B3: mov ecx, dword ptr [edi + 8] */ 25010 MEM32(eax) = ecx; /* 0x3614B0B6: mov dword ptr [eax], ecx */ 25011 edx = MEM32(edi + 0x8); /* 0x3614B0B8: mov edx, dword ptr [edi + 8] */ 25012 ecx = MEM32(ebp + 0xC); /* 0x3614B0BB: mov ecx, dword ptr [ebp + 0xc] */ 25013 MEM32(ebp + (-0x4)) = eax; /* 0x3614B0BE: mov dword ptr [ebp - 4], eax */ 25014 MEM32(eax + 0x8) = edx; /* 0x3614B0C1: mov dword ptr [eax + 8], edx */ 25015 PUSH32(esp, ecx); /* 0x3614B0C4: push ecx */ 25016 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 25017 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25018 eax = eax + 0xCu; /* 0x3614B0C5: add eax, 0xc */ 25019 _flag_k = FK_ADD; 25020 PUSH32(esp, eax); /* 0x3614B0C8: push eax */ 25021 RECOMP_ICALL(0x3614B9E0u); /* 0x3614B0C9: call 0x3614b9e0 */ /* not lifted */ 25022 RECOMP_FLAGS_IN(); 25023 ecx = MEM32(edi + 0x10); /* 0x3614B0CE: mov ecx, dword ptr [edi + 0x10] */ 25024 eax = MEM32(edi + 0x4); /* 0x3614B0D1: mov eax, dword ptr [edi + 4] */ 25025 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 25026 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25027 esp = esp + 8; /* 0x3614B0D4: add esp, 8 */ 25028 _flag_k = FK_ADD; 25029 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 25030 ecx = ecx + 1; /* 0x3614B0D7: inc ecx */ 25031 _flag_k = FK_INC; 25032 /* cmp esi, eax */ /* 0x3614B0D8: cmp esi, eax */ 25033 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 25034 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25035 _flag_k = FK_CMP; 25036 MEM32(edi + 0x10) = ecx; /* 0x3614B0DA: mov dword ptr [edi + 0x10], ecx */ 25037 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B101; /* 0x3614B0DD: je 0x3614b101 */ 25038 L_3614B0DF: 25039 /* cmp ebx, MEM32(edi + 0x8) */ /* 0x3614B0DF: cmp ebx, dword ptr [edi + 8] */ 25040 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 25041 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25042 _flag_k = FK_CMP; 25043 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B101; /* 0x3614B0E2: jne 0x3614b101 */ 25044 L_3614B0E4: 25045 edx = MEM32(ebp + 0xC); /* 0x3614B0E4: mov edx, dword ptr [ebp + 0xc] */ 25046 eax = MEM32(edx); /* 0x3614B0E7: mov eax, dword ptr [edx] */ 25047 /* cmp eax, MEM32(esi + 0xC) */ /* 0x3614B0E9: cmp eax, dword ptr [esi + 0xc] */ 25048 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 25049 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25050 _flag_k = FK_CMP; 25051 if (CMP_B(_flag_a, _flag_b)) goto L_3614B101; /* 0x3614B0EC: jb 0x3614b101 */ 25052 L_3614B0EE: 25053 ebx = MEM32(ebp + (-0x4)); /* 0x3614B0EE: mov ebx, dword ptr [ebp - 4] */ 25054 MEM32(esi + 0x8) = ebx; /* 0x3614B0F1: mov dword ptr [esi + 8], ebx */ 25055 eax = MEM32(edi + 0x4); /* 0x3614B0F4: mov eax, dword ptr [edi + 4] */ 25056 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3614B0F7: cmp esi, dword ptr [eax + 8] */ 25057 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 25058 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25059 _flag_k = FK_CMP; 25060 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B124; /* 0x3614B0FA: jne 0x3614b124 */ 25061 L_3614B0FC: 25062 MEM32(eax + 0x8) = ebx; /* 0x3614B0FC: mov dword ptr [eax + 8], ebx */ 25063 goto L_3614B124; /* 0x3614B0FF: jmp 0x3614b124 */ 25064 L_3614B101: 25065 ecx = MEM32(ebp + (-0x4)); /* 0x3614B101: mov ecx, dword ptr [ebp - 4] */ 25066 MEM32(esi) = ecx; /* 0x3614B104: mov dword ptr [esi], ecx */ 25067 eax = MEM32(edi + 0x4); /* 0x3614B106: mov eax, dword ptr [edi + 4] */ 25068 /* cmp esi, eax */ /* 0x3614B109: cmp esi, eax */ 25069 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 25070 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25071 _flag_k = FK_CMP; 25072 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B118; /* 0x3614B10B: jne 0x3614b118 */ 25073 L_3614B10D: 25074 MEM32(eax + 0x4) = ecx; /* 0x3614B10D: mov dword ptr [eax + 4], ecx */ 25075 edx = MEM32(edi + 0x4); /* 0x3614B110: mov edx, dword ptr [edi + 4] */ 25076 MEM32(edx + 0x8) = ecx; /* 0x3614B113: mov dword ptr [edx + 8], ecx */ 25077 goto L_3614B121; /* 0x3614B116: jmp 0x3614b121 */ 25078 L_3614B118: 25079 /* cmp esi, MEM32(eax) */ /* 0x3614B118: cmp esi, dword ptr [eax] */ 25080 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 25081 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25082 _flag_k = FK_CMP; 25083 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B121; /* 0x3614B11A: jne 0x3614b121 */ 25084 L_3614B11C: 25085 ecx = MEM32(ebp + (-0x4)); /* 0x3614B11C: mov ecx, dword ptr [ebp - 4] */ 25086 MEM32(eax) = ecx; /* 0x3614B11F: mov dword ptr [eax], ecx */ 25087 L_3614B121: 25088 ebx = MEM32(ebp + (-0x4)); /* 0x3614B121: mov ebx, dword ptr [ebp - 4] */ 25089 L_3614B124: 25090 edx = MEM32(edi + 0x4); /* 0x3614B124: mov edx, dword ptr [edi + 4] */ 25091 /* cmp ebx, MEM32(edx + 0x4) */ /* 0x3614B127: cmp ebx, dword ptr [edx + 4] */ 25092 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 25093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25094 _flag_k = FK_CMP; 25095 esi = ebx; /* 0x3614B12A: mov esi, ebx */ 25096 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B1F7; /* 0x3614B12C: je 0x3614b1f7 */ 25097 L_3614B132: 25098 eax = MEM32(esi + 0x4); /* 0x3614B132: mov eax, dword ptr [esi + 4] */ 25099 SET_LO8(ecx, MEM8(eax + 0x20)); /* 0x3614B135: mov cl, byte ptr [eax + 0x20] */ 25100 /* test LO8(ecx), LO8(ecx) */ /* 0x3614B138: test cl, cl */ 25101 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 25102 _cf = 0; 25103 _flag_k = FK_NARROW(FK_TEST, 24); 25104 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B1F7; /* 0x3614B13A: jne 0x3614b1f7 */ 25105 L_3614B140: 25106 edx = MEM32(eax + 0x4); /* 0x3614B140: mov edx, dword ptr [eax + 4] */ 25107 ecx = MEM32(edx); /* 0x3614B143: mov ecx, dword ptr [edx] */ 25108 /* cmp eax, ecx */ /* 0x3614B145: cmp eax, ecx */ 25109 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 25110 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25111 _flag_k = FK_CMP; 25112 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B19D; /* 0x3614B147: jne 0x3614b19d */ 25113 L_3614B149: 25114 ecx = MEM32(edx + 0x8); /* 0x3614B149: mov ecx, dword ptr [edx + 8] */ 25115 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B14C: mov dl, byte ptr [ecx + 0x20] */ 25116 /* test LO8(edx), LO8(edx) */ /* 0x3614B14F: test dl, dl */ 25117 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 25118 _cf = 0; 25119 _flag_k = FK_NARROW(FK_TEST, 24); 25120 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B16D; /* 0x3614B151: jne 0x3614b16d */ 25121 L_3614B153: 25122 MEM8(eax + 0x20) = (uint8_t)(1); /* 0x3614B153: mov byte ptr [eax + 0x20], 1 */ 25123 MEM8(ecx + 0x20) = (uint8_t)(1); /* 0x3614B157: mov byte ptr [ecx + 0x20], 1 */ 25124 eax = MEM32(esi + 0x4); /* 0x3614B15B: mov eax, dword ptr [esi + 4] */ 25125 ecx = MEM32(eax + 0x4); /* 0x3614B15E: mov ecx, dword ptr [eax + 4] */ 25126 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B161: mov byte ptr [ecx + 0x20], 0 */ 25127 edx = MEM32(esi + 0x4); /* 0x3614B165: mov edx, dword ptr [esi + 4] */ 25128 esi = MEM32(edx + 0x4); /* 0x3614B168: mov esi, dword ptr [edx + 4] */ 25129 goto L_3614B1EB; /* 0x3614B16B: jmp 0x3614b1eb */ 25130 L_3614B16D: 25131 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3614B16D: cmp esi, dword ptr [eax + 8] */ 25132 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 25133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25134 _flag_k = FK_CMP; 25135 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B17C; /* 0x3614B170: jne 0x3614b17c */ 25136 L_3614B172: 25137 esi = eax; /* 0x3614B172: mov esi, eax */ 25138 PUSH32(esp, esi); /* 0x3614B174: push esi */ 25139 ecx = edi; /* 0x3614B175: mov ecx, edi */ 25140 RECOMP_ICALL(0x36096920u); /* 0x3614B177: call 0x36096920 */ /* not lifted */ 25141 RECOMP_FLAGS_IN(); 25142 L_3614B17C: 25143 eax = MEM32(esi + 0x4); /* 0x3614B17C: mov eax, dword ptr [esi + 4] */ 25144 MEM8(eax + 0x20) = (uint8_t)(1); /* 0x3614B17F: mov byte ptr [eax + 0x20], 1 */ 25145 ecx = MEM32(esi + 0x4); /* 0x3614B183: mov ecx, dword ptr [esi + 4] */ 25146 edx = MEM32(ecx + 0x4); /* 0x3614B186: mov edx, dword ptr [ecx + 4] */ 25147 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x3614B189: mov byte ptr [edx + 0x20], 0 */ 25148 eax = MEM32(esi + 0x4); /* 0x3614B18D: mov eax, dword ptr [esi + 4] */ 25149 ecx = MEM32(eax + 0x4); /* 0x3614B190: mov ecx, dword ptr [eax + 4] */ 25150 PUSH32(esp, ecx); /* 0x3614B193: push ecx */ 25151 ecx = edi; /* 0x3614B194: mov ecx, edi */ 25152 RECOMP_ICALL(0x360B4260u); /* 0x3614B196: call 0x360b4260 */ /* not lifted */ 25153 RECOMP_FLAGS_IN(); 25154 goto L_3614B1EB; /* 0x3614B19B: jmp 0x3614b1eb */ 25155 L_3614B19D: 25156 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B19D: mov dl, byte ptr [ecx + 0x20] */ 25157 /* test LO8(edx), LO8(edx) */ /* 0x3614B1A0: test dl, dl */ 25158 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 25159 _cf = 0; 25160 _flag_k = FK_NARROW(FK_TEST, 24); 25161 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B1BE; /* 0x3614B1A2: jne 0x3614b1be */ 25162 L_3614B1A4: 25163 MEM8(eax + 0x20) = (uint8_t)(1); /* 0x3614B1A4: mov byte ptr [eax + 0x20], 1 */ 25164 MEM8(ecx + 0x20) = (uint8_t)(1); /* 0x3614B1A8: mov byte ptr [ecx + 0x20], 1 */ 25165 edx = MEM32(esi + 0x4); /* 0x3614B1AC: mov edx, dword ptr [esi + 4] */ 25166 eax = MEM32(edx + 0x4); /* 0x3614B1AF: mov eax, dword ptr [edx + 4] */ 25167 MEM8(eax + 0x20) = (uint8_t)(0); /* 0x3614B1B2: mov byte ptr [eax + 0x20], 0 */ 25168 ecx = MEM32(esi + 0x4); /* 0x3614B1B6: mov ecx, dword ptr [esi + 4] */ 25169 esi = MEM32(ecx + 0x4); /* 0x3614B1B9: mov esi, dword ptr [ecx + 4] */ 25170 goto L_3614B1EB; /* 0x3614B1BC: jmp 0x3614b1eb */ 25171 L_3614B1BE: 25172 /* cmp esi, MEM32(eax) */ /* 0x3614B1BE: cmp esi, dword ptr [eax] */ 25173 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 25174 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25175 _flag_k = FK_CMP; 25176 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B1CC; /* 0x3614B1C0: jne 0x3614b1cc */ 25177 L_3614B1C2: 25178 esi = eax; /* 0x3614B1C2: mov esi, eax */ 25179 PUSH32(esp, esi); /* 0x3614B1C4: push esi */ 25180 ecx = edi; /* 0x3614B1C5: mov ecx, edi */ 25181 RECOMP_ICALL(0x360B4260u); /* 0x3614B1C7: call 0x360b4260 */ /* not lifted */ 25182 RECOMP_FLAGS_IN(); 25183 L_3614B1CC: 25184 edx = MEM32(esi + 0x4); /* 0x3614B1CC: mov edx, dword ptr [esi + 4] */ 25185 MEM8(edx + 0x20) = (uint8_t)(1); /* 0x3614B1CF: mov byte ptr [edx + 0x20], 1 */ 25186 eax = MEM32(esi + 0x4); /* 0x3614B1D3: mov eax, dword ptr [esi + 4] */ 25187 ecx = MEM32(eax + 0x4); /* 0x3614B1D6: mov ecx, dword ptr [eax + 4] */ 25188 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B1D9: mov byte ptr [ecx + 0x20], 0 */ 25189 edx = MEM32(esi + 0x4); /* 0x3614B1DD: mov edx, dword ptr [esi + 4] */ 25190 eax = MEM32(edx + 0x4); /* 0x3614B1E0: mov eax, dword ptr [edx + 4] */ 25191 PUSH32(esp, eax); /* 0x3614B1E3: push eax */ 25192 ecx = edi; /* 0x3614B1E4: mov ecx, edi */ 25193 RECOMP_ICALL(0x36096920u); /* 0x3614B1E6: call 0x36096920 */ /* not lifted */ 25194 RECOMP_FLAGS_IN(); 25195 L_3614B1EB: 25196 ecx = MEM32(edi + 0x4); /* 0x3614B1EB: mov ecx, dword ptr [edi + 4] */ 25197 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3614B1EE: cmp esi, dword ptr [ecx + 4] */ 25198 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 25199 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25200 _flag_k = FK_CMP; 25201 RECOMP_BACKEDGE(); 25202 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B132; /* 0x3614B1F1: jne 0x3614b132 */ 25203 L_3614B1F7: 25204 edx = MEM32(edi + 0x4); /* 0x3614B1F7: mov edx, dword ptr [edi + 4] */ 25205 eax = MEM32(edx + 0x4); /* 0x3614B1FA: mov eax, dword ptr [edx + 4] */ 25206 MEM8(eax + 0x20) = (uint8_t)(1); /* 0x3614B1FD: mov byte ptr [eax + 0x20], 1 */ 25207 eax = MEM32(ebp + 0x8); /* 0x3614B201: mov eax, dword ptr [ebp + 8] */ 25208 edi = POP32_VAL(esp); /* 0x3614B204: pop edi */ 25209 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3614B205: mov byte ptr [ebp - 8], 1 */ 25210 ecx = MEM32(ebp + (-0x8)); /* 0x3614B209: mov ecx, dword ptr [ebp - 8] */ 25211 MEM32(eax) = ebx; /* 0x3614B20C: mov dword ptr [eax], ebx */ 25212 esi = POP32_VAL(esp); /* 0x3614B20E: pop esi */ 25213 MEM32(eax + 0x4) = ecx; /* 0x3614B20F: mov dword ptr [eax + 4], ecx */ 25214 ebx = POP32_VAL(esp); /* 0x3614B212: pop ebx */ 25215 esp = ebp; /* 0x3614B213: mov esp, ebp */ 25216 ebp = POP32_VAL(esp); /* 0x3614B215: pop ebp */ 25217 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614B216: ret 8 */ 25218 L_3614B219: 25219 /* test LO8(eax), LO8(eax) */ /* 0x3614B219: test al, al */ 25220 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 25221 _cf = 0; 25222 _flag_k = FK_NARROW(FK_TEST, 24); 25223 edx = esi; /* 0x3614B21B: mov edx, esi */ 25224 MEM32(ebp + (-0x8)) = edx; /* 0x3614B21D: mov dword ptr [ebp - 8], edx */ 25225 if (TEST_Z(_flag_a, _flag_b)) goto L_3614B25C; /* 0x3614B220: je 0x3614b25c */ 25226 L_3614B222: 25227 /* cmp esi, MEM32(ecx) */ /* 0x3614B222: cmp esi, dword ptr [ecx] */ 25228 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx)); 25229 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25230 _flag_k = FK_CMP; 25231 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B251; /* 0x3614B224: jne 0x3614b251 */ 25232 L_3614B226: 25233 edx = MEM32(ebp + 0xC); /* 0x3614B226: mov edx, dword ptr [ebp + 0xc] */ 25234 PUSH32(esp, edx); /* 0x3614B229: push edx */ 25235 PUSH32(esp, esi); /* 0x3614B22A: push esi */ 25236 PUSH32(esp, ebx); /* 0x3614B22B: push ebx */ 25237 eax = ebp + 0xC; /* 0x3614B22C: lea eax, [ebp + 0xc] */ 25238 PUSH32(esp, eax); /* 0x3614B22F: push eax */ 25239 ecx = edi; /* 0x3614B230: mov ecx, edi */ 25240 RECOMP_ICALL(0x3614B770u); /* 0x3614B232: call 0x3614b770 */ /* not lifted */ 25241 RECOMP_FLAGS_IN(); 25242 ecx = MEM32(eax); /* 0x3614B237: mov ecx, dword ptr [eax] */ 25243 eax = MEM32(ebp + 0x8); /* 0x3614B239: mov eax, dword ptr [ebp + 8] */ 25244 edi = POP32_VAL(esp); /* 0x3614B23C: pop edi */ 25245 MEM32(eax) = ecx; /* 0x3614B23D: mov dword ptr [eax], ecx */ 25246 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3614B23F: mov byte ptr [ebp - 8], 1 */ 25247 ecx = MEM32(ebp + (-0x8)); /* 0x3614B243: mov ecx, dword ptr [ebp - 8] */ 25248 esi = POP32_VAL(esp); /* 0x3614B246: pop esi */ 25249 MEM32(eax + 0x4) = ecx; /* 0x3614B247: mov dword ptr [eax + 4], ecx */ 25250 ebx = POP32_VAL(esp); /* 0x3614B24A: pop ebx */ 25251 esp = ebp; /* 0x3614B24B: mov esp, ebp */ 25252 ebp = POP32_VAL(esp); /* 0x3614B24D: pop ebp */ 25253 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614B24E: ret 8 */ 25254 L_3614B251: 25255 ecx = ebp + (-0x8); /* 0x3614B251: lea ecx, [ebp - 8] */ 25256 RECOMP_ICALL(0x36145870u); /* 0x3614B254: call 0x36145870 */ /* not lifted */ 25257 RECOMP_FLAGS_IN(); 25258 edx = MEM32(ebp + (-0x8)); /* 0x3614B259: mov edx, dword ptr [ebp - 8] */ 25259 L_3614B25C: 25260 ecx = MEM32(edx + 0xC); /* 0x3614B25C: mov ecx, dword ptr [edx + 0xc] */ 25261 eax = MEM32(ebp + 0xC); /* 0x3614B25F: mov eax, dword ptr [ebp + 0xc] */ 25262 /* cmp ecx, MEM32(eax) */ /* 0x3614B262: cmp ecx, dword ptr [eax] */ 25263 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 25264 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25265 _flag_k = FK_CMP; 25266 if (CMP_AE(_flag_a, _flag_b)) goto L_3614B28E; /* 0x3614B264: jae 0x3614b28e */ 25267 L_3614B266: 25268 PUSH32(esp, eax); /* 0x3614B266: push eax */ 25269 PUSH32(esp, esi); /* 0x3614B267: push esi */ 25270 PUSH32(esp, ebx); /* 0x3614B268: push ebx */ 25271 edx = ebp + 0xC; /* 0x3614B269: lea edx, [ebp + 0xc] */ 25272 PUSH32(esp, edx); /* 0x3614B26C: push edx */ 25273 ecx = edi; /* 0x3614B26D: mov ecx, edi */ 25274 RECOMP_ICALL(0x3614B770u); /* 0x3614B26F: call 0x3614b770 */ /* not lifted */ 25275 RECOMP_FLAGS_IN(); 25276 ecx = MEM32(eax); /* 0x3614B274: mov ecx, dword ptr [eax] */ 25277 eax = MEM32(ebp + 0x8); /* 0x3614B276: mov eax, dword ptr [ebp + 8] */ 25278 edi = POP32_VAL(esp); /* 0x3614B279: pop edi */ 25279 MEM32(eax) = ecx; /* 0x3614B27A: mov dword ptr [eax], ecx */ 25280 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3614B27C: mov byte ptr [ebp - 8], 1 */ 25281 ecx = MEM32(ebp + (-0x8)); /* 0x3614B280: mov ecx, dword ptr [ebp - 8] */ 25282 esi = POP32_VAL(esp); /* 0x3614B283: pop esi */ 25283 MEM32(eax + 0x4) = ecx; /* 0x3614B284: mov dword ptr [eax + 4], ecx */ 25284 ebx = POP32_VAL(esp); /* 0x3614B287: pop ebx */ 25285 esp = ebp; /* 0x3614B288: mov esp, ebp */ 25286 ebp = POP32_VAL(esp); /* 0x3614B28A: pop ebp */ 25287 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614B28B: ret 8 */ 25288 L_3614B28E: 25289 eax = MEM32(ebp + 0x8); /* 0x3614B28E: mov eax, dword ptr [ebp + 8] */ 25290 edi = POP32_VAL(esp); /* 0x3614B291: pop edi */ 25291 MEM32(eax) = edx; /* 0x3614B292: mov dword ptr [eax], edx */ 25292 MEM8(ebp + (-0x8)) = (uint8_t)(0); /* 0x3614B294: mov byte ptr [ebp - 8], 0 */ 25293 edx = MEM32(ebp + (-0x8)); /* 0x3614B298: mov edx, dword ptr [ebp - 8] */ 25294 esi = POP32_VAL(esp); /* 0x3614B29B: pop esi */ 25295 MEM32(eax + 0x4) = edx; /* 0x3614B29C: mov dword ptr [eax + 4], edx */ 25296 ebx = POP32_VAL(esp); /* 0x3614B29F: pop ebx */ 25297 esp = ebp; /* 0x3614B2A0: mov esp, ebp */ 25298 ebp = POP32_VAL(esp); /* 0x3614B2A2: pop ebp */ 25299 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614B2A3: ret 8 */ 25300 RECOMP_REGS_OUT(); 25301 } 25302 25303 void sub_3614B2B0(void) { 25304 int _fpu_cmp = 0; 25305 uint32_t _cf = 0; 25306 int _df = 1; 25307 uint32_t _flag_k = FK_NONE; 25308 uint32_t _flag_a = 0, _flag_b = 0; 25309 uint32_t _itail_tgt = 0; 25310 RECOMP_REGS_LOCALS 25311 RECOMP_ENTER(0x3614B2B0u); 25312 25313 L_3614B2B0: 25314 PUSH32(esp, ebp); /* 0x3614B2B0: push ebp */ 25315 ebp = esp; /* 0x3614B2B1: mov ebp, esp */ 25316 PUSH32(esp, ecx); /* 0x3614B2B3: push ecx */ 25317 PUSH32(esp, ebx); /* 0x3614B2B4: push ebx */ 25318 PUSH32(esp, esi); /* 0x3614B2B5: push esi */ 25319 esi = MEM32(ebp + 0xC); /* 0x3614B2B6: mov esi, dword ptr [ebp + 0xc] */ 25320 PUSH32(esp, edi); /* 0x3614B2B9: push edi */ 25321 edi = ecx; /* 0x3614B2BA: mov edi, ecx */ 25322 ecx = ebp + 0xC; /* 0x3614B2BC: lea ecx, [ebp + 0xc] */ 25323 RECOMP_ICALL(0x361458D0u); /* 0x3614B2BF: call 0x361458d0 */ /* not lifted */ 25324 RECOMP_FLAGS_IN(); 25325 edx = MEM32(esi); /* 0x3614B2C4: mov edx, dword ptr [esi] */ 25326 eax = MEM32(edi + 0x8); /* 0x3614B2C6: mov eax, dword ptr [edi + 8] */ 25327 /* cmp edx, eax */ /* 0x3614B2C9: cmp edx, eax */ 25328 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 25329 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25330 _flag_k = FK_CMP; 25331 MEM32(ebp + (-0x4)) = esi; /* 0x3614B2CB: mov dword ptr [ebp - 4], esi */ 25332 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B2F0; /* 0x3614B2CE: jne 0x3614b2f0 */ 25333 L_3614B2D0: 25334 eax = MEM32(esi + 0x8); /* 0x3614B2D0: mov eax, dword ptr [esi + 8] */ 25335 L_3614B2D3: 25336 ecx = MEM32(ebp + (-0x4)); /* 0x3614B2D3: mov ecx, dword ptr [ebp - 4] */ 25337 edx = MEM32(ecx + 0x4); /* 0x3614B2D6: mov edx, dword ptr [ecx + 4] */ 25338 MEM32(eax + 0x4) = edx; /* 0x3614B2D9: mov dword ptr [eax + 4], edx */ 25339 ecx = MEM32(edi + 0x4); /* 0x3614B2DC: mov ecx, dword ptr [edi + 4] */ 25340 /* cmp MEM32(ecx + 0x4), esi */ /* 0x3614B2DF: cmp dword ptr [ecx + 4], esi */ 25341 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(esi); 25342 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25343 _flag_k = FK_CMP; 25344 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B373; /* 0x3614B2E2: jne 0x3614b373 */ 25345 L_3614B2E8: 25346 MEM32(ecx + 0x4) = eax; /* 0x3614B2E8: mov dword ptr [ecx + 4], eax */ 25347 goto L_3614B381; /* 0x3614B2EB: jmp 0x3614b381 */ 25348 L_3614B2F0: 25349 ecx = MEM32(esi + 0x8); /* 0x3614B2F0: mov ecx, dword ptr [esi + 8] */ 25350 /* cmp ecx, eax */ /* 0x3614B2F3: cmp ecx, eax */ 25351 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 25352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25353 _flag_k = FK_CMP; 25354 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B2FB; /* 0x3614B2F5: jne 0x3614b2fb */ 25355 L_3614B2F7: 25356 eax = edx; /* 0x3614B2F7: mov eax, edx */ 25357 RECOMP_BACKEDGE(); 25358 goto L_3614B2D3; /* 0x3614B2F9: jmp 0x3614b2d3 */ 25359 L_3614B2FB: 25360 eax = MEM32(ecx); /* 0x3614B2FB: mov eax, dword ptr [ecx] */ 25361 SET_LO8(ebx, MEM8(eax + 0x21)); /* 0x3614B2FD: mov bl, byte ptr [eax + 0x21] */ 25362 /* test LO8(ebx), LO8(ebx) */ /* 0x3614B300: test bl, bl */ 25363 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 25364 _cf = 0; 25365 _flag_k = FK_NARROW(FK_TEST, 24); 25366 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B30F; /* 0x3614B302: jne 0x3614b30f */ 25367 L_3614B304: 25368 ecx = eax; /* 0x3614B304: mov ecx, eax */ 25369 eax = MEM32(ecx); /* 0x3614B306: mov eax, dword ptr [ecx] */ 25370 SET_LO8(ebx, MEM8(eax + 0x21)); /* 0x3614B308: mov bl, byte ptr [eax + 0x21] */ 25371 /* test LO8(ebx), LO8(ebx) */ /* 0x3614B30B: test bl, bl */ 25372 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 25373 _cf = 0; 25374 _flag_k = FK_NARROW(FK_TEST, 24); 25375 RECOMP_BACKEDGE(); 25376 if (TEST_Z(_flag_a, _flag_b)) goto L_3614B304; /* 0x3614B30D: je 0x3614b304 */ 25377 L_3614B30F: 25378 /* cmp ecx, esi */ /* 0x3614B30F: cmp ecx, esi */ 25379 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 25380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25381 _flag_k = FK_CMP; 25382 eax = MEM32(ecx + 0x8); /* 0x3614B311: mov eax, dword ptr [ecx + 8] */ 25383 MEM32(ebp + (-0x4)) = ecx; /* 0x3614B314: mov dword ptr [ebp - 4], ecx */ 25384 RECOMP_BACKEDGE(); 25385 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B2D3; /* 0x3614B317: je 0x3614b2d3 */ 25386 L_3614B319: 25387 MEM32(edx + 0x4) = ecx; /* 0x3614B319: mov dword ptr [edx + 4], ecx */ 25388 edx = MEM32(esi); /* 0x3614B31C: mov edx, dword ptr [esi] */ 25389 MEM32(ecx) = edx; /* 0x3614B31E: mov dword ptr [ecx], edx */ 25390 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B320: cmp ecx, dword ptr [esi + 8] */ 25391 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 25392 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25393 _flag_k = FK_CMP; 25394 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B32A; /* 0x3614B323: jne 0x3614b32a */ 25395 L_3614B325: 25396 MEM32(eax + 0x4) = ecx; /* 0x3614B325: mov dword ptr [eax + 4], ecx */ 25397 goto L_3614B341; /* 0x3614B328: jmp 0x3614b341 */ 25398 L_3614B32A: 25399 edx = MEM32(ecx + 0x4); /* 0x3614B32A: mov edx, dword ptr [ecx + 4] */ 25400 MEM32(eax + 0x4) = edx; /* 0x3614B32D: mov dword ptr [eax + 4], edx */ 25401 edx = MEM32(ecx + 0x4); /* 0x3614B330: mov edx, dword ptr [ecx + 4] */ 25402 MEM32(edx) = eax; /* 0x3614B333: mov dword ptr [edx], eax */ 25403 edx = MEM32(esi + 0x8); /* 0x3614B335: mov edx, dword ptr [esi + 8] */ 25404 MEM32(ecx + 0x8) = edx; /* 0x3614B338: mov dword ptr [ecx + 8], edx */ 25405 edx = MEM32(esi + 0x8); /* 0x3614B33B: mov edx, dword ptr [esi + 8] */ 25406 MEM32(edx + 0x4) = ecx; /* 0x3614B33E: mov dword ptr [edx + 4], ecx */ 25407 L_3614B341: 25408 edx = MEM32(edi + 0x4); /* 0x3614B341: mov edx, dword ptr [edi + 4] */ 25409 /* cmp MEM32(edx + 0x4), esi */ /* 0x3614B344: cmp dword ptr [edx + 4], esi */ 25410 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(esi); 25411 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25412 _flag_k = FK_CMP; 25413 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B34E; /* 0x3614B347: jne 0x3614b34e */ 25414 L_3614B349: 25415 MEM32(edx + 0x4) = ecx; /* 0x3614B349: mov dword ptr [edx + 4], ecx */ 25416 goto L_3614B35C; /* 0x3614B34C: jmp 0x3614b35c */ 25417 L_3614B34E: 25418 edx = MEM32(esi + 0x4); /* 0x3614B34E: mov edx, dword ptr [esi + 4] */ 25419 /* cmp MEM32(edx), esi */ /* 0x3614B351: cmp dword ptr [edx], esi */ 25420 _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(esi); 25421 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25422 _flag_k = FK_CMP; 25423 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B359; /* 0x3614B353: jne 0x3614b359 */ 25424 L_3614B355: 25425 MEM32(edx) = ecx; /* 0x3614B355: mov dword ptr [edx], ecx */ 25426 goto L_3614B35C; /* 0x3614B357: jmp 0x3614b35c */ 25427 L_3614B359: 25428 MEM32(edx + 0x8) = ecx; /* 0x3614B359: mov dword ptr [edx + 8], ecx */ 25429 L_3614B35C: 25430 edx = MEM32(esi + 0x4); /* 0x3614B35C: mov edx, dword ptr [esi + 4] */ 25431 MEM32(ecx + 0x4) = edx; /* 0x3614B35F: mov dword ptr [ecx + 4], edx */ 25432 SET_LO8(ebx, MEM8(esi + 0x20)); /* 0x3614B362: mov bl, byte ptr [esi + 0x20] */ 25433 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B365: mov dl, byte ptr [ecx + 0x20] */ 25434 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B368: mov byte ptr [ecx + 0x20], bl */ 25435 MEM8(esi + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B36B: mov byte ptr [esi + 0x20], dl */ 25436 MEM32(ebp + (-0x4)) = esi; /* 0x3614B36E: mov dword ptr [ebp - 4], esi */ 25437 goto L_3614B3D8; /* 0x3614B371: jmp 0x3614b3d8 */ 25438 L_3614B373: 25439 ecx = MEM32(esi + 0x4); /* 0x3614B373: mov ecx, dword ptr [esi + 4] */ 25440 /* cmp MEM32(ecx), esi */ /* 0x3614B376: cmp dword ptr [ecx], esi */ 25441 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(esi); 25442 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25443 _flag_k = FK_CMP; 25444 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B37E; /* 0x3614B378: jne 0x3614b37e */ 25445 L_3614B37A: 25446 MEM32(ecx) = eax; /* 0x3614B37A: mov dword ptr [ecx], eax */ 25447 goto L_3614B381; /* 0x3614B37C: jmp 0x3614b381 */ 25448 L_3614B37E: 25449 MEM32(ecx + 0x8) = eax; /* 0x3614B37E: mov dword ptr [ecx + 8], eax */ 25450 L_3614B381: 25451 ebx = MEM32(edi + 0x4); /* 0x3614B381: mov ebx, dword ptr [edi + 4] */ 25452 /* cmp MEM32(ebx), esi */ /* 0x3614B384: cmp dword ptr [ebx], esi */ 25453 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 25454 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25455 _flag_k = FK_CMP; 25456 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B3AB; /* 0x3614B386: jne 0x3614b3ab */ 25457 L_3614B388: 25458 ecx = MEM32(esi + 0x8); /* 0x3614B388: mov ecx, dword ptr [esi + 8] */ 25459 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614B38B: cmp ecx, dword ptr [edi + 8] */ 25460 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 25461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25462 _flag_k = FK_CMP; 25463 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B395; /* 0x3614B38E: jne 0x3614b395 */ 25464 L_3614B390: 25465 edx = MEM32(esi + 0x4); /* 0x3614B390: mov edx, dword ptr [esi + 4] */ 25466 goto L_3614B3A9; /* 0x3614B393: jmp 0x3614b3a9 */ 25467 L_3614B395: 25468 ecx = MEM32(eax); /* 0x3614B395: mov ecx, dword ptr [eax] */ 25469 /* cmp MEM8(ecx + 0x21), 0 */ /* 0x3614B397: cmp byte ptr [ecx + 0x21], 0 */ 25470 _flag_a = (uint32_t)(MEM8(ecx + 0x21)) << 24; _flag_b = (uint32_t)(0) << 24; 25471 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25472 _flag_k = FK_NARROW(FK_CMP, 24); 25473 edx = eax; /* 0x3614B39B: mov edx, eax */ 25474 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B3A9; /* 0x3614B39D: jne 0x3614b3a9 */ 25475 L_3614B39F: 25476 edx = ecx; /* 0x3614B39F: mov edx, ecx */ 25477 ecx = MEM32(edx); /* 0x3614B3A1: mov ecx, dword ptr [edx] */ 25478 /* cmp MEM8(ecx + 0x21), 0 */ /* 0x3614B3A3: cmp byte ptr [ecx + 0x21], 0 */ 25479 _flag_a = (uint32_t)(MEM8(ecx + 0x21)) << 24; _flag_b = (uint32_t)(0) << 24; 25480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25481 _flag_k = FK_NARROW(FK_CMP, 24); 25482 RECOMP_BACKEDGE(); 25483 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B39F; /* 0x3614B3A7: je 0x3614b39f */ 25484 L_3614B3A9: 25485 MEM32(ebx) = edx; /* 0x3614B3A9: mov dword ptr [ebx], edx */ 25486 L_3614B3AB: 25487 ebx = MEM32(edi + 0x4); /* 0x3614B3AB: mov ebx, dword ptr [edi + 4] */ 25488 /* cmp MEM32(ebx + 0x8), esi */ /* 0x3614B3AE: cmp dword ptr [ebx + 8], esi */ 25489 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 25490 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25491 _flag_k = FK_CMP; 25492 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B3D8; /* 0x3614B3B1: jne 0x3614b3d8 */ 25493 L_3614B3B3: 25494 ecx = MEM32(esi); /* 0x3614B3B3: mov ecx, dword ptr [esi] */ 25495 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614B3B5: cmp ecx, dword ptr [edi + 8] */ 25496 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 25497 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25498 _flag_k = FK_CMP; 25499 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B3BF; /* 0x3614B3B8: jne 0x3614b3bf */ 25500 L_3614B3BA: 25501 edx = MEM32(esi + 0x4); /* 0x3614B3BA: mov edx, dword ptr [esi + 4] */ 25502 goto L_3614B3D5; /* 0x3614B3BD: jmp 0x3614b3d5 */ 25503 L_3614B3BF: 25504 ecx = MEM32(eax + 0x8); /* 0x3614B3BF: mov ecx, dword ptr [eax + 8] */ 25505 /* cmp MEM8(ecx + 0x21), 0 */ /* 0x3614B3C2: cmp byte ptr [ecx + 0x21], 0 */ 25506 _flag_a = (uint32_t)(MEM8(ecx + 0x21)) << 24; _flag_b = (uint32_t)(0) << 24; 25507 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25508 _flag_k = FK_NARROW(FK_CMP, 24); 25509 edx = eax; /* 0x3614B3C6: mov edx, eax */ 25510 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B3D5; /* 0x3614B3C8: jne 0x3614b3d5 */ 25511 L_3614B3CA: 25512 edx = ecx; /* 0x3614B3CA: mov edx, ecx */ 25513 ecx = MEM32(edx + 0x8); /* 0x3614B3CC: mov ecx, dword ptr [edx + 8] */ 25514 /* cmp MEM8(ecx + 0x21), 0 */ /* 0x3614B3CF: cmp byte ptr [ecx + 0x21], 0 */ 25515 _flag_a = (uint32_t)(MEM8(ecx + 0x21)) << 24; _flag_b = (uint32_t)(0) << 24; 25516 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25517 _flag_k = FK_NARROW(FK_CMP, 24); 25518 RECOMP_BACKEDGE(); 25519 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B3CA; /* 0x3614B3D3: je 0x3614b3ca */ 25520 L_3614B3D5: 25521 MEM32(ebx + 0x8) = edx; /* 0x3614B3D5: mov dword ptr [ebx + 8], edx */ 25522 L_3614B3D8: 25523 esi = MEM32(ebp + (-0x4)); /* 0x3614B3D8: mov esi, dword ptr [ebp - 4] */ 25524 SET_LO8(ecx, MEM8(esi + 0x20)); /* 0x3614B3DB: mov cl, byte ptr [esi + 0x20] */ 25525 SET_LO8(ebx, 1); /* 0x3614B3DE: mov bl, 1 */ 25526 /* cmp LO8(ecx), LO8(ebx) */ /* 0x3614B3E0: cmp cl, bl */ 25527 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 25528 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25529 _flag_k = FK_NARROW(FK_CMP, 24); 25530 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B648; /* 0x3614B3E2: jne 0x3614b648 */ 25531 L_3614B3E8: 25532 ecx = MEM32(edi + 0x4); /* 0x3614B3E8: mov ecx, dword ptr [edi + 4] */ 25533 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B3EB: cmp eax, dword ptr [ecx + 4] */ 25534 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 25535 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25536 _flag_k = FK_CMP; 25537 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B642; /* 0x3614B3EE: je 0x3614b642 */ 25538 L_3614B3F4: 25539 /* cmp MEM8(eax + 0x20), LO8(ebx) */ /* 0x3614B3F4: cmp byte ptr [eax + 0x20], bl */ 25540 _flag_a = (uint32_t)(MEM8(eax + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 25541 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25542 _flag_k = FK_NARROW(FK_CMP, 24); 25543 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B642; /* 0x3614B3F7: jne 0x3614b642 */ 25544 L_3614B3FD: 25545 edx = MEM32(eax + 0x4); /* 0x3614B3FD: mov edx, dword ptr [eax + 4] */ 25546 ecx = MEM32(edx); /* 0x3614B400: mov ecx, dword ptr [edx] */ 25547 /* cmp eax, ecx */ /* 0x3614B402: cmp eax, ecx */ 25548 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 25549 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25550 _flag_k = FK_CMP; 25551 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B474; /* 0x3614B404: jne 0x3614b474 */ 25552 L_3614B406: 25553 ecx = MEM32(edx + 0x8); /* 0x3614B406: mov ecx, dword ptr [edx + 8] */ 25554 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B409: mov dl, byte ptr [ecx + 0x20] */ 25555 /* test LO8(edx), LO8(edx) */ /* 0x3614B40C: test dl, dl */ 25556 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 25557 _cf = 0; 25558 _flag_k = FK_NARROW(FK_TEST, 24); 25559 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B45B; /* 0x3614B40E: jne 0x3614b45b */ 25560 L_3614B410: 25561 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B410: mov byte ptr [ecx + 0x20], bl */ 25562 edx = MEM32(eax + 0x4); /* 0x3614B413: mov edx, dword ptr [eax + 4] */ 25563 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x3614B416: mov byte ptr [edx + 0x20], 0 */ 25564 ecx = MEM32(eax + 0x4); /* 0x3614B41A: mov ecx, dword ptr [eax + 4] */ 25565 edx = MEM32(ecx + 0x8); /* 0x3614B41D: mov edx, dword ptr [ecx + 8] */ 25566 esi = MEM32(edx); /* 0x3614B420: mov esi, dword ptr [edx] */ 25567 MEM32(ecx + 0x8) = esi; /* 0x3614B422: mov dword ptr [ecx + 8], esi */ 25568 esi = MEM32(edx); /* 0x3614B425: mov esi, dword ptr [edx] */ 25569 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B427: cmp esi, dword ptr [edi + 8] */ 25570 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 25571 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25572 _flag_k = FK_CMP; 25573 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B42F; /* 0x3614B42A: je 0x3614b42f */ 25574 L_3614B42C: 25575 MEM32(esi + 0x4) = ecx; /* 0x3614B42C: mov dword ptr [esi + 4], ecx */ 25576 L_3614B42F: 25577 esi = MEM32(ecx + 0x4); /* 0x3614B42F: mov esi, dword ptr [ecx + 4] */ 25578 MEM32(edx + 0x4) = esi; /* 0x3614B432: mov dword ptr [edx + 4], esi */ 25579 esi = MEM32(edi + 0x4); /* 0x3614B435: mov esi, dword ptr [edi + 4] */ 25580 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B438: cmp ecx, dword ptr [esi + 4] */ 25581 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 25582 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25583 _flag_k = FK_CMP; 25584 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B442; /* 0x3614B43B: jne 0x3614b442 */ 25585 L_3614B43D: 25586 MEM32(esi + 0x4) = edx; /* 0x3614B43D: mov dword ptr [esi + 4], edx */ 25587 goto L_3614B450; /* 0x3614B440: jmp 0x3614b450 */ 25588 L_3614B442: 25589 esi = MEM32(ecx + 0x4); /* 0x3614B442: mov esi, dword ptr [ecx + 4] */ 25590 /* cmp ecx, MEM32(esi) */ /* 0x3614B445: cmp ecx, dword ptr [esi] */ 25591 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 25592 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25593 _flag_k = FK_CMP; 25594 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B44D; /* 0x3614B447: jne 0x3614b44d */ 25595 L_3614B449: 25596 MEM32(esi) = edx; /* 0x3614B449: mov dword ptr [esi], edx */ 25597 goto L_3614B450; /* 0x3614B44B: jmp 0x3614b450 */ 25598 L_3614B44D: 25599 MEM32(esi + 0x8) = edx; /* 0x3614B44D: mov dword ptr [esi + 8], edx */ 25600 L_3614B450: 25601 MEM32(edx) = ecx; /* 0x3614B450: mov dword ptr [edx], ecx */ 25602 MEM32(ecx + 0x4) = edx; /* 0x3614B452: mov dword ptr [ecx + 4], edx */ 25603 ecx = MEM32(eax + 0x4); /* 0x3614B455: mov ecx, dword ptr [eax + 4] */ 25604 ecx = MEM32(ecx + 0x8); /* 0x3614B458: mov ecx, dword ptr [ecx + 8] */ 25605 L_3614B45B: 25606 edx = MEM32(ecx); /* 0x3614B45B: mov edx, dword ptr [ecx] */ 25607 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B45D: cmp byte ptr [edx + 0x20], bl */ 25608 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 25609 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25610 _flag_k = FK_NARROW(FK_CMP, 24); 25611 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4F6; /* 0x3614B460: jne 0x3614b4f6 */ 25612 L_3614B466: 25613 edx = MEM32(ecx + 0x8); /* 0x3614B466: mov edx, dword ptr [ecx + 8] */ 25614 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B469: cmp byte ptr [edx + 0x20], bl */ 25615 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 25616 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25617 _flag_k = FK_NARROW(FK_CMP, 24); 25618 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4F6; /* 0x3614B46C: jne 0x3614b4f6 */ 25619 L_3614B472: 25620 goto L_3614B4DE; /* 0x3614B472: jmp 0x3614b4de */ 25621 L_3614B474: 25622 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B474: mov dl, byte ptr [ecx + 0x20] */ 25623 /* test LO8(edx), LO8(edx) */ /* 0x3614B477: test dl, dl */ 25624 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 25625 _cf = 0; 25626 _flag_k = FK_NARROW(FK_TEST, 24); 25627 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B4C7; /* 0x3614B479: jne 0x3614b4c7 */ 25628 L_3614B47B: 25629 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B47B: mov byte ptr [ecx + 0x20], bl */ 25630 ecx = MEM32(eax + 0x4); /* 0x3614B47E: mov ecx, dword ptr [eax + 4] */ 25631 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B481: mov byte ptr [ecx + 0x20], 0 */ 25632 ecx = MEM32(eax + 0x4); /* 0x3614B485: mov ecx, dword ptr [eax + 4] */ 25633 edx = MEM32(ecx); /* 0x3614B488: mov edx, dword ptr [ecx] */ 25634 esi = MEM32(edx + 0x8); /* 0x3614B48A: mov esi, dword ptr [edx + 8] */ 25635 MEM32(ecx) = esi; /* 0x3614B48D: mov dword ptr [ecx], esi */ 25636 esi = MEM32(edx + 0x8); /* 0x3614B48F: mov esi, dword ptr [edx + 8] */ 25637 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B492: cmp esi, dword ptr [edi + 8] */ 25638 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 25639 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25640 _flag_k = FK_CMP; 25641 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B49A; /* 0x3614B495: je 0x3614b49a */ 25642 L_3614B497: 25643 MEM32(esi + 0x4) = ecx; /* 0x3614B497: mov dword ptr [esi + 4], ecx */ 25644 L_3614B49A: 25645 esi = MEM32(ecx + 0x4); /* 0x3614B49A: mov esi, dword ptr [ecx + 4] */ 25646 MEM32(edx + 0x4) = esi; /* 0x3614B49D: mov dword ptr [edx + 4], esi */ 25647 esi = MEM32(edi + 0x4); /* 0x3614B4A0: mov esi, dword ptr [edi + 4] */ 25648 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B4A3: cmp ecx, dword ptr [esi + 4] */ 25649 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 25650 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25651 _flag_k = FK_CMP; 25652 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4AD; /* 0x3614B4A6: jne 0x3614b4ad */ 25653 L_3614B4A8: 25654 MEM32(esi + 0x4) = edx; /* 0x3614B4A8: mov dword ptr [esi + 4], edx */ 25655 goto L_3614B4BC; /* 0x3614B4AB: jmp 0x3614b4bc */ 25656 L_3614B4AD: 25657 esi = MEM32(ecx + 0x4); /* 0x3614B4AD: mov esi, dword ptr [ecx + 4] */ 25658 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B4B0: cmp ecx, dword ptr [esi + 8] */ 25659 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 25660 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25661 _flag_k = FK_CMP; 25662 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4BA; /* 0x3614B4B3: jne 0x3614b4ba */ 25663 L_3614B4B5: 25664 MEM32(esi + 0x8) = edx; /* 0x3614B4B5: mov dword ptr [esi + 8], edx */ 25665 goto L_3614B4BC; /* 0x3614B4B8: jmp 0x3614b4bc */ 25666 L_3614B4BA: 25667 MEM32(esi) = edx; /* 0x3614B4BA: mov dword ptr [esi], edx */ 25668 L_3614B4BC: 25669 MEM32(edx + 0x8) = ecx; /* 0x3614B4BC: mov dword ptr [edx + 8], ecx */ 25670 MEM32(ecx + 0x4) = edx; /* 0x3614B4BF: mov dword ptr [ecx + 4], edx */ 25671 edx = MEM32(eax + 0x4); /* 0x3614B4C2: mov edx, dword ptr [eax + 4] */ 25672 ecx = MEM32(edx); /* 0x3614B4C5: mov ecx, dword ptr [edx] */ 25673 L_3614B4C7: 25674 edx = MEM32(ecx + 0x8); /* 0x3614B4C7: mov edx, dword ptr [ecx + 8] */ 25675 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4CA: cmp byte ptr [edx + 0x20], bl */ 25676 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 25677 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25678 _flag_k = FK_NARROW(FK_CMP, 24); 25679 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5A3; /* 0x3614B4CD: jne 0x3614b5a3 */ 25680 L_3614B4D3: 25681 edx = MEM32(ecx); /* 0x3614B4D3: mov edx, dword ptr [ecx] */ 25682 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4D5: cmp byte ptr [edx + 0x20], bl */ 25683 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 25684 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25685 _flag_k = FK_NARROW(FK_CMP, 24); 25686 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5A3; /* 0x3614B4D8: jne 0x3614b5a3 */ 25687 L_3614B4DE: 25688 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B4DE: mov byte ptr [ecx + 0x20], 0 */ 25689 ecx = MEM32(edi + 0x4); /* 0x3614B4E2: mov ecx, dword ptr [edi + 4] */ 25690 eax = MEM32(eax + 0x4); /* 0x3614B4E5: mov eax, dword ptr [eax + 4] */ 25691 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B4E8: cmp eax, dword ptr [ecx + 4] */ 25692 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 25693 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25694 _flag_k = FK_CMP; 25695 RECOMP_BACKEDGE(); 25696 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B3F4; /* 0x3614B4EB: jne 0x3614b3f4 */ 25697 L_3614B4F1: 25698 goto L_3614B642; /* 0x3614B4F1: jmp 0x3614b642 */ 25699 L_3614B4F6: 25700 edx = MEM32(ecx + 0x8); /* 0x3614B4F6: mov edx, dword ptr [ecx + 8] */ 25701 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4F9: cmp byte ptr [edx + 0x20], bl */ 25702 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 25703 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25704 _flag_k = FK_NARROW(FK_CMP, 24); 25705 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B547; /* 0x3614B4FC: jne 0x3614b547 */ 25706 L_3614B4FE: 25707 edx = MEM32(ecx); /* 0x3614B4FE: mov edx, dword ptr [ecx] */ 25708 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B500: mov byte ptr [edx + 0x20], bl */ 25709 edx = MEM32(ecx); /* 0x3614B503: mov edx, dword ptr [ecx] */ 25710 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B505: mov byte ptr [ecx + 0x20], 0 */ 25711 esi = MEM32(edx + 0x8); /* 0x3614B509: mov esi, dword ptr [edx + 8] */ 25712 MEM32(ecx) = esi; /* 0x3614B50C: mov dword ptr [ecx], esi */ 25713 esi = MEM32(edx + 0x8); /* 0x3614B50E: mov esi, dword ptr [edx + 8] */ 25714 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B511: cmp esi, dword ptr [edi + 8] */ 25715 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 25716 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25717 _flag_k = FK_CMP; 25718 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B519; /* 0x3614B514: je 0x3614b519 */ 25719 L_3614B516: 25720 MEM32(esi + 0x4) = ecx; /* 0x3614B516: mov dword ptr [esi + 4], ecx */ 25721 L_3614B519: 25722 esi = MEM32(ecx + 0x4); /* 0x3614B519: mov esi, dword ptr [ecx + 4] */ 25723 MEM32(edx + 0x4) = esi; /* 0x3614B51C: mov dword ptr [edx + 4], esi */ 25724 esi = MEM32(edi + 0x4); /* 0x3614B51F: mov esi, dword ptr [edi + 4] */ 25725 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B522: cmp ecx, dword ptr [esi + 4] */ 25726 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 25727 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25728 _flag_k = FK_CMP; 25729 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B52C; /* 0x3614B525: jne 0x3614b52c */ 25730 L_3614B527: 25731 MEM32(esi + 0x4) = edx; /* 0x3614B527: mov dword ptr [esi + 4], edx */ 25732 goto L_3614B53B; /* 0x3614B52A: jmp 0x3614b53b */ 25733 L_3614B52C: 25734 esi = MEM32(ecx + 0x4); /* 0x3614B52C: mov esi, dword ptr [ecx + 4] */ 25735 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B52F: cmp ecx, dword ptr [esi + 8] */ 25736 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 25737 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25738 _flag_k = FK_CMP; 25739 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B539; /* 0x3614B532: jne 0x3614b539 */ 25740 L_3614B534: 25741 MEM32(esi + 0x8) = edx; /* 0x3614B534: mov dword ptr [esi + 8], edx */ 25742 goto L_3614B53B; /* 0x3614B537: jmp 0x3614b53b */ 25743 L_3614B539: 25744 MEM32(esi) = edx; /* 0x3614B539: mov dword ptr [esi], edx */ 25745 L_3614B53B: 25746 MEM32(edx + 0x8) = ecx; /* 0x3614B53B: mov dword ptr [edx + 8], ecx */ 25747 MEM32(ecx + 0x4) = edx; /* 0x3614B53E: mov dword ptr [ecx + 4], edx */ 25748 ecx = MEM32(eax + 0x4); /* 0x3614B541: mov ecx, dword ptr [eax + 4] */ 25749 ecx = MEM32(ecx + 0x8); /* 0x3614B544: mov ecx, dword ptr [ecx + 8] */ 25750 L_3614B547: 25751 edx = MEM32(eax + 0x4); /* 0x3614B547: mov edx, dword ptr [eax + 4] */ 25752 SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3614B54A: mov dl, byte ptr [edx + 0x20] */ 25753 MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B54D: mov byte ptr [ecx + 0x20], dl */ 25754 edx = MEM32(eax + 0x4); /* 0x3614B550: mov edx, dword ptr [eax + 4] */ 25755 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B553: mov byte ptr [edx + 0x20], bl */ 25756 ecx = MEM32(ecx + 0x8); /* 0x3614B556: mov ecx, dword ptr [ecx + 8] */ 25757 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B559: mov byte ptr [ecx + 0x20], bl */ 25758 ecx = MEM32(eax + 0x4); /* 0x3614B55C: mov ecx, dword ptr [eax + 4] */ 25759 edx = MEM32(ecx + 0x8); /* 0x3614B55F: mov edx, dword ptr [ecx + 8] */ 25760 esi = MEM32(edx); /* 0x3614B562: mov esi, dword ptr [edx] */ 25761 MEM32(ecx + 0x8) = esi; /* 0x3614B564: mov dword ptr [ecx + 8], esi */ 25762 esi = MEM32(edx); /* 0x3614B567: mov esi, dword ptr [edx] */ 25763 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B569: cmp esi, dword ptr [edi + 8] */ 25764 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 25765 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25766 _flag_k = FK_CMP; 25767 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B571; /* 0x3614B56C: je 0x3614b571 */ 25768 L_3614B56E: 25769 MEM32(esi + 0x4) = ecx; /* 0x3614B56E: mov dword ptr [esi + 4], ecx */ 25770 L_3614B571: 25771 esi = MEM32(ecx + 0x4); /* 0x3614B571: mov esi, dword ptr [ecx + 4] */ 25772 MEM32(edx + 0x4) = esi; /* 0x3614B574: mov dword ptr [edx + 4], esi */ 25773 esi = MEM32(edi + 0x4); /* 0x3614B577: mov esi, dword ptr [edi + 4] */ 25774 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B57A: cmp ecx, dword ptr [esi + 4] */ 25775 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 25776 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25777 _flag_k = FK_CMP; 25778 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B589; /* 0x3614B57D: jne 0x3614b589 */ 25779 L_3614B57F: 25780 MEM32(esi + 0x4) = edx; /* 0x3614B57F: mov dword ptr [esi + 4], edx */ 25781 MEM32(edx) = ecx; /* 0x3614B582: mov dword ptr [edx], ecx */ 25782 goto L_3614B63F; /* 0x3614B584: jmp 0x3614b63f */ 25783 L_3614B589: 25784 esi = MEM32(ecx + 0x4); /* 0x3614B589: mov esi, dword ptr [ecx + 4] */ 25785 /* cmp ecx, MEM32(esi) */ /* 0x3614B58C: cmp ecx, dword ptr [esi] */ 25786 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 25787 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25788 _flag_k = FK_CMP; 25789 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B599; /* 0x3614B58E: jne 0x3614b599 */ 25790 L_3614B590: 25791 MEM32(esi) = edx; /* 0x3614B590: mov dword ptr [esi], edx */ 25792 MEM32(edx) = ecx; /* 0x3614B592: mov dword ptr [edx], ecx */ 25793 goto L_3614B63F; /* 0x3614B594: jmp 0x3614b63f */ 25794 L_3614B599: 25795 MEM32(esi + 0x8) = edx; /* 0x3614B599: mov dword ptr [esi + 8], edx */ 25796 MEM32(edx) = ecx; /* 0x3614B59C: mov dword ptr [edx], ecx */ 25797 goto L_3614B63F; /* 0x3614B59E: jmp 0x3614b63f */ 25798 L_3614B5A3: 25799 edx = MEM32(ecx); /* 0x3614B5A3: mov edx, dword ptr [ecx] */ 25800 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B5A5: cmp byte ptr [edx + 0x20], bl */ 25801 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 25802 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25803 _flag_k = FK_NARROW(FK_CMP, 24); 25804 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5F1; /* 0x3614B5A8: jne 0x3614b5f1 */ 25805 L_3614B5AA: 25806 edx = MEM32(ecx + 0x8); /* 0x3614B5AA: mov edx, dword ptr [ecx + 8] */ 25807 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B5AD: mov byte ptr [edx + 0x20], bl */ 25808 edx = MEM32(ecx + 0x8); /* 0x3614B5B0: mov edx, dword ptr [ecx + 8] */ 25809 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B5B3: mov byte ptr [ecx + 0x20], 0 */ 25810 esi = MEM32(edx); /* 0x3614B5B7: mov esi, dword ptr [edx] */ 25811 MEM32(ecx + 0x8) = esi; /* 0x3614B5B9: mov dword ptr [ecx + 8], esi */ 25812 esi = MEM32(edx); /* 0x3614B5BC: mov esi, dword ptr [edx] */ 25813 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B5BE: cmp esi, dword ptr [edi + 8] */ 25814 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 25815 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25816 _flag_k = FK_CMP; 25817 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B5C6; /* 0x3614B5C1: je 0x3614b5c6 */ 25818 L_3614B5C3: 25819 MEM32(esi + 0x4) = ecx; /* 0x3614B5C3: mov dword ptr [esi + 4], ecx */ 25820 L_3614B5C6: 25821 esi = MEM32(ecx + 0x4); /* 0x3614B5C6: mov esi, dword ptr [ecx + 4] */ 25822 MEM32(edx + 0x4) = esi; /* 0x3614B5C9: mov dword ptr [edx + 4], esi */ 25823 esi = MEM32(edi + 0x4); /* 0x3614B5CC: mov esi, dword ptr [edi + 4] */ 25824 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B5CF: cmp ecx, dword ptr [esi + 4] */ 25825 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 25826 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25827 _flag_k = FK_CMP; 25828 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5D9; /* 0x3614B5D2: jne 0x3614b5d9 */ 25829 L_3614B5D4: 25830 MEM32(esi + 0x4) = edx; /* 0x3614B5D4: mov dword ptr [esi + 4], edx */ 25831 goto L_3614B5E7; /* 0x3614B5D7: jmp 0x3614b5e7 */ 25832 L_3614B5D9: 25833 esi = MEM32(ecx + 0x4); /* 0x3614B5D9: mov esi, dword ptr [ecx + 4] */ 25834 /* cmp ecx, MEM32(esi) */ /* 0x3614B5DC: cmp ecx, dword ptr [esi] */ 25835 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 25836 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25837 _flag_k = FK_CMP; 25838 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5E4; /* 0x3614B5DE: jne 0x3614b5e4 */ 25839 L_3614B5E0: 25840 MEM32(esi) = edx; /* 0x3614B5E0: mov dword ptr [esi], edx */ 25841 goto L_3614B5E7; /* 0x3614B5E2: jmp 0x3614b5e7 */ 25842 L_3614B5E4: 25843 MEM32(esi + 0x8) = edx; /* 0x3614B5E4: mov dword ptr [esi + 8], edx */ 25844 L_3614B5E7: 25845 MEM32(edx) = ecx; /* 0x3614B5E7: mov dword ptr [edx], ecx */ 25846 MEM32(ecx + 0x4) = edx; /* 0x3614B5E9: mov dword ptr [ecx + 4], edx */ 25847 ecx = MEM32(eax + 0x4); /* 0x3614B5EC: mov ecx, dword ptr [eax + 4] */ 25848 ecx = MEM32(ecx); /* 0x3614B5EF: mov ecx, dword ptr [ecx] */ 25849 L_3614B5F1: 25850 edx = MEM32(eax + 0x4); /* 0x3614B5F1: mov edx, dword ptr [eax + 4] */ 25851 SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3614B5F4: mov dl, byte ptr [edx + 0x20] */ 25852 MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B5F7: mov byte ptr [ecx + 0x20], dl */ 25853 edx = MEM32(eax + 0x4); /* 0x3614B5FA: mov edx, dword ptr [eax + 4] */ 25854 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B5FD: mov byte ptr [edx + 0x20], bl */ 25855 ecx = MEM32(ecx); /* 0x3614B600: mov ecx, dword ptr [ecx] */ 25856 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B602: mov byte ptr [ecx + 0x20], bl */ 25857 ecx = MEM32(eax + 0x4); /* 0x3614B605: mov ecx, dword ptr [eax + 4] */ 25858 edx = MEM32(ecx); /* 0x3614B608: mov edx, dword ptr [ecx] */ 25859 esi = MEM32(edx + 0x8); /* 0x3614B60A: mov esi, dword ptr [edx + 8] */ 25860 MEM32(ecx) = esi; /* 0x3614B60D: mov dword ptr [ecx], esi */ 25861 esi = MEM32(edx + 0x8); /* 0x3614B60F: mov esi, dword ptr [edx + 8] */ 25862 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B612: cmp esi, dword ptr [edi + 8] */ 25863 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 25864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25865 _flag_k = FK_CMP; 25866 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B61A; /* 0x3614B615: je 0x3614b61a */ 25867 L_3614B617: 25868 MEM32(esi + 0x4) = ecx; /* 0x3614B617: mov dword ptr [esi + 4], ecx */ 25869 L_3614B61A: 25870 esi = MEM32(ecx + 0x4); /* 0x3614B61A: mov esi, dword ptr [ecx + 4] */ 25871 MEM32(edx + 0x4) = esi; /* 0x3614B61D: mov dword ptr [edx + 4], esi */ 25872 esi = MEM32(edi + 0x4); /* 0x3614B620: mov esi, dword ptr [edi + 4] */ 25873 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B623: cmp ecx, dword ptr [esi + 4] */ 25874 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 25875 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25876 _flag_k = FK_CMP; 25877 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B62D; /* 0x3614B626: jne 0x3614b62d */ 25878 L_3614B628: 25879 MEM32(esi + 0x4) = edx; /* 0x3614B628: mov dword ptr [esi + 4], edx */ 25880 goto L_3614B63C; /* 0x3614B62B: jmp 0x3614b63c */ 25881 L_3614B62D: 25882 esi = MEM32(ecx + 0x4); /* 0x3614B62D: mov esi, dword ptr [ecx + 4] */ 25883 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B630: cmp ecx, dword ptr [esi + 8] */ 25884 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 25885 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25886 _flag_k = FK_CMP; 25887 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B63A; /* 0x3614B633: jne 0x3614b63a */ 25888 L_3614B635: 25889 MEM32(esi + 0x8) = edx; /* 0x3614B635: mov dword ptr [esi + 8], edx */ 25890 goto L_3614B63C; /* 0x3614B638: jmp 0x3614b63c */ 25891 L_3614B63A: 25892 MEM32(esi) = edx; /* 0x3614B63A: mov dword ptr [esi], edx */ 25893 L_3614B63C: 25894 MEM32(edx + 0x8) = ecx; /* 0x3614B63C: mov dword ptr [edx + 8], ecx */ 25895 L_3614B63F: 25896 MEM32(ecx + 0x4) = edx; /* 0x3614B63F: mov dword ptr [ecx + 4], edx */ 25897 L_3614B642: 25898 esi = MEM32(ebp + (-0x4)); /* 0x3614B642: mov esi, dword ptr [ebp - 4] */ 25899 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B645: mov byte ptr [eax + 0x20], bl */ 25900 L_3614B648: 25901 ecx = esi + 0xC; /* 0x3614B648: lea ecx, [esi + 0xc] */ 25902 RECOMP_ICALL(0x3614AFC0u); /* 0x3614B64B: call 0x3614afc0 */ /* not lifted */ 25903 RECOMP_FLAGS_IN(); 25904 PUSH32(esp, esi); /* 0x3614B650: push esi */ 25905 RECOMP_ICALL(0x3615FCC4u); /* 0x3614B651: call 0x3615fcc4 */ /* not lifted */ 25906 RECOMP_FLAGS_IN(); 25907 eax = MEM32(edi + 0x10); /* 0x3614B656: mov eax, dword ptr [edi + 0x10] */ 25908 edx = MEM32(ebp + 0xC); /* 0x3614B659: mov edx, dword ptr [ebp + 0xc] */ 25909 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 25910 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25911 esp = esp + 4; /* 0x3614B65C: add esp, 4 */ 25912 _flag_k = FK_ADD; 25913 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 25914 eax = eax - 1; /* 0x3614B65F: dec eax */ 25915 _flag_k = FK_DEC; 25916 MEM32(edi + 0x10) = eax; /* 0x3614B660: mov dword ptr [edi + 0x10], eax */ 25917 eax = MEM32(ebp + 0x8); /* 0x3614B663: mov eax, dword ptr [ebp + 8] */ 25918 edi = POP32_VAL(esp); /* 0x3614B666: pop edi */ 25919 esi = POP32_VAL(esp); /* 0x3614B667: pop esi */ 25920 MEM32(eax) = edx; /* 0x3614B668: mov dword ptr [eax], edx */ 25921 ebx = POP32_VAL(esp); /* 0x3614B66A: pop ebx */ 25922 esp = ebp; /* 0x3614B66B: mov esp, ebp */ 25923 ebp = POP32_VAL(esp); /* 0x3614B66D: pop ebp */ 25924 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614B66E: ret 8 */ 25925 RECOMP_REGS_OUT(); 25926 } 25927 25928 void sub_3614B381(void) { 25929 int _fpu_cmp = 0; 25930 uint32_t _cf = 0; 25931 int _df = 1; 25932 uint32_t _flag_k = FK_NONE; 25933 uint32_t _flag_a = 0, _flag_b = 0; 25934 uint32_t _itail_tgt = 0; 25935 RECOMP_REGS_LOCALS 25936 RECOMP_ENTER(0x3614B381u); 25937 25938 L_3614B381: 25939 ebx = MEM32(edi + 0x4); /* 0x3614B381: mov ebx, dword ptr [edi + 4] */ 25940 /* cmp MEM32(ebx), esi */ /* 0x3614B384: cmp dword ptr [ebx], esi */ 25941 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 25942 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25943 _flag_k = FK_CMP; 25944 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B3AB; /* 0x3614B386: jne 0x3614b3ab */ 25945 L_3614B388: 25946 ecx = MEM32(esi + 0x8); /* 0x3614B388: mov ecx, dword ptr [esi + 8] */ 25947 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614B38B: cmp ecx, dword ptr [edi + 8] */ 25948 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 25949 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25950 _flag_k = FK_CMP; 25951 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B395; /* 0x3614B38E: jne 0x3614b395 */ 25952 L_3614B390: 25953 edx = MEM32(esi + 0x4); /* 0x3614B390: mov edx, dword ptr [esi + 4] */ 25954 goto L_3614B3A9; /* 0x3614B393: jmp 0x3614b3a9 */ 25955 L_3614B395: 25956 ecx = MEM32(eax); /* 0x3614B395: mov ecx, dword ptr [eax] */ 25957 /* cmp MEM8(ecx + 0x21), 0 */ /* 0x3614B397: cmp byte ptr [ecx + 0x21], 0 */ 25958 _flag_a = (uint32_t)(MEM8(ecx + 0x21)) << 24; _flag_b = (uint32_t)(0) << 24; 25959 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25960 _flag_k = FK_NARROW(FK_CMP, 24); 25961 edx = eax; /* 0x3614B39B: mov edx, eax */ 25962 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B3A9; /* 0x3614B39D: jne 0x3614b3a9 */ 25963 L_3614B39F: 25964 edx = ecx; /* 0x3614B39F: mov edx, ecx */ 25965 ecx = MEM32(edx); /* 0x3614B3A1: mov ecx, dword ptr [edx] */ 25966 /* cmp MEM8(ecx + 0x21), 0 */ /* 0x3614B3A3: cmp byte ptr [ecx + 0x21], 0 */ 25967 _flag_a = (uint32_t)(MEM8(ecx + 0x21)) << 24; _flag_b = (uint32_t)(0) << 24; 25968 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25969 _flag_k = FK_NARROW(FK_CMP, 24); 25970 RECOMP_BACKEDGE(); 25971 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B39F; /* 0x3614B3A7: je 0x3614b39f */ 25972 L_3614B3A9: 25973 MEM32(ebx) = edx; /* 0x3614B3A9: mov dword ptr [ebx], edx */ 25974 L_3614B3AB: 25975 ebx = MEM32(edi + 0x4); /* 0x3614B3AB: mov ebx, dword ptr [edi + 4] */ 25976 /* cmp MEM32(ebx + 0x8), esi */ /* 0x3614B3AE: cmp dword ptr [ebx + 8], esi */ 25977 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 25978 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25979 _flag_k = FK_CMP; 25980 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B3D8; /* 0x3614B3B1: jne 0x3614b3d8 */ 25981 L_3614B3B3: 25982 ecx = MEM32(esi); /* 0x3614B3B3: mov ecx, dword ptr [esi] */ 25983 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614B3B5: cmp ecx, dword ptr [edi + 8] */ 25984 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 25985 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25986 _flag_k = FK_CMP; 25987 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B3BF; /* 0x3614B3B8: jne 0x3614b3bf */ 25988 L_3614B3BA: 25989 edx = MEM32(esi + 0x4); /* 0x3614B3BA: mov edx, dword ptr [esi + 4] */ 25990 goto L_3614B3D5; /* 0x3614B3BD: jmp 0x3614b3d5 */ 25991 L_3614B3BF: 25992 ecx = MEM32(eax + 0x8); /* 0x3614B3BF: mov ecx, dword ptr [eax + 8] */ 25993 /* cmp MEM8(ecx + 0x21), 0 */ /* 0x3614B3C2: cmp byte ptr [ecx + 0x21], 0 */ 25994 _flag_a = (uint32_t)(MEM8(ecx + 0x21)) << 24; _flag_b = (uint32_t)(0) << 24; 25995 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 25996 _flag_k = FK_NARROW(FK_CMP, 24); 25997 edx = eax; /* 0x3614B3C6: mov edx, eax */ 25998 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B3D5; /* 0x3614B3C8: jne 0x3614b3d5 */ 25999 L_3614B3CA: 26000 edx = ecx; /* 0x3614B3CA: mov edx, ecx */ 26001 ecx = MEM32(edx + 0x8); /* 0x3614B3CC: mov ecx, dword ptr [edx + 8] */ 26002 /* cmp MEM8(ecx + 0x21), 0 */ /* 0x3614B3CF: cmp byte ptr [ecx + 0x21], 0 */ 26003 _flag_a = (uint32_t)(MEM8(ecx + 0x21)) << 24; _flag_b = (uint32_t)(0) << 24; 26004 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26005 _flag_k = FK_NARROW(FK_CMP, 24); 26006 RECOMP_BACKEDGE(); 26007 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B3CA; /* 0x3614B3D3: je 0x3614b3ca */ 26008 L_3614B3D5: 26009 MEM32(ebx + 0x8) = edx; /* 0x3614B3D5: mov dword ptr [ebx + 8], edx */ 26010 L_3614B3D8: 26011 esi = MEM32(ebp + (-0x4)); /* 0x3614B3D8: mov esi, dword ptr [ebp - 4] */ 26012 SET_LO8(ecx, MEM8(esi + 0x20)); /* 0x3614B3DB: mov cl, byte ptr [esi + 0x20] */ 26013 SET_LO8(ebx, 1); /* 0x3614B3DE: mov bl, 1 */ 26014 /* cmp LO8(ecx), LO8(ebx) */ /* 0x3614B3E0: cmp cl, bl */ 26015 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 26016 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26017 _flag_k = FK_NARROW(FK_CMP, 24); 26018 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B648; /* 0x3614B3E2: jne 0x3614b648 */ 26019 L_3614B3E8: 26020 ecx = MEM32(edi + 0x4); /* 0x3614B3E8: mov ecx, dword ptr [edi + 4] */ 26021 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B3EB: cmp eax, dword ptr [ecx + 4] */ 26022 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 26023 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26024 _flag_k = FK_CMP; 26025 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B642; /* 0x3614B3EE: je 0x3614b642 */ 26026 L_3614B3F4: 26027 /* cmp MEM8(eax + 0x20), LO8(ebx) */ /* 0x3614B3F4: cmp byte ptr [eax + 0x20], bl */ 26028 _flag_a = (uint32_t)(MEM8(eax + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 26029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26030 _flag_k = FK_NARROW(FK_CMP, 24); 26031 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B642; /* 0x3614B3F7: jne 0x3614b642 */ 26032 L_3614B3FD: 26033 edx = MEM32(eax + 0x4); /* 0x3614B3FD: mov edx, dword ptr [eax + 4] */ 26034 ecx = MEM32(edx); /* 0x3614B400: mov ecx, dword ptr [edx] */ 26035 /* cmp eax, ecx */ /* 0x3614B402: cmp eax, ecx */ 26036 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 26037 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26038 _flag_k = FK_CMP; 26039 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B474; /* 0x3614B404: jne 0x3614b474 */ 26040 L_3614B406: 26041 ecx = MEM32(edx + 0x8); /* 0x3614B406: mov ecx, dword ptr [edx + 8] */ 26042 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B409: mov dl, byte ptr [ecx + 0x20] */ 26043 /* test LO8(edx), LO8(edx) */ /* 0x3614B40C: test dl, dl */ 26044 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 26045 _cf = 0; 26046 _flag_k = FK_NARROW(FK_TEST, 24); 26047 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B45B; /* 0x3614B40E: jne 0x3614b45b */ 26048 L_3614B410: 26049 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B410: mov byte ptr [ecx + 0x20], bl */ 26050 edx = MEM32(eax + 0x4); /* 0x3614B413: mov edx, dword ptr [eax + 4] */ 26051 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x3614B416: mov byte ptr [edx + 0x20], 0 */ 26052 ecx = MEM32(eax + 0x4); /* 0x3614B41A: mov ecx, dword ptr [eax + 4] */ 26053 edx = MEM32(ecx + 0x8); /* 0x3614B41D: mov edx, dword ptr [ecx + 8] */ 26054 esi = MEM32(edx); /* 0x3614B420: mov esi, dword ptr [edx] */ 26055 MEM32(ecx + 0x8) = esi; /* 0x3614B422: mov dword ptr [ecx + 8], esi */ 26056 esi = MEM32(edx); /* 0x3614B425: mov esi, dword ptr [edx] */ 26057 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B427: cmp esi, dword ptr [edi + 8] */ 26058 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 26059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26060 _flag_k = FK_CMP; 26061 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B42F; /* 0x3614B42A: je 0x3614b42f */ 26062 L_3614B42C: 26063 MEM32(esi + 0x4) = ecx; /* 0x3614B42C: mov dword ptr [esi + 4], ecx */ 26064 L_3614B42F: 26065 esi = MEM32(ecx + 0x4); /* 0x3614B42F: mov esi, dword ptr [ecx + 4] */ 26066 MEM32(edx + 0x4) = esi; /* 0x3614B432: mov dword ptr [edx + 4], esi */ 26067 esi = MEM32(edi + 0x4); /* 0x3614B435: mov esi, dword ptr [edi + 4] */ 26068 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B438: cmp ecx, dword ptr [esi + 4] */ 26069 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 26070 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26071 _flag_k = FK_CMP; 26072 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B442; /* 0x3614B43B: jne 0x3614b442 */ 26073 L_3614B43D: 26074 MEM32(esi + 0x4) = edx; /* 0x3614B43D: mov dword ptr [esi + 4], edx */ 26075 goto L_3614B450; /* 0x3614B440: jmp 0x3614b450 */ 26076 L_3614B442: 26077 esi = MEM32(ecx + 0x4); /* 0x3614B442: mov esi, dword ptr [ecx + 4] */ 26078 /* cmp ecx, MEM32(esi) */ /* 0x3614B445: cmp ecx, dword ptr [esi] */ 26079 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 26080 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26081 _flag_k = FK_CMP; 26082 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B44D; /* 0x3614B447: jne 0x3614b44d */ 26083 L_3614B449: 26084 MEM32(esi) = edx; /* 0x3614B449: mov dword ptr [esi], edx */ 26085 goto L_3614B450; /* 0x3614B44B: jmp 0x3614b450 */ 26086 L_3614B44D: 26087 MEM32(esi + 0x8) = edx; /* 0x3614B44D: mov dword ptr [esi + 8], edx */ 26088 L_3614B450: 26089 MEM32(edx) = ecx; /* 0x3614B450: mov dword ptr [edx], ecx */ 26090 MEM32(ecx + 0x4) = edx; /* 0x3614B452: mov dword ptr [ecx + 4], edx */ 26091 ecx = MEM32(eax + 0x4); /* 0x3614B455: mov ecx, dword ptr [eax + 4] */ 26092 ecx = MEM32(ecx + 0x8); /* 0x3614B458: mov ecx, dword ptr [ecx + 8] */ 26093 L_3614B45B: 26094 edx = MEM32(ecx); /* 0x3614B45B: mov edx, dword ptr [ecx] */ 26095 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B45D: cmp byte ptr [edx + 0x20], bl */ 26096 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 26097 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26098 _flag_k = FK_NARROW(FK_CMP, 24); 26099 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4F6; /* 0x3614B460: jne 0x3614b4f6 */ 26100 L_3614B466: 26101 edx = MEM32(ecx + 0x8); /* 0x3614B466: mov edx, dword ptr [ecx + 8] */ 26102 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B469: cmp byte ptr [edx + 0x20], bl */ 26103 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 26104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26105 _flag_k = FK_NARROW(FK_CMP, 24); 26106 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4F6; /* 0x3614B46C: jne 0x3614b4f6 */ 26107 L_3614B472: 26108 goto L_3614B4DE; /* 0x3614B472: jmp 0x3614b4de */ 26109 L_3614B474: 26110 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B474: mov dl, byte ptr [ecx + 0x20] */ 26111 /* test LO8(edx), LO8(edx) */ /* 0x3614B477: test dl, dl */ 26112 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 26113 _cf = 0; 26114 _flag_k = FK_NARROW(FK_TEST, 24); 26115 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B4C7; /* 0x3614B479: jne 0x3614b4c7 */ 26116 L_3614B47B: 26117 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B47B: mov byte ptr [ecx + 0x20], bl */ 26118 ecx = MEM32(eax + 0x4); /* 0x3614B47E: mov ecx, dword ptr [eax + 4] */ 26119 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B481: mov byte ptr [ecx + 0x20], 0 */ 26120 ecx = MEM32(eax + 0x4); /* 0x3614B485: mov ecx, dword ptr [eax + 4] */ 26121 edx = MEM32(ecx); /* 0x3614B488: mov edx, dword ptr [ecx] */ 26122 esi = MEM32(edx + 0x8); /* 0x3614B48A: mov esi, dword ptr [edx + 8] */ 26123 MEM32(ecx) = esi; /* 0x3614B48D: mov dword ptr [ecx], esi */ 26124 esi = MEM32(edx + 0x8); /* 0x3614B48F: mov esi, dword ptr [edx + 8] */ 26125 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B492: cmp esi, dword ptr [edi + 8] */ 26126 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 26127 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26128 _flag_k = FK_CMP; 26129 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B49A; /* 0x3614B495: je 0x3614b49a */ 26130 L_3614B497: 26131 MEM32(esi + 0x4) = ecx; /* 0x3614B497: mov dword ptr [esi + 4], ecx */ 26132 L_3614B49A: 26133 esi = MEM32(ecx + 0x4); /* 0x3614B49A: mov esi, dword ptr [ecx + 4] */ 26134 MEM32(edx + 0x4) = esi; /* 0x3614B49D: mov dword ptr [edx + 4], esi */ 26135 esi = MEM32(edi + 0x4); /* 0x3614B4A0: mov esi, dword ptr [edi + 4] */ 26136 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B4A3: cmp ecx, dword ptr [esi + 4] */ 26137 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 26138 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26139 _flag_k = FK_CMP; 26140 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4AD; /* 0x3614B4A6: jne 0x3614b4ad */ 26141 L_3614B4A8: 26142 MEM32(esi + 0x4) = edx; /* 0x3614B4A8: mov dword ptr [esi + 4], edx */ 26143 goto L_3614B4BC; /* 0x3614B4AB: jmp 0x3614b4bc */ 26144 L_3614B4AD: 26145 esi = MEM32(ecx + 0x4); /* 0x3614B4AD: mov esi, dword ptr [ecx + 4] */ 26146 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B4B0: cmp ecx, dword ptr [esi + 8] */ 26147 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 26148 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26149 _flag_k = FK_CMP; 26150 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4BA; /* 0x3614B4B3: jne 0x3614b4ba */ 26151 L_3614B4B5: 26152 MEM32(esi + 0x8) = edx; /* 0x3614B4B5: mov dword ptr [esi + 8], edx */ 26153 goto L_3614B4BC; /* 0x3614B4B8: jmp 0x3614b4bc */ 26154 L_3614B4BA: 26155 MEM32(esi) = edx; /* 0x3614B4BA: mov dword ptr [esi], edx */ 26156 L_3614B4BC: 26157 MEM32(edx + 0x8) = ecx; /* 0x3614B4BC: mov dword ptr [edx + 8], ecx */ 26158 MEM32(ecx + 0x4) = edx; /* 0x3614B4BF: mov dword ptr [ecx + 4], edx */ 26159 edx = MEM32(eax + 0x4); /* 0x3614B4C2: mov edx, dword ptr [eax + 4] */ 26160 ecx = MEM32(edx); /* 0x3614B4C5: mov ecx, dword ptr [edx] */ 26161 L_3614B4C7: 26162 edx = MEM32(ecx + 0x8); /* 0x3614B4C7: mov edx, dword ptr [ecx + 8] */ 26163 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4CA: cmp byte ptr [edx + 0x20], bl */ 26164 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 26165 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26166 _flag_k = FK_NARROW(FK_CMP, 24); 26167 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5A3; /* 0x3614B4CD: jne 0x3614b5a3 */ 26168 L_3614B4D3: 26169 edx = MEM32(ecx); /* 0x3614B4D3: mov edx, dword ptr [ecx] */ 26170 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4D5: cmp byte ptr [edx + 0x20], bl */ 26171 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 26172 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26173 _flag_k = FK_NARROW(FK_CMP, 24); 26174 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5A3; /* 0x3614B4D8: jne 0x3614b5a3 */ 26175 L_3614B4DE: 26176 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B4DE: mov byte ptr [ecx + 0x20], 0 */ 26177 ecx = MEM32(edi + 0x4); /* 0x3614B4E2: mov ecx, dword ptr [edi + 4] */ 26178 eax = MEM32(eax + 0x4); /* 0x3614B4E5: mov eax, dword ptr [eax + 4] */ 26179 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B4E8: cmp eax, dword ptr [ecx + 4] */ 26180 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 26181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26182 _flag_k = FK_CMP; 26183 RECOMP_BACKEDGE(); 26184 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B3F4; /* 0x3614B4EB: jne 0x3614b3f4 */ 26185 L_3614B4F1: 26186 goto L_3614B642; /* 0x3614B4F1: jmp 0x3614b642 */ 26187 L_3614B4F6: 26188 edx = MEM32(ecx + 0x8); /* 0x3614B4F6: mov edx, dword ptr [ecx + 8] */ 26189 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4F9: cmp byte ptr [edx + 0x20], bl */ 26190 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 26191 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26192 _flag_k = FK_NARROW(FK_CMP, 24); 26193 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B547; /* 0x3614B4FC: jne 0x3614b547 */ 26194 L_3614B4FE: 26195 edx = MEM32(ecx); /* 0x3614B4FE: mov edx, dword ptr [ecx] */ 26196 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B500: mov byte ptr [edx + 0x20], bl */ 26197 edx = MEM32(ecx); /* 0x3614B503: mov edx, dword ptr [ecx] */ 26198 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B505: mov byte ptr [ecx + 0x20], 0 */ 26199 esi = MEM32(edx + 0x8); /* 0x3614B509: mov esi, dword ptr [edx + 8] */ 26200 MEM32(ecx) = esi; /* 0x3614B50C: mov dword ptr [ecx], esi */ 26201 esi = MEM32(edx + 0x8); /* 0x3614B50E: mov esi, dword ptr [edx + 8] */ 26202 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B511: cmp esi, dword ptr [edi + 8] */ 26203 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 26204 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26205 _flag_k = FK_CMP; 26206 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B519; /* 0x3614B514: je 0x3614b519 */ 26207 L_3614B516: 26208 MEM32(esi + 0x4) = ecx; /* 0x3614B516: mov dword ptr [esi + 4], ecx */ 26209 L_3614B519: 26210 esi = MEM32(ecx + 0x4); /* 0x3614B519: mov esi, dword ptr [ecx + 4] */ 26211 MEM32(edx + 0x4) = esi; /* 0x3614B51C: mov dword ptr [edx + 4], esi */ 26212 esi = MEM32(edi + 0x4); /* 0x3614B51F: mov esi, dword ptr [edi + 4] */ 26213 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B522: cmp ecx, dword ptr [esi + 4] */ 26214 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 26215 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26216 _flag_k = FK_CMP; 26217 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B52C; /* 0x3614B525: jne 0x3614b52c */ 26218 L_3614B527: 26219 MEM32(esi + 0x4) = edx; /* 0x3614B527: mov dword ptr [esi + 4], edx */ 26220 goto L_3614B53B; /* 0x3614B52A: jmp 0x3614b53b */ 26221 L_3614B52C: 26222 esi = MEM32(ecx + 0x4); /* 0x3614B52C: mov esi, dword ptr [ecx + 4] */ 26223 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B52F: cmp ecx, dword ptr [esi + 8] */ 26224 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 26225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26226 _flag_k = FK_CMP; 26227 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B539; /* 0x3614B532: jne 0x3614b539 */ 26228 L_3614B534: 26229 MEM32(esi + 0x8) = edx; /* 0x3614B534: mov dword ptr [esi + 8], edx */ 26230 goto L_3614B53B; /* 0x3614B537: jmp 0x3614b53b */ 26231 L_3614B539: 26232 MEM32(esi) = edx; /* 0x3614B539: mov dword ptr [esi], edx */ 26233 L_3614B53B: 26234 MEM32(edx + 0x8) = ecx; /* 0x3614B53B: mov dword ptr [edx + 8], ecx */ 26235 MEM32(ecx + 0x4) = edx; /* 0x3614B53E: mov dword ptr [ecx + 4], edx */ 26236 ecx = MEM32(eax + 0x4); /* 0x3614B541: mov ecx, dword ptr [eax + 4] */ 26237 ecx = MEM32(ecx + 0x8); /* 0x3614B544: mov ecx, dword ptr [ecx + 8] */ 26238 L_3614B547: 26239 edx = MEM32(eax + 0x4); /* 0x3614B547: mov edx, dword ptr [eax + 4] */ 26240 SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3614B54A: mov dl, byte ptr [edx + 0x20] */ 26241 MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B54D: mov byte ptr [ecx + 0x20], dl */ 26242 edx = MEM32(eax + 0x4); /* 0x3614B550: mov edx, dword ptr [eax + 4] */ 26243 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B553: mov byte ptr [edx + 0x20], bl */ 26244 ecx = MEM32(ecx + 0x8); /* 0x3614B556: mov ecx, dword ptr [ecx + 8] */ 26245 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B559: mov byte ptr [ecx + 0x20], bl */ 26246 ecx = MEM32(eax + 0x4); /* 0x3614B55C: mov ecx, dword ptr [eax + 4] */ 26247 edx = MEM32(ecx + 0x8); /* 0x3614B55F: mov edx, dword ptr [ecx + 8] */ 26248 esi = MEM32(edx); /* 0x3614B562: mov esi, dword ptr [edx] */ 26249 MEM32(ecx + 0x8) = esi; /* 0x3614B564: mov dword ptr [ecx + 8], esi */ 26250 esi = MEM32(edx); /* 0x3614B567: mov esi, dword ptr [edx] */ 26251 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B569: cmp esi, dword ptr [edi + 8] */ 26252 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 26253 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26254 _flag_k = FK_CMP; 26255 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B571; /* 0x3614B56C: je 0x3614b571 */ 26256 L_3614B56E: 26257 MEM32(esi + 0x4) = ecx; /* 0x3614B56E: mov dword ptr [esi + 4], ecx */ 26258 L_3614B571: 26259 esi = MEM32(ecx + 0x4); /* 0x3614B571: mov esi, dword ptr [ecx + 4] */ 26260 MEM32(edx + 0x4) = esi; /* 0x3614B574: mov dword ptr [edx + 4], esi */ 26261 esi = MEM32(edi + 0x4); /* 0x3614B577: mov esi, dword ptr [edi + 4] */ 26262 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B57A: cmp ecx, dword ptr [esi + 4] */ 26263 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 26264 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26265 _flag_k = FK_CMP; 26266 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B589; /* 0x3614B57D: jne 0x3614b589 */ 26267 L_3614B57F: 26268 MEM32(esi + 0x4) = edx; /* 0x3614B57F: mov dword ptr [esi + 4], edx */ 26269 MEM32(edx) = ecx; /* 0x3614B582: mov dword ptr [edx], ecx */ 26270 goto L_3614B63F; /* 0x3614B584: jmp 0x3614b63f */ 26271 L_3614B589: 26272 esi = MEM32(ecx + 0x4); /* 0x3614B589: mov esi, dword ptr [ecx + 4] */ 26273 /* cmp ecx, MEM32(esi) */ /* 0x3614B58C: cmp ecx, dword ptr [esi] */ 26274 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 26275 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26276 _flag_k = FK_CMP; 26277 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B599; /* 0x3614B58E: jne 0x3614b599 */ 26278 L_3614B590: 26279 MEM32(esi) = edx; /* 0x3614B590: mov dword ptr [esi], edx */ 26280 MEM32(edx) = ecx; /* 0x3614B592: mov dword ptr [edx], ecx */ 26281 goto L_3614B63F; /* 0x3614B594: jmp 0x3614b63f */ 26282 L_3614B599: 26283 MEM32(esi + 0x8) = edx; /* 0x3614B599: mov dword ptr [esi + 8], edx */ 26284 MEM32(edx) = ecx; /* 0x3614B59C: mov dword ptr [edx], ecx */ 26285 goto L_3614B63F; /* 0x3614B59E: jmp 0x3614b63f */ 26286 L_3614B5A3: 26287 edx = MEM32(ecx); /* 0x3614B5A3: mov edx, dword ptr [ecx] */ 26288 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B5A5: cmp byte ptr [edx + 0x20], bl */ 26289 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 26290 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26291 _flag_k = FK_NARROW(FK_CMP, 24); 26292 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5F1; /* 0x3614B5A8: jne 0x3614b5f1 */ 26293 L_3614B5AA: 26294 edx = MEM32(ecx + 0x8); /* 0x3614B5AA: mov edx, dword ptr [ecx + 8] */ 26295 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B5AD: mov byte ptr [edx + 0x20], bl */ 26296 edx = MEM32(ecx + 0x8); /* 0x3614B5B0: mov edx, dword ptr [ecx + 8] */ 26297 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B5B3: mov byte ptr [ecx + 0x20], 0 */ 26298 esi = MEM32(edx); /* 0x3614B5B7: mov esi, dword ptr [edx] */ 26299 MEM32(ecx + 0x8) = esi; /* 0x3614B5B9: mov dword ptr [ecx + 8], esi */ 26300 esi = MEM32(edx); /* 0x3614B5BC: mov esi, dword ptr [edx] */ 26301 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B5BE: cmp esi, dword ptr [edi + 8] */ 26302 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 26303 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26304 _flag_k = FK_CMP; 26305 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B5C6; /* 0x3614B5C1: je 0x3614b5c6 */ 26306 L_3614B5C3: 26307 MEM32(esi + 0x4) = ecx; /* 0x3614B5C3: mov dword ptr [esi + 4], ecx */ 26308 L_3614B5C6: 26309 esi = MEM32(ecx + 0x4); /* 0x3614B5C6: mov esi, dword ptr [ecx + 4] */ 26310 MEM32(edx + 0x4) = esi; /* 0x3614B5C9: mov dword ptr [edx + 4], esi */ 26311 esi = MEM32(edi + 0x4); /* 0x3614B5CC: mov esi, dword ptr [edi + 4] */ 26312 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B5CF: cmp ecx, dword ptr [esi + 4] */ 26313 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 26314 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26315 _flag_k = FK_CMP; 26316 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5D9; /* 0x3614B5D2: jne 0x3614b5d9 */ 26317 L_3614B5D4: 26318 MEM32(esi + 0x4) = edx; /* 0x3614B5D4: mov dword ptr [esi + 4], edx */ 26319 goto L_3614B5E7; /* 0x3614B5D7: jmp 0x3614b5e7 */ 26320 L_3614B5D9: 26321 esi = MEM32(ecx + 0x4); /* 0x3614B5D9: mov esi, dword ptr [ecx + 4] */ 26322 /* cmp ecx, MEM32(esi) */ /* 0x3614B5DC: cmp ecx, dword ptr [esi] */ 26323 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 26324 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26325 _flag_k = FK_CMP; 26326 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5E4; /* 0x3614B5DE: jne 0x3614b5e4 */ 26327 L_3614B5E0: 26328 MEM32(esi) = edx; /* 0x3614B5E0: mov dword ptr [esi], edx */ 26329 goto L_3614B5E7; /* 0x3614B5E2: jmp 0x3614b5e7 */ 26330 L_3614B5E4: 26331 MEM32(esi + 0x8) = edx; /* 0x3614B5E4: mov dword ptr [esi + 8], edx */ 26332 L_3614B5E7: 26333 MEM32(edx) = ecx; /* 0x3614B5E7: mov dword ptr [edx], ecx */ 26334 MEM32(ecx + 0x4) = edx; /* 0x3614B5E9: mov dword ptr [ecx + 4], edx */ 26335 ecx = MEM32(eax + 0x4); /* 0x3614B5EC: mov ecx, dword ptr [eax + 4] */ 26336 ecx = MEM32(ecx); /* 0x3614B5EF: mov ecx, dword ptr [ecx] */ 26337 L_3614B5F1: 26338 edx = MEM32(eax + 0x4); /* 0x3614B5F1: mov edx, dword ptr [eax + 4] */ 26339 SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3614B5F4: mov dl, byte ptr [edx + 0x20] */ 26340 MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B5F7: mov byte ptr [ecx + 0x20], dl */ 26341 edx = MEM32(eax + 0x4); /* 0x3614B5FA: mov edx, dword ptr [eax + 4] */ 26342 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B5FD: mov byte ptr [edx + 0x20], bl */ 26343 ecx = MEM32(ecx); /* 0x3614B600: mov ecx, dword ptr [ecx] */ 26344 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B602: mov byte ptr [ecx + 0x20], bl */ 26345 ecx = MEM32(eax + 0x4); /* 0x3614B605: mov ecx, dword ptr [eax + 4] */ 26346 edx = MEM32(ecx); /* 0x3614B608: mov edx, dword ptr [ecx] */ 26347 esi = MEM32(edx + 0x8); /* 0x3614B60A: mov esi, dword ptr [edx + 8] */ 26348 MEM32(ecx) = esi; /* 0x3614B60D: mov dword ptr [ecx], esi */ 26349 esi = MEM32(edx + 0x8); /* 0x3614B60F: mov esi, dword ptr [edx + 8] */ 26350 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B612: cmp esi, dword ptr [edi + 8] */ 26351 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 26352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26353 _flag_k = FK_CMP; 26354 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B61A; /* 0x3614B615: je 0x3614b61a */ 26355 L_3614B617: 26356 MEM32(esi + 0x4) = ecx; /* 0x3614B617: mov dword ptr [esi + 4], ecx */ 26357 L_3614B61A: 26358 esi = MEM32(ecx + 0x4); /* 0x3614B61A: mov esi, dword ptr [ecx + 4] */ 26359 MEM32(edx + 0x4) = esi; /* 0x3614B61D: mov dword ptr [edx + 4], esi */ 26360 esi = MEM32(edi + 0x4); /* 0x3614B620: mov esi, dword ptr [edi + 4] */ 26361 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B623: cmp ecx, dword ptr [esi + 4] */ 26362 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 26363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26364 _flag_k = FK_CMP; 26365 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B62D; /* 0x3614B626: jne 0x3614b62d */ 26366 L_3614B628: 26367 MEM32(esi + 0x4) = edx; /* 0x3614B628: mov dword ptr [esi + 4], edx */ 26368 goto L_3614B63C; /* 0x3614B62B: jmp 0x3614b63c */ 26369 L_3614B62D: 26370 esi = MEM32(ecx + 0x4); /* 0x3614B62D: mov esi, dword ptr [ecx + 4] */ 26371 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B630: cmp ecx, dword ptr [esi + 8] */ 26372 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 26373 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26374 _flag_k = FK_CMP; 26375 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B63A; /* 0x3614B633: jne 0x3614b63a */ 26376 L_3614B635: 26377 MEM32(esi + 0x8) = edx; /* 0x3614B635: mov dword ptr [esi + 8], edx */ 26378 goto L_3614B63C; /* 0x3614B638: jmp 0x3614b63c */ 26379 L_3614B63A: 26380 MEM32(esi) = edx; /* 0x3614B63A: mov dword ptr [esi], edx */ 26381 L_3614B63C: 26382 MEM32(edx + 0x8) = ecx; /* 0x3614B63C: mov dword ptr [edx + 8], ecx */ 26383 L_3614B63F: 26384 MEM32(ecx + 0x4) = edx; /* 0x3614B63F: mov dword ptr [ecx + 4], edx */ 26385 L_3614B642: 26386 esi = MEM32(ebp + (-0x4)); /* 0x3614B642: mov esi, dword ptr [ebp - 4] */ 26387 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B645: mov byte ptr [eax + 0x20], bl */ 26388 L_3614B648: 26389 ecx = esi + 0xC; /* 0x3614B648: lea ecx, [esi + 0xc] */ 26390 RECOMP_ICALL(0x3614AFC0u); /* 0x3614B64B: call 0x3614afc0 */ /* not lifted */ 26391 RECOMP_FLAGS_IN(); 26392 PUSH32(esp, esi); /* 0x3614B650: push esi */ 26393 RECOMP_ICALL(0x3615FCC4u); /* 0x3614B651: call 0x3615fcc4 */ /* not lifted */ 26394 RECOMP_FLAGS_IN(); 26395 eax = MEM32(edi + 0x10); /* 0x3614B656: mov eax, dword ptr [edi + 0x10] */ 26396 edx = MEM32(ebp + 0xC); /* 0x3614B659: mov edx, dword ptr [ebp + 0xc] */ 26397 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 26398 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 26399 esp = esp + 4; /* 0x3614B65C: add esp, 4 */ 26400 _flag_k = FK_ADD; 26401 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 26402 eax = eax - 1; /* 0x3614B65F: dec eax */ 26403 _flag_k = FK_DEC; 26404 MEM32(edi + 0x10) = eax; /* 0x3614B660: mov dword ptr [edi + 0x10], eax */ 26405 eax = MEM32(ebp + 0x8); /* 0x3614B663: mov eax, dword ptr [ebp + 8] */ 26406 edi = POP32_VAL(esp); /* 0x3614B666: pop edi */ 26407 esi = POP32_VAL(esp); /* 0x3614B667: pop esi */ 26408 MEM32(eax) = edx; /* 0x3614B668: mov dword ptr [eax], edx */ 26409 ebx = POP32_VAL(esp); /* 0x3614B66A: pop ebx */ 26410 esp = ebp; /* 0x3614B66B: mov esp, ebp */ 26411 ebp = POP32_VAL(esp); /* 0x3614B66D: pop ebp */ 26412 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614B66E: ret 8 */ 26413 RECOMP_REGS_OUT(); 26414 } 26415 26416 void sub_3614B3A9(void) { 26417 int _fpu_cmp = 0; 26418 uint32_t _cf = 0; 26419 int _df = 1; 26420 uint32_t _flag_k = FK_NONE; 26421 uint32_t _flag_a = 0, _flag_b = 0; 26422 uint32_t _itail_tgt = 0; 26423 RECOMP_REGS_LOCALS 26424 RECOMP_ENTER(0x3614B3A9u); 26425 26426 L_3614B3A9: 26427 MEM32(ebx) = edx; /* 0x3614B3A9: mov dword ptr [ebx], edx */ 26428 ebx = MEM32(edi + 0x4); /* 0x3614B3AB: mov ebx, dword ptr [edi + 4] */ 26429 /* cmp MEM32(ebx + 0x8), esi */ /* 0x3614B3AE: cmp dword ptr [ebx + 8], esi */ 26430 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 26431 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26432 _flag_k = FK_CMP; 26433 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B3D8; /* 0x3614B3B1: jne 0x3614b3d8 */ 26434 L_3614B3B3: 26435 ecx = MEM32(esi); /* 0x3614B3B3: mov ecx, dword ptr [esi] */ 26436 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614B3B5: cmp ecx, dword ptr [edi + 8] */ 26437 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 26438 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26439 _flag_k = FK_CMP; 26440 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B3BF; /* 0x3614B3B8: jne 0x3614b3bf */ 26441 L_3614B3BA: 26442 edx = MEM32(esi + 0x4); /* 0x3614B3BA: mov edx, dword ptr [esi + 4] */ 26443 goto L_3614B3D5; /* 0x3614B3BD: jmp 0x3614b3d5 */ 26444 L_3614B3BF: 26445 ecx = MEM32(eax + 0x8); /* 0x3614B3BF: mov ecx, dword ptr [eax + 8] */ 26446 /* cmp MEM8(ecx + 0x21), 0 */ /* 0x3614B3C2: cmp byte ptr [ecx + 0x21], 0 */ 26447 _flag_a = (uint32_t)(MEM8(ecx + 0x21)) << 24; _flag_b = (uint32_t)(0) << 24; 26448 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26449 _flag_k = FK_NARROW(FK_CMP, 24); 26450 edx = eax; /* 0x3614B3C6: mov edx, eax */ 26451 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B3D5; /* 0x3614B3C8: jne 0x3614b3d5 */ 26452 L_3614B3CA: 26453 edx = ecx; /* 0x3614B3CA: mov edx, ecx */ 26454 ecx = MEM32(edx + 0x8); /* 0x3614B3CC: mov ecx, dword ptr [edx + 8] */ 26455 /* cmp MEM8(ecx + 0x21), 0 */ /* 0x3614B3CF: cmp byte ptr [ecx + 0x21], 0 */ 26456 _flag_a = (uint32_t)(MEM8(ecx + 0x21)) << 24; _flag_b = (uint32_t)(0) << 24; 26457 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26458 _flag_k = FK_NARROW(FK_CMP, 24); 26459 RECOMP_BACKEDGE(); 26460 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B3CA; /* 0x3614B3D3: je 0x3614b3ca */ 26461 L_3614B3D5: 26462 MEM32(ebx + 0x8) = edx; /* 0x3614B3D5: mov dword ptr [ebx + 8], edx */ 26463 L_3614B3D8: 26464 esi = MEM32(ebp + (-0x4)); /* 0x3614B3D8: mov esi, dword ptr [ebp - 4] */ 26465 SET_LO8(ecx, MEM8(esi + 0x20)); /* 0x3614B3DB: mov cl, byte ptr [esi + 0x20] */ 26466 SET_LO8(ebx, 1); /* 0x3614B3DE: mov bl, 1 */ 26467 /* cmp LO8(ecx), LO8(ebx) */ /* 0x3614B3E0: cmp cl, bl */ 26468 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 26469 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26470 _flag_k = FK_NARROW(FK_CMP, 24); 26471 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B648; /* 0x3614B3E2: jne 0x3614b648 */ 26472 L_3614B3E8: 26473 ecx = MEM32(edi + 0x4); /* 0x3614B3E8: mov ecx, dword ptr [edi + 4] */ 26474 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B3EB: cmp eax, dword ptr [ecx + 4] */ 26475 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 26476 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26477 _flag_k = FK_CMP; 26478 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B642; /* 0x3614B3EE: je 0x3614b642 */ 26479 L_3614B3F4: 26480 /* cmp MEM8(eax + 0x20), LO8(ebx) */ /* 0x3614B3F4: cmp byte ptr [eax + 0x20], bl */ 26481 _flag_a = (uint32_t)(MEM8(eax + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 26482 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26483 _flag_k = FK_NARROW(FK_CMP, 24); 26484 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B642; /* 0x3614B3F7: jne 0x3614b642 */ 26485 L_3614B3FD: 26486 edx = MEM32(eax + 0x4); /* 0x3614B3FD: mov edx, dword ptr [eax + 4] */ 26487 ecx = MEM32(edx); /* 0x3614B400: mov ecx, dword ptr [edx] */ 26488 /* cmp eax, ecx */ /* 0x3614B402: cmp eax, ecx */ 26489 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 26490 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26491 _flag_k = FK_CMP; 26492 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B474; /* 0x3614B404: jne 0x3614b474 */ 26493 L_3614B406: 26494 ecx = MEM32(edx + 0x8); /* 0x3614B406: mov ecx, dword ptr [edx + 8] */ 26495 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B409: mov dl, byte ptr [ecx + 0x20] */ 26496 /* test LO8(edx), LO8(edx) */ /* 0x3614B40C: test dl, dl */ 26497 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 26498 _cf = 0; 26499 _flag_k = FK_NARROW(FK_TEST, 24); 26500 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B45B; /* 0x3614B40E: jne 0x3614b45b */ 26501 L_3614B410: 26502 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B410: mov byte ptr [ecx + 0x20], bl */ 26503 edx = MEM32(eax + 0x4); /* 0x3614B413: mov edx, dword ptr [eax + 4] */ 26504 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x3614B416: mov byte ptr [edx + 0x20], 0 */ 26505 ecx = MEM32(eax + 0x4); /* 0x3614B41A: mov ecx, dword ptr [eax + 4] */ 26506 edx = MEM32(ecx + 0x8); /* 0x3614B41D: mov edx, dword ptr [ecx + 8] */ 26507 esi = MEM32(edx); /* 0x3614B420: mov esi, dword ptr [edx] */ 26508 MEM32(ecx + 0x8) = esi; /* 0x3614B422: mov dword ptr [ecx + 8], esi */ 26509 esi = MEM32(edx); /* 0x3614B425: mov esi, dword ptr [edx] */ 26510 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B427: cmp esi, dword ptr [edi + 8] */ 26511 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 26512 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26513 _flag_k = FK_CMP; 26514 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B42F; /* 0x3614B42A: je 0x3614b42f */ 26515 L_3614B42C: 26516 MEM32(esi + 0x4) = ecx; /* 0x3614B42C: mov dword ptr [esi + 4], ecx */ 26517 L_3614B42F: 26518 esi = MEM32(ecx + 0x4); /* 0x3614B42F: mov esi, dword ptr [ecx + 4] */ 26519 MEM32(edx + 0x4) = esi; /* 0x3614B432: mov dword ptr [edx + 4], esi */ 26520 esi = MEM32(edi + 0x4); /* 0x3614B435: mov esi, dword ptr [edi + 4] */ 26521 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B438: cmp ecx, dword ptr [esi + 4] */ 26522 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 26523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26524 _flag_k = FK_CMP; 26525 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B442; /* 0x3614B43B: jne 0x3614b442 */ 26526 L_3614B43D: 26527 MEM32(esi + 0x4) = edx; /* 0x3614B43D: mov dword ptr [esi + 4], edx */ 26528 goto L_3614B450; /* 0x3614B440: jmp 0x3614b450 */ 26529 L_3614B442: 26530 esi = MEM32(ecx + 0x4); /* 0x3614B442: mov esi, dword ptr [ecx + 4] */ 26531 /* cmp ecx, MEM32(esi) */ /* 0x3614B445: cmp ecx, dword ptr [esi] */ 26532 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 26533 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26534 _flag_k = FK_CMP; 26535 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B44D; /* 0x3614B447: jne 0x3614b44d */ 26536 L_3614B449: 26537 MEM32(esi) = edx; /* 0x3614B449: mov dword ptr [esi], edx */ 26538 goto L_3614B450; /* 0x3614B44B: jmp 0x3614b450 */ 26539 L_3614B44D: 26540 MEM32(esi + 0x8) = edx; /* 0x3614B44D: mov dword ptr [esi + 8], edx */ 26541 L_3614B450: 26542 MEM32(edx) = ecx; /* 0x3614B450: mov dword ptr [edx], ecx */ 26543 MEM32(ecx + 0x4) = edx; /* 0x3614B452: mov dword ptr [ecx + 4], edx */ 26544 ecx = MEM32(eax + 0x4); /* 0x3614B455: mov ecx, dword ptr [eax + 4] */ 26545 ecx = MEM32(ecx + 0x8); /* 0x3614B458: mov ecx, dword ptr [ecx + 8] */ 26546 L_3614B45B: 26547 edx = MEM32(ecx); /* 0x3614B45B: mov edx, dword ptr [ecx] */ 26548 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B45D: cmp byte ptr [edx + 0x20], bl */ 26549 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 26550 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26551 _flag_k = FK_NARROW(FK_CMP, 24); 26552 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4F6; /* 0x3614B460: jne 0x3614b4f6 */ 26553 L_3614B466: 26554 edx = MEM32(ecx + 0x8); /* 0x3614B466: mov edx, dword ptr [ecx + 8] */ 26555 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B469: cmp byte ptr [edx + 0x20], bl */ 26556 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 26557 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26558 _flag_k = FK_NARROW(FK_CMP, 24); 26559 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4F6; /* 0x3614B46C: jne 0x3614b4f6 */ 26560 L_3614B472: 26561 goto L_3614B4DE; /* 0x3614B472: jmp 0x3614b4de */ 26562 L_3614B474: 26563 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B474: mov dl, byte ptr [ecx + 0x20] */ 26564 /* test LO8(edx), LO8(edx) */ /* 0x3614B477: test dl, dl */ 26565 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 26566 _cf = 0; 26567 _flag_k = FK_NARROW(FK_TEST, 24); 26568 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B4C7; /* 0x3614B479: jne 0x3614b4c7 */ 26569 L_3614B47B: 26570 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B47B: mov byte ptr [ecx + 0x20], bl */ 26571 ecx = MEM32(eax + 0x4); /* 0x3614B47E: mov ecx, dword ptr [eax + 4] */ 26572 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B481: mov byte ptr [ecx + 0x20], 0 */ 26573 ecx = MEM32(eax + 0x4); /* 0x3614B485: mov ecx, dword ptr [eax + 4] */ 26574 edx = MEM32(ecx); /* 0x3614B488: mov edx, dword ptr [ecx] */ 26575 esi = MEM32(edx + 0x8); /* 0x3614B48A: mov esi, dword ptr [edx + 8] */ 26576 MEM32(ecx) = esi; /* 0x3614B48D: mov dword ptr [ecx], esi */ 26577 esi = MEM32(edx + 0x8); /* 0x3614B48F: mov esi, dword ptr [edx + 8] */ 26578 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B492: cmp esi, dword ptr [edi + 8] */ 26579 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 26580 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26581 _flag_k = FK_CMP; 26582 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B49A; /* 0x3614B495: je 0x3614b49a */ 26583 L_3614B497: 26584 MEM32(esi + 0x4) = ecx; /* 0x3614B497: mov dword ptr [esi + 4], ecx */ 26585 L_3614B49A: 26586 esi = MEM32(ecx + 0x4); /* 0x3614B49A: mov esi, dword ptr [ecx + 4] */ 26587 MEM32(edx + 0x4) = esi; /* 0x3614B49D: mov dword ptr [edx + 4], esi */ 26588 esi = MEM32(edi + 0x4); /* 0x3614B4A0: mov esi, dword ptr [edi + 4] */ 26589 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B4A3: cmp ecx, dword ptr [esi + 4] */ 26590 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 26591 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26592 _flag_k = FK_CMP; 26593 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4AD; /* 0x3614B4A6: jne 0x3614b4ad */ 26594 L_3614B4A8: 26595 MEM32(esi + 0x4) = edx; /* 0x3614B4A8: mov dword ptr [esi + 4], edx */ 26596 goto L_3614B4BC; /* 0x3614B4AB: jmp 0x3614b4bc */ 26597 L_3614B4AD: 26598 esi = MEM32(ecx + 0x4); /* 0x3614B4AD: mov esi, dword ptr [ecx + 4] */ 26599 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B4B0: cmp ecx, dword ptr [esi + 8] */ 26600 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 26601 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26602 _flag_k = FK_CMP; 26603 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4BA; /* 0x3614B4B3: jne 0x3614b4ba */ 26604 L_3614B4B5: 26605 MEM32(esi + 0x8) = edx; /* 0x3614B4B5: mov dword ptr [esi + 8], edx */ 26606 goto L_3614B4BC; /* 0x3614B4B8: jmp 0x3614b4bc */ 26607 L_3614B4BA: 26608 MEM32(esi) = edx; /* 0x3614B4BA: mov dword ptr [esi], edx */ 26609 L_3614B4BC: 26610 MEM32(edx + 0x8) = ecx; /* 0x3614B4BC: mov dword ptr [edx + 8], ecx */ 26611 MEM32(ecx + 0x4) = edx; /* 0x3614B4BF: mov dword ptr [ecx + 4], edx */ 26612 edx = MEM32(eax + 0x4); /* 0x3614B4C2: mov edx, dword ptr [eax + 4] */ 26613 ecx = MEM32(edx); /* 0x3614B4C5: mov ecx, dword ptr [edx] */ 26614 L_3614B4C7: 26615 edx = MEM32(ecx + 0x8); /* 0x3614B4C7: mov edx, dword ptr [ecx + 8] */ 26616 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4CA: cmp byte ptr [edx + 0x20], bl */ 26617 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 26618 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26619 _flag_k = FK_NARROW(FK_CMP, 24); 26620 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5A3; /* 0x3614B4CD: jne 0x3614b5a3 */ 26621 L_3614B4D3: 26622 edx = MEM32(ecx); /* 0x3614B4D3: mov edx, dword ptr [ecx] */ 26623 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4D5: cmp byte ptr [edx + 0x20], bl */ 26624 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 26625 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26626 _flag_k = FK_NARROW(FK_CMP, 24); 26627 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5A3; /* 0x3614B4D8: jne 0x3614b5a3 */ 26628 L_3614B4DE: 26629 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B4DE: mov byte ptr [ecx + 0x20], 0 */ 26630 ecx = MEM32(edi + 0x4); /* 0x3614B4E2: mov ecx, dword ptr [edi + 4] */ 26631 eax = MEM32(eax + 0x4); /* 0x3614B4E5: mov eax, dword ptr [eax + 4] */ 26632 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B4E8: cmp eax, dword ptr [ecx + 4] */ 26633 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 26634 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26635 _flag_k = FK_CMP; 26636 RECOMP_BACKEDGE(); 26637 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B3F4; /* 0x3614B4EB: jne 0x3614b3f4 */ 26638 L_3614B4F1: 26639 goto L_3614B642; /* 0x3614B4F1: jmp 0x3614b642 */ 26640 L_3614B4F6: 26641 edx = MEM32(ecx + 0x8); /* 0x3614B4F6: mov edx, dword ptr [ecx + 8] */ 26642 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4F9: cmp byte ptr [edx + 0x20], bl */ 26643 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 26644 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26645 _flag_k = FK_NARROW(FK_CMP, 24); 26646 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B547; /* 0x3614B4FC: jne 0x3614b547 */ 26647 L_3614B4FE: 26648 edx = MEM32(ecx); /* 0x3614B4FE: mov edx, dword ptr [ecx] */ 26649 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B500: mov byte ptr [edx + 0x20], bl */ 26650 edx = MEM32(ecx); /* 0x3614B503: mov edx, dword ptr [ecx] */ 26651 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B505: mov byte ptr [ecx + 0x20], 0 */ 26652 esi = MEM32(edx + 0x8); /* 0x3614B509: mov esi, dword ptr [edx + 8] */ 26653 MEM32(ecx) = esi; /* 0x3614B50C: mov dword ptr [ecx], esi */ 26654 esi = MEM32(edx + 0x8); /* 0x3614B50E: mov esi, dword ptr [edx + 8] */ 26655 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B511: cmp esi, dword ptr [edi + 8] */ 26656 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 26657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26658 _flag_k = FK_CMP; 26659 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B519; /* 0x3614B514: je 0x3614b519 */ 26660 L_3614B516: 26661 MEM32(esi + 0x4) = ecx; /* 0x3614B516: mov dword ptr [esi + 4], ecx */ 26662 L_3614B519: 26663 esi = MEM32(ecx + 0x4); /* 0x3614B519: mov esi, dword ptr [ecx + 4] */ 26664 MEM32(edx + 0x4) = esi; /* 0x3614B51C: mov dword ptr [edx + 4], esi */ 26665 esi = MEM32(edi + 0x4); /* 0x3614B51F: mov esi, dword ptr [edi + 4] */ 26666 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B522: cmp ecx, dword ptr [esi + 4] */ 26667 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 26668 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26669 _flag_k = FK_CMP; 26670 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B52C; /* 0x3614B525: jne 0x3614b52c */ 26671 L_3614B527: 26672 MEM32(esi + 0x4) = edx; /* 0x3614B527: mov dword ptr [esi + 4], edx */ 26673 goto L_3614B53B; /* 0x3614B52A: jmp 0x3614b53b */ 26674 L_3614B52C: 26675 esi = MEM32(ecx + 0x4); /* 0x3614B52C: mov esi, dword ptr [ecx + 4] */ 26676 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B52F: cmp ecx, dword ptr [esi + 8] */ 26677 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 26678 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26679 _flag_k = FK_CMP; 26680 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B539; /* 0x3614B532: jne 0x3614b539 */ 26681 L_3614B534: 26682 MEM32(esi + 0x8) = edx; /* 0x3614B534: mov dword ptr [esi + 8], edx */ 26683 goto L_3614B53B; /* 0x3614B537: jmp 0x3614b53b */ 26684 L_3614B539: 26685 MEM32(esi) = edx; /* 0x3614B539: mov dword ptr [esi], edx */ 26686 L_3614B53B: 26687 MEM32(edx + 0x8) = ecx; /* 0x3614B53B: mov dword ptr [edx + 8], ecx */ 26688 MEM32(ecx + 0x4) = edx; /* 0x3614B53E: mov dword ptr [ecx + 4], edx */ 26689 ecx = MEM32(eax + 0x4); /* 0x3614B541: mov ecx, dword ptr [eax + 4] */ 26690 ecx = MEM32(ecx + 0x8); /* 0x3614B544: mov ecx, dword ptr [ecx + 8] */ 26691 L_3614B547: 26692 edx = MEM32(eax + 0x4); /* 0x3614B547: mov edx, dword ptr [eax + 4] */ 26693 SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3614B54A: mov dl, byte ptr [edx + 0x20] */ 26694 MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B54D: mov byte ptr [ecx + 0x20], dl */ 26695 edx = MEM32(eax + 0x4); /* 0x3614B550: mov edx, dword ptr [eax + 4] */ 26696 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B553: mov byte ptr [edx + 0x20], bl */ 26697 ecx = MEM32(ecx + 0x8); /* 0x3614B556: mov ecx, dword ptr [ecx + 8] */ 26698 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B559: mov byte ptr [ecx + 0x20], bl */ 26699 ecx = MEM32(eax + 0x4); /* 0x3614B55C: mov ecx, dword ptr [eax + 4] */ 26700 edx = MEM32(ecx + 0x8); /* 0x3614B55F: mov edx, dword ptr [ecx + 8] */ 26701 esi = MEM32(edx); /* 0x3614B562: mov esi, dword ptr [edx] */ 26702 MEM32(ecx + 0x8) = esi; /* 0x3614B564: mov dword ptr [ecx + 8], esi */ 26703 esi = MEM32(edx); /* 0x3614B567: mov esi, dword ptr [edx] */ 26704 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B569: cmp esi, dword ptr [edi + 8] */ 26705 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 26706 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26707 _flag_k = FK_CMP; 26708 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B571; /* 0x3614B56C: je 0x3614b571 */ 26709 L_3614B56E: 26710 MEM32(esi + 0x4) = ecx; /* 0x3614B56E: mov dword ptr [esi + 4], ecx */ 26711 L_3614B571: 26712 esi = MEM32(ecx + 0x4); /* 0x3614B571: mov esi, dword ptr [ecx + 4] */ 26713 MEM32(edx + 0x4) = esi; /* 0x3614B574: mov dword ptr [edx + 4], esi */ 26714 esi = MEM32(edi + 0x4); /* 0x3614B577: mov esi, dword ptr [edi + 4] */ 26715 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B57A: cmp ecx, dword ptr [esi + 4] */ 26716 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 26717 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26718 _flag_k = FK_CMP; 26719 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B589; /* 0x3614B57D: jne 0x3614b589 */ 26720 L_3614B57F: 26721 MEM32(esi + 0x4) = edx; /* 0x3614B57F: mov dword ptr [esi + 4], edx */ 26722 MEM32(edx) = ecx; /* 0x3614B582: mov dword ptr [edx], ecx */ 26723 goto L_3614B63F; /* 0x3614B584: jmp 0x3614b63f */ 26724 L_3614B589: 26725 esi = MEM32(ecx + 0x4); /* 0x3614B589: mov esi, dword ptr [ecx + 4] */ 26726 /* cmp ecx, MEM32(esi) */ /* 0x3614B58C: cmp ecx, dword ptr [esi] */ 26727 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 26728 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26729 _flag_k = FK_CMP; 26730 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B599; /* 0x3614B58E: jne 0x3614b599 */ 26731 L_3614B590: 26732 MEM32(esi) = edx; /* 0x3614B590: mov dword ptr [esi], edx */ 26733 MEM32(edx) = ecx; /* 0x3614B592: mov dword ptr [edx], ecx */ 26734 goto L_3614B63F; /* 0x3614B594: jmp 0x3614b63f */ 26735 L_3614B599: 26736 MEM32(esi + 0x8) = edx; /* 0x3614B599: mov dword ptr [esi + 8], edx */ 26737 MEM32(edx) = ecx; /* 0x3614B59C: mov dword ptr [edx], ecx */ 26738 goto L_3614B63F; /* 0x3614B59E: jmp 0x3614b63f */ 26739 L_3614B5A3: 26740 edx = MEM32(ecx); /* 0x3614B5A3: mov edx, dword ptr [ecx] */ 26741 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B5A5: cmp byte ptr [edx + 0x20], bl */ 26742 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 26743 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26744 _flag_k = FK_NARROW(FK_CMP, 24); 26745 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5F1; /* 0x3614B5A8: jne 0x3614b5f1 */ 26746 L_3614B5AA: 26747 edx = MEM32(ecx + 0x8); /* 0x3614B5AA: mov edx, dword ptr [ecx + 8] */ 26748 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B5AD: mov byte ptr [edx + 0x20], bl */ 26749 edx = MEM32(ecx + 0x8); /* 0x3614B5B0: mov edx, dword ptr [ecx + 8] */ 26750 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B5B3: mov byte ptr [ecx + 0x20], 0 */ 26751 esi = MEM32(edx); /* 0x3614B5B7: mov esi, dword ptr [edx] */ 26752 MEM32(ecx + 0x8) = esi; /* 0x3614B5B9: mov dword ptr [ecx + 8], esi */ 26753 esi = MEM32(edx); /* 0x3614B5BC: mov esi, dword ptr [edx] */ 26754 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B5BE: cmp esi, dword ptr [edi + 8] */ 26755 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 26756 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26757 _flag_k = FK_CMP; 26758 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B5C6; /* 0x3614B5C1: je 0x3614b5c6 */ 26759 L_3614B5C3: 26760 MEM32(esi + 0x4) = ecx; /* 0x3614B5C3: mov dword ptr [esi + 4], ecx */ 26761 L_3614B5C6: 26762 esi = MEM32(ecx + 0x4); /* 0x3614B5C6: mov esi, dword ptr [ecx + 4] */ 26763 MEM32(edx + 0x4) = esi; /* 0x3614B5C9: mov dword ptr [edx + 4], esi */ 26764 esi = MEM32(edi + 0x4); /* 0x3614B5CC: mov esi, dword ptr [edi + 4] */ 26765 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B5CF: cmp ecx, dword ptr [esi + 4] */ 26766 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 26767 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26768 _flag_k = FK_CMP; 26769 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5D9; /* 0x3614B5D2: jne 0x3614b5d9 */ 26770 L_3614B5D4: 26771 MEM32(esi + 0x4) = edx; /* 0x3614B5D4: mov dword ptr [esi + 4], edx */ 26772 goto L_3614B5E7; /* 0x3614B5D7: jmp 0x3614b5e7 */ 26773 L_3614B5D9: 26774 esi = MEM32(ecx + 0x4); /* 0x3614B5D9: mov esi, dword ptr [ecx + 4] */ 26775 /* cmp ecx, MEM32(esi) */ /* 0x3614B5DC: cmp ecx, dword ptr [esi] */ 26776 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 26777 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26778 _flag_k = FK_CMP; 26779 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5E4; /* 0x3614B5DE: jne 0x3614b5e4 */ 26780 L_3614B5E0: 26781 MEM32(esi) = edx; /* 0x3614B5E0: mov dword ptr [esi], edx */ 26782 goto L_3614B5E7; /* 0x3614B5E2: jmp 0x3614b5e7 */ 26783 L_3614B5E4: 26784 MEM32(esi + 0x8) = edx; /* 0x3614B5E4: mov dword ptr [esi + 8], edx */ 26785 L_3614B5E7: 26786 MEM32(edx) = ecx; /* 0x3614B5E7: mov dword ptr [edx], ecx */ 26787 MEM32(ecx + 0x4) = edx; /* 0x3614B5E9: mov dword ptr [ecx + 4], edx */ 26788 ecx = MEM32(eax + 0x4); /* 0x3614B5EC: mov ecx, dword ptr [eax + 4] */ 26789 ecx = MEM32(ecx); /* 0x3614B5EF: mov ecx, dword ptr [ecx] */ 26790 L_3614B5F1: 26791 edx = MEM32(eax + 0x4); /* 0x3614B5F1: mov edx, dword ptr [eax + 4] */ 26792 SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3614B5F4: mov dl, byte ptr [edx + 0x20] */ 26793 MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B5F7: mov byte ptr [ecx + 0x20], dl */ 26794 edx = MEM32(eax + 0x4); /* 0x3614B5FA: mov edx, dword ptr [eax + 4] */ 26795 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B5FD: mov byte ptr [edx + 0x20], bl */ 26796 ecx = MEM32(ecx); /* 0x3614B600: mov ecx, dword ptr [ecx] */ 26797 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B602: mov byte ptr [ecx + 0x20], bl */ 26798 ecx = MEM32(eax + 0x4); /* 0x3614B605: mov ecx, dword ptr [eax + 4] */ 26799 edx = MEM32(ecx); /* 0x3614B608: mov edx, dword ptr [ecx] */ 26800 esi = MEM32(edx + 0x8); /* 0x3614B60A: mov esi, dword ptr [edx + 8] */ 26801 MEM32(ecx) = esi; /* 0x3614B60D: mov dword ptr [ecx], esi */ 26802 esi = MEM32(edx + 0x8); /* 0x3614B60F: mov esi, dword ptr [edx + 8] */ 26803 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B612: cmp esi, dword ptr [edi + 8] */ 26804 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 26805 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26806 _flag_k = FK_CMP; 26807 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B61A; /* 0x3614B615: je 0x3614b61a */ 26808 L_3614B617: 26809 MEM32(esi + 0x4) = ecx; /* 0x3614B617: mov dword ptr [esi + 4], ecx */ 26810 L_3614B61A: 26811 esi = MEM32(ecx + 0x4); /* 0x3614B61A: mov esi, dword ptr [ecx + 4] */ 26812 MEM32(edx + 0x4) = esi; /* 0x3614B61D: mov dword ptr [edx + 4], esi */ 26813 esi = MEM32(edi + 0x4); /* 0x3614B620: mov esi, dword ptr [edi + 4] */ 26814 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B623: cmp ecx, dword ptr [esi + 4] */ 26815 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 26816 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26817 _flag_k = FK_CMP; 26818 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B62D; /* 0x3614B626: jne 0x3614b62d */ 26819 L_3614B628: 26820 MEM32(esi + 0x4) = edx; /* 0x3614B628: mov dword ptr [esi + 4], edx */ 26821 goto L_3614B63C; /* 0x3614B62B: jmp 0x3614b63c */ 26822 L_3614B62D: 26823 esi = MEM32(ecx + 0x4); /* 0x3614B62D: mov esi, dword ptr [ecx + 4] */ 26824 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B630: cmp ecx, dword ptr [esi + 8] */ 26825 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 26826 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26827 _flag_k = FK_CMP; 26828 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B63A; /* 0x3614B633: jne 0x3614b63a */ 26829 L_3614B635: 26830 MEM32(esi + 0x8) = edx; /* 0x3614B635: mov dword ptr [esi + 8], edx */ 26831 goto L_3614B63C; /* 0x3614B638: jmp 0x3614b63c */ 26832 L_3614B63A: 26833 MEM32(esi) = edx; /* 0x3614B63A: mov dword ptr [esi], edx */ 26834 L_3614B63C: 26835 MEM32(edx + 0x8) = ecx; /* 0x3614B63C: mov dword ptr [edx + 8], ecx */ 26836 L_3614B63F: 26837 MEM32(ecx + 0x4) = edx; /* 0x3614B63F: mov dword ptr [ecx + 4], edx */ 26838 L_3614B642: 26839 esi = MEM32(ebp + (-0x4)); /* 0x3614B642: mov esi, dword ptr [ebp - 4] */ 26840 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B645: mov byte ptr [eax + 0x20], bl */ 26841 L_3614B648: 26842 ecx = esi + 0xC; /* 0x3614B648: lea ecx, [esi + 0xc] */ 26843 RECOMP_ICALL(0x3614AFC0u); /* 0x3614B64B: call 0x3614afc0 */ /* not lifted */ 26844 RECOMP_FLAGS_IN(); 26845 PUSH32(esp, esi); /* 0x3614B650: push esi */ 26846 RECOMP_ICALL(0x3615FCC4u); /* 0x3614B651: call 0x3615fcc4 */ /* not lifted */ 26847 RECOMP_FLAGS_IN(); 26848 eax = MEM32(edi + 0x10); /* 0x3614B656: mov eax, dword ptr [edi + 0x10] */ 26849 edx = MEM32(ebp + 0xC); /* 0x3614B659: mov edx, dword ptr [ebp + 0xc] */ 26850 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 26851 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 26852 esp = esp + 4; /* 0x3614B65C: add esp, 4 */ 26853 _flag_k = FK_ADD; 26854 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 26855 eax = eax - 1; /* 0x3614B65F: dec eax */ 26856 _flag_k = FK_DEC; 26857 MEM32(edi + 0x10) = eax; /* 0x3614B660: mov dword ptr [edi + 0x10], eax */ 26858 eax = MEM32(ebp + 0x8); /* 0x3614B663: mov eax, dword ptr [ebp + 8] */ 26859 edi = POP32_VAL(esp); /* 0x3614B666: pop edi */ 26860 esi = POP32_VAL(esp); /* 0x3614B667: pop esi */ 26861 MEM32(eax) = edx; /* 0x3614B668: mov dword ptr [eax], edx */ 26862 ebx = POP32_VAL(esp); /* 0x3614B66A: pop ebx */ 26863 esp = ebp; /* 0x3614B66B: mov esp, ebp */ 26864 ebp = POP32_VAL(esp); /* 0x3614B66D: pop ebp */ 26865 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614B66E: ret 8 */ 26866 RECOMP_REGS_OUT(); 26867 } 26868 26869 void sub_3614B3D5(void) { 26870 int _fpu_cmp = 0; 26871 uint32_t _cf = 0; 26872 int _df = 1; 26873 uint32_t _flag_k = FK_NONE; 26874 uint32_t _flag_a = 0, _flag_b = 0; 26875 uint32_t _itail_tgt = 0; 26876 RECOMP_REGS_LOCALS 26877 RECOMP_ENTER(0x3614B3D5u); 26878 26879 L_3614B3D5: 26880 MEM32(ebx + 0x8) = edx; /* 0x3614B3D5: mov dword ptr [ebx + 8], edx */ 26881 esi = MEM32(ebp + (-0x4)); /* 0x3614B3D8: mov esi, dword ptr [ebp - 4] */ 26882 SET_LO8(ecx, MEM8(esi + 0x20)); /* 0x3614B3DB: mov cl, byte ptr [esi + 0x20] */ 26883 SET_LO8(ebx, 1); /* 0x3614B3DE: mov bl, 1 */ 26884 /* cmp LO8(ecx), LO8(ebx) */ /* 0x3614B3E0: cmp cl, bl */ 26885 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 26886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26887 _flag_k = FK_NARROW(FK_CMP, 24); 26888 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B648; /* 0x3614B3E2: jne 0x3614b648 */ 26889 L_3614B3E8: 26890 ecx = MEM32(edi + 0x4); /* 0x3614B3E8: mov ecx, dword ptr [edi + 4] */ 26891 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B3EB: cmp eax, dword ptr [ecx + 4] */ 26892 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 26893 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26894 _flag_k = FK_CMP; 26895 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B642; /* 0x3614B3EE: je 0x3614b642 */ 26896 L_3614B3F4: 26897 /* cmp MEM8(eax + 0x20), LO8(ebx) */ /* 0x3614B3F4: cmp byte ptr [eax + 0x20], bl */ 26898 _flag_a = (uint32_t)(MEM8(eax + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 26899 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26900 _flag_k = FK_NARROW(FK_CMP, 24); 26901 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B642; /* 0x3614B3F7: jne 0x3614b642 */ 26902 L_3614B3FD: 26903 edx = MEM32(eax + 0x4); /* 0x3614B3FD: mov edx, dword ptr [eax + 4] */ 26904 ecx = MEM32(edx); /* 0x3614B400: mov ecx, dword ptr [edx] */ 26905 /* cmp eax, ecx */ /* 0x3614B402: cmp eax, ecx */ 26906 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 26907 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26908 _flag_k = FK_CMP; 26909 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B474; /* 0x3614B404: jne 0x3614b474 */ 26910 L_3614B406: 26911 ecx = MEM32(edx + 0x8); /* 0x3614B406: mov ecx, dword ptr [edx + 8] */ 26912 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B409: mov dl, byte ptr [ecx + 0x20] */ 26913 /* test LO8(edx), LO8(edx) */ /* 0x3614B40C: test dl, dl */ 26914 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 26915 _cf = 0; 26916 _flag_k = FK_NARROW(FK_TEST, 24); 26917 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B45B; /* 0x3614B40E: jne 0x3614b45b */ 26918 L_3614B410: 26919 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B410: mov byte ptr [ecx + 0x20], bl */ 26920 edx = MEM32(eax + 0x4); /* 0x3614B413: mov edx, dword ptr [eax + 4] */ 26921 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x3614B416: mov byte ptr [edx + 0x20], 0 */ 26922 ecx = MEM32(eax + 0x4); /* 0x3614B41A: mov ecx, dword ptr [eax + 4] */ 26923 edx = MEM32(ecx + 0x8); /* 0x3614B41D: mov edx, dword ptr [ecx + 8] */ 26924 esi = MEM32(edx); /* 0x3614B420: mov esi, dword ptr [edx] */ 26925 MEM32(ecx + 0x8) = esi; /* 0x3614B422: mov dword ptr [ecx + 8], esi */ 26926 esi = MEM32(edx); /* 0x3614B425: mov esi, dword ptr [edx] */ 26927 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B427: cmp esi, dword ptr [edi + 8] */ 26928 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 26929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26930 _flag_k = FK_CMP; 26931 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B42F; /* 0x3614B42A: je 0x3614b42f */ 26932 L_3614B42C: 26933 MEM32(esi + 0x4) = ecx; /* 0x3614B42C: mov dword ptr [esi + 4], ecx */ 26934 L_3614B42F: 26935 esi = MEM32(ecx + 0x4); /* 0x3614B42F: mov esi, dword ptr [ecx + 4] */ 26936 MEM32(edx + 0x4) = esi; /* 0x3614B432: mov dword ptr [edx + 4], esi */ 26937 esi = MEM32(edi + 0x4); /* 0x3614B435: mov esi, dword ptr [edi + 4] */ 26938 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B438: cmp ecx, dword ptr [esi + 4] */ 26939 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 26940 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26941 _flag_k = FK_CMP; 26942 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B442; /* 0x3614B43B: jne 0x3614b442 */ 26943 L_3614B43D: 26944 MEM32(esi + 0x4) = edx; /* 0x3614B43D: mov dword ptr [esi + 4], edx */ 26945 goto L_3614B450; /* 0x3614B440: jmp 0x3614b450 */ 26946 L_3614B442: 26947 esi = MEM32(ecx + 0x4); /* 0x3614B442: mov esi, dword ptr [ecx + 4] */ 26948 /* cmp ecx, MEM32(esi) */ /* 0x3614B445: cmp ecx, dword ptr [esi] */ 26949 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 26950 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26951 _flag_k = FK_CMP; 26952 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B44D; /* 0x3614B447: jne 0x3614b44d */ 26953 L_3614B449: 26954 MEM32(esi) = edx; /* 0x3614B449: mov dword ptr [esi], edx */ 26955 goto L_3614B450; /* 0x3614B44B: jmp 0x3614b450 */ 26956 L_3614B44D: 26957 MEM32(esi + 0x8) = edx; /* 0x3614B44D: mov dword ptr [esi + 8], edx */ 26958 L_3614B450: 26959 MEM32(edx) = ecx; /* 0x3614B450: mov dword ptr [edx], ecx */ 26960 MEM32(ecx + 0x4) = edx; /* 0x3614B452: mov dword ptr [ecx + 4], edx */ 26961 ecx = MEM32(eax + 0x4); /* 0x3614B455: mov ecx, dword ptr [eax + 4] */ 26962 ecx = MEM32(ecx + 0x8); /* 0x3614B458: mov ecx, dword ptr [ecx + 8] */ 26963 L_3614B45B: 26964 edx = MEM32(ecx); /* 0x3614B45B: mov edx, dword ptr [ecx] */ 26965 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B45D: cmp byte ptr [edx + 0x20], bl */ 26966 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 26967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26968 _flag_k = FK_NARROW(FK_CMP, 24); 26969 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4F6; /* 0x3614B460: jne 0x3614b4f6 */ 26970 L_3614B466: 26971 edx = MEM32(ecx + 0x8); /* 0x3614B466: mov edx, dword ptr [ecx + 8] */ 26972 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B469: cmp byte ptr [edx + 0x20], bl */ 26973 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 26974 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26975 _flag_k = FK_NARROW(FK_CMP, 24); 26976 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4F6; /* 0x3614B46C: jne 0x3614b4f6 */ 26977 L_3614B472: 26978 goto L_3614B4DE; /* 0x3614B472: jmp 0x3614b4de */ 26979 L_3614B474: 26980 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B474: mov dl, byte ptr [ecx + 0x20] */ 26981 /* test LO8(edx), LO8(edx) */ /* 0x3614B477: test dl, dl */ 26982 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 26983 _cf = 0; 26984 _flag_k = FK_NARROW(FK_TEST, 24); 26985 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B4C7; /* 0x3614B479: jne 0x3614b4c7 */ 26986 L_3614B47B: 26987 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B47B: mov byte ptr [ecx + 0x20], bl */ 26988 ecx = MEM32(eax + 0x4); /* 0x3614B47E: mov ecx, dword ptr [eax + 4] */ 26989 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B481: mov byte ptr [ecx + 0x20], 0 */ 26990 ecx = MEM32(eax + 0x4); /* 0x3614B485: mov ecx, dword ptr [eax + 4] */ 26991 edx = MEM32(ecx); /* 0x3614B488: mov edx, dword ptr [ecx] */ 26992 esi = MEM32(edx + 0x8); /* 0x3614B48A: mov esi, dword ptr [edx + 8] */ 26993 MEM32(ecx) = esi; /* 0x3614B48D: mov dword ptr [ecx], esi */ 26994 esi = MEM32(edx + 0x8); /* 0x3614B48F: mov esi, dword ptr [edx + 8] */ 26995 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B492: cmp esi, dword ptr [edi + 8] */ 26996 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 26997 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 26998 _flag_k = FK_CMP; 26999 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B49A; /* 0x3614B495: je 0x3614b49a */ 27000 L_3614B497: 27001 MEM32(esi + 0x4) = ecx; /* 0x3614B497: mov dword ptr [esi + 4], ecx */ 27002 L_3614B49A: 27003 esi = MEM32(ecx + 0x4); /* 0x3614B49A: mov esi, dword ptr [ecx + 4] */ 27004 MEM32(edx + 0x4) = esi; /* 0x3614B49D: mov dword ptr [edx + 4], esi */ 27005 esi = MEM32(edi + 0x4); /* 0x3614B4A0: mov esi, dword ptr [edi + 4] */ 27006 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B4A3: cmp ecx, dword ptr [esi + 4] */ 27007 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 27008 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27009 _flag_k = FK_CMP; 27010 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4AD; /* 0x3614B4A6: jne 0x3614b4ad */ 27011 L_3614B4A8: 27012 MEM32(esi + 0x4) = edx; /* 0x3614B4A8: mov dword ptr [esi + 4], edx */ 27013 goto L_3614B4BC; /* 0x3614B4AB: jmp 0x3614b4bc */ 27014 L_3614B4AD: 27015 esi = MEM32(ecx + 0x4); /* 0x3614B4AD: mov esi, dword ptr [ecx + 4] */ 27016 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B4B0: cmp ecx, dword ptr [esi + 8] */ 27017 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 27018 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27019 _flag_k = FK_CMP; 27020 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4BA; /* 0x3614B4B3: jne 0x3614b4ba */ 27021 L_3614B4B5: 27022 MEM32(esi + 0x8) = edx; /* 0x3614B4B5: mov dword ptr [esi + 8], edx */ 27023 goto L_3614B4BC; /* 0x3614B4B8: jmp 0x3614b4bc */ 27024 L_3614B4BA: 27025 MEM32(esi) = edx; /* 0x3614B4BA: mov dword ptr [esi], edx */ 27026 L_3614B4BC: 27027 MEM32(edx + 0x8) = ecx; /* 0x3614B4BC: mov dword ptr [edx + 8], ecx */ 27028 MEM32(ecx + 0x4) = edx; /* 0x3614B4BF: mov dword ptr [ecx + 4], edx */ 27029 edx = MEM32(eax + 0x4); /* 0x3614B4C2: mov edx, dword ptr [eax + 4] */ 27030 ecx = MEM32(edx); /* 0x3614B4C5: mov ecx, dword ptr [edx] */ 27031 L_3614B4C7: 27032 edx = MEM32(ecx + 0x8); /* 0x3614B4C7: mov edx, dword ptr [ecx + 8] */ 27033 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4CA: cmp byte ptr [edx + 0x20], bl */ 27034 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 27035 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27036 _flag_k = FK_NARROW(FK_CMP, 24); 27037 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5A3; /* 0x3614B4CD: jne 0x3614b5a3 */ 27038 L_3614B4D3: 27039 edx = MEM32(ecx); /* 0x3614B4D3: mov edx, dword ptr [ecx] */ 27040 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4D5: cmp byte ptr [edx + 0x20], bl */ 27041 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 27042 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27043 _flag_k = FK_NARROW(FK_CMP, 24); 27044 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5A3; /* 0x3614B4D8: jne 0x3614b5a3 */ 27045 L_3614B4DE: 27046 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B4DE: mov byte ptr [ecx + 0x20], 0 */ 27047 ecx = MEM32(edi + 0x4); /* 0x3614B4E2: mov ecx, dword ptr [edi + 4] */ 27048 eax = MEM32(eax + 0x4); /* 0x3614B4E5: mov eax, dword ptr [eax + 4] */ 27049 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B4E8: cmp eax, dword ptr [ecx + 4] */ 27050 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 27051 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27052 _flag_k = FK_CMP; 27053 RECOMP_BACKEDGE(); 27054 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B3F4; /* 0x3614B4EB: jne 0x3614b3f4 */ 27055 L_3614B4F1: 27056 goto L_3614B642; /* 0x3614B4F1: jmp 0x3614b642 */ 27057 L_3614B4F6: 27058 edx = MEM32(ecx + 0x8); /* 0x3614B4F6: mov edx, dword ptr [ecx + 8] */ 27059 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4F9: cmp byte ptr [edx + 0x20], bl */ 27060 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 27061 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27062 _flag_k = FK_NARROW(FK_CMP, 24); 27063 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B547; /* 0x3614B4FC: jne 0x3614b547 */ 27064 L_3614B4FE: 27065 edx = MEM32(ecx); /* 0x3614B4FE: mov edx, dword ptr [ecx] */ 27066 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B500: mov byte ptr [edx + 0x20], bl */ 27067 edx = MEM32(ecx); /* 0x3614B503: mov edx, dword ptr [ecx] */ 27068 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B505: mov byte ptr [ecx + 0x20], 0 */ 27069 esi = MEM32(edx + 0x8); /* 0x3614B509: mov esi, dword ptr [edx + 8] */ 27070 MEM32(ecx) = esi; /* 0x3614B50C: mov dword ptr [ecx], esi */ 27071 esi = MEM32(edx + 0x8); /* 0x3614B50E: mov esi, dword ptr [edx + 8] */ 27072 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B511: cmp esi, dword ptr [edi + 8] */ 27073 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 27074 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27075 _flag_k = FK_CMP; 27076 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B519; /* 0x3614B514: je 0x3614b519 */ 27077 L_3614B516: 27078 MEM32(esi + 0x4) = ecx; /* 0x3614B516: mov dword ptr [esi + 4], ecx */ 27079 L_3614B519: 27080 esi = MEM32(ecx + 0x4); /* 0x3614B519: mov esi, dword ptr [ecx + 4] */ 27081 MEM32(edx + 0x4) = esi; /* 0x3614B51C: mov dword ptr [edx + 4], esi */ 27082 esi = MEM32(edi + 0x4); /* 0x3614B51F: mov esi, dword ptr [edi + 4] */ 27083 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B522: cmp ecx, dword ptr [esi + 4] */ 27084 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 27085 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27086 _flag_k = FK_CMP; 27087 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B52C; /* 0x3614B525: jne 0x3614b52c */ 27088 L_3614B527: 27089 MEM32(esi + 0x4) = edx; /* 0x3614B527: mov dword ptr [esi + 4], edx */ 27090 goto L_3614B53B; /* 0x3614B52A: jmp 0x3614b53b */ 27091 L_3614B52C: 27092 esi = MEM32(ecx + 0x4); /* 0x3614B52C: mov esi, dword ptr [ecx + 4] */ 27093 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B52F: cmp ecx, dword ptr [esi + 8] */ 27094 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 27095 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27096 _flag_k = FK_CMP; 27097 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B539; /* 0x3614B532: jne 0x3614b539 */ 27098 L_3614B534: 27099 MEM32(esi + 0x8) = edx; /* 0x3614B534: mov dword ptr [esi + 8], edx */ 27100 goto L_3614B53B; /* 0x3614B537: jmp 0x3614b53b */ 27101 L_3614B539: 27102 MEM32(esi) = edx; /* 0x3614B539: mov dword ptr [esi], edx */ 27103 L_3614B53B: 27104 MEM32(edx + 0x8) = ecx; /* 0x3614B53B: mov dword ptr [edx + 8], ecx */ 27105 MEM32(ecx + 0x4) = edx; /* 0x3614B53E: mov dword ptr [ecx + 4], edx */ 27106 ecx = MEM32(eax + 0x4); /* 0x3614B541: mov ecx, dword ptr [eax + 4] */ 27107 ecx = MEM32(ecx + 0x8); /* 0x3614B544: mov ecx, dword ptr [ecx + 8] */ 27108 L_3614B547: 27109 edx = MEM32(eax + 0x4); /* 0x3614B547: mov edx, dword ptr [eax + 4] */ 27110 SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3614B54A: mov dl, byte ptr [edx + 0x20] */ 27111 MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B54D: mov byte ptr [ecx + 0x20], dl */ 27112 edx = MEM32(eax + 0x4); /* 0x3614B550: mov edx, dword ptr [eax + 4] */ 27113 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B553: mov byte ptr [edx + 0x20], bl */ 27114 ecx = MEM32(ecx + 0x8); /* 0x3614B556: mov ecx, dword ptr [ecx + 8] */ 27115 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B559: mov byte ptr [ecx + 0x20], bl */ 27116 ecx = MEM32(eax + 0x4); /* 0x3614B55C: mov ecx, dword ptr [eax + 4] */ 27117 edx = MEM32(ecx + 0x8); /* 0x3614B55F: mov edx, dword ptr [ecx + 8] */ 27118 esi = MEM32(edx); /* 0x3614B562: mov esi, dword ptr [edx] */ 27119 MEM32(ecx + 0x8) = esi; /* 0x3614B564: mov dword ptr [ecx + 8], esi */ 27120 esi = MEM32(edx); /* 0x3614B567: mov esi, dword ptr [edx] */ 27121 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B569: cmp esi, dword ptr [edi + 8] */ 27122 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 27123 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27124 _flag_k = FK_CMP; 27125 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B571; /* 0x3614B56C: je 0x3614b571 */ 27126 L_3614B56E: 27127 MEM32(esi + 0x4) = ecx; /* 0x3614B56E: mov dword ptr [esi + 4], ecx */ 27128 L_3614B571: 27129 esi = MEM32(ecx + 0x4); /* 0x3614B571: mov esi, dword ptr [ecx + 4] */ 27130 MEM32(edx + 0x4) = esi; /* 0x3614B574: mov dword ptr [edx + 4], esi */ 27131 esi = MEM32(edi + 0x4); /* 0x3614B577: mov esi, dword ptr [edi + 4] */ 27132 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B57A: cmp ecx, dword ptr [esi + 4] */ 27133 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 27134 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27135 _flag_k = FK_CMP; 27136 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B589; /* 0x3614B57D: jne 0x3614b589 */ 27137 L_3614B57F: 27138 MEM32(esi + 0x4) = edx; /* 0x3614B57F: mov dword ptr [esi + 4], edx */ 27139 MEM32(edx) = ecx; /* 0x3614B582: mov dword ptr [edx], ecx */ 27140 goto L_3614B63F; /* 0x3614B584: jmp 0x3614b63f */ 27141 L_3614B589: 27142 esi = MEM32(ecx + 0x4); /* 0x3614B589: mov esi, dword ptr [ecx + 4] */ 27143 /* cmp ecx, MEM32(esi) */ /* 0x3614B58C: cmp ecx, dword ptr [esi] */ 27144 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 27145 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27146 _flag_k = FK_CMP; 27147 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B599; /* 0x3614B58E: jne 0x3614b599 */ 27148 L_3614B590: 27149 MEM32(esi) = edx; /* 0x3614B590: mov dword ptr [esi], edx */ 27150 MEM32(edx) = ecx; /* 0x3614B592: mov dword ptr [edx], ecx */ 27151 goto L_3614B63F; /* 0x3614B594: jmp 0x3614b63f */ 27152 L_3614B599: 27153 MEM32(esi + 0x8) = edx; /* 0x3614B599: mov dword ptr [esi + 8], edx */ 27154 MEM32(edx) = ecx; /* 0x3614B59C: mov dword ptr [edx], ecx */ 27155 goto L_3614B63F; /* 0x3614B59E: jmp 0x3614b63f */ 27156 L_3614B5A3: 27157 edx = MEM32(ecx); /* 0x3614B5A3: mov edx, dword ptr [ecx] */ 27158 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B5A5: cmp byte ptr [edx + 0x20], bl */ 27159 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 27160 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27161 _flag_k = FK_NARROW(FK_CMP, 24); 27162 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5F1; /* 0x3614B5A8: jne 0x3614b5f1 */ 27163 L_3614B5AA: 27164 edx = MEM32(ecx + 0x8); /* 0x3614B5AA: mov edx, dword ptr [ecx + 8] */ 27165 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B5AD: mov byte ptr [edx + 0x20], bl */ 27166 edx = MEM32(ecx + 0x8); /* 0x3614B5B0: mov edx, dword ptr [ecx + 8] */ 27167 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B5B3: mov byte ptr [ecx + 0x20], 0 */ 27168 esi = MEM32(edx); /* 0x3614B5B7: mov esi, dword ptr [edx] */ 27169 MEM32(ecx + 0x8) = esi; /* 0x3614B5B9: mov dword ptr [ecx + 8], esi */ 27170 esi = MEM32(edx); /* 0x3614B5BC: mov esi, dword ptr [edx] */ 27171 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B5BE: cmp esi, dword ptr [edi + 8] */ 27172 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 27173 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27174 _flag_k = FK_CMP; 27175 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B5C6; /* 0x3614B5C1: je 0x3614b5c6 */ 27176 L_3614B5C3: 27177 MEM32(esi + 0x4) = ecx; /* 0x3614B5C3: mov dword ptr [esi + 4], ecx */ 27178 L_3614B5C6: 27179 esi = MEM32(ecx + 0x4); /* 0x3614B5C6: mov esi, dword ptr [ecx + 4] */ 27180 MEM32(edx + 0x4) = esi; /* 0x3614B5C9: mov dword ptr [edx + 4], esi */ 27181 esi = MEM32(edi + 0x4); /* 0x3614B5CC: mov esi, dword ptr [edi + 4] */ 27182 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B5CF: cmp ecx, dword ptr [esi + 4] */ 27183 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 27184 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27185 _flag_k = FK_CMP; 27186 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5D9; /* 0x3614B5D2: jne 0x3614b5d9 */ 27187 L_3614B5D4: 27188 MEM32(esi + 0x4) = edx; /* 0x3614B5D4: mov dword ptr [esi + 4], edx */ 27189 goto L_3614B5E7; /* 0x3614B5D7: jmp 0x3614b5e7 */ 27190 L_3614B5D9: 27191 esi = MEM32(ecx + 0x4); /* 0x3614B5D9: mov esi, dword ptr [ecx + 4] */ 27192 /* cmp ecx, MEM32(esi) */ /* 0x3614B5DC: cmp ecx, dword ptr [esi] */ 27193 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 27194 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27195 _flag_k = FK_CMP; 27196 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5E4; /* 0x3614B5DE: jne 0x3614b5e4 */ 27197 L_3614B5E0: 27198 MEM32(esi) = edx; /* 0x3614B5E0: mov dword ptr [esi], edx */ 27199 goto L_3614B5E7; /* 0x3614B5E2: jmp 0x3614b5e7 */ 27200 L_3614B5E4: 27201 MEM32(esi + 0x8) = edx; /* 0x3614B5E4: mov dword ptr [esi + 8], edx */ 27202 L_3614B5E7: 27203 MEM32(edx) = ecx; /* 0x3614B5E7: mov dword ptr [edx], ecx */ 27204 MEM32(ecx + 0x4) = edx; /* 0x3614B5E9: mov dword ptr [ecx + 4], edx */ 27205 ecx = MEM32(eax + 0x4); /* 0x3614B5EC: mov ecx, dword ptr [eax + 4] */ 27206 ecx = MEM32(ecx); /* 0x3614B5EF: mov ecx, dword ptr [ecx] */ 27207 L_3614B5F1: 27208 edx = MEM32(eax + 0x4); /* 0x3614B5F1: mov edx, dword ptr [eax + 4] */ 27209 SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3614B5F4: mov dl, byte ptr [edx + 0x20] */ 27210 MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B5F7: mov byte ptr [ecx + 0x20], dl */ 27211 edx = MEM32(eax + 0x4); /* 0x3614B5FA: mov edx, dword ptr [eax + 4] */ 27212 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B5FD: mov byte ptr [edx + 0x20], bl */ 27213 ecx = MEM32(ecx); /* 0x3614B600: mov ecx, dword ptr [ecx] */ 27214 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B602: mov byte ptr [ecx + 0x20], bl */ 27215 ecx = MEM32(eax + 0x4); /* 0x3614B605: mov ecx, dword ptr [eax + 4] */ 27216 edx = MEM32(ecx); /* 0x3614B608: mov edx, dword ptr [ecx] */ 27217 esi = MEM32(edx + 0x8); /* 0x3614B60A: mov esi, dword ptr [edx + 8] */ 27218 MEM32(ecx) = esi; /* 0x3614B60D: mov dword ptr [ecx], esi */ 27219 esi = MEM32(edx + 0x8); /* 0x3614B60F: mov esi, dword ptr [edx + 8] */ 27220 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B612: cmp esi, dword ptr [edi + 8] */ 27221 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 27222 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27223 _flag_k = FK_CMP; 27224 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B61A; /* 0x3614B615: je 0x3614b61a */ 27225 L_3614B617: 27226 MEM32(esi + 0x4) = ecx; /* 0x3614B617: mov dword ptr [esi + 4], ecx */ 27227 L_3614B61A: 27228 esi = MEM32(ecx + 0x4); /* 0x3614B61A: mov esi, dword ptr [ecx + 4] */ 27229 MEM32(edx + 0x4) = esi; /* 0x3614B61D: mov dword ptr [edx + 4], esi */ 27230 esi = MEM32(edi + 0x4); /* 0x3614B620: mov esi, dword ptr [edi + 4] */ 27231 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B623: cmp ecx, dword ptr [esi + 4] */ 27232 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 27233 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27234 _flag_k = FK_CMP; 27235 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B62D; /* 0x3614B626: jne 0x3614b62d */ 27236 L_3614B628: 27237 MEM32(esi + 0x4) = edx; /* 0x3614B628: mov dword ptr [esi + 4], edx */ 27238 goto L_3614B63C; /* 0x3614B62B: jmp 0x3614b63c */ 27239 L_3614B62D: 27240 esi = MEM32(ecx + 0x4); /* 0x3614B62D: mov esi, dword ptr [ecx + 4] */ 27241 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B630: cmp ecx, dword ptr [esi + 8] */ 27242 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 27243 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27244 _flag_k = FK_CMP; 27245 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B63A; /* 0x3614B633: jne 0x3614b63a */ 27246 L_3614B635: 27247 MEM32(esi + 0x8) = edx; /* 0x3614B635: mov dword ptr [esi + 8], edx */ 27248 goto L_3614B63C; /* 0x3614B638: jmp 0x3614b63c */ 27249 L_3614B63A: 27250 MEM32(esi) = edx; /* 0x3614B63A: mov dword ptr [esi], edx */ 27251 L_3614B63C: 27252 MEM32(edx + 0x8) = ecx; /* 0x3614B63C: mov dword ptr [edx + 8], ecx */ 27253 L_3614B63F: 27254 MEM32(ecx + 0x4) = edx; /* 0x3614B63F: mov dword ptr [ecx + 4], edx */ 27255 L_3614B642: 27256 esi = MEM32(ebp + (-0x4)); /* 0x3614B642: mov esi, dword ptr [ebp - 4] */ 27257 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B645: mov byte ptr [eax + 0x20], bl */ 27258 L_3614B648: 27259 ecx = esi + 0xC; /* 0x3614B648: lea ecx, [esi + 0xc] */ 27260 RECOMP_ICALL(0x3614AFC0u); /* 0x3614B64B: call 0x3614afc0 */ /* not lifted */ 27261 RECOMP_FLAGS_IN(); 27262 PUSH32(esp, esi); /* 0x3614B650: push esi */ 27263 RECOMP_ICALL(0x3615FCC4u); /* 0x3614B651: call 0x3615fcc4 */ /* not lifted */ 27264 RECOMP_FLAGS_IN(); 27265 eax = MEM32(edi + 0x10); /* 0x3614B656: mov eax, dword ptr [edi + 0x10] */ 27266 edx = MEM32(ebp + 0xC); /* 0x3614B659: mov edx, dword ptr [ebp + 0xc] */ 27267 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 27268 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27269 esp = esp + 4; /* 0x3614B65C: add esp, 4 */ 27270 _flag_k = FK_ADD; 27271 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 27272 eax = eax - 1; /* 0x3614B65F: dec eax */ 27273 _flag_k = FK_DEC; 27274 MEM32(edi + 0x10) = eax; /* 0x3614B660: mov dword ptr [edi + 0x10], eax */ 27275 eax = MEM32(ebp + 0x8); /* 0x3614B663: mov eax, dword ptr [ebp + 8] */ 27276 edi = POP32_VAL(esp); /* 0x3614B666: pop edi */ 27277 esi = POP32_VAL(esp); /* 0x3614B667: pop esi */ 27278 MEM32(eax) = edx; /* 0x3614B668: mov dword ptr [eax], edx */ 27279 ebx = POP32_VAL(esp); /* 0x3614B66A: pop ebx */ 27280 esp = ebp; /* 0x3614B66B: mov esp, ebp */ 27281 ebp = POP32_VAL(esp); /* 0x3614B66D: pop ebp */ 27282 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614B66E: ret 8 */ 27283 RECOMP_REGS_OUT(); 27284 } 27285 27286 void sub_3614B3F4(void) { 27287 int _fpu_cmp = 0; 27288 uint32_t _cf = 0; 27289 int _df = 1; 27290 uint32_t _flag_k = FK_NONE; 27291 uint32_t _flag_a = 0, _flag_b = 0; 27292 uint32_t _itail_tgt = 0; 27293 RECOMP_REGS_LOCALS 27294 RECOMP_ENTER(0x3614B3F4u); 27295 27296 L_3614B3F4: 27297 /* cmp MEM8(eax + 0x20), LO8(ebx) */ /* 0x3614B3F4: cmp byte ptr [eax + 0x20], bl */ 27298 _flag_a = (uint32_t)(MEM8(eax + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 27299 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27300 _flag_k = FK_NARROW(FK_CMP, 24); 27301 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B642; /* 0x3614B3F7: jne 0x3614b642 */ 27302 L_3614B3FD: 27303 edx = MEM32(eax + 0x4); /* 0x3614B3FD: mov edx, dword ptr [eax + 4] */ 27304 ecx = MEM32(edx); /* 0x3614B400: mov ecx, dword ptr [edx] */ 27305 /* cmp eax, ecx */ /* 0x3614B402: cmp eax, ecx */ 27306 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 27307 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27308 _flag_k = FK_CMP; 27309 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B474; /* 0x3614B404: jne 0x3614b474 */ 27310 L_3614B406: 27311 ecx = MEM32(edx + 0x8); /* 0x3614B406: mov ecx, dword ptr [edx + 8] */ 27312 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B409: mov dl, byte ptr [ecx + 0x20] */ 27313 /* test LO8(edx), LO8(edx) */ /* 0x3614B40C: test dl, dl */ 27314 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 27315 _cf = 0; 27316 _flag_k = FK_NARROW(FK_TEST, 24); 27317 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B45B; /* 0x3614B40E: jne 0x3614b45b */ 27318 L_3614B410: 27319 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B410: mov byte ptr [ecx + 0x20], bl */ 27320 edx = MEM32(eax + 0x4); /* 0x3614B413: mov edx, dword ptr [eax + 4] */ 27321 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x3614B416: mov byte ptr [edx + 0x20], 0 */ 27322 ecx = MEM32(eax + 0x4); /* 0x3614B41A: mov ecx, dword ptr [eax + 4] */ 27323 edx = MEM32(ecx + 0x8); /* 0x3614B41D: mov edx, dword ptr [ecx + 8] */ 27324 esi = MEM32(edx); /* 0x3614B420: mov esi, dword ptr [edx] */ 27325 MEM32(ecx + 0x8) = esi; /* 0x3614B422: mov dword ptr [ecx + 8], esi */ 27326 esi = MEM32(edx); /* 0x3614B425: mov esi, dword ptr [edx] */ 27327 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B427: cmp esi, dword ptr [edi + 8] */ 27328 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 27329 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27330 _flag_k = FK_CMP; 27331 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B42F; /* 0x3614B42A: je 0x3614b42f */ 27332 L_3614B42C: 27333 MEM32(esi + 0x4) = ecx; /* 0x3614B42C: mov dword ptr [esi + 4], ecx */ 27334 L_3614B42F: 27335 esi = MEM32(ecx + 0x4); /* 0x3614B42F: mov esi, dword ptr [ecx + 4] */ 27336 MEM32(edx + 0x4) = esi; /* 0x3614B432: mov dword ptr [edx + 4], esi */ 27337 esi = MEM32(edi + 0x4); /* 0x3614B435: mov esi, dword ptr [edi + 4] */ 27338 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B438: cmp ecx, dword ptr [esi + 4] */ 27339 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 27340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27341 _flag_k = FK_CMP; 27342 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B442; /* 0x3614B43B: jne 0x3614b442 */ 27343 L_3614B43D: 27344 MEM32(esi + 0x4) = edx; /* 0x3614B43D: mov dword ptr [esi + 4], edx */ 27345 goto L_3614B450; /* 0x3614B440: jmp 0x3614b450 */ 27346 L_3614B442: 27347 esi = MEM32(ecx + 0x4); /* 0x3614B442: mov esi, dword ptr [ecx + 4] */ 27348 /* cmp ecx, MEM32(esi) */ /* 0x3614B445: cmp ecx, dword ptr [esi] */ 27349 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 27350 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27351 _flag_k = FK_CMP; 27352 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B44D; /* 0x3614B447: jne 0x3614b44d */ 27353 L_3614B449: 27354 MEM32(esi) = edx; /* 0x3614B449: mov dword ptr [esi], edx */ 27355 goto L_3614B450; /* 0x3614B44B: jmp 0x3614b450 */ 27356 L_3614B44D: 27357 MEM32(esi + 0x8) = edx; /* 0x3614B44D: mov dword ptr [esi + 8], edx */ 27358 L_3614B450: 27359 MEM32(edx) = ecx; /* 0x3614B450: mov dword ptr [edx], ecx */ 27360 MEM32(ecx + 0x4) = edx; /* 0x3614B452: mov dword ptr [ecx + 4], edx */ 27361 ecx = MEM32(eax + 0x4); /* 0x3614B455: mov ecx, dword ptr [eax + 4] */ 27362 ecx = MEM32(ecx + 0x8); /* 0x3614B458: mov ecx, dword ptr [ecx + 8] */ 27363 L_3614B45B: 27364 edx = MEM32(ecx); /* 0x3614B45B: mov edx, dword ptr [ecx] */ 27365 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B45D: cmp byte ptr [edx + 0x20], bl */ 27366 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 27367 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27368 _flag_k = FK_NARROW(FK_CMP, 24); 27369 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4F6; /* 0x3614B460: jne 0x3614b4f6 */ 27370 L_3614B466: 27371 edx = MEM32(ecx + 0x8); /* 0x3614B466: mov edx, dword ptr [ecx + 8] */ 27372 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B469: cmp byte ptr [edx + 0x20], bl */ 27373 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 27374 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27375 _flag_k = FK_NARROW(FK_CMP, 24); 27376 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4F6; /* 0x3614B46C: jne 0x3614b4f6 */ 27377 L_3614B472: 27378 goto L_3614B4DE; /* 0x3614B472: jmp 0x3614b4de */ 27379 L_3614B474: 27380 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B474: mov dl, byte ptr [ecx + 0x20] */ 27381 /* test LO8(edx), LO8(edx) */ /* 0x3614B477: test dl, dl */ 27382 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 27383 _cf = 0; 27384 _flag_k = FK_NARROW(FK_TEST, 24); 27385 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B4C7; /* 0x3614B479: jne 0x3614b4c7 */ 27386 L_3614B47B: 27387 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B47B: mov byte ptr [ecx + 0x20], bl */ 27388 ecx = MEM32(eax + 0x4); /* 0x3614B47E: mov ecx, dword ptr [eax + 4] */ 27389 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B481: mov byte ptr [ecx + 0x20], 0 */ 27390 ecx = MEM32(eax + 0x4); /* 0x3614B485: mov ecx, dword ptr [eax + 4] */ 27391 edx = MEM32(ecx); /* 0x3614B488: mov edx, dword ptr [ecx] */ 27392 esi = MEM32(edx + 0x8); /* 0x3614B48A: mov esi, dword ptr [edx + 8] */ 27393 MEM32(ecx) = esi; /* 0x3614B48D: mov dword ptr [ecx], esi */ 27394 esi = MEM32(edx + 0x8); /* 0x3614B48F: mov esi, dword ptr [edx + 8] */ 27395 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B492: cmp esi, dword ptr [edi + 8] */ 27396 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 27397 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27398 _flag_k = FK_CMP; 27399 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B49A; /* 0x3614B495: je 0x3614b49a */ 27400 L_3614B497: 27401 MEM32(esi + 0x4) = ecx; /* 0x3614B497: mov dword ptr [esi + 4], ecx */ 27402 L_3614B49A: 27403 esi = MEM32(ecx + 0x4); /* 0x3614B49A: mov esi, dword ptr [ecx + 4] */ 27404 MEM32(edx + 0x4) = esi; /* 0x3614B49D: mov dword ptr [edx + 4], esi */ 27405 esi = MEM32(edi + 0x4); /* 0x3614B4A0: mov esi, dword ptr [edi + 4] */ 27406 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B4A3: cmp ecx, dword ptr [esi + 4] */ 27407 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 27408 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27409 _flag_k = FK_CMP; 27410 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4AD; /* 0x3614B4A6: jne 0x3614b4ad */ 27411 L_3614B4A8: 27412 MEM32(esi + 0x4) = edx; /* 0x3614B4A8: mov dword ptr [esi + 4], edx */ 27413 goto L_3614B4BC; /* 0x3614B4AB: jmp 0x3614b4bc */ 27414 L_3614B4AD: 27415 esi = MEM32(ecx + 0x4); /* 0x3614B4AD: mov esi, dword ptr [ecx + 4] */ 27416 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B4B0: cmp ecx, dword ptr [esi + 8] */ 27417 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 27418 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27419 _flag_k = FK_CMP; 27420 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4BA; /* 0x3614B4B3: jne 0x3614b4ba */ 27421 L_3614B4B5: 27422 MEM32(esi + 0x8) = edx; /* 0x3614B4B5: mov dword ptr [esi + 8], edx */ 27423 goto L_3614B4BC; /* 0x3614B4B8: jmp 0x3614b4bc */ 27424 L_3614B4BA: 27425 MEM32(esi) = edx; /* 0x3614B4BA: mov dword ptr [esi], edx */ 27426 L_3614B4BC: 27427 MEM32(edx + 0x8) = ecx; /* 0x3614B4BC: mov dword ptr [edx + 8], ecx */ 27428 MEM32(ecx + 0x4) = edx; /* 0x3614B4BF: mov dword ptr [ecx + 4], edx */ 27429 edx = MEM32(eax + 0x4); /* 0x3614B4C2: mov edx, dword ptr [eax + 4] */ 27430 ecx = MEM32(edx); /* 0x3614B4C5: mov ecx, dword ptr [edx] */ 27431 L_3614B4C7: 27432 edx = MEM32(ecx + 0x8); /* 0x3614B4C7: mov edx, dword ptr [ecx + 8] */ 27433 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4CA: cmp byte ptr [edx + 0x20], bl */ 27434 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 27435 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27436 _flag_k = FK_NARROW(FK_CMP, 24); 27437 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5A3; /* 0x3614B4CD: jne 0x3614b5a3 */ 27438 L_3614B4D3: 27439 edx = MEM32(ecx); /* 0x3614B4D3: mov edx, dword ptr [ecx] */ 27440 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4D5: cmp byte ptr [edx + 0x20], bl */ 27441 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 27442 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27443 _flag_k = FK_NARROW(FK_CMP, 24); 27444 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5A3; /* 0x3614B4D8: jne 0x3614b5a3 */ 27445 L_3614B4DE: 27446 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B4DE: mov byte ptr [ecx + 0x20], 0 */ 27447 ecx = MEM32(edi + 0x4); /* 0x3614B4E2: mov ecx, dword ptr [edi + 4] */ 27448 eax = MEM32(eax + 0x4); /* 0x3614B4E5: mov eax, dword ptr [eax + 4] */ 27449 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B4E8: cmp eax, dword ptr [ecx + 4] */ 27450 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 27451 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27452 _flag_k = FK_CMP; 27453 RECOMP_BACKEDGE(); 27454 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B3F4; /* 0x3614B4EB: jne 0x3614b3f4 */ 27455 L_3614B4F1: 27456 goto L_3614B642; /* 0x3614B4F1: jmp 0x3614b642 */ 27457 L_3614B4F6: 27458 edx = MEM32(ecx + 0x8); /* 0x3614B4F6: mov edx, dword ptr [ecx + 8] */ 27459 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4F9: cmp byte ptr [edx + 0x20], bl */ 27460 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 27461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27462 _flag_k = FK_NARROW(FK_CMP, 24); 27463 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B547; /* 0x3614B4FC: jne 0x3614b547 */ 27464 L_3614B4FE: 27465 edx = MEM32(ecx); /* 0x3614B4FE: mov edx, dword ptr [ecx] */ 27466 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B500: mov byte ptr [edx + 0x20], bl */ 27467 edx = MEM32(ecx); /* 0x3614B503: mov edx, dword ptr [ecx] */ 27468 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B505: mov byte ptr [ecx + 0x20], 0 */ 27469 esi = MEM32(edx + 0x8); /* 0x3614B509: mov esi, dword ptr [edx + 8] */ 27470 MEM32(ecx) = esi; /* 0x3614B50C: mov dword ptr [ecx], esi */ 27471 esi = MEM32(edx + 0x8); /* 0x3614B50E: mov esi, dword ptr [edx + 8] */ 27472 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B511: cmp esi, dword ptr [edi + 8] */ 27473 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 27474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27475 _flag_k = FK_CMP; 27476 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B519; /* 0x3614B514: je 0x3614b519 */ 27477 L_3614B516: 27478 MEM32(esi + 0x4) = ecx; /* 0x3614B516: mov dword ptr [esi + 4], ecx */ 27479 L_3614B519: 27480 esi = MEM32(ecx + 0x4); /* 0x3614B519: mov esi, dword ptr [ecx + 4] */ 27481 MEM32(edx + 0x4) = esi; /* 0x3614B51C: mov dword ptr [edx + 4], esi */ 27482 esi = MEM32(edi + 0x4); /* 0x3614B51F: mov esi, dword ptr [edi + 4] */ 27483 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B522: cmp ecx, dword ptr [esi + 4] */ 27484 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 27485 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27486 _flag_k = FK_CMP; 27487 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B52C; /* 0x3614B525: jne 0x3614b52c */ 27488 L_3614B527: 27489 MEM32(esi + 0x4) = edx; /* 0x3614B527: mov dword ptr [esi + 4], edx */ 27490 goto L_3614B53B; /* 0x3614B52A: jmp 0x3614b53b */ 27491 L_3614B52C: 27492 esi = MEM32(ecx + 0x4); /* 0x3614B52C: mov esi, dword ptr [ecx + 4] */ 27493 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B52F: cmp ecx, dword ptr [esi + 8] */ 27494 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 27495 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27496 _flag_k = FK_CMP; 27497 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B539; /* 0x3614B532: jne 0x3614b539 */ 27498 L_3614B534: 27499 MEM32(esi + 0x8) = edx; /* 0x3614B534: mov dword ptr [esi + 8], edx */ 27500 goto L_3614B53B; /* 0x3614B537: jmp 0x3614b53b */ 27501 L_3614B539: 27502 MEM32(esi) = edx; /* 0x3614B539: mov dword ptr [esi], edx */ 27503 L_3614B53B: 27504 MEM32(edx + 0x8) = ecx; /* 0x3614B53B: mov dword ptr [edx + 8], ecx */ 27505 MEM32(ecx + 0x4) = edx; /* 0x3614B53E: mov dword ptr [ecx + 4], edx */ 27506 ecx = MEM32(eax + 0x4); /* 0x3614B541: mov ecx, dword ptr [eax + 4] */ 27507 ecx = MEM32(ecx + 0x8); /* 0x3614B544: mov ecx, dword ptr [ecx + 8] */ 27508 L_3614B547: 27509 edx = MEM32(eax + 0x4); /* 0x3614B547: mov edx, dword ptr [eax + 4] */ 27510 SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3614B54A: mov dl, byte ptr [edx + 0x20] */ 27511 MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B54D: mov byte ptr [ecx + 0x20], dl */ 27512 edx = MEM32(eax + 0x4); /* 0x3614B550: mov edx, dword ptr [eax + 4] */ 27513 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B553: mov byte ptr [edx + 0x20], bl */ 27514 ecx = MEM32(ecx + 0x8); /* 0x3614B556: mov ecx, dword ptr [ecx + 8] */ 27515 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B559: mov byte ptr [ecx + 0x20], bl */ 27516 ecx = MEM32(eax + 0x4); /* 0x3614B55C: mov ecx, dword ptr [eax + 4] */ 27517 edx = MEM32(ecx + 0x8); /* 0x3614B55F: mov edx, dword ptr [ecx + 8] */ 27518 esi = MEM32(edx); /* 0x3614B562: mov esi, dword ptr [edx] */ 27519 MEM32(ecx + 0x8) = esi; /* 0x3614B564: mov dword ptr [ecx + 8], esi */ 27520 esi = MEM32(edx); /* 0x3614B567: mov esi, dword ptr [edx] */ 27521 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B569: cmp esi, dword ptr [edi + 8] */ 27522 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 27523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27524 _flag_k = FK_CMP; 27525 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B571; /* 0x3614B56C: je 0x3614b571 */ 27526 L_3614B56E: 27527 MEM32(esi + 0x4) = ecx; /* 0x3614B56E: mov dword ptr [esi + 4], ecx */ 27528 L_3614B571: 27529 esi = MEM32(ecx + 0x4); /* 0x3614B571: mov esi, dword ptr [ecx + 4] */ 27530 MEM32(edx + 0x4) = esi; /* 0x3614B574: mov dword ptr [edx + 4], esi */ 27531 esi = MEM32(edi + 0x4); /* 0x3614B577: mov esi, dword ptr [edi + 4] */ 27532 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B57A: cmp ecx, dword ptr [esi + 4] */ 27533 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 27534 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27535 _flag_k = FK_CMP; 27536 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B589; /* 0x3614B57D: jne 0x3614b589 */ 27537 L_3614B57F: 27538 MEM32(esi + 0x4) = edx; /* 0x3614B57F: mov dword ptr [esi + 4], edx */ 27539 MEM32(edx) = ecx; /* 0x3614B582: mov dword ptr [edx], ecx */ 27540 goto L_3614B63F; /* 0x3614B584: jmp 0x3614b63f */ 27541 L_3614B589: 27542 esi = MEM32(ecx + 0x4); /* 0x3614B589: mov esi, dword ptr [ecx + 4] */ 27543 /* cmp ecx, MEM32(esi) */ /* 0x3614B58C: cmp ecx, dword ptr [esi] */ 27544 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 27545 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27546 _flag_k = FK_CMP; 27547 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B599; /* 0x3614B58E: jne 0x3614b599 */ 27548 L_3614B590: 27549 MEM32(esi) = edx; /* 0x3614B590: mov dword ptr [esi], edx */ 27550 MEM32(edx) = ecx; /* 0x3614B592: mov dword ptr [edx], ecx */ 27551 goto L_3614B63F; /* 0x3614B594: jmp 0x3614b63f */ 27552 L_3614B599: 27553 MEM32(esi + 0x8) = edx; /* 0x3614B599: mov dword ptr [esi + 8], edx */ 27554 MEM32(edx) = ecx; /* 0x3614B59C: mov dword ptr [edx], ecx */ 27555 goto L_3614B63F; /* 0x3614B59E: jmp 0x3614b63f */ 27556 L_3614B5A3: 27557 edx = MEM32(ecx); /* 0x3614B5A3: mov edx, dword ptr [ecx] */ 27558 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B5A5: cmp byte ptr [edx + 0x20], bl */ 27559 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 27560 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27561 _flag_k = FK_NARROW(FK_CMP, 24); 27562 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5F1; /* 0x3614B5A8: jne 0x3614b5f1 */ 27563 L_3614B5AA: 27564 edx = MEM32(ecx + 0x8); /* 0x3614B5AA: mov edx, dword ptr [ecx + 8] */ 27565 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B5AD: mov byte ptr [edx + 0x20], bl */ 27566 edx = MEM32(ecx + 0x8); /* 0x3614B5B0: mov edx, dword ptr [ecx + 8] */ 27567 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B5B3: mov byte ptr [ecx + 0x20], 0 */ 27568 esi = MEM32(edx); /* 0x3614B5B7: mov esi, dword ptr [edx] */ 27569 MEM32(ecx + 0x8) = esi; /* 0x3614B5B9: mov dword ptr [ecx + 8], esi */ 27570 esi = MEM32(edx); /* 0x3614B5BC: mov esi, dword ptr [edx] */ 27571 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B5BE: cmp esi, dword ptr [edi + 8] */ 27572 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 27573 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27574 _flag_k = FK_CMP; 27575 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B5C6; /* 0x3614B5C1: je 0x3614b5c6 */ 27576 L_3614B5C3: 27577 MEM32(esi + 0x4) = ecx; /* 0x3614B5C3: mov dword ptr [esi + 4], ecx */ 27578 L_3614B5C6: 27579 esi = MEM32(ecx + 0x4); /* 0x3614B5C6: mov esi, dword ptr [ecx + 4] */ 27580 MEM32(edx + 0x4) = esi; /* 0x3614B5C9: mov dword ptr [edx + 4], esi */ 27581 esi = MEM32(edi + 0x4); /* 0x3614B5CC: mov esi, dword ptr [edi + 4] */ 27582 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B5CF: cmp ecx, dword ptr [esi + 4] */ 27583 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 27584 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27585 _flag_k = FK_CMP; 27586 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5D9; /* 0x3614B5D2: jne 0x3614b5d9 */ 27587 L_3614B5D4: 27588 MEM32(esi + 0x4) = edx; /* 0x3614B5D4: mov dword ptr [esi + 4], edx */ 27589 goto L_3614B5E7; /* 0x3614B5D7: jmp 0x3614b5e7 */ 27590 L_3614B5D9: 27591 esi = MEM32(ecx + 0x4); /* 0x3614B5D9: mov esi, dword ptr [ecx + 4] */ 27592 /* cmp ecx, MEM32(esi) */ /* 0x3614B5DC: cmp ecx, dword ptr [esi] */ 27593 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 27594 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27595 _flag_k = FK_CMP; 27596 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5E4; /* 0x3614B5DE: jne 0x3614b5e4 */ 27597 L_3614B5E0: 27598 MEM32(esi) = edx; /* 0x3614B5E0: mov dword ptr [esi], edx */ 27599 goto L_3614B5E7; /* 0x3614B5E2: jmp 0x3614b5e7 */ 27600 L_3614B5E4: 27601 MEM32(esi + 0x8) = edx; /* 0x3614B5E4: mov dword ptr [esi + 8], edx */ 27602 L_3614B5E7: 27603 MEM32(edx) = ecx; /* 0x3614B5E7: mov dword ptr [edx], ecx */ 27604 MEM32(ecx + 0x4) = edx; /* 0x3614B5E9: mov dword ptr [ecx + 4], edx */ 27605 ecx = MEM32(eax + 0x4); /* 0x3614B5EC: mov ecx, dword ptr [eax + 4] */ 27606 ecx = MEM32(ecx); /* 0x3614B5EF: mov ecx, dword ptr [ecx] */ 27607 L_3614B5F1: 27608 edx = MEM32(eax + 0x4); /* 0x3614B5F1: mov edx, dword ptr [eax + 4] */ 27609 SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3614B5F4: mov dl, byte ptr [edx + 0x20] */ 27610 MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B5F7: mov byte ptr [ecx + 0x20], dl */ 27611 edx = MEM32(eax + 0x4); /* 0x3614B5FA: mov edx, dword ptr [eax + 4] */ 27612 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B5FD: mov byte ptr [edx + 0x20], bl */ 27613 ecx = MEM32(ecx); /* 0x3614B600: mov ecx, dword ptr [ecx] */ 27614 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B602: mov byte ptr [ecx + 0x20], bl */ 27615 ecx = MEM32(eax + 0x4); /* 0x3614B605: mov ecx, dword ptr [eax + 4] */ 27616 edx = MEM32(ecx); /* 0x3614B608: mov edx, dword ptr [ecx] */ 27617 esi = MEM32(edx + 0x8); /* 0x3614B60A: mov esi, dword ptr [edx + 8] */ 27618 MEM32(ecx) = esi; /* 0x3614B60D: mov dword ptr [ecx], esi */ 27619 esi = MEM32(edx + 0x8); /* 0x3614B60F: mov esi, dword ptr [edx + 8] */ 27620 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B612: cmp esi, dword ptr [edi + 8] */ 27621 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 27622 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27623 _flag_k = FK_CMP; 27624 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B61A; /* 0x3614B615: je 0x3614b61a */ 27625 L_3614B617: 27626 MEM32(esi + 0x4) = ecx; /* 0x3614B617: mov dword ptr [esi + 4], ecx */ 27627 L_3614B61A: 27628 esi = MEM32(ecx + 0x4); /* 0x3614B61A: mov esi, dword ptr [ecx + 4] */ 27629 MEM32(edx + 0x4) = esi; /* 0x3614B61D: mov dword ptr [edx + 4], esi */ 27630 esi = MEM32(edi + 0x4); /* 0x3614B620: mov esi, dword ptr [edi + 4] */ 27631 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B623: cmp ecx, dword ptr [esi + 4] */ 27632 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 27633 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27634 _flag_k = FK_CMP; 27635 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B62D; /* 0x3614B626: jne 0x3614b62d */ 27636 L_3614B628: 27637 MEM32(esi + 0x4) = edx; /* 0x3614B628: mov dword ptr [esi + 4], edx */ 27638 goto L_3614B63C; /* 0x3614B62B: jmp 0x3614b63c */ 27639 L_3614B62D: 27640 esi = MEM32(ecx + 0x4); /* 0x3614B62D: mov esi, dword ptr [ecx + 4] */ 27641 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B630: cmp ecx, dword ptr [esi + 8] */ 27642 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 27643 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27644 _flag_k = FK_CMP; 27645 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B63A; /* 0x3614B633: jne 0x3614b63a */ 27646 L_3614B635: 27647 MEM32(esi + 0x8) = edx; /* 0x3614B635: mov dword ptr [esi + 8], edx */ 27648 goto L_3614B63C; /* 0x3614B638: jmp 0x3614b63c */ 27649 L_3614B63A: 27650 MEM32(esi) = edx; /* 0x3614B63A: mov dword ptr [esi], edx */ 27651 L_3614B63C: 27652 MEM32(edx + 0x8) = ecx; /* 0x3614B63C: mov dword ptr [edx + 8], ecx */ 27653 L_3614B63F: 27654 MEM32(ecx + 0x4) = edx; /* 0x3614B63F: mov dword ptr [ecx + 4], edx */ 27655 L_3614B642: 27656 esi = MEM32(ebp + (-0x4)); /* 0x3614B642: mov esi, dword ptr [ebp - 4] */ 27657 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B645: mov byte ptr [eax + 0x20], bl */ 27658 ecx = esi + 0xC; /* 0x3614B648: lea ecx, [esi + 0xc] */ 27659 RECOMP_ICALL(0x3614AFC0u); /* 0x3614B64B: call 0x3614afc0 */ /* not lifted */ 27660 RECOMP_FLAGS_IN(); 27661 PUSH32(esp, esi); /* 0x3614B650: push esi */ 27662 RECOMP_ICALL(0x3615FCC4u); /* 0x3614B651: call 0x3615fcc4 */ /* not lifted */ 27663 RECOMP_FLAGS_IN(); 27664 eax = MEM32(edi + 0x10); /* 0x3614B656: mov eax, dword ptr [edi + 0x10] */ 27665 edx = MEM32(ebp + 0xC); /* 0x3614B659: mov edx, dword ptr [ebp + 0xc] */ 27666 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 27667 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 27668 esp = esp + 4; /* 0x3614B65C: add esp, 4 */ 27669 _flag_k = FK_ADD; 27670 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 27671 eax = eax - 1; /* 0x3614B65F: dec eax */ 27672 _flag_k = FK_DEC; 27673 MEM32(edi + 0x10) = eax; /* 0x3614B660: mov dword ptr [edi + 0x10], eax */ 27674 eax = MEM32(ebp + 0x8); /* 0x3614B663: mov eax, dword ptr [ebp + 8] */ 27675 edi = POP32_VAL(esp); /* 0x3614B666: pop edi */ 27676 esi = POP32_VAL(esp); /* 0x3614B667: pop esi */ 27677 MEM32(eax) = edx; /* 0x3614B668: mov dword ptr [eax], edx */ 27678 ebx = POP32_VAL(esp); /* 0x3614B66A: pop ebx */ 27679 esp = ebp; /* 0x3614B66B: mov esp, ebp */ 27680 ebp = POP32_VAL(esp); /* 0x3614B66D: pop ebp */ 27681 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614B66E: ret 8 */ 27682 RECOMP_REGS_OUT(); 27683 } 27684 27685 void sub_3614B450(void) { 27686 int _fpu_cmp = 0; 27687 uint32_t _cf = 0; 27688 int _df = 1; 27689 uint32_t _flag_k = FK_NONE; 27690 uint32_t _flag_a = 0, _flag_b = 0; 27691 uint32_t _itail_tgt = 0; 27692 RECOMP_REGS_LOCALS 27693 RECOMP_ENTER(0x3614B450u); 27694 27695 goto L_3614B450; 27696 L_3614B3F4: 27697 /* cmp MEM8(eax + 0x20), LO8(ebx) */ /* 0x3614B3F4: cmp byte ptr [eax + 0x20], bl */ 27698 _flag_a = (uint32_t)(MEM8(eax + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 27699 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27700 _flag_k = FK_NARROW(FK_CMP, 24); 27701 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B642; /* 0x3614B3F7: jne 0x3614b642 */ 27702 L_3614B3FD: 27703 edx = MEM32(eax + 0x4); /* 0x3614B3FD: mov edx, dword ptr [eax + 4] */ 27704 ecx = MEM32(edx); /* 0x3614B400: mov ecx, dword ptr [edx] */ 27705 /* cmp eax, ecx */ /* 0x3614B402: cmp eax, ecx */ 27706 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 27707 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27708 _flag_k = FK_CMP; 27709 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B474; /* 0x3614B404: jne 0x3614b474 */ 27710 L_3614B406: 27711 ecx = MEM32(edx + 0x8); /* 0x3614B406: mov ecx, dword ptr [edx + 8] */ 27712 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B409: mov dl, byte ptr [ecx + 0x20] */ 27713 /* test LO8(edx), LO8(edx) */ /* 0x3614B40C: test dl, dl */ 27714 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 27715 _cf = 0; 27716 _flag_k = FK_NARROW(FK_TEST, 24); 27717 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B45B; /* 0x3614B40E: jne 0x3614b45b */ 27718 L_3614B410: 27719 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B410: mov byte ptr [ecx + 0x20], bl */ 27720 edx = MEM32(eax + 0x4); /* 0x3614B413: mov edx, dword ptr [eax + 4] */ 27721 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x3614B416: mov byte ptr [edx + 0x20], 0 */ 27722 ecx = MEM32(eax + 0x4); /* 0x3614B41A: mov ecx, dword ptr [eax + 4] */ 27723 edx = MEM32(ecx + 0x8); /* 0x3614B41D: mov edx, dword ptr [ecx + 8] */ 27724 esi = MEM32(edx); /* 0x3614B420: mov esi, dword ptr [edx] */ 27725 MEM32(ecx + 0x8) = esi; /* 0x3614B422: mov dword ptr [ecx + 8], esi */ 27726 esi = MEM32(edx); /* 0x3614B425: mov esi, dword ptr [edx] */ 27727 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B427: cmp esi, dword ptr [edi + 8] */ 27728 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 27729 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27730 _flag_k = FK_CMP; 27731 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B42F; /* 0x3614B42A: je 0x3614b42f */ 27732 L_3614B42C: 27733 MEM32(esi + 0x4) = ecx; /* 0x3614B42C: mov dword ptr [esi + 4], ecx */ 27734 L_3614B42F: 27735 esi = MEM32(ecx + 0x4); /* 0x3614B42F: mov esi, dword ptr [ecx + 4] */ 27736 MEM32(edx + 0x4) = esi; /* 0x3614B432: mov dword ptr [edx + 4], esi */ 27737 esi = MEM32(edi + 0x4); /* 0x3614B435: mov esi, dword ptr [edi + 4] */ 27738 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B438: cmp ecx, dword ptr [esi + 4] */ 27739 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 27740 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27741 _flag_k = FK_CMP; 27742 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B442; /* 0x3614B43B: jne 0x3614b442 */ 27743 L_3614B43D: 27744 MEM32(esi + 0x4) = edx; /* 0x3614B43D: mov dword ptr [esi + 4], edx */ 27745 goto L_3614B450; /* 0x3614B440: jmp 0x3614b450 */ 27746 L_3614B442: 27747 esi = MEM32(ecx + 0x4); /* 0x3614B442: mov esi, dword ptr [ecx + 4] */ 27748 /* cmp ecx, MEM32(esi) */ /* 0x3614B445: cmp ecx, dword ptr [esi] */ 27749 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 27750 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27751 _flag_k = FK_CMP; 27752 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B44D; /* 0x3614B447: jne 0x3614b44d */ 27753 L_3614B449: 27754 MEM32(esi) = edx; /* 0x3614B449: mov dword ptr [esi], edx */ 27755 goto L_3614B450; /* 0x3614B44B: jmp 0x3614b450 */ 27756 L_3614B44D: 27757 MEM32(esi + 0x8) = edx; /* 0x3614B44D: mov dword ptr [esi + 8], edx */ 27758 L_3614B450: 27759 MEM32(edx) = ecx; /* 0x3614B450: mov dword ptr [edx], ecx */ 27760 MEM32(ecx + 0x4) = edx; /* 0x3614B452: mov dword ptr [ecx + 4], edx */ 27761 ecx = MEM32(eax + 0x4); /* 0x3614B455: mov ecx, dword ptr [eax + 4] */ 27762 ecx = MEM32(ecx + 0x8); /* 0x3614B458: mov ecx, dword ptr [ecx + 8] */ 27763 L_3614B45B: 27764 edx = MEM32(ecx); /* 0x3614B45B: mov edx, dword ptr [ecx] */ 27765 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B45D: cmp byte ptr [edx + 0x20], bl */ 27766 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 27767 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27768 _flag_k = FK_NARROW(FK_CMP, 24); 27769 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4F6; /* 0x3614B460: jne 0x3614b4f6 */ 27770 L_3614B466: 27771 edx = MEM32(ecx + 0x8); /* 0x3614B466: mov edx, dword ptr [ecx + 8] */ 27772 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B469: cmp byte ptr [edx + 0x20], bl */ 27773 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 27774 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27775 _flag_k = FK_NARROW(FK_CMP, 24); 27776 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4F6; /* 0x3614B46C: jne 0x3614b4f6 */ 27777 L_3614B472: 27778 goto L_3614B4DE; /* 0x3614B472: jmp 0x3614b4de */ 27779 L_3614B474: 27780 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B474: mov dl, byte ptr [ecx + 0x20] */ 27781 /* test LO8(edx), LO8(edx) */ /* 0x3614B477: test dl, dl */ 27782 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 27783 _cf = 0; 27784 _flag_k = FK_NARROW(FK_TEST, 24); 27785 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B4C7; /* 0x3614B479: jne 0x3614b4c7 */ 27786 L_3614B47B: 27787 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B47B: mov byte ptr [ecx + 0x20], bl */ 27788 ecx = MEM32(eax + 0x4); /* 0x3614B47E: mov ecx, dword ptr [eax + 4] */ 27789 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B481: mov byte ptr [ecx + 0x20], 0 */ 27790 ecx = MEM32(eax + 0x4); /* 0x3614B485: mov ecx, dword ptr [eax + 4] */ 27791 edx = MEM32(ecx); /* 0x3614B488: mov edx, dword ptr [ecx] */ 27792 esi = MEM32(edx + 0x8); /* 0x3614B48A: mov esi, dword ptr [edx + 8] */ 27793 MEM32(ecx) = esi; /* 0x3614B48D: mov dword ptr [ecx], esi */ 27794 esi = MEM32(edx + 0x8); /* 0x3614B48F: mov esi, dword ptr [edx + 8] */ 27795 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B492: cmp esi, dword ptr [edi + 8] */ 27796 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 27797 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27798 _flag_k = FK_CMP; 27799 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B49A; /* 0x3614B495: je 0x3614b49a */ 27800 L_3614B497: 27801 MEM32(esi + 0x4) = ecx; /* 0x3614B497: mov dword ptr [esi + 4], ecx */ 27802 L_3614B49A: 27803 esi = MEM32(ecx + 0x4); /* 0x3614B49A: mov esi, dword ptr [ecx + 4] */ 27804 MEM32(edx + 0x4) = esi; /* 0x3614B49D: mov dword ptr [edx + 4], esi */ 27805 esi = MEM32(edi + 0x4); /* 0x3614B4A0: mov esi, dword ptr [edi + 4] */ 27806 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B4A3: cmp ecx, dword ptr [esi + 4] */ 27807 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 27808 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27809 _flag_k = FK_CMP; 27810 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4AD; /* 0x3614B4A6: jne 0x3614b4ad */ 27811 L_3614B4A8: 27812 MEM32(esi + 0x4) = edx; /* 0x3614B4A8: mov dword ptr [esi + 4], edx */ 27813 goto L_3614B4BC; /* 0x3614B4AB: jmp 0x3614b4bc */ 27814 L_3614B4AD: 27815 esi = MEM32(ecx + 0x4); /* 0x3614B4AD: mov esi, dword ptr [ecx + 4] */ 27816 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B4B0: cmp ecx, dword ptr [esi + 8] */ 27817 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 27818 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27819 _flag_k = FK_CMP; 27820 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4BA; /* 0x3614B4B3: jne 0x3614b4ba */ 27821 L_3614B4B5: 27822 MEM32(esi + 0x8) = edx; /* 0x3614B4B5: mov dword ptr [esi + 8], edx */ 27823 goto L_3614B4BC; /* 0x3614B4B8: jmp 0x3614b4bc */ 27824 L_3614B4BA: 27825 MEM32(esi) = edx; /* 0x3614B4BA: mov dword ptr [esi], edx */ 27826 L_3614B4BC: 27827 MEM32(edx + 0x8) = ecx; /* 0x3614B4BC: mov dword ptr [edx + 8], ecx */ 27828 MEM32(ecx + 0x4) = edx; /* 0x3614B4BF: mov dword ptr [ecx + 4], edx */ 27829 edx = MEM32(eax + 0x4); /* 0x3614B4C2: mov edx, dword ptr [eax + 4] */ 27830 ecx = MEM32(edx); /* 0x3614B4C5: mov ecx, dword ptr [edx] */ 27831 L_3614B4C7: 27832 edx = MEM32(ecx + 0x8); /* 0x3614B4C7: mov edx, dword ptr [ecx + 8] */ 27833 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4CA: cmp byte ptr [edx + 0x20], bl */ 27834 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 27835 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27836 _flag_k = FK_NARROW(FK_CMP, 24); 27837 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5A3; /* 0x3614B4CD: jne 0x3614b5a3 */ 27838 L_3614B4D3: 27839 edx = MEM32(ecx); /* 0x3614B4D3: mov edx, dword ptr [ecx] */ 27840 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4D5: cmp byte ptr [edx + 0x20], bl */ 27841 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 27842 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27843 _flag_k = FK_NARROW(FK_CMP, 24); 27844 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5A3; /* 0x3614B4D8: jne 0x3614b5a3 */ 27845 L_3614B4DE: 27846 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B4DE: mov byte ptr [ecx + 0x20], 0 */ 27847 ecx = MEM32(edi + 0x4); /* 0x3614B4E2: mov ecx, dword ptr [edi + 4] */ 27848 eax = MEM32(eax + 0x4); /* 0x3614B4E5: mov eax, dword ptr [eax + 4] */ 27849 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B4E8: cmp eax, dword ptr [ecx + 4] */ 27850 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 27851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27852 _flag_k = FK_CMP; 27853 RECOMP_BACKEDGE(); 27854 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B3F4; /* 0x3614B4EB: jne 0x3614b3f4 */ 27855 L_3614B4F1: 27856 goto L_3614B642; /* 0x3614B4F1: jmp 0x3614b642 */ 27857 L_3614B4F6: 27858 edx = MEM32(ecx + 0x8); /* 0x3614B4F6: mov edx, dword ptr [ecx + 8] */ 27859 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4F9: cmp byte ptr [edx + 0x20], bl */ 27860 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 27861 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27862 _flag_k = FK_NARROW(FK_CMP, 24); 27863 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B547; /* 0x3614B4FC: jne 0x3614b547 */ 27864 L_3614B4FE: 27865 edx = MEM32(ecx); /* 0x3614B4FE: mov edx, dword ptr [ecx] */ 27866 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B500: mov byte ptr [edx + 0x20], bl */ 27867 edx = MEM32(ecx); /* 0x3614B503: mov edx, dword ptr [ecx] */ 27868 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B505: mov byte ptr [ecx + 0x20], 0 */ 27869 esi = MEM32(edx + 0x8); /* 0x3614B509: mov esi, dword ptr [edx + 8] */ 27870 MEM32(ecx) = esi; /* 0x3614B50C: mov dword ptr [ecx], esi */ 27871 esi = MEM32(edx + 0x8); /* 0x3614B50E: mov esi, dword ptr [edx + 8] */ 27872 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B511: cmp esi, dword ptr [edi + 8] */ 27873 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 27874 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27875 _flag_k = FK_CMP; 27876 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B519; /* 0x3614B514: je 0x3614b519 */ 27877 L_3614B516: 27878 MEM32(esi + 0x4) = ecx; /* 0x3614B516: mov dword ptr [esi + 4], ecx */ 27879 L_3614B519: 27880 esi = MEM32(ecx + 0x4); /* 0x3614B519: mov esi, dword ptr [ecx + 4] */ 27881 MEM32(edx + 0x4) = esi; /* 0x3614B51C: mov dword ptr [edx + 4], esi */ 27882 esi = MEM32(edi + 0x4); /* 0x3614B51F: mov esi, dword ptr [edi + 4] */ 27883 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B522: cmp ecx, dword ptr [esi + 4] */ 27884 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 27885 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27886 _flag_k = FK_CMP; 27887 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B52C; /* 0x3614B525: jne 0x3614b52c */ 27888 L_3614B527: 27889 MEM32(esi + 0x4) = edx; /* 0x3614B527: mov dword ptr [esi + 4], edx */ 27890 goto L_3614B53B; /* 0x3614B52A: jmp 0x3614b53b */ 27891 L_3614B52C: 27892 esi = MEM32(ecx + 0x4); /* 0x3614B52C: mov esi, dword ptr [ecx + 4] */ 27893 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B52F: cmp ecx, dword ptr [esi + 8] */ 27894 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 27895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27896 _flag_k = FK_CMP; 27897 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B539; /* 0x3614B532: jne 0x3614b539 */ 27898 L_3614B534: 27899 MEM32(esi + 0x8) = edx; /* 0x3614B534: mov dword ptr [esi + 8], edx */ 27900 goto L_3614B53B; /* 0x3614B537: jmp 0x3614b53b */ 27901 L_3614B539: 27902 MEM32(esi) = edx; /* 0x3614B539: mov dword ptr [esi], edx */ 27903 L_3614B53B: 27904 MEM32(edx + 0x8) = ecx; /* 0x3614B53B: mov dword ptr [edx + 8], ecx */ 27905 MEM32(ecx + 0x4) = edx; /* 0x3614B53E: mov dword ptr [ecx + 4], edx */ 27906 ecx = MEM32(eax + 0x4); /* 0x3614B541: mov ecx, dword ptr [eax + 4] */ 27907 ecx = MEM32(ecx + 0x8); /* 0x3614B544: mov ecx, dword ptr [ecx + 8] */ 27908 L_3614B547: 27909 edx = MEM32(eax + 0x4); /* 0x3614B547: mov edx, dword ptr [eax + 4] */ 27910 SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3614B54A: mov dl, byte ptr [edx + 0x20] */ 27911 MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B54D: mov byte ptr [ecx + 0x20], dl */ 27912 edx = MEM32(eax + 0x4); /* 0x3614B550: mov edx, dword ptr [eax + 4] */ 27913 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B553: mov byte ptr [edx + 0x20], bl */ 27914 ecx = MEM32(ecx + 0x8); /* 0x3614B556: mov ecx, dword ptr [ecx + 8] */ 27915 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B559: mov byte ptr [ecx + 0x20], bl */ 27916 ecx = MEM32(eax + 0x4); /* 0x3614B55C: mov ecx, dword ptr [eax + 4] */ 27917 edx = MEM32(ecx + 0x8); /* 0x3614B55F: mov edx, dword ptr [ecx + 8] */ 27918 esi = MEM32(edx); /* 0x3614B562: mov esi, dword ptr [edx] */ 27919 MEM32(ecx + 0x8) = esi; /* 0x3614B564: mov dword ptr [ecx + 8], esi */ 27920 esi = MEM32(edx); /* 0x3614B567: mov esi, dword ptr [edx] */ 27921 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B569: cmp esi, dword ptr [edi + 8] */ 27922 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 27923 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27924 _flag_k = FK_CMP; 27925 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B571; /* 0x3614B56C: je 0x3614b571 */ 27926 L_3614B56E: 27927 MEM32(esi + 0x4) = ecx; /* 0x3614B56E: mov dword ptr [esi + 4], ecx */ 27928 L_3614B571: 27929 esi = MEM32(ecx + 0x4); /* 0x3614B571: mov esi, dword ptr [ecx + 4] */ 27930 MEM32(edx + 0x4) = esi; /* 0x3614B574: mov dword ptr [edx + 4], esi */ 27931 esi = MEM32(edi + 0x4); /* 0x3614B577: mov esi, dword ptr [edi + 4] */ 27932 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B57A: cmp ecx, dword ptr [esi + 4] */ 27933 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 27934 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27935 _flag_k = FK_CMP; 27936 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B589; /* 0x3614B57D: jne 0x3614b589 */ 27937 L_3614B57F: 27938 MEM32(esi + 0x4) = edx; /* 0x3614B57F: mov dword ptr [esi + 4], edx */ 27939 MEM32(edx) = ecx; /* 0x3614B582: mov dword ptr [edx], ecx */ 27940 goto L_3614B63F; /* 0x3614B584: jmp 0x3614b63f */ 27941 L_3614B589: 27942 esi = MEM32(ecx + 0x4); /* 0x3614B589: mov esi, dword ptr [ecx + 4] */ 27943 /* cmp ecx, MEM32(esi) */ /* 0x3614B58C: cmp ecx, dword ptr [esi] */ 27944 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 27945 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27946 _flag_k = FK_CMP; 27947 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B599; /* 0x3614B58E: jne 0x3614b599 */ 27948 L_3614B590: 27949 MEM32(esi) = edx; /* 0x3614B590: mov dword ptr [esi], edx */ 27950 MEM32(edx) = ecx; /* 0x3614B592: mov dword ptr [edx], ecx */ 27951 goto L_3614B63F; /* 0x3614B594: jmp 0x3614b63f */ 27952 L_3614B599: 27953 MEM32(esi + 0x8) = edx; /* 0x3614B599: mov dword ptr [esi + 8], edx */ 27954 MEM32(edx) = ecx; /* 0x3614B59C: mov dword ptr [edx], ecx */ 27955 goto L_3614B63F; /* 0x3614B59E: jmp 0x3614b63f */ 27956 L_3614B5A3: 27957 edx = MEM32(ecx); /* 0x3614B5A3: mov edx, dword ptr [ecx] */ 27958 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B5A5: cmp byte ptr [edx + 0x20], bl */ 27959 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 27960 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27961 _flag_k = FK_NARROW(FK_CMP, 24); 27962 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5F1; /* 0x3614B5A8: jne 0x3614b5f1 */ 27963 L_3614B5AA: 27964 edx = MEM32(ecx + 0x8); /* 0x3614B5AA: mov edx, dword ptr [ecx + 8] */ 27965 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B5AD: mov byte ptr [edx + 0x20], bl */ 27966 edx = MEM32(ecx + 0x8); /* 0x3614B5B0: mov edx, dword ptr [ecx + 8] */ 27967 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B5B3: mov byte ptr [ecx + 0x20], 0 */ 27968 esi = MEM32(edx); /* 0x3614B5B7: mov esi, dword ptr [edx] */ 27969 MEM32(ecx + 0x8) = esi; /* 0x3614B5B9: mov dword ptr [ecx + 8], esi */ 27970 esi = MEM32(edx); /* 0x3614B5BC: mov esi, dword ptr [edx] */ 27971 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B5BE: cmp esi, dword ptr [edi + 8] */ 27972 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 27973 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27974 _flag_k = FK_CMP; 27975 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B5C6; /* 0x3614B5C1: je 0x3614b5c6 */ 27976 L_3614B5C3: 27977 MEM32(esi + 0x4) = ecx; /* 0x3614B5C3: mov dword ptr [esi + 4], ecx */ 27978 L_3614B5C6: 27979 esi = MEM32(ecx + 0x4); /* 0x3614B5C6: mov esi, dword ptr [ecx + 4] */ 27980 MEM32(edx + 0x4) = esi; /* 0x3614B5C9: mov dword ptr [edx + 4], esi */ 27981 esi = MEM32(edi + 0x4); /* 0x3614B5CC: mov esi, dword ptr [edi + 4] */ 27982 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B5CF: cmp ecx, dword ptr [esi + 4] */ 27983 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 27984 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27985 _flag_k = FK_CMP; 27986 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5D9; /* 0x3614B5D2: jne 0x3614b5d9 */ 27987 L_3614B5D4: 27988 MEM32(esi + 0x4) = edx; /* 0x3614B5D4: mov dword ptr [esi + 4], edx */ 27989 goto L_3614B5E7; /* 0x3614B5D7: jmp 0x3614b5e7 */ 27990 L_3614B5D9: 27991 esi = MEM32(ecx + 0x4); /* 0x3614B5D9: mov esi, dword ptr [ecx + 4] */ 27992 /* cmp ecx, MEM32(esi) */ /* 0x3614B5DC: cmp ecx, dword ptr [esi] */ 27993 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 27994 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 27995 _flag_k = FK_CMP; 27996 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5E4; /* 0x3614B5DE: jne 0x3614b5e4 */ 27997 L_3614B5E0: 27998 MEM32(esi) = edx; /* 0x3614B5E0: mov dword ptr [esi], edx */ 27999 goto L_3614B5E7; /* 0x3614B5E2: jmp 0x3614b5e7 */ 28000 L_3614B5E4: 28001 MEM32(esi + 0x8) = edx; /* 0x3614B5E4: mov dword ptr [esi + 8], edx */ 28002 L_3614B5E7: 28003 MEM32(edx) = ecx; /* 0x3614B5E7: mov dword ptr [edx], ecx */ 28004 MEM32(ecx + 0x4) = edx; /* 0x3614B5E9: mov dword ptr [ecx + 4], edx */ 28005 ecx = MEM32(eax + 0x4); /* 0x3614B5EC: mov ecx, dword ptr [eax + 4] */ 28006 ecx = MEM32(ecx); /* 0x3614B5EF: mov ecx, dword ptr [ecx] */ 28007 L_3614B5F1: 28008 edx = MEM32(eax + 0x4); /* 0x3614B5F1: mov edx, dword ptr [eax + 4] */ 28009 SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3614B5F4: mov dl, byte ptr [edx + 0x20] */ 28010 MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B5F7: mov byte ptr [ecx + 0x20], dl */ 28011 edx = MEM32(eax + 0x4); /* 0x3614B5FA: mov edx, dword ptr [eax + 4] */ 28012 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B5FD: mov byte ptr [edx + 0x20], bl */ 28013 ecx = MEM32(ecx); /* 0x3614B600: mov ecx, dword ptr [ecx] */ 28014 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B602: mov byte ptr [ecx + 0x20], bl */ 28015 ecx = MEM32(eax + 0x4); /* 0x3614B605: mov ecx, dword ptr [eax + 4] */ 28016 edx = MEM32(ecx); /* 0x3614B608: mov edx, dword ptr [ecx] */ 28017 esi = MEM32(edx + 0x8); /* 0x3614B60A: mov esi, dword ptr [edx + 8] */ 28018 MEM32(ecx) = esi; /* 0x3614B60D: mov dword ptr [ecx], esi */ 28019 esi = MEM32(edx + 0x8); /* 0x3614B60F: mov esi, dword ptr [edx + 8] */ 28020 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B612: cmp esi, dword ptr [edi + 8] */ 28021 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 28022 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28023 _flag_k = FK_CMP; 28024 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B61A; /* 0x3614B615: je 0x3614b61a */ 28025 L_3614B617: 28026 MEM32(esi + 0x4) = ecx; /* 0x3614B617: mov dword ptr [esi + 4], ecx */ 28027 L_3614B61A: 28028 esi = MEM32(ecx + 0x4); /* 0x3614B61A: mov esi, dword ptr [ecx + 4] */ 28029 MEM32(edx + 0x4) = esi; /* 0x3614B61D: mov dword ptr [edx + 4], esi */ 28030 esi = MEM32(edi + 0x4); /* 0x3614B620: mov esi, dword ptr [edi + 4] */ 28031 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B623: cmp ecx, dword ptr [esi + 4] */ 28032 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 28033 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28034 _flag_k = FK_CMP; 28035 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B62D; /* 0x3614B626: jne 0x3614b62d */ 28036 L_3614B628: 28037 MEM32(esi + 0x4) = edx; /* 0x3614B628: mov dword ptr [esi + 4], edx */ 28038 goto L_3614B63C; /* 0x3614B62B: jmp 0x3614b63c */ 28039 L_3614B62D: 28040 esi = MEM32(ecx + 0x4); /* 0x3614B62D: mov esi, dword ptr [ecx + 4] */ 28041 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B630: cmp ecx, dword ptr [esi + 8] */ 28042 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 28043 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28044 _flag_k = FK_CMP; 28045 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B63A; /* 0x3614B633: jne 0x3614b63a */ 28046 L_3614B635: 28047 MEM32(esi + 0x8) = edx; /* 0x3614B635: mov dword ptr [esi + 8], edx */ 28048 goto L_3614B63C; /* 0x3614B638: jmp 0x3614b63c */ 28049 L_3614B63A: 28050 MEM32(esi) = edx; /* 0x3614B63A: mov dword ptr [esi], edx */ 28051 L_3614B63C: 28052 MEM32(edx + 0x8) = ecx; /* 0x3614B63C: mov dword ptr [edx + 8], ecx */ 28053 L_3614B63F: 28054 MEM32(ecx + 0x4) = edx; /* 0x3614B63F: mov dword ptr [ecx + 4], edx */ 28055 L_3614B642: 28056 esi = MEM32(ebp + (-0x4)); /* 0x3614B642: mov esi, dword ptr [ebp - 4] */ 28057 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B645: mov byte ptr [eax + 0x20], bl */ 28058 ecx = esi + 0xC; /* 0x3614B648: lea ecx, [esi + 0xc] */ 28059 RECOMP_ICALL(0x3614AFC0u); /* 0x3614B64B: call 0x3614afc0 */ /* not lifted */ 28060 RECOMP_FLAGS_IN(); 28061 PUSH32(esp, esi); /* 0x3614B650: push esi */ 28062 RECOMP_ICALL(0x3615FCC4u); /* 0x3614B651: call 0x3615fcc4 */ /* not lifted */ 28063 RECOMP_FLAGS_IN(); 28064 eax = MEM32(edi + 0x10); /* 0x3614B656: mov eax, dword ptr [edi + 0x10] */ 28065 edx = MEM32(ebp + 0xC); /* 0x3614B659: mov edx, dword ptr [ebp + 0xc] */ 28066 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 28067 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28068 esp = esp + 4; /* 0x3614B65C: add esp, 4 */ 28069 _flag_k = FK_ADD; 28070 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 28071 eax = eax - 1; /* 0x3614B65F: dec eax */ 28072 _flag_k = FK_DEC; 28073 MEM32(edi + 0x10) = eax; /* 0x3614B660: mov dword ptr [edi + 0x10], eax */ 28074 eax = MEM32(ebp + 0x8); /* 0x3614B663: mov eax, dword ptr [ebp + 8] */ 28075 edi = POP32_VAL(esp); /* 0x3614B666: pop edi */ 28076 esi = POP32_VAL(esp); /* 0x3614B667: pop esi */ 28077 MEM32(eax) = edx; /* 0x3614B668: mov dword ptr [eax], edx */ 28078 ebx = POP32_VAL(esp); /* 0x3614B66A: pop ebx */ 28079 esp = ebp; /* 0x3614B66B: mov esp, ebp */ 28080 ebp = POP32_VAL(esp); /* 0x3614B66D: pop ebp */ 28081 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614B66E: ret 8 */ 28082 RECOMP_REGS_OUT(); 28083 } 28084 28085 void sub_3614B45B(void) { 28086 int _fpu_cmp = 0; 28087 uint32_t _cf = 0; 28088 int _df = 1; 28089 uint32_t _flag_k = FK_NONE; 28090 uint32_t _flag_a = 0, _flag_b = 0; 28091 uint32_t _itail_tgt = 0; 28092 RECOMP_REGS_LOCALS 28093 RECOMP_ENTER(0x3614B45Bu); 28094 28095 goto L_3614B45B; 28096 L_3614B3F4: 28097 /* cmp MEM8(eax + 0x20), LO8(ebx) */ /* 0x3614B3F4: cmp byte ptr [eax + 0x20], bl */ 28098 _flag_a = (uint32_t)(MEM8(eax + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 28099 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28100 _flag_k = FK_NARROW(FK_CMP, 24); 28101 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B642; /* 0x3614B3F7: jne 0x3614b642 */ 28102 L_3614B3FD: 28103 edx = MEM32(eax + 0x4); /* 0x3614B3FD: mov edx, dword ptr [eax + 4] */ 28104 ecx = MEM32(edx); /* 0x3614B400: mov ecx, dword ptr [edx] */ 28105 /* cmp eax, ecx */ /* 0x3614B402: cmp eax, ecx */ 28106 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 28107 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28108 _flag_k = FK_CMP; 28109 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B474; /* 0x3614B404: jne 0x3614b474 */ 28110 L_3614B406: 28111 ecx = MEM32(edx + 0x8); /* 0x3614B406: mov ecx, dword ptr [edx + 8] */ 28112 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B409: mov dl, byte ptr [ecx + 0x20] */ 28113 /* test LO8(edx), LO8(edx) */ /* 0x3614B40C: test dl, dl */ 28114 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 28115 _cf = 0; 28116 _flag_k = FK_NARROW(FK_TEST, 24); 28117 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B45B; /* 0x3614B40E: jne 0x3614b45b */ 28118 L_3614B410: 28119 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B410: mov byte ptr [ecx + 0x20], bl */ 28120 edx = MEM32(eax + 0x4); /* 0x3614B413: mov edx, dword ptr [eax + 4] */ 28121 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x3614B416: mov byte ptr [edx + 0x20], 0 */ 28122 ecx = MEM32(eax + 0x4); /* 0x3614B41A: mov ecx, dword ptr [eax + 4] */ 28123 edx = MEM32(ecx + 0x8); /* 0x3614B41D: mov edx, dword ptr [ecx + 8] */ 28124 esi = MEM32(edx); /* 0x3614B420: mov esi, dword ptr [edx] */ 28125 MEM32(ecx + 0x8) = esi; /* 0x3614B422: mov dword ptr [ecx + 8], esi */ 28126 esi = MEM32(edx); /* 0x3614B425: mov esi, dword ptr [edx] */ 28127 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B427: cmp esi, dword ptr [edi + 8] */ 28128 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 28129 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28130 _flag_k = FK_CMP; 28131 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B42F; /* 0x3614B42A: je 0x3614b42f */ 28132 L_3614B42C: 28133 MEM32(esi + 0x4) = ecx; /* 0x3614B42C: mov dword ptr [esi + 4], ecx */ 28134 L_3614B42F: 28135 esi = MEM32(ecx + 0x4); /* 0x3614B42F: mov esi, dword ptr [ecx + 4] */ 28136 MEM32(edx + 0x4) = esi; /* 0x3614B432: mov dword ptr [edx + 4], esi */ 28137 esi = MEM32(edi + 0x4); /* 0x3614B435: mov esi, dword ptr [edi + 4] */ 28138 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B438: cmp ecx, dword ptr [esi + 4] */ 28139 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 28140 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28141 _flag_k = FK_CMP; 28142 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B442; /* 0x3614B43B: jne 0x3614b442 */ 28143 L_3614B43D: 28144 MEM32(esi + 0x4) = edx; /* 0x3614B43D: mov dword ptr [esi + 4], edx */ 28145 goto L_3614B450; /* 0x3614B440: jmp 0x3614b450 */ 28146 L_3614B442: 28147 esi = MEM32(ecx + 0x4); /* 0x3614B442: mov esi, dword ptr [ecx + 4] */ 28148 /* cmp ecx, MEM32(esi) */ /* 0x3614B445: cmp ecx, dword ptr [esi] */ 28149 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 28150 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28151 _flag_k = FK_CMP; 28152 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B44D; /* 0x3614B447: jne 0x3614b44d */ 28153 L_3614B449: 28154 MEM32(esi) = edx; /* 0x3614B449: mov dword ptr [esi], edx */ 28155 goto L_3614B450; /* 0x3614B44B: jmp 0x3614b450 */ 28156 L_3614B44D: 28157 MEM32(esi + 0x8) = edx; /* 0x3614B44D: mov dword ptr [esi + 8], edx */ 28158 L_3614B450: 28159 MEM32(edx) = ecx; /* 0x3614B450: mov dword ptr [edx], ecx */ 28160 MEM32(ecx + 0x4) = edx; /* 0x3614B452: mov dword ptr [ecx + 4], edx */ 28161 ecx = MEM32(eax + 0x4); /* 0x3614B455: mov ecx, dword ptr [eax + 4] */ 28162 ecx = MEM32(ecx + 0x8); /* 0x3614B458: mov ecx, dword ptr [ecx + 8] */ 28163 L_3614B45B: 28164 edx = MEM32(ecx); /* 0x3614B45B: mov edx, dword ptr [ecx] */ 28165 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B45D: cmp byte ptr [edx + 0x20], bl */ 28166 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 28167 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28168 _flag_k = FK_NARROW(FK_CMP, 24); 28169 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4F6; /* 0x3614B460: jne 0x3614b4f6 */ 28170 L_3614B466: 28171 edx = MEM32(ecx + 0x8); /* 0x3614B466: mov edx, dword ptr [ecx + 8] */ 28172 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B469: cmp byte ptr [edx + 0x20], bl */ 28173 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 28174 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28175 _flag_k = FK_NARROW(FK_CMP, 24); 28176 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4F6; /* 0x3614B46C: jne 0x3614b4f6 */ 28177 L_3614B472: 28178 goto L_3614B4DE; /* 0x3614B472: jmp 0x3614b4de */ 28179 L_3614B474: 28180 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B474: mov dl, byte ptr [ecx + 0x20] */ 28181 /* test LO8(edx), LO8(edx) */ /* 0x3614B477: test dl, dl */ 28182 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 28183 _cf = 0; 28184 _flag_k = FK_NARROW(FK_TEST, 24); 28185 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B4C7; /* 0x3614B479: jne 0x3614b4c7 */ 28186 L_3614B47B: 28187 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B47B: mov byte ptr [ecx + 0x20], bl */ 28188 ecx = MEM32(eax + 0x4); /* 0x3614B47E: mov ecx, dword ptr [eax + 4] */ 28189 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B481: mov byte ptr [ecx + 0x20], 0 */ 28190 ecx = MEM32(eax + 0x4); /* 0x3614B485: mov ecx, dword ptr [eax + 4] */ 28191 edx = MEM32(ecx); /* 0x3614B488: mov edx, dword ptr [ecx] */ 28192 esi = MEM32(edx + 0x8); /* 0x3614B48A: mov esi, dword ptr [edx + 8] */ 28193 MEM32(ecx) = esi; /* 0x3614B48D: mov dword ptr [ecx], esi */ 28194 esi = MEM32(edx + 0x8); /* 0x3614B48F: mov esi, dword ptr [edx + 8] */ 28195 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B492: cmp esi, dword ptr [edi + 8] */ 28196 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 28197 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28198 _flag_k = FK_CMP; 28199 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B49A; /* 0x3614B495: je 0x3614b49a */ 28200 L_3614B497: 28201 MEM32(esi + 0x4) = ecx; /* 0x3614B497: mov dword ptr [esi + 4], ecx */ 28202 L_3614B49A: 28203 esi = MEM32(ecx + 0x4); /* 0x3614B49A: mov esi, dword ptr [ecx + 4] */ 28204 MEM32(edx + 0x4) = esi; /* 0x3614B49D: mov dword ptr [edx + 4], esi */ 28205 esi = MEM32(edi + 0x4); /* 0x3614B4A0: mov esi, dword ptr [edi + 4] */ 28206 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B4A3: cmp ecx, dword ptr [esi + 4] */ 28207 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 28208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28209 _flag_k = FK_CMP; 28210 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4AD; /* 0x3614B4A6: jne 0x3614b4ad */ 28211 L_3614B4A8: 28212 MEM32(esi + 0x4) = edx; /* 0x3614B4A8: mov dword ptr [esi + 4], edx */ 28213 goto L_3614B4BC; /* 0x3614B4AB: jmp 0x3614b4bc */ 28214 L_3614B4AD: 28215 esi = MEM32(ecx + 0x4); /* 0x3614B4AD: mov esi, dword ptr [ecx + 4] */ 28216 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B4B0: cmp ecx, dword ptr [esi + 8] */ 28217 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 28218 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28219 _flag_k = FK_CMP; 28220 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4BA; /* 0x3614B4B3: jne 0x3614b4ba */ 28221 L_3614B4B5: 28222 MEM32(esi + 0x8) = edx; /* 0x3614B4B5: mov dword ptr [esi + 8], edx */ 28223 goto L_3614B4BC; /* 0x3614B4B8: jmp 0x3614b4bc */ 28224 L_3614B4BA: 28225 MEM32(esi) = edx; /* 0x3614B4BA: mov dword ptr [esi], edx */ 28226 L_3614B4BC: 28227 MEM32(edx + 0x8) = ecx; /* 0x3614B4BC: mov dword ptr [edx + 8], ecx */ 28228 MEM32(ecx + 0x4) = edx; /* 0x3614B4BF: mov dword ptr [ecx + 4], edx */ 28229 edx = MEM32(eax + 0x4); /* 0x3614B4C2: mov edx, dword ptr [eax + 4] */ 28230 ecx = MEM32(edx); /* 0x3614B4C5: mov ecx, dword ptr [edx] */ 28231 L_3614B4C7: 28232 edx = MEM32(ecx + 0x8); /* 0x3614B4C7: mov edx, dword ptr [ecx + 8] */ 28233 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4CA: cmp byte ptr [edx + 0x20], bl */ 28234 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 28235 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28236 _flag_k = FK_NARROW(FK_CMP, 24); 28237 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5A3; /* 0x3614B4CD: jne 0x3614b5a3 */ 28238 L_3614B4D3: 28239 edx = MEM32(ecx); /* 0x3614B4D3: mov edx, dword ptr [ecx] */ 28240 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4D5: cmp byte ptr [edx + 0x20], bl */ 28241 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 28242 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28243 _flag_k = FK_NARROW(FK_CMP, 24); 28244 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5A3; /* 0x3614B4D8: jne 0x3614b5a3 */ 28245 L_3614B4DE: 28246 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B4DE: mov byte ptr [ecx + 0x20], 0 */ 28247 ecx = MEM32(edi + 0x4); /* 0x3614B4E2: mov ecx, dword ptr [edi + 4] */ 28248 eax = MEM32(eax + 0x4); /* 0x3614B4E5: mov eax, dword ptr [eax + 4] */ 28249 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B4E8: cmp eax, dword ptr [ecx + 4] */ 28250 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 28251 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28252 _flag_k = FK_CMP; 28253 RECOMP_BACKEDGE(); 28254 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B3F4; /* 0x3614B4EB: jne 0x3614b3f4 */ 28255 L_3614B4F1: 28256 goto L_3614B642; /* 0x3614B4F1: jmp 0x3614b642 */ 28257 L_3614B4F6: 28258 edx = MEM32(ecx + 0x8); /* 0x3614B4F6: mov edx, dword ptr [ecx + 8] */ 28259 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4F9: cmp byte ptr [edx + 0x20], bl */ 28260 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 28261 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28262 _flag_k = FK_NARROW(FK_CMP, 24); 28263 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B547; /* 0x3614B4FC: jne 0x3614b547 */ 28264 L_3614B4FE: 28265 edx = MEM32(ecx); /* 0x3614B4FE: mov edx, dword ptr [ecx] */ 28266 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B500: mov byte ptr [edx + 0x20], bl */ 28267 edx = MEM32(ecx); /* 0x3614B503: mov edx, dword ptr [ecx] */ 28268 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B505: mov byte ptr [ecx + 0x20], 0 */ 28269 esi = MEM32(edx + 0x8); /* 0x3614B509: mov esi, dword ptr [edx + 8] */ 28270 MEM32(ecx) = esi; /* 0x3614B50C: mov dword ptr [ecx], esi */ 28271 esi = MEM32(edx + 0x8); /* 0x3614B50E: mov esi, dword ptr [edx + 8] */ 28272 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B511: cmp esi, dword ptr [edi + 8] */ 28273 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 28274 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28275 _flag_k = FK_CMP; 28276 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B519; /* 0x3614B514: je 0x3614b519 */ 28277 L_3614B516: 28278 MEM32(esi + 0x4) = ecx; /* 0x3614B516: mov dword ptr [esi + 4], ecx */ 28279 L_3614B519: 28280 esi = MEM32(ecx + 0x4); /* 0x3614B519: mov esi, dword ptr [ecx + 4] */ 28281 MEM32(edx + 0x4) = esi; /* 0x3614B51C: mov dword ptr [edx + 4], esi */ 28282 esi = MEM32(edi + 0x4); /* 0x3614B51F: mov esi, dword ptr [edi + 4] */ 28283 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B522: cmp ecx, dword ptr [esi + 4] */ 28284 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 28285 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28286 _flag_k = FK_CMP; 28287 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B52C; /* 0x3614B525: jne 0x3614b52c */ 28288 L_3614B527: 28289 MEM32(esi + 0x4) = edx; /* 0x3614B527: mov dword ptr [esi + 4], edx */ 28290 goto L_3614B53B; /* 0x3614B52A: jmp 0x3614b53b */ 28291 L_3614B52C: 28292 esi = MEM32(ecx + 0x4); /* 0x3614B52C: mov esi, dword ptr [ecx + 4] */ 28293 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B52F: cmp ecx, dword ptr [esi + 8] */ 28294 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 28295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28296 _flag_k = FK_CMP; 28297 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B539; /* 0x3614B532: jne 0x3614b539 */ 28298 L_3614B534: 28299 MEM32(esi + 0x8) = edx; /* 0x3614B534: mov dword ptr [esi + 8], edx */ 28300 goto L_3614B53B; /* 0x3614B537: jmp 0x3614b53b */ 28301 L_3614B539: 28302 MEM32(esi) = edx; /* 0x3614B539: mov dword ptr [esi], edx */ 28303 L_3614B53B: 28304 MEM32(edx + 0x8) = ecx; /* 0x3614B53B: mov dword ptr [edx + 8], ecx */ 28305 MEM32(ecx + 0x4) = edx; /* 0x3614B53E: mov dword ptr [ecx + 4], edx */ 28306 ecx = MEM32(eax + 0x4); /* 0x3614B541: mov ecx, dword ptr [eax + 4] */ 28307 ecx = MEM32(ecx + 0x8); /* 0x3614B544: mov ecx, dword ptr [ecx + 8] */ 28308 L_3614B547: 28309 edx = MEM32(eax + 0x4); /* 0x3614B547: mov edx, dword ptr [eax + 4] */ 28310 SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3614B54A: mov dl, byte ptr [edx + 0x20] */ 28311 MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B54D: mov byte ptr [ecx + 0x20], dl */ 28312 edx = MEM32(eax + 0x4); /* 0x3614B550: mov edx, dword ptr [eax + 4] */ 28313 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B553: mov byte ptr [edx + 0x20], bl */ 28314 ecx = MEM32(ecx + 0x8); /* 0x3614B556: mov ecx, dword ptr [ecx + 8] */ 28315 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B559: mov byte ptr [ecx + 0x20], bl */ 28316 ecx = MEM32(eax + 0x4); /* 0x3614B55C: mov ecx, dword ptr [eax + 4] */ 28317 edx = MEM32(ecx + 0x8); /* 0x3614B55F: mov edx, dword ptr [ecx + 8] */ 28318 esi = MEM32(edx); /* 0x3614B562: mov esi, dword ptr [edx] */ 28319 MEM32(ecx + 0x8) = esi; /* 0x3614B564: mov dword ptr [ecx + 8], esi */ 28320 esi = MEM32(edx); /* 0x3614B567: mov esi, dword ptr [edx] */ 28321 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B569: cmp esi, dword ptr [edi + 8] */ 28322 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 28323 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28324 _flag_k = FK_CMP; 28325 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B571; /* 0x3614B56C: je 0x3614b571 */ 28326 L_3614B56E: 28327 MEM32(esi + 0x4) = ecx; /* 0x3614B56E: mov dword ptr [esi + 4], ecx */ 28328 L_3614B571: 28329 esi = MEM32(ecx + 0x4); /* 0x3614B571: mov esi, dword ptr [ecx + 4] */ 28330 MEM32(edx + 0x4) = esi; /* 0x3614B574: mov dword ptr [edx + 4], esi */ 28331 esi = MEM32(edi + 0x4); /* 0x3614B577: mov esi, dword ptr [edi + 4] */ 28332 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B57A: cmp ecx, dword ptr [esi + 4] */ 28333 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 28334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28335 _flag_k = FK_CMP; 28336 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B589; /* 0x3614B57D: jne 0x3614b589 */ 28337 L_3614B57F: 28338 MEM32(esi + 0x4) = edx; /* 0x3614B57F: mov dword ptr [esi + 4], edx */ 28339 MEM32(edx) = ecx; /* 0x3614B582: mov dword ptr [edx], ecx */ 28340 goto L_3614B63F; /* 0x3614B584: jmp 0x3614b63f */ 28341 L_3614B589: 28342 esi = MEM32(ecx + 0x4); /* 0x3614B589: mov esi, dword ptr [ecx + 4] */ 28343 /* cmp ecx, MEM32(esi) */ /* 0x3614B58C: cmp ecx, dword ptr [esi] */ 28344 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 28345 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28346 _flag_k = FK_CMP; 28347 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B599; /* 0x3614B58E: jne 0x3614b599 */ 28348 L_3614B590: 28349 MEM32(esi) = edx; /* 0x3614B590: mov dword ptr [esi], edx */ 28350 MEM32(edx) = ecx; /* 0x3614B592: mov dword ptr [edx], ecx */ 28351 goto L_3614B63F; /* 0x3614B594: jmp 0x3614b63f */ 28352 L_3614B599: 28353 MEM32(esi + 0x8) = edx; /* 0x3614B599: mov dword ptr [esi + 8], edx */ 28354 MEM32(edx) = ecx; /* 0x3614B59C: mov dword ptr [edx], ecx */ 28355 goto L_3614B63F; /* 0x3614B59E: jmp 0x3614b63f */ 28356 L_3614B5A3: 28357 edx = MEM32(ecx); /* 0x3614B5A3: mov edx, dword ptr [ecx] */ 28358 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B5A5: cmp byte ptr [edx + 0x20], bl */ 28359 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 28360 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28361 _flag_k = FK_NARROW(FK_CMP, 24); 28362 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5F1; /* 0x3614B5A8: jne 0x3614b5f1 */ 28363 L_3614B5AA: 28364 edx = MEM32(ecx + 0x8); /* 0x3614B5AA: mov edx, dword ptr [ecx + 8] */ 28365 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B5AD: mov byte ptr [edx + 0x20], bl */ 28366 edx = MEM32(ecx + 0x8); /* 0x3614B5B0: mov edx, dword ptr [ecx + 8] */ 28367 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B5B3: mov byte ptr [ecx + 0x20], 0 */ 28368 esi = MEM32(edx); /* 0x3614B5B7: mov esi, dword ptr [edx] */ 28369 MEM32(ecx + 0x8) = esi; /* 0x3614B5B9: mov dword ptr [ecx + 8], esi */ 28370 esi = MEM32(edx); /* 0x3614B5BC: mov esi, dword ptr [edx] */ 28371 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B5BE: cmp esi, dword ptr [edi + 8] */ 28372 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 28373 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28374 _flag_k = FK_CMP; 28375 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B5C6; /* 0x3614B5C1: je 0x3614b5c6 */ 28376 L_3614B5C3: 28377 MEM32(esi + 0x4) = ecx; /* 0x3614B5C3: mov dword ptr [esi + 4], ecx */ 28378 L_3614B5C6: 28379 esi = MEM32(ecx + 0x4); /* 0x3614B5C6: mov esi, dword ptr [ecx + 4] */ 28380 MEM32(edx + 0x4) = esi; /* 0x3614B5C9: mov dword ptr [edx + 4], esi */ 28381 esi = MEM32(edi + 0x4); /* 0x3614B5CC: mov esi, dword ptr [edi + 4] */ 28382 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B5CF: cmp ecx, dword ptr [esi + 4] */ 28383 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 28384 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28385 _flag_k = FK_CMP; 28386 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5D9; /* 0x3614B5D2: jne 0x3614b5d9 */ 28387 L_3614B5D4: 28388 MEM32(esi + 0x4) = edx; /* 0x3614B5D4: mov dword ptr [esi + 4], edx */ 28389 goto L_3614B5E7; /* 0x3614B5D7: jmp 0x3614b5e7 */ 28390 L_3614B5D9: 28391 esi = MEM32(ecx + 0x4); /* 0x3614B5D9: mov esi, dword ptr [ecx + 4] */ 28392 /* cmp ecx, MEM32(esi) */ /* 0x3614B5DC: cmp ecx, dword ptr [esi] */ 28393 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 28394 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28395 _flag_k = FK_CMP; 28396 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5E4; /* 0x3614B5DE: jne 0x3614b5e4 */ 28397 L_3614B5E0: 28398 MEM32(esi) = edx; /* 0x3614B5E0: mov dword ptr [esi], edx */ 28399 goto L_3614B5E7; /* 0x3614B5E2: jmp 0x3614b5e7 */ 28400 L_3614B5E4: 28401 MEM32(esi + 0x8) = edx; /* 0x3614B5E4: mov dword ptr [esi + 8], edx */ 28402 L_3614B5E7: 28403 MEM32(edx) = ecx; /* 0x3614B5E7: mov dword ptr [edx], ecx */ 28404 MEM32(ecx + 0x4) = edx; /* 0x3614B5E9: mov dword ptr [ecx + 4], edx */ 28405 ecx = MEM32(eax + 0x4); /* 0x3614B5EC: mov ecx, dword ptr [eax + 4] */ 28406 ecx = MEM32(ecx); /* 0x3614B5EF: mov ecx, dword ptr [ecx] */ 28407 L_3614B5F1: 28408 edx = MEM32(eax + 0x4); /* 0x3614B5F1: mov edx, dword ptr [eax + 4] */ 28409 SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3614B5F4: mov dl, byte ptr [edx + 0x20] */ 28410 MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B5F7: mov byte ptr [ecx + 0x20], dl */ 28411 edx = MEM32(eax + 0x4); /* 0x3614B5FA: mov edx, dword ptr [eax + 4] */ 28412 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B5FD: mov byte ptr [edx + 0x20], bl */ 28413 ecx = MEM32(ecx); /* 0x3614B600: mov ecx, dword ptr [ecx] */ 28414 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B602: mov byte ptr [ecx + 0x20], bl */ 28415 ecx = MEM32(eax + 0x4); /* 0x3614B605: mov ecx, dword ptr [eax + 4] */ 28416 edx = MEM32(ecx); /* 0x3614B608: mov edx, dword ptr [ecx] */ 28417 esi = MEM32(edx + 0x8); /* 0x3614B60A: mov esi, dword ptr [edx + 8] */ 28418 MEM32(ecx) = esi; /* 0x3614B60D: mov dword ptr [ecx], esi */ 28419 esi = MEM32(edx + 0x8); /* 0x3614B60F: mov esi, dword ptr [edx + 8] */ 28420 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B612: cmp esi, dword ptr [edi + 8] */ 28421 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 28422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28423 _flag_k = FK_CMP; 28424 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B61A; /* 0x3614B615: je 0x3614b61a */ 28425 L_3614B617: 28426 MEM32(esi + 0x4) = ecx; /* 0x3614B617: mov dword ptr [esi + 4], ecx */ 28427 L_3614B61A: 28428 esi = MEM32(ecx + 0x4); /* 0x3614B61A: mov esi, dword ptr [ecx + 4] */ 28429 MEM32(edx + 0x4) = esi; /* 0x3614B61D: mov dword ptr [edx + 4], esi */ 28430 esi = MEM32(edi + 0x4); /* 0x3614B620: mov esi, dword ptr [edi + 4] */ 28431 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B623: cmp ecx, dword ptr [esi + 4] */ 28432 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 28433 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28434 _flag_k = FK_CMP; 28435 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B62D; /* 0x3614B626: jne 0x3614b62d */ 28436 L_3614B628: 28437 MEM32(esi + 0x4) = edx; /* 0x3614B628: mov dword ptr [esi + 4], edx */ 28438 goto L_3614B63C; /* 0x3614B62B: jmp 0x3614b63c */ 28439 L_3614B62D: 28440 esi = MEM32(ecx + 0x4); /* 0x3614B62D: mov esi, dword ptr [ecx + 4] */ 28441 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B630: cmp ecx, dword ptr [esi + 8] */ 28442 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 28443 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28444 _flag_k = FK_CMP; 28445 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B63A; /* 0x3614B633: jne 0x3614b63a */ 28446 L_3614B635: 28447 MEM32(esi + 0x8) = edx; /* 0x3614B635: mov dword ptr [esi + 8], edx */ 28448 goto L_3614B63C; /* 0x3614B638: jmp 0x3614b63c */ 28449 L_3614B63A: 28450 MEM32(esi) = edx; /* 0x3614B63A: mov dword ptr [esi], edx */ 28451 L_3614B63C: 28452 MEM32(edx + 0x8) = ecx; /* 0x3614B63C: mov dword ptr [edx + 8], ecx */ 28453 L_3614B63F: 28454 MEM32(ecx + 0x4) = edx; /* 0x3614B63F: mov dword ptr [ecx + 4], edx */ 28455 L_3614B642: 28456 esi = MEM32(ebp + (-0x4)); /* 0x3614B642: mov esi, dword ptr [ebp - 4] */ 28457 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B645: mov byte ptr [eax + 0x20], bl */ 28458 ecx = esi + 0xC; /* 0x3614B648: lea ecx, [esi + 0xc] */ 28459 RECOMP_ICALL(0x3614AFC0u); /* 0x3614B64B: call 0x3614afc0 */ /* not lifted */ 28460 RECOMP_FLAGS_IN(); 28461 PUSH32(esp, esi); /* 0x3614B650: push esi */ 28462 RECOMP_ICALL(0x3615FCC4u); /* 0x3614B651: call 0x3615fcc4 */ /* not lifted */ 28463 RECOMP_FLAGS_IN(); 28464 eax = MEM32(edi + 0x10); /* 0x3614B656: mov eax, dword ptr [edi + 0x10] */ 28465 edx = MEM32(ebp + 0xC); /* 0x3614B659: mov edx, dword ptr [ebp + 0xc] */ 28466 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 28467 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28468 esp = esp + 4; /* 0x3614B65C: add esp, 4 */ 28469 _flag_k = FK_ADD; 28470 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 28471 eax = eax - 1; /* 0x3614B65F: dec eax */ 28472 _flag_k = FK_DEC; 28473 MEM32(edi + 0x10) = eax; /* 0x3614B660: mov dword ptr [edi + 0x10], eax */ 28474 eax = MEM32(ebp + 0x8); /* 0x3614B663: mov eax, dword ptr [ebp + 8] */ 28475 edi = POP32_VAL(esp); /* 0x3614B666: pop edi */ 28476 esi = POP32_VAL(esp); /* 0x3614B667: pop esi */ 28477 MEM32(eax) = edx; /* 0x3614B668: mov dword ptr [eax], edx */ 28478 ebx = POP32_VAL(esp); /* 0x3614B66A: pop ebx */ 28479 esp = ebp; /* 0x3614B66B: mov esp, ebp */ 28480 ebp = POP32_VAL(esp); /* 0x3614B66D: pop ebp */ 28481 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614B66E: ret 8 */ 28482 RECOMP_REGS_OUT(); 28483 } 28484 28485 void sub_3614B474(void) { 28486 int _fpu_cmp = 0; 28487 uint32_t _cf = 0; 28488 int _df = 1; 28489 uint32_t _flag_k = FK_NONE; 28490 uint32_t _flag_a = 0, _flag_b = 0; 28491 uint32_t _itail_tgt = 0; 28492 RECOMP_REGS_LOCALS 28493 RECOMP_ENTER(0x3614B474u); 28494 28495 goto L_3614B474; 28496 L_3614B3F4: 28497 /* cmp MEM8(eax + 0x20), LO8(ebx) */ /* 0x3614B3F4: cmp byte ptr [eax + 0x20], bl */ 28498 _flag_a = (uint32_t)(MEM8(eax + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 28499 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28500 _flag_k = FK_NARROW(FK_CMP, 24); 28501 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B642; /* 0x3614B3F7: jne 0x3614b642 */ 28502 L_3614B3FD: 28503 edx = MEM32(eax + 0x4); /* 0x3614B3FD: mov edx, dword ptr [eax + 4] */ 28504 ecx = MEM32(edx); /* 0x3614B400: mov ecx, dword ptr [edx] */ 28505 /* cmp eax, ecx */ /* 0x3614B402: cmp eax, ecx */ 28506 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 28507 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28508 _flag_k = FK_CMP; 28509 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B474; /* 0x3614B404: jne 0x3614b474 */ 28510 L_3614B406: 28511 ecx = MEM32(edx + 0x8); /* 0x3614B406: mov ecx, dword ptr [edx + 8] */ 28512 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B409: mov dl, byte ptr [ecx + 0x20] */ 28513 /* test LO8(edx), LO8(edx) */ /* 0x3614B40C: test dl, dl */ 28514 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 28515 _cf = 0; 28516 _flag_k = FK_NARROW(FK_TEST, 24); 28517 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B45B; /* 0x3614B40E: jne 0x3614b45b */ 28518 L_3614B410: 28519 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B410: mov byte ptr [ecx + 0x20], bl */ 28520 edx = MEM32(eax + 0x4); /* 0x3614B413: mov edx, dword ptr [eax + 4] */ 28521 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x3614B416: mov byte ptr [edx + 0x20], 0 */ 28522 ecx = MEM32(eax + 0x4); /* 0x3614B41A: mov ecx, dword ptr [eax + 4] */ 28523 edx = MEM32(ecx + 0x8); /* 0x3614B41D: mov edx, dword ptr [ecx + 8] */ 28524 esi = MEM32(edx); /* 0x3614B420: mov esi, dword ptr [edx] */ 28525 MEM32(ecx + 0x8) = esi; /* 0x3614B422: mov dword ptr [ecx + 8], esi */ 28526 esi = MEM32(edx); /* 0x3614B425: mov esi, dword ptr [edx] */ 28527 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B427: cmp esi, dword ptr [edi + 8] */ 28528 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 28529 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28530 _flag_k = FK_CMP; 28531 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B42F; /* 0x3614B42A: je 0x3614b42f */ 28532 L_3614B42C: 28533 MEM32(esi + 0x4) = ecx; /* 0x3614B42C: mov dword ptr [esi + 4], ecx */ 28534 L_3614B42F: 28535 esi = MEM32(ecx + 0x4); /* 0x3614B42F: mov esi, dword ptr [ecx + 4] */ 28536 MEM32(edx + 0x4) = esi; /* 0x3614B432: mov dword ptr [edx + 4], esi */ 28537 esi = MEM32(edi + 0x4); /* 0x3614B435: mov esi, dword ptr [edi + 4] */ 28538 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B438: cmp ecx, dword ptr [esi + 4] */ 28539 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 28540 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28541 _flag_k = FK_CMP; 28542 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B442; /* 0x3614B43B: jne 0x3614b442 */ 28543 L_3614B43D: 28544 MEM32(esi + 0x4) = edx; /* 0x3614B43D: mov dword ptr [esi + 4], edx */ 28545 goto L_3614B450; /* 0x3614B440: jmp 0x3614b450 */ 28546 L_3614B442: 28547 esi = MEM32(ecx + 0x4); /* 0x3614B442: mov esi, dword ptr [ecx + 4] */ 28548 /* cmp ecx, MEM32(esi) */ /* 0x3614B445: cmp ecx, dword ptr [esi] */ 28549 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 28550 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28551 _flag_k = FK_CMP; 28552 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B44D; /* 0x3614B447: jne 0x3614b44d */ 28553 L_3614B449: 28554 MEM32(esi) = edx; /* 0x3614B449: mov dword ptr [esi], edx */ 28555 goto L_3614B450; /* 0x3614B44B: jmp 0x3614b450 */ 28556 L_3614B44D: 28557 MEM32(esi + 0x8) = edx; /* 0x3614B44D: mov dword ptr [esi + 8], edx */ 28558 L_3614B450: 28559 MEM32(edx) = ecx; /* 0x3614B450: mov dword ptr [edx], ecx */ 28560 MEM32(ecx + 0x4) = edx; /* 0x3614B452: mov dword ptr [ecx + 4], edx */ 28561 ecx = MEM32(eax + 0x4); /* 0x3614B455: mov ecx, dword ptr [eax + 4] */ 28562 ecx = MEM32(ecx + 0x8); /* 0x3614B458: mov ecx, dword ptr [ecx + 8] */ 28563 L_3614B45B: 28564 edx = MEM32(ecx); /* 0x3614B45B: mov edx, dword ptr [ecx] */ 28565 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B45D: cmp byte ptr [edx + 0x20], bl */ 28566 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 28567 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28568 _flag_k = FK_NARROW(FK_CMP, 24); 28569 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4F6; /* 0x3614B460: jne 0x3614b4f6 */ 28570 L_3614B466: 28571 edx = MEM32(ecx + 0x8); /* 0x3614B466: mov edx, dword ptr [ecx + 8] */ 28572 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B469: cmp byte ptr [edx + 0x20], bl */ 28573 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 28574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28575 _flag_k = FK_NARROW(FK_CMP, 24); 28576 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4F6; /* 0x3614B46C: jne 0x3614b4f6 */ 28577 L_3614B472: 28578 goto L_3614B4DE; /* 0x3614B472: jmp 0x3614b4de */ 28579 L_3614B474: 28580 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B474: mov dl, byte ptr [ecx + 0x20] */ 28581 /* test LO8(edx), LO8(edx) */ /* 0x3614B477: test dl, dl */ 28582 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 28583 _cf = 0; 28584 _flag_k = FK_NARROW(FK_TEST, 24); 28585 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B4C7; /* 0x3614B479: jne 0x3614b4c7 */ 28586 L_3614B47B: 28587 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B47B: mov byte ptr [ecx + 0x20], bl */ 28588 ecx = MEM32(eax + 0x4); /* 0x3614B47E: mov ecx, dword ptr [eax + 4] */ 28589 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B481: mov byte ptr [ecx + 0x20], 0 */ 28590 ecx = MEM32(eax + 0x4); /* 0x3614B485: mov ecx, dword ptr [eax + 4] */ 28591 edx = MEM32(ecx); /* 0x3614B488: mov edx, dword ptr [ecx] */ 28592 esi = MEM32(edx + 0x8); /* 0x3614B48A: mov esi, dword ptr [edx + 8] */ 28593 MEM32(ecx) = esi; /* 0x3614B48D: mov dword ptr [ecx], esi */ 28594 esi = MEM32(edx + 0x8); /* 0x3614B48F: mov esi, dword ptr [edx + 8] */ 28595 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B492: cmp esi, dword ptr [edi + 8] */ 28596 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 28597 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28598 _flag_k = FK_CMP; 28599 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B49A; /* 0x3614B495: je 0x3614b49a */ 28600 L_3614B497: 28601 MEM32(esi + 0x4) = ecx; /* 0x3614B497: mov dword ptr [esi + 4], ecx */ 28602 L_3614B49A: 28603 esi = MEM32(ecx + 0x4); /* 0x3614B49A: mov esi, dword ptr [ecx + 4] */ 28604 MEM32(edx + 0x4) = esi; /* 0x3614B49D: mov dword ptr [edx + 4], esi */ 28605 esi = MEM32(edi + 0x4); /* 0x3614B4A0: mov esi, dword ptr [edi + 4] */ 28606 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B4A3: cmp ecx, dword ptr [esi + 4] */ 28607 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 28608 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28609 _flag_k = FK_CMP; 28610 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4AD; /* 0x3614B4A6: jne 0x3614b4ad */ 28611 L_3614B4A8: 28612 MEM32(esi + 0x4) = edx; /* 0x3614B4A8: mov dword ptr [esi + 4], edx */ 28613 goto L_3614B4BC; /* 0x3614B4AB: jmp 0x3614b4bc */ 28614 L_3614B4AD: 28615 esi = MEM32(ecx + 0x4); /* 0x3614B4AD: mov esi, dword ptr [ecx + 4] */ 28616 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B4B0: cmp ecx, dword ptr [esi + 8] */ 28617 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 28618 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28619 _flag_k = FK_CMP; 28620 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4BA; /* 0x3614B4B3: jne 0x3614b4ba */ 28621 L_3614B4B5: 28622 MEM32(esi + 0x8) = edx; /* 0x3614B4B5: mov dword ptr [esi + 8], edx */ 28623 goto L_3614B4BC; /* 0x3614B4B8: jmp 0x3614b4bc */ 28624 L_3614B4BA: 28625 MEM32(esi) = edx; /* 0x3614B4BA: mov dword ptr [esi], edx */ 28626 L_3614B4BC: 28627 MEM32(edx + 0x8) = ecx; /* 0x3614B4BC: mov dword ptr [edx + 8], ecx */ 28628 MEM32(ecx + 0x4) = edx; /* 0x3614B4BF: mov dword ptr [ecx + 4], edx */ 28629 edx = MEM32(eax + 0x4); /* 0x3614B4C2: mov edx, dword ptr [eax + 4] */ 28630 ecx = MEM32(edx); /* 0x3614B4C5: mov ecx, dword ptr [edx] */ 28631 L_3614B4C7: 28632 edx = MEM32(ecx + 0x8); /* 0x3614B4C7: mov edx, dword ptr [ecx + 8] */ 28633 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4CA: cmp byte ptr [edx + 0x20], bl */ 28634 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 28635 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28636 _flag_k = FK_NARROW(FK_CMP, 24); 28637 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5A3; /* 0x3614B4CD: jne 0x3614b5a3 */ 28638 L_3614B4D3: 28639 edx = MEM32(ecx); /* 0x3614B4D3: mov edx, dword ptr [ecx] */ 28640 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4D5: cmp byte ptr [edx + 0x20], bl */ 28641 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 28642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28643 _flag_k = FK_NARROW(FK_CMP, 24); 28644 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5A3; /* 0x3614B4D8: jne 0x3614b5a3 */ 28645 L_3614B4DE: 28646 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B4DE: mov byte ptr [ecx + 0x20], 0 */ 28647 ecx = MEM32(edi + 0x4); /* 0x3614B4E2: mov ecx, dword ptr [edi + 4] */ 28648 eax = MEM32(eax + 0x4); /* 0x3614B4E5: mov eax, dword ptr [eax + 4] */ 28649 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B4E8: cmp eax, dword ptr [ecx + 4] */ 28650 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 28651 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28652 _flag_k = FK_CMP; 28653 RECOMP_BACKEDGE(); 28654 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B3F4; /* 0x3614B4EB: jne 0x3614b3f4 */ 28655 L_3614B4F1: 28656 goto L_3614B642; /* 0x3614B4F1: jmp 0x3614b642 */ 28657 L_3614B4F6: 28658 edx = MEM32(ecx + 0x8); /* 0x3614B4F6: mov edx, dword ptr [ecx + 8] */ 28659 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4F9: cmp byte ptr [edx + 0x20], bl */ 28660 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 28661 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28662 _flag_k = FK_NARROW(FK_CMP, 24); 28663 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B547; /* 0x3614B4FC: jne 0x3614b547 */ 28664 L_3614B4FE: 28665 edx = MEM32(ecx); /* 0x3614B4FE: mov edx, dword ptr [ecx] */ 28666 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B500: mov byte ptr [edx + 0x20], bl */ 28667 edx = MEM32(ecx); /* 0x3614B503: mov edx, dword ptr [ecx] */ 28668 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B505: mov byte ptr [ecx + 0x20], 0 */ 28669 esi = MEM32(edx + 0x8); /* 0x3614B509: mov esi, dword ptr [edx + 8] */ 28670 MEM32(ecx) = esi; /* 0x3614B50C: mov dword ptr [ecx], esi */ 28671 esi = MEM32(edx + 0x8); /* 0x3614B50E: mov esi, dword ptr [edx + 8] */ 28672 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B511: cmp esi, dword ptr [edi + 8] */ 28673 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 28674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28675 _flag_k = FK_CMP; 28676 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B519; /* 0x3614B514: je 0x3614b519 */ 28677 L_3614B516: 28678 MEM32(esi + 0x4) = ecx; /* 0x3614B516: mov dword ptr [esi + 4], ecx */ 28679 L_3614B519: 28680 esi = MEM32(ecx + 0x4); /* 0x3614B519: mov esi, dword ptr [ecx + 4] */ 28681 MEM32(edx + 0x4) = esi; /* 0x3614B51C: mov dword ptr [edx + 4], esi */ 28682 esi = MEM32(edi + 0x4); /* 0x3614B51F: mov esi, dword ptr [edi + 4] */ 28683 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B522: cmp ecx, dword ptr [esi + 4] */ 28684 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 28685 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28686 _flag_k = FK_CMP; 28687 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B52C; /* 0x3614B525: jne 0x3614b52c */ 28688 L_3614B527: 28689 MEM32(esi + 0x4) = edx; /* 0x3614B527: mov dword ptr [esi + 4], edx */ 28690 goto L_3614B53B; /* 0x3614B52A: jmp 0x3614b53b */ 28691 L_3614B52C: 28692 esi = MEM32(ecx + 0x4); /* 0x3614B52C: mov esi, dword ptr [ecx + 4] */ 28693 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B52F: cmp ecx, dword ptr [esi + 8] */ 28694 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 28695 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28696 _flag_k = FK_CMP; 28697 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B539; /* 0x3614B532: jne 0x3614b539 */ 28698 L_3614B534: 28699 MEM32(esi + 0x8) = edx; /* 0x3614B534: mov dword ptr [esi + 8], edx */ 28700 goto L_3614B53B; /* 0x3614B537: jmp 0x3614b53b */ 28701 L_3614B539: 28702 MEM32(esi) = edx; /* 0x3614B539: mov dword ptr [esi], edx */ 28703 L_3614B53B: 28704 MEM32(edx + 0x8) = ecx; /* 0x3614B53B: mov dword ptr [edx + 8], ecx */ 28705 MEM32(ecx + 0x4) = edx; /* 0x3614B53E: mov dword ptr [ecx + 4], edx */ 28706 ecx = MEM32(eax + 0x4); /* 0x3614B541: mov ecx, dword ptr [eax + 4] */ 28707 ecx = MEM32(ecx + 0x8); /* 0x3614B544: mov ecx, dword ptr [ecx + 8] */ 28708 L_3614B547: 28709 edx = MEM32(eax + 0x4); /* 0x3614B547: mov edx, dword ptr [eax + 4] */ 28710 SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3614B54A: mov dl, byte ptr [edx + 0x20] */ 28711 MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B54D: mov byte ptr [ecx + 0x20], dl */ 28712 edx = MEM32(eax + 0x4); /* 0x3614B550: mov edx, dword ptr [eax + 4] */ 28713 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B553: mov byte ptr [edx + 0x20], bl */ 28714 ecx = MEM32(ecx + 0x8); /* 0x3614B556: mov ecx, dword ptr [ecx + 8] */ 28715 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B559: mov byte ptr [ecx + 0x20], bl */ 28716 ecx = MEM32(eax + 0x4); /* 0x3614B55C: mov ecx, dword ptr [eax + 4] */ 28717 edx = MEM32(ecx + 0x8); /* 0x3614B55F: mov edx, dword ptr [ecx + 8] */ 28718 esi = MEM32(edx); /* 0x3614B562: mov esi, dword ptr [edx] */ 28719 MEM32(ecx + 0x8) = esi; /* 0x3614B564: mov dword ptr [ecx + 8], esi */ 28720 esi = MEM32(edx); /* 0x3614B567: mov esi, dword ptr [edx] */ 28721 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B569: cmp esi, dword ptr [edi + 8] */ 28722 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 28723 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28724 _flag_k = FK_CMP; 28725 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B571; /* 0x3614B56C: je 0x3614b571 */ 28726 L_3614B56E: 28727 MEM32(esi + 0x4) = ecx; /* 0x3614B56E: mov dword ptr [esi + 4], ecx */ 28728 L_3614B571: 28729 esi = MEM32(ecx + 0x4); /* 0x3614B571: mov esi, dword ptr [ecx + 4] */ 28730 MEM32(edx + 0x4) = esi; /* 0x3614B574: mov dword ptr [edx + 4], esi */ 28731 esi = MEM32(edi + 0x4); /* 0x3614B577: mov esi, dword ptr [edi + 4] */ 28732 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B57A: cmp ecx, dword ptr [esi + 4] */ 28733 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 28734 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28735 _flag_k = FK_CMP; 28736 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B589; /* 0x3614B57D: jne 0x3614b589 */ 28737 L_3614B57F: 28738 MEM32(esi + 0x4) = edx; /* 0x3614B57F: mov dword ptr [esi + 4], edx */ 28739 MEM32(edx) = ecx; /* 0x3614B582: mov dword ptr [edx], ecx */ 28740 goto L_3614B63F; /* 0x3614B584: jmp 0x3614b63f */ 28741 L_3614B589: 28742 esi = MEM32(ecx + 0x4); /* 0x3614B589: mov esi, dword ptr [ecx + 4] */ 28743 /* cmp ecx, MEM32(esi) */ /* 0x3614B58C: cmp ecx, dword ptr [esi] */ 28744 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 28745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28746 _flag_k = FK_CMP; 28747 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B599; /* 0x3614B58E: jne 0x3614b599 */ 28748 L_3614B590: 28749 MEM32(esi) = edx; /* 0x3614B590: mov dword ptr [esi], edx */ 28750 MEM32(edx) = ecx; /* 0x3614B592: mov dword ptr [edx], ecx */ 28751 goto L_3614B63F; /* 0x3614B594: jmp 0x3614b63f */ 28752 L_3614B599: 28753 MEM32(esi + 0x8) = edx; /* 0x3614B599: mov dword ptr [esi + 8], edx */ 28754 MEM32(edx) = ecx; /* 0x3614B59C: mov dword ptr [edx], ecx */ 28755 goto L_3614B63F; /* 0x3614B59E: jmp 0x3614b63f */ 28756 L_3614B5A3: 28757 edx = MEM32(ecx); /* 0x3614B5A3: mov edx, dword ptr [ecx] */ 28758 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B5A5: cmp byte ptr [edx + 0x20], bl */ 28759 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 28760 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28761 _flag_k = FK_NARROW(FK_CMP, 24); 28762 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5F1; /* 0x3614B5A8: jne 0x3614b5f1 */ 28763 L_3614B5AA: 28764 edx = MEM32(ecx + 0x8); /* 0x3614B5AA: mov edx, dword ptr [ecx + 8] */ 28765 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B5AD: mov byte ptr [edx + 0x20], bl */ 28766 edx = MEM32(ecx + 0x8); /* 0x3614B5B0: mov edx, dword ptr [ecx + 8] */ 28767 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B5B3: mov byte ptr [ecx + 0x20], 0 */ 28768 esi = MEM32(edx); /* 0x3614B5B7: mov esi, dword ptr [edx] */ 28769 MEM32(ecx + 0x8) = esi; /* 0x3614B5B9: mov dword ptr [ecx + 8], esi */ 28770 esi = MEM32(edx); /* 0x3614B5BC: mov esi, dword ptr [edx] */ 28771 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B5BE: cmp esi, dword ptr [edi + 8] */ 28772 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 28773 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28774 _flag_k = FK_CMP; 28775 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B5C6; /* 0x3614B5C1: je 0x3614b5c6 */ 28776 L_3614B5C3: 28777 MEM32(esi + 0x4) = ecx; /* 0x3614B5C3: mov dword ptr [esi + 4], ecx */ 28778 L_3614B5C6: 28779 esi = MEM32(ecx + 0x4); /* 0x3614B5C6: mov esi, dword ptr [ecx + 4] */ 28780 MEM32(edx + 0x4) = esi; /* 0x3614B5C9: mov dword ptr [edx + 4], esi */ 28781 esi = MEM32(edi + 0x4); /* 0x3614B5CC: mov esi, dword ptr [edi + 4] */ 28782 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B5CF: cmp ecx, dword ptr [esi + 4] */ 28783 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 28784 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28785 _flag_k = FK_CMP; 28786 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5D9; /* 0x3614B5D2: jne 0x3614b5d9 */ 28787 L_3614B5D4: 28788 MEM32(esi + 0x4) = edx; /* 0x3614B5D4: mov dword ptr [esi + 4], edx */ 28789 goto L_3614B5E7; /* 0x3614B5D7: jmp 0x3614b5e7 */ 28790 L_3614B5D9: 28791 esi = MEM32(ecx + 0x4); /* 0x3614B5D9: mov esi, dword ptr [ecx + 4] */ 28792 /* cmp ecx, MEM32(esi) */ /* 0x3614B5DC: cmp ecx, dword ptr [esi] */ 28793 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 28794 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28795 _flag_k = FK_CMP; 28796 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5E4; /* 0x3614B5DE: jne 0x3614b5e4 */ 28797 L_3614B5E0: 28798 MEM32(esi) = edx; /* 0x3614B5E0: mov dword ptr [esi], edx */ 28799 goto L_3614B5E7; /* 0x3614B5E2: jmp 0x3614b5e7 */ 28800 L_3614B5E4: 28801 MEM32(esi + 0x8) = edx; /* 0x3614B5E4: mov dword ptr [esi + 8], edx */ 28802 L_3614B5E7: 28803 MEM32(edx) = ecx; /* 0x3614B5E7: mov dword ptr [edx], ecx */ 28804 MEM32(ecx + 0x4) = edx; /* 0x3614B5E9: mov dword ptr [ecx + 4], edx */ 28805 ecx = MEM32(eax + 0x4); /* 0x3614B5EC: mov ecx, dword ptr [eax + 4] */ 28806 ecx = MEM32(ecx); /* 0x3614B5EF: mov ecx, dword ptr [ecx] */ 28807 L_3614B5F1: 28808 edx = MEM32(eax + 0x4); /* 0x3614B5F1: mov edx, dword ptr [eax + 4] */ 28809 SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3614B5F4: mov dl, byte ptr [edx + 0x20] */ 28810 MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B5F7: mov byte ptr [ecx + 0x20], dl */ 28811 edx = MEM32(eax + 0x4); /* 0x3614B5FA: mov edx, dword ptr [eax + 4] */ 28812 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B5FD: mov byte ptr [edx + 0x20], bl */ 28813 ecx = MEM32(ecx); /* 0x3614B600: mov ecx, dword ptr [ecx] */ 28814 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B602: mov byte ptr [ecx + 0x20], bl */ 28815 ecx = MEM32(eax + 0x4); /* 0x3614B605: mov ecx, dword ptr [eax + 4] */ 28816 edx = MEM32(ecx); /* 0x3614B608: mov edx, dword ptr [ecx] */ 28817 esi = MEM32(edx + 0x8); /* 0x3614B60A: mov esi, dword ptr [edx + 8] */ 28818 MEM32(ecx) = esi; /* 0x3614B60D: mov dword ptr [ecx], esi */ 28819 esi = MEM32(edx + 0x8); /* 0x3614B60F: mov esi, dword ptr [edx + 8] */ 28820 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B612: cmp esi, dword ptr [edi + 8] */ 28821 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 28822 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28823 _flag_k = FK_CMP; 28824 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B61A; /* 0x3614B615: je 0x3614b61a */ 28825 L_3614B617: 28826 MEM32(esi + 0x4) = ecx; /* 0x3614B617: mov dword ptr [esi + 4], ecx */ 28827 L_3614B61A: 28828 esi = MEM32(ecx + 0x4); /* 0x3614B61A: mov esi, dword ptr [ecx + 4] */ 28829 MEM32(edx + 0x4) = esi; /* 0x3614B61D: mov dword ptr [edx + 4], esi */ 28830 esi = MEM32(edi + 0x4); /* 0x3614B620: mov esi, dword ptr [edi + 4] */ 28831 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B623: cmp ecx, dword ptr [esi + 4] */ 28832 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 28833 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28834 _flag_k = FK_CMP; 28835 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B62D; /* 0x3614B626: jne 0x3614b62d */ 28836 L_3614B628: 28837 MEM32(esi + 0x4) = edx; /* 0x3614B628: mov dword ptr [esi + 4], edx */ 28838 goto L_3614B63C; /* 0x3614B62B: jmp 0x3614b63c */ 28839 L_3614B62D: 28840 esi = MEM32(ecx + 0x4); /* 0x3614B62D: mov esi, dword ptr [ecx + 4] */ 28841 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B630: cmp ecx, dword ptr [esi + 8] */ 28842 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 28843 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28844 _flag_k = FK_CMP; 28845 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B63A; /* 0x3614B633: jne 0x3614b63a */ 28846 L_3614B635: 28847 MEM32(esi + 0x8) = edx; /* 0x3614B635: mov dword ptr [esi + 8], edx */ 28848 goto L_3614B63C; /* 0x3614B638: jmp 0x3614b63c */ 28849 L_3614B63A: 28850 MEM32(esi) = edx; /* 0x3614B63A: mov dword ptr [esi], edx */ 28851 L_3614B63C: 28852 MEM32(edx + 0x8) = ecx; /* 0x3614B63C: mov dword ptr [edx + 8], ecx */ 28853 L_3614B63F: 28854 MEM32(ecx + 0x4) = edx; /* 0x3614B63F: mov dword ptr [ecx + 4], edx */ 28855 L_3614B642: 28856 esi = MEM32(ebp + (-0x4)); /* 0x3614B642: mov esi, dword ptr [ebp - 4] */ 28857 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B645: mov byte ptr [eax + 0x20], bl */ 28858 ecx = esi + 0xC; /* 0x3614B648: lea ecx, [esi + 0xc] */ 28859 RECOMP_ICALL(0x3614AFC0u); /* 0x3614B64B: call 0x3614afc0 */ /* not lifted */ 28860 RECOMP_FLAGS_IN(); 28861 PUSH32(esp, esi); /* 0x3614B650: push esi */ 28862 RECOMP_ICALL(0x3615FCC4u); /* 0x3614B651: call 0x3615fcc4 */ /* not lifted */ 28863 RECOMP_FLAGS_IN(); 28864 eax = MEM32(edi + 0x10); /* 0x3614B656: mov eax, dword ptr [edi + 0x10] */ 28865 edx = MEM32(ebp + 0xC); /* 0x3614B659: mov edx, dword ptr [ebp + 0xc] */ 28866 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 28867 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 28868 esp = esp + 4; /* 0x3614B65C: add esp, 4 */ 28869 _flag_k = FK_ADD; 28870 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 28871 eax = eax - 1; /* 0x3614B65F: dec eax */ 28872 _flag_k = FK_DEC; 28873 MEM32(edi + 0x10) = eax; /* 0x3614B660: mov dword ptr [edi + 0x10], eax */ 28874 eax = MEM32(ebp + 0x8); /* 0x3614B663: mov eax, dword ptr [ebp + 8] */ 28875 edi = POP32_VAL(esp); /* 0x3614B666: pop edi */ 28876 esi = POP32_VAL(esp); /* 0x3614B667: pop esi */ 28877 MEM32(eax) = edx; /* 0x3614B668: mov dword ptr [eax], edx */ 28878 ebx = POP32_VAL(esp); /* 0x3614B66A: pop ebx */ 28879 esp = ebp; /* 0x3614B66B: mov esp, ebp */ 28880 ebp = POP32_VAL(esp); /* 0x3614B66D: pop ebp */ 28881 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614B66E: ret 8 */ 28882 RECOMP_REGS_OUT(); 28883 } 28884 28885 void sub_3614B4BC(void) { 28886 int _fpu_cmp = 0; 28887 uint32_t _cf = 0; 28888 int _df = 1; 28889 uint32_t _flag_k = FK_NONE; 28890 uint32_t _flag_a = 0, _flag_b = 0; 28891 uint32_t _itail_tgt = 0; 28892 RECOMP_REGS_LOCALS 28893 RECOMP_ENTER(0x3614B4BCu); 28894 28895 goto L_3614B4BC; 28896 L_3614B3F4: 28897 /* cmp MEM8(eax + 0x20), LO8(ebx) */ /* 0x3614B3F4: cmp byte ptr [eax + 0x20], bl */ 28898 _flag_a = (uint32_t)(MEM8(eax + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 28899 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28900 _flag_k = FK_NARROW(FK_CMP, 24); 28901 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B642; /* 0x3614B3F7: jne 0x3614b642 */ 28902 L_3614B3FD: 28903 edx = MEM32(eax + 0x4); /* 0x3614B3FD: mov edx, dword ptr [eax + 4] */ 28904 ecx = MEM32(edx); /* 0x3614B400: mov ecx, dword ptr [edx] */ 28905 /* cmp eax, ecx */ /* 0x3614B402: cmp eax, ecx */ 28906 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 28907 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28908 _flag_k = FK_CMP; 28909 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B474; /* 0x3614B404: jne 0x3614b474 */ 28910 L_3614B406: 28911 ecx = MEM32(edx + 0x8); /* 0x3614B406: mov ecx, dword ptr [edx + 8] */ 28912 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B409: mov dl, byte ptr [ecx + 0x20] */ 28913 /* test LO8(edx), LO8(edx) */ /* 0x3614B40C: test dl, dl */ 28914 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 28915 _cf = 0; 28916 _flag_k = FK_NARROW(FK_TEST, 24); 28917 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B45B; /* 0x3614B40E: jne 0x3614b45b */ 28918 L_3614B410: 28919 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B410: mov byte ptr [ecx + 0x20], bl */ 28920 edx = MEM32(eax + 0x4); /* 0x3614B413: mov edx, dword ptr [eax + 4] */ 28921 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x3614B416: mov byte ptr [edx + 0x20], 0 */ 28922 ecx = MEM32(eax + 0x4); /* 0x3614B41A: mov ecx, dword ptr [eax + 4] */ 28923 edx = MEM32(ecx + 0x8); /* 0x3614B41D: mov edx, dword ptr [ecx + 8] */ 28924 esi = MEM32(edx); /* 0x3614B420: mov esi, dword ptr [edx] */ 28925 MEM32(ecx + 0x8) = esi; /* 0x3614B422: mov dword ptr [ecx + 8], esi */ 28926 esi = MEM32(edx); /* 0x3614B425: mov esi, dword ptr [edx] */ 28927 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B427: cmp esi, dword ptr [edi + 8] */ 28928 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 28929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28930 _flag_k = FK_CMP; 28931 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B42F; /* 0x3614B42A: je 0x3614b42f */ 28932 L_3614B42C: 28933 MEM32(esi + 0x4) = ecx; /* 0x3614B42C: mov dword ptr [esi + 4], ecx */ 28934 L_3614B42F: 28935 esi = MEM32(ecx + 0x4); /* 0x3614B42F: mov esi, dword ptr [ecx + 4] */ 28936 MEM32(edx + 0x4) = esi; /* 0x3614B432: mov dword ptr [edx + 4], esi */ 28937 esi = MEM32(edi + 0x4); /* 0x3614B435: mov esi, dword ptr [edi + 4] */ 28938 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B438: cmp ecx, dword ptr [esi + 4] */ 28939 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 28940 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28941 _flag_k = FK_CMP; 28942 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B442; /* 0x3614B43B: jne 0x3614b442 */ 28943 L_3614B43D: 28944 MEM32(esi + 0x4) = edx; /* 0x3614B43D: mov dword ptr [esi + 4], edx */ 28945 goto L_3614B450; /* 0x3614B440: jmp 0x3614b450 */ 28946 L_3614B442: 28947 esi = MEM32(ecx + 0x4); /* 0x3614B442: mov esi, dword ptr [ecx + 4] */ 28948 /* cmp ecx, MEM32(esi) */ /* 0x3614B445: cmp ecx, dword ptr [esi] */ 28949 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 28950 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28951 _flag_k = FK_CMP; 28952 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B44D; /* 0x3614B447: jne 0x3614b44d */ 28953 L_3614B449: 28954 MEM32(esi) = edx; /* 0x3614B449: mov dword ptr [esi], edx */ 28955 goto L_3614B450; /* 0x3614B44B: jmp 0x3614b450 */ 28956 L_3614B44D: 28957 MEM32(esi + 0x8) = edx; /* 0x3614B44D: mov dword ptr [esi + 8], edx */ 28958 L_3614B450: 28959 MEM32(edx) = ecx; /* 0x3614B450: mov dword ptr [edx], ecx */ 28960 MEM32(ecx + 0x4) = edx; /* 0x3614B452: mov dword ptr [ecx + 4], edx */ 28961 ecx = MEM32(eax + 0x4); /* 0x3614B455: mov ecx, dword ptr [eax + 4] */ 28962 ecx = MEM32(ecx + 0x8); /* 0x3614B458: mov ecx, dword ptr [ecx + 8] */ 28963 L_3614B45B: 28964 edx = MEM32(ecx); /* 0x3614B45B: mov edx, dword ptr [ecx] */ 28965 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B45D: cmp byte ptr [edx + 0x20], bl */ 28966 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 28967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28968 _flag_k = FK_NARROW(FK_CMP, 24); 28969 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4F6; /* 0x3614B460: jne 0x3614b4f6 */ 28970 L_3614B466: 28971 edx = MEM32(ecx + 0x8); /* 0x3614B466: mov edx, dword ptr [ecx + 8] */ 28972 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B469: cmp byte ptr [edx + 0x20], bl */ 28973 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 28974 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28975 _flag_k = FK_NARROW(FK_CMP, 24); 28976 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4F6; /* 0x3614B46C: jne 0x3614b4f6 */ 28977 L_3614B472: 28978 goto L_3614B4DE; /* 0x3614B472: jmp 0x3614b4de */ 28979 L_3614B474: 28980 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B474: mov dl, byte ptr [ecx + 0x20] */ 28981 /* test LO8(edx), LO8(edx) */ /* 0x3614B477: test dl, dl */ 28982 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 28983 _cf = 0; 28984 _flag_k = FK_NARROW(FK_TEST, 24); 28985 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B4C7; /* 0x3614B479: jne 0x3614b4c7 */ 28986 L_3614B47B: 28987 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B47B: mov byte ptr [ecx + 0x20], bl */ 28988 ecx = MEM32(eax + 0x4); /* 0x3614B47E: mov ecx, dword ptr [eax + 4] */ 28989 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B481: mov byte ptr [ecx + 0x20], 0 */ 28990 ecx = MEM32(eax + 0x4); /* 0x3614B485: mov ecx, dword ptr [eax + 4] */ 28991 edx = MEM32(ecx); /* 0x3614B488: mov edx, dword ptr [ecx] */ 28992 esi = MEM32(edx + 0x8); /* 0x3614B48A: mov esi, dword ptr [edx + 8] */ 28993 MEM32(ecx) = esi; /* 0x3614B48D: mov dword ptr [ecx], esi */ 28994 esi = MEM32(edx + 0x8); /* 0x3614B48F: mov esi, dword ptr [edx + 8] */ 28995 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B492: cmp esi, dword ptr [edi + 8] */ 28996 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 28997 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28998 _flag_k = FK_CMP; 28999 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B49A; /* 0x3614B495: je 0x3614b49a */ 29000 L_3614B497: 29001 MEM32(esi + 0x4) = ecx; /* 0x3614B497: mov dword ptr [esi + 4], ecx */ 29002 L_3614B49A: 29003 esi = MEM32(ecx + 0x4); /* 0x3614B49A: mov esi, dword ptr [ecx + 4] */ 29004 MEM32(edx + 0x4) = esi; /* 0x3614B49D: mov dword ptr [edx + 4], esi */ 29005 esi = MEM32(edi + 0x4); /* 0x3614B4A0: mov esi, dword ptr [edi + 4] */ 29006 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B4A3: cmp ecx, dword ptr [esi + 4] */ 29007 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 29008 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29009 _flag_k = FK_CMP; 29010 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4AD; /* 0x3614B4A6: jne 0x3614b4ad */ 29011 L_3614B4A8: 29012 MEM32(esi + 0x4) = edx; /* 0x3614B4A8: mov dword ptr [esi + 4], edx */ 29013 goto L_3614B4BC; /* 0x3614B4AB: jmp 0x3614b4bc */ 29014 L_3614B4AD: 29015 esi = MEM32(ecx + 0x4); /* 0x3614B4AD: mov esi, dword ptr [ecx + 4] */ 29016 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B4B0: cmp ecx, dword ptr [esi + 8] */ 29017 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 29018 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29019 _flag_k = FK_CMP; 29020 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4BA; /* 0x3614B4B3: jne 0x3614b4ba */ 29021 L_3614B4B5: 29022 MEM32(esi + 0x8) = edx; /* 0x3614B4B5: mov dword ptr [esi + 8], edx */ 29023 goto L_3614B4BC; /* 0x3614B4B8: jmp 0x3614b4bc */ 29024 L_3614B4BA: 29025 MEM32(esi) = edx; /* 0x3614B4BA: mov dword ptr [esi], edx */ 29026 L_3614B4BC: 29027 MEM32(edx + 0x8) = ecx; /* 0x3614B4BC: mov dword ptr [edx + 8], ecx */ 29028 MEM32(ecx + 0x4) = edx; /* 0x3614B4BF: mov dword ptr [ecx + 4], edx */ 29029 edx = MEM32(eax + 0x4); /* 0x3614B4C2: mov edx, dword ptr [eax + 4] */ 29030 ecx = MEM32(edx); /* 0x3614B4C5: mov ecx, dword ptr [edx] */ 29031 L_3614B4C7: 29032 edx = MEM32(ecx + 0x8); /* 0x3614B4C7: mov edx, dword ptr [ecx + 8] */ 29033 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4CA: cmp byte ptr [edx + 0x20], bl */ 29034 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 29035 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29036 _flag_k = FK_NARROW(FK_CMP, 24); 29037 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5A3; /* 0x3614B4CD: jne 0x3614b5a3 */ 29038 L_3614B4D3: 29039 edx = MEM32(ecx); /* 0x3614B4D3: mov edx, dword ptr [ecx] */ 29040 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4D5: cmp byte ptr [edx + 0x20], bl */ 29041 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 29042 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29043 _flag_k = FK_NARROW(FK_CMP, 24); 29044 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5A3; /* 0x3614B4D8: jne 0x3614b5a3 */ 29045 L_3614B4DE: 29046 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B4DE: mov byte ptr [ecx + 0x20], 0 */ 29047 ecx = MEM32(edi + 0x4); /* 0x3614B4E2: mov ecx, dword ptr [edi + 4] */ 29048 eax = MEM32(eax + 0x4); /* 0x3614B4E5: mov eax, dword ptr [eax + 4] */ 29049 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B4E8: cmp eax, dword ptr [ecx + 4] */ 29050 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 29051 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29052 _flag_k = FK_CMP; 29053 RECOMP_BACKEDGE(); 29054 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B3F4; /* 0x3614B4EB: jne 0x3614b3f4 */ 29055 L_3614B4F1: 29056 goto L_3614B642; /* 0x3614B4F1: jmp 0x3614b642 */ 29057 L_3614B4F6: 29058 edx = MEM32(ecx + 0x8); /* 0x3614B4F6: mov edx, dword ptr [ecx + 8] */ 29059 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4F9: cmp byte ptr [edx + 0x20], bl */ 29060 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 29061 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29062 _flag_k = FK_NARROW(FK_CMP, 24); 29063 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B547; /* 0x3614B4FC: jne 0x3614b547 */ 29064 L_3614B4FE: 29065 edx = MEM32(ecx); /* 0x3614B4FE: mov edx, dword ptr [ecx] */ 29066 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B500: mov byte ptr [edx + 0x20], bl */ 29067 edx = MEM32(ecx); /* 0x3614B503: mov edx, dword ptr [ecx] */ 29068 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B505: mov byte ptr [ecx + 0x20], 0 */ 29069 esi = MEM32(edx + 0x8); /* 0x3614B509: mov esi, dword ptr [edx + 8] */ 29070 MEM32(ecx) = esi; /* 0x3614B50C: mov dword ptr [ecx], esi */ 29071 esi = MEM32(edx + 0x8); /* 0x3614B50E: mov esi, dword ptr [edx + 8] */ 29072 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B511: cmp esi, dword ptr [edi + 8] */ 29073 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 29074 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29075 _flag_k = FK_CMP; 29076 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B519; /* 0x3614B514: je 0x3614b519 */ 29077 L_3614B516: 29078 MEM32(esi + 0x4) = ecx; /* 0x3614B516: mov dword ptr [esi + 4], ecx */ 29079 L_3614B519: 29080 esi = MEM32(ecx + 0x4); /* 0x3614B519: mov esi, dword ptr [ecx + 4] */ 29081 MEM32(edx + 0x4) = esi; /* 0x3614B51C: mov dword ptr [edx + 4], esi */ 29082 esi = MEM32(edi + 0x4); /* 0x3614B51F: mov esi, dword ptr [edi + 4] */ 29083 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B522: cmp ecx, dword ptr [esi + 4] */ 29084 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 29085 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29086 _flag_k = FK_CMP; 29087 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B52C; /* 0x3614B525: jne 0x3614b52c */ 29088 L_3614B527: 29089 MEM32(esi + 0x4) = edx; /* 0x3614B527: mov dword ptr [esi + 4], edx */ 29090 goto L_3614B53B; /* 0x3614B52A: jmp 0x3614b53b */ 29091 L_3614B52C: 29092 esi = MEM32(ecx + 0x4); /* 0x3614B52C: mov esi, dword ptr [ecx + 4] */ 29093 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B52F: cmp ecx, dword ptr [esi + 8] */ 29094 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 29095 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29096 _flag_k = FK_CMP; 29097 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B539; /* 0x3614B532: jne 0x3614b539 */ 29098 L_3614B534: 29099 MEM32(esi + 0x8) = edx; /* 0x3614B534: mov dword ptr [esi + 8], edx */ 29100 goto L_3614B53B; /* 0x3614B537: jmp 0x3614b53b */ 29101 L_3614B539: 29102 MEM32(esi) = edx; /* 0x3614B539: mov dword ptr [esi], edx */ 29103 L_3614B53B: 29104 MEM32(edx + 0x8) = ecx; /* 0x3614B53B: mov dword ptr [edx + 8], ecx */ 29105 MEM32(ecx + 0x4) = edx; /* 0x3614B53E: mov dword ptr [ecx + 4], edx */ 29106 ecx = MEM32(eax + 0x4); /* 0x3614B541: mov ecx, dword ptr [eax + 4] */ 29107 ecx = MEM32(ecx + 0x8); /* 0x3614B544: mov ecx, dword ptr [ecx + 8] */ 29108 L_3614B547: 29109 edx = MEM32(eax + 0x4); /* 0x3614B547: mov edx, dword ptr [eax + 4] */ 29110 SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3614B54A: mov dl, byte ptr [edx + 0x20] */ 29111 MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B54D: mov byte ptr [ecx + 0x20], dl */ 29112 edx = MEM32(eax + 0x4); /* 0x3614B550: mov edx, dword ptr [eax + 4] */ 29113 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B553: mov byte ptr [edx + 0x20], bl */ 29114 ecx = MEM32(ecx + 0x8); /* 0x3614B556: mov ecx, dword ptr [ecx + 8] */ 29115 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B559: mov byte ptr [ecx + 0x20], bl */ 29116 ecx = MEM32(eax + 0x4); /* 0x3614B55C: mov ecx, dword ptr [eax + 4] */ 29117 edx = MEM32(ecx + 0x8); /* 0x3614B55F: mov edx, dword ptr [ecx + 8] */ 29118 esi = MEM32(edx); /* 0x3614B562: mov esi, dword ptr [edx] */ 29119 MEM32(ecx + 0x8) = esi; /* 0x3614B564: mov dword ptr [ecx + 8], esi */ 29120 esi = MEM32(edx); /* 0x3614B567: mov esi, dword ptr [edx] */ 29121 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B569: cmp esi, dword ptr [edi + 8] */ 29122 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 29123 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29124 _flag_k = FK_CMP; 29125 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B571; /* 0x3614B56C: je 0x3614b571 */ 29126 L_3614B56E: 29127 MEM32(esi + 0x4) = ecx; /* 0x3614B56E: mov dword ptr [esi + 4], ecx */ 29128 L_3614B571: 29129 esi = MEM32(ecx + 0x4); /* 0x3614B571: mov esi, dword ptr [ecx + 4] */ 29130 MEM32(edx + 0x4) = esi; /* 0x3614B574: mov dword ptr [edx + 4], esi */ 29131 esi = MEM32(edi + 0x4); /* 0x3614B577: mov esi, dword ptr [edi + 4] */ 29132 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B57A: cmp ecx, dword ptr [esi + 4] */ 29133 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 29134 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29135 _flag_k = FK_CMP; 29136 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B589; /* 0x3614B57D: jne 0x3614b589 */ 29137 L_3614B57F: 29138 MEM32(esi + 0x4) = edx; /* 0x3614B57F: mov dword ptr [esi + 4], edx */ 29139 MEM32(edx) = ecx; /* 0x3614B582: mov dword ptr [edx], ecx */ 29140 goto L_3614B63F; /* 0x3614B584: jmp 0x3614b63f */ 29141 L_3614B589: 29142 esi = MEM32(ecx + 0x4); /* 0x3614B589: mov esi, dword ptr [ecx + 4] */ 29143 /* cmp ecx, MEM32(esi) */ /* 0x3614B58C: cmp ecx, dword ptr [esi] */ 29144 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 29145 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29146 _flag_k = FK_CMP; 29147 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B599; /* 0x3614B58E: jne 0x3614b599 */ 29148 L_3614B590: 29149 MEM32(esi) = edx; /* 0x3614B590: mov dword ptr [esi], edx */ 29150 MEM32(edx) = ecx; /* 0x3614B592: mov dword ptr [edx], ecx */ 29151 goto L_3614B63F; /* 0x3614B594: jmp 0x3614b63f */ 29152 L_3614B599: 29153 MEM32(esi + 0x8) = edx; /* 0x3614B599: mov dword ptr [esi + 8], edx */ 29154 MEM32(edx) = ecx; /* 0x3614B59C: mov dword ptr [edx], ecx */ 29155 goto L_3614B63F; /* 0x3614B59E: jmp 0x3614b63f */ 29156 L_3614B5A3: 29157 edx = MEM32(ecx); /* 0x3614B5A3: mov edx, dword ptr [ecx] */ 29158 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B5A5: cmp byte ptr [edx + 0x20], bl */ 29159 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 29160 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29161 _flag_k = FK_NARROW(FK_CMP, 24); 29162 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5F1; /* 0x3614B5A8: jne 0x3614b5f1 */ 29163 L_3614B5AA: 29164 edx = MEM32(ecx + 0x8); /* 0x3614B5AA: mov edx, dword ptr [ecx + 8] */ 29165 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B5AD: mov byte ptr [edx + 0x20], bl */ 29166 edx = MEM32(ecx + 0x8); /* 0x3614B5B0: mov edx, dword ptr [ecx + 8] */ 29167 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B5B3: mov byte ptr [ecx + 0x20], 0 */ 29168 esi = MEM32(edx); /* 0x3614B5B7: mov esi, dword ptr [edx] */ 29169 MEM32(ecx + 0x8) = esi; /* 0x3614B5B9: mov dword ptr [ecx + 8], esi */ 29170 esi = MEM32(edx); /* 0x3614B5BC: mov esi, dword ptr [edx] */ 29171 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B5BE: cmp esi, dword ptr [edi + 8] */ 29172 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 29173 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29174 _flag_k = FK_CMP; 29175 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B5C6; /* 0x3614B5C1: je 0x3614b5c6 */ 29176 L_3614B5C3: 29177 MEM32(esi + 0x4) = ecx; /* 0x3614B5C3: mov dword ptr [esi + 4], ecx */ 29178 L_3614B5C6: 29179 esi = MEM32(ecx + 0x4); /* 0x3614B5C6: mov esi, dword ptr [ecx + 4] */ 29180 MEM32(edx + 0x4) = esi; /* 0x3614B5C9: mov dword ptr [edx + 4], esi */ 29181 esi = MEM32(edi + 0x4); /* 0x3614B5CC: mov esi, dword ptr [edi + 4] */ 29182 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B5CF: cmp ecx, dword ptr [esi + 4] */ 29183 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 29184 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29185 _flag_k = FK_CMP; 29186 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5D9; /* 0x3614B5D2: jne 0x3614b5d9 */ 29187 L_3614B5D4: 29188 MEM32(esi + 0x4) = edx; /* 0x3614B5D4: mov dword ptr [esi + 4], edx */ 29189 goto L_3614B5E7; /* 0x3614B5D7: jmp 0x3614b5e7 */ 29190 L_3614B5D9: 29191 esi = MEM32(ecx + 0x4); /* 0x3614B5D9: mov esi, dword ptr [ecx + 4] */ 29192 /* cmp ecx, MEM32(esi) */ /* 0x3614B5DC: cmp ecx, dword ptr [esi] */ 29193 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 29194 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29195 _flag_k = FK_CMP; 29196 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5E4; /* 0x3614B5DE: jne 0x3614b5e4 */ 29197 L_3614B5E0: 29198 MEM32(esi) = edx; /* 0x3614B5E0: mov dword ptr [esi], edx */ 29199 goto L_3614B5E7; /* 0x3614B5E2: jmp 0x3614b5e7 */ 29200 L_3614B5E4: 29201 MEM32(esi + 0x8) = edx; /* 0x3614B5E4: mov dword ptr [esi + 8], edx */ 29202 L_3614B5E7: 29203 MEM32(edx) = ecx; /* 0x3614B5E7: mov dword ptr [edx], ecx */ 29204 MEM32(ecx + 0x4) = edx; /* 0x3614B5E9: mov dword ptr [ecx + 4], edx */ 29205 ecx = MEM32(eax + 0x4); /* 0x3614B5EC: mov ecx, dword ptr [eax + 4] */ 29206 ecx = MEM32(ecx); /* 0x3614B5EF: mov ecx, dword ptr [ecx] */ 29207 L_3614B5F1: 29208 edx = MEM32(eax + 0x4); /* 0x3614B5F1: mov edx, dword ptr [eax + 4] */ 29209 SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3614B5F4: mov dl, byte ptr [edx + 0x20] */ 29210 MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B5F7: mov byte ptr [ecx + 0x20], dl */ 29211 edx = MEM32(eax + 0x4); /* 0x3614B5FA: mov edx, dword ptr [eax + 4] */ 29212 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B5FD: mov byte ptr [edx + 0x20], bl */ 29213 ecx = MEM32(ecx); /* 0x3614B600: mov ecx, dword ptr [ecx] */ 29214 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B602: mov byte ptr [ecx + 0x20], bl */ 29215 ecx = MEM32(eax + 0x4); /* 0x3614B605: mov ecx, dword ptr [eax + 4] */ 29216 edx = MEM32(ecx); /* 0x3614B608: mov edx, dword ptr [ecx] */ 29217 esi = MEM32(edx + 0x8); /* 0x3614B60A: mov esi, dword ptr [edx + 8] */ 29218 MEM32(ecx) = esi; /* 0x3614B60D: mov dword ptr [ecx], esi */ 29219 esi = MEM32(edx + 0x8); /* 0x3614B60F: mov esi, dword ptr [edx + 8] */ 29220 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B612: cmp esi, dword ptr [edi + 8] */ 29221 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 29222 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29223 _flag_k = FK_CMP; 29224 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B61A; /* 0x3614B615: je 0x3614b61a */ 29225 L_3614B617: 29226 MEM32(esi + 0x4) = ecx; /* 0x3614B617: mov dword ptr [esi + 4], ecx */ 29227 L_3614B61A: 29228 esi = MEM32(ecx + 0x4); /* 0x3614B61A: mov esi, dword ptr [ecx + 4] */ 29229 MEM32(edx + 0x4) = esi; /* 0x3614B61D: mov dword ptr [edx + 4], esi */ 29230 esi = MEM32(edi + 0x4); /* 0x3614B620: mov esi, dword ptr [edi + 4] */ 29231 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B623: cmp ecx, dword ptr [esi + 4] */ 29232 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 29233 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29234 _flag_k = FK_CMP; 29235 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B62D; /* 0x3614B626: jne 0x3614b62d */ 29236 L_3614B628: 29237 MEM32(esi + 0x4) = edx; /* 0x3614B628: mov dword ptr [esi + 4], edx */ 29238 goto L_3614B63C; /* 0x3614B62B: jmp 0x3614b63c */ 29239 L_3614B62D: 29240 esi = MEM32(ecx + 0x4); /* 0x3614B62D: mov esi, dword ptr [ecx + 4] */ 29241 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B630: cmp ecx, dword ptr [esi + 8] */ 29242 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 29243 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29244 _flag_k = FK_CMP; 29245 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B63A; /* 0x3614B633: jne 0x3614b63a */ 29246 L_3614B635: 29247 MEM32(esi + 0x8) = edx; /* 0x3614B635: mov dword ptr [esi + 8], edx */ 29248 goto L_3614B63C; /* 0x3614B638: jmp 0x3614b63c */ 29249 L_3614B63A: 29250 MEM32(esi) = edx; /* 0x3614B63A: mov dword ptr [esi], edx */ 29251 L_3614B63C: 29252 MEM32(edx + 0x8) = ecx; /* 0x3614B63C: mov dword ptr [edx + 8], ecx */ 29253 L_3614B63F: 29254 MEM32(ecx + 0x4) = edx; /* 0x3614B63F: mov dword ptr [ecx + 4], edx */ 29255 L_3614B642: 29256 esi = MEM32(ebp + (-0x4)); /* 0x3614B642: mov esi, dword ptr [ebp - 4] */ 29257 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B645: mov byte ptr [eax + 0x20], bl */ 29258 ecx = esi + 0xC; /* 0x3614B648: lea ecx, [esi + 0xc] */ 29259 RECOMP_ICALL(0x3614AFC0u); /* 0x3614B64B: call 0x3614afc0 */ /* not lifted */ 29260 RECOMP_FLAGS_IN(); 29261 PUSH32(esp, esi); /* 0x3614B650: push esi */ 29262 RECOMP_ICALL(0x3615FCC4u); /* 0x3614B651: call 0x3615fcc4 */ /* not lifted */ 29263 RECOMP_FLAGS_IN(); 29264 eax = MEM32(edi + 0x10); /* 0x3614B656: mov eax, dword ptr [edi + 0x10] */ 29265 edx = MEM32(ebp + 0xC); /* 0x3614B659: mov edx, dword ptr [ebp + 0xc] */ 29266 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 29267 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29268 esp = esp + 4; /* 0x3614B65C: add esp, 4 */ 29269 _flag_k = FK_ADD; 29270 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 29271 eax = eax - 1; /* 0x3614B65F: dec eax */ 29272 _flag_k = FK_DEC; 29273 MEM32(edi + 0x10) = eax; /* 0x3614B660: mov dword ptr [edi + 0x10], eax */ 29274 eax = MEM32(ebp + 0x8); /* 0x3614B663: mov eax, dword ptr [ebp + 8] */ 29275 edi = POP32_VAL(esp); /* 0x3614B666: pop edi */ 29276 esi = POP32_VAL(esp); /* 0x3614B667: pop esi */ 29277 MEM32(eax) = edx; /* 0x3614B668: mov dword ptr [eax], edx */ 29278 ebx = POP32_VAL(esp); /* 0x3614B66A: pop ebx */ 29279 esp = ebp; /* 0x3614B66B: mov esp, ebp */ 29280 ebp = POP32_VAL(esp); /* 0x3614B66D: pop ebp */ 29281 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614B66E: ret 8 */ 29282 RECOMP_REGS_OUT(); 29283 } 29284 29285 void sub_3614B4C7(void) { 29286 int _fpu_cmp = 0; 29287 uint32_t _cf = 0; 29288 int _df = 1; 29289 uint32_t _flag_k = FK_NONE; 29290 uint32_t _flag_a = 0, _flag_b = 0; 29291 uint32_t _itail_tgt = 0; 29292 RECOMP_REGS_LOCALS 29293 RECOMP_ENTER(0x3614B4C7u); 29294 29295 goto L_3614B4C7; 29296 L_3614B3F4: 29297 /* cmp MEM8(eax + 0x20), LO8(ebx) */ /* 0x3614B3F4: cmp byte ptr [eax + 0x20], bl */ 29298 _flag_a = (uint32_t)(MEM8(eax + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 29299 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29300 _flag_k = FK_NARROW(FK_CMP, 24); 29301 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B642; /* 0x3614B3F7: jne 0x3614b642 */ 29302 L_3614B3FD: 29303 edx = MEM32(eax + 0x4); /* 0x3614B3FD: mov edx, dword ptr [eax + 4] */ 29304 ecx = MEM32(edx); /* 0x3614B400: mov ecx, dword ptr [edx] */ 29305 /* cmp eax, ecx */ /* 0x3614B402: cmp eax, ecx */ 29306 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 29307 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29308 _flag_k = FK_CMP; 29309 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B474; /* 0x3614B404: jne 0x3614b474 */ 29310 L_3614B406: 29311 ecx = MEM32(edx + 0x8); /* 0x3614B406: mov ecx, dword ptr [edx + 8] */ 29312 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B409: mov dl, byte ptr [ecx + 0x20] */ 29313 /* test LO8(edx), LO8(edx) */ /* 0x3614B40C: test dl, dl */ 29314 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 29315 _cf = 0; 29316 _flag_k = FK_NARROW(FK_TEST, 24); 29317 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B45B; /* 0x3614B40E: jne 0x3614b45b */ 29318 L_3614B410: 29319 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B410: mov byte ptr [ecx + 0x20], bl */ 29320 edx = MEM32(eax + 0x4); /* 0x3614B413: mov edx, dword ptr [eax + 4] */ 29321 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x3614B416: mov byte ptr [edx + 0x20], 0 */ 29322 ecx = MEM32(eax + 0x4); /* 0x3614B41A: mov ecx, dword ptr [eax + 4] */ 29323 edx = MEM32(ecx + 0x8); /* 0x3614B41D: mov edx, dword ptr [ecx + 8] */ 29324 esi = MEM32(edx); /* 0x3614B420: mov esi, dword ptr [edx] */ 29325 MEM32(ecx + 0x8) = esi; /* 0x3614B422: mov dword ptr [ecx + 8], esi */ 29326 esi = MEM32(edx); /* 0x3614B425: mov esi, dword ptr [edx] */ 29327 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B427: cmp esi, dword ptr [edi + 8] */ 29328 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 29329 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29330 _flag_k = FK_CMP; 29331 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B42F; /* 0x3614B42A: je 0x3614b42f */ 29332 L_3614B42C: 29333 MEM32(esi + 0x4) = ecx; /* 0x3614B42C: mov dword ptr [esi + 4], ecx */ 29334 L_3614B42F: 29335 esi = MEM32(ecx + 0x4); /* 0x3614B42F: mov esi, dword ptr [ecx + 4] */ 29336 MEM32(edx + 0x4) = esi; /* 0x3614B432: mov dword ptr [edx + 4], esi */ 29337 esi = MEM32(edi + 0x4); /* 0x3614B435: mov esi, dword ptr [edi + 4] */ 29338 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B438: cmp ecx, dword ptr [esi + 4] */ 29339 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 29340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29341 _flag_k = FK_CMP; 29342 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B442; /* 0x3614B43B: jne 0x3614b442 */ 29343 L_3614B43D: 29344 MEM32(esi + 0x4) = edx; /* 0x3614B43D: mov dword ptr [esi + 4], edx */ 29345 goto L_3614B450; /* 0x3614B440: jmp 0x3614b450 */ 29346 L_3614B442: 29347 esi = MEM32(ecx + 0x4); /* 0x3614B442: mov esi, dword ptr [ecx + 4] */ 29348 /* cmp ecx, MEM32(esi) */ /* 0x3614B445: cmp ecx, dword ptr [esi] */ 29349 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 29350 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29351 _flag_k = FK_CMP; 29352 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B44D; /* 0x3614B447: jne 0x3614b44d */ 29353 L_3614B449: 29354 MEM32(esi) = edx; /* 0x3614B449: mov dword ptr [esi], edx */ 29355 goto L_3614B450; /* 0x3614B44B: jmp 0x3614b450 */ 29356 L_3614B44D: 29357 MEM32(esi + 0x8) = edx; /* 0x3614B44D: mov dword ptr [esi + 8], edx */ 29358 L_3614B450: 29359 MEM32(edx) = ecx; /* 0x3614B450: mov dword ptr [edx], ecx */ 29360 MEM32(ecx + 0x4) = edx; /* 0x3614B452: mov dword ptr [ecx + 4], edx */ 29361 ecx = MEM32(eax + 0x4); /* 0x3614B455: mov ecx, dword ptr [eax + 4] */ 29362 ecx = MEM32(ecx + 0x8); /* 0x3614B458: mov ecx, dword ptr [ecx + 8] */ 29363 L_3614B45B: 29364 edx = MEM32(ecx); /* 0x3614B45B: mov edx, dword ptr [ecx] */ 29365 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B45D: cmp byte ptr [edx + 0x20], bl */ 29366 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 29367 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29368 _flag_k = FK_NARROW(FK_CMP, 24); 29369 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4F6; /* 0x3614B460: jne 0x3614b4f6 */ 29370 L_3614B466: 29371 edx = MEM32(ecx + 0x8); /* 0x3614B466: mov edx, dword ptr [ecx + 8] */ 29372 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B469: cmp byte ptr [edx + 0x20], bl */ 29373 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 29374 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29375 _flag_k = FK_NARROW(FK_CMP, 24); 29376 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4F6; /* 0x3614B46C: jne 0x3614b4f6 */ 29377 L_3614B472: 29378 goto L_3614B4DE; /* 0x3614B472: jmp 0x3614b4de */ 29379 L_3614B474: 29380 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B474: mov dl, byte ptr [ecx + 0x20] */ 29381 /* test LO8(edx), LO8(edx) */ /* 0x3614B477: test dl, dl */ 29382 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 29383 _cf = 0; 29384 _flag_k = FK_NARROW(FK_TEST, 24); 29385 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B4C7; /* 0x3614B479: jne 0x3614b4c7 */ 29386 L_3614B47B: 29387 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B47B: mov byte ptr [ecx + 0x20], bl */ 29388 ecx = MEM32(eax + 0x4); /* 0x3614B47E: mov ecx, dword ptr [eax + 4] */ 29389 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B481: mov byte ptr [ecx + 0x20], 0 */ 29390 ecx = MEM32(eax + 0x4); /* 0x3614B485: mov ecx, dword ptr [eax + 4] */ 29391 edx = MEM32(ecx); /* 0x3614B488: mov edx, dword ptr [ecx] */ 29392 esi = MEM32(edx + 0x8); /* 0x3614B48A: mov esi, dword ptr [edx + 8] */ 29393 MEM32(ecx) = esi; /* 0x3614B48D: mov dword ptr [ecx], esi */ 29394 esi = MEM32(edx + 0x8); /* 0x3614B48F: mov esi, dword ptr [edx + 8] */ 29395 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B492: cmp esi, dword ptr [edi + 8] */ 29396 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 29397 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29398 _flag_k = FK_CMP; 29399 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B49A; /* 0x3614B495: je 0x3614b49a */ 29400 L_3614B497: 29401 MEM32(esi + 0x4) = ecx; /* 0x3614B497: mov dword ptr [esi + 4], ecx */ 29402 L_3614B49A: 29403 esi = MEM32(ecx + 0x4); /* 0x3614B49A: mov esi, dword ptr [ecx + 4] */ 29404 MEM32(edx + 0x4) = esi; /* 0x3614B49D: mov dword ptr [edx + 4], esi */ 29405 esi = MEM32(edi + 0x4); /* 0x3614B4A0: mov esi, dword ptr [edi + 4] */ 29406 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B4A3: cmp ecx, dword ptr [esi + 4] */ 29407 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 29408 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29409 _flag_k = FK_CMP; 29410 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4AD; /* 0x3614B4A6: jne 0x3614b4ad */ 29411 L_3614B4A8: 29412 MEM32(esi + 0x4) = edx; /* 0x3614B4A8: mov dword ptr [esi + 4], edx */ 29413 goto L_3614B4BC; /* 0x3614B4AB: jmp 0x3614b4bc */ 29414 L_3614B4AD: 29415 esi = MEM32(ecx + 0x4); /* 0x3614B4AD: mov esi, dword ptr [ecx + 4] */ 29416 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B4B0: cmp ecx, dword ptr [esi + 8] */ 29417 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 29418 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29419 _flag_k = FK_CMP; 29420 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4BA; /* 0x3614B4B3: jne 0x3614b4ba */ 29421 L_3614B4B5: 29422 MEM32(esi + 0x8) = edx; /* 0x3614B4B5: mov dword ptr [esi + 8], edx */ 29423 goto L_3614B4BC; /* 0x3614B4B8: jmp 0x3614b4bc */ 29424 L_3614B4BA: 29425 MEM32(esi) = edx; /* 0x3614B4BA: mov dword ptr [esi], edx */ 29426 L_3614B4BC: 29427 MEM32(edx + 0x8) = ecx; /* 0x3614B4BC: mov dword ptr [edx + 8], ecx */ 29428 MEM32(ecx + 0x4) = edx; /* 0x3614B4BF: mov dword ptr [ecx + 4], edx */ 29429 edx = MEM32(eax + 0x4); /* 0x3614B4C2: mov edx, dword ptr [eax + 4] */ 29430 ecx = MEM32(edx); /* 0x3614B4C5: mov ecx, dword ptr [edx] */ 29431 L_3614B4C7: 29432 edx = MEM32(ecx + 0x8); /* 0x3614B4C7: mov edx, dword ptr [ecx + 8] */ 29433 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4CA: cmp byte ptr [edx + 0x20], bl */ 29434 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 29435 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29436 _flag_k = FK_NARROW(FK_CMP, 24); 29437 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5A3; /* 0x3614B4CD: jne 0x3614b5a3 */ 29438 L_3614B4D3: 29439 edx = MEM32(ecx); /* 0x3614B4D3: mov edx, dword ptr [ecx] */ 29440 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4D5: cmp byte ptr [edx + 0x20], bl */ 29441 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 29442 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29443 _flag_k = FK_NARROW(FK_CMP, 24); 29444 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5A3; /* 0x3614B4D8: jne 0x3614b5a3 */ 29445 L_3614B4DE: 29446 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B4DE: mov byte ptr [ecx + 0x20], 0 */ 29447 ecx = MEM32(edi + 0x4); /* 0x3614B4E2: mov ecx, dword ptr [edi + 4] */ 29448 eax = MEM32(eax + 0x4); /* 0x3614B4E5: mov eax, dword ptr [eax + 4] */ 29449 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B4E8: cmp eax, dword ptr [ecx + 4] */ 29450 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 29451 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29452 _flag_k = FK_CMP; 29453 RECOMP_BACKEDGE(); 29454 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B3F4; /* 0x3614B4EB: jne 0x3614b3f4 */ 29455 L_3614B4F1: 29456 goto L_3614B642; /* 0x3614B4F1: jmp 0x3614b642 */ 29457 L_3614B4F6: 29458 edx = MEM32(ecx + 0x8); /* 0x3614B4F6: mov edx, dword ptr [ecx + 8] */ 29459 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4F9: cmp byte ptr [edx + 0x20], bl */ 29460 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 29461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29462 _flag_k = FK_NARROW(FK_CMP, 24); 29463 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B547; /* 0x3614B4FC: jne 0x3614b547 */ 29464 L_3614B4FE: 29465 edx = MEM32(ecx); /* 0x3614B4FE: mov edx, dword ptr [ecx] */ 29466 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B500: mov byte ptr [edx + 0x20], bl */ 29467 edx = MEM32(ecx); /* 0x3614B503: mov edx, dword ptr [ecx] */ 29468 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B505: mov byte ptr [ecx + 0x20], 0 */ 29469 esi = MEM32(edx + 0x8); /* 0x3614B509: mov esi, dword ptr [edx + 8] */ 29470 MEM32(ecx) = esi; /* 0x3614B50C: mov dword ptr [ecx], esi */ 29471 esi = MEM32(edx + 0x8); /* 0x3614B50E: mov esi, dword ptr [edx + 8] */ 29472 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B511: cmp esi, dword ptr [edi + 8] */ 29473 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 29474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29475 _flag_k = FK_CMP; 29476 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B519; /* 0x3614B514: je 0x3614b519 */ 29477 L_3614B516: 29478 MEM32(esi + 0x4) = ecx; /* 0x3614B516: mov dword ptr [esi + 4], ecx */ 29479 L_3614B519: 29480 esi = MEM32(ecx + 0x4); /* 0x3614B519: mov esi, dword ptr [ecx + 4] */ 29481 MEM32(edx + 0x4) = esi; /* 0x3614B51C: mov dword ptr [edx + 4], esi */ 29482 esi = MEM32(edi + 0x4); /* 0x3614B51F: mov esi, dword ptr [edi + 4] */ 29483 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B522: cmp ecx, dword ptr [esi + 4] */ 29484 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 29485 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29486 _flag_k = FK_CMP; 29487 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B52C; /* 0x3614B525: jne 0x3614b52c */ 29488 L_3614B527: 29489 MEM32(esi + 0x4) = edx; /* 0x3614B527: mov dword ptr [esi + 4], edx */ 29490 goto L_3614B53B; /* 0x3614B52A: jmp 0x3614b53b */ 29491 L_3614B52C: 29492 esi = MEM32(ecx + 0x4); /* 0x3614B52C: mov esi, dword ptr [ecx + 4] */ 29493 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B52F: cmp ecx, dword ptr [esi + 8] */ 29494 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 29495 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29496 _flag_k = FK_CMP; 29497 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B539; /* 0x3614B532: jne 0x3614b539 */ 29498 L_3614B534: 29499 MEM32(esi + 0x8) = edx; /* 0x3614B534: mov dword ptr [esi + 8], edx */ 29500 goto L_3614B53B; /* 0x3614B537: jmp 0x3614b53b */ 29501 L_3614B539: 29502 MEM32(esi) = edx; /* 0x3614B539: mov dword ptr [esi], edx */ 29503 L_3614B53B: 29504 MEM32(edx + 0x8) = ecx; /* 0x3614B53B: mov dword ptr [edx + 8], ecx */ 29505 MEM32(ecx + 0x4) = edx; /* 0x3614B53E: mov dword ptr [ecx + 4], edx */ 29506 ecx = MEM32(eax + 0x4); /* 0x3614B541: mov ecx, dword ptr [eax + 4] */ 29507 ecx = MEM32(ecx + 0x8); /* 0x3614B544: mov ecx, dword ptr [ecx + 8] */ 29508 L_3614B547: 29509 edx = MEM32(eax + 0x4); /* 0x3614B547: mov edx, dword ptr [eax + 4] */ 29510 SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3614B54A: mov dl, byte ptr [edx + 0x20] */ 29511 MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B54D: mov byte ptr [ecx + 0x20], dl */ 29512 edx = MEM32(eax + 0x4); /* 0x3614B550: mov edx, dword ptr [eax + 4] */ 29513 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B553: mov byte ptr [edx + 0x20], bl */ 29514 ecx = MEM32(ecx + 0x8); /* 0x3614B556: mov ecx, dword ptr [ecx + 8] */ 29515 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B559: mov byte ptr [ecx + 0x20], bl */ 29516 ecx = MEM32(eax + 0x4); /* 0x3614B55C: mov ecx, dword ptr [eax + 4] */ 29517 edx = MEM32(ecx + 0x8); /* 0x3614B55F: mov edx, dword ptr [ecx + 8] */ 29518 esi = MEM32(edx); /* 0x3614B562: mov esi, dword ptr [edx] */ 29519 MEM32(ecx + 0x8) = esi; /* 0x3614B564: mov dword ptr [ecx + 8], esi */ 29520 esi = MEM32(edx); /* 0x3614B567: mov esi, dword ptr [edx] */ 29521 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B569: cmp esi, dword ptr [edi + 8] */ 29522 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 29523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29524 _flag_k = FK_CMP; 29525 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B571; /* 0x3614B56C: je 0x3614b571 */ 29526 L_3614B56E: 29527 MEM32(esi + 0x4) = ecx; /* 0x3614B56E: mov dword ptr [esi + 4], ecx */ 29528 L_3614B571: 29529 esi = MEM32(ecx + 0x4); /* 0x3614B571: mov esi, dword ptr [ecx + 4] */ 29530 MEM32(edx + 0x4) = esi; /* 0x3614B574: mov dword ptr [edx + 4], esi */ 29531 esi = MEM32(edi + 0x4); /* 0x3614B577: mov esi, dword ptr [edi + 4] */ 29532 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B57A: cmp ecx, dword ptr [esi + 4] */ 29533 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 29534 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29535 _flag_k = FK_CMP; 29536 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B589; /* 0x3614B57D: jne 0x3614b589 */ 29537 L_3614B57F: 29538 MEM32(esi + 0x4) = edx; /* 0x3614B57F: mov dword ptr [esi + 4], edx */ 29539 MEM32(edx) = ecx; /* 0x3614B582: mov dword ptr [edx], ecx */ 29540 goto L_3614B63F; /* 0x3614B584: jmp 0x3614b63f */ 29541 L_3614B589: 29542 esi = MEM32(ecx + 0x4); /* 0x3614B589: mov esi, dword ptr [ecx + 4] */ 29543 /* cmp ecx, MEM32(esi) */ /* 0x3614B58C: cmp ecx, dword ptr [esi] */ 29544 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 29545 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29546 _flag_k = FK_CMP; 29547 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B599; /* 0x3614B58E: jne 0x3614b599 */ 29548 L_3614B590: 29549 MEM32(esi) = edx; /* 0x3614B590: mov dword ptr [esi], edx */ 29550 MEM32(edx) = ecx; /* 0x3614B592: mov dword ptr [edx], ecx */ 29551 goto L_3614B63F; /* 0x3614B594: jmp 0x3614b63f */ 29552 L_3614B599: 29553 MEM32(esi + 0x8) = edx; /* 0x3614B599: mov dword ptr [esi + 8], edx */ 29554 MEM32(edx) = ecx; /* 0x3614B59C: mov dword ptr [edx], ecx */ 29555 goto L_3614B63F; /* 0x3614B59E: jmp 0x3614b63f */ 29556 L_3614B5A3: 29557 edx = MEM32(ecx); /* 0x3614B5A3: mov edx, dword ptr [ecx] */ 29558 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B5A5: cmp byte ptr [edx + 0x20], bl */ 29559 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 29560 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29561 _flag_k = FK_NARROW(FK_CMP, 24); 29562 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5F1; /* 0x3614B5A8: jne 0x3614b5f1 */ 29563 L_3614B5AA: 29564 edx = MEM32(ecx + 0x8); /* 0x3614B5AA: mov edx, dword ptr [ecx + 8] */ 29565 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B5AD: mov byte ptr [edx + 0x20], bl */ 29566 edx = MEM32(ecx + 0x8); /* 0x3614B5B0: mov edx, dword ptr [ecx + 8] */ 29567 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B5B3: mov byte ptr [ecx + 0x20], 0 */ 29568 esi = MEM32(edx); /* 0x3614B5B7: mov esi, dword ptr [edx] */ 29569 MEM32(ecx + 0x8) = esi; /* 0x3614B5B9: mov dword ptr [ecx + 8], esi */ 29570 esi = MEM32(edx); /* 0x3614B5BC: mov esi, dword ptr [edx] */ 29571 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B5BE: cmp esi, dword ptr [edi + 8] */ 29572 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 29573 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29574 _flag_k = FK_CMP; 29575 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B5C6; /* 0x3614B5C1: je 0x3614b5c6 */ 29576 L_3614B5C3: 29577 MEM32(esi + 0x4) = ecx; /* 0x3614B5C3: mov dword ptr [esi + 4], ecx */ 29578 L_3614B5C6: 29579 esi = MEM32(ecx + 0x4); /* 0x3614B5C6: mov esi, dword ptr [ecx + 4] */ 29580 MEM32(edx + 0x4) = esi; /* 0x3614B5C9: mov dword ptr [edx + 4], esi */ 29581 esi = MEM32(edi + 0x4); /* 0x3614B5CC: mov esi, dword ptr [edi + 4] */ 29582 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B5CF: cmp ecx, dword ptr [esi + 4] */ 29583 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 29584 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29585 _flag_k = FK_CMP; 29586 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5D9; /* 0x3614B5D2: jne 0x3614b5d9 */ 29587 L_3614B5D4: 29588 MEM32(esi + 0x4) = edx; /* 0x3614B5D4: mov dword ptr [esi + 4], edx */ 29589 goto L_3614B5E7; /* 0x3614B5D7: jmp 0x3614b5e7 */ 29590 L_3614B5D9: 29591 esi = MEM32(ecx + 0x4); /* 0x3614B5D9: mov esi, dword ptr [ecx + 4] */ 29592 /* cmp ecx, MEM32(esi) */ /* 0x3614B5DC: cmp ecx, dword ptr [esi] */ 29593 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 29594 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29595 _flag_k = FK_CMP; 29596 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5E4; /* 0x3614B5DE: jne 0x3614b5e4 */ 29597 L_3614B5E0: 29598 MEM32(esi) = edx; /* 0x3614B5E0: mov dword ptr [esi], edx */ 29599 goto L_3614B5E7; /* 0x3614B5E2: jmp 0x3614b5e7 */ 29600 L_3614B5E4: 29601 MEM32(esi + 0x8) = edx; /* 0x3614B5E4: mov dword ptr [esi + 8], edx */ 29602 L_3614B5E7: 29603 MEM32(edx) = ecx; /* 0x3614B5E7: mov dword ptr [edx], ecx */ 29604 MEM32(ecx + 0x4) = edx; /* 0x3614B5E9: mov dword ptr [ecx + 4], edx */ 29605 ecx = MEM32(eax + 0x4); /* 0x3614B5EC: mov ecx, dword ptr [eax + 4] */ 29606 ecx = MEM32(ecx); /* 0x3614B5EF: mov ecx, dword ptr [ecx] */ 29607 L_3614B5F1: 29608 edx = MEM32(eax + 0x4); /* 0x3614B5F1: mov edx, dword ptr [eax + 4] */ 29609 SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3614B5F4: mov dl, byte ptr [edx + 0x20] */ 29610 MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B5F7: mov byte ptr [ecx + 0x20], dl */ 29611 edx = MEM32(eax + 0x4); /* 0x3614B5FA: mov edx, dword ptr [eax + 4] */ 29612 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B5FD: mov byte ptr [edx + 0x20], bl */ 29613 ecx = MEM32(ecx); /* 0x3614B600: mov ecx, dword ptr [ecx] */ 29614 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B602: mov byte ptr [ecx + 0x20], bl */ 29615 ecx = MEM32(eax + 0x4); /* 0x3614B605: mov ecx, dword ptr [eax + 4] */ 29616 edx = MEM32(ecx); /* 0x3614B608: mov edx, dword ptr [ecx] */ 29617 esi = MEM32(edx + 0x8); /* 0x3614B60A: mov esi, dword ptr [edx + 8] */ 29618 MEM32(ecx) = esi; /* 0x3614B60D: mov dword ptr [ecx], esi */ 29619 esi = MEM32(edx + 0x8); /* 0x3614B60F: mov esi, dword ptr [edx + 8] */ 29620 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B612: cmp esi, dword ptr [edi + 8] */ 29621 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 29622 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29623 _flag_k = FK_CMP; 29624 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B61A; /* 0x3614B615: je 0x3614b61a */ 29625 L_3614B617: 29626 MEM32(esi + 0x4) = ecx; /* 0x3614B617: mov dword ptr [esi + 4], ecx */ 29627 L_3614B61A: 29628 esi = MEM32(ecx + 0x4); /* 0x3614B61A: mov esi, dword ptr [ecx + 4] */ 29629 MEM32(edx + 0x4) = esi; /* 0x3614B61D: mov dword ptr [edx + 4], esi */ 29630 esi = MEM32(edi + 0x4); /* 0x3614B620: mov esi, dword ptr [edi + 4] */ 29631 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B623: cmp ecx, dword ptr [esi + 4] */ 29632 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 29633 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29634 _flag_k = FK_CMP; 29635 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B62D; /* 0x3614B626: jne 0x3614b62d */ 29636 L_3614B628: 29637 MEM32(esi + 0x4) = edx; /* 0x3614B628: mov dword ptr [esi + 4], edx */ 29638 goto L_3614B63C; /* 0x3614B62B: jmp 0x3614b63c */ 29639 L_3614B62D: 29640 esi = MEM32(ecx + 0x4); /* 0x3614B62D: mov esi, dword ptr [ecx + 4] */ 29641 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B630: cmp ecx, dword ptr [esi + 8] */ 29642 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 29643 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29644 _flag_k = FK_CMP; 29645 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B63A; /* 0x3614B633: jne 0x3614b63a */ 29646 L_3614B635: 29647 MEM32(esi + 0x8) = edx; /* 0x3614B635: mov dword ptr [esi + 8], edx */ 29648 goto L_3614B63C; /* 0x3614B638: jmp 0x3614b63c */ 29649 L_3614B63A: 29650 MEM32(esi) = edx; /* 0x3614B63A: mov dword ptr [esi], edx */ 29651 L_3614B63C: 29652 MEM32(edx + 0x8) = ecx; /* 0x3614B63C: mov dword ptr [edx + 8], ecx */ 29653 L_3614B63F: 29654 MEM32(ecx + 0x4) = edx; /* 0x3614B63F: mov dword ptr [ecx + 4], edx */ 29655 L_3614B642: 29656 esi = MEM32(ebp + (-0x4)); /* 0x3614B642: mov esi, dword ptr [ebp - 4] */ 29657 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B645: mov byte ptr [eax + 0x20], bl */ 29658 ecx = esi + 0xC; /* 0x3614B648: lea ecx, [esi + 0xc] */ 29659 RECOMP_ICALL(0x3614AFC0u); /* 0x3614B64B: call 0x3614afc0 */ /* not lifted */ 29660 RECOMP_FLAGS_IN(); 29661 PUSH32(esp, esi); /* 0x3614B650: push esi */ 29662 RECOMP_ICALL(0x3615FCC4u); /* 0x3614B651: call 0x3615fcc4 */ /* not lifted */ 29663 RECOMP_FLAGS_IN(); 29664 eax = MEM32(edi + 0x10); /* 0x3614B656: mov eax, dword ptr [edi + 0x10] */ 29665 edx = MEM32(ebp + 0xC); /* 0x3614B659: mov edx, dword ptr [ebp + 0xc] */ 29666 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 29667 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 29668 esp = esp + 4; /* 0x3614B65C: add esp, 4 */ 29669 _flag_k = FK_ADD; 29670 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 29671 eax = eax - 1; /* 0x3614B65F: dec eax */ 29672 _flag_k = FK_DEC; 29673 MEM32(edi + 0x10) = eax; /* 0x3614B660: mov dword ptr [edi + 0x10], eax */ 29674 eax = MEM32(ebp + 0x8); /* 0x3614B663: mov eax, dword ptr [ebp + 8] */ 29675 edi = POP32_VAL(esp); /* 0x3614B666: pop edi */ 29676 esi = POP32_VAL(esp); /* 0x3614B667: pop esi */ 29677 MEM32(eax) = edx; /* 0x3614B668: mov dword ptr [eax], edx */ 29678 ebx = POP32_VAL(esp); /* 0x3614B66A: pop ebx */ 29679 esp = ebp; /* 0x3614B66B: mov esp, ebp */ 29680 ebp = POP32_VAL(esp); /* 0x3614B66D: pop ebp */ 29681 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614B66E: ret 8 */ 29682 RECOMP_REGS_OUT(); 29683 } 29684 29685 void sub_3614B4DE(void) { 29686 int _fpu_cmp = 0; 29687 uint32_t _cf = 0; 29688 int _df = 1; 29689 uint32_t _flag_k = FK_NONE; 29690 uint32_t _flag_a = 0, _flag_b = 0; 29691 uint32_t _itail_tgt = 0; 29692 RECOMP_REGS_LOCALS 29693 RECOMP_ENTER(0x3614B4DEu); 29694 29695 goto L_3614B4DE; 29696 L_3614B3F4: 29697 /* cmp MEM8(eax + 0x20), LO8(ebx) */ /* 0x3614B3F4: cmp byte ptr [eax + 0x20], bl */ 29698 _flag_a = (uint32_t)(MEM8(eax + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 29699 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29700 _flag_k = FK_NARROW(FK_CMP, 24); 29701 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B642; /* 0x3614B3F7: jne 0x3614b642 */ 29702 L_3614B3FD: 29703 edx = MEM32(eax + 0x4); /* 0x3614B3FD: mov edx, dword ptr [eax + 4] */ 29704 ecx = MEM32(edx); /* 0x3614B400: mov ecx, dword ptr [edx] */ 29705 /* cmp eax, ecx */ /* 0x3614B402: cmp eax, ecx */ 29706 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 29707 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29708 _flag_k = FK_CMP; 29709 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B474; /* 0x3614B404: jne 0x3614b474 */ 29710 L_3614B406: 29711 ecx = MEM32(edx + 0x8); /* 0x3614B406: mov ecx, dword ptr [edx + 8] */ 29712 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B409: mov dl, byte ptr [ecx + 0x20] */ 29713 /* test LO8(edx), LO8(edx) */ /* 0x3614B40C: test dl, dl */ 29714 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 29715 _cf = 0; 29716 _flag_k = FK_NARROW(FK_TEST, 24); 29717 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B45B; /* 0x3614B40E: jne 0x3614b45b */ 29718 L_3614B410: 29719 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B410: mov byte ptr [ecx + 0x20], bl */ 29720 edx = MEM32(eax + 0x4); /* 0x3614B413: mov edx, dword ptr [eax + 4] */ 29721 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x3614B416: mov byte ptr [edx + 0x20], 0 */ 29722 ecx = MEM32(eax + 0x4); /* 0x3614B41A: mov ecx, dword ptr [eax + 4] */ 29723 edx = MEM32(ecx + 0x8); /* 0x3614B41D: mov edx, dword ptr [ecx + 8] */ 29724 esi = MEM32(edx); /* 0x3614B420: mov esi, dword ptr [edx] */ 29725 MEM32(ecx + 0x8) = esi; /* 0x3614B422: mov dword ptr [ecx + 8], esi */ 29726 esi = MEM32(edx); /* 0x3614B425: mov esi, dword ptr [edx] */ 29727 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B427: cmp esi, dword ptr [edi + 8] */ 29728 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 29729 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29730 _flag_k = FK_CMP; 29731 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B42F; /* 0x3614B42A: je 0x3614b42f */ 29732 L_3614B42C: 29733 MEM32(esi + 0x4) = ecx; /* 0x3614B42C: mov dword ptr [esi + 4], ecx */ 29734 L_3614B42F: 29735 esi = MEM32(ecx + 0x4); /* 0x3614B42F: mov esi, dword ptr [ecx + 4] */ 29736 MEM32(edx + 0x4) = esi; /* 0x3614B432: mov dword ptr [edx + 4], esi */ 29737 esi = MEM32(edi + 0x4); /* 0x3614B435: mov esi, dword ptr [edi + 4] */ 29738 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B438: cmp ecx, dword ptr [esi + 4] */ 29739 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 29740 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29741 _flag_k = FK_CMP; 29742 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B442; /* 0x3614B43B: jne 0x3614b442 */ 29743 L_3614B43D: 29744 MEM32(esi + 0x4) = edx; /* 0x3614B43D: mov dword ptr [esi + 4], edx */ 29745 goto L_3614B450; /* 0x3614B440: jmp 0x3614b450 */ 29746 L_3614B442: 29747 esi = MEM32(ecx + 0x4); /* 0x3614B442: mov esi, dword ptr [ecx + 4] */ 29748 /* cmp ecx, MEM32(esi) */ /* 0x3614B445: cmp ecx, dword ptr [esi] */ 29749 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 29750 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29751 _flag_k = FK_CMP; 29752 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B44D; /* 0x3614B447: jne 0x3614b44d */ 29753 L_3614B449: 29754 MEM32(esi) = edx; /* 0x3614B449: mov dword ptr [esi], edx */ 29755 goto L_3614B450; /* 0x3614B44B: jmp 0x3614b450 */ 29756 L_3614B44D: 29757 MEM32(esi + 0x8) = edx; /* 0x3614B44D: mov dword ptr [esi + 8], edx */ 29758 L_3614B450: 29759 MEM32(edx) = ecx; /* 0x3614B450: mov dword ptr [edx], ecx */ 29760 MEM32(ecx + 0x4) = edx; /* 0x3614B452: mov dword ptr [ecx + 4], edx */ 29761 ecx = MEM32(eax + 0x4); /* 0x3614B455: mov ecx, dword ptr [eax + 4] */ 29762 ecx = MEM32(ecx + 0x8); /* 0x3614B458: mov ecx, dword ptr [ecx + 8] */ 29763 L_3614B45B: 29764 edx = MEM32(ecx); /* 0x3614B45B: mov edx, dword ptr [ecx] */ 29765 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B45D: cmp byte ptr [edx + 0x20], bl */ 29766 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 29767 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29768 _flag_k = FK_NARROW(FK_CMP, 24); 29769 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4F6; /* 0x3614B460: jne 0x3614b4f6 */ 29770 L_3614B466: 29771 edx = MEM32(ecx + 0x8); /* 0x3614B466: mov edx, dword ptr [ecx + 8] */ 29772 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B469: cmp byte ptr [edx + 0x20], bl */ 29773 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 29774 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29775 _flag_k = FK_NARROW(FK_CMP, 24); 29776 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4F6; /* 0x3614B46C: jne 0x3614b4f6 */ 29777 L_3614B472: 29778 goto L_3614B4DE; /* 0x3614B472: jmp 0x3614b4de */ 29779 L_3614B474: 29780 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B474: mov dl, byte ptr [ecx + 0x20] */ 29781 /* test LO8(edx), LO8(edx) */ /* 0x3614B477: test dl, dl */ 29782 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 29783 _cf = 0; 29784 _flag_k = FK_NARROW(FK_TEST, 24); 29785 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B4C7; /* 0x3614B479: jne 0x3614b4c7 */ 29786 L_3614B47B: 29787 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B47B: mov byte ptr [ecx + 0x20], bl */ 29788 ecx = MEM32(eax + 0x4); /* 0x3614B47E: mov ecx, dword ptr [eax + 4] */ 29789 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B481: mov byte ptr [ecx + 0x20], 0 */ 29790 ecx = MEM32(eax + 0x4); /* 0x3614B485: mov ecx, dword ptr [eax + 4] */ 29791 edx = MEM32(ecx); /* 0x3614B488: mov edx, dword ptr [ecx] */ 29792 esi = MEM32(edx + 0x8); /* 0x3614B48A: mov esi, dword ptr [edx + 8] */ 29793 MEM32(ecx) = esi; /* 0x3614B48D: mov dword ptr [ecx], esi */ 29794 esi = MEM32(edx + 0x8); /* 0x3614B48F: mov esi, dword ptr [edx + 8] */ 29795 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B492: cmp esi, dword ptr [edi + 8] */ 29796 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 29797 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29798 _flag_k = FK_CMP; 29799 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B49A; /* 0x3614B495: je 0x3614b49a */ 29800 L_3614B497: 29801 MEM32(esi + 0x4) = ecx; /* 0x3614B497: mov dword ptr [esi + 4], ecx */ 29802 L_3614B49A: 29803 esi = MEM32(ecx + 0x4); /* 0x3614B49A: mov esi, dword ptr [ecx + 4] */ 29804 MEM32(edx + 0x4) = esi; /* 0x3614B49D: mov dword ptr [edx + 4], esi */ 29805 esi = MEM32(edi + 0x4); /* 0x3614B4A0: mov esi, dword ptr [edi + 4] */ 29806 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B4A3: cmp ecx, dword ptr [esi + 4] */ 29807 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 29808 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29809 _flag_k = FK_CMP; 29810 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4AD; /* 0x3614B4A6: jne 0x3614b4ad */ 29811 L_3614B4A8: 29812 MEM32(esi + 0x4) = edx; /* 0x3614B4A8: mov dword ptr [esi + 4], edx */ 29813 goto L_3614B4BC; /* 0x3614B4AB: jmp 0x3614b4bc */ 29814 L_3614B4AD: 29815 esi = MEM32(ecx + 0x4); /* 0x3614B4AD: mov esi, dword ptr [ecx + 4] */ 29816 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B4B0: cmp ecx, dword ptr [esi + 8] */ 29817 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 29818 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29819 _flag_k = FK_CMP; 29820 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B4BA; /* 0x3614B4B3: jne 0x3614b4ba */ 29821 L_3614B4B5: 29822 MEM32(esi + 0x8) = edx; /* 0x3614B4B5: mov dword ptr [esi + 8], edx */ 29823 goto L_3614B4BC; /* 0x3614B4B8: jmp 0x3614b4bc */ 29824 L_3614B4BA: 29825 MEM32(esi) = edx; /* 0x3614B4BA: mov dword ptr [esi], edx */ 29826 L_3614B4BC: 29827 MEM32(edx + 0x8) = ecx; /* 0x3614B4BC: mov dword ptr [edx + 8], ecx */ 29828 MEM32(ecx + 0x4) = edx; /* 0x3614B4BF: mov dword ptr [ecx + 4], edx */ 29829 edx = MEM32(eax + 0x4); /* 0x3614B4C2: mov edx, dword ptr [eax + 4] */ 29830 ecx = MEM32(edx); /* 0x3614B4C5: mov ecx, dword ptr [edx] */ 29831 L_3614B4C7: 29832 edx = MEM32(ecx + 0x8); /* 0x3614B4C7: mov edx, dword ptr [ecx + 8] */ 29833 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4CA: cmp byte ptr [edx + 0x20], bl */ 29834 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 29835 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29836 _flag_k = FK_NARROW(FK_CMP, 24); 29837 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5A3; /* 0x3614B4CD: jne 0x3614b5a3 */ 29838 L_3614B4D3: 29839 edx = MEM32(ecx); /* 0x3614B4D3: mov edx, dword ptr [ecx] */ 29840 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4D5: cmp byte ptr [edx + 0x20], bl */ 29841 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 29842 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29843 _flag_k = FK_NARROW(FK_CMP, 24); 29844 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5A3; /* 0x3614B4D8: jne 0x3614b5a3 */ 29845 L_3614B4DE: 29846 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B4DE: mov byte ptr [ecx + 0x20], 0 */ 29847 ecx = MEM32(edi + 0x4); /* 0x3614B4E2: mov ecx, dword ptr [edi + 4] */ 29848 eax = MEM32(eax + 0x4); /* 0x3614B4E5: mov eax, dword ptr [eax + 4] */ 29849 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B4E8: cmp eax, dword ptr [ecx + 4] */ 29850 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 29851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29852 _flag_k = FK_CMP; 29853 RECOMP_BACKEDGE(); 29854 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B3F4; /* 0x3614B4EB: jne 0x3614b3f4 */ 29855 L_3614B4F1: 29856 goto L_3614B642; /* 0x3614B4F1: jmp 0x3614b642 */ 29857 L_3614B4F6: 29858 edx = MEM32(ecx + 0x8); /* 0x3614B4F6: mov edx, dword ptr [ecx + 8] */ 29859 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4F9: cmp byte ptr [edx + 0x20], bl */ 29860 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 29861 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29862 _flag_k = FK_NARROW(FK_CMP, 24); 29863 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B547; /* 0x3614B4FC: jne 0x3614b547 */ 29864 L_3614B4FE: 29865 edx = MEM32(ecx); /* 0x3614B4FE: mov edx, dword ptr [ecx] */ 29866 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B500: mov byte ptr [edx + 0x20], bl */ 29867 edx = MEM32(ecx); /* 0x3614B503: mov edx, dword ptr [ecx] */ 29868 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B505: mov byte ptr [ecx + 0x20], 0 */ 29869 esi = MEM32(edx + 0x8); /* 0x3614B509: mov esi, dword ptr [edx + 8] */ 29870 MEM32(ecx) = esi; /* 0x3614B50C: mov dword ptr [ecx], esi */ 29871 esi = MEM32(edx + 0x8); /* 0x3614B50E: mov esi, dword ptr [edx + 8] */ 29872 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B511: cmp esi, dword ptr [edi + 8] */ 29873 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 29874 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29875 _flag_k = FK_CMP; 29876 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B519; /* 0x3614B514: je 0x3614b519 */ 29877 L_3614B516: 29878 MEM32(esi + 0x4) = ecx; /* 0x3614B516: mov dword ptr [esi + 4], ecx */ 29879 L_3614B519: 29880 esi = MEM32(ecx + 0x4); /* 0x3614B519: mov esi, dword ptr [ecx + 4] */ 29881 MEM32(edx + 0x4) = esi; /* 0x3614B51C: mov dword ptr [edx + 4], esi */ 29882 esi = MEM32(edi + 0x4); /* 0x3614B51F: mov esi, dword ptr [edi + 4] */ 29883 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B522: cmp ecx, dword ptr [esi + 4] */ 29884 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 29885 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29886 _flag_k = FK_CMP; 29887 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B52C; /* 0x3614B525: jne 0x3614b52c */ 29888 L_3614B527: 29889 MEM32(esi + 0x4) = edx; /* 0x3614B527: mov dword ptr [esi + 4], edx */ 29890 goto L_3614B53B; /* 0x3614B52A: jmp 0x3614b53b */ 29891 L_3614B52C: 29892 esi = MEM32(ecx + 0x4); /* 0x3614B52C: mov esi, dword ptr [ecx + 4] */ 29893 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B52F: cmp ecx, dword ptr [esi + 8] */ 29894 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 29895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29896 _flag_k = FK_CMP; 29897 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B539; /* 0x3614B532: jne 0x3614b539 */ 29898 L_3614B534: 29899 MEM32(esi + 0x8) = edx; /* 0x3614B534: mov dword ptr [esi + 8], edx */ 29900 goto L_3614B53B; /* 0x3614B537: jmp 0x3614b53b */ 29901 L_3614B539: 29902 MEM32(esi) = edx; /* 0x3614B539: mov dword ptr [esi], edx */ 29903 L_3614B53B: 29904 MEM32(edx + 0x8) = ecx; /* 0x3614B53B: mov dword ptr [edx + 8], ecx */ 29905 MEM32(ecx + 0x4) = edx; /* 0x3614B53E: mov dword ptr [ecx + 4], edx */ 29906 ecx = MEM32(eax + 0x4); /* 0x3614B541: mov ecx, dword ptr [eax + 4] */ 29907 ecx = MEM32(ecx + 0x8); /* 0x3614B544: mov ecx, dword ptr [ecx + 8] */ 29908 L_3614B547: 29909 edx = MEM32(eax + 0x4); /* 0x3614B547: mov edx, dword ptr [eax + 4] */ 29910 SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3614B54A: mov dl, byte ptr [edx + 0x20] */ 29911 MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B54D: mov byte ptr [ecx + 0x20], dl */ 29912 edx = MEM32(eax + 0x4); /* 0x3614B550: mov edx, dword ptr [eax + 4] */ 29913 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B553: mov byte ptr [edx + 0x20], bl */ 29914 ecx = MEM32(ecx + 0x8); /* 0x3614B556: mov ecx, dword ptr [ecx + 8] */ 29915 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B559: mov byte ptr [ecx + 0x20], bl */ 29916 ecx = MEM32(eax + 0x4); /* 0x3614B55C: mov ecx, dword ptr [eax + 4] */ 29917 edx = MEM32(ecx + 0x8); /* 0x3614B55F: mov edx, dword ptr [ecx + 8] */ 29918 esi = MEM32(edx); /* 0x3614B562: mov esi, dword ptr [edx] */ 29919 MEM32(ecx + 0x8) = esi; /* 0x3614B564: mov dword ptr [ecx + 8], esi */ 29920 esi = MEM32(edx); /* 0x3614B567: mov esi, dword ptr [edx] */ 29921 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B569: cmp esi, dword ptr [edi + 8] */ 29922 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 29923 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29924 _flag_k = FK_CMP; 29925 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B571; /* 0x3614B56C: je 0x3614b571 */ 29926 L_3614B56E: 29927 MEM32(esi + 0x4) = ecx; /* 0x3614B56E: mov dword ptr [esi + 4], ecx */ 29928 L_3614B571: 29929 esi = MEM32(ecx + 0x4); /* 0x3614B571: mov esi, dword ptr [ecx + 4] */ 29930 MEM32(edx + 0x4) = esi; /* 0x3614B574: mov dword ptr [edx + 4], esi */ 29931 esi = MEM32(edi + 0x4); /* 0x3614B577: mov esi, dword ptr [edi + 4] */ 29932 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B57A: cmp ecx, dword ptr [esi + 4] */ 29933 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 29934 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29935 _flag_k = FK_CMP; 29936 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B589; /* 0x3614B57D: jne 0x3614b589 */ 29937 L_3614B57F: 29938 MEM32(esi + 0x4) = edx; /* 0x3614B57F: mov dword ptr [esi + 4], edx */ 29939 MEM32(edx) = ecx; /* 0x3614B582: mov dword ptr [edx], ecx */ 29940 goto L_3614B63F; /* 0x3614B584: jmp 0x3614b63f */ 29941 L_3614B589: 29942 esi = MEM32(ecx + 0x4); /* 0x3614B589: mov esi, dword ptr [ecx + 4] */ 29943 /* cmp ecx, MEM32(esi) */ /* 0x3614B58C: cmp ecx, dword ptr [esi] */ 29944 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 29945 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29946 _flag_k = FK_CMP; 29947 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B599; /* 0x3614B58E: jne 0x3614b599 */ 29948 L_3614B590: 29949 MEM32(esi) = edx; /* 0x3614B590: mov dword ptr [esi], edx */ 29950 MEM32(edx) = ecx; /* 0x3614B592: mov dword ptr [edx], ecx */ 29951 goto L_3614B63F; /* 0x3614B594: jmp 0x3614b63f */ 29952 L_3614B599: 29953 MEM32(esi + 0x8) = edx; /* 0x3614B599: mov dword ptr [esi + 8], edx */ 29954 MEM32(edx) = ecx; /* 0x3614B59C: mov dword ptr [edx], ecx */ 29955 goto L_3614B63F; /* 0x3614B59E: jmp 0x3614b63f */ 29956 L_3614B5A3: 29957 edx = MEM32(ecx); /* 0x3614B5A3: mov edx, dword ptr [ecx] */ 29958 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B5A5: cmp byte ptr [edx + 0x20], bl */ 29959 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 29960 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29961 _flag_k = FK_NARROW(FK_CMP, 24); 29962 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5F1; /* 0x3614B5A8: jne 0x3614b5f1 */ 29963 L_3614B5AA: 29964 edx = MEM32(ecx + 0x8); /* 0x3614B5AA: mov edx, dword ptr [ecx + 8] */ 29965 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B5AD: mov byte ptr [edx + 0x20], bl */ 29966 edx = MEM32(ecx + 0x8); /* 0x3614B5B0: mov edx, dword ptr [ecx + 8] */ 29967 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B5B3: mov byte ptr [ecx + 0x20], 0 */ 29968 esi = MEM32(edx); /* 0x3614B5B7: mov esi, dword ptr [edx] */ 29969 MEM32(ecx + 0x8) = esi; /* 0x3614B5B9: mov dword ptr [ecx + 8], esi */ 29970 esi = MEM32(edx); /* 0x3614B5BC: mov esi, dword ptr [edx] */ 29971 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B5BE: cmp esi, dword ptr [edi + 8] */ 29972 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 29973 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29974 _flag_k = FK_CMP; 29975 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B5C6; /* 0x3614B5C1: je 0x3614b5c6 */ 29976 L_3614B5C3: 29977 MEM32(esi + 0x4) = ecx; /* 0x3614B5C3: mov dword ptr [esi + 4], ecx */ 29978 L_3614B5C6: 29979 esi = MEM32(ecx + 0x4); /* 0x3614B5C6: mov esi, dword ptr [ecx + 4] */ 29980 MEM32(edx + 0x4) = esi; /* 0x3614B5C9: mov dword ptr [edx + 4], esi */ 29981 esi = MEM32(edi + 0x4); /* 0x3614B5CC: mov esi, dword ptr [edi + 4] */ 29982 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B5CF: cmp ecx, dword ptr [esi + 4] */ 29983 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 29984 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29985 _flag_k = FK_CMP; 29986 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5D9; /* 0x3614B5D2: jne 0x3614b5d9 */ 29987 L_3614B5D4: 29988 MEM32(esi + 0x4) = edx; /* 0x3614B5D4: mov dword ptr [esi + 4], edx */ 29989 goto L_3614B5E7; /* 0x3614B5D7: jmp 0x3614b5e7 */ 29990 L_3614B5D9: 29991 esi = MEM32(ecx + 0x4); /* 0x3614B5D9: mov esi, dword ptr [ecx + 4] */ 29992 /* cmp ecx, MEM32(esi) */ /* 0x3614B5DC: cmp ecx, dword ptr [esi] */ 29993 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 29994 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 29995 _flag_k = FK_CMP; 29996 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B5E4; /* 0x3614B5DE: jne 0x3614b5e4 */ 29997 L_3614B5E0: 29998 MEM32(esi) = edx; /* 0x3614B5E0: mov dword ptr [esi], edx */ 29999 goto L_3614B5E7; /* 0x3614B5E2: jmp 0x3614b5e7 */ 30000 L_3614B5E4: 30001 MEM32(esi + 0x8) = edx; /* 0x3614B5E4: mov dword ptr [esi + 8], edx */ 30002 L_3614B5E7: 30003 MEM32(edx) = ecx; /* 0x3614B5E7: mov dword ptr [edx], ecx */ 30004 MEM32(ecx + 0x4) = edx; /* 0x3614B5E9: mov dword ptr [ecx + 4], edx */ 30005 ecx = MEM32(eax + 0x4); /* 0x3614B5EC: mov ecx, dword ptr [eax + 4] */ 30006 ecx = MEM32(ecx); /* 0x3614B5EF: mov ecx, dword ptr [ecx] */ 30007 L_3614B5F1: 30008 edx = MEM32(eax + 0x4); /* 0x3614B5F1: mov edx, dword ptr [eax + 4] */ 30009 SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3614B5F4: mov dl, byte ptr [edx + 0x20] */ 30010 MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B5F7: mov byte ptr [ecx + 0x20], dl */ 30011 edx = MEM32(eax + 0x4); /* 0x3614B5FA: mov edx, dword ptr [eax + 4] */ 30012 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B5FD: mov byte ptr [edx + 0x20], bl */ 30013 ecx = MEM32(ecx); /* 0x3614B600: mov ecx, dword ptr [ecx] */ 30014 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B602: mov byte ptr [ecx + 0x20], bl */ 30015 ecx = MEM32(eax + 0x4); /* 0x3614B605: mov ecx, dword ptr [eax + 4] */ 30016 edx = MEM32(ecx); /* 0x3614B608: mov edx, dword ptr [ecx] */ 30017 esi = MEM32(edx + 0x8); /* 0x3614B60A: mov esi, dword ptr [edx + 8] */ 30018 MEM32(ecx) = esi; /* 0x3614B60D: mov dword ptr [ecx], esi */ 30019 esi = MEM32(edx + 0x8); /* 0x3614B60F: mov esi, dword ptr [edx + 8] */ 30020 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B612: cmp esi, dword ptr [edi + 8] */ 30021 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 30022 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30023 _flag_k = FK_CMP; 30024 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B61A; /* 0x3614B615: je 0x3614b61a */ 30025 L_3614B617: 30026 MEM32(esi + 0x4) = ecx; /* 0x3614B617: mov dword ptr [esi + 4], ecx */ 30027 L_3614B61A: 30028 esi = MEM32(ecx + 0x4); /* 0x3614B61A: mov esi, dword ptr [ecx + 4] */ 30029 MEM32(edx + 0x4) = esi; /* 0x3614B61D: mov dword ptr [edx + 4], esi */ 30030 esi = MEM32(edi + 0x4); /* 0x3614B620: mov esi, dword ptr [edi + 4] */ 30031 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B623: cmp ecx, dword ptr [esi + 4] */ 30032 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 30033 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30034 _flag_k = FK_CMP; 30035 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B62D; /* 0x3614B626: jne 0x3614b62d */ 30036 L_3614B628: 30037 MEM32(esi + 0x4) = edx; /* 0x3614B628: mov dword ptr [esi + 4], edx */ 30038 goto L_3614B63C; /* 0x3614B62B: jmp 0x3614b63c */ 30039 L_3614B62D: 30040 esi = MEM32(ecx + 0x4); /* 0x3614B62D: mov esi, dword ptr [ecx + 4] */ 30041 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B630: cmp ecx, dword ptr [esi + 8] */ 30042 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 30043 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30044 _flag_k = FK_CMP; 30045 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B63A; /* 0x3614B633: jne 0x3614b63a */ 30046 L_3614B635: 30047 MEM32(esi + 0x8) = edx; /* 0x3614B635: mov dword ptr [esi + 8], edx */ 30048 goto L_3614B63C; /* 0x3614B638: jmp 0x3614b63c */ 30049 L_3614B63A: 30050 MEM32(esi) = edx; /* 0x3614B63A: mov dword ptr [esi], edx */ 30051 L_3614B63C: 30052 MEM32(edx + 0x8) = ecx; /* 0x3614B63C: mov dword ptr [edx + 8], ecx */ 30053 L_3614B63F: 30054 MEM32(ecx + 0x4) = edx; /* 0x3614B63F: mov dword ptr [ecx + 4], edx */ 30055 L_3614B642: 30056 esi = MEM32(ebp + (-0x4)); /* 0x3614B642: mov esi, dword ptr [ebp - 4] */ 30057 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B645: mov byte ptr [eax + 0x20], bl */ 30058 ecx = esi + 0xC; /* 0x3614B648: lea ecx, [esi + 0xc] */ 30059 RECOMP_ICALL(0x3614AFC0u); /* 0x3614B64B: call 0x3614afc0 */ /* not lifted */ 30060 RECOMP_FLAGS_IN(); 30061 PUSH32(esp, esi); /* 0x3614B650: push esi */ 30062 RECOMP_ICALL(0x3615FCC4u); /* 0x3614B651: call 0x3615fcc4 */ /* not lifted */ 30063 RECOMP_FLAGS_IN(); 30064 eax = MEM32(edi + 0x10); /* 0x3614B656: mov eax, dword ptr [edi + 0x10] */ 30065 edx = MEM32(ebp + 0xC); /* 0x3614B659: mov edx, dword ptr [ebp + 0xc] */ 30066 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 30067 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30068 esp = esp + 4; /* 0x3614B65C: add esp, 4 */ 30069 _flag_k = FK_ADD; 30070 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 30071 eax = eax - 1; /* 0x3614B65F: dec eax */ 30072 _flag_k = FK_DEC; 30073 MEM32(edi + 0x10) = eax; /* 0x3614B660: mov dword ptr [edi + 0x10], eax */ 30074 eax = MEM32(ebp + 0x8); /* 0x3614B663: mov eax, dword ptr [ebp + 8] */ 30075 edi = POP32_VAL(esp); /* 0x3614B666: pop edi */ 30076 esi = POP32_VAL(esp); /* 0x3614B667: pop esi */ 30077 MEM32(eax) = edx; /* 0x3614B668: mov dword ptr [eax], edx */ 30078 ebx = POP32_VAL(esp); /* 0x3614B66A: pop ebx */ 30079 esp = ebp; /* 0x3614B66B: mov esp, ebp */ 30080 ebp = POP32_VAL(esp); /* 0x3614B66D: pop ebp */ 30081 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614B66E: ret 8 */ 30082 RECOMP_REGS_OUT(); 30083 } 30084 30085 void sub_3614B4F6(void) { 30086 int _fpu_cmp = 0; 30087 uint32_t _cf = 0; 30088 int _df = 1; 30089 uint32_t _flag_k = FK_NONE; 30090 uint32_t _flag_a = 0, _flag_b = 0; 30091 uint32_t _itail_tgt = 0; 30092 RECOMP_REGS_LOCALS 30093 RECOMP_ENTER(0x3614B4F6u); 30094 30095 L_3614B4F6: 30096 edx = MEM32(ecx + 0x8); /* 0x3614B4F6: mov edx, dword ptr [ecx + 8] */ 30097 /* cmp MEM8(edx + 0x20), LO8(ebx) */ /* 0x3614B4F9: cmp byte ptr [edx + 0x20], bl */ 30098 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 30099 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30100 _flag_k = FK_NARROW(FK_CMP, 24); 30101 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B547; /* 0x3614B4FC: jne 0x3614b547 */ 30102 L_3614B4FE: 30103 edx = MEM32(ecx); /* 0x3614B4FE: mov edx, dword ptr [ecx] */ 30104 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B500: mov byte ptr [edx + 0x20], bl */ 30105 edx = MEM32(ecx); /* 0x3614B503: mov edx, dword ptr [ecx] */ 30106 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B505: mov byte ptr [ecx + 0x20], 0 */ 30107 esi = MEM32(edx + 0x8); /* 0x3614B509: mov esi, dword ptr [edx + 8] */ 30108 MEM32(ecx) = esi; /* 0x3614B50C: mov dword ptr [ecx], esi */ 30109 esi = MEM32(edx + 0x8); /* 0x3614B50E: mov esi, dword ptr [edx + 8] */ 30110 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B511: cmp esi, dword ptr [edi + 8] */ 30111 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 30112 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30113 _flag_k = FK_CMP; 30114 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B519; /* 0x3614B514: je 0x3614b519 */ 30115 L_3614B516: 30116 MEM32(esi + 0x4) = ecx; /* 0x3614B516: mov dword ptr [esi + 4], ecx */ 30117 L_3614B519: 30118 esi = MEM32(ecx + 0x4); /* 0x3614B519: mov esi, dword ptr [ecx + 4] */ 30119 MEM32(edx + 0x4) = esi; /* 0x3614B51C: mov dword ptr [edx + 4], esi */ 30120 esi = MEM32(edi + 0x4); /* 0x3614B51F: mov esi, dword ptr [edi + 4] */ 30121 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B522: cmp ecx, dword ptr [esi + 4] */ 30122 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 30123 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30124 _flag_k = FK_CMP; 30125 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B52C; /* 0x3614B525: jne 0x3614b52c */ 30126 L_3614B527: 30127 MEM32(esi + 0x4) = edx; /* 0x3614B527: mov dword ptr [esi + 4], edx */ 30128 goto L_3614B53B; /* 0x3614B52A: jmp 0x3614b53b */ 30129 L_3614B52C: 30130 esi = MEM32(ecx + 0x4); /* 0x3614B52C: mov esi, dword ptr [ecx + 4] */ 30131 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B52F: cmp ecx, dword ptr [esi + 8] */ 30132 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 30133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30134 _flag_k = FK_CMP; 30135 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B539; /* 0x3614B532: jne 0x3614b539 */ 30136 L_3614B534: 30137 MEM32(esi + 0x8) = edx; /* 0x3614B534: mov dword ptr [esi + 8], edx */ 30138 goto L_3614B53B; /* 0x3614B537: jmp 0x3614b53b */ 30139 L_3614B539: 30140 MEM32(esi) = edx; /* 0x3614B539: mov dword ptr [esi], edx */ 30141 L_3614B53B: 30142 MEM32(edx + 0x8) = ecx; /* 0x3614B53B: mov dword ptr [edx + 8], ecx */ 30143 MEM32(ecx + 0x4) = edx; /* 0x3614B53E: mov dword ptr [ecx + 4], edx */ 30144 ecx = MEM32(eax + 0x4); /* 0x3614B541: mov ecx, dword ptr [eax + 4] */ 30145 ecx = MEM32(ecx + 0x8); /* 0x3614B544: mov ecx, dword ptr [ecx + 8] */ 30146 L_3614B547: 30147 edx = MEM32(eax + 0x4); /* 0x3614B547: mov edx, dword ptr [eax + 4] */ 30148 SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3614B54A: mov dl, byte ptr [edx + 0x20] */ 30149 MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B54D: mov byte ptr [ecx + 0x20], dl */ 30150 edx = MEM32(eax + 0x4); /* 0x3614B550: mov edx, dword ptr [eax + 4] */ 30151 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B553: mov byte ptr [edx + 0x20], bl */ 30152 ecx = MEM32(ecx + 0x8); /* 0x3614B556: mov ecx, dword ptr [ecx + 8] */ 30153 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B559: mov byte ptr [ecx + 0x20], bl */ 30154 ecx = MEM32(eax + 0x4); /* 0x3614B55C: mov ecx, dword ptr [eax + 4] */ 30155 edx = MEM32(ecx + 0x8); /* 0x3614B55F: mov edx, dword ptr [ecx + 8] */ 30156 esi = MEM32(edx); /* 0x3614B562: mov esi, dword ptr [edx] */ 30157 MEM32(ecx + 0x8) = esi; /* 0x3614B564: mov dword ptr [ecx + 8], esi */ 30158 esi = MEM32(edx); /* 0x3614B567: mov esi, dword ptr [edx] */ 30159 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B569: cmp esi, dword ptr [edi + 8] */ 30160 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 30161 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30162 _flag_k = FK_CMP; 30163 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B571; /* 0x3614B56C: je 0x3614b571 */ 30164 L_3614B56E: 30165 MEM32(esi + 0x4) = ecx; /* 0x3614B56E: mov dword ptr [esi + 4], ecx */ 30166 L_3614B571: 30167 esi = MEM32(ecx + 0x4); /* 0x3614B571: mov esi, dword ptr [ecx + 4] */ 30168 MEM32(edx + 0x4) = esi; /* 0x3614B574: mov dword ptr [edx + 4], esi */ 30169 esi = MEM32(edi + 0x4); /* 0x3614B577: mov esi, dword ptr [edi + 4] */ 30170 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B57A: cmp ecx, dword ptr [esi + 4] */ 30171 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 30172 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30173 _flag_k = FK_CMP; 30174 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B589; /* 0x3614B57D: jne 0x3614b589 */ 30175 L_3614B57F: 30176 MEM32(esi + 0x4) = edx; /* 0x3614B57F: mov dword ptr [esi + 4], edx */ 30177 MEM32(edx) = ecx; /* 0x3614B582: mov dword ptr [edx], ecx */ 30178 goto L_3614B63F; /* 0x3614B584: jmp 0x3614b63f */ 30179 L_3614B589: 30180 esi = MEM32(ecx + 0x4); /* 0x3614B589: mov esi, dword ptr [ecx + 4] */ 30181 /* cmp ecx, MEM32(esi) */ /* 0x3614B58C: cmp ecx, dword ptr [esi] */ 30182 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 30183 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30184 _flag_k = FK_CMP; 30185 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B599; /* 0x3614B58E: jne 0x3614b599 */ 30186 L_3614B590: 30187 MEM32(esi) = edx; /* 0x3614B590: mov dword ptr [esi], edx */ 30188 MEM32(edx) = ecx; /* 0x3614B592: mov dword ptr [edx], ecx */ 30189 goto L_3614B63F; /* 0x3614B594: jmp 0x3614b63f */ 30190 L_3614B599: 30191 MEM32(esi + 0x8) = edx; /* 0x3614B599: mov dword ptr [esi + 8], edx */ 30192 MEM32(edx) = ecx; /* 0x3614B59C: mov dword ptr [edx], ecx */ 30193 goto L_3614B63F; /* 0x3614B59E: jmp 0x3614b63f */ 30194 L_3614B63F: 30195 MEM32(ecx + 0x4) = edx; /* 0x3614B63F: mov dword ptr [ecx + 4], edx */ 30196 esi = MEM32(ebp + (-0x4)); /* 0x3614B642: mov esi, dword ptr [ebp - 4] */ 30197 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B645: mov byte ptr [eax + 0x20], bl */ 30198 ecx = esi + 0xC; /* 0x3614B648: lea ecx, [esi + 0xc] */ 30199 RECOMP_ICALL(0x3614AFC0u); /* 0x3614B64B: call 0x3614afc0 */ /* not lifted */ 30200 RECOMP_FLAGS_IN(); 30201 PUSH32(esp, esi); /* 0x3614B650: push esi */ 30202 RECOMP_ICALL(0x3615FCC4u); /* 0x3614B651: call 0x3615fcc4 */ /* not lifted */ 30203 RECOMP_FLAGS_IN(); 30204 eax = MEM32(edi + 0x10); /* 0x3614B656: mov eax, dword ptr [edi + 0x10] */ 30205 edx = MEM32(ebp + 0xC); /* 0x3614B659: mov edx, dword ptr [ebp + 0xc] */ 30206 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 30207 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30208 esp = esp + 4; /* 0x3614B65C: add esp, 4 */ 30209 _flag_k = FK_ADD; 30210 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 30211 eax = eax - 1; /* 0x3614B65F: dec eax */ 30212 _flag_k = FK_DEC; 30213 MEM32(edi + 0x10) = eax; /* 0x3614B660: mov dword ptr [edi + 0x10], eax */ 30214 eax = MEM32(ebp + 0x8); /* 0x3614B663: mov eax, dword ptr [ebp + 8] */ 30215 edi = POP32_VAL(esp); /* 0x3614B666: pop edi */ 30216 esi = POP32_VAL(esp); /* 0x3614B667: pop esi */ 30217 MEM32(eax) = edx; /* 0x3614B668: mov dword ptr [eax], edx */ 30218 ebx = POP32_VAL(esp); /* 0x3614B66A: pop ebx */ 30219 esp = ebp; /* 0x3614B66B: mov esp, ebp */ 30220 ebp = POP32_VAL(esp); /* 0x3614B66D: pop ebp */ 30221 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614B66E: ret 8 */ 30222 RECOMP_REGS_OUT(); 30223 } 30224 30225 void sub_3614B53B(void) { 30226 int _fpu_cmp = 0; 30227 uint32_t _cf = 0; 30228 int _df = 1; 30229 uint32_t _flag_k = FK_NONE; 30230 uint32_t _flag_a = 0, _flag_b = 0; 30231 uint32_t _itail_tgt = 0; 30232 RECOMP_REGS_LOCALS 30233 RECOMP_ENTER(0x3614B53Bu); 30234 30235 L_3614B53B: 30236 MEM32(edx + 0x8) = ecx; /* 0x3614B53B: mov dword ptr [edx + 8], ecx */ 30237 MEM32(ecx + 0x4) = edx; /* 0x3614B53E: mov dword ptr [ecx + 4], edx */ 30238 ecx = MEM32(eax + 0x4); /* 0x3614B541: mov ecx, dword ptr [eax + 4] */ 30239 ecx = MEM32(ecx + 0x8); /* 0x3614B544: mov ecx, dword ptr [ecx + 8] */ 30240 edx = MEM32(eax + 0x4); /* 0x3614B547: mov edx, dword ptr [eax + 4] */ 30241 SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3614B54A: mov dl, byte ptr [edx + 0x20] */ 30242 MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B54D: mov byte ptr [ecx + 0x20], dl */ 30243 edx = MEM32(eax + 0x4); /* 0x3614B550: mov edx, dword ptr [eax + 4] */ 30244 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B553: mov byte ptr [edx + 0x20], bl */ 30245 ecx = MEM32(ecx + 0x8); /* 0x3614B556: mov ecx, dword ptr [ecx + 8] */ 30246 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B559: mov byte ptr [ecx + 0x20], bl */ 30247 ecx = MEM32(eax + 0x4); /* 0x3614B55C: mov ecx, dword ptr [eax + 4] */ 30248 edx = MEM32(ecx + 0x8); /* 0x3614B55F: mov edx, dword ptr [ecx + 8] */ 30249 esi = MEM32(edx); /* 0x3614B562: mov esi, dword ptr [edx] */ 30250 MEM32(ecx + 0x8) = esi; /* 0x3614B564: mov dword ptr [ecx + 8], esi */ 30251 esi = MEM32(edx); /* 0x3614B567: mov esi, dword ptr [edx] */ 30252 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B569: cmp esi, dword ptr [edi + 8] */ 30253 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 30254 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30255 _flag_k = FK_CMP; 30256 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B571; /* 0x3614B56C: je 0x3614b571 */ 30257 L_3614B56E: 30258 MEM32(esi + 0x4) = ecx; /* 0x3614B56E: mov dword ptr [esi + 4], ecx */ 30259 L_3614B571: 30260 esi = MEM32(ecx + 0x4); /* 0x3614B571: mov esi, dword ptr [ecx + 4] */ 30261 MEM32(edx + 0x4) = esi; /* 0x3614B574: mov dword ptr [edx + 4], esi */ 30262 esi = MEM32(edi + 0x4); /* 0x3614B577: mov esi, dword ptr [edi + 4] */ 30263 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B57A: cmp ecx, dword ptr [esi + 4] */ 30264 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 30265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30266 _flag_k = FK_CMP; 30267 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B589; /* 0x3614B57D: jne 0x3614b589 */ 30268 L_3614B57F: 30269 MEM32(esi + 0x4) = edx; /* 0x3614B57F: mov dword ptr [esi + 4], edx */ 30270 MEM32(edx) = ecx; /* 0x3614B582: mov dword ptr [edx], ecx */ 30271 goto L_3614B63F; /* 0x3614B584: jmp 0x3614b63f */ 30272 L_3614B589: 30273 esi = MEM32(ecx + 0x4); /* 0x3614B589: mov esi, dword ptr [ecx + 4] */ 30274 /* cmp ecx, MEM32(esi) */ /* 0x3614B58C: cmp ecx, dword ptr [esi] */ 30275 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 30276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30277 _flag_k = FK_CMP; 30278 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B599; /* 0x3614B58E: jne 0x3614b599 */ 30279 L_3614B590: 30280 MEM32(esi) = edx; /* 0x3614B590: mov dword ptr [esi], edx */ 30281 MEM32(edx) = ecx; /* 0x3614B592: mov dword ptr [edx], ecx */ 30282 goto L_3614B63F; /* 0x3614B594: jmp 0x3614b63f */ 30283 L_3614B599: 30284 MEM32(esi + 0x8) = edx; /* 0x3614B599: mov dword ptr [esi + 8], edx */ 30285 MEM32(edx) = ecx; /* 0x3614B59C: mov dword ptr [edx], ecx */ 30286 goto L_3614B63F; /* 0x3614B59E: jmp 0x3614b63f */ 30287 L_3614B63F: 30288 MEM32(ecx + 0x4) = edx; /* 0x3614B63F: mov dword ptr [ecx + 4], edx */ 30289 esi = MEM32(ebp + (-0x4)); /* 0x3614B642: mov esi, dword ptr [ebp - 4] */ 30290 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B645: mov byte ptr [eax + 0x20], bl */ 30291 ecx = esi + 0xC; /* 0x3614B648: lea ecx, [esi + 0xc] */ 30292 RECOMP_ICALL(0x3614AFC0u); /* 0x3614B64B: call 0x3614afc0 */ /* not lifted */ 30293 RECOMP_FLAGS_IN(); 30294 PUSH32(esp, esi); /* 0x3614B650: push esi */ 30295 RECOMP_ICALL(0x3615FCC4u); /* 0x3614B651: call 0x3615fcc4 */ /* not lifted */ 30296 RECOMP_FLAGS_IN(); 30297 eax = MEM32(edi + 0x10); /* 0x3614B656: mov eax, dword ptr [edi + 0x10] */ 30298 edx = MEM32(ebp + 0xC); /* 0x3614B659: mov edx, dword ptr [ebp + 0xc] */ 30299 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 30300 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30301 esp = esp + 4; /* 0x3614B65C: add esp, 4 */ 30302 _flag_k = FK_ADD; 30303 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 30304 eax = eax - 1; /* 0x3614B65F: dec eax */ 30305 _flag_k = FK_DEC; 30306 MEM32(edi + 0x10) = eax; /* 0x3614B660: mov dword ptr [edi + 0x10], eax */ 30307 eax = MEM32(ebp + 0x8); /* 0x3614B663: mov eax, dword ptr [ebp + 8] */ 30308 edi = POP32_VAL(esp); /* 0x3614B666: pop edi */ 30309 esi = POP32_VAL(esp); /* 0x3614B667: pop esi */ 30310 MEM32(eax) = edx; /* 0x3614B668: mov dword ptr [eax], edx */ 30311 ebx = POP32_VAL(esp); /* 0x3614B66A: pop ebx */ 30312 esp = ebp; /* 0x3614B66B: mov esp, ebp */ 30313 ebp = POP32_VAL(esp); /* 0x3614B66D: pop ebp */ 30314 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614B66E: ret 8 */ 30315 RECOMP_REGS_OUT(); 30316 } 30317 30318 void sub_3614B5E7(void) { 30319 int _fpu_cmp = 0; 30320 uint32_t _cf = 0; 30321 int _df = 1; 30322 uint32_t _flag_k = FK_NONE; 30323 uint32_t _flag_a = 0, _flag_b = 0; 30324 uint32_t _itail_tgt = 0; 30325 RECOMP_REGS_LOCALS 30326 RECOMP_ENTER(0x3614B5E7u); 30327 30328 L_3614B5E7: 30329 MEM32(edx) = ecx; /* 0x3614B5E7: mov dword ptr [edx], ecx */ 30330 MEM32(ecx + 0x4) = edx; /* 0x3614B5E9: mov dword ptr [ecx + 4], edx */ 30331 ecx = MEM32(eax + 0x4); /* 0x3614B5EC: mov ecx, dword ptr [eax + 4] */ 30332 ecx = MEM32(ecx); /* 0x3614B5EF: mov ecx, dword ptr [ecx] */ 30333 edx = MEM32(eax + 0x4); /* 0x3614B5F1: mov edx, dword ptr [eax + 4] */ 30334 SET_LO8(edx, MEM8(edx + 0x20)); /* 0x3614B5F4: mov dl, byte ptr [edx + 0x20] */ 30335 MEM8(ecx + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B5F7: mov byte ptr [ecx + 0x20], dl */ 30336 edx = MEM32(eax + 0x4); /* 0x3614B5FA: mov edx, dword ptr [eax + 4] */ 30337 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B5FD: mov byte ptr [edx + 0x20], bl */ 30338 ecx = MEM32(ecx); /* 0x3614B600: mov ecx, dword ptr [ecx] */ 30339 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B602: mov byte ptr [ecx + 0x20], bl */ 30340 ecx = MEM32(eax + 0x4); /* 0x3614B605: mov ecx, dword ptr [eax + 4] */ 30341 edx = MEM32(ecx); /* 0x3614B608: mov edx, dword ptr [ecx] */ 30342 esi = MEM32(edx + 0x8); /* 0x3614B60A: mov esi, dword ptr [edx + 8] */ 30343 MEM32(ecx) = esi; /* 0x3614B60D: mov dword ptr [ecx], esi */ 30344 esi = MEM32(edx + 0x8); /* 0x3614B60F: mov esi, dword ptr [edx + 8] */ 30345 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3614B612: cmp esi, dword ptr [edi + 8] */ 30346 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 30347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30348 _flag_k = FK_CMP; 30349 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B61A; /* 0x3614B615: je 0x3614b61a */ 30350 L_3614B617: 30351 MEM32(esi + 0x4) = ecx; /* 0x3614B617: mov dword ptr [esi + 4], ecx */ 30352 L_3614B61A: 30353 esi = MEM32(ecx + 0x4); /* 0x3614B61A: mov esi, dword ptr [ecx + 4] */ 30354 MEM32(edx + 0x4) = esi; /* 0x3614B61D: mov dword ptr [edx + 4], esi */ 30355 esi = MEM32(edi + 0x4); /* 0x3614B620: mov esi, dword ptr [edi + 4] */ 30356 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3614B623: cmp ecx, dword ptr [esi + 4] */ 30357 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 30358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30359 _flag_k = FK_CMP; 30360 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B62D; /* 0x3614B626: jne 0x3614b62d */ 30361 L_3614B628: 30362 MEM32(esi + 0x4) = edx; /* 0x3614B628: mov dword ptr [esi + 4], edx */ 30363 goto L_3614B63C; /* 0x3614B62B: jmp 0x3614b63c */ 30364 L_3614B62D: 30365 esi = MEM32(ecx + 0x4); /* 0x3614B62D: mov esi, dword ptr [ecx + 4] */ 30366 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3614B630: cmp ecx, dword ptr [esi + 8] */ 30367 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 30368 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30369 _flag_k = FK_CMP; 30370 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B63A; /* 0x3614B633: jne 0x3614b63a */ 30371 L_3614B635: 30372 MEM32(esi + 0x8) = edx; /* 0x3614B635: mov dword ptr [esi + 8], edx */ 30373 goto L_3614B63C; /* 0x3614B638: jmp 0x3614b63c */ 30374 L_3614B63A: 30375 MEM32(esi) = edx; /* 0x3614B63A: mov dword ptr [esi], edx */ 30376 L_3614B63C: 30377 MEM32(edx + 0x8) = ecx; /* 0x3614B63C: mov dword ptr [edx + 8], ecx */ 30378 MEM32(ecx + 0x4) = edx; /* 0x3614B63F: mov dword ptr [ecx + 4], edx */ 30379 esi = MEM32(ebp + (-0x4)); /* 0x3614B642: mov esi, dword ptr [ebp - 4] */ 30380 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B645: mov byte ptr [eax + 0x20], bl */ 30381 ecx = esi + 0xC; /* 0x3614B648: lea ecx, [esi + 0xc] */ 30382 RECOMP_ICALL(0x3614AFC0u); /* 0x3614B64B: call 0x3614afc0 */ /* not lifted */ 30383 RECOMP_FLAGS_IN(); 30384 PUSH32(esp, esi); /* 0x3614B650: push esi */ 30385 RECOMP_ICALL(0x3615FCC4u); /* 0x3614B651: call 0x3615fcc4 */ /* not lifted */ 30386 RECOMP_FLAGS_IN(); 30387 eax = MEM32(edi + 0x10); /* 0x3614B656: mov eax, dword ptr [edi + 0x10] */ 30388 edx = MEM32(ebp + 0xC); /* 0x3614B659: mov edx, dword ptr [ebp + 0xc] */ 30389 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 30390 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30391 esp = esp + 4; /* 0x3614B65C: add esp, 4 */ 30392 _flag_k = FK_ADD; 30393 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 30394 eax = eax - 1; /* 0x3614B65F: dec eax */ 30395 _flag_k = FK_DEC; 30396 MEM32(edi + 0x10) = eax; /* 0x3614B660: mov dword ptr [edi + 0x10], eax */ 30397 eax = MEM32(ebp + 0x8); /* 0x3614B663: mov eax, dword ptr [ebp + 8] */ 30398 edi = POP32_VAL(esp); /* 0x3614B666: pop edi */ 30399 esi = POP32_VAL(esp); /* 0x3614B667: pop esi */ 30400 MEM32(eax) = edx; /* 0x3614B668: mov dword ptr [eax], edx */ 30401 ebx = POP32_VAL(esp); /* 0x3614B66A: pop ebx */ 30402 esp = ebp; /* 0x3614B66B: mov esp, ebp */ 30403 ebp = POP32_VAL(esp); /* 0x3614B66D: pop ebp */ 30404 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614B66E: ret 8 */ 30405 RECOMP_REGS_OUT(); 30406 } 30407 30408 void sub_3614B63C(void) { 30409 int _fpu_cmp = 0; 30410 uint32_t _cf = 0; 30411 int _df = 1; 30412 uint32_t _flag_k = FK_NONE; 30413 uint32_t _flag_a = 0, _flag_b = 0; 30414 uint32_t _itail_tgt = 0; 30415 RECOMP_REGS_LOCALS 30416 RECOMP_ENTER(0x3614B63Cu); 30417 30418 L_3614B63C: 30419 MEM32(edx + 0x8) = ecx; /* 0x3614B63C: mov dword ptr [edx + 8], ecx */ 30420 MEM32(ecx + 0x4) = edx; /* 0x3614B63F: mov dword ptr [ecx + 4], edx */ 30421 esi = MEM32(ebp + (-0x4)); /* 0x3614B642: mov esi, dword ptr [ebp - 4] */ 30422 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B645: mov byte ptr [eax + 0x20], bl */ 30423 ecx = esi + 0xC; /* 0x3614B648: lea ecx, [esi + 0xc] */ 30424 RECOMP_ICALL(0x3614AFC0u); /* 0x3614B64B: call 0x3614afc0 */ /* not lifted */ 30425 RECOMP_FLAGS_IN(); 30426 PUSH32(esp, esi); /* 0x3614B650: push esi */ 30427 RECOMP_ICALL(0x3615FCC4u); /* 0x3614B651: call 0x3615fcc4 */ /* not lifted */ 30428 RECOMP_FLAGS_IN(); 30429 eax = MEM32(edi + 0x10); /* 0x3614B656: mov eax, dword ptr [edi + 0x10] */ 30430 edx = MEM32(ebp + 0xC); /* 0x3614B659: mov edx, dword ptr [ebp + 0xc] */ 30431 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 30432 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30433 esp = esp + 4; /* 0x3614B65C: add esp, 4 */ 30434 _flag_k = FK_ADD; 30435 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 30436 eax = eax - 1; /* 0x3614B65F: dec eax */ 30437 _flag_k = FK_DEC; 30438 MEM32(edi + 0x10) = eax; /* 0x3614B660: mov dword ptr [edi + 0x10], eax */ 30439 eax = MEM32(ebp + 0x8); /* 0x3614B663: mov eax, dword ptr [ebp + 8] */ 30440 edi = POP32_VAL(esp); /* 0x3614B666: pop edi */ 30441 esi = POP32_VAL(esp); /* 0x3614B667: pop esi */ 30442 MEM32(eax) = edx; /* 0x3614B668: mov dword ptr [eax], edx */ 30443 ebx = POP32_VAL(esp); /* 0x3614B66A: pop ebx */ 30444 esp = ebp; /* 0x3614B66B: mov esp, ebp */ 30445 ebp = POP32_VAL(esp); /* 0x3614B66D: pop ebp */ 30446 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614B66E: ret 8 */ 30447 RECOMP_REGS_OUT(); 30448 } 30449 30450 void sub_3614B63F(void) { 30451 int _fpu_cmp = 0; 30452 uint32_t _cf = 0; 30453 int _df = 1; 30454 uint32_t _flag_k = FK_NONE; 30455 uint32_t _flag_a = 0, _flag_b = 0; 30456 uint32_t _itail_tgt = 0; 30457 RECOMP_REGS_LOCALS 30458 RECOMP_ENTER(0x3614B63Fu); 30459 30460 L_3614B63F: 30461 MEM32(ecx + 0x4) = edx; /* 0x3614B63F: mov dword ptr [ecx + 4], edx */ 30462 esi = MEM32(ebp + (-0x4)); /* 0x3614B642: mov esi, dword ptr [ebp - 4] */ 30463 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B645: mov byte ptr [eax + 0x20], bl */ 30464 ecx = esi + 0xC; /* 0x3614B648: lea ecx, [esi + 0xc] */ 30465 RECOMP_ICALL(0x3614AFC0u); /* 0x3614B64B: call 0x3614afc0 */ /* not lifted */ 30466 RECOMP_FLAGS_IN(); 30467 PUSH32(esp, esi); /* 0x3614B650: push esi */ 30468 RECOMP_ICALL(0x3615FCC4u); /* 0x3614B651: call 0x3615fcc4 */ /* not lifted */ 30469 RECOMP_FLAGS_IN(); 30470 eax = MEM32(edi + 0x10); /* 0x3614B656: mov eax, dword ptr [edi + 0x10] */ 30471 edx = MEM32(ebp + 0xC); /* 0x3614B659: mov edx, dword ptr [ebp + 0xc] */ 30472 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 30473 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30474 esp = esp + 4; /* 0x3614B65C: add esp, 4 */ 30475 _flag_k = FK_ADD; 30476 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 30477 eax = eax - 1; /* 0x3614B65F: dec eax */ 30478 _flag_k = FK_DEC; 30479 MEM32(edi + 0x10) = eax; /* 0x3614B660: mov dword ptr [edi + 0x10], eax */ 30480 eax = MEM32(ebp + 0x8); /* 0x3614B663: mov eax, dword ptr [ebp + 8] */ 30481 edi = POP32_VAL(esp); /* 0x3614B666: pop edi */ 30482 esi = POP32_VAL(esp); /* 0x3614B667: pop esi */ 30483 MEM32(eax) = edx; /* 0x3614B668: mov dword ptr [eax], edx */ 30484 ebx = POP32_VAL(esp); /* 0x3614B66A: pop ebx */ 30485 esp = ebp; /* 0x3614B66B: mov esp, ebp */ 30486 ebp = POP32_VAL(esp); /* 0x3614B66D: pop ebp */ 30487 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614B66E: ret 8 */ 30488 RECOMP_REGS_OUT(); 30489 } 30490 30491 void sub_3614B642(void) { 30492 int _fpu_cmp = 0; 30493 uint32_t _cf = 0; 30494 int _df = 1; 30495 uint32_t _flag_k = FK_NONE; 30496 uint32_t _flag_a = 0, _flag_b = 0; 30497 uint32_t _itail_tgt = 0; 30498 RECOMP_REGS_LOCALS 30499 RECOMP_ENTER(0x3614B642u); 30500 30501 L_3614B642: 30502 esi = MEM32(ebp + (-0x4)); /* 0x3614B642: mov esi, dword ptr [ebp - 4] */ 30503 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B645: mov byte ptr [eax + 0x20], bl */ 30504 ecx = esi + 0xC; /* 0x3614B648: lea ecx, [esi + 0xc] */ 30505 RECOMP_ICALL(0x3614AFC0u); /* 0x3614B64B: call 0x3614afc0 */ /* not lifted */ 30506 RECOMP_FLAGS_IN(); 30507 PUSH32(esp, esi); /* 0x3614B650: push esi */ 30508 RECOMP_ICALL(0x3615FCC4u); /* 0x3614B651: call 0x3615fcc4 */ /* not lifted */ 30509 RECOMP_FLAGS_IN(); 30510 eax = MEM32(edi + 0x10); /* 0x3614B656: mov eax, dword ptr [edi + 0x10] */ 30511 edx = MEM32(ebp + 0xC); /* 0x3614B659: mov edx, dword ptr [ebp + 0xc] */ 30512 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 30513 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30514 esp = esp + 4; /* 0x3614B65C: add esp, 4 */ 30515 _flag_k = FK_ADD; 30516 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 30517 eax = eax - 1; /* 0x3614B65F: dec eax */ 30518 _flag_k = FK_DEC; 30519 MEM32(edi + 0x10) = eax; /* 0x3614B660: mov dword ptr [edi + 0x10], eax */ 30520 eax = MEM32(ebp + 0x8); /* 0x3614B663: mov eax, dword ptr [ebp + 8] */ 30521 edi = POP32_VAL(esp); /* 0x3614B666: pop edi */ 30522 esi = POP32_VAL(esp); /* 0x3614B667: pop esi */ 30523 MEM32(eax) = edx; /* 0x3614B668: mov dword ptr [eax], edx */ 30524 ebx = POP32_VAL(esp); /* 0x3614B66A: pop ebx */ 30525 esp = ebp; /* 0x3614B66B: mov esp, ebp */ 30526 ebp = POP32_VAL(esp); /* 0x3614B66D: pop ebp */ 30527 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614B66E: ret 8 */ 30528 RECOMP_REGS_OUT(); 30529 } 30530 30531 void sub_3614B680(void) { 30532 int _fpu_cmp = 0; 30533 uint32_t _cf = 0; 30534 int _df = 1; 30535 uint32_t _flag_k = FK_NONE; 30536 uint32_t _flag_a = 0, _flag_b = 0; 30537 uint32_t _itail_tgt = 0; 30538 RECOMP_REGS_LOCALS 30539 RECOMP_ENTER(0x3614B680u); 30540 30541 L_3614B680: 30542 PUSH32(esp, ebp); /* 0x3614B680: push ebp */ 30543 ebp = esp; /* 0x3614B681: mov ebp, esp */ 30544 PUSH32(esp, ebx); /* 0x3614B683: push ebx */ 30545 PUSH32(esp, esi); /* 0x3614B684: push esi */ 30546 ebx = ecx; /* 0x3614B685: mov ebx, ecx */ 30547 eax = MEM32(ebx + 0x8); /* 0x3614B687: mov eax, dword ptr [ebx + 8] */ 30548 PUSH32(esp, edi); /* 0x3614B68A: push edi */ 30549 edi = MEM32(ebp + 0x8); /* 0x3614B68B: mov edi, dword ptr [ebp + 8] */ 30550 /* cmp edi, eax */ /* 0x3614B68E: cmp edi, eax */ 30551 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 30552 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30553 _flag_k = FK_CMP; 30554 esi = edi; /* 0x3614B690: mov esi, edi */ 30555 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B6BB; /* 0x3614B692: je 0x3614b6bb */ 30556 L_3614B694: 30557 eax = MEM32(esi + 0x8); /* 0x3614B694: mov eax, dword ptr [esi + 8] */ 30558 PUSH32(esp, eax); /* 0x3614B697: push eax */ 30559 ecx = ebx; /* 0x3614B698: mov ecx, ebx */ 30560 RECOMP_ICALL(0x3614B680u); /* 0x3614B69A: call 0x3614b680 */ /* not lifted */ 30561 RECOMP_FLAGS_IN(); 30562 esi = MEM32(esi); /* 0x3614B69F: mov esi, dword ptr [esi] */ 30563 ecx = edi + 0xC; /* 0x3614B6A1: lea ecx, [edi + 0xc] */ 30564 RECOMP_ICALL(0x3614AFC0u); /* 0x3614B6A4: call 0x3614afc0 */ /* not lifted */ 30565 RECOMP_FLAGS_IN(); 30566 PUSH32(esp, edi); /* 0x3614B6A9: push edi */ 30567 RECOMP_ICALL(0x3615FCC4u); /* 0x3614B6AA: call 0x3615fcc4 */ /* not lifted */ 30568 RECOMP_FLAGS_IN(); 30569 eax = MEM32(ebx + 0x8); /* 0x3614B6AF: mov eax, dword ptr [ebx + 8] */ 30570 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 30571 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30572 esp = esp + 4; /* 0x3614B6B2: add esp, 4 */ 30573 _flag_k = FK_ADD; 30574 /* cmp esi, eax */ /* 0x3614B6B5: cmp esi, eax */ 30575 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 30576 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30577 _flag_k = FK_CMP; 30578 edi = esi; /* 0x3614B6B7: mov edi, esi */ 30579 RECOMP_BACKEDGE(); 30580 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B694; /* 0x3614B6B9: jne 0x3614b694 */ 30581 L_3614B6BB: 30582 edi = POP32_VAL(esp); /* 0x3614B6BB: pop edi */ 30583 esi = POP32_VAL(esp); /* 0x3614B6BC: pop esi */ 30584 ebx = POP32_VAL(esp); /* 0x3614B6BD: pop ebx */ 30585 ebp = POP32_VAL(esp); /* 0x3614B6BE: pop ebp */ 30586 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614B6BF: ret 4 */ 30587 RECOMP_REGS_OUT(); 30588 } 30589 30590 void sub_3614B6D0(void) { 30591 int _fpu_cmp = 0; 30592 uint32_t _cf = 0; 30593 int _df = 1; 30594 uint32_t _flag_k = FK_NONE; 30595 uint32_t _flag_a = 0, _flag_b = 0; 30596 uint32_t _itail_tgt = 0; 30597 RECOMP_REGS_LOCALS 30598 RECOMP_ENTER(0x3614B6D0u); 30599 30600 L_3614B6D0: 30601 PUSH32(esp, ebp); /* 0x3614B6D0: push ebp */ 30602 ebp = esp; /* 0x3614B6D1: mov ebp, esp */ 30603 eax = MEM32(ebp + 0x8); /* 0x3614B6D3: mov eax, dword ptr [ebp + 8] */ 30604 ecx = MEM32(eax); /* 0x3614B6D6: mov ecx, dword ptr [eax] */ 30605 SET_LO8(edx, MEM8(ecx + 0x21)); /* 0x3614B6D8: mov dl, byte ptr [ecx + 0x21] */ 30606 /* test LO8(edx), LO8(edx) */ /* 0x3614B6DB: test dl, dl */ 30607 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 30608 _cf = 0; 30609 _flag_k = FK_NARROW(FK_TEST, 24); 30610 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B6EA; /* 0x3614B6DD: jne 0x3614b6ea */ 30611 L_3614B6DF: 30612 eax = ecx; /* 0x3614B6DF: mov eax, ecx */ 30613 ecx = MEM32(eax); /* 0x3614B6E1: mov ecx, dword ptr [eax] */ 30614 SET_LO8(edx, MEM8(ecx + 0x21)); /* 0x3614B6E3: mov dl, byte ptr [ecx + 0x21] */ 30615 /* test LO8(edx), LO8(edx) */ /* 0x3614B6E6: test dl, dl */ 30616 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 30617 _cf = 0; 30618 _flag_k = FK_NARROW(FK_TEST, 24); 30619 RECOMP_BACKEDGE(); 30620 if (TEST_Z(_flag_a, _flag_b)) goto L_3614B6DF; /* 0x3614B6E8: je 0x3614b6df */ 30621 L_3614B6EA: 30622 ebp = POP32_VAL(esp); /* 0x3614B6EA: pop ebp */ 30623 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614B6EB: ret */ 30624 RECOMP_REGS_OUT(); 30625 } 30626 30627 void sub_3614B6F0(void) { 30628 int _fpu_cmp = 0; 30629 uint32_t _cf = 0; 30630 int _df = 1; 30631 uint32_t _flag_k = FK_NONE; 30632 uint32_t _flag_a = 0, _flag_b = 0; 30633 uint32_t _itail_tgt = 0; 30634 RECOMP_REGS_LOCALS 30635 RECOMP_ENTER(0x3614B6F0u); 30636 30637 L_3614B6F0: 30638 PUSH32(esp, ebp); /* 0x3614B6F0: push ebp */ 30639 ebp = esp; /* 0x3614B6F1: mov ebp, esp */ 30640 PUSH32(esp, ecx); /* 0x3614B6F3: push ecx */ 30641 PUSH32(esp, ebx); /* 0x3614B6F4: push ebx */ 30642 PUSH32(esp, esi); /* 0x3614B6F5: push esi */ 30643 esi = MEM32(ebp + 0x8); /* 0x3614B6F6: mov esi, dword ptr [ebp + 8] */ 30644 SET_LO8(eax, MEM8(esi)); /* 0x3614B6F9: mov al, byte ptr [esi] */ 30645 PUSH32(esp, edi); /* 0x3614B6FB: push edi */ 30646 edi = ecx; /* 0x3614B6FC: mov edi, ecx */ 30647 MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x3614B6FE: mov byte ptr [edi], al */ 30648 eax = MEM32(esi + 0x4); /* 0x3614B700: mov eax, dword ptr [esi + 4] */ 30649 /* test eax, eax */ /* 0x3614B703: test eax, eax */ 30650 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 30651 _cf = 0; 30652 _flag_k = FK_TEST; 30653 MEM32(ebp + (-0x4)) = edi; /* 0x3614B705: mov dword ptr [ebp - 4], edi */ 30654 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B70E; /* 0x3614B708: jne 0x3614b70e */ 30655 L_3614B70A: 30656 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 30657 edx = 0; /* 0x3614B70A: xor edx, edx */ 30658 _cf = 0; 30659 _flag_k = FK_TEST; 30660 goto L_3614B724; /* 0x3614B70C: jmp 0x3614b724 */ 30661 L_3614B70E: 30662 ecx = MEM32(esi + 0x8); /* 0x3614B70E: mov ecx, dword ptr [esi + 8] */ 30663 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 30664 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30665 ecx = ecx - eax; /* 0x3614B711: sub ecx, eax */ 30666 _flag_k = FK_CMP; 30667 eax = 0x38E38E39u; /* 0x3614B713: mov eax, 0x38e38e39 */ 30668 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3614B718: imul ecx */ 30669 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 30670 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 30671 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3614B71A: sar edx, 3 */ 30672 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 30673 edx = (uint32_t)((int32_t)edx >> 3u); 30674 ecx = edx; /* 0x3614B71D: mov ecx, edx */ 30675 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3614B71F: shr ecx, 0x1f */ 30676 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 30677 ecx = ecx >> 31u; /* 0x3614B71F: shr ecx, 0x1f */ 30678 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 30679 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30680 edx = edx + ecx; /* 0x3614B722: add edx, ecx */ 30681 _flag_k = FK_ADD; 30682 L_3614B724: 30683 /* test edx, edx */ /* 0x3614B724: test edx, edx */ 30684 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 30685 _cf = 0; 30686 _flag_k = FK_TEST; 30687 eax = edx; /* 0x3614B726: mov eax, edx */ 30688 if (TEST_NS(_flag_a, _flag_b)) goto L_3614B72C; /* 0x3614B728: jge 0x3614b72c */ 30689 L_3614B72A: 30690 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 30691 eax = 0; /* 0x3614B72A: xor eax, eax */ 30692 _cf = 0; 30693 _flag_k = FK_TEST; 30694 L_3614B72C: 30695 edx = eax + eax * 8; /* 0x3614B72C: lea edx, [eax + eax*8] */ 30696 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x3614B72F: shl edx, 2 */ 30697 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 30698 edx = edx << 2u; /* 0x3614B72F: shl edx, 2 */ 30699 PUSH32(esp, edx); /* 0x3614B732: push edx */ 30700 RECOMP_ICALL(0x3615FD6Au); /* 0x3614B733: call 0x3615fd6a */ /* not lifted */ 30701 RECOMP_FLAGS_IN(); 30702 MEM32(edi + 0x4) = eax; /* 0x3614B738: mov dword ptr [edi + 4], eax */ 30703 ebx = MEM32(esi + 0x8); /* 0x3614B73B: mov ebx, dword ptr [esi + 8] */ 30704 esi = MEM32(esi + 0x4); /* 0x3614B73E: mov esi, dword ptr [esi + 4] */ 30705 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 30706 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30707 esp = esp + 4; /* 0x3614B741: add esp, 4 */ 30708 _flag_k = FK_ADD; 30709 /* cmp esi, ebx */ /* 0x3614B744: cmp esi, ebx */ 30710 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 30711 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30712 _flag_k = FK_CMP; 30713 edi = eax; /* 0x3614B746: mov edi, eax */ 30714 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B75E; /* 0x3614B748: je 0x3614b75e */ 30715 L_3614B74A: 30716 PUSH32(esp, esi); /* 0x3614B74A: push esi */ 30717 PUSH32(esp, edi); /* 0x3614B74B: push edi */ 30718 RECOMP_ICALL(0x36145920u); /* 0x3614B74C: call 0x36145920 */ /* not lifted */ 30719 RECOMP_FLAGS_IN(); 30720 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 30721 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30722 esi = esi + 0x24u; /* 0x3614B751: add esi, 0x24 */ 30723 _flag_k = FK_ADD; 30724 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 30725 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30726 esp = esp + 8; /* 0x3614B754: add esp, 8 */ 30727 _flag_k = FK_ADD; 30728 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x24u); 30729 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30730 edi = edi + 0x24u; /* 0x3614B757: add edi, 0x24 */ 30731 _flag_k = FK_ADD; 30732 /* cmp esi, ebx */ /* 0x3614B75A: cmp esi, ebx */ 30733 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 30734 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30735 _flag_k = FK_CMP; 30736 RECOMP_BACKEDGE(); 30737 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B74A; /* 0x3614B75C: jne 0x3614b74a */ 30738 L_3614B75E: 30739 eax = MEM32(ebp + (-0x4)); /* 0x3614B75E: mov eax, dword ptr [ebp - 4] */ 30740 MEM32(eax + 0x8) = edi; /* 0x3614B761: mov dword ptr [eax + 8], edi */ 30741 MEM32(eax + 0xC) = edi; /* 0x3614B764: mov dword ptr [eax + 0xc], edi */ 30742 edi = POP32_VAL(esp); /* 0x3614B767: pop edi */ 30743 esi = POP32_VAL(esp); /* 0x3614B768: pop esi */ 30744 ebx = POP32_VAL(esp); /* 0x3614B769: pop ebx */ 30745 esp = ebp; /* 0x3614B76A: mov esp, ebp */ 30746 ebp = POP32_VAL(esp); /* 0x3614B76C: pop ebp */ 30747 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614B76D: ret 4 */ 30748 RECOMP_REGS_OUT(); 30749 } 30750 30751 void sub_3614B770(void) { 30752 int _fpu_cmp = 0; 30753 uint32_t _cf = 0; 30754 int _df = 1; 30755 uint32_t _flag_k = FK_NONE; 30756 uint32_t _flag_a = 0, _flag_b = 0; 30757 uint32_t _itail_tgt = 0; 30758 RECOMP_REGS_LOCALS 30759 RECOMP_ENTER(0x3614B770u); 30760 30761 L_3614B770: 30762 PUSH32(esp, ebp); /* 0x3614B770: push ebp */ 30763 ebp = esp; /* 0x3614B771: mov ebp, esp */ 30764 PUSH32(esp, ecx); /* 0x3614B773: push ecx */ 30765 PUSH32(esp, ebx); /* 0x3614B774: push ebx */ 30766 PUSH32(esp, esi); /* 0x3614B775: push esi */ 30767 PUSH32(esp, edi); /* 0x3614B776: push edi */ 30768 PUSH32(esp, 0x24u); /* 0x3614B777: push 0x24 */ 30769 esi = ecx; /* 0x3614B779: mov esi, ecx */ 30770 RECOMP_ICALL(0x3615FD6Au); /* 0x3614B77B: call 0x3615fd6a */ /* not lifted */ 30771 RECOMP_FLAGS_IN(); 30772 edi = MEM32(ebp + 0x10); /* 0x3614B780: mov edi, dword ptr [ebp + 0x10] */ 30773 ebx = MEM32(ebp + 0x14); /* 0x3614B783: mov ebx, dword ptr [ebp + 0x14] */ 30774 MEM32(eax + 0x4) = edi; /* 0x3614B786: mov dword ptr [eax + 4], edi */ 30775 MEM8(eax + 0x20) = (uint8_t)(0); /* 0x3614B789: mov byte ptr [eax + 0x20], 0 */ 30776 MEM8(eax + 0x21) = (uint8_t)(0); /* 0x3614B78D: mov byte ptr [eax + 0x21], 0 */ 30777 ecx = MEM32(esi + 0x8); /* 0x3614B791: mov ecx, dword ptr [esi + 8] */ 30778 MEM32(eax) = ecx; /* 0x3614B794: mov dword ptr [eax], ecx */ 30779 edx = MEM32(esi + 0x8); /* 0x3614B796: mov edx, dword ptr [esi + 8] */ 30780 MEM32(ebp + (-0x4)) = eax; /* 0x3614B799: mov dword ptr [ebp - 4], eax */ 30781 MEM32(eax + 0x8) = edx; /* 0x3614B79C: mov dword ptr [eax + 8], edx */ 30782 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 30783 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30784 eax = eax + 0xCu; /* 0x3614B79F: add eax, 0xc */ 30785 _flag_k = FK_ADD; 30786 PUSH32(esp, ebx); /* 0x3614B7A2: push ebx */ 30787 PUSH32(esp, eax); /* 0x3614B7A3: push eax */ 30788 RECOMP_ICALL(0x3614B9E0u); /* 0x3614B7A4: call 0x3614b9e0 */ /* not lifted */ 30789 RECOMP_FLAGS_IN(); 30790 ecx = MEM32(esi + 0x10); /* 0x3614B7A9: mov ecx, dword ptr [esi + 0x10] */ 30791 eax = MEM32(esi + 0x4); /* 0x3614B7AC: mov eax, dword ptr [esi + 4] */ 30792 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 30793 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 30794 esp = esp + 0xCu; /* 0x3614B7AF: add esp, 0xc */ 30795 _flag_k = FK_ADD; 30796 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 30797 ecx = ecx + 1; /* 0x3614B7B2: inc ecx */ 30798 _flag_k = FK_INC; 30799 /* cmp edi, eax */ /* 0x3614B7B3: cmp edi, eax */ 30800 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 30801 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30802 _flag_k = FK_CMP; 30803 MEM32(esi + 0x10) = ecx; /* 0x3614B7B5: mov dword ptr [esi + 0x10], ecx */ 30804 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B7DC; /* 0x3614B7B8: je 0x3614b7dc */ 30805 L_3614B7BA: 30806 eax = MEM32(ebp + 0xC); /* 0x3614B7BA: mov eax, dword ptr [ebp + 0xc] */ 30807 /* cmp eax, MEM32(esi + 0x8) */ /* 0x3614B7BD: cmp eax, dword ptr [esi + 8] */ 30808 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 30809 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30810 _flag_k = FK_CMP; 30811 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B7DC; /* 0x3614B7C0: jne 0x3614b7dc */ 30812 L_3614B7C2: 30813 ecx = MEM32(ebx); /* 0x3614B7C2: mov ecx, dword ptr [ebx] */ 30814 /* cmp ecx, MEM32(edi + 0xC) */ /* 0x3614B7C4: cmp ecx, dword ptr [edi + 0xc] */ 30815 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0xC)); 30816 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30817 _flag_k = FK_CMP; 30818 if (CMP_B(_flag_a, _flag_b)) goto L_3614B7DC; /* 0x3614B7C7: jb 0x3614b7dc */ 30819 L_3614B7C9: 30820 ecx = MEM32(ebp + (-0x4)); /* 0x3614B7C9: mov ecx, dword ptr [ebp - 4] */ 30821 MEM32(edi + 0x8) = ecx; /* 0x3614B7CC: mov dword ptr [edi + 8], ecx */ 30822 eax = MEM32(esi + 0x4); /* 0x3614B7CF: mov eax, dword ptr [esi + 4] */ 30823 /* cmp edi, MEM32(eax + 0x8) */ /* 0x3614B7D2: cmp edi, dword ptr [eax + 8] */ 30824 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 30825 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30826 _flag_k = FK_CMP; 30827 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B7FC; /* 0x3614B7D5: jne 0x3614b7fc */ 30828 L_3614B7D7: 30829 MEM32(eax + 0x8) = ecx; /* 0x3614B7D7: mov dword ptr [eax + 8], ecx */ 30830 goto L_3614B7FC; /* 0x3614B7DA: jmp 0x3614b7fc */ 30831 L_3614B7DC: 30832 ecx = MEM32(ebp + (-0x4)); /* 0x3614B7DC: mov ecx, dword ptr [ebp - 4] */ 30833 MEM32(edi) = ecx; /* 0x3614B7DF: mov dword ptr [edi], ecx */ 30834 eax = MEM32(esi + 0x4); /* 0x3614B7E1: mov eax, dword ptr [esi + 4] */ 30835 /* cmp edi, eax */ /* 0x3614B7E4: cmp edi, eax */ 30836 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 30837 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30838 _flag_k = FK_CMP; 30839 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B7F3; /* 0x3614B7E6: jne 0x3614b7f3 */ 30840 L_3614B7E8: 30841 MEM32(eax + 0x4) = ecx; /* 0x3614B7E8: mov dword ptr [eax + 4], ecx */ 30842 edx = MEM32(esi + 0x4); /* 0x3614B7EB: mov edx, dword ptr [esi + 4] */ 30843 MEM32(edx + 0x8) = ecx; /* 0x3614B7EE: mov dword ptr [edx + 8], ecx */ 30844 goto L_3614B7FC; /* 0x3614B7F1: jmp 0x3614b7fc */ 30845 L_3614B7F3: 30846 /* cmp edi, MEM32(eax) */ /* 0x3614B7F3: cmp edi, dword ptr [eax] */ 30847 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax)); 30848 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30849 _flag_k = FK_CMP; 30850 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B7FC; /* 0x3614B7F5: jne 0x3614b7fc */ 30851 L_3614B7F7: 30852 ecx = MEM32(ebp + (-0x4)); /* 0x3614B7F7: mov ecx, dword ptr [ebp - 4] */ 30853 MEM32(eax) = ecx; /* 0x3614B7FA: mov dword ptr [eax], ecx */ 30854 L_3614B7FC: 30855 edx = MEM32(esi + 0x4); /* 0x3614B7FC: mov edx, dword ptr [esi + 4] */ 30856 eax = MEM32(ebp + (-0x4)); /* 0x3614B7FF: mov eax, dword ptr [ebp - 4] */ 30857 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614B802: cmp eax, dword ptr [edx + 4] */ 30858 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 30859 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30860 _flag_k = FK_CMP; 30861 SET_LO8(ebx, 1); /* 0x3614B805: mov bl, 1 */ 30862 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B98D; /* 0x3614B807: je 0x3614b98d */ 30863 L_3614B80D: 30864 ecx = MEM32(eax + 0x4); /* 0x3614B80D: mov ecx, dword ptr [eax + 4] */ 30865 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B810: mov dl, byte ptr [ecx + 0x20] */ 30866 /* test LO8(edx), LO8(edx) */ /* 0x3614B813: test dl, dl */ 30867 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 30868 _cf = 0; 30869 _flag_k = FK_NARROW(FK_TEST, 24); 30870 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B98D; /* 0x3614B815: jne 0x3614b98d */ 30871 L_3614B81B: 30872 edi = MEM32(ecx + 0x4); /* 0x3614B81B: mov edi, dword ptr [ecx + 4] */ 30873 edx = MEM32(edi); /* 0x3614B81E: mov edx, dword ptr [edi] */ 30874 /* cmp ecx, edx */ /* 0x3614B820: cmp ecx, edx */ 30875 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 30876 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30877 _flag_k = FK_CMP; 30878 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8E9; /* 0x3614B822: jne 0x3614b8e9 */ 30879 L_3614B828: 30880 edx = MEM32(edi + 0x8); /* 0x3614B828: mov edx, dword ptr [edi + 8] */ 30881 /* cmp MEM8(edx + 0x20), 0 */ /* 0x3614B82B: cmp byte ptr [edx + 0x20], 0 */ 30882 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 30883 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30884 _flag_k = FK_NARROW(FK_CMP, 24); 30885 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B84C; /* 0x3614B82F: jne 0x3614b84c */ 30886 L_3614B831: 30887 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B831: mov byte ptr [ecx + 0x20], bl */ 30888 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B834: mov byte ptr [edx + 0x20], bl */ 30889 ecx = MEM32(eax + 0x4); /* 0x3614B837: mov ecx, dword ptr [eax + 4] */ 30890 edx = MEM32(ecx + 0x4); /* 0x3614B83A: mov edx, dword ptr [ecx + 4] */ 30891 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x3614B83D: mov byte ptr [edx + 0x20], 0 */ 30892 eax = MEM32(eax + 0x4); /* 0x3614B841: mov eax, dword ptr [eax + 4] */ 30893 eax = MEM32(eax + 0x4); /* 0x3614B844: mov eax, dword ptr [eax + 4] */ 30894 goto L_3614B981; /* 0x3614B847: jmp 0x3614b981 */ 30895 L_3614B84C: 30896 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3614B84C: cmp eax, dword ptr [ecx + 8] */ 30897 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 30898 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30899 _flag_k = FK_CMP; 30900 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B88B; /* 0x3614B84F: jne 0x3614b88b */ 30901 L_3614B851: 30902 eax = ecx; /* 0x3614B851: mov eax, ecx */ 30903 ecx = MEM32(eax + 0x8); /* 0x3614B853: mov ecx, dword ptr [eax + 8] */ 30904 edx = MEM32(ecx); /* 0x3614B856: mov edx, dword ptr [ecx] */ 30905 MEM32(eax + 0x8) = edx; /* 0x3614B858: mov dword ptr [eax + 8], edx */ 30906 edx = MEM32(ecx); /* 0x3614B85B: mov edx, dword ptr [ecx] */ 30907 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614B85D: cmp edx, dword ptr [esi + 8] */ 30908 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 30909 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30910 _flag_k = FK_CMP; 30911 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B865; /* 0x3614B860: je 0x3614b865 */ 30912 L_3614B862: 30913 MEM32(edx + 0x4) = eax; /* 0x3614B862: mov dword ptr [edx + 4], eax */ 30914 L_3614B865: 30915 edx = MEM32(eax + 0x4); /* 0x3614B865: mov edx, dword ptr [eax + 4] */ 30916 MEM32(ecx + 0x4) = edx; /* 0x3614B868: mov dword ptr [ecx + 4], edx */ 30917 edx = MEM32(esi + 0x4); /* 0x3614B86B: mov edx, dword ptr [esi + 4] */ 30918 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614B86E: cmp eax, dword ptr [edx + 4] */ 30919 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 30920 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30921 _flag_k = FK_CMP; 30922 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B878; /* 0x3614B871: jne 0x3614b878 */ 30923 L_3614B873: 30924 MEM32(edx + 0x4) = ecx; /* 0x3614B873: mov dword ptr [edx + 4], ecx */ 30925 goto L_3614B886; /* 0x3614B876: jmp 0x3614b886 */ 30926 L_3614B878: 30927 edx = MEM32(eax + 0x4); /* 0x3614B878: mov edx, dword ptr [eax + 4] */ 30928 /* cmp eax, MEM32(edx) */ /* 0x3614B87B: cmp eax, dword ptr [edx] */ 30929 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 30930 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30931 _flag_k = FK_CMP; 30932 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B883; /* 0x3614B87D: jne 0x3614b883 */ 30933 L_3614B87F: 30934 MEM32(edx) = ecx; /* 0x3614B87F: mov dword ptr [edx], ecx */ 30935 goto L_3614B886; /* 0x3614B881: jmp 0x3614b886 */ 30936 L_3614B883: 30937 MEM32(edx + 0x8) = ecx; /* 0x3614B883: mov dword ptr [edx + 8], ecx */ 30938 L_3614B886: 30939 MEM32(ecx) = eax; /* 0x3614B886: mov dword ptr [ecx], eax */ 30940 MEM32(eax + 0x4) = ecx; /* 0x3614B888: mov dword ptr [eax + 4], ecx */ 30941 L_3614B88B: 30942 ecx = MEM32(eax + 0x4); /* 0x3614B88B: mov ecx, dword ptr [eax + 4] */ 30943 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B88E: mov byte ptr [ecx + 0x20], bl */ 30944 edx = MEM32(eax + 0x4); /* 0x3614B891: mov edx, dword ptr [eax + 4] */ 30945 ecx = MEM32(edx + 0x4); /* 0x3614B894: mov ecx, dword ptr [edx + 4] */ 30946 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B897: mov byte ptr [ecx + 0x20], 0 */ 30947 edx = MEM32(eax + 0x4); /* 0x3614B89B: mov edx, dword ptr [eax + 4] */ 30948 ecx = MEM32(edx + 0x4); /* 0x3614B89E: mov ecx, dword ptr [edx + 4] */ 30949 edx = MEM32(ecx); /* 0x3614B8A1: mov edx, dword ptr [ecx] */ 30950 edi = MEM32(edx + 0x8); /* 0x3614B8A3: mov edi, dword ptr [edx + 8] */ 30951 MEM32(ecx) = edi; /* 0x3614B8A6: mov dword ptr [ecx], edi */ 30952 edi = MEM32(edx + 0x8); /* 0x3614B8A8: mov edi, dword ptr [edx + 8] */ 30953 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614B8AB: cmp edi, dword ptr [esi + 8] */ 30954 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 30955 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30956 _flag_k = FK_CMP; 30957 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B8B3; /* 0x3614B8AE: je 0x3614b8b3 */ 30958 L_3614B8B0: 30959 MEM32(edi + 0x4) = ecx; /* 0x3614B8B0: mov dword ptr [edi + 4], ecx */ 30960 L_3614B8B3: 30961 edi = MEM32(ecx + 0x4); /* 0x3614B8B3: mov edi, dword ptr [ecx + 4] */ 30962 MEM32(edx + 0x4) = edi; /* 0x3614B8B6: mov dword ptr [edx + 4], edi */ 30963 edi = MEM32(esi + 0x4); /* 0x3614B8B9: mov edi, dword ptr [esi + 4] */ 30964 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614B8BC: cmp ecx, dword ptr [edi + 4] */ 30965 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 30966 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30967 _flag_k = FK_CMP; 30968 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8CC; /* 0x3614B8BF: jne 0x3614b8cc */ 30969 L_3614B8C1: 30970 MEM32(edi + 0x4) = edx; /* 0x3614B8C1: mov dword ptr [edi + 4], edx */ 30971 MEM32(edx + 0x8) = ecx; /* 0x3614B8C4: mov dword ptr [edx + 8], ecx */ 30972 goto L_3614B97E; /* 0x3614B8C7: jmp 0x3614b97e */ 30973 L_3614B8CC: 30974 edi = MEM32(ecx + 0x4); /* 0x3614B8CC: mov edi, dword ptr [ecx + 4] */ 30975 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614B8CF: cmp ecx, dword ptr [edi + 8] */ 30976 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 30977 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30978 _flag_k = FK_CMP; 30979 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8DF; /* 0x3614B8D2: jne 0x3614b8df */ 30980 L_3614B8D4: 30981 MEM32(edi + 0x8) = edx; /* 0x3614B8D4: mov dword ptr [edi + 8], edx */ 30982 MEM32(edx + 0x8) = ecx; /* 0x3614B8D7: mov dword ptr [edx + 8], ecx */ 30983 goto L_3614B97E; /* 0x3614B8DA: jmp 0x3614b97e */ 30984 L_3614B8DF: 30985 MEM32(edi) = edx; /* 0x3614B8DF: mov dword ptr [edi], edx */ 30986 MEM32(edx + 0x8) = ecx; /* 0x3614B8E1: mov dword ptr [edx + 8], ecx */ 30987 goto L_3614B97E; /* 0x3614B8E4: jmp 0x3614b97e */ 30988 L_3614B8E9: 30989 /* cmp MEM8(edx + 0x20), 0 */ /* 0x3614B8E9: cmp byte ptr [edx + 0x20], 0 */ 30990 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 30991 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30992 _flag_k = FK_NARROW(FK_CMP, 24); 30993 RECOMP_BACKEDGE(); 30994 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B831; /* 0x3614B8ED: je 0x3614b831 */ 30995 L_3614B8F3: 30996 /* cmp eax, MEM32(ecx) */ /* 0x3614B8F3: cmp eax, dword ptr [ecx] */ 30997 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 30998 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 30999 _flag_k = FK_CMP; 31000 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B933; /* 0x3614B8F5: jne 0x3614b933 */ 31001 L_3614B8F7: 31002 eax = ecx; /* 0x3614B8F7: mov eax, ecx */ 31003 ecx = MEM32(eax); /* 0x3614B8F9: mov ecx, dword ptr [eax] */ 31004 edx = MEM32(ecx + 0x8); /* 0x3614B8FB: mov edx, dword ptr [ecx + 8] */ 31005 MEM32(eax) = edx; /* 0x3614B8FE: mov dword ptr [eax], edx */ 31006 edx = MEM32(ecx + 0x8); /* 0x3614B900: mov edx, dword ptr [ecx + 8] */ 31007 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614B903: cmp edx, dword ptr [esi + 8] */ 31008 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 31009 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31010 _flag_k = FK_CMP; 31011 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B90B; /* 0x3614B906: je 0x3614b90b */ 31012 L_3614B908: 31013 MEM32(edx + 0x4) = eax; /* 0x3614B908: mov dword ptr [edx + 4], eax */ 31014 L_3614B90B: 31015 edx = MEM32(eax + 0x4); /* 0x3614B90B: mov edx, dword ptr [eax + 4] */ 31016 MEM32(ecx + 0x4) = edx; /* 0x3614B90E: mov dword ptr [ecx + 4], edx */ 31017 edx = MEM32(esi + 0x4); /* 0x3614B911: mov edx, dword ptr [esi + 4] */ 31018 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614B914: cmp eax, dword ptr [edx + 4] */ 31019 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 31020 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31021 _flag_k = FK_CMP; 31022 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B91E; /* 0x3614B917: jne 0x3614b91e */ 31023 L_3614B919: 31024 MEM32(edx + 0x4) = ecx; /* 0x3614B919: mov dword ptr [edx + 4], ecx */ 31025 goto L_3614B92D; /* 0x3614B91C: jmp 0x3614b92d */ 31026 L_3614B91E: 31027 edx = MEM32(eax + 0x4); /* 0x3614B91E: mov edx, dword ptr [eax + 4] */ 31028 /* cmp eax, MEM32(edx + 0x8) */ /* 0x3614B921: cmp eax, dword ptr [edx + 8] */ 31029 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 31030 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31031 _flag_k = FK_CMP; 31032 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B92B; /* 0x3614B924: jne 0x3614b92b */ 31033 L_3614B926: 31034 MEM32(edx + 0x8) = ecx; /* 0x3614B926: mov dword ptr [edx + 8], ecx */ 31035 goto L_3614B92D; /* 0x3614B929: jmp 0x3614b92d */ 31036 L_3614B92B: 31037 MEM32(edx) = ecx; /* 0x3614B92B: mov dword ptr [edx], ecx */ 31038 L_3614B92D: 31039 MEM32(ecx + 0x8) = eax; /* 0x3614B92D: mov dword ptr [ecx + 8], eax */ 31040 MEM32(eax + 0x4) = ecx; /* 0x3614B930: mov dword ptr [eax + 4], ecx */ 31041 L_3614B933: 31042 ecx = MEM32(eax + 0x4); /* 0x3614B933: mov ecx, dword ptr [eax + 4] */ 31043 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B936: mov byte ptr [ecx + 0x20], bl */ 31044 edx = MEM32(eax + 0x4); /* 0x3614B939: mov edx, dword ptr [eax + 4] */ 31045 ecx = MEM32(edx + 0x4); /* 0x3614B93C: mov ecx, dword ptr [edx + 4] */ 31046 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B93F: mov byte ptr [ecx + 0x20], 0 */ 31047 edx = MEM32(eax + 0x4); /* 0x3614B943: mov edx, dword ptr [eax + 4] */ 31048 ecx = MEM32(edx + 0x4); /* 0x3614B946: mov ecx, dword ptr [edx + 4] */ 31049 edx = MEM32(ecx + 0x8); /* 0x3614B949: mov edx, dword ptr [ecx + 8] */ 31050 edi = MEM32(edx); /* 0x3614B94C: mov edi, dword ptr [edx] */ 31051 MEM32(ecx + 0x8) = edi; /* 0x3614B94E: mov dword ptr [ecx + 8], edi */ 31052 edi = MEM32(edx); /* 0x3614B951: mov edi, dword ptr [edx] */ 31053 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614B953: cmp edi, dword ptr [esi + 8] */ 31054 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 31055 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31056 _flag_k = FK_CMP; 31057 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B95B; /* 0x3614B956: je 0x3614b95b */ 31058 L_3614B958: 31059 MEM32(edi + 0x4) = ecx; /* 0x3614B958: mov dword ptr [edi + 4], ecx */ 31060 L_3614B95B: 31061 edi = MEM32(ecx + 0x4); /* 0x3614B95B: mov edi, dword ptr [ecx + 4] */ 31062 MEM32(edx + 0x4) = edi; /* 0x3614B95E: mov dword ptr [edx + 4], edi */ 31063 edi = MEM32(esi + 0x4); /* 0x3614B961: mov edi, dword ptr [esi + 4] */ 31064 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614B964: cmp ecx, dword ptr [edi + 4] */ 31065 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 31066 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31067 _flag_k = FK_CMP; 31068 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B96E; /* 0x3614B967: jne 0x3614b96e */ 31069 L_3614B969: 31070 MEM32(edi + 0x4) = edx; /* 0x3614B969: mov dword ptr [edi + 4], edx */ 31071 goto L_3614B97C; /* 0x3614B96C: jmp 0x3614b97c */ 31072 L_3614B96E: 31073 edi = MEM32(ecx + 0x4); /* 0x3614B96E: mov edi, dword ptr [ecx + 4] */ 31074 /* cmp ecx, MEM32(edi) */ /* 0x3614B971: cmp ecx, dword ptr [edi] */ 31075 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 31076 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31077 _flag_k = FK_CMP; 31078 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B979; /* 0x3614B973: jne 0x3614b979 */ 31079 L_3614B975: 31080 MEM32(edi) = edx; /* 0x3614B975: mov dword ptr [edi], edx */ 31081 goto L_3614B97C; /* 0x3614B977: jmp 0x3614b97c */ 31082 L_3614B979: 31083 MEM32(edi + 0x8) = edx; /* 0x3614B979: mov dword ptr [edi + 8], edx */ 31084 L_3614B97C: 31085 MEM32(edx) = ecx; /* 0x3614B97C: mov dword ptr [edx], ecx */ 31086 L_3614B97E: 31087 MEM32(ecx + 0x4) = edx; /* 0x3614B97E: mov dword ptr [ecx + 4], edx */ 31088 L_3614B981: 31089 ecx = MEM32(esi + 0x4); /* 0x3614B981: mov ecx, dword ptr [esi + 4] */ 31090 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B984: cmp eax, dword ptr [ecx + 4] */ 31091 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 31092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31093 _flag_k = FK_CMP; 31094 RECOMP_BACKEDGE(); 31095 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B80D; /* 0x3614B987: jne 0x3614b80d */ 31096 L_3614B98D: 31097 edx = MEM32(esi + 0x4); /* 0x3614B98D: mov edx, dword ptr [esi + 4] */ 31098 eax = MEM32(edx + 0x4); /* 0x3614B990: mov eax, dword ptr [edx + 4] */ 31099 ecx = MEM32(ebp + (-0x4)); /* 0x3614B993: mov ecx, dword ptr [ebp - 4] */ 31100 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B996: mov byte ptr [eax + 0x20], bl */ 31101 eax = MEM32(ebp + 0x8); /* 0x3614B999: mov eax, dword ptr [ebp + 8] */ 31102 edi = POP32_VAL(esp); /* 0x3614B99C: pop edi */ 31103 esi = POP32_VAL(esp); /* 0x3614B99D: pop esi */ 31104 MEM32(eax) = ecx; /* 0x3614B99E: mov dword ptr [eax], ecx */ 31105 ebx = POP32_VAL(esp); /* 0x3614B9A0: pop ebx */ 31106 esp = ebp; /* 0x3614B9A1: mov esp, ebp */ 31107 ebp = POP32_VAL(esp); /* 0x3614B9A3: pop ebp */ 31108 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3614B9A4: ret 0x10 */ 31109 RECOMP_REGS_OUT(); 31110 } 31111 31112 void sub_3614B80D(void) { 31113 int _fpu_cmp = 0; 31114 uint32_t _cf = 0; 31115 int _df = 1; 31116 uint32_t _flag_k = FK_NONE; 31117 uint32_t _flag_a = 0, _flag_b = 0; 31118 uint32_t _itail_tgt = 0; 31119 RECOMP_REGS_LOCALS 31120 RECOMP_ENTER(0x3614B80Du); 31121 31122 L_3614B80D: 31123 ecx = MEM32(eax + 0x4); /* 0x3614B80D: mov ecx, dword ptr [eax + 4] */ 31124 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B810: mov dl, byte ptr [ecx + 0x20] */ 31125 /* test LO8(edx), LO8(edx) */ /* 0x3614B813: test dl, dl */ 31126 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 31127 _cf = 0; 31128 _flag_k = FK_NARROW(FK_TEST, 24); 31129 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B98D; /* 0x3614B815: jne 0x3614b98d */ 31130 L_3614B81B: 31131 edi = MEM32(ecx + 0x4); /* 0x3614B81B: mov edi, dword ptr [ecx + 4] */ 31132 edx = MEM32(edi); /* 0x3614B81E: mov edx, dword ptr [edi] */ 31133 /* cmp ecx, edx */ /* 0x3614B820: cmp ecx, edx */ 31134 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 31135 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31136 _flag_k = FK_CMP; 31137 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8E9; /* 0x3614B822: jne 0x3614b8e9 */ 31138 L_3614B828: 31139 edx = MEM32(edi + 0x8); /* 0x3614B828: mov edx, dword ptr [edi + 8] */ 31140 /* cmp MEM8(edx + 0x20), 0 */ /* 0x3614B82B: cmp byte ptr [edx + 0x20], 0 */ 31141 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 31142 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31143 _flag_k = FK_NARROW(FK_CMP, 24); 31144 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B84C; /* 0x3614B82F: jne 0x3614b84c */ 31145 L_3614B831: 31146 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B831: mov byte ptr [ecx + 0x20], bl */ 31147 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B834: mov byte ptr [edx + 0x20], bl */ 31148 ecx = MEM32(eax + 0x4); /* 0x3614B837: mov ecx, dword ptr [eax + 4] */ 31149 edx = MEM32(ecx + 0x4); /* 0x3614B83A: mov edx, dword ptr [ecx + 4] */ 31150 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x3614B83D: mov byte ptr [edx + 0x20], 0 */ 31151 eax = MEM32(eax + 0x4); /* 0x3614B841: mov eax, dword ptr [eax + 4] */ 31152 eax = MEM32(eax + 0x4); /* 0x3614B844: mov eax, dword ptr [eax + 4] */ 31153 goto L_3614B981; /* 0x3614B847: jmp 0x3614b981 */ 31154 L_3614B84C: 31155 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3614B84C: cmp eax, dword ptr [ecx + 8] */ 31156 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 31157 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31158 _flag_k = FK_CMP; 31159 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B88B; /* 0x3614B84F: jne 0x3614b88b */ 31160 L_3614B851: 31161 eax = ecx; /* 0x3614B851: mov eax, ecx */ 31162 ecx = MEM32(eax + 0x8); /* 0x3614B853: mov ecx, dword ptr [eax + 8] */ 31163 edx = MEM32(ecx); /* 0x3614B856: mov edx, dword ptr [ecx] */ 31164 MEM32(eax + 0x8) = edx; /* 0x3614B858: mov dword ptr [eax + 8], edx */ 31165 edx = MEM32(ecx); /* 0x3614B85B: mov edx, dword ptr [ecx] */ 31166 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614B85D: cmp edx, dword ptr [esi + 8] */ 31167 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 31168 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31169 _flag_k = FK_CMP; 31170 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B865; /* 0x3614B860: je 0x3614b865 */ 31171 L_3614B862: 31172 MEM32(edx + 0x4) = eax; /* 0x3614B862: mov dword ptr [edx + 4], eax */ 31173 L_3614B865: 31174 edx = MEM32(eax + 0x4); /* 0x3614B865: mov edx, dword ptr [eax + 4] */ 31175 MEM32(ecx + 0x4) = edx; /* 0x3614B868: mov dword ptr [ecx + 4], edx */ 31176 edx = MEM32(esi + 0x4); /* 0x3614B86B: mov edx, dword ptr [esi + 4] */ 31177 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614B86E: cmp eax, dword ptr [edx + 4] */ 31178 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 31179 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31180 _flag_k = FK_CMP; 31181 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B878; /* 0x3614B871: jne 0x3614b878 */ 31182 L_3614B873: 31183 MEM32(edx + 0x4) = ecx; /* 0x3614B873: mov dword ptr [edx + 4], ecx */ 31184 goto L_3614B886; /* 0x3614B876: jmp 0x3614b886 */ 31185 L_3614B878: 31186 edx = MEM32(eax + 0x4); /* 0x3614B878: mov edx, dword ptr [eax + 4] */ 31187 /* cmp eax, MEM32(edx) */ /* 0x3614B87B: cmp eax, dword ptr [edx] */ 31188 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 31189 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31190 _flag_k = FK_CMP; 31191 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B883; /* 0x3614B87D: jne 0x3614b883 */ 31192 L_3614B87F: 31193 MEM32(edx) = ecx; /* 0x3614B87F: mov dword ptr [edx], ecx */ 31194 goto L_3614B886; /* 0x3614B881: jmp 0x3614b886 */ 31195 L_3614B883: 31196 MEM32(edx + 0x8) = ecx; /* 0x3614B883: mov dword ptr [edx + 8], ecx */ 31197 L_3614B886: 31198 MEM32(ecx) = eax; /* 0x3614B886: mov dword ptr [ecx], eax */ 31199 MEM32(eax + 0x4) = ecx; /* 0x3614B888: mov dword ptr [eax + 4], ecx */ 31200 L_3614B88B: 31201 ecx = MEM32(eax + 0x4); /* 0x3614B88B: mov ecx, dword ptr [eax + 4] */ 31202 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B88E: mov byte ptr [ecx + 0x20], bl */ 31203 edx = MEM32(eax + 0x4); /* 0x3614B891: mov edx, dword ptr [eax + 4] */ 31204 ecx = MEM32(edx + 0x4); /* 0x3614B894: mov ecx, dword ptr [edx + 4] */ 31205 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B897: mov byte ptr [ecx + 0x20], 0 */ 31206 edx = MEM32(eax + 0x4); /* 0x3614B89B: mov edx, dword ptr [eax + 4] */ 31207 ecx = MEM32(edx + 0x4); /* 0x3614B89E: mov ecx, dword ptr [edx + 4] */ 31208 edx = MEM32(ecx); /* 0x3614B8A1: mov edx, dword ptr [ecx] */ 31209 edi = MEM32(edx + 0x8); /* 0x3614B8A3: mov edi, dword ptr [edx + 8] */ 31210 MEM32(ecx) = edi; /* 0x3614B8A6: mov dword ptr [ecx], edi */ 31211 edi = MEM32(edx + 0x8); /* 0x3614B8A8: mov edi, dword ptr [edx + 8] */ 31212 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614B8AB: cmp edi, dword ptr [esi + 8] */ 31213 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 31214 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31215 _flag_k = FK_CMP; 31216 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B8B3; /* 0x3614B8AE: je 0x3614b8b3 */ 31217 L_3614B8B0: 31218 MEM32(edi + 0x4) = ecx; /* 0x3614B8B0: mov dword ptr [edi + 4], ecx */ 31219 L_3614B8B3: 31220 edi = MEM32(ecx + 0x4); /* 0x3614B8B3: mov edi, dword ptr [ecx + 4] */ 31221 MEM32(edx + 0x4) = edi; /* 0x3614B8B6: mov dword ptr [edx + 4], edi */ 31222 edi = MEM32(esi + 0x4); /* 0x3614B8B9: mov edi, dword ptr [esi + 4] */ 31223 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614B8BC: cmp ecx, dword ptr [edi + 4] */ 31224 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 31225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31226 _flag_k = FK_CMP; 31227 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8CC; /* 0x3614B8BF: jne 0x3614b8cc */ 31228 L_3614B8C1: 31229 MEM32(edi + 0x4) = edx; /* 0x3614B8C1: mov dword ptr [edi + 4], edx */ 31230 MEM32(edx + 0x8) = ecx; /* 0x3614B8C4: mov dword ptr [edx + 8], ecx */ 31231 goto L_3614B97E; /* 0x3614B8C7: jmp 0x3614b97e */ 31232 L_3614B8CC: 31233 edi = MEM32(ecx + 0x4); /* 0x3614B8CC: mov edi, dword ptr [ecx + 4] */ 31234 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614B8CF: cmp ecx, dword ptr [edi + 8] */ 31235 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 31236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31237 _flag_k = FK_CMP; 31238 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8DF; /* 0x3614B8D2: jne 0x3614b8df */ 31239 L_3614B8D4: 31240 MEM32(edi + 0x8) = edx; /* 0x3614B8D4: mov dword ptr [edi + 8], edx */ 31241 MEM32(edx + 0x8) = ecx; /* 0x3614B8D7: mov dword ptr [edx + 8], ecx */ 31242 goto L_3614B97E; /* 0x3614B8DA: jmp 0x3614b97e */ 31243 L_3614B8DF: 31244 MEM32(edi) = edx; /* 0x3614B8DF: mov dword ptr [edi], edx */ 31245 MEM32(edx + 0x8) = ecx; /* 0x3614B8E1: mov dword ptr [edx + 8], ecx */ 31246 goto L_3614B97E; /* 0x3614B8E4: jmp 0x3614b97e */ 31247 L_3614B8E9: 31248 /* cmp MEM8(edx + 0x20), 0 */ /* 0x3614B8E9: cmp byte ptr [edx + 0x20], 0 */ 31249 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 31250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31251 _flag_k = FK_NARROW(FK_CMP, 24); 31252 RECOMP_BACKEDGE(); 31253 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B831; /* 0x3614B8ED: je 0x3614b831 */ 31254 L_3614B8F3: 31255 /* cmp eax, MEM32(ecx) */ /* 0x3614B8F3: cmp eax, dword ptr [ecx] */ 31256 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 31257 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31258 _flag_k = FK_CMP; 31259 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B933; /* 0x3614B8F5: jne 0x3614b933 */ 31260 L_3614B8F7: 31261 eax = ecx; /* 0x3614B8F7: mov eax, ecx */ 31262 ecx = MEM32(eax); /* 0x3614B8F9: mov ecx, dword ptr [eax] */ 31263 edx = MEM32(ecx + 0x8); /* 0x3614B8FB: mov edx, dword ptr [ecx + 8] */ 31264 MEM32(eax) = edx; /* 0x3614B8FE: mov dword ptr [eax], edx */ 31265 edx = MEM32(ecx + 0x8); /* 0x3614B900: mov edx, dword ptr [ecx + 8] */ 31266 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614B903: cmp edx, dword ptr [esi + 8] */ 31267 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 31268 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31269 _flag_k = FK_CMP; 31270 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B90B; /* 0x3614B906: je 0x3614b90b */ 31271 L_3614B908: 31272 MEM32(edx + 0x4) = eax; /* 0x3614B908: mov dword ptr [edx + 4], eax */ 31273 L_3614B90B: 31274 edx = MEM32(eax + 0x4); /* 0x3614B90B: mov edx, dword ptr [eax + 4] */ 31275 MEM32(ecx + 0x4) = edx; /* 0x3614B90E: mov dword ptr [ecx + 4], edx */ 31276 edx = MEM32(esi + 0x4); /* 0x3614B911: mov edx, dword ptr [esi + 4] */ 31277 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614B914: cmp eax, dword ptr [edx + 4] */ 31278 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 31279 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31280 _flag_k = FK_CMP; 31281 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B91E; /* 0x3614B917: jne 0x3614b91e */ 31282 L_3614B919: 31283 MEM32(edx + 0x4) = ecx; /* 0x3614B919: mov dword ptr [edx + 4], ecx */ 31284 goto L_3614B92D; /* 0x3614B91C: jmp 0x3614b92d */ 31285 L_3614B91E: 31286 edx = MEM32(eax + 0x4); /* 0x3614B91E: mov edx, dword ptr [eax + 4] */ 31287 /* cmp eax, MEM32(edx + 0x8) */ /* 0x3614B921: cmp eax, dword ptr [edx + 8] */ 31288 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 31289 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31290 _flag_k = FK_CMP; 31291 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B92B; /* 0x3614B924: jne 0x3614b92b */ 31292 L_3614B926: 31293 MEM32(edx + 0x8) = ecx; /* 0x3614B926: mov dword ptr [edx + 8], ecx */ 31294 goto L_3614B92D; /* 0x3614B929: jmp 0x3614b92d */ 31295 L_3614B92B: 31296 MEM32(edx) = ecx; /* 0x3614B92B: mov dword ptr [edx], ecx */ 31297 L_3614B92D: 31298 MEM32(ecx + 0x8) = eax; /* 0x3614B92D: mov dword ptr [ecx + 8], eax */ 31299 MEM32(eax + 0x4) = ecx; /* 0x3614B930: mov dword ptr [eax + 4], ecx */ 31300 L_3614B933: 31301 ecx = MEM32(eax + 0x4); /* 0x3614B933: mov ecx, dword ptr [eax + 4] */ 31302 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B936: mov byte ptr [ecx + 0x20], bl */ 31303 edx = MEM32(eax + 0x4); /* 0x3614B939: mov edx, dword ptr [eax + 4] */ 31304 ecx = MEM32(edx + 0x4); /* 0x3614B93C: mov ecx, dword ptr [edx + 4] */ 31305 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B93F: mov byte ptr [ecx + 0x20], 0 */ 31306 edx = MEM32(eax + 0x4); /* 0x3614B943: mov edx, dword ptr [eax + 4] */ 31307 ecx = MEM32(edx + 0x4); /* 0x3614B946: mov ecx, dword ptr [edx + 4] */ 31308 edx = MEM32(ecx + 0x8); /* 0x3614B949: mov edx, dword ptr [ecx + 8] */ 31309 edi = MEM32(edx); /* 0x3614B94C: mov edi, dword ptr [edx] */ 31310 MEM32(ecx + 0x8) = edi; /* 0x3614B94E: mov dword ptr [ecx + 8], edi */ 31311 edi = MEM32(edx); /* 0x3614B951: mov edi, dword ptr [edx] */ 31312 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614B953: cmp edi, dword ptr [esi + 8] */ 31313 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 31314 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31315 _flag_k = FK_CMP; 31316 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B95B; /* 0x3614B956: je 0x3614b95b */ 31317 L_3614B958: 31318 MEM32(edi + 0x4) = ecx; /* 0x3614B958: mov dword ptr [edi + 4], ecx */ 31319 L_3614B95B: 31320 edi = MEM32(ecx + 0x4); /* 0x3614B95B: mov edi, dword ptr [ecx + 4] */ 31321 MEM32(edx + 0x4) = edi; /* 0x3614B95E: mov dword ptr [edx + 4], edi */ 31322 edi = MEM32(esi + 0x4); /* 0x3614B961: mov edi, dword ptr [esi + 4] */ 31323 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614B964: cmp ecx, dword ptr [edi + 4] */ 31324 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 31325 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31326 _flag_k = FK_CMP; 31327 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B96E; /* 0x3614B967: jne 0x3614b96e */ 31328 L_3614B969: 31329 MEM32(edi + 0x4) = edx; /* 0x3614B969: mov dword ptr [edi + 4], edx */ 31330 goto L_3614B97C; /* 0x3614B96C: jmp 0x3614b97c */ 31331 L_3614B96E: 31332 edi = MEM32(ecx + 0x4); /* 0x3614B96E: mov edi, dword ptr [ecx + 4] */ 31333 /* cmp ecx, MEM32(edi) */ /* 0x3614B971: cmp ecx, dword ptr [edi] */ 31334 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 31335 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31336 _flag_k = FK_CMP; 31337 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B979; /* 0x3614B973: jne 0x3614b979 */ 31338 L_3614B975: 31339 MEM32(edi) = edx; /* 0x3614B975: mov dword ptr [edi], edx */ 31340 goto L_3614B97C; /* 0x3614B977: jmp 0x3614b97c */ 31341 L_3614B979: 31342 MEM32(edi + 0x8) = edx; /* 0x3614B979: mov dword ptr [edi + 8], edx */ 31343 L_3614B97C: 31344 MEM32(edx) = ecx; /* 0x3614B97C: mov dword ptr [edx], ecx */ 31345 L_3614B97E: 31346 MEM32(ecx + 0x4) = edx; /* 0x3614B97E: mov dword ptr [ecx + 4], edx */ 31347 L_3614B981: 31348 ecx = MEM32(esi + 0x4); /* 0x3614B981: mov ecx, dword ptr [esi + 4] */ 31349 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B984: cmp eax, dword ptr [ecx + 4] */ 31350 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 31351 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31352 _flag_k = FK_CMP; 31353 RECOMP_BACKEDGE(); 31354 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B80D; /* 0x3614B987: jne 0x3614b80d */ 31355 L_3614B98D: 31356 edx = MEM32(esi + 0x4); /* 0x3614B98D: mov edx, dword ptr [esi + 4] */ 31357 eax = MEM32(edx + 0x4); /* 0x3614B990: mov eax, dword ptr [edx + 4] */ 31358 ecx = MEM32(ebp + (-0x4)); /* 0x3614B993: mov ecx, dword ptr [ebp - 4] */ 31359 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B996: mov byte ptr [eax + 0x20], bl */ 31360 eax = MEM32(ebp + 0x8); /* 0x3614B999: mov eax, dword ptr [ebp + 8] */ 31361 edi = POP32_VAL(esp); /* 0x3614B99C: pop edi */ 31362 esi = POP32_VAL(esp); /* 0x3614B99D: pop esi */ 31363 MEM32(eax) = ecx; /* 0x3614B99E: mov dword ptr [eax], ecx */ 31364 ebx = POP32_VAL(esp); /* 0x3614B9A0: pop ebx */ 31365 esp = ebp; /* 0x3614B9A1: mov esp, ebp */ 31366 ebp = POP32_VAL(esp); /* 0x3614B9A3: pop ebp */ 31367 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3614B9A4: ret 0x10 */ 31368 RECOMP_REGS_OUT(); 31369 } 31370 31371 void sub_3614B831(void) { 31372 int _fpu_cmp = 0; 31373 uint32_t _cf = 0; 31374 int _df = 1; 31375 uint32_t _flag_k = FK_NONE; 31376 uint32_t _flag_a = 0, _flag_b = 0; 31377 uint32_t _itail_tgt = 0; 31378 RECOMP_REGS_LOCALS 31379 RECOMP_ENTER(0x3614B831u); 31380 31381 goto L_3614B831; 31382 L_3614B80D: 31383 ecx = MEM32(eax + 0x4); /* 0x3614B80D: mov ecx, dword ptr [eax + 4] */ 31384 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B810: mov dl, byte ptr [ecx + 0x20] */ 31385 /* test LO8(edx), LO8(edx) */ /* 0x3614B813: test dl, dl */ 31386 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 31387 _cf = 0; 31388 _flag_k = FK_NARROW(FK_TEST, 24); 31389 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B98D; /* 0x3614B815: jne 0x3614b98d */ 31390 L_3614B81B: 31391 edi = MEM32(ecx + 0x4); /* 0x3614B81B: mov edi, dword ptr [ecx + 4] */ 31392 edx = MEM32(edi); /* 0x3614B81E: mov edx, dword ptr [edi] */ 31393 /* cmp ecx, edx */ /* 0x3614B820: cmp ecx, edx */ 31394 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 31395 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31396 _flag_k = FK_CMP; 31397 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8E9; /* 0x3614B822: jne 0x3614b8e9 */ 31398 L_3614B828: 31399 edx = MEM32(edi + 0x8); /* 0x3614B828: mov edx, dword ptr [edi + 8] */ 31400 /* cmp MEM8(edx + 0x20), 0 */ /* 0x3614B82B: cmp byte ptr [edx + 0x20], 0 */ 31401 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 31402 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31403 _flag_k = FK_NARROW(FK_CMP, 24); 31404 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B84C; /* 0x3614B82F: jne 0x3614b84c */ 31405 L_3614B831: 31406 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B831: mov byte ptr [ecx + 0x20], bl */ 31407 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B834: mov byte ptr [edx + 0x20], bl */ 31408 ecx = MEM32(eax + 0x4); /* 0x3614B837: mov ecx, dword ptr [eax + 4] */ 31409 edx = MEM32(ecx + 0x4); /* 0x3614B83A: mov edx, dword ptr [ecx + 4] */ 31410 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x3614B83D: mov byte ptr [edx + 0x20], 0 */ 31411 eax = MEM32(eax + 0x4); /* 0x3614B841: mov eax, dword ptr [eax + 4] */ 31412 eax = MEM32(eax + 0x4); /* 0x3614B844: mov eax, dword ptr [eax + 4] */ 31413 goto L_3614B981; /* 0x3614B847: jmp 0x3614b981 */ 31414 L_3614B84C: 31415 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3614B84C: cmp eax, dword ptr [ecx + 8] */ 31416 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 31417 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31418 _flag_k = FK_CMP; 31419 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B88B; /* 0x3614B84F: jne 0x3614b88b */ 31420 L_3614B851: 31421 eax = ecx; /* 0x3614B851: mov eax, ecx */ 31422 ecx = MEM32(eax + 0x8); /* 0x3614B853: mov ecx, dword ptr [eax + 8] */ 31423 edx = MEM32(ecx); /* 0x3614B856: mov edx, dword ptr [ecx] */ 31424 MEM32(eax + 0x8) = edx; /* 0x3614B858: mov dword ptr [eax + 8], edx */ 31425 edx = MEM32(ecx); /* 0x3614B85B: mov edx, dword ptr [ecx] */ 31426 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614B85D: cmp edx, dword ptr [esi + 8] */ 31427 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 31428 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31429 _flag_k = FK_CMP; 31430 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B865; /* 0x3614B860: je 0x3614b865 */ 31431 L_3614B862: 31432 MEM32(edx + 0x4) = eax; /* 0x3614B862: mov dword ptr [edx + 4], eax */ 31433 L_3614B865: 31434 edx = MEM32(eax + 0x4); /* 0x3614B865: mov edx, dword ptr [eax + 4] */ 31435 MEM32(ecx + 0x4) = edx; /* 0x3614B868: mov dword ptr [ecx + 4], edx */ 31436 edx = MEM32(esi + 0x4); /* 0x3614B86B: mov edx, dword ptr [esi + 4] */ 31437 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614B86E: cmp eax, dword ptr [edx + 4] */ 31438 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 31439 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31440 _flag_k = FK_CMP; 31441 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B878; /* 0x3614B871: jne 0x3614b878 */ 31442 L_3614B873: 31443 MEM32(edx + 0x4) = ecx; /* 0x3614B873: mov dword ptr [edx + 4], ecx */ 31444 goto L_3614B886; /* 0x3614B876: jmp 0x3614b886 */ 31445 L_3614B878: 31446 edx = MEM32(eax + 0x4); /* 0x3614B878: mov edx, dword ptr [eax + 4] */ 31447 /* cmp eax, MEM32(edx) */ /* 0x3614B87B: cmp eax, dword ptr [edx] */ 31448 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 31449 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31450 _flag_k = FK_CMP; 31451 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B883; /* 0x3614B87D: jne 0x3614b883 */ 31452 L_3614B87F: 31453 MEM32(edx) = ecx; /* 0x3614B87F: mov dword ptr [edx], ecx */ 31454 goto L_3614B886; /* 0x3614B881: jmp 0x3614b886 */ 31455 L_3614B883: 31456 MEM32(edx + 0x8) = ecx; /* 0x3614B883: mov dword ptr [edx + 8], ecx */ 31457 L_3614B886: 31458 MEM32(ecx) = eax; /* 0x3614B886: mov dword ptr [ecx], eax */ 31459 MEM32(eax + 0x4) = ecx; /* 0x3614B888: mov dword ptr [eax + 4], ecx */ 31460 L_3614B88B: 31461 ecx = MEM32(eax + 0x4); /* 0x3614B88B: mov ecx, dword ptr [eax + 4] */ 31462 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B88E: mov byte ptr [ecx + 0x20], bl */ 31463 edx = MEM32(eax + 0x4); /* 0x3614B891: mov edx, dword ptr [eax + 4] */ 31464 ecx = MEM32(edx + 0x4); /* 0x3614B894: mov ecx, dword ptr [edx + 4] */ 31465 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B897: mov byte ptr [ecx + 0x20], 0 */ 31466 edx = MEM32(eax + 0x4); /* 0x3614B89B: mov edx, dword ptr [eax + 4] */ 31467 ecx = MEM32(edx + 0x4); /* 0x3614B89E: mov ecx, dword ptr [edx + 4] */ 31468 edx = MEM32(ecx); /* 0x3614B8A1: mov edx, dword ptr [ecx] */ 31469 edi = MEM32(edx + 0x8); /* 0x3614B8A3: mov edi, dword ptr [edx + 8] */ 31470 MEM32(ecx) = edi; /* 0x3614B8A6: mov dword ptr [ecx], edi */ 31471 edi = MEM32(edx + 0x8); /* 0x3614B8A8: mov edi, dword ptr [edx + 8] */ 31472 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614B8AB: cmp edi, dword ptr [esi + 8] */ 31473 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 31474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31475 _flag_k = FK_CMP; 31476 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B8B3; /* 0x3614B8AE: je 0x3614b8b3 */ 31477 L_3614B8B0: 31478 MEM32(edi + 0x4) = ecx; /* 0x3614B8B0: mov dword ptr [edi + 4], ecx */ 31479 L_3614B8B3: 31480 edi = MEM32(ecx + 0x4); /* 0x3614B8B3: mov edi, dword ptr [ecx + 4] */ 31481 MEM32(edx + 0x4) = edi; /* 0x3614B8B6: mov dword ptr [edx + 4], edi */ 31482 edi = MEM32(esi + 0x4); /* 0x3614B8B9: mov edi, dword ptr [esi + 4] */ 31483 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614B8BC: cmp ecx, dword ptr [edi + 4] */ 31484 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 31485 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31486 _flag_k = FK_CMP; 31487 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8CC; /* 0x3614B8BF: jne 0x3614b8cc */ 31488 L_3614B8C1: 31489 MEM32(edi + 0x4) = edx; /* 0x3614B8C1: mov dword ptr [edi + 4], edx */ 31490 MEM32(edx + 0x8) = ecx; /* 0x3614B8C4: mov dword ptr [edx + 8], ecx */ 31491 goto L_3614B97E; /* 0x3614B8C7: jmp 0x3614b97e */ 31492 L_3614B8CC: 31493 edi = MEM32(ecx + 0x4); /* 0x3614B8CC: mov edi, dword ptr [ecx + 4] */ 31494 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614B8CF: cmp ecx, dword ptr [edi + 8] */ 31495 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 31496 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31497 _flag_k = FK_CMP; 31498 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8DF; /* 0x3614B8D2: jne 0x3614b8df */ 31499 L_3614B8D4: 31500 MEM32(edi + 0x8) = edx; /* 0x3614B8D4: mov dword ptr [edi + 8], edx */ 31501 MEM32(edx + 0x8) = ecx; /* 0x3614B8D7: mov dword ptr [edx + 8], ecx */ 31502 goto L_3614B97E; /* 0x3614B8DA: jmp 0x3614b97e */ 31503 L_3614B8DF: 31504 MEM32(edi) = edx; /* 0x3614B8DF: mov dword ptr [edi], edx */ 31505 MEM32(edx + 0x8) = ecx; /* 0x3614B8E1: mov dword ptr [edx + 8], ecx */ 31506 goto L_3614B97E; /* 0x3614B8E4: jmp 0x3614b97e */ 31507 L_3614B8E9: 31508 /* cmp MEM8(edx + 0x20), 0 */ /* 0x3614B8E9: cmp byte ptr [edx + 0x20], 0 */ 31509 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 31510 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31511 _flag_k = FK_NARROW(FK_CMP, 24); 31512 RECOMP_BACKEDGE(); 31513 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B831; /* 0x3614B8ED: je 0x3614b831 */ 31514 L_3614B8F3: 31515 /* cmp eax, MEM32(ecx) */ /* 0x3614B8F3: cmp eax, dword ptr [ecx] */ 31516 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 31517 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31518 _flag_k = FK_CMP; 31519 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B933; /* 0x3614B8F5: jne 0x3614b933 */ 31520 L_3614B8F7: 31521 eax = ecx; /* 0x3614B8F7: mov eax, ecx */ 31522 ecx = MEM32(eax); /* 0x3614B8F9: mov ecx, dword ptr [eax] */ 31523 edx = MEM32(ecx + 0x8); /* 0x3614B8FB: mov edx, dword ptr [ecx + 8] */ 31524 MEM32(eax) = edx; /* 0x3614B8FE: mov dword ptr [eax], edx */ 31525 edx = MEM32(ecx + 0x8); /* 0x3614B900: mov edx, dword ptr [ecx + 8] */ 31526 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614B903: cmp edx, dword ptr [esi + 8] */ 31527 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 31528 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31529 _flag_k = FK_CMP; 31530 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B90B; /* 0x3614B906: je 0x3614b90b */ 31531 L_3614B908: 31532 MEM32(edx + 0x4) = eax; /* 0x3614B908: mov dword ptr [edx + 4], eax */ 31533 L_3614B90B: 31534 edx = MEM32(eax + 0x4); /* 0x3614B90B: mov edx, dword ptr [eax + 4] */ 31535 MEM32(ecx + 0x4) = edx; /* 0x3614B90E: mov dword ptr [ecx + 4], edx */ 31536 edx = MEM32(esi + 0x4); /* 0x3614B911: mov edx, dword ptr [esi + 4] */ 31537 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614B914: cmp eax, dword ptr [edx + 4] */ 31538 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 31539 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31540 _flag_k = FK_CMP; 31541 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B91E; /* 0x3614B917: jne 0x3614b91e */ 31542 L_3614B919: 31543 MEM32(edx + 0x4) = ecx; /* 0x3614B919: mov dword ptr [edx + 4], ecx */ 31544 goto L_3614B92D; /* 0x3614B91C: jmp 0x3614b92d */ 31545 L_3614B91E: 31546 edx = MEM32(eax + 0x4); /* 0x3614B91E: mov edx, dword ptr [eax + 4] */ 31547 /* cmp eax, MEM32(edx + 0x8) */ /* 0x3614B921: cmp eax, dword ptr [edx + 8] */ 31548 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 31549 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31550 _flag_k = FK_CMP; 31551 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B92B; /* 0x3614B924: jne 0x3614b92b */ 31552 L_3614B926: 31553 MEM32(edx + 0x8) = ecx; /* 0x3614B926: mov dword ptr [edx + 8], ecx */ 31554 goto L_3614B92D; /* 0x3614B929: jmp 0x3614b92d */ 31555 L_3614B92B: 31556 MEM32(edx) = ecx; /* 0x3614B92B: mov dword ptr [edx], ecx */ 31557 L_3614B92D: 31558 MEM32(ecx + 0x8) = eax; /* 0x3614B92D: mov dword ptr [ecx + 8], eax */ 31559 MEM32(eax + 0x4) = ecx; /* 0x3614B930: mov dword ptr [eax + 4], ecx */ 31560 L_3614B933: 31561 ecx = MEM32(eax + 0x4); /* 0x3614B933: mov ecx, dword ptr [eax + 4] */ 31562 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B936: mov byte ptr [ecx + 0x20], bl */ 31563 edx = MEM32(eax + 0x4); /* 0x3614B939: mov edx, dword ptr [eax + 4] */ 31564 ecx = MEM32(edx + 0x4); /* 0x3614B93C: mov ecx, dword ptr [edx + 4] */ 31565 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B93F: mov byte ptr [ecx + 0x20], 0 */ 31566 edx = MEM32(eax + 0x4); /* 0x3614B943: mov edx, dword ptr [eax + 4] */ 31567 ecx = MEM32(edx + 0x4); /* 0x3614B946: mov ecx, dword ptr [edx + 4] */ 31568 edx = MEM32(ecx + 0x8); /* 0x3614B949: mov edx, dword ptr [ecx + 8] */ 31569 edi = MEM32(edx); /* 0x3614B94C: mov edi, dword ptr [edx] */ 31570 MEM32(ecx + 0x8) = edi; /* 0x3614B94E: mov dword ptr [ecx + 8], edi */ 31571 edi = MEM32(edx); /* 0x3614B951: mov edi, dword ptr [edx] */ 31572 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614B953: cmp edi, dword ptr [esi + 8] */ 31573 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 31574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31575 _flag_k = FK_CMP; 31576 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B95B; /* 0x3614B956: je 0x3614b95b */ 31577 L_3614B958: 31578 MEM32(edi + 0x4) = ecx; /* 0x3614B958: mov dword ptr [edi + 4], ecx */ 31579 L_3614B95B: 31580 edi = MEM32(ecx + 0x4); /* 0x3614B95B: mov edi, dword ptr [ecx + 4] */ 31581 MEM32(edx + 0x4) = edi; /* 0x3614B95E: mov dword ptr [edx + 4], edi */ 31582 edi = MEM32(esi + 0x4); /* 0x3614B961: mov edi, dword ptr [esi + 4] */ 31583 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614B964: cmp ecx, dword ptr [edi + 4] */ 31584 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 31585 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31586 _flag_k = FK_CMP; 31587 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B96E; /* 0x3614B967: jne 0x3614b96e */ 31588 L_3614B969: 31589 MEM32(edi + 0x4) = edx; /* 0x3614B969: mov dword ptr [edi + 4], edx */ 31590 goto L_3614B97C; /* 0x3614B96C: jmp 0x3614b97c */ 31591 L_3614B96E: 31592 edi = MEM32(ecx + 0x4); /* 0x3614B96E: mov edi, dword ptr [ecx + 4] */ 31593 /* cmp ecx, MEM32(edi) */ /* 0x3614B971: cmp ecx, dword ptr [edi] */ 31594 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 31595 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31596 _flag_k = FK_CMP; 31597 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B979; /* 0x3614B973: jne 0x3614b979 */ 31598 L_3614B975: 31599 MEM32(edi) = edx; /* 0x3614B975: mov dword ptr [edi], edx */ 31600 goto L_3614B97C; /* 0x3614B977: jmp 0x3614b97c */ 31601 L_3614B979: 31602 MEM32(edi + 0x8) = edx; /* 0x3614B979: mov dword ptr [edi + 8], edx */ 31603 L_3614B97C: 31604 MEM32(edx) = ecx; /* 0x3614B97C: mov dword ptr [edx], ecx */ 31605 L_3614B97E: 31606 MEM32(ecx + 0x4) = edx; /* 0x3614B97E: mov dword ptr [ecx + 4], edx */ 31607 L_3614B981: 31608 ecx = MEM32(esi + 0x4); /* 0x3614B981: mov ecx, dword ptr [esi + 4] */ 31609 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B984: cmp eax, dword ptr [ecx + 4] */ 31610 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 31611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31612 _flag_k = FK_CMP; 31613 RECOMP_BACKEDGE(); 31614 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B80D; /* 0x3614B987: jne 0x3614b80d */ 31615 L_3614B98D: 31616 edx = MEM32(esi + 0x4); /* 0x3614B98D: mov edx, dword ptr [esi + 4] */ 31617 eax = MEM32(edx + 0x4); /* 0x3614B990: mov eax, dword ptr [edx + 4] */ 31618 ecx = MEM32(ebp + (-0x4)); /* 0x3614B993: mov ecx, dword ptr [ebp - 4] */ 31619 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B996: mov byte ptr [eax + 0x20], bl */ 31620 eax = MEM32(ebp + 0x8); /* 0x3614B999: mov eax, dword ptr [ebp + 8] */ 31621 edi = POP32_VAL(esp); /* 0x3614B99C: pop edi */ 31622 esi = POP32_VAL(esp); /* 0x3614B99D: pop esi */ 31623 MEM32(eax) = ecx; /* 0x3614B99E: mov dword ptr [eax], ecx */ 31624 ebx = POP32_VAL(esp); /* 0x3614B9A0: pop ebx */ 31625 esp = ebp; /* 0x3614B9A1: mov esp, ebp */ 31626 ebp = POP32_VAL(esp); /* 0x3614B9A3: pop ebp */ 31627 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3614B9A4: ret 0x10 */ 31628 RECOMP_REGS_OUT(); 31629 } 31630 31631 void sub_3614B886(void) { 31632 int _fpu_cmp = 0; 31633 uint32_t _cf = 0; 31634 int _df = 1; 31635 uint32_t _flag_k = FK_NONE; 31636 uint32_t _flag_a = 0, _flag_b = 0; 31637 uint32_t _itail_tgt = 0; 31638 RECOMP_REGS_LOCALS 31639 RECOMP_ENTER(0x3614B886u); 31640 31641 goto L_3614B886; 31642 L_3614B80D: 31643 ecx = MEM32(eax + 0x4); /* 0x3614B80D: mov ecx, dword ptr [eax + 4] */ 31644 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B810: mov dl, byte ptr [ecx + 0x20] */ 31645 /* test LO8(edx), LO8(edx) */ /* 0x3614B813: test dl, dl */ 31646 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 31647 _cf = 0; 31648 _flag_k = FK_NARROW(FK_TEST, 24); 31649 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B98D; /* 0x3614B815: jne 0x3614b98d */ 31650 L_3614B81B: 31651 edi = MEM32(ecx + 0x4); /* 0x3614B81B: mov edi, dword ptr [ecx + 4] */ 31652 edx = MEM32(edi); /* 0x3614B81E: mov edx, dword ptr [edi] */ 31653 /* cmp ecx, edx */ /* 0x3614B820: cmp ecx, edx */ 31654 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 31655 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31656 _flag_k = FK_CMP; 31657 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8E9; /* 0x3614B822: jne 0x3614b8e9 */ 31658 L_3614B828: 31659 edx = MEM32(edi + 0x8); /* 0x3614B828: mov edx, dword ptr [edi + 8] */ 31660 /* cmp MEM8(edx + 0x20), 0 */ /* 0x3614B82B: cmp byte ptr [edx + 0x20], 0 */ 31661 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 31662 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31663 _flag_k = FK_NARROW(FK_CMP, 24); 31664 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B84C; /* 0x3614B82F: jne 0x3614b84c */ 31665 L_3614B831: 31666 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B831: mov byte ptr [ecx + 0x20], bl */ 31667 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B834: mov byte ptr [edx + 0x20], bl */ 31668 ecx = MEM32(eax + 0x4); /* 0x3614B837: mov ecx, dword ptr [eax + 4] */ 31669 edx = MEM32(ecx + 0x4); /* 0x3614B83A: mov edx, dword ptr [ecx + 4] */ 31670 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x3614B83D: mov byte ptr [edx + 0x20], 0 */ 31671 eax = MEM32(eax + 0x4); /* 0x3614B841: mov eax, dword ptr [eax + 4] */ 31672 eax = MEM32(eax + 0x4); /* 0x3614B844: mov eax, dword ptr [eax + 4] */ 31673 goto L_3614B981; /* 0x3614B847: jmp 0x3614b981 */ 31674 L_3614B84C: 31675 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3614B84C: cmp eax, dword ptr [ecx + 8] */ 31676 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 31677 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31678 _flag_k = FK_CMP; 31679 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B88B; /* 0x3614B84F: jne 0x3614b88b */ 31680 L_3614B851: 31681 eax = ecx; /* 0x3614B851: mov eax, ecx */ 31682 ecx = MEM32(eax + 0x8); /* 0x3614B853: mov ecx, dword ptr [eax + 8] */ 31683 edx = MEM32(ecx); /* 0x3614B856: mov edx, dword ptr [ecx] */ 31684 MEM32(eax + 0x8) = edx; /* 0x3614B858: mov dword ptr [eax + 8], edx */ 31685 edx = MEM32(ecx); /* 0x3614B85B: mov edx, dword ptr [ecx] */ 31686 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614B85D: cmp edx, dword ptr [esi + 8] */ 31687 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 31688 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31689 _flag_k = FK_CMP; 31690 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B865; /* 0x3614B860: je 0x3614b865 */ 31691 L_3614B862: 31692 MEM32(edx + 0x4) = eax; /* 0x3614B862: mov dword ptr [edx + 4], eax */ 31693 L_3614B865: 31694 edx = MEM32(eax + 0x4); /* 0x3614B865: mov edx, dword ptr [eax + 4] */ 31695 MEM32(ecx + 0x4) = edx; /* 0x3614B868: mov dword ptr [ecx + 4], edx */ 31696 edx = MEM32(esi + 0x4); /* 0x3614B86B: mov edx, dword ptr [esi + 4] */ 31697 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614B86E: cmp eax, dword ptr [edx + 4] */ 31698 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 31699 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31700 _flag_k = FK_CMP; 31701 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B878; /* 0x3614B871: jne 0x3614b878 */ 31702 L_3614B873: 31703 MEM32(edx + 0x4) = ecx; /* 0x3614B873: mov dword ptr [edx + 4], ecx */ 31704 goto L_3614B886; /* 0x3614B876: jmp 0x3614b886 */ 31705 L_3614B878: 31706 edx = MEM32(eax + 0x4); /* 0x3614B878: mov edx, dword ptr [eax + 4] */ 31707 /* cmp eax, MEM32(edx) */ /* 0x3614B87B: cmp eax, dword ptr [edx] */ 31708 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 31709 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31710 _flag_k = FK_CMP; 31711 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B883; /* 0x3614B87D: jne 0x3614b883 */ 31712 L_3614B87F: 31713 MEM32(edx) = ecx; /* 0x3614B87F: mov dword ptr [edx], ecx */ 31714 goto L_3614B886; /* 0x3614B881: jmp 0x3614b886 */ 31715 L_3614B883: 31716 MEM32(edx + 0x8) = ecx; /* 0x3614B883: mov dword ptr [edx + 8], ecx */ 31717 L_3614B886: 31718 MEM32(ecx) = eax; /* 0x3614B886: mov dword ptr [ecx], eax */ 31719 MEM32(eax + 0x4) = ecx; /* 0x3614B888: mov dword ptr [eax + 4], ecx */ 31720 L_3614B88B: 31721 ecx = MEM32(eax + 0x4); /* 0x3614B88B: mov ecx, dword ptr [eax + 4] */ 31722 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B88E: mov byte ptr [ecx + 0x20], bl */ 31723 edx = MEM32(eax + 0x4); /* 0x3614B891: mov edx, dword ptr [eax + 4] */ 31724 ecx = MEM32(edx + 0x4); /* 0x3614B894: mov ecx, dword ptr [edx + 4] */ 31725 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B897: mov byte ptr [ecx + 0x20], 0 */ 31726 edx = MEM32(eax + 0x4); /* 0x3614B89B: mov edx, dword ptr [eax + 4] */ 31727 ecx = MEM32(edx + 0x4); /* 0x3614B89E: mov ecx, dword ptr [edx + 4] */ 31728 edx = MEM32(ecx); /* 0x3614B8A1: mov edx, dword ptr [ecx] */ 31729 edi = MEM32(edx + 0x8); /* 0x3614B8A3: mov edi, dword ptr [edx + 8] */ 31730 MEM32(ecx) = edi; /* 0x3614B8A6: mov dword ptr [ecx], edi */ 31731 edi = MEM32(edx + 0x8); /* 0x3614B8A8: mov edi, dword ptr [edx + 8] */ 31732 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614B8AB: cmp edi, dword ptr [esi + 8] */ 31733 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 31734 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31735 _flag_k = FK_CMP; 31736 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B8B3; /* 0x3614B8AE: je 0x3614b8b3 */ 31737 L_3614B8B0: 31738 MEM32(edi + 0x4) = ecx; /* 0x3614B8B0: mov dword ptr [edi + 4], ecx */ 31739 L_3614B8B3: 31740 edi = MEM32(ecx + 0x4); /* 0x3614B8B3: mov edi, dword ptr [ecx + 4] */ 31741 MEM32(edx + 0x4) = edi; /* 0x3614B8B6: mov dword ptr [edx + 4], edi */ 31742 edi = MEM32(esi + 0x4); /* 0x3614B8B9: mov edi, dword ptr [esi + 4] */ 31743 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614B8BC: cmp ecx, dword ptr [edi + 4] */ 31744 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 31745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31746 _flag_k = FK_CMP; 31747 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8CC; /* 0x3614B8BF: jne 0x3614b8cc */ 31748 L_3614B8C1: 31749 MEM32(edi + 0x4) = edx; /* 0x3614B8C1: mov dword ptr [edi + 4], edx */ 31750 MEM32(edx + 0x8) = ecx; /* 0x3614B8C4: mov dword ptr [edx + 8], ecx */ 31751 goto L_3614B97E; /* 0x3614B8C7: jmp 0x3614b97e */ 31752 L_3614B8CC: 31753 edi = MEM32(ecx + 0x4); /* 0x3614B8CC: mov edi, dword ptr [ecx + 4] */ 31754 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614B8CF: cmp ecx, dword ptr [edi + 8] */ 31755 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 31756 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31757 _flag_k = FK_CMP; 31758 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8DF; /* 0x3614B8D2: jne 0x3614b8df */ 31759 L_3614B8D4: 31760 MEM32(edi + 0x8) = edx; /* 0x3614B8D4: mov dword ptr [edi + 8], edx */ 31761 MEM32(edx + 0x8) = ecx; /* 0x3614B8D7: mov dword ptr [edx + 8], ecx */ 31762 goto L_3614B97E; /* 0x3614B8DA: jmp 0x3614b97e */ 31763 L_3614B8DF: 31764 MEM32(edi) = edx; /* 0x3614B8DF: mov dword ptr [edi], edx */ 31765 MEM32(edx + 0x8) = ecx; /* 0x3614B8E1: mov dword ptr [edx + 8], ecx */ 31766 goto L_3614B97E; /* 0x3614B8E4: jmp 0x3614b97e */ 31767 L_3614B8E9: 31768 /* cmp MEM8(edx + 0x20), 0 */ /* 0x3614B8E9: cmp byte ptr [edx + 0x20], 0 */ 31769 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 31770 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31771 _flag_k = FK_NARROW(FK_CMP, 24); 31772 RECOMP_BACKEDGE(); 31773 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B831; /* 0x3614B8ED: je 0x3614b831 */ 31774 L_3614B8F3: 31775 /* cmp eax, MEM32(ecx) */ /* 0x3614B8F3: cmp eax, dword ptr [ecx] */ 31776 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 31777 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31778 _flag_k = FK_CMP; 31779 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B933; /* 0x3614B8F5: jne 0x3614b933 */ 31780 L_3614B8F7: 31781 eax = ecx; /* 0x3614B8F7: mov eax, ecx */ 31782 ecx = MEM32(eax); /* 0x3614B8F9: mov ecx, dword ptr [eax] */ 31783 edx = MEM32(ecx + 0x8); /* 0x3614B8FB: mov edx, dword ptr [ecx + 8] */ 31784 MEM32(eax) = edx; /* 0x3614B8FE: mov dword ptr [eax], edx */ 31785 edx = MEM32(ecx + 0x8); /* 0x3614B900: mov edx, dword ptr [ecx + 8] */ 31786 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614B903: cmp edx, dword ptr [esi + 8] */ 31787 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 31788 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31789 _flag_k = FK_CMP; 31790 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B90B; /* 0x3614B906: je 0x3614b90b */ 31791 L_3614B908: 31792 MEM32(edx + 0x4) = eax; /* 0x3614B908: mov dword ptr [edx + 4], eax */ 31793 L_3614B90B: 31794 edx = MEM32(eax + 0x4); /* 0x3614B90B: mov edx, dword ptr [eax + 4] */ 31795 MEM32(ecx + 0x4) = edx; /* 0x3614B90E: mov dword ptr [ecx + 4], edx */ 31796 edx = MEM32(esi + 0x4); /* 0x3614B911: mov edx, dword ptr [esi + 4] */ 31797 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614B914: cmp eax, dword ptr [edx + 4] */ 31798 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 31799 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31800 _flag_k = FK_CMP; 31801 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B91E; /* 0x3614B917: jne 0x3614b91e */ 31802 L_3614B919: 31803 MEM32(edx + 0x4) = ecx; /* 0x3614B919: mov dword ptr [edx + 4], ecx */ 31804 goto L_3614B92D; /* 0x3614B91C: jmp 0x3614b92d */ 31805 L_3614B91E: 31806 edx = MEM32(eax + 0x4); /* 0x3614B91E: mov edx, dword ptr [eax + 4] */ 31807 /* cmp eax, MEM32(edx + 0x8) */ /* 0x3614B921: cmp eax, dword ptr [edx + 8] */ 31808 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 31809 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31810 _flag_k = FK_CMP; 31811 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B92B; /* 0x3614B924: jne 0x3614b92b */ 31812 L_3614B926: 31813 MEM32(edx + 0x8) = ecx; /* 0x3614B926: mov dword ptr [edx + 8], ecx */ 31814 goto L_3614B92D; /* 0x3614B929: jmp 0x3614b92d */ 31815 L_3614B92B: 31816 MEM32(edx) = ecx; /* 0x3614B92B: mov dword ptr [edx], ecx */ 31817 L_3614B92D: 31818 MEM32(ecx + 0x8) = eax; /* 0x3614B92D: mov dword ptr [ecx + 8], eax */ 31819 MEM32(eax + 0x4) = ecx; /* 0x3614B930: mov dword ptr [eax + 4], ecx */ 31820 L_3614B933: 31821 ecx = MEM32(eax + 0x4); /* 0x3614B933: mov ecx, dword ptr [eax + 4] */ 31822 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B936: mov byte ptr [ecx + 0x20], bl */ 31823 edx = MEM32(eax + 0x4); /* 0x3614B939: mov edx, dword ptr [eax + 4] */ 31824 ecx = MEM32(edx + 0x4); /* 0x3614B93C: mov ecx, dword ptr [edx + 4] */ 31825 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B93F: mov byte ptr [ecx + 0x20], 0 */ 31826 edx = MEM32(eax + 0x4); /* 0x3614B943: mov edx, dword ptr [eax + 4] */ 31827 ecx = MEM32(edx + 0x4); /* 0x3614B946: mov ecx, dword ptr [edx + 4] */ 31828 edx = MEM32(ecx + 0x8); /* 0x3614B949: mov edx, dword ptr [ecx + 8] */ 31829 edi = MEM32(edx); /* 0x3614B94C: mov edi, dword ptr [edx] */ 31830 MEM32(ecx + 0x8) = edi; /* 0x3614B94E: mov dword ptr [ecx + 8], edi */ 31831 edi = MEM32(edx); /* 0x3614B951: mov edi, dword ptr [edx] */ 31832 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614B953: cmp edi, dword ptr [esi + 8] */ 31833 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 31834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31835 _flag_k = FK_CMP; 31836 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B95B; /* 0x3614B956: je 0x3614b95b */ 31837 L_3614B958: 31838 MEM32(edi + 0x4) = ecx; /* 0x3614B958: mov dword ptr [edi + 4], ecx */ 31839 L_3614B95B: 31840 edi = MEM32(ecx + 0x4); /* 0x3614B95B: mov edi, dword ptr [ecx + 4] */ 31841 MEM32(edx + 0x4) = edi; /* 0x3614B95E: mov dword ptr [edx + 4], edi */ 31842 edi = MEM32(esi + 0x4); /* 0x3614B961: mov edi, dword ptr [esi + 4] */ 31843 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614B964: cmp ecx, dword ptr [edi + 4] */ 31844 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 31845 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31846 _flag_k = FK_CMP; 31847 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B96E; /* 0x3614B967: jne 0x3614b96e */ 31848 L_3614B969: 31849 MEM32(edi + 0x4) = edx; /* 0x3614B969: mov dword ptr [edi + 4], edx */ 31850 goto L_3614B97C; /* 0x3614B96C: jmp 0x3614b97c */ 31851 L_3614B96E: 31852 edi = MEM32(ecx + 0x4); /* 0x3614B96E: mov edi, dword ptr [ecx + 4] */ 31853 /* cmp ecx, MEM32(edi) */ /* 0x3614B971: cmp ecx, dword ptr [edi] */ 31854 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 31855 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31856 _flag_k = FK_CMP; 31857 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B979; /* 0x3614B973: jne 0x3614b979 */ 31858 L_3614B975: 31859 MEM32(edi) = edx; /* 0x3614B975: mov dword ptr [edi], edx */ 31860 goto L_3614B97C; /* 0x3614B977: jmp 0x3614b97c */ 31861 L_3614B979: 31862 MEM32(edi + 0x8) = edx; /* 0x3614B979: mov dword ptr [edi + 8], edx */ 31863 L_3614B97C: 31864 MEM32(edx) = ecx; /* 0x3614B97C: mov dword ptr [edx], ecx */ 31865 L_3614B97E: 31866 MEM32(ecx + 0x4) = edx; /* 0x3614B97E: mov dword ptr [ecx + 4], edx */ 31867 L_3614B981: 31868 ecx = MEM32(esi + 0x4); /* 0x3614B981: mov ecx, dword ptr [esi + 4] */ 31869 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B984: cmp eax, dword ptr [ecx + 4] */ 31870 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 31871 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31872 _flag_k = FK_CMP; 31873 RECOMP_BACKEDGE(); 31874 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B80D; /* 0x3614B987: jne 0x3614b80d */ 31875 L_3614B98D: 31876 edx = MEM32(esi + 0x4); /* 0x3614B98D: mov edx, dword ptr [esi + 4] */ 31877 eax = MEM32(edx + 0x4); /* 0x3614B990: mov eax, dword ptr [edx + 4] */ 31878 ecx = MEM32(ebp + (-0x4)); /* 0x3614B993: mov ecx, dword ptr [ebp - 4] */ 31879 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B996: mov byte ptr [eax + 0x20], bl */ 31880 eax = MEM32(ebp + 0x8); /* 0x3614B999: mov eax, dword ptr [ebp + 8] */ 31881 edi = POP32_VAL(esp); /* 0x3614B99C: pop edi */ 31882 esi = POP32_VAL(esp); /* 0x3614B99D: pop esi */ 31883 MEM32(eax) = ecx; /* 0x3614B99E: mov dword ptr [eax], ecx */ 31884 ebx = POP32_VAL(esp); /* 0x3614B9A0: pop ebx */ 31885 esp = ebp; /* 0x3614B9A1: mov esp, ebp */ 31886 ebp = POP32_VAL(esp); /* 0x3614B9A3: pop ebp */ 31887 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3614B9A4: ret 0x10 */ 31888 RECOMP_REGS_OUT(); 31889 } 31890 31891 void sub_3614B88B(void) { 31892 int _fpu_cmp = 0; 31893 uint32_t _cf = 0; 31894 int _df = 1; 31895 uint32_t _flag_k = FK_NONE; 31896 uint32_t _flag_a = 0, _flag_b = 0; 31897 uint32_t _itail_tgt = 0; 31898 RECOMP_REGS_LOCALS 31899 RECOMP_ENTER(0x3614B88Bu); 31900 31901 goto L_3614B88B; 31902 L_3614B80D: 31903 ecx = MEM32(eax + 0x4); /* 0x3614B80D: mov ecx, dword ptr [eax + 4] */ 31904 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B810: mov dl, byte ptr [ecx + 0x20] */ 31905 /* test LO8(edx), LO8(edx) */ /* 0x3614B813: test dl, dl */ 31906 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 31907 _cf = 0; 31908 _flag_k = FK_NARROW(FK_TEST, 24); 31909 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B98D; /* 0x3614B815: jne 0x3614b98d */ 31910 L_3614B81B: 31911 edi = MEM32(ecx + 0x4); /* 0x3614B81B: mov edi, dword ptr [ecx + 4] */ 31912 edx = MEM32(edi); /* 0x3614B81E: mov edx, dword ptr [edi] */ 31913 /* cmp ecx, edx */ /* 0x3614B820: cmp ecx, edx */ 31914 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 31915 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31916 _flag_k = FK_CMP; 31917 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8E9; /* 0x3614B822: jne 0x3614b8e9 */ 31918 L_3614B828: 31919 edx = MEM32(edi + 0x8); /* 0x3614B828: mov edx, dword ptr [edi + 8] */ 31920 /* cmp MEM8(edx + 0x20), 0 */ /* 0x3614B82B: cmp byte ptr [edx + 0x20], 0 */ 31921 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 31922 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31923 _flag_k = FK_NARROW(FK_CMP, 24); 31924 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B84C; /* 0x3614B82F: jne 0x3614b84c */ 31925 L_3614B831: 31926 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B831: mov byte ptr [ecx + 0x20], bl */ 31927 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B834: mov byte ptr [edx + 0x20], bl */ 31928 ecx = MEM32(eax + 0x4); /* 0x3614B837: mov ecx, dword ptr [eax + 4] */ 31929 edx = MEM32(ecx + 0x4); /* 0x3614B83A: mov edx, dword ptr [ecx + 4] */ 31930 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x3614B83D: mov byte ptr [edx + 0x20], 0 */ 31931 eax = MEM32(eax + 0x4); /* 0x3614B841: mov eax, dword ptr [eax + 4] */ 31932 eax = MEM32(eax + 0x4); /* 0x3614B844: mov eax, dword ptr [eax + 4] */ 31933 goto L_3614B981; /* 0x3614B847: jmp 0x3614b981 */ 31934 L_3614B84C: 31935 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3614B84C: cmp eax, dword ptr [ecx + 8] */ 31936 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 31937 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31938 _flag_k = FK_CMP; 31939 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B88B; /* 0x3614B84F: jne 0x3614b88b */ 31940 L_3614B851: 31941 eax = ecx; /* 0x3614B851: mov eax, ecx */ 31942 ecx = MEM32(eax + 0x8); /* 0x3614B853: mov ecx, dword ptr [eax + 8] */ 31943 edx = MEM32(ecx); /* 0x3614B856: mov edx, dword ptr [ecx] */ 31944 MEM32(eax + 0x8) = edx; /* 0x3614B858: mov dword ptr [eax + 8], edx */ 31945 edx = MEM32(ecx); /* 0x3614B85B: mov edx, dword ptr [ecx] */ 31946 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614B85D: cmp edx, dword ptr [esi + 8] */ 31947 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 31948 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31949 _flag_k = FK_CMP; 31950 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B865; /* 0x3614B860: je 0x3614b865 */ 31951 L_3614B862: 31952 MEM32(edx + 0x4) = eax; /* 0x3614B862: mov dword ptr [edx + 4], eax */ 31953 L_3614B865: 31954 edx = MEM32(eax + 0x4); /* 0x3614B865: mov edx, dword ptr [eax + 4] */ 31955 MEM32(ecx + 0x4) = edx; /* 0x3614B868: mov dword ptr [ecx + 4], edx */ 31956 edx = MEM32(esi + 0x4); /* 0x3614B86B: mov edx, dword ptr [esi + 4] */ 31957 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614B86E: cmp eax, dword ptr [edx + 4] */ 31958 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 31959 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31960 _flag_k = FK_CMP; 31961 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B878; /* 0x3614B871: jne 0x3614b878 */ 31962 L_3614B873: 31963 MEM32(edx + 0x4) = ecx; /* 0x3614B873: mov dword ptr [edx + 4], ecx */ 31964 goto L_3614B886; /* 0x3614B876: jmp 0x3614b886 */ 31965 L_3614B878: 31966 edx = MEM32(eax + 0x4); /* 0x3614B878: mov edx, dword ptr [eax + 4] */ 31967 /* cmp eax, MEM32(edx) */ /* 0x3614B87B: cmp eax, dword ptr [edx] */ 31968 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 31969 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31970 _flag_k = FK_CMP; 31971 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B883; /* 0x3614B87D: jne 0x3614b883 */ 31972 L_3614B87F: 31973 MEM32(edx) = ecx; /* 0x3614B87F: mov dword ptr [edx], ecx */ 31974 goto L_3614B886; /* 0x3614B881: jmp 0x3614b886 */ 31975 L_3614B883: 31976 MEM32(edx + 0x8) = ecx; /* 0x3614B883: mov dword ptr [edx + 8], ecx */ 31977 L_3614B886: 31978 MEM32(ecx) = eax; /* 0x3614B886: mov dword ptr [ecx], eax */ 31979 MEM32(eax + 0x4) = ecx; /* 0x3614B888: mov dword ptr [eax + 4], ecx */ 31980 L_3614B88B: 31981 ecx = MEM32(eax + 0x4); /* 0x3614B88B: mov ecx, dword ptr [eax + 4] */ 31982 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B88E: mov byte ptr [ecx + 0x20], bl */ 31983 edx = MEM32(eax + 0x4); /* 0x3614B891: mov edx, dword ptr [eax + 4] */ 31984 ecx = MEM32(edx + 0x4); /* 0x3614B894: mov ecx, dword ptr [edx + 4] */ 31985 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B897: mov byte ptr [ecx + 0x20], 0 */ 31986 edx = MEM32(eax + 0x4); /* 0x3614B89B: mov edx, dword ptr [eax + 4] */ 31987 ecx = MEM32(edx + 0x4); /* 0x3614B89E: mov ecx, dword ptr [edx + 4] */ 31988 edx = MEM32(ecx); /* 0x3614B8A1: mov edx, dword ptr [ecx] */ 31989 edi = MEM32(edx + 0x8); /* 0x3614B8A3: mov edi, dword ptr [edx + 8] */ 31990 MEM32(ecx) = edi; /* 0x3614B8A6: mov dword ptr [ecx], edi */ 31991 edi = MEM32(edx + 0x8); /* 0x3614B8A8: mov edi, dword ptr [edx + 8] */ 31992 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614B8AB: cmp edi, dword ptr [esi + 8] */ 31993 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 31994 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31995 _flag_k = FK_CMP; 31996 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B8B3; /* 0x3614B8AE: je 0x3614b8b3 */ 31997 L_3614B8B0: 31998 MEM32(edi + 0x4) = ecx; /* 0x3614B8B0: mov dword ptr [edi + 4], ecx */ 31999 L_3614B8B3: 32000 edi = MEM32(ecx + 0x4); /* 0x3614B8B3: mov edi, dword ptr [ecx + 4] */ 32001 MEM32(edx + 0x4) = edi; /* 0x3614B8B6: mov dword ptr [edx + 4], edi */ 32002 edi = MEM32(esi + 0x4); /* 0x3614B8B9: mov edi, dword ptr [esi + 4] */ 32003 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614B8BC: cmp ecx, dword ptr [edi + 4] */ 32004 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 32005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32006 _flag_k = FK_CMP; 32007 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8CC; /* 0x3614B8BF: jne 0x3614b8cc */ 32008 L_3614B8C1: 32009 MEM32(edi + 0x4) = edx; /* 0x3614B8C1: mov dword ptr [edi + 4], edx */ 32010 MEM32(edx + 0x8) = ecx; /* 0x3614B8C4: mov dword ptr [edx + 8], ecx */ 32011 goto L_3614B97E; /* 0x3614B8C7: jmp 0x3614b97e */ 32012 L_3614B8CC: 32013 edi = MEM32(ecx + 0x4); /* 0x3614B8CC: mov edi, dword ptr [ecx + 4] */ 32014 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614B8CF: cmp ecx, dword ptr [edi + 8] */ 32015 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 32016 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32017 _flag_k = FK_CMP; 32018 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8DF; /* 0x3614B8D2: jne 0x3614b8df */ 32019 L_3614B8D4: 32020 MEM32(edi + 0x8) = edx; /* 0x3614B8D4: mov dword ptr [edi + 8], edx */ 32021 MEM32(edx + 0x8) = ecx; /* 0x3614B8D7: mov dword ptr [edx + 8], ecx */ 32022 goto L_3614B97E; /* 0x3614B8DA: jmp 0x3614b97e */ 32023 L_3614B8DF: 32024 MEM32(edi) = edx; /* 0x3614B8DF: mov dword ptr [edi], edx */ 32025 MEM32(edx + 0x8) = ecx; /* 0x3614B8E1: mov dword ptr [edx + 8], ecx */ 32026 goto L_3614B97E; /* 0x3614B8E4: jmp 0x3614b97e */ 32027 L_3614B8E9: 32028 /* cmp MEM8(edx + 0x20), 0 */ /* 0x3614B8E9: cmp byte ptr [edx + 0x20], 0 */ 32029 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 32030 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32031 _flag_k = FK_NARROW(FK_CMP, 24); 32032 RECOMP_BACKEDGE(); 32033 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B831; /* 0x3614B8ED: je 0x3614b831 */ 32034 L_3614B8F3: 32035 /* cmp eax, MEM32(ecx) */ /* 0x3614B8F3: cmp eax, dword ptr [ecx] */ 32036 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 32037 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32038 _flag_k = FK_CMP; 32039 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B933; /* 0x3614B8F5: jne 0x3614b933 */ 32040 L_3614B8F7: 32041 eax = ecx; /* 0x3614B8F7: mov eax, ecx */ 32042 ecx = MEM32(eax); /* 0x3614B8F9: mov ecx, dword ptr [eax] */ 32043 edx = MEM32(ecx + 0x8); /* 0x3614B8FB: mov edx, dword ptr [ecx + 8] */ 32044 MEM32(eax) = edx; /* 0x3614B8FE: mov dword ptr [eax], edx */ 32045 edx = MEM32(ecx + 0x8); /* 0x3614B900: mov edx, dword ptr [ecx + 8] */ 32046 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614B903: cmp edx, dword ptr [esi + 8] */ 32047 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 32048 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32049 _flag_k = FK_CMP; 32050 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B90B; /* 0x3614B906: je 0x3614b90b */ 32051 L_3614B908: 32052 MEM32(edx + 0x4) = eax; /* 0x3614B908: mov dword ptr [edx + 4], eax */ 32053 L_3614B90B: 32054 edx = MEM32(eax + 0x4); /* 0x3614B90B: mov edx, dword ptr [eax + 4] */ 32055 MEM32(ecx + 0x4) = edx; /* 0x3614B90E: mov dword ptr [ecx + 4], edx */ 32056 edx = MEM32(esi + 0x4); /* 0x3614B911: mov edx, dword ptr [esi + 4] */ 32057 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614B914: cmp eax, dword ptr [edx + 4] */ 32058 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 32059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32060 _flag_k = FK_CMP; 32061 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B91E; /* 0x3614B917: jne 0x3614b91e */ 32062 L_3614B919: 32063 MEM32(edx + 0x4) = ecx; /* 0x3614B919: mov dword ptr [edx + 4], ecx */ 32064 goto L_3614B92D; /* 0x3614B91C: jmp 0x3614b92d */ 32065 L_3614B91E: 32066 edx = MEM32(eax + 0x4); /* 0x3614B91E: mov edx, dword ptr [eax + 4] */ 32067 /* cmp eax, MEM32(edx + 0x8) */ /* 0x3614B921: cmp eax, dword ptr [edx + 8] */ 32068 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 32069 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32070 _flag_k = FK_CMP; 32071 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B92B; /* 0x3614B924: jne 0x3614b92b */ 32072 L_3614B926: 32073 MEM32(edx + 0x8) = ecx; /* 0x3614B926: mov dword ptr [edx + 8], ecx */ 32074 goto L_3614B92D; /* 0x3614B929: jmp 0x3614b92d */ 32075 L_3614B92B: 32076 MEM32(edx) = ecx; /* 0x3614B92B: mov dword ptr [edx], ecx */ 32077 L_3614B92D: 32078 MEM32(ecx + 0x8) = eax; /* 0x3614B92D: mov dword ptr [ecx + 8], eax */ 32079 MEM32(eax + 0x4) = ecx; /* 0x3614B930: mov dword ptr [eax + 4], ecx */ 32080 L_3614B933: 32081 ecx = MEM32(eax + 0x4); /* 0x3614B933: mov ecx, dword ptr [eax + 4] */ 32082 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B936: mov byte ptr [ecx + 0x20], bl */ 32083 edx = MEM32(eax + 0x4); /* 0x3614B939: mov edx, dword ptr [eax + 4] */ 32084 ecx = MEM32(edx + 0x4); /* 0x3614B93C: mov ecx, dword ptr [edx + 4] */ 32085 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B93F: mov byte ptr [ecx + 0x20], 0 */ 32086 edx = MEM32(eax + 0x4); /* 0x3614B943: mov edx, dword ptr [eax + 4] */ 32087 ecx = MEM32(edx + 0x4); /* 0x3614B946: mov ecx, dword ptr [edx + 4] */ 32088 edx = MEM32(ecx + 0x8); /* 0x3614B949: mov edx, dword ptr [ecx + 8] */ 32089 edi = MEM32(edx); /* 0x3614B94C: mov edi, dword ptr [edx] */ 32090 MEM32(ecx + 0x8) = edi; /* 0x3614B94E: mov dword ptr [ecx + 8], edi */ 32091 edi = MEM32(edx); /* 0x3614B951: mov edi, dword ptr [edx] */ 32092 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614B953: cmp edi, dword ptr [esi + 8] */ 32093 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 32094 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32095 _flag_k = FK_CMP; 32096 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B95B; /* 0x3614B956: je 0x3614b95b */ 32097 L_3614B958: 32098 MEM32(edi + 0x4) = ecx; /* 0x3614B958: mov dword ptr [edi + 4], ecx */ 32099 L_3614B95B: 32100 edi = MEM32(ecx + 0x4); /* 0x3614B95B: mov edi, dword ptr [ecx + 4] */ 32101 MEM32(edx + 0x4) = edi; /* 0x3614B95E: mov dword ptr [edx + 4], edi */ 32102 edi = MEM32(esi + 0x4); /* 0x3614B961: mov edi, dword ptr [esi + 4] */ 32103 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614B964: cmp ecx, dword ptr [edi + 4] */ 32104 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 32105 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32106 _flag_k = FK_CMP; 32107 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B96E; /* 0x3614B967: jne 0x3614b96e */ 32108 L_3614B969: 32109 MEM32(edi + 0x4) = edx; /* 0x3614B969: mov dword ptr [edi + 4], edx */ 32110 goto L_3614B97C; /* 0x3614B96C: jmp 0x3614b97c */ 32111 L_3614B96E: 32112 edi = MEM32(ecx + 0x4); /* 0x3614B96E: mov edi, dword ptr [ecx + 4] */ 32113 /* cmp ecx, MEM32(edi) */ /* 0x3614B971: cmp ecx, dword ptr [edi] */ 32114 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 32115 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32116 _flag_k = FK_CMP; 32117 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B979; /* 0x3614B973: jne 0x3614b979 */ 32118 L_3614B975: 32119 MEM32(edi) = edx; /* 0x3614B975: mov dword ptr [edi], edx */ 32120 goto L_3614B97C; /* 0x3614B977: jmp 0x3614b97c */ 32121 L_3614B979: 32122 MEM32(edi + 0x8) = edx; /* 0x3614B979: mov dword ptr [edi + 8], edx */ 32123 L_3614B97C: 32124 MEM32(edx) = ecx; /* 0x3614B97C: mov dword ptr [edx], ecx */ 32125 L_3614B97E: 32126 MEM32(ecx + 0x4) = edx; /* 0x3614B97E: mov dword ptr [ecx + 4], edx */ 32127 L_3614B981: 32128 ecx = MEM32(esi + 0x4); /* 0x3614B981: mov ecx, dword ptr [esi + 4] */ 32129 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B984: cmp eax, dword ptr [ecx + 4] */ 32130 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 32131 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32132 _flag_k = FK_CMP; 32133 RECOMP_BACKEDGE(); 32134 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B80D; /* 0x3614B987: jne 0x3614b80d */ 32135 L_3614B98D: 32136 edx = MEM32(esi + 0x4); /* 0x3614B98D: mov edx, dword ptr [esi + 4] */ 32137 eax = MEM32(edx + 0x4); /* 0x3614B990: mov eax, dword ptr [edx + 4] */ 32138 ecx = MEM32(ebp + (-0x4)); /* 0x3614B993: mov ecx, dword ptr [ebp - 4] */ 32139 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B996: mov byte ptr [eax + 0x20], bl */ 32140 eax = MEM32(ebp + 0x8); /* 0x3614B999: mov eax, dword ptr [ebp + 8] */ 32141 edi = POP32_VAL(esp); /* 0x3614B99C: pop edi */ 32142 esi = POP32_VAL(esp); /* 0x3614B99D: pop esi */ 32143 MEM32(eax) = ecx; /* 0x3614B99E: mov dword ptr [eax], ecx */ 32144 ebx = POP32_VAL(esp); /* 0x3614B9A0: pop ebx */ 32145 esp = ebp; /* 0x3614B9A1: mov esp, ebp */ 32146 ebp = POP32_VAL(esp); /* 0x3614B9A3: pop ebp */ 32147 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3614B9A4: ret 0x10 */ 32148 RECOMP_REGS_OUT(); 32149 } 32150 32151 void sub_3614B8E9(void) { 32152 int _fpu_cmp = 0; 32153 uint32_t _cf = 0; 32154 int _df = 1; 32155 uint32_t _flag_k = FK_NONE; 32156 uint32_t _flag_a = 0, _flag_b = 0; 32157 uint32_t _itail_tgt = 0; 32158 RECOMP_REGS_LOCALS 32159 RECOMP_ENTER(0x3614B8E9u); 32160 32161 goto L_3614B8E9; 32162 L_3614B80D: 32163 ecx = MEM32(eax + 0x4); /* 0x3614B80D: mov ecx, dword ptr [eax + 4] */ 32164 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B810: mov dl, byte ptr [ecx + 0x20] */ 32165 /* test LO8(edx), LO8(edx) */ /* 0x3614B813: test dl, dl */ 32166 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 32167 _cf = 0; 32168 _flag_k = FK_NARROW(FK_TEST, 24); 32169 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B98D; /* 0x3614B815: jne 0x3614b98d */ 32170 L_3614B81B: 32171 edi = MEM32(ecx + 0x4); /* 0x3614B81B: mov edi, dword ptr [ecx + 4] */ 32172 edx = MEM32(edi); /* 0x3614B81E: mov edx, dword ptr [edi] */ 32173 /* cmp ecx, edx */ /* 0x3614B820: cmp ecx, edx */ 32174 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 32175 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32176 _flag_k = FK_CMP; 32177 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8E9; /* 0x3614B822: jne 0x3614b8e9 */ 32178 L_3614B828: 32179 edx = MEM32(edi + 0x8); /* 0x3614B828: mov edx, dword ptr [edi + 8] */ 32180 /* cmp MEM8(edx + 0x20), 0 */ /* 0x3614B82B: cmp byte ptr [edx + 0x20], 0 */ 32181 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 32182 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32183 _flag_k = FK_NARROW(FK_CMP, 24); 32184 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B84C; /* 0x3614B82F: jne 0x3614b84c */ 32185 L_3614B831: 32186 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B831: mov byte ptr [ecx + 0x20], bl */ 32187 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B834: mov byte ptr [edx + 0x20], bl */ 32188 ecx = MEM32(eax + 0x4); /* 0x3614B837: mov ecx, dword ptr [eax + 4] */ 32189 edx = MEM32(ecx + 0x4); /* 0x3614B83A: mov edx, dword ptr [ecx + 4] */ 32190 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x3614B83D: mov byte ptr [edx + 0x20], 0 */ 32191 eax = MEM32(eax + 0x4); /* 0x3614B841: mov eax, dword ptr [eax + 4] */ 32192 eax = MEM32(eax + 0x4); /* 0x3614B844: mov eax, dword ptr [eax + 4] */ 32193 goto L_3614B981; /* 0x3614B847: jmp 0x3614b981 */ 32194 L_3614B84C: 32195 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3614B84C: cmp eax, dword ptr [ecx + 8] */ 32196 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 32197 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32198 _flag_k = FK_CMP; 32199 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B88B; /* 0x3614B84F: jne 0x3614b88b */ 32200 L_3614B851: 32201 eax = ecx; /* 0x3614B851: mov eax, ecx */ 32202 ecx = MEM32(eax + 0x8); /* 0x3614B853: mov ecx, dword ptr [eax + 8] */ 32203 edx = MEM32(ecx); /* 0x3614B856: mov edx, dword ptr [ecx] */ 32204 MEM32(eax + 0x8) = edx; /* 0x3614B858: mov dword ptr [eax + 8], edx */ 32205 edx = MEM32(ecx); /* 0x3614B85B: mov edx, dword ptr [ecx] */ 32206 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614B85D: cmp edx, dword ptr [esi + 8] */ 32207 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 32208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32209 _flag_k = FK_CMP; 32210 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B865; /* 0x3614B860: je 0x3614b865 */ 32211 L_3614B862: 32212 MEM32(edx + 0x4) = eax; /* 0x3614B862: mov dword ptr [edx + 4], eax */ 32213 L_3614B865: 32214 edx = MEM32(eax + 0x4); /* 0x3614B865: mov edx, dword ptr [eax + 4] */ 32215 MEM32(ecx + 0x4) = edx; /* 0x3614B868: mov dword ptr [ecx + 4], edx */ 32216 edx = MEM32(esi + 0x4); /* 0x3614B86B: mov edx, dword ptr [esi + 4] */ 32217 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614B86E: cmp eax, dword ptr [edx + 4] */ 32218 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 32219 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32220 _flag_k = FK_CMP; 32221 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B878; /* 0x3614B871: jne 0x3614b878 */ 32222 L_3614B873: 32223 MEM32(edx + 0x4) = ecx; /* 0x3614B873: mov dword ptr [edx + 4], ecx */ 32224 goto L_3614B886; /* 0x3614B876: jmp 0x3614b886 */ 32225 L_3614B878: 32226 edx = MEM32(eax + 0x4); /* 0x3614B878: mov edx, dword ptr [eax + 4] */ 32227 /* cmp eax, MEM32(edx) */ /* 0x3614B87B: cmp eax, dword ptr [edx] */ 32228 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 32229 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32230 _flag_k = FK_CMP; 32231 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B883; /* 0x3614B87D: jne 0x3614b883 */ 32232 L_3614B87F: 32233 MEM32(edx) = ecx; /* 0x3614B87F: mov dword ptr [edx], ecx */ 32234 goto L_3614B886; /* 0x3614B881: jmp 0x3614b886 */ 32235 L_3614B883: 32236 MEM32(edx + 0x8) = ecx; /* 0x3614B883: mov dword ptr [edx + 8], ecx */ 32237 L_3614B886: 32238 MEM32(ecx) = eax; /* 0x3614B886: mov dword ptr [ecx], eax */ 32239 MEM32(eax + 0x4) = ecx; /* 0x3614B888: mov dword ptr [eax + 4], ecx */ 32240 L_3614B88B: 32241 ecx = MEM32(eax + 0x4); /* 0x3614B88B: mov ecx, dword ptr [eax + 4] */ 32242 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B88E: mov byte ptr [ecx + 0x20], bl */ 32243 edx = MEM32(eax + 0x4); /* 0x3614B891: mov edx, dword ptr [eax + 4] */ 32244 ecx = MEM32(edx + 0x4); /* 0x3614B894: mov ecx, dword ptr [edx + 4] */ 32245 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B897: mov byte ptr [ecx + 0x20], 0 */ 32246 edx = MEM32(eax + 0x4); /* 0x3614B89B: mov edx, dword ptr [eax + 4] */ 32247 ecx = MEM32(edx + 0x4); /* 0x3614B89E: mov ecx, dword ptr [edx + 4] */ 32248 edx = MEM32(ecx); /* 0x3614B8A1: mov edx, dword ptr [ecx] */ 32249 edi = MEM32(edx + 0x8); /* 0x3614B8A3: mov edi, dword ptr [edx + 8] */ 32250 MEM32(ecx) = edi; /* 0x3614B8A6: mov dword ptr [ecx], edi */ 32251 edi = MEM32(edx + 0x8); /* 0x3614B8A8: mov edi, dword ptr [edx + 8] */ 32252 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614B8AB: cmp edi, dword ptr [esi + 8] */ 32253 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 32254 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32255 _flag_k = FK_CMP; 32256 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B8B3; /* 0x3614B8AE: je 0x3614b8b3 */ 32257 L_3614B8B0: 32258 MEM32(edi + 0x4) = ecx; /* 0x3614B8B0: mov dword ptr [edi + 4], ecx */ 32259 L_3614B8B3: 32260 edi = MEM32(ecx + 0x4); /* 0x3614B8B3: mov edi, dword ptr [ecx + 4] */ 32261 MEM32(edx + 0x4) = edi; /* 0x3614B8B6: mov dword ptr [edx + 4], edi */ 32262 edi = MEM32(esi + 0x4); /* 0x3614B8B9: mov edi, dword ptr [esi + 4] */ 32263 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614B8BC: cmp ecx, dword ptr [edi + 4] */ 32264 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 32265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32266 _flag_k = FK_CMP; 32267 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8CC; /* 0x3614B8BF: jne 0x3614b8cc */ 32268 L_3614B8C1: 32269 MEM32(edi + 0x4) = edx; /* 0x3614B8C1: mov dword ptr [edi + 4], edx */ 32270 MEM32(edx + 0x8) = ecx; /* 0x3614B8C4: mov dword ptr [edx + 8], ecx */ 32271 goto L_3614B97E; /* 0x3614B8C7: jmp 0x3614b97e */ 32272 L_3614B8CC: 32273 edi = MEM32(ecx + 0x4); /* 0x3614B8CC: mov edi, dword ptr [ecx + 4] */ 32274 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614B8CF: cmp ecx, dword ptr [edi + 8] */ 32275 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 32276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32277 _flag_k = FK_CMP; 32278 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8DF; /* 0x3614B8D2: jne 0x3614b8df */ 32279 L_3614B8D4: 32280 MEM32(edi + 0x8) = edx; /* 0x3614B8D4: mov dword ptr [edi + 8], edx */ 32281 MEM32(edx + 0x8) = ecx; /* 0x3614B8D7: mov dword ptr [edx + 8], ecx */ 32282 goto L_3614B97E; /* 0x3614B8DA: jmp 0x3614b97e */ 32283 L_3614B8DF: 32284 MEM32(edi) = edx; /* 0x3614B8DF: mov dword ptr [edi], edx */ 32285 MEM32(edx + 0x8) = ecx; /* 0x3614B8E1: mov dword ptr [edx + 8], ecx */ 32286 goto L_3614B97E; /* 0x3614B8E4: jmp 0x3614b97e */ 32287 L_3614B8E9: 32288 /* cmp MEM8(edx + 0x20), 0 */ /* 0x3614B8E9: cmp byte ptr [edx + 0x20], 0 */ 32289 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 32290 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32291 _flag_k = FK_NARROW(FK_CMP, 24); 32292 RECOMP_BACKEDGE(); 32293 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B831; /* 0x3614B8ED: je 0x3614b831 */ 32294 L_3614B8F3: 32295 /* cmp eax, MEM32(ecx) */ /* 0x3614B8F3: cmp eax, dword ptr [ecx] */ 32296 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 32297 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32298 _flag_k = FK_CMP; 32299 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B933; /* 0x3614B8F5: jne 0x3614b933 */ 32300 L_3614B8F7: 32301 eax = ecx; /* 0x3614B8F7: mov eax, ecx */ 32302 ecx = MEM32(eax); /* 0x3614B8F9: mov ecx, dword ptr [eax] */ 32303 edx = MEM32(ecx + 0x8); /* 0x3614B8FB: mov edx, dword ptr [ecx + 8] */ 32304 MEM32(eax) = edx; /* 0x3614B8FE: mov dword ptr [eax], edx */ 32305 edx = MEM32(ecx + 0x8); /* 0x3614B900: mov edx, dword ptr [ecx + 8] */ 32306 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614B903: cmp edx, dword ptr [esi + 8] */ 32307 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 32308 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32309 _flag_k = FK_CMP; 32310 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B90B; /* 0x3614B906: je 0x3614b90b */ 32311 L_3614B908: 32312 MEM32(edx + 0x4) = eax; /* 0x3614B908: mov dword ptr [edx + 4], eax */ 32313 L_3614B90B: 32314 edx = MEM32(eax + 0x4); /* 0x3614B90B: mov edx, dword ptr [eax + 4] */ 32315 MEM32(ecx + 0x4) = edx; /* 0x3614B90E: mov dword ptr [ecx + 4], edx */ 32316 edx = MEM32(esi + 0x4); /* 0x3614B911: mov edx, dword ptr [esi + 4] */ 32317 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614B914: cmp eax, dword ptr [edx + 4] */ 32318 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 32319 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32320 _flag_k = FK_CMP; 32321 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B91E; /* 0x3614B917: jne 0x3614b91e */ 32322 L_3614B919: 32323 MEM32(edx + 0x4) = ecx; /* 0x3614B919: mov dword ptr [edx + 4], ecx */ 32324 goto L_3614B92D; /* 0x3614B91C: jmp 0x3614b92d */ 32325 L_3614B91E: 32326 edx = MEM32(eax + 0x4); /* 0x3614B91E: mov edx, dword ptr [eax + 4] */ 32327 /* cmp eax, MEM32(edx + 0x8) */ /* 0x3614B921: cmp eax, dword ptr [edx + 8] */ 32328 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 32329 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32330 _flag_k = FK_CMP; 32331 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B92B; /* 0x3614B924: jne 0x3614b92b */ 32332 L_3614B926: 32333 MEM32(edx + 0x8) = ecx; /* 0x3614B926: mov dword ptr [edx + 8], ecx */ 32334 goto L_3614B92D; /* 0x3614B929: jmp 0x3614b92d */ 32335 L_3614B92B: 32336 MEM32(edx) = ecx; /* 0x3614B92B: mov dword ptr [edx], ecx */ 32337 L_3614B92D: 32338 MEM32(ecx + 0x8) = eax; /* 0x3614B92D: mov dword ptr [ecx + 8], eax */ 32339 MEM32(eax + 0x4) = ecx; /* 0x3614B930: mov dword ptr [eax + 4], ecx */ 32340 L_3614B933: 32341 ecx = MEM32(eax + 0x4); /* 0x3614B933: mov ecx, dword ptr [eax + 4] */ 32342 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B936: mov byte ptr [ecx + 0x20], bl */ 32343 edx = MEM32(eax + 0x4); /* 0x3614B939: mov edx, dword ptr [eax + 4] */ 32344 ecx = MEM32(edx + 0x4); /* 0x3614B93C: mov ecx, dword ptr [edx + 4] */ 32345 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B93F: mov byte ptr [ecx + 0x20], 0 */ 32346 edx = MEM32(eax + 0x4); /* 0x3614B943: mov edx, dword ptr [eax + 4] */ 32347 ecx = MEM32(edx + 0x4); /* 0x3614B946: mov ecx, dword ptr [edx + 4] */ 32348 edx = MEM32(ecx + 0x8); /* 0x3614B949: mov edx, dword ptr [ecx + 8] */ 32349 edi = MEM32(edx); /* 0x3614B94C: mov edi, dword ptr [edx] */ 32350 MEM32(ecx + 0x8) = edi; /* 0x3614B94E: mov dword ptr [ecx + 8], edi */ 32351 edi = MEM32(edx); /* 0x3614B951: mov edi, dword ptr [edx] */ 32352 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614B953: cmp edi, dword ptr [esi + 8] */ 32353 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 32354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32355 _flag_k = FK_CMP; 32356 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B95B; /* 0x3614B956: je 0x3614b95b */ 32357 L_3614B958: 32358 MEM32(edi + 0x4) = ecx; /* 0x3614B958: mov dword ptr [edi + 4], ecx */ 32359 L_3614B95B: 32360 edi = MEM32(ecx + 0x4); /* 0x3614B95B: mov edi, dword ptr [ecx + 4] */ 32361 MEM32(edx + 0x4) = edi; /* 0x3614B95E: mov dword ptr [edx + 4], edi */ 32362 edi = MEM32(esi + 0x4); /* 0x3614B961: mov edi, dword ptr [esi + 4] */ 32363 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614B964: cmp ecx, dword ptr [edi + 4] */ 32364 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 32365 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32366 _flag_k = FK_CMP; 32367 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B96E; /* 0x3614B967: jne 0x3614b96e */ 32368 L_3614B969: 32369 MEM32(edi + 0x4) = edx; /* 0x3614B969: mov dword ptr [edi + 4], edx */ 32370 goto L_3614B97C; /* 0x3614B96C: jmp 0x3614b97c */ 32371 L_3614B96E: 32372 edi = MEM32(ecx + 0x4); /* 0x3614B96E: mov edi, dword ptr [ecx + 4] */ 32373 /* cmp ecx, MEM32(edi) */ /* 0x3614B971: cmp ecx, dword ptr [edi] */ 32374 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 32375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32376 _flag_k = FK_CMP; 32377 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B979; /* 0x3614B973: jne 0x3614b979 */ 32378 L_3614B975: 32379 MEM32(edi) = edx; /* 0x3614B975: mov dword ptr [edi], edx */ 32380 goto L_3614B97C; /* 0x3614B977: jmp 0x3614b97c */ 32381 L_3614B979: 32382 MEM32(edi + 0x8) = edx; /* 0x3614B979: mov dword ptr [edi + 8], edx */ 32383 L_3614B97C: 32384 MEM32(edx) = ecx; /* 0x3614B97C: mov dword ptr [edx], ecx */ 32385 L_3614B97E: 32386 MEM32(ecx + 0x4) = edx; /* 0x3614B97E: mov dword ptr [ecx + 4], edx */ 32387 L_3614B981: 32388 ecx = MEM32(esi + 0x4); /* 0x3614B981: mov ecx, dword ptr [esi + 4] */ 32389 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B984: cmp eax, dword ptr [ecx + 4] */ 32390 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 32391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32392 _flag_k = FK_CMP; 32393 RECOMP_BACKEDGE(); 32394 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B80D; /* 0x3614B987: jne 0x3614b80d */ 32395 L_3614B98D: 32396 edx = MEM32(esi + 0x4); /* 0x3614B98D: mov edx, dword ptr [esi + 4] */ 32397 eax = MEM32(edx + 0x4); /* 0x3614B990: mov eax, dword ptr [edx + 4] */ 32398 ecx = MEM32(ebp + (-0x4)); /* 0x3614B993: mov ecx, dword ptr [ebp - 4] */ 32399 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B996: mov byte ptr [eax + 0x20], bl */ 32400 eax = MEM32(ebp + 0x8); /* 0x3614B999: mov eax, dword ptr [ebp + 8] */ 32401 edi = POP32_VAL(esp); /* 0x3614B99C: pop edi */ 32402 esi = POP32_VAL(esp); /* 0x3614B99D: pop esi */ 32403 MEM32(eax) = ecx; /* 0x3614B99E: mov dword ptr [eax], ecx */ 32404 ebx = POP32_VAL(esp); /* 0x3614B9A0: pop ebx */ 32405 esp = ebp; /* 0x3614B9A1: mov esp, ebp */ 32406 ebp = POP32_VAL(esp); /* 0x3614B9A3: pop ebp */ 32407 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3614B9A4: ret 0x10 */ 32408 RECOMP_REGS_OUT(); 32409 } 32410 32411 void sub_3614B92D(void) { 32412 int _fpu_cmp = 0; 32413 uint32_t _cf = 0; 32414 int _df = 1; 32415 uint32_t _flag_k = FK_NONE; 32416 uint32_t _flag_a = 0, _flag_b = 0; 32417 uint32_t _itail_tgt = 0; 32418 RECOMP_REGS_LOCALS 32419 RECOMP_ENTER(0x3614B92Du); 32420 32421 goto L_3614B92D; 32422 L_3614B80D: 32423 ecx = MEM32(eax + 0x4); /* 0x3614B80D: mov ecx, dword ptr [eax + 4] */ 32424 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B810: mov dl, byte ptr [ecx + 0x20] */ 32425 /* test LO8(edx), LO8(edx) */ /* 0x3614B813: test dl, dl */ 32426 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 32427 _cf = 0; 32428 _flag_k = FK_NARROW(FK_TEST, 24); 32429 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B98D; /* 0x3614B815: jne 0x3614b98d */ 32430 L_3614B81B: 32431 edi = MEM32(ecx + 0x4); /* 0x3614B81B: mov edi, dword ptr [ecx + 4] */ 32432 edx = MEM32(edi); /* 0x3614B81E: mov edx, dword ptr [edi] */ 32433 /* cmp ecx, edx */ /* 0x3614B820: cmp ecx, edx */ 32434 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 32435 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32436 _flag_k = FK_CMP; 32437 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8E9; /* 0x3614B822: jne 0x3614b8e9 */ 32438 L_3614B828: 32439 edx = MEM32(edi + 0x8); /* 0x3614B828: mov edx, dword ptr [edi + 8] */ 32440 /* cmp MEM8(edx + 0x20), 0 */ /* 0x3614B82B: cmp byte ptr [edx + 0x20], 0 */ 32441 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 32442 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32443 _flag_k = FK_NARROW(FK_CMP, 24); 32444 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B84C; /* 0x3614B82F: jne 0x3614b84c */ 32445 L_3614B831: 32446 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B831: mov byte ptr [ecx + 0x20], bl */ 32447 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B834: mov byte ptr [edx + 0x20], bl */ 32448 ecx = MEM32(eax + 0x4); /* 0x3614B837: mov ecx, dword ptr [eax + 4] */ 32449 edx = MEM32(ecx + 0x4); /* 0x3614B83A: mov edx, dword ptr [ecx + 4] */ 32450 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x3614B83D: mov byte ptr [edx + 0x20], 0 */ 32451 eax = MEM32(eax + 0x4); /* 0x3614B841: mov eax, dword ptr [eax + 4] */ 32452 eax = MEM32(eax + 0x4); /* 0x3614B844: mov eax, dword ptr [eax + 4] */ 32453 goto L_3614B981; /* 0x3614B847: jmp 0x3614b981 */ 32454 L_3614B84C: 32455 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3614B84C: cmp eax, dword ptr [ecx + 8] */ 32456 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 32457 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32458 _flag_k = FK_CMP; 32459 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B88B; /* 0x3614B84F: jne 0x3614b88b */ 32460 L_3614B851: 32461 eax = ecx; /* 0x3614B851: mov eax, ecx */ 32462 ecx = MEM32(eax + 0x8); /* 0x3614B853: mov ecx, dword ptr [eax + 8] */ 32463 edx = MEM32(ecx); /* 0x3614B856: mov edx, dword ptr [ecx] */ 32464 MEM32(eax + 0x8) = edx; /* 0x3614B858: mov dword ptr [eax + 8], edx */ 32465 edx = MEM32(ecx); /* 0x3614B85B: mov edx, dword ptr [ecx] */ 32466 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614B85D: cmp edx, dword ptr [esi + 8] */ 32467 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 32468 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32469 _flag_k = FK_CMP; 32470 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B865; /* 0x3614B860: je 0x3614b865 */ 32471 L_3614B862: 32472 MEM32(edx + 0x4) = eax; /* 0x3614B862: mov dword ptr [edx + 4], eax */ 32473 L_3614B865: 32474 edx = MEM32(eax + 0x4); /* 0x3614B865: mov edx, dword ptr [eax + 4] */ 32475 MEM32(ecx + 0x4) = edx; /* 0x3614B868: mov dword ptr [ecx + 4], edx */ 32476 edx = MEM32(esi + 0x4); /* 0x3614B86B: mov edx, dword ptr [esi + 4] */ 32477 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614B86E: cmp eax, dword ptr [edx + 4] */ 32478 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 32479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32480 _flag_k = FK_CMP; 32481 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B878; /* 0x3614B871: jne 0x3614b878 */ 32482 L_3614B873: 32483 MEM32(edx + 0x4) = ecx; /* 0x3614B873: mov dword ptr [edx + 4], ecx */ 32484 goto L_3614B886; /* 0x3614B876: jmp 0x3614b886 */ 32485 L_3614B878: 32486 edx = MEM32(eax + 0x4); /* 0x3614B878: mov edx, dword ptr [eax + 4] */ 32487 /* cmp eax, MEM32(edx) */ /* 0x3614B87B: cmp eax, dword ptr [edx] */ 32488 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 32489 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32490 _flag_k = FK_CMP; 32491 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B883; /* 0x3614B87D: jne 0x3614b883 */ 32492 L_3614B87F: 32493 MEM32(edx) = ecx; /* 0x3614B87F: mov dword ptr [edx], ecx */ 32494 goto L_3614B886; /* 0x3614B881: jmp 0x3614b886 */ 32495 L_3614B883: 32496 MEM32(edx + 0x8) = ecx; /* 0x3614B883: mov dword ptr [edx + 8], ecx */ 32497 L_3614B886: 32498 MEM32(ecx) = eax; /* 0x3614B886: mov dword ptr [ecx], eax */ 32499 MEM32(eax + 0x4) = ecx; /* 0x3614B888: mov dword ptr [eax + 4], ecx */ 32500 L_3614B88B: 32501 ecx = MEM32(eax + 0x4); /* 0x3614B88B: mov ecx, dword ptr [eax + 4] */ 32502 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B88E: mov byte ptr [ecx + 0x20], bl */ 32503 edx = MEM32(eax + 0x4); /* 0x3614B891: mov edx, dword ptr [eax + 4] */ 32504 ecx = MEM32(edx + 0x4); /* 0x3614B894: mov ecx, dword ptr [edx + 4] */ 32505 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B897: mov byte ptr [ecx + 0x20], 0 */ 32506 edx = MEM32(eax + 0x4); /* 0x3614B89B: mov edx, dword ptr [eax + 4] */ 32507 ecx = MEM32(edx + 0x4); /* 0x3614B89E: mov ecx, dword ptr [edx + 4] */ 32508 edx = MEM32(ecx); /* 0x3614B8A1: mov edx, dword ptr [ecx] */ 32509 edi = MEM32(edx + 0x8); /* 0x3614B8A3: mov edi, dword ptr [edx + 8] */ 32510 MEM32(ecx) = edi; /* 0x3614B8A6: mov dword ptr [ecx], edi */ 32511 edi = MEM32(edx + 0x8); /* 0x3614B8A8: mov edi, dword ptr [edx + 8] */ 32512 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614B8AB: cmp edi, dword ptr [esi + 8] */ 32513 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 32514 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32515 _flag_k = FK_CMP; 32516 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B8B3; /* 0x3614B8AE: je 0x3614b8b3 */ 32517 L_3614B8B0: 32518 MEM32(edi + 0x4) = ecx; /* 0x3614B8B0: mov dword ptr [edi + 4], ecx */ 32519 L_3614B8B3: 32520 edi = MEM32(ecx + 0x4); /* 0x3614B8B3: mov edi, dword ptr [ecx + 4] */ 32521 MEM32(edx + 0x4) = edi; /* 0x3614B8B6: mov dword ptr [edx + 4], edi */ 32522 edi = MEM32(esi + 0x4); /* 0x3614B8B9: mov edi, dword ptr [esi + 4] */ 32523 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614B8BC: cmp ecx, dword ptr [edi + 4] */ 32524 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 32525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32526 _flag_k = FK_CMP; 32527 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8CC; /* 0x3614B8BF: jne 0x3614b8cc */ 32528 L_3614B8C1: 32529 MEM32(edi + 0x4) = edx; /* 0x3614B8C1: mov dword ptr [edi + 4], edx */ 32530 MEM32(edx + 0x8) = ecx; /* 0x3614B8C4: mov dword ptr [edx + 8], ecx */ 32531 goto L_3614B97E; /* 0x3614B8C7: jmp 0x3614b97e */ 32532 L_3614B8CC: 32533 edi = MEM32(ecx + 0x4); /* 0x3614B8CC: mov edi, dword ptr [ecx + 4] */ 32534 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614B8CF: cmp ecx, dword ptr [edi + 8] */ 32535 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 32536 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32537 _flag_k = FK_CMP; 32538 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8DF; /* 0x3614B8D2: jne 0x3614b8df */ 32539 L_3614B8D4: 32540 MEM32(edi + 0x8) = edx; /* 0x3614B8D4: mov dword ptr [edi + 8], edx */ 32541 MEM32(edx + 0x8) = ecx; /* 0x3614B8D7: mov dword ptr [edx + 8], ecx */ 32542 goto L_3614B97E; /* 0x3614B8DA: jmp 0x3614b97e */ 32543 L_3614B8DF: 32544 MEM32(edi) = edx; /* 0x3614B8DF: mov dword ptr [edi], edx */ 32545 MEM32(edx + 0x8) = ecx; /* 0x3614B8E1: mov dword ptr [edx + 8], ecx */ 32546 goto L_3614B97E; /* 0x3614B8E4: jmp 0x3614b97e */ 32547 L_3614B8E9: 32548 /* cmp MEM8(edx + 0x20), 0 */ /* 0x3614B8E9: cmp byte ptr [edx + 0x20], 0 */ 32549 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 32550 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32551 _flag_k = FK_NARROW(FK_CMP, 24); 32552 RECOMP_BACKEDGE(); 32553 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B831; /* 0x3614B8ED: je 0x3614b831 */ 32554 L_3614B8F3: 32555 /* cmp eax, MEM32(ecx) */ /* 0x3614B8F3: cmp eax, dword ptr [ecx] */ 32556 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 32557 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32558 _flag_k = FK_CMP; 32559 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B933; /* 0x3614B8F5: jne 0x3614b933 */ 32560 L_3614B8F7: 32561 eax = ecx; /* 0x3614B8F7: mov eax, ecx */ 32562 ecx = MEM32(eax); /* 0x3614B8F9: mov ecx, dword ptr [eax] */ 32563 edx = MEM32(ecx + 0x8); /* 0x3614B8FB: mov edx, dword ptr [ecx + 8] */ 32564 MEM32(eax) = edx; /* 0x3614B8FE: mov dword ptr [eax], edx */ 32565 edx = MEM32(ecx + 0x8); /* 0x3614B900: mov edx, dword ptr [ecx + 8] */ 32566 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614B903: cmp edx, dword ptr [esi + 8] */ 32567 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 32568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32569 _flag_k = FK_CMP; 32570 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B90B; /* 0x3614B906: je 0x3614b90b */ 32571 L_3614B908: 32572 MEM32(edx + 0x4) = eax; /* 0x3614B908: mov dword ptr [edx + 4], eax */ 32573 L_3614B90B: 32574 edx = MEM32(eax + 0x4); /* 0x3614B90B: mov edx, dword ptr [eax + 4] */ 32575 MEM32(ecx + 0x4) = edx; /* 0x3614B90E: mov dword ptr [ecx + 4], edx */ 32576 edx = MEM32(esi + 0x4); /* 0x3614B911: mov edx, dword ptr [esi + 4] */ 32577 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614B914: cmp eax, dword ptr [edx + 4] */ 32578 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 32579 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32580 _flag_k = FK_CMP; 32581 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B91E; /* 0x3614B917: jne 0x3614b91e */ 32582 L_3614B919: 32583 MEM32(edx + 0x4) = ecx; /* 0x3614B919: mov dword ptr [edx + 4], ecx */ 32584 goto L_3614B92D; /* 0x3614B91C: jmp 0x3614b92d */ 32585 L_3614B91E: 32586 edx = MEM32(eax + 0x4); /* 0x3614B91E: mov edx, dword ptr [eax + 4] */ 32587 /* cmp eax, MEM32(edx + 0x8) */ /* 0x3614B921: cmp eax, dword ptr [edx + 8] */ 32588 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 32589 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32590 _flag_k = FK_CMP; 32591 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B92B; /* 0x3614B924: jne 0x3614b92b */ 32592 L_3614B926: 32593 MEM32(edx + 0x8) = ecx; /* 0x3614B926: mov dword ptr [edx + 8], ecx */ 32594 goto L_3614B92D; /* 0x3614B929: jmp 0x3614b92d */ 32595 L_3614B92B: 32596 MEM32(edx) = ecx; /* 0x3614B92B: mov dword ptr [edx], ecx */ 32597 L_3614B92D: 32598 MEM32(ecx + 0x8) = eax; /* 0x3614B92D: mov dword ptr [ecx + 8], eax */ 32599 MEM32(eax + 0x4) = ecx; /* 0x3614B930: mov dword ptr [eax + 4], ecx */ 32600 L_3614B933: 32601 ecx = MEM32(eax + 0x4); /* 0x3614B933: mov ecx, dword ptr [eax + 4] */ 32602 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B936: mov byte ptr [ecx + 0x20], bl */ 32603 edx = MEM32(eax + 0x4); /* 0x3614B939: mov edx, dword ptr [eax + 4] */ 32604 ecx = MEM32(edx + 0x4); /* 0x3614B93C: mov ecx, dword ptr [edx + 4] */ 32605 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B93F: mov byte ptr [ecx + 0x20], 0 */ 32606 edx = MEM32(eax + 0x4); /* 0x3614B943: mov edx, dword ptr [eax + 4] */ 32607 ecx = MEM32(edx + 0x4); /* 0x3614B946: mov ecx, dword ptr [edx + 4] */ 32608 edx = MEM32(ecx + 0x8); /* 0x3614B949: mov edx, dword ptr [ecx + 8] */ 32609 edi = MEM32(edx); /* 0x3614B94C: mov edi, dword ptr [edx] */ 32610 MEM32(ecx + 0x8) = edi; /* 0x3614B94E: mov dword ptr [ecx + 8], edi */ 32611 edi = MEM32(edx); /* 0x3614B951: mov edi, dword ptr [edx] */ 32612 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614B953: cmp edi, dword ptr [esi + 8] */ 32613 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 32614 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32615 _flag_k = FK_CMP; 32616 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B95B; /* 0x3614B956: je 0x3614b95b */ 32617 L_3614B958: 32618 MEM32(edi + 0x4) = ecx; /* 0x3614B958: mov dword ptr [edi + 4], ecx */ 32619 L_3614B95B: 32620 edi = MEM32(ecx + 0x4); /* 0x3614B95B: mov edi, dword ptr [ecx + 4] */ 32621 MEM32(edx + 0x4) = edi; /* 0x3614B95E: mov dword ptr [edx + 4], edi */ 32622 edi = MEM32(esi + 0x4); /* 0x3614B961: mov edi, dword ptr [esi + 4] */ 32623 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614B964: cmp ecx, dword ptr [edi + 4] */ 32624 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 32625 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32626 _flag_k = FK_CMP; 32627 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B96E; /* 0x3614B967: jne 0x3614b96e */ 32628 L_3614B969: 32629 MEM32(edi + 0x4) = edx; /* 0x3614B969: mov dword ptr [edi + 4], edx */ 32630 goto L_3614B97C; /* 0x3614B96C: jmp 0x3614b97c */ 32631 L_3614B96E: 32632 edi = MEM32(ecx + 0x4); /* 0x3614B96E: mov edi, dword ptr [ecx + 4] */ 32633 /* cmp ecx, MEM32(edi) */ /* 0x3614B971: cmp ecx, dword ptr [edi] */ 32634 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 32635 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32636 _flag_k = FK_CMP; 32637 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B979; /* 0x3614B973: jne 0x3614b979 */ 32638 L_3614B975: 32639 MEM32(edi) = edx; /* 0x3614B975: mov dword ptr [edi], edx */ 32640 goto L_3614B97C; /* 0x3614B977: jmp 0x3614b97c */ 32641 L_3614B979: 32642 MEM32(edi + 0x8) = edx; /* 0x3614B979: mov dword ptr [edi + 8], edx */ 32643 L_3614B97C: 32644 MEM32(edx) = ecx; /* 0x3614B97C: mov dword ptr [edx], ecx */ 32645 L_3614B97E: 32646 MEM32(ecx + 0x4) = edx; /* 0x3614B97E: mov dword ptr [ecx + 4], edx */ 32647 L_3614B981: 32648 ecx = MEM32(esi + 0x4); /* 0x3614B981: mov ecx, dword ptr [esi + 4] */ 32649 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B984: cmp eax, dword ptr [ecx + 4] */ 32650 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 32651 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32652 _flag_k = FK_CMP; 32653 RECOMP_BACKEDGE(); 32654 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B80D; /* 0x3614B987: jne 0x3614b80d */ 32655 L_3614B98D: 32656 edx = MEM32(esi + 0x4); /* 0x3614B98D: mov edx, dword ptr [esi + 4] */ 32657 eax = MEM32(edx + 0x4); /* 0x3614B990: mov eax, dword ptr [edx + 4] */ 32658 ecx = MEM32(ebp + (-0x4)); /* 0x3614B993: mov ecx, dword ptr [ebp - 4] */ 32659 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B996: mov byte ptr [eax + 0x20], bl */ 32660 eax = MEM32(ebp + 0x8); /* 0x3614B999: mov eax, dword ptr [ebp + 8] */ 32661 edi = POP32_VAL(esp); /* 0x3614B99C: pop edi */ 32662 esi = POP32_VAL(esp); /* 0x3614B99D: pop esi */ 32663 MEM32(eax) = ecx; /* 0x3614B99E: mov dword ptr [eax], ecx */ 32664 ebx = POP32_VAL(esp); /* 0x3614B9A0: pop ebx */ 32665 esp = ebp; /* 0x3614B9A1: mov esp, ebp */ 32666 ebp = POP32_VAL(esp); /* 0x3614B9A3: pop ebp */ 32667 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3614B9A4: ret 0x10 */ 32668 RECOMP_REGS_OUT(); 32669 } 32670 32671 void sub_3614B933(void) { 32672 int _fpu_cmp = 0; 32673 uint32_t _cf = 0; 32674 int _df = 1; 32675 uint32_t _flag_k = FK_NONE; 32676 uint32_t _flag_a = 0, _flag_b = 0; 32677 uint32_t _itail_tgt = 0; 32678 RECOMP_REGS_LOCALS 32679 RECOMP_ENTER(0x3614B933u); 32680 32681 goto L_3614B933; 32682 L_3614B80D: 32683 ecx = MEM32(eax + 0x4); /* 0x3614B80D: mov ecx, dword ptr [eax + 4] */ 32684 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B810: mov dl, byte ptr [ecx + 0x20] */ 32685 /* test LO8(edx), LO8(edx) */ /* 0x3614B813: test dl, dl */ 32686 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 32687 _cf = 0; 32688 _flag_k = FK_NARROW(FK_TEST, 24); 32689 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B98D; /* 0x3614B815: jne 0x3614b98d */ 32690 L_3614B81B: 32691 edi = MEM32(ecx + 0x4); /* 0x3614B81B: mov edi, dword ptr [ecx + 4] */ 32692 edx = MEM32(edi); /* 0x3614B81E: mov edx, dword ptr [edi] */ 32693 /* cmp ecx, edx */ /* 0x3614B820: cmp ecx, edx */ 32694 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 32695 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32696 _flag_k = FK_CMP; 32697 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8E9; /* 0x3614B822: jne 0x3614b8e9 */ 32698 L_3614B828: 32699 edx = MEM32(edi + 0x8); /* 0x3614B828: mov edx, dword ptr [edi + 8] */ 32700 /* cmp MEM8(edx + 0x20), 0 */ /* 0x3614B82B: cmp byte ptr [edx + 0x20], 0 */ 32701 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 32702 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32703 _flag_k = FK_NARROW(FK_CMP, 24); 32704 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B84C; /* 0x3614B82F: jne 0x3614b84c */ 32705 L_3614B831: 32706 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B831: mov byte ptr [ecx + 0x20], bl */ 32707 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B834: mov byte ptr [edx + 0x20], bl */ 32708 ecx = MEM32(eax + 0x4); /* 0x3614B837: mov ecx, dword ptr [eax + 4] */ 32709 edx = MEM32(ecx + 0x4); /* 0x3614B83A: mov edx, dword ptr [ecx + 4] */ 32710 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x3614B83D: mov byte ptr [edx + 0x20], 0 */ 32711 eax = MEM32(eax + 0x4); /* 0x3614B841: mov eax, dword ptr [eax + 4] */ 32712 eax = MEM32(eax + 0x4); /* 0x3614B844: mov eax, dword ptr [eax + 4] */ 32713 goto L_3614B981; /* 0x3614B847: jmp 0x3614b981 */ 32714 L_3614B84C: 32715 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3614B84C: cmp eax, dword ptr [ecx + 8] */ 32716 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 32717 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32718 _flag_k = FK_CMP; 32719 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B88B; /* 0x3614B84F: jne 0x3614b88b */ 32720 L_3614B851: 32721 eax = ecx; /* 0x3614B851: mov eax, ecx */ 32722 ecx = MEM32(eax + 0x8); /* 0x3614B853: mov ecx, dword ptr [eax + 8] */ 32723 edx = MEM32(ecx); /* 0x3614B856: mov edx, dword ptr [ecx] */ 32724 MEM32(eax + 0x8) = edx; /* 0x3614B858: mov dword ptr [eax + 8], edx */ 32725 edx = MEM32(ecx); /* 0x3614B85B: mov edx, dword ptr [ecx] */ 32726 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614B85D: cmp edx, dword ptr [esi + 8] */ 32727 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 32728 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32729 _flag_k = FK_CMP; 32730 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B865; /* 0x3614B860: je 0x3614b865 */ 32731 L_3614B862: 32732 MEM32(edx + 0x4) = eax; /* 0x3614B862: mov dword ptr [edx + 4], eax */ 32733 L_3614B865: 32734 edx = MEM32(eax + 0x4); /* 0x3614B865: mov edx, dword ptr [eax + 4] */ 32735 MEM32(ecx + 0x4) = edx; /* 0x3614B868: mov dword ptr [ecx + 4], edx */ 32736 edx = MEM32(esi + 0x4); /* 0x3614B86B: mov edx, dword ptr [esi + 4] */ 32737 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614B86E: cmp eax, dword ptr [edx + 4] */ 32738 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 32739 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32740 _flag_k = FK_CMP; 32741 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B878; /* 0x3614B871: jne 0x3614b878 */ 32742 L_3614B873: 32743 MEM32(edx + 0x4) = ecx; /* 0x3614B873: mov dword ptr [edx + 4], ecx */ 32744 goto L_3614B886; /* 0x3614B876: jmp 0x3614b886 */ 32745 L_3614B878: 32746 edx = MEM32(eax + 0x4); /* 0x3614B878: mov edx, dword ptr [eax + 4] */ 32747 /* cmp eax, MEM32(edx) */ /* 0x3614B87B: cmp eax, dword ptr [edx] */ 32748 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 32749 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32750 _flag_k = FK_CMP; 32751 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B883; /* 0x3614B87D: jne 0x3614b883 */ 32752 L_3614B87F: 32753 MEM32(edx) = ecx; /* 0x3614B87F: mov dword ptr [edx], ecx */ 32754 goto L_3614B886; /* 0x3614B881: jmp 0x3614b886 */ 32755 L_3614B883: 32756 MEM32(edx + 0x8) = ecx; /* 0x3614B883: mov dword ptr [edx + 8], ecx */ 32757 L_3614B886: 32758 MEM32(ecx) = eax; /* 0x3614B886: mov dword ptr [ecx], eax */ 32759 MEM32(eax + 0x4) = ecx; /* 0x3614B888: mov dword ptr [eax + 4], ecx */ 32760 L_3614B88B: 32761 ecx = MEM32(eax + 0x4); /* 0x3614B88B: mov ecx, dword ptr [eax + 4] */ 32762 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B88E: mov byte ptr [ecx + 0x20], bl */ 32763 edx = MEM32(eax + 0x4); /* 0x3614B891: mov edx, dword ptr [eax + 4] */ 32764 ecx = MEM32(edx + 0x4); /* 0x3614B894: mov ecx, dword ptr [edx + 4] */ 32765 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B897: mov byte ptr [ecx + 0x20], 0 */ 32766 edx = MEM32(eax + 0x4); /* 0x3614B89B: mov edx, dword ptr [eax + 4] */ 32767 ecx = MEM32(edx + 0x4); /* 0x3614B89E: mov ecx, dword ptr [edx + 4] */ 32768 edx = MEM32(ecx); /* 0x3614B8A1: mov edx, dword ptr [ecx] */ 32769 edi = MEM32(edx + 0x8); /* 0x3614B8A3: mov edi, dword ptr [edx + 8] */ 32770 MEM32(ecx) = edi; /* 0x3614B8A6: mov dword ptr [ecx], edi */ 32771 edi = MEM32(edx + 0x8); /* 0x3614B8A8: mov edi, dword ptr [edx + 8] */ 32772 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614B8AB: cmp edi, dword ptr [esi + 8] */ 32773 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 32774 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32775 _flag_k = FK_CMP; 32776 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B8B3; /* 0x3614B8AE: je 0x3614b8b3 */ 32777 L_3614B8B0: 32778 MEM32(edi + 0x4) = ecx; /* 0x3614B8B0: mov dword ptr [edi + 4], ecx */ 32779 L_3614B8B3: 32780 edi = MEM32(ecx + 0x4); /* 0x3614B8B3: mov edi, dword ptr [ecx + 4] */ 32781 MEM32(edx + 0x4) = edi; /* 0x3614B8B6: mov dword ptr [edx + 4], edi */ 32782 edi = MEM32(esi + 0x4); /* 0x3614B8B9: mov edi, dword ptr [esi + 4] */ 32783 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614B8BC: cmp ecx, dword ptr [edi + 4] */ 32784 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 32785 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32786 _flag_k = FK_CMP; 32787 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8CC; /* 0x3614B8BF: jne 0x3614b8cc */ 32788 L_3614B8C1: 32789 MEM32(edi + 0x4) = edx; /* 0x3614B8C1: mov dword ptr [edi + 4], edx */ 32790 MEM32(edx + 0x8) = ecx; /* 0x3614B8C4: mov dword ptr [edx + 8], ecx */ 32791 goto L_3614B97E; /* 0x3614B8C7: jmp 0x3614b97e */ 32792 L_3614B8CC: 32793 edi = MEM32(ecx + 0x4); /* 0x3614B8CC: mov edi, dword ptr [ecx + 4] */ 32794 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614B8CF: cmp ecx, dword ptr [edi + 8] */ 32795 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 32796 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32797 _flag_k = FK_CMP; 32798 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8DF; /* 0x3614B8D2: jne 0x3614b8df */ 32799 L_3614B8D4: 32800 MEM32(edi + 0x8) = edx; /* 0x3614B8D4: mov dword ptr [edi + 8], edx */ 32801 MEM32(edx + 0x8) = ecx; /* 0x3614B8D7: mov dword ptr [edx + 8], ecx */ 32802 goto L_3614B97E; /* 0x3614B8DA: jmp 0x3614b97e */ 32803 L_3614B8DF: 32804 MEM32(edi) = edx; /* 0x3614B8DF: mov dword ptr [edi], edx */ 32805 MEM32(edx + 0x8) = ecx; /* 0x3614B8E1: mov dword ptr [edx + 8], ecx */ 32806 goto L_3614B97E; /* 0x3614B8E4: jmp 0x3614b97e */ 32807 L_3614B8E9: 32808 /* cmp MEM8(edx + 0x20), 0 */ /* 0x3614B8E9: cmp byte ptr [edx + 0x20], 0 */ 32809 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 32810 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32811 _flag_k = FK_NARROW(FK_CMP, 24); 32812 RECOMP_BACKEDGE(); 32813 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B831; /* 0x3614B8ED: je 0x3614b831 */ 32814 L_3614B8F3: 32815 /* cmp eax, MEM32(ecx) */ /* 0x3614B8F3: cmp eax, dword ptr [ecx] */ 32816 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 32817 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32818 _flag_k = FK_CMP; 32819 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B933; /* 0x3614B8F5: jne 0x3614b933 */ 32820 L_3614B8F7: 32821 eax = ecx; /* 0x3614B8F7: mov eax, ecx */ 32822 ecx = MEM32(eax); /* 0x3614B8F9: mov ecx, dword ptr [eax] */ 32823 edx = MEM32(ecx + 0x8); /* 0x3614B8FB: mov edx, dword ptr [ecx + 8] */ 32824 MEM32(eax) = edx; /* 0x3614B8FE: mov dword ptr [eax], edx */ 32825 edx = MEM32(ecx + 0x8); /* 0x3614B900: mov edx, dword ptr [ecx + 8] */ 32826 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614B903: cmp edx, dword ptr [esi + 8] */ 32827 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 32828 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32829 _flag_k = FK_CMP; 32830 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B90B; /* 0x3614B906: je 0x3614b90b */ 32831 L_3614B908: 32832 MEM32(edx + 0x4) = eax; /* 0x3614B908: mov dword ptr [edx + 4], eax */ 32833 L_3614B90B: 32834 edx = MEM32(eax + 0x4); /* 0x3614B90B: mov edx, dword ptr [eax + 4] */ 32835 MEM32(ecx + 0x4) = edx; /* 0x3614B90E: mov dword ptr [ecx + 4], edx */ 32836 edx = MEM32(esi + 0x4); /* 0x3614B911: mov edx, dword ptr [esi + 4] */ 32837 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614B914: cmp eax, dword ptr [edx + 4] */ 32838 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 32839 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32840 _flag_k = FK_CMP; 32841 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B91E; /* 0x3614B917: jne 0x3614b91e */ 32842 L_3614B919: 32843 MEM32(edx + 0x4) = ecx; /* 0x3614B919: mov dword ptr [edx + 4], ecx */ 32844 goto L_3614B92D; /* 0x3614B91C: jmp 0x3614b92d */ 32845 L_3614B91E: 32846 edx = MEM32(eax + 0x4); /* 0x3614B91E: mov edx, dword ptr [eax + 4] */ 32847 /* cmp eax, MEM32(edx + 0x8) */ /* 0x3614B921: cmp eax, dword ptr [edx + 8] */ 32848 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 32849 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32850 _flag_k = FK_CMP; 32851 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B92B; /* 0x3614B924: jne 0x3614b92b */ 32852 L_3614B926: 32853 MEM32(edx + 0x8) = ecx; /* 0x3614B926: mov dword ptr [edx + 8], ecx */ 32854 goto L_3614B92D; /* 0x3614B929: jmp 0x3614b92d */ 32855 L_3614B92B: 32856 MEM32(edx) = ecx; /* 0x3614B92B: mov dword ptr [edx], ecx */ 32857 L_3614B92D: 32858 MEM32(ecx + 0x8) = eax; /* 0x3614B92D: mov dword ptr [ecx + 8], eax */ 32859 MEM32(eax + 0x4) = ecx; /* 0x3614B930: mov dword ptr [eax + 4], ecx */ 32860 L_3614B933: 32861 ecx = MEM32(eax + 0x4); /* 0x3614B933: mov ecx, dword ptr [eax + 4] */ 32862 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B936: mov byte ptr [ecx + 0x20], bl */ 32863 edx = MEM32(eax + 0x4); /* 0x3614B939: mov edx, dword ptr [eax + 4] */ 32864 ecx = MEM32(edx + 0x4); /* 0x3614B93C: mov ecx, dword ptr [edx + 4] */ 32865 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B93F: mov byte ptr [ecx + 0x20], 0 */ 32866 edx = MEM32(eax + 0x4); /* 0x3614B943: mov edx, dword ptr [eax + 4] */ 32867 ecx = MEM32(edx + 0x4); /* 0x3614B946: mov ecx, dword ptr [edx + 4] */ 32868 edx = MEM32(ecx + 0x8); /* 0x3614B949: mov edx, dword ptr [ecx + 8] */ 32869 edi = MEM32(edx); /* 0x3614B94C: mov edi, dword ptr [edx] */ 32870 MEM32(ecx + 0x8) = edi; /* 0x3614B94E: mov dword ptr [ecx + 8], edi */ 32871 edi = MEM32(edx); /* 0x3614B951: mov edi, dword ptr [edx] */ 32872 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614B953: cmp edi, dword ptr [esi + 8] */ 32873 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 32874 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32875 _flag_k = FK_CMP; 32876 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B95B; /* 0x3614B956: je 0x3614b95b */ 32877 L_3614B958: 32878 MEM32(edi + 0x4) = ecx; /* 0x3614B958: mov dword ptr [edi + 4], ecx */ 32879 L_3614B95B: 32880 edi = MEM32(ecx + 0x4); /* 0x3614B95B: mov edi, dword ptr [ecx + 4] */ 32881 MEM32(edx + 0x4) = edi; /* 0x3614B95E: mov dword ptr [edx + 4], edi */ 32882 edi = MEM32(esi + 0x4); /* 0x3614B961: mov edi, dword ptr [esi + 4] */ 32883 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614B964: cmp ecx, dword ptr [edi + 4] */ 32884 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 32885 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32886 _flag_k = FK_CMP; 32887 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B96E; /* 0x3614B967: jne 0x3614b96e */ 32888 L_3614B969: 32889 MEM32(edi + 0x4) = edx; /* 0x3614B969: mov dword ptr [edi + 4], edx */ 32890 goto L_3614B97C; /* 0x3614B96C: jmp 0x3614b97c */ 32891 L_3614B96E: 32892 edi = MEM32(ecx + 0x4); /* 0x3614B96E: mov edi, dword ptr [ecx + 4] */ 32893 /* cmp ecx, MEM32(edi) */ /* 0x3614B971: cmp ecx, dword ptr [edi] */ 32894 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 32895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32896 _flag_k = FK_CMP; 32897 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B979; /* 0x3614B973: jne 0x3614b979 */ 32898 L_3614B975: 32899 MEM32(edi) = edx; /* 0x3614B975: mov dword ptr [edi], edx */ 32900 goto L_3614B97C; /* 0x3614B977: jmp 0x3614b97c */ 32901 L_3614B979: 32902 MEM32(edi + 0x8) = edx; /* 0x3614B979: mov dword ptr [edi + 8], edx */ 32903 L_3614B97C: 32904 MEM32(edx) = ecx; /* 0x3614B97C: mov dword ptr [edx], ecx */ 32905 L_3614B97E: 32906 MEM32(ecx + 0x4) = edx; /* 0x3614B97E: mov dword ptr [ecx + 4], edx */ 32907 L_3614B981: 32908 ecx = MEM32(esi + 0x4); /* 0x3614B981: mov ecx, dword ptr [esi + 4] */ 32909 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B984: cmp eax, dword ptr [ecx + 4] */ 32910 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 32911 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32912 _flag_k = FK_CMP; 32913 RECOMP_BACKEDGE(); 32914 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B80D; /* 0x3614B987: jne 0x3614b80d */ 32915 L_3614B98D: 32916 edx = MEM32(esi + 0x4); /* 0x3614B98D: mov edx, dword ptr [esi + 4] */ 32917 eax = MEM32(edx + 0x4); /* 0x3614B990: mov eax, dword ptr [edx + 4] */ 32918 ecx = MEM32(ebp + (-0x4)); /* 0x3614B993: mov ecx, dword ptr [ebp - 4] */ 32919 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B996: mov byte ptr [eax + 0x20], bl */ 32920 eax = MEM32(ebp + 0x8); /* 0x3614B999: mov eax, dword ptr [ebp + 8] */ 32921 edi = POP32_VAL(esp); /* 0x3614B99C: pop edi */ 32922 esi = POP32_VAL(esp); /* 0x3614B99D: pop esi */ 32923 MEM32(eax) = ecx; /* 0x3614B99E: mov dword ptr [eax], ecx */ 32924 ebx = POP32_VAL(esp); /* 0x3614B9A0: pop ebx */ 32925 esp = ebp; /* 0x3614B9A1: mov esp, ebp */ 32926 ebp = POP32_VAL(esp); /* 0x3614B9A3: pop ebp */ 32927 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3614B9A4: ret 0x10 */ 32928 RECOMP_REGS_OUT(); 32929 } 32930 32931 void sub_3614B97C(void) { 32932 int _fpu_cmp = 0; 32933 uint32_t _cf = 0; 32934 int _df = 1; 32935 uint32_t _flag_k = FK_NONE; 32936 uint32_t _flag_a = 0, _flag_b = 0; 32937 uint32_t _itail_tgt = 0; 32938 RECOMP_REGS_LOCALS 32939 RECOMP_ENTER(0x3614B97Cu); 32940 32941 goto L_3614B97C; 32942 L_3614B80D: 32943 ecx = MEM32(eax + 0x4); /* 0x3614B80D: mov ecx, dword ptr [eax + 4] */ 32944 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B810: mov dl, byte ptr [ecx + 0x20] */ 32945 /* test LO8(edx), LO8(edx) */ /* 0x3614B813: test dl, dl */ 32946 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 32947 _cf = 0; 32948 _flag_k = FK_NARROW(FK_TEST, 24); 32949 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B98D; /* 0x3614B815: jne 0x3614b98d */ 32950 L_3614B81B: 32951 edi = MEM32(ecx + 0x4); /* 0x3614B81B: mov edi, dword ptr [ecx + 4] */ 32952 edx = MEM32(edi); /* 0x3614B81E: mov edx, dword ptr [edi] */ 32953 /* cmp ecx, edx */ /* 0x3614B820: cmp ecx, edx */ 32954 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 32955 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32956 _flag_k = FK_CMP; 32957 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8E9; /* 0x3614B822: jne 0x3614b8e9 */ 32958 L_3614B828: 32959 edx = MEM32(edi + 0x8); /* 0x3614B828: mov edx, dword ptr [edi + 8] */ 32960 /* cmp MEM8(edx + 0x20), 0 */ /* 0x3614B82B: cmp byte ptr [edx + 0x20], 0 */ 32961 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 32962 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32963 _flag_k = FK_NARROW(FK_CMP, 24); 32964 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B84C; /* 0x3614B82F: jne 0x3614b84c */ 32965 L_3614B831: 32966 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B831: mov byte ptr [ecx + 0x20], bl */ 32967 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B834: mov byte ptr [edx + 0x20], bl */ 32968 ecx = MEM32(eax + 0x4); /* 0x3614B837: mov ecx, dword ptr [eax + 4] */ 32969 edx = MEM32(ecx + 0x4); /* 0x3614B83A: mov edx, dword ptr [ecx + 4] */ 32970 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x3614B83D: mov byte ptr [edx + 0x20], 0 */ 32971 eax = MEM32(eax + 0x4); /* 0x3614B841: mov eax, dword ptr [eax + 4] */ 32972 eax = MEM32(eax + 0x4); /* 0x3614B844: mov eax, dword ptr [eax + 4] */ 32973 goto L_3614B981; /* 0x3614B847: jmp 0x3614b981 */ 32974 L_3614B84C: 32975 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3614B84C: cmp eax, dword ptr [ecx + 8] */ 32976 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 32977 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32978 _flag_k = FK_CMP; 32979 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B88B; /* 0x3614B84F: jne 0x3614b88b */ 32980 L_3614B851: 32981 eax = ecx; /* 0x3614B851: mov eax, ecx */ 32982 ecx = MEM32(eax + 0x8); /* 0x3614B853: mov ecx, dword ptr [eax + 8] */ 32983 edx = MEM32(ecx); /* 0x3614B856: mov edx, dword ptr [ecx] */ 32984 MEM32(eax + 0x8) = edx; /* 0x3614B858: mov dword ptr [eax + 8], edx */ 32985 edx = MEM32(ecx); /* 0x3614B85B: mov edx, dword ptr [ecx] */ 32986 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614B85D: cmp edx, dword ptr [esi + 8] */ 32987 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 32988 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 32989 _flag_k = FK_CMP; 32990 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B865; /* 0x3614B860: je 0x3614b865 */ 32991 L_3614B862: 32992 MEM32(edx + 0x4) = eax; /* 0x3614B862: mov dword ptr [edx + 4], eax */ 32993 L_3614B865: 32994 edx = MEM32(eax + 0x4); /* 0x3614B865: mov edx, dword ptr [eax + 4] */ 32995 MEM32(ecx + 0x4) = edx; /* 0x3614B868: mov dword ptr [ecx + 4], edx */ 32996 edx = MEM32(esi + 0x4); /* 0x3614B86B: mov edx, dword ptr [esi + 4] */ 32997 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614B86E: cmp eax, dword ptr [edx + 4] */ 32998 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 32999 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33000 _flag_k = FK_CMP; 33001 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B878; /* 0x3614B871: jne 0x3614b878 */ 33002 L_3614B873: 33003 MEM32(edx + 0x4) = ecx; /* 0x3614B873: mov dword ptr [edx + 4], ecx */ 33004 goto L_3614B886; /* 0x3614B876: jmp 0x3614b886 */ 33005 L_3614B878: 33006 edx = MEM32(eax + 0x4); /* 0x3614B878: mov edx, dword ptr [eax + 4] */ 33007 /* cmp eax, MEM32(edx) */ /* 0x3614B87B: cmp eax, dword ptr [edx] */ 33008 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 33009 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33010 _flag_k = FK_CMP; 33011 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B883; /* 0x3614B87D: jne 0x3614b883 */ 33012 L_3614B87F: 33013 MEM32(edx) = ecx; /* 0x3614B87F: mov dword ptr [edx], ecx */ 33014 goto L_3614B886; /* 0x3614B881: jmp 0x3614b886 */ 33015 L_3614B883: 33016 MEM32(edx + 0x8) = ecx; /* 0x3614B883: mov dword ptr [edx + 8], ecx */ 33017 L_3614B886: 33018 MEM32(ecx) = eax; /* 0x3614B886: mov dword ptr [ecx], eax */ 33019 MEM32(eax + 0x4) = ecx; /* 0x3614B888: mov dword ptr [eax + 4], ecx */ 33020 L_3614B88B: 33021 ecx = MEM32(eax + 0x4); /* 0x3614B88B: mov ecx, dword ptr [eax + 4] */ 33022 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B88E: mov byte ptr [ecx + 0x20], bl */ 33023 edx = MEM32(eax + 0x4); /* 0x3614B891: mov edx, dword ptr [eax + 4] */ 33024 ecx = MEM32(edx + 0x4); /* 0x3614B894: mov ecx, dword ptr [edx + 4] */ 33025 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B897: mov byte ptr [ecx + 0x20], 0 */ 33026 edx = MEM32(eax + 0x4); /* 0x3614B89B: mov edx, dword ptr [eax + 4] */ 33027 ecx = MEM32(edx + 0x4); /* 0x3614B89E: mov ecx, dword ptr [edx + 4] */ 33028 edx = MEM32(ecx); /* 0x3614B8A1: mov edx, dword ptr [ecx] */ 33029 edi = MEM32(edx + 0x8); /* 0x3614B8A3: mov edi, dword ptr [edx + 8] */ 33030 MEM32(ecx) = edi; /* 0x3614B8A6: mov dword ptr [ecx], edi */ 33031 edi = MEM32(edx + 0x8); /* 0x3614B8A8: mov edi, dword ptr [edx + 8] */ 33032 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614B8AB: cmp edi, dword ptr [esi + 8] */ 33033 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 33034 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33035 _flag_k = FK_CMP; 33036 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B8B3; /* 0x3614B8AE: je 0x3614b8b3 */ 33037 L_3614B8B0: 33038 MEM32(edi + 0x4) = ecx; /* 0x3614B8B0: mov dword ptr [edi + 4], ecx */ 33039 L_3614B8B3: 33040 edi = MEM32(ecx + 0x4); /* 0x3614B8B3: mov edi, dword ptr [ecx + 4] */ 33041 MEM32(edx + 0x4) = edi; /* 0x3614B8B6: mov dword ptr [edx + 4], edi */ 33042 edi = MEM32(esi + 0x4); /* 0x3614B8B9: mov edi, dword ptr [esi + 4] */ 33043 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614B8BC: cmp ecx, dword ptr [edi + 4] */ 33044 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 33045 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33046 _flag_k = FK_CMP; 33047 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8CC; /* 0x3614B8BF: jne 0x3614b8cc */ 33048 L_3614B8C1: 33049 MEM32(edi + 0x4) = edx; /* 0x3614B8C1: mov dword ptr [edi + 4], edx */ 33050 MEM32(edx + 0x8) = ecx; /* 0x3614B8C4: mov dword ptr [edx + 8], ecx */ 33051 goto L_3614B97E; /* 0x3614B8C7: jmp 0x3614b97e */ 33052 L_3614B8CC: 33053 edi = MEM32(ecx + 0x4); /* 0x3614B8CC: mov edi, dword ptr [ecx + 4] */ 33054 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614B8CF: cmp ecx, dword ptr [edi + 8] */ 33055 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 33056 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33057 _flag_k = FK_CMP; 33058 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8DF; /* 0x3614B8D2: jne 0x3614b8df */ 33059 L_3614B8D4: 33060 MEM32(edi + 0x8) = edx; /* 0x3614B8D4: mov dword ptr [edi + 8], edx */ 33061 MEM32(edx + 0x8) = ecx; /* 0x3614B8D7: mov dword ptr [edx + 8], ecx */ 33062 goto L_3614B97E; /* 0x3614B8DA: jmp 0x3614b97e */ 33063 L_3614B8DF: 33064 MEM32(edi) = edx; /* 0x3614B8DF: mov dword ptr [edi], edx */ 33065 MEM32(edx + 0x8) = ecx; /* 0x3614B8E1: mov dword ptr [edx + 8], ecx */ 33066 goto L_3614B97E; /* 0x3614B8E4: jmp 0x3614b97e */ 33067 L_3614B8E9: 33068 /* cmp MEM8(edx + 0x20), 0 */ /* 0x3614B8E9: cmp byte ptr [edx + 0x20], 0 */ 33069 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 33070 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33071 _flag_k = FK_NARROW(FK_CMP, 24); 33072 RECOMP_BACKEDGE(); 33073 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B831; /* 0x3614B8ED: je 0x3614b831 */ 33074 L_3614B8F3: 33075 /* cmp eax, MEM32(ecx) */ /* 0x3614B8F3: cmp eax, dword ptr [ecx] */ 33076 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 33077 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33078 _flag_k = FK_CMP; 33079 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B933; /* 0x3614B8F5: jne 0x3614b933 */ 33080 L_3614B8F7: 33081 eax = ecx; /* 0x3614B8F7: mov eax, ecx */ 33082 ecx = MEM32(eax); /* 0x3614B8F9: mov ecx, dword ptr [eax] */ 33083 edx = MEM32(ecx + 0x8); /* 0x3614B8FB: mov edx, dword ptr [ecx + 8] */ 33084 MEM32(eax) = edx; /* 0x3614B8FE: mov dword ptr [eax], edx */ 33085 edx = MEM32(ecx + 0x8); /* 0x3614B900: mov edx, dword ptr [ecx + 8] */ 33086 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614B903: cmp edx, dword ptr [esi + 8] */ 33087 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 33088 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33089 _flag_k = FK_CMP; 33090 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B90B; /* 0x3614B906: je 0x3614b90b */ 33091 L_3614B908: 33092 MEM32(edx + 0x4) = eax; /* 0x3614B908: mov dword ptr [edx + 4], eax */ 33093 L_3614B90B: 33094 edx = MEM32(eax + 0x4); /* 0x3614B90B: mov edx, dword ptr [eax + 4] */ 33095 MEM32(ecx + 0x4) = edx; /* 0x3614B90E: mov dword ptr [ecx + 4], edx */ 33096 edx = MEM32(esi + 0x4); /* 0x3614B911: mov edx, dword ptr [esi + 4] */ 33097 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614B914: cmp eax, dword ptr [edx + 4] */ 33098 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 33099 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33100 _flag_k = FK_CMP; 33101 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B91E; /* 0x3614B917: jne 0x3614b91e */ 33102 L_3614B919: 33103 MEM32(edx + 0x4) = ecx; /* 0x3614B919: mov dword ptr [edx + 4], ecx */ 33104 goto L_3614B92D; /* 0x3614B91C: jmp 0x3614b92d */ 33105 L_3614B91E: 33106 edx = MEM32(eax + 0x4); /* 0x3614B91E: mov edx, dword ptr [eax + 4] */ 33107 /* cmp eax, MEM32(edx + 0x8) */ /* 0x3614B921: cmp eax, dword ptr [edx + 8] */ 33108 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 33109 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33110 _flag_k = FK_CMP; 33111 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B92B; /* 0x3614B924: jne 0x3614b92b */ 33112 L_3614B926: 33113 MEM32(edx + 0x8) = ecx; /* 0x3614B926: mov dword ptr [edx + 8], ecx */ 33114 goto L_3614B92D; /* 0x3614B929: jmp 0x3614b92d */ 33115 L_3614B92B: 33116 MEM32(edx) = ecx; /* 0x3614B92B: mov dword ptr [edx], ecx */ 33117 L_3614B92D: 33118 MEM32(ecx + 0x8) = eax; /* 0x3614B92D: mov dword ptr [ecx + 8], eax */ 33119 MEM32(eax + 0x4) = ecx; /* 0x3614B930: mov dword ptr [eax + 4], ecx */ 33120 L_3614B933: 33121 ecx = MEM32(eax + 0x4); /* 0x3614B933: mov ecx, dword ptr [eax + 4] */ 33122 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B936: mov byte ptr [ecx + 0x20], bl */ 33123 edx = MEM32(eax + 0x4); /* 0x3614B939: mov edx, dword ptr [eax + 4] */ 33124 ecx = MEM32(edx + 0x4); /* 0x3614B93C: mov ecx, dword ptr [edx + 4] */ 33125 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B93F: mov byte ptr [ecx + 0x20], 0 */ 33126 edx = MEM32(eax + 0x4); /* 0x3614B943: mov edx, dword ptr [eax + 4] */ 33127 ecx = MEM32(edx + 0x4); /* 0x3614B946: mov ecx, dword ptr [edx + 4] */ 33128 edx = MEM32(ecx + 0x8); /* 0x3614B949: mov edx, dword ptr [ecx + 8] */ 33129 edi = MEM32(edx); /* 0x3614B94C: mov edi, dword ptr [edx] */ 33130 MEM32(ecx + 0x8) = edi; /* 0x3614B94E: mov dword ptr [ecx + 8], edi */ 33131 edi = MEM32(edx); /* 0x3614B951: mov edi, dword ptr [edx] */ 33132 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614B953: cmp edi, dword ptr [esi + 8] */ 33133 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 33134 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33135 _flag_k = FK_CMP; 33136 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B95B; /* 0x3614B956: je 0x3614b95b */ 33137 L_3614B958: 33138 MEM32(edi + 0x4) = ecx; /* 0x3614B958: mov dword ptr [edi + 4], ecx */ 33139 L_3614B95B: 33140 edi = MEM32(ecx + 0x4); /* 0x3614B95B: mov edi, dword ptr [ecx + 4] */ 33141 MEM32(edx + 0x4) = edi; /* 0x3614B95E: mov dword ptr [edx + 4], edi */ 33142 edi = MEM32(esi + 0x4); /* 0x3614B961: mov edi, dword ptr [esi + 4] */ 33143 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614B964: cmp ecx, dword ptr [edi + 4] */ 33144 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 33145 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33146 _flag_k = FK_CMP; 33147 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B96E; /* 0x3614B967: jne 0x3614b96e */ 33148 L_3614B969: 33149 MEM32(edi + 0x4) = edx; /* 0x3614B969: mov dword ptr [edi + 4], edx */ 33150 goto L_3614B97C; /* 0x3614B96C: jmp 0x3614b97c */ 33151 L_3614B96E: 33152 edi = MEM32(ecx + 0x4); /* 0x3614B96E: mov edi, dword ptr [ecx + 4] */ 33153 /* cmp ecx, MEM32(edi) */ /* 0x3614B971: cmp ecx, dword ptr [edi] */ 33154 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 33155 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33156 _flag_k = FK_CMP; 33157 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B979; /* 0x3614B973: jne 0x3614b979 */ 33158 L_3614B975: 33159 MEM32(edi) = edx; /* 0x3614B975: mov dword ptr [edi], edx */ 33160 goto L_3614B97C; /* 0x3614B977: jmp 0x3614b97c */ 33161 L_3614B979: 33162 MEM32(edi + 0x8) = edx; /* 0x3614B979: mov dword ptr [edi + 8], edx */ 33163 L_3614B97C: 33164 MEM32(edx) = ecx; /* 0x3614B97C: mov dword ptr [edx], ecx */ 33165 L_3614B97E: 33166 MEM32(ecx + 0x4) = edx; /* 0x3614B97E: mov dword ptr [ecx + 4], edx */ 33167 L_3614B981: 33168 ecx = MEM32(esi + 0x4); /* 0x3614B981: mov ecx, dword ptr [esi + 4] */ 33169 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B984: cmp eax, dword ptr [ecx + 4] */ 33170 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 33171 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33172 _flag_k = FK_CMP; 33173 RECOMP_BACKEDGE(); 33174 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B80D; /* 0x3614B987: jne 0x3614b80d */ 33175 L_3614B98D: 33176 edx = MEM32(esi + 0x4); /* 0x3614B98D: mov edx, dword ptr [esi + 4] */ 33177 eax = MEM32(edx + 0x4); /* 0x3614B990: mov eax, dword ptr [edx + 4] */ 33178 ecx = MEM32(ebp + (-0x4)); /* 0x3614B993: mov ecx, dword ptr [ebp - 4] */ 33179 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B996: mov byte ptr [eax + 0x20], bl */ 33180 eax = MEM32(ebp + 0x8); /* 0x3614B999: mov eax, dword ptr [ebp + 8] */ 33181 edi = POP32_VAL(esp); /* 0x3614B99C: pop edi */ 33182 esi = POP32_VAL(esp); /* 0x3614B99D: pop esi */ 33183 MEM32(eax) = ecx; /* 0x3614B99E: mov dword ptr [eax], ecx */ 33184 ebx = POP32_VAL(esp); /* 0x3614B9A0: pop ebx */ 33185 esp = ebp; /* 0x3614B9A1: mov esp, ebp */ 33186 ebp = POP32_VAL(esp); /* 0x3614B9A3: pop ebp */ 33187 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3614B9A4: ret 0x10 */ 33188 RECOMP_REGS_OUT(); 33189 } 33190 33191 void sub_3614B97E(void) { 33192 int _fpu_cmp = 0; 33193 uint32_t _cf = 0; 33194 int _df = 1; 33195 uint32_t _flag_k = FK_NONE; 33196 uint32_t _flag_a = 0, _flag_b = 0; 33197 uint32_t _itail_tgt = 0; 33198 RECOMP_REGS_LOCALS 33199 RECOMP_ENTER(0x3614B97Eu); 33200 33201 goto L_3614B97E; 33202 L_3614B80D: 33203 ecx = MEM32(eax + 0x4); /* 0x3614B80D: mov ecx, dword ptr [eax + 4] */ 33204 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B810: mov dl, byte ptr [ecx + 0x20] */ 33205 /* test LO8(edx), LO8(edx) */ /* 0x3614B813: test dl, dl */ 33206 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 33207 _cf = 0; 33208 _flag_k = FK_NARROW(FK_TEST, 24); 33209 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B98D; /* 0x3614B815: jne 0x3614b98d */ 33210 L_3614B81B: 33211 edi = MEM32(ecx + 0x4); /* 0x3614B81B: mov edi, dword ptr [ecx + 4] */ 33212 edx = MEM32(edi); /* 0x3614B81E: mov edx, dword ptr [edi] */ 33213 /* cmp ecx, edx */ /* 0x3614B820: cmp ecx, edx */ 33214 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 33215 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33216 _flag_k = FK_CMP; 33217 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8E9; /* 0x3614B822: jne 0x3614b8e9 */ 33218 L_3614B828: 33219 edx = MEM32(edi + 0x8); /* 0x3614B828: mov edx, dword ptr [edi + 8] */ 33220 /* cmp MEM8(edx + 0x20), 0 */ /* 0x3614B82B: cmp byte ptr [edx + 0x20], 0 */ 33221 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 33222 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33223 _flag_k = FK_NARROW(FK_CMP, 24); 33224 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B84C; /* 0x3614B82F: jne 0x3614b84c */ 33225 L_3614B831: 33226 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B831: mov byte ptr [ecx + 0x20], bl */ 33227 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B834: mov byte ptr [edx + 0x20], bl */ 33228 ecx = MEM32(eax + 0x4); /* 0x3614B837: mov ecx, dword ptr [eax + 4] */ 33229 edx = MEM32(ecx + 0x4); /* 0x3614B83A: mov edx, dword ptr [ecx + 4] */ 33230 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x3614B83D: mov byte ptr [edx + 0x20], 0 */ 33231 eax = MEM32(eax + 0x4); /* 0x3614B841: mov eax, dword ptr [eax + 4] */ 33232 eax = MEM32(eax + 0x4); /* 0x3614B844: mov eax, dword ptr [eax + 4] */ 33233 goto L_3614B981; /* 0x3614B847: jmp 0x3614b981 */ 33234 L_3614B84C: 33235 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3614B84C: cmp eax, dword ptr [ecx + 8] */ 33236 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 33237 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33238 _flag_k = FK_CMP; 33239 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B88B; /* 0x3614B84F: jne 0x3614b88b */ 33240 L_3614B851: 33241 eax = ecx; /* 0x3614B851: mov eax, ecx */ 33242 ecx = MEM32(eax + 0x8); /* 0x3614B853: mov ecx, dword ptr [eax + 8] */ 33243 edx = MEM32(ecx); /* 0x3614B856: mov edx, dword ptr [ecx] */ 33244 MEM32(eax + 0x8) = edx; /* 0x3614B858: mov dword ptr [eax + 8], edx */ 33245 edx = MEM32(ecx); /* 0x3614B85B: mov edx, dword ptr [ecx] */ 33246 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614B85D: cmp edx, dword ptr [esi + 8] */ 33247 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 33248 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33249 _flag_k = FK_CMP; 33250 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B865; /* 0x3614B860: je 0x3614b865 */ 33251 L_3614B862: 33252 MEM32(edx + 0x4) = eax; /* 0x3614B862: mov dword ptr [edx + 4], eax */ 33253 L_3614B865: 33254 edx = MEM32(eax + 0x4); /* 0x3614B865: mov edx, dword ptr [eax + 4] */ 33255 MEM32(ecx + 0x4) = edx; /* 0x3614B868: mov dword ptr [ecx + 4], edx */ 33256 edx = MEM32(esi + 0x4); /* 0x3614B86B: mov edx, dword ptr [esi + 4] */ 33257 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614B86E: cmp eax, dword ptr [edx + 4] */ 33258 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 33259 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33260 _flag_k = FK_CMP; 33261 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B878; /* 0x3614B871: jne 0x3614b878 */ 33262 L_3614B873: 33263 MEM32(edx + 0x4) = ecx; /* 0x3614B873: mov dword ptr [edx + 4], ecx */ 33264 goto L_3614B886; /* 0x3614B876: jmp 0x3614b886 */ 33265 L_3614B878: 33266 edx = MEM32(eax + 0x4); /* 0x3614B878: mov edx, dword ptr [eax + 4] */ 33267 /* cmp eax, MEM32(edx) */ /* 0x3614B87B: cmp eax, dword ptr [edx] */ 33268 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 33269 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33270 _flag_k = FK_CMP; 33271 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B883; /* 0x3614B87D: jne 0x3614b883 */ 33272 L_3614B87F: 33273 MEM32(edx) = ecx; /* 0x3614B87F: mov dword ptr [edx], ecx */ 33274 goto L_3614B886; /* 0x3614B881: jmp 0x3614b886 */ 33275 L_3614B883: 33276 MEM32(edx + 0x8) = ecx; /* 0x3614B883: mov dword ptr [edx + 8], ecx */ 33277 L_3614B886: 33278 MEM32(ecx) = eax; /* 0x3614B886: mov dword ptr [ecx], eax */ 33279 MEM32(eax + 0x4) = ecx; /* 0x3614B888: mov dword ptr [eax + 4], ecx */ 33280 L_3614B88B: 33281 ecx = MEM32(eax + 0x4); /* 0x3614B88B: mov ecx, dword ptr [eax + 4] */ 33282 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B88E: mov byte ptr [ecx + 0x20], bl */ 33283 edx = MEM32(eax + 0x4); /* 0x3614B891: mov edx, dword ptr [eax + 4] */ 33284 ecx = MEM32(edx + 0x4); /* 0x3614B894: mov ecx, dword ptr [edx + 4] */ 33285 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B897: mov byte ptr [ecx + 0x20], 0 */ 33286 edx = MEM32(eax + 0x4); /* 0x3614B89B: mov edx, dword ptr [eax + 4] */ 33287 ecx = MEM32(edx + 0x4); /* 0x3614B89E: mov ecx, dword ptr [edx + 4] */ 33288 edx = MEM32(ecx); /* 0x3614B8A1: mov edx, dword ptr [ecx] */ 33289 edi = MEM32(edx + 0x8); /* 0x3614B8A3: mov edi, dword ptr [edx + 8] */ 33290 MEM32(ecx) = edi; /* 0x3614B8A6: mov dword ptr [ecx], edi */ 33291 edi = MEM32(edx + 0x8); /* 0x3614B8A8: mov edi, dword ptr [edx + 8] */ 33292 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614B8AB: cmp edi, dword ptr [esi + 8] */ 33293 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 33294 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33295 _flag_k = FK_CMP; 33296 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B8B3; /* 0x3614B8AE: je 0x3614b8b3 */ 33297 L_3614B8B0: 33298 MEM32(edi + 0x4) = ecx; /* 0x3614B8B0: mov dword ptr [edi + 4], ecx */ 33299 L_3614B8B3: 33300 edi = MEM32(ecx + 0x4); /* 0x3614B8B3: mov edi, dword ptr [ecx + 4] */ 33301 MEM32(edx + 0x4) = edi; /* 0x3614B8B6: mov dword ptr [edx + 4], edi */ 33302 edi = MEM32(esi + 0x4); /* 0x3614B8B9: mov edi, dword ptr [esi + 4] */ 33303 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614B8BC: cmp ecx, dword ptr [edi + 4] */ 33304 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 33305 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33306 _flag_k = FK_CMP; 33307 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8CC; /* 0x3614B8BF: jne 0x3614b8cc */ 33308 L_3614B8C1: 33309 MEM32(edi + 0x4) = edx; /* 0x3614B8C1: mov dword ptr [edi + 4], edx */ 33310 MEM32(edx + 0x8) = ecx; /* 0x3614B8C4: mov dword ptr [edx + 8], ecx */ 33311 goto L_3614B97E; /* 0x3614B8C7: jmp 0x3614b97e */ 33312 L_3614B8CC: 33313 edi = MEM32(ecx + 0x4); /* 0x3614B8CC: mov edi, dword ptr [ecx + 4] */ 33314 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614B8CF: cmp ecx, dword ptr [edi + 8] */ 33315 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 33316 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33317 _flag_k = FK_CMP; 33318 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8DF; /* 0x3614B8D2: jne 0x3614b8df */ 33319 L_3614B8D4: 33320 MEM32(edi + 0x8) = edx; /* 0x3614B8D4: mov dword ptr [edi + 8], edx */ 33321 MEM32(edx + 0x8) = ecx; /* 0x3614B8D7: mov dword ptr [edx + 8], ecx */ 33322 goto L_3614B97E; /* 0x3614B8DA: jmp 0x3614b97e */ 33323 L_3614B8DF: 33324 MEM32(edi) = edx; /* 0x3614B8DF: mov dword ptr [edi], edx */ 33325 MEM32(edx + 0x8) = ecx; /* 0x3614B8E1: mov dword ptr [edx + 8], ecx */ 33326 goto L_3614B97E; /* 0x3614B8E4: jmp 0x3614b97e */ 33327 L_3614B8E9: 33328 /* cmp MEM8(edx + 0x20), 0 */ /* 0x3614B8E9: cmp byte ptr [edx + 0x20], 0 */ 33329 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 33330 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33331 _flag_k = FK_NARROW(FK_CMP, 24); 33332 RECOMP_BACKEDGE(); 33333 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B831; /* 0x3614B8ED: je 0x3614b831 */ 33334 L_3614B8F3: 33335 /* cmp eax, MEM32(ecx) */ /* 0x3614B8F3: cmp eax, dword ptr [ecx] */ 33336 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 33337 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33338 _flag_k = FK_CMP; 33339 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B933; /* 0x3614B8F5: jne 0x3614b933 */ 33340 L_3614B8F7: 33341 eax = ecx; /* 0x3614B8F7: mov eax, ecx */ 33342 ecx = MEM32(eax); /* 0x3614B8F9: mov ecx, dword ptr [eax] */ 33343 edx = MEM32(ecx + 0x8); /* 0x3614B8FB: mov edx, dword ptr [ecx + 8] */ 33344 MEM32(eax) = edx; /* 0x3614B8FE: mov dword ptr [eax], edx */ 33345 edx = MEM32(ecx + 0x8); /* 0x3614B900: mov edx, dword ptr [ecx + 8] */ 33346 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614B903: cmp edx, dword ptr [esi + 8] */ 33347 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 33348 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33349 _flag_k = FK_CMP; 33350 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B90B; /* 0x3614B906: je 0x3614b90b */ 33351 L_3614B908: 33352 MEM32(edx + 0x4) = eax; /* 0x3614B908: mov dword ptr [edx + 4], eax */ 33353 L_3614B90B: 33354 edx = MEM32(eax + 0x4); /* 0x3614B90B: mov edx, dword ptr [eax + 4] */ 33355 MEM32(ecx + 0x4) = edx; /* 0x3614B90E: mov dword ptr [ecx + 4], edx */ 33356 edx = MEM32(esi + 0x4); /* 0x3614B911: mov edx, dword ptr [esi + 4] */ 33357 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614B914: cmp eax, dword ptr [edx + 4] */ 33358 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 33359 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33360 _flag_k = FK_CMP; 33361 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B91E; /* 0x3614B917: jne 0x3614b91e */ 33362 L_3614B919: 33363 MEM32(edx + 0x4) = ecx; /* 0x3614B919: mov dword ptr [edx + 4], ecx */ 33364 goto L_3614B92D; /* 0x3614B91C: jmp 0x3614b92d */ 33365 L_3614B91E: 33366 edx = MEM32(eax + 0x4); /* 0x3614B91E: mov edx, dword ptr [eax + 4] */ 33367 /* cmp eax, MEM32(edx + 0x8) */ /* 0x3614B921: cmp eax, dword ptr [edx + 8] */ 33368 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 33369 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33370 _flag_k = FK_CMP; 33371 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B92B; /* 0x3614B924: jne 0x3614b92b */ 33372 L_3614B926: 33373 MEM32(edx + 0x8) = ecx; /* 0x3614B926: mov dword ptr [edx + 8], ecx */ 33374 goto L_3614B92D; /* 0x3614B929: jmp 0x3614b92d */ 33375 L_3614B92B: 33376 MEM32(edx) = ecx; /* 0x3614B92B: mov dword ptr [edx], ecx */ 33377 L_3614B92D: 33378 MEM32(ecx + 0x8) = eax; /* 0x3614B92D: mov dword ptr [ecx + 8], eax */ 33379 MEM32(eax + 0x4) = ecx; /* 0x3614B930: mov dword ptr [eax + 4], ecx */ 33380 L_3614B933: 33381 ecx = MEM32(eax + 0x4); /* 0x3614B933: mov ecx, dword ptr [eax + 4] */ 33382 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B936: mov byte ptr [ecx + 0x20], bl */ 33383 edx = MEM32(eax + 0x4); /* 0x3614B939: mov edx, dword ptr [eax + 4] */ 33384 ecx = MEM32(edx + 0x4); /* 0x3614B93C: mov ecx, dword ptr [edx + 4] */ 33385 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B93F: mov byte ptr [ecx + 0x20], 0 */ 33386 edx = MEM32(eax + 0x4); /* 0x3614B943: mov edx, dword ptr [eax + 4] */ 33387 ecx = MEM32(edx + 0x4); /* 0x3614B946: mov ecx, dword ptr [edx + 4] */ 33388 edx = MEM32(ecx + 0x8); /* 0x3614B949: mov edx, dword ptr [ecx + 8] */ 33389 edi = MEM32(edx); /* 0x3614B94C: mov edi, dword ptr [edx] */ 33390 MEM32(ecx + 0x8) = edi; /* 0x3614B94E: mov dword ptr [ecx + 8], edi */ 33391 edi = MEM32(edx); /* 0x3614B951: mov edi, dword ptr [edx] */ 33392 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614B953: cmp edi, dword ptr [esi + 8] */ 33393 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 33394 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33395 _flag_k = FK_CMP; 33396 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B95B; /* 0x3614B956: je 0x3614b95b */ 33397 L_3614B958: 33398 MEM32(edi + 0x4) = ecx; /* 0x3614B958: mov dword ptr [edi + 4], ecx */ 33399 L_3614B95B: 33400 edi = MEM32(ecx + 0x4); /* 0x3614B95B: mov edi, dword ptr [ecx + 4] */ 33401 MEM32(edx + 0x4) = edi; /* 0x3614B95E: mov dword ptr [edx + 4], edi */ 33402 edi = MEM32(esi + 0x4); /* 0x3614B961: mov edi, dword ptr [esi + 4] */ 33403 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614B964: cmp ecx, dword ptr [edi + 4] */ 33404 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 33405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33406 _flag_k = FK_CMP; 33407 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B96E; /* 0x3614B967: jne 0x3614b96e */ 33408 L_3614B969: 33409 MEM32(edi + 0x4) = edx; /* 0x3614B969: mov dword ptr [edi + 4], edx */ 33410 goto L_3614B97C; /* 0x3614B96C: jmp 0x3614b97c */ 33411 L_3614B96E: 33412 edi = MEM32(ecx + 0x4); /* 0x3614B96E: mov edi, dword ptr [ecx + 4] */ 33413 /* cmp ecx, MEM32(edi) */ /* 0x3614B971: cmp ecx, dword ptr [edi] */ 33414 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 33415 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33416 _flag_k = FK_CMP; 33417 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B979; /* 0x3614B973: jne 0x3614b979 */ 33418 L_3614B975: 33419 MEM32(edi) = edx; /* 0x3614B975: mov dword ptr [edi], edx */ 33420 goto L_3614B97C; /* 0x3614B977: jmp 0x3614b97c */ 33421 L_3614B979: 33422 MEM32(edi + 0x8) = edx; /* 0x3614B979: mov dword ptr [edi + 8], edx */ 33423 L_3614B97C: 33424 MEM32(edx) = ecx; /* 0x3614B97C: mov dword ptr [edx], ecx */ 33425 L_3614B97E: 33426 MEM32(ecx + 0x4) = edx; /* 0x3614B97E: mov dword ptr [ecx + 4], edx */ 33427 L_3614B981: 33428 ecx = MEM32(esi + 0x4); /* 0x3614B981: mov ecx, dword ptr [esi + 4] */ 33429 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B984: cmp eax, dword ptr [ecx + 4] */ 33430 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 33431 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33432 _flag_k = FK_CMP; 33433 RECOMP_BACKEDGE(); 33434 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B80D; /* 0x3614B987: jne 0x3614b80d */ 33435 L_3614B98D: 33436 edx = MEM32(esi + 0x4); /* 0x3614B98D: mov edx, dword ptr [esi + 4] */ 33437 eax = MEM32(edx + 0x4); /* 0x3614B990: mov eax, dword ptr [edx + 4] */ 33438 ecx = MEM32(ebp + (-0x4)); /* 0x3614B993: mov ecx, dword ptr [ebp - 4] */ 33439 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B996: mov byte ptr [eax + 0x20], bl */ 33440 eax = MEM32(ebp + 0x8); /* 0x3614B999: mov eax, dword ptr [ebp + 8] */ 33441 edi = POP32_VAL(esp); /* 0x3614B99C: pop edi */ 33442 esi = POP32_VAL(esp); /* 0x3614B99D: pop esi */ 33443 MEM32(eax) = ecx; /* 0x3614B99E: mov dword ptr [eax], ecx */ 33444 ebx = POP32_VAL(esp); /* 0x3614B9A0: pop ebx */ 33445 esp = ebp; /* 0x3614B9A1: mov esp, ebp */ 33446 ebp = POP32_VAL(esp); /* 0x3614B9A3: pop ebp */ 33447 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3614B9A4: ret 0x10 */ 33448 RECOMP_REGS_OUT(); 33449 } 33450 33451 void sub_3614B981(void) { 33452 int _fpu_cmp = 0; 33453 uint32_t _cf = 0; 33454 int _df = 1; 33455 uint32_t _flag_k = FK_NONE; 33456 uint32_t _flag_a = 0, _flag_b = 0; 33457 uint32_t _itail_tgt = 0; 33458 RECOMP_REGS_LOCALS 33459 RECOMP_ENTER(0x3614B981u); 33460 33461 goto L_3614B981; 33462 L_3614B80D: 33463 ecx = MEM32(eax + 0x4); /* 0x3614B80D: mov ecx, dword ptr [eax + 4] */ 33464 SET_LO8(edx, MEM8(ecx + 0x20)); /* 0x3614B810: mov dl, byte ptr [ecx + 0x20] */ 33465 /* test LO8(edx), LO8(edx) */ /* 0x3614B813: test dl, dl */ 33466 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 33467 _cf = 0; 33468 _flag_k = FK_NARROW(FK_TEST, 24); 33469 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614B98D; /* 0x3614B815: jne 0x3614b98d */ 33470 L_3614B81B: 33471 edi = MEM32(ecx + 0x4); /* 0x3614B81B: mov edi, dword ptr [ecx + 4] */ 33472 edx = MEM32(edi); /* 0x3614B81E: mov edx, dword ptr [edi] */ 33473 /* cmp ecx, edx */ /* 0x3614B820: cmp ecx, edx */ 33474 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 33475 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33476 _flag_k = FK_CMP; 33477 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8E9; /* 0x3614B822: jne 0x3614b8e9 */ 33478 L_3614B828: 33479 edx = MEM32(edi + 0x8); /* 0x3614B828: mov edx, dword ptr [edi + 8] */ 33480 /* cmp MEM8(edx + 0x20), 0 */ /* 0x3614B82B: cmp byte ptr [edx + 0x20], 0 */ 33481 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 33482 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33483 _flag_k = FK_NARROW(FK_CMP, 24); 33484 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B84C; /* 0x3614B82F: jne 0x3614b84c */ 33485 L_3614B831: 33486 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B831: mov byte ptr [ecx + 0x20], bl */ 33487 MEM8(edx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B834: mov byte ptr [edx + 0x20], bl */ 33488 ecx = MEM32(eax + 0x4); /* 0x3614B837: mov ecx, dword ptr [eax + 4] */ 33489 edx = MEM32(ecx + 0x4); /* 0x3614B83A: mov edx, dword ptr [ecx + 4] */ 33490 MEM8(edx + 0x20) = (uint8_t)(0); /* 0x3614B83D: mov byte ptr [edx + 0x20], 0 */ 33491 eax = MEM32(eax + 0x4); /* 0x3614B841: mov eax, dword ptr [eax + 4] */ 33492 eax = MEM32(eax + 0x4); /* 0x3614B844: mov eax, dword ptr [eax + 4] */ 33493 goto L_3614B981; /* 0x3614B847: jmp 0x3614b981 */ 33494 L_3614B84C: 33495 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3614B84C: cmp eax, dword ptr [ecx + 8] */ 33496 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 33497 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33498 _flag_k = FK_CMP; 33499 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B88B; /* 0x3614B84F: jne 0x3614b88b */ 33500 L_3614B851: 33501 eax = ecx; /* 0x3614B851: mov eax, ecx */ 33502 ecx = MEM32(eax + 0x8); /* 0x3614B853: mov ecx, dword ptr [eax + 8] */ 33503 edx = MEM32(ecx); /* 0x3614B856: mov edx, dword ptr [ecx] */ 33504 MEM32(eax + 0x8) = edx; /* 0x3614B858: mov dword ptr [eax + 8], edx */ 33505 edx = MEM32(ecx); /* 0x3614B85B: mov edx, dword ptr [ecx] */ 33506 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614B85D: cmp edx, dword ptr [esi + 8] */ 33507 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 33508 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33509 _flag_k = FK_CMP; 33510 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B865; /* 0x3614B860: je 0x3614b865 */ 33511 L_3614B862: 33512 MEM32(edx + 0x4) = eax; /* 0x3614B862: mov dword ptr [edx + 4], eax */ 33513 L_3614B865: 33514 edx = MEM32(eax + 0x4); /* 0x3614B865: mov edx, dword ptr [eax + 4] */ 33515 MEM32(ecx + 0x4) = edx; /* 0x3614B868: mov dword ptr [ecx + 4], edx */ 33516 edx = MEM32(esi + 0x4); /* 0x3614B86B: mov edx, dword ptr [esi + 4] */ 33517 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614B86E: cmp eax, dword ptr [edx + 4] */ 33518 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 33519 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33520 _flag_k = FK_CMP; 33521 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B878; /* 0x3614B871: jne 0x3614b878 */ 33522 L_3614B873: 33523 MEM32(edx + 0x4) = ecx; /* 0x3614B873: mov dword ptr [edx + 4], ecx */ 33524 goto L_3614B886; /* 0x3614B876: jmp 0x3614b886 */ 33525 L_3614B878: 33526 edx = MEM32(eax + 0x4); /* 0x3614B878: mov edx, dword ptr [eax + 4] */ 33527 /* cmp eax, MEM32(edx) */ /* 0x3614B87B: cmp eax, dword ptr [edx] */ 33528 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 33529 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33530 _flag_k = FK_CMP; 33531 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B883; /* 0x3614B87D: jne 0x3614b883 */ 33532 L_3614B87F: 33533 MEM32(edx) = ecx; /* 0x3614B87F: mov dword ptr [edx], ecx */ 33534 goto L_3614B886; /* 0x3614B881: jmp 0x3614b886 */ 33535 L_3614B883: 33536 MEM32(edx + 0x8) = ecx; /* 0x3614B883: mov dword ptr [edx + 8], ecx */ 33537 L_3614B886: 33538 MEM32(ecx) = eax; /* 0x3614B886: mov dword ptr [ecx], eax */ 33539 MEM32(eax + 0x4) = ecx; /* 0x3614B888: mov dword ptr [eax + 4], ecx */ 33540 L_3614B88B: 33541 ecx = MEM32(eax + 0x4); /* 0x3614B88B: mov ecx, dword ptr [eax + 4] */ 33542 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B88E: mov byte ptr [ecx + 0x20], bl */ 33543 edx = MEM32(eax + 0x4); /* 0x3614B891: mov edx, dword ptr [eax + 4] */ 33544 ecx = MEM32(edx + 0x4); /* 0x3614B894: mov ecx, dword ptr [edx + 4] */ 33545 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B897: mov byte ptr [ecx + 0x20], 0 */ 33546 edx = MEM32(eax + 0x4); /* 0x3614B89B: mov edx, dword ptr [eax + 4] */ 33547 ecx = MEM32(edx + 0x4); /* 0x3614B89E: mov ecx, dword ptr [edx + 4] */ 33548 edx = MEM32(ecx); /* 0x3614B8A1: mov edx, dword ptr [ecx] */ 33549 edi = MEM32(edx + 0x8); /* 0x3614B8A3: mov edi, dword ptr [edx + 8] */ 33550 MEM32(ecx) = edi; /* 0x3614B8A6: mov dword ptr [ecx], edi */ 33551 edi = MEM32(edx + 0x8); /* 0x3614B8A8: mov edi, dword ptr [edx + 8] */ 33552 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614B8AB: cmp edi, dword ptr [esi + 8] */ 33553 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 33554 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33555 _flag_k = FK_CMP; 33556 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B8B3; /* 0x3614B8AE: je 0x3614b8b3 */ 33557 L_3614B8B0: 33558 MEM32(edi + 0x4) = ecx; /* 0x3614B8B0: mov dword ptr [edi + 4], ecx */ 33559 L_3614B8B3: 33560 edi = MEM32(ecx + 0x4); /* 0x3614B8B3: mov edi, dword ptr [ecx + 4] */ 33561 MEM32(edx + 0x4) = edi; /* 0x3614B8B6: mov dword ptr [edx + 4], edi */ 33562 edi = MEM32(esi + 0x4); /* 0x3614B8B9: mov edi, dword ptr [esi + 4] */ 33563 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614B8BC: cmp ecx, dword ptr [edi + 4] */ 33564 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 33565 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33566 _flag_k = FK_CMP; 33567 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8CC; /* 0x3614B8BF: jne 0x3614b8cc */ 33568 L_3614B8C1: 33569 MEM32(edi + 0x4) = edx; /* 0x3614B8C1: mov dword ptr [edi + 4], edx */ 33570 MEM32(edx + 0x8) = ecx; /* 0x3614B8C4: mov dword ptr [edx + 8], ecx */ 33571 goto L_3614B97E; /* 0x3614B8C7: jmp 0x3614b97e */ 33572 L_3614B8CC: 33573 edi = MEM32(ecx + 0x4); /* 0x3614B8CC: mov edi, dword ptr [ecx + 4] */ 33574 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3614B8CF: cmp ecx, dword ptr [edi + 8] */ 33575 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 33576 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33577 _flag_k = FK_CMP; 33578 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B8DF; /* 0x3614B8D2: jne 0x3614b8df */ 33579 L_3614B8D4: 33580 MEM32(edi + 0x8) = edx; /* 0x3614B8D4: mov dword ptr [edi + 8], edx */ 33581 MEM32(edx + 0x8) = ecx; /* 0x3614B8D7: mov dword ptr [edx + 8], ecx */ 33582 goto L_3614B97E; /* 0x3614B8DA: jmp 0x3614b97e */ 33583 L_3614B8DF: 33584 MEM32(edi) = edx; /* 0x3614B8DF: mov dword ptr [edi], edx */ 33585 MEM32(edx + 0x8) = ecx; /* 0x3614B8E1: mov dword ptr [edx + 8], ecx */ 33586 goto L_3614B97E; /* 0x3614B8E4: jmp 0x3614b97e */ 33587 L_3614B8E9: 33588 /* cmp MEM8(edx + 0x20), 0 */ /* 0x3614B8E9: cmp byte ptr [edx + 0x20], 0 */ 33589 _flag_a = (uint32_t)(MEM8(edx + 0x20)) << 24; _flag_b = (uint32_t)(0) << 24; 33590 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33591 _flag_k = FK_NARROW(FK_CMP, 24); 33592 RECOMP_BACKEDGE(); 33593 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B831; /* 0x3614B8ED: je 0x3614b831 */ 33594 L_3614B8F3: 33595 /* cmp eax, MEM32(ecx) */ /* 0x3614B8F3: cmp eax, dword ptr [ecx] */ 33596 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 33597 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33598 _flag_k = FK_CMP; 33599 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B933; /* 0x3614B8F5: jne 0x3614b933 */ 33600 L_3614B8F7: 33601 eax = ecx; /* 0x3614B8F7: mov eax, ecx */ 33602 ecx = MEM32(eax); /* 0x3614B8F9: mov ecx, dword ptr [eax] */ 33603 edx = MEM32(ecx + 0x8); /* 0x3614B8FB: mov edx, dword ptr [ecx + 8] */ 33604 MEM32(eax) = edx; /* 0x3614B8FE: mov dword ptr [eax], edx */ 33605 edx = MEM32(ecx + 0x8); /* 0x3614B900: mov edx, dword ptr [ecx + 8] */ 33606 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3614B903: cmp edx, dword ptr [esi + 8] */ 33607 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 33608 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33609 _flag_k = FK_CMP; 33610 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B90B; /* 0x3614B906: je 0x3614b90b */ 33611 L_3614B908: 33612 MEM32(edx + 0x4) = eax; /* 0x3614B908: mov dword ptr [edx + 4], eax */ 33613 L_3614B90B: 33614 edx = MEM32(eax + 0x4); /* 0x3614B90B: mov edx, dword ptr [eax + 4] */ 33615 MEM32(ecx + 0x4) = edx; /* 0x3614B90E: mov dword ptr [ecx + 4], edx */ 33616 edx = MEM32(esi + 0x4); /* 0x3614B911: mov edx, dword ptr [esi + 4] */ 33617 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3614B914: cmp eax, dword ptr [edx + 4] */ 33618 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 33619 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33620 _flag_k = FK_CMP; 33621 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B91E; /* 0x3614B917: jne 0x3614b91e */ 33622 L_3614B919: 33623 MEM32(edx + 0x4) = ecx; /* 0x3614B919: mov dword ptr [edx + 4], ecx */ 33624 goto L_3614B92D; /* 0x3614B91C: jmp 0x3614b92d */ 33625 L_3614B91E: 33626 edx = MEM32(eax + 0x4); /* 0x3614B91E: mov edx, dword ptr [eax + 4] */ 33627 /* cmp eax, MEM32(edx + 0x8) */ /* 0x3614B921: cmp eax, dword ptr [edx + 8] */ 33628 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 33629 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33630 _flag_k = FK_CMP; 33631 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B92B; /* 0x3614B924: jne 0x3614b92b */ 33632 L_3614B926: 33633 MEM32(edx + 0x8) = ecx; /* 0x3614B926: mov dword ptr [edx + 8], ecx */ 33634 goto L_3614B92D; /* 0x3614B929: jmp 0x3614b92d */ 33635 L_3614B92B: 33636 MEM32(edx) = ecx; /* 0x3614B92B: mov dword ptr [edx], ecx */ 33637 L_3614B92D: 33638 MEM32(ecx + 0x8) = eax; /* 0x3614B92D: mov dword ptr [ecx + 8], eax */ 33639 MEM32(eax + 0x4) = ecx; /* 0x3614B930: mov dword ptr [eax + 4], ecx */ 33640 L_3614B933: 33641 ecx = MEM32(eax + 0x4); /* 0x3614B933: mov ecx, dword ptr [eax + 4] */ 33642 MEM8(ecx + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B936: mov byte ptr [ecx + 0x20], bl */ 33643 edx = MEM32(eax + 0x4); /* 0x3614B939: mov edx, dword ptr [eax + 4] */ 33644 ecx = MEM32(edx + 0x4); /* 0x3614B93C: mov ecx, dword ptr [edx + 4] */ 33645 MEM8(ecx + 0x20) = (uint8_t)(0); /* 0x3614B93F: mov byte ptr [ecx + 0x20], 0 */ 33646 edx = MEM32(eax + 0x4); /* 0x3614B943: mov edx, dword ptr [eax + 4] */ 33647 ecx = MEM32(edx + 0x4); /* 0x3614B946: mov ecx, dword ptr [edx + 4] */ 33648 edx = MEM32(ecx + 0x8); /* 0x3614B949: mov edx, dword ptr [ecx + 8] */ 33649 edi = MEM32(edx); /* 0x3614B94C: mov edi, dword ptr [edx] */ 33650 MEM32(ecx + 0x8) = edi; /* 0x3614B94E: mov dword ptr [ecx + 8], edi */ 33651 edi = MEM32(edx); /* 0x3614B951: mov edi, dword ptr [edx] */ 33652 /* cmp edi, MEM32(esi + 0x8) */ /* 0x3614B953: cmp edi, dword ptr [esi + 8] */ 33653 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 33654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33655 _flag_k = FK_CMP; 33656 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614B95B; /* 0x3614B956: je 0x3614b95b */ 33657 L_3614B958: 33658 MEM32(edi + 0x4) = ecx; /* 0x3614B958: mov dword ptr [edi + 4], ecx */ 33659 L_3614B95B: 33660 edi = MEM32(ecx + 0x4); /* 0x3614B95B: mov edi, dword ptr [ecx + 4] */ 33661 MEM32(edx + 0x4) = edi; /* 0x3614B95E: mov dword ptr [edx + 4], edi */ 33662 edi = MEM32(esi + 0x4); /* 0x3614B961: mov edi, dword ptr [esi + 4] */ 33663 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3614B964: cmp ecx, dword ptr [edi + 4] */ 33664 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 33665 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33666 _flag_k = FK_CMP; 33667 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B96E; /* 0x3614B967: jne 0x3614b96e */ 33668 L_3614B969: 33669 MEM32(edi + 0x4) = edx; /* 0x3614B969: mov dword ptr [edi + 4], edx */ 33670 goto L_3614B97C; /* 0x3614B96C: jmp 0x3614b97c */ 33671 L_3614B96E: 33672 edi = MEM32(ecx + 0x4); /* 0x3614B96E: mov edi, dword ptr [ecx + 4] */ 33673 /* cmp ecx, MEM32(edi) */ /* 0x3614B971: cmp ecx, dword ptr [edi] */ 33674 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 33675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33676 _flag_k = FK_CMP; 33677 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B979; /* 0x3614B973: jne 0x3614b979 */ 33678 L_3614B975: 33679 MEM32(edi) = edx; /* 0x3614B975: mov dword ptr [edi], edx */ 33680 goto L_3614B97C; /* 0x3614B977: jmp 0x3614b97c */ 33681 L_3614B979: 33682 MEM32(edi + 0x8) = edx; /* 0x3614B979: mov dword ptr [edi + 8], edx */ 33683 L_3614B97C: 33684 MEM32(edx) = ecx; /* 0x3614B97C: mov dword ptr [edx], ecx */ 33685 L_3614B97E: 33686 MEM32(ecx + 0x4) = edx; /* 0x3614B97E: mov dword ptr [ecx + 4], edx */ 33687 L_3614B981: 33688 ecx = MEM32(esi + 0x4); /* 0x3614B981: mov ecx, dword ptr [esi + 4] */ 33689 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3614B984: cmp eax, dword ptr [ecx + 4] */ 33690 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 33691 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 33692 _flag_k = FK_CMP; 33693 RECOMP_BACKEDGE(); 33694 if (CMP_NE(_flag_a, _flag_b)) goto L_3614B80D; /* 0x3614B987: jne 0x3614b80d */ 33695 L_3614B98D: 33696 edx = MEM32(esi + 0x4); /* 0x3614B98D: mov edx, dword ptr [esi + 4] */ 33697 eax = MEM32(edx + 0x4); /* 0x3614B990: mov eax, dword ptr [edx + 4] */ 33698 ecx = MEM32(ebp + (-0x4)); /* 0x3614B993: mov ecx, dword ptr [ebp - 4] */ 33699 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B996: mov byte ptr [eax + 0x20], bl */ 33700 eax = MEM32(ebp + 0x8); /* 0x3614B999: mov eax, dword ptr [ebp + 8] */ 33701 edi = POP32_VAL(esp); /* 0x3614B99C: pop edi */ 33702 esi = POP32_VAL(esp); /* 0x3614B99D: pop esi */ 33703 MEM32(eax) = ecx; /* 0x3614B99E: mov dword ptr [eax], ecx */ 33704 ebx = POP32_VAL(esp); /* 0x3614B9A0: pop ebx */ 33705 esp = ebp; /* 0x3614B9A1: mov esp, ebp */ 33706 ebp = POP32_VAL(esp); /* 0x3614B9A3: pop ebp */ 33707 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3614B9A4: ret 0x10 */ 33708 RECOMP_REGS_OUT(); 33709 }