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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x461fec]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
je 0x419bf0
mov eax, 0x1000000
jmp 0x419f5d
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x419c11
mov eax, 0x200
jmp 0x419f5d
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [ebp - 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea edx, [ebp - 0xa8]
push edx
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push 8
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.00436e10
add esp, 0xc
push 8
lea edx, [ebp - 0x70]
push edx
lea eax, [ebp - 0x78]
push eax
call fcn.00436e10
add esp, 0xc
mov ecx, dword [ebp - 0x68]
sub ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x64]
sbb edx, dword [ebp - 0x74]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], edx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x58], ecx
lea edx, [ebp - 0x48]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0xac], 0
jmp 0x419cbc
mov eax, dword [ebp - 0xac]
add eax, 1
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 3
jge 0x419d23
push 8
mov ecx, dword [ebp - 0xac]
mov edx, dword [ebp + ecx*4 - 0x5c]
push edx
lea eax, [ebp - 0xc0]
push eax
call fcn.00436e10
add esp, 0xc
mov ecx, dword [ebp - 0xc0]
sub ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0xbc]
sbb edx, dword [ebp - 0x8c]
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xb4], edx
push 8
lea eax, [ebp - 0xb8]
push eax
mov ecx, dword [ebp - 0xac]
mov edx, dword [ebp + ecx*4 - 0x5c]
push edx
call fcn.00436e10
add esp, 0xc
jmp 0x419cad
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0xc]
and ecx, 1
je 0x419d41
mov edx, dword [ebp - 8]
or edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
and eax, 2
je 0x419d52
mov ecx, dword [ebp - 8]
or ecx, 2
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
and edx, 4
je 0x419d63
mov eax, dword [ebp - 8]
or eax, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0x10
je 0x419d74
mov edx, dword [ebp - 8]
or edx, 0x10
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
and eax, 0x20
je 0x419d85
mov ecx, dword [ebp - 8]
or ecx, 0x20
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
and edx, 0x10
je 0x419d9a
mov eax, dword [ebp - 8]
or eax, 0x40000000
mov dword [ebp - 8], eax
jmp 0x419da6
mov ecx, dword [ebp - 8]
or ecx, 0x80000000
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
or edx, 0x1000000
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
and eax, 1
je 0x419dbc
jmp 0x419dc8
mov ecx, dword [ebp - 8]
or ecx, 0x800000
mov dword [ebp - 8], ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0x28
jbe 0x419eb9
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x14]
push ecx
push 2
lea edx, [ebp - 0xc4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0x24
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x14]
push edx
push 4
lea eax, [ebp - 0xc8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx edx, word [ebp - 0xc4]
cmp edx, 0x54ad
jne 0x419eb9
mov eax, dword [ebp - 0xc8]
add eax, 0x34
cmp dword [ebp - 0x50], eax
jbe 0x419eb9
push 0
push 0
mov ecx, dword [ebp - 0xc8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea ecx, [ebp - 0xcc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xcc], 0x5a4d
je 0x419eae
cmp dword [ebp - 0xcc], 0x454e
je 0x419eae
cmp dword [ebp - 0xcc], 0x454c
je 0x419eae
cmp dword [ebp - 0xcc], 0x4550
jne 0x419eb9
mov eax, dword [ebp - 8]
or eax, 0x400000
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
je 0x419ec7
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
cmp dword [ebp + 0x10], 0
je 0x419ed5
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x50]
mov dword [eax], ecx
cmp dword [ebp + 0x14], 0
je 0x419f25
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x40]
push eax
call fcn.00419ad0
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.00419ad0
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.00419ad0
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
cmp dword [ebp + 0x18], 0
je 0x419f5b
lea edx, [ebp - 0xd0]
push edx
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx edx, word [ebp - 0xd0]
movzx eax, word [ebp - 0xd4]
shl eax, 0x10
or edx, eax
mov ecx, dword [ebp + 0x18]
mov dword [ecx], edx
xor eax, eax
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00435c3d
mov esp, ebp
pop ebp
ret