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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x511080]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x64]
push eax
push ecx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x411000
mov eax, 0x200
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x64]
mov edi, 0x41000000
mov esi, ebx
and esi, 1
mov ecx, esi
or ecx, 2
test bl, 2
cmove ecx, esi
mov edx, ecx
or edx, 4
test bl, 4
cmove edx, ecx
mov ecx, ebx
and ecx, 0x10
mov eax, edx
or eax, 0x10
mov dword [ebp - 0xc], ecx
test ecx, ecx
cmove eax, edx
mov edx, 0x81000000
mov ecx, eax
or ecx, 0x20
test bl, 0x20
cmove ecx, eax
mov eax, dword [ebp - 0xc]
test eax, eax
cmove edi, edx
or edi, ecx
test esi, esi
jne 0x411064
test eax, eax
mov edi, 0x41800000
mov edx, 0x81800000
cmove edi, edx
or edi, ecx
mov ebx, dword [ebp - 0x10]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x28
jbe 0x411114
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0x24
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [ebp - 0xc], ax
jne 0x411114
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + 0x34]
cmp esi, eax
jbe 0x411114
push 0
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x20]
cmp eax, 0x5a4d
je 0x41110e
cmp eax, 0x454e
je 0x41110e
cmp eax, 0x454c
je 0x41110e
cmp eax, 0x4550
jne 0x411114
or edi, 0x400000
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x41111d
mov dword [eax], edi
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x411126
mov dword [eax], esi
mov ebx, dword [ebp - 0x70]
mov esi, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x50]
test ebx, ebx
je 0x411196
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
sub ecx, 0xd53e8000
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.004f4ac0
mov dword [ebx], eax
mov ecx, edi
sub ecx, 0xd53e8000
mov eax, esi
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.004f4ac0
mov ecx, dword [ebp - 0x60]
mov dword [ebx + 4], eax
sub ecx, 0xd53e8000
mov eax, dword [ebp - 0x5c]
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.004f4ac0
mov dword [ebx + 8], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4111f5
lea eax, [ebp - 0x30]
mov dword [ebp - 0x1c], edi
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], esi
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2e]
and eax, 0xf
lea ecx, [ecx - 0x3c]
shl ecx, 4
or ecx, eax
mov eax, dword [ebp - 0x2a]
shl ecx, 5
and eax, 0x1f
movzx edx, cx
mov ecx, dword [ebp - 0x26]
or edx, eax
mov eax, dword [ebp - 0x28]
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 - 0x24]
add eax, eax
and eax, 0x1f
or edx, eax
mov dword [ebx], edx
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d2eed
mov esp, ebp
pop ebp
ret