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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
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 0x463f56
mov eax, 0x1000000
jmp 0x4642bd
lea ecx, [ebp - 0x48]
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 0x463f77
mov eax, 0x200
jmp 0x4642bd
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [ebp - 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push 8
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x60]
push ecx
call fcn.0046ab00
add esp, 0xc
push 8
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0x70]
push eax
call fcn.0046ab00
add esp, 0xc
mov ecx, dword [ebp - 0x60]
sub ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x5c]
sbb edx, dword [ebp - 0x6c]
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x84], edx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x54], ecx
lea edx, [ebp - 0x44]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0xa4], 0
jmp 0x46401c
mov eax, dword [ebp - 0xa4]
add eax, 1
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 3
jge 0x464083
push 8
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp + ecx*4 - 0x58]
push edx
lea eax, [ebp - 0xb8]
push eax
call fcn.0046ab00
add esp, 0xc
mov ecx, dword [ebp - 0xb8]
sub ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0xb4]
sbb edx, dword [ebp - 0x84]
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xac], edx
push 8
lea eax, [ebp - 0xb0]
push eax
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp + ecx*4 - 0x58]
push edx
call fcn.0046ab00
add esp, 0xc
jmp 0x46400d
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0xc]
and ecx, 1
je 0x4640a1
mov edx, dword [ebp - 8]
or edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
and eax, 2
je 0x4640b2
mov ecx, dword [ebp - 8]
or ecx, 2
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
and edx, 4
je 0x4640c3
mov eax, dword [ebp - 8]
or eax, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0x10
je 0x4640d4
mov edx, dword [ebp - 8]
or edx, 0x10
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
and eax, 0x20
je 0x4640e5
mov ecx, dword [ebp - 8]
or ecx, 0x20
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
and edx, 0x10
je 0x4640fa
mov eax, dword [ebp - 8]
or eax, 0x40000000
mov dword [ebp - 8], eax
jmp 0x464106
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 0x46411c
jmp 0x464128
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 - 0x4c], eax
cmp dword [ebp - 0x4c], 0x28
jbe 0x464219
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 - 0xbc]
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 - 0xc0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx edx, word [ebp - 0xbc]
cmp edx, 0x54ad
jne 0x464219
mov eax, dword [ebp - 0xc0]
add eax, 0x34
cmp dword [ebp - 0x4c], eax
jbe 0x464219
push 0
push 0
mov ecx, dword [ebp - 0xc0]
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 - 0xc4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc4], 0x5a4d
je 0x46420e
cmp dword [ebp - 0xc4], 0x454e
je 0x46420e
cmp dword [ebp - 0xc4], 0x454c
je 0x46420e
cmp dword [ebp - 0xc4], 0x4550
jne 0x464219
mov eax, dword [ebp - 8]
or eax, 0x400000
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
je 0x464227
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
cmp dword [ebp + 0x10], 0
je 0x464235
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x4c]
mov dword [eax], ecx
cmp dword [ebp + 0x14], 0
je 0x464285
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00463e50
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.00463e50
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.00463e50
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
cmp dword [ebp + 0x18], 0
je 0x4642bb
lea edx, [ebp - 0xc8]
push edx
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx edx, word [ebp - 0xc8]
movzx eax, word [ebp - 0xcc]
shl eax, 0x10
or edx, eax
mov ecx, dword [ebp + 0x18]
mov dword [ecx], edx
xor eax, eax
mov esp, ebp
pop ebp
ret