Function at 0x60defe
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5bc
mov eax, dword [0x6fe1c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x5b0], ecx
xor ecx, ecx
mov dword [ebp - 0x598], eax
mov eax, dword [ebp + 0x1c]
mov word [esi], cx
mov ecx, dword [ebp - 0x5b0]
mov dword [ebp - 0x59c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x5a0], esi
xor esi, esi
mov dword [edx], esi
mov dword [ebp - 0x5ac], edx
mov edx, dword [ebp - 0x59c]
mov dword [ebp - 0x5b4], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx], esi
mov dword [edx], esi
mov edx, dword [ebp - 0x5b4]
mov dword [ebp - 0x5b8], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x5a8], ebx
mov dword [edx], esi
mov edx, dword [ebp - 0x5b8]
mov dword [ebp - 0x5bc], eax
mov edi, dword [ebp + 8]
mov dword [edx], esi
test eax, eax
je 0x60df97
mov dword [eax], esi
test ecx, ecx
je 0x60dfa7
push 0x48
push esi
push ecx
call fcn.00436326
add esp, 0xc
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x60e245
push esi
lea eax, [ebp - 0x594]
push eax
push 0x40
lea eax, [ebp - 0x458]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x60e245
mov eax, 0x5a4d
cmp ax, word [ebp - 0x458]
jne 0x60e245
push esi
push esi
push dword [ebp - 0x41c]
mov dword [ebx], 1
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x60e240
push esi
lea eax, [ebp - 0x594]
push eax
push 4
lea eax, [ebp - 0x5a4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x60e240
mov eax, 0x454e
cmp ax, word [ebp - 0x5a4]
jne 0x60e03d
mov dword [ebx], 2
cmp dword [ebp - 0x5a4], 0x4550
jne 0x60e240
push esi
lea eax, [ebp - 0x594]
push eax
push 0x14
lea eax, [ebp - 0x418]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x60e240
mov ecx, dword [ebp - 0x598]
mov ax, word [ebp - 0x406]
movzx ebx, word [ebp - 0x416]
push esi
mov word [ecx], ax
mov ecx, dword [ebp - 0x5a0]
mov ax, word [ebp - 0x418]
mov dword [ebp - 0x598], ebx
mov word [ecx], ax
lea eax, [ebp - 0x594]
push eax
push 0xf0
lea eax, [ebp - 0x590]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x60e240
movzx eax, bx
imul eax, eax, 0x28
mov dword [ebp - 0x5a0], eax
cmp eax, 0x400
jbe 0x60e0e3
push eax
call fcn.00439c0c
mov ebx, eax
pop ecx
test ebx, ebx
je 0x60e240
jmp 0x60e0e9
lea ebx, [ebp - 0x404]
movzx ecx, word [ebp - 0x408]
mov eax, dword [ebp - 0x41c]
add ecx, 0x18
push esi
push esi
add eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x60e22f
push esi
lea eax, [ebp - 0x594]
push eax
push dword [ebp - 0x5a0]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x60e22f
mov ecx, dword [ebp - 0x5ac]
mov eax, 0x20b
cmp word [ebp - 0x590], ax
mov eax, dword [ebp - 0x5a8]
jne 0x60e18e
cmp dword [ebp - 0x524], 0xe
mov dword [eax], 6
movzx eax, word [ebp - 0x54c]
mov dword [ecx], eax
jbe 0x60e1dc
mov ecx, dword [ebp - 0x4ac]
xor eax, eax
mov edx, dword [ebp - 0x59c]
test ecx, ecx
setne al
mov dword [edx], eax
test ecx, ecx
je 0x60e1dc
lea eax, [ebp - 0x4a0]
push eax
push dword [ebp - 0x598]
push ebx
push ecx
push dword [ebp - 0x4b0]
jmp 0x60e1d4
cmp dword [ebp - 0x534], 0xe
mov dword [eax], 3
movzx eax, word [ebp - 0x54c]
mov dword [ecx], eax
jbe 0x60e1dc
mov ecx, dword [ebp - 0x4bc]
xor eax, eax
mov edx, dword [ebp - 0x59c]
test ecx, ecx
setne al
mov dword [edx], eax
test ecx, ecx
je 0x60e1dc
lea eax, [ebp - 0x4a0]
push eax
push dword [ebp - 0x598]
push ebx
push ecx
push dword [ebp - 0x4c0]
push edi
call fcn.0060e7fd
mov esi, eax
mov edx, esi
neg edx
sbb edx, edx
and edx, dword [ebp - 0x490]
test esi, esi
je 0x60e211
mov eax, dword [ebp - 0x5bc]
test eax, eax
je 0x60e1fc
mov dword [eax], 1
mov edi, dword [ebp - 0x5b0]
test edi, edi
je 0x60e211
push 0x12
pop ecx
lea esi, [ebp - 0x4a0]
rep movsd dword es:[edi], dword [esi]
test edx, edx
je 0x60e22f
mov ecx, dword [ebp - 0x5b4]
mov eax, edx
and eax, 1
shr edx, 1
and edx, 1
mov dword [ecx], eax
mov eax, dword [ebp - 0x5b8]
mov dword [eax], edx
lea ecx, [ebp - 0x404]
cmp ebx, ecx
je 0x60e240
push ebx
call fcn.004030a8
pop ecx
xor eax, eax
inc eax
jmp 0x60e247
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040548e
leave
ret 0x28