Function at 0x43ea80
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x50d080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x58], eax
mov edi, ecx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x68], edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x43eacb
mov eax, 0x200
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cdd2
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 0x48]
mov eax, ebx
push esi
mov esi, ebx
and esi, 1
mov ecx, esi
or ecx, 2
and al, 2
mov eax, ebx
cmove ecx, esi
mov edx, ecx
or edx, 4
and al, 4
cmove edx, ecx
mov ecx, ebx
mov eax, edx
or eax, 0x10
and ecx, 0x10
cmove eax, edx
mov edx, eax
or edx, 0x20
and bl, 0x20
mov ebx, 0x81000000
cmove edx, eax
test ecx, ecx
mov eax, 0x41000000
cmove eax, ebx
or edx, eax
mov dword [ebp - 0x4c], edx
test esi, esi
jne 0x43eb26
or edx, 0x800000
mov dword [ebp - 0x4c], edx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x28
jbe 0x43ebd1
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push edi
call ebx
push 0
lea eax, [ebp - 0x54]
push eax
push 2
lea eax, [ebp - 0x50]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0x24
push edi
call ebx
push 0
lea eax, [ebp - 0x54]
push eax
push 4
lea eax, [ebp - 0x60]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [ebp - 0x50], ax
jne 0x43ebd1
mov ecx, dword [ebp - 0x60]
lea eax, [ecx + 0x34]
cmp esi, eax
jbe 0x43ebd1
push 0
push 0
push ecx
push edi
call ebx
push 0
lea eax, [ebp - 0x54]
push eax
push 4
lea eax, [ebp - 0x64]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x64]
cmp eax, 0x5a4d
je 0x43ebc7
cmp eax, 0x454e
je 0x43ebc7
cmp eax, 0x454c
je 0x43ebc7
cmp eax, 0x4550
jne 0x43ebd1
mov eax, dword [ebp - 0x4c]
or eax, 0x400000
jmp 0x43ebd4
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x43ebdd
mov dword [ecx], eax
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x43ebe6
mov dword [eax], esi
mov ebx, dword [ebp - 0x70]
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
test ebx, ebx
je 0x43ec5f
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
sub ecx, 0xd53e8000
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.004d8110
mov dword [ebx], eax
mov ecx, edi
sub ecx, 0xd53e8000
mov dword [ebx + 4], edx
push 0
mov eax, esi
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.004d8110
mov ecx, dword [ebp - 0x44]
mov dword [ebx + 8], eax
sub ecx, 0xd53e8000
mov eax, dword [ebp - 0x40]
push 0
push 0x989680
sbb eax, 0x19db1de
mov dword [ebx + 0xc], edx
push eax
push ecx
call fcn.004d8110
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x43ecbe
lea eax, [ebp - 0x14]
mov dword [ebp - 0x5c], edi
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x58], esi
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x12]
and eax, 0xf
lea ecx, [ecx - 0x3c]
shl ecx, 4
or ecx, eax
mov eax, dword [ebp - 0xe]
shl ecx, 5
and eax, 0x1f
movzx edx, cx
mov ecx, dword [ebp - 0xa]
or edx, eax
mov eax, dword [ebp - 0xc]
and ecx, 0x3f
shl eax, 6
or ecx, eax
shl edx, 0x10
shl ecx, 5
movzx eax, cx
or edx, eax
mov eax, dword [ebp - 8]
add eax, eax
and eax, 0x1f
or edx, eax
mov dword [ebx], edx
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.0047cdd2
mov esp, ebp
pop ebp
ret