Function at 0x502660
Capabilities:
Access peb ldr_data
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x52b6f7
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x597f54]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x597f54]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esp + 0x140]
xor ebx, ebx
mov dword [esp + 0x24], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esp + 0x138], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dl, 0x3a
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], 1
mov byte [esi + 0x48], bl
mov byte [esi + 0x49], bl
cmp byte [ecx + 1], dl
mov byte [esp + 0x138], 2
jne 0x50271e
cmp byte [ecx + 2], 0x5c
jne 0x50271e
cmp byte [ecx + 3], 0x5c
lea eax, [ecx + 3]
jne 0x50271e
mov cl, byte [ecx]
mov byte [esp + 0x29], dl
lea edx, [esp + 0x2a]
mov byte [esp + 0x28], cl
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x502710
jmp 0x502732
lea edx, [esp + 0x28]
mov eax, ecx
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x502726
lea edx, [esp + 0x28]
push 0x532c48
push edx
call fcn.004e3d1b
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x1c], edi
je 0x5028b7
push ebx
push ebx
push edi
call fcn.004e7e42
push edi
push 1
push 8
push 0x59e0b8
call fcn.004e8163
add esp, 0x1c
cmp eax, 1
je 0x502777
push edi
jmp 0x5028af
mov ax, word [0x59e0b8]
cmp ax, 0x4d4d
je 0x502792
cmp ax, 0x4949
je 0x502792
mov byte [esi + 0x49], 1
jmp 0x5028b7
movzx eax, ax
push eax
call fcn.0050c530
add esp, 4
test eax, eax
je 0x5027b9
push 0x59e0ba
call fcn.0050b020
push 0x59e0bc
call fcn.0050b030
add esp, 8
mov edi, dword [0x59e0bc]
xor ebp, ebp
cmp edi, ebx
je 0x5028a7
lea esp, [esp]
fldz
lea eax, [esi + 0x44]
push eax
fst dword [esp + 0x18]
lea eax, [esi + 0x3c]
fstp dword [esp + 0x1c]
push eax
lea eax, [esi + 0x40]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
push edi
push ebp
push ecx
call fcn.0050c700
mov edi, eax
mov eax, dword [esp + 0x44]
add esp, 0x24
cmp eax, 3
jne 0x50282b
fld dword [esp + 0x14]
fld qword [0x532670]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x14]
fmul dword [esp + 0x18]
fstp dword [esp + 0x18]
jmp 0x502830
cmp eax, 1
je 0x50283d
fld1
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 1
jne 0x502847
fld dword [0x53295c]
fstp dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.005024f0
cmp dword [esi + 0x40], 1
lea ecx, [esi + 0x24]
sete al
push eax
call fcn.00502600
cmp dword [esi + 0x40], 1
jne 0x50287b
cmp dword [esi + 0x3c], ebx
jne 0x50287b
cmp dword [esi + 0x44], 0x8005
jne 0x50287b
mov al, 1
jmp 0x50287d
xor al, al
push eax
lea ecx, [esi + 0x10]
call fcn.00502600
cmp byte [esp + 0x144], bl
jne 0x50289c
add ebp, 1
cmp edi, ebx
jne 0x5027d0
jmp 0x5028a7
cmp edi, ebx
setne cl
mov byte [esi + 0x48], cl
add ebp, 1
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x38], ebp
push edx
call fcn.004e39fa
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004e2867
add esp, 0x128
ret 8