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

Disassembly:
sub esp, 0x80
mov eax, dword [0x4a8068]
xor eax, esp
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x84]
push ebx
push ebp
mov ebp, dword [esp + 0x90]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x9c]
push edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x44575e
mov eax, 0x1000000
jmp 0x445970
lea eax, [esp + 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x445778
mov eax, 0x200
jmp 0x445970
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov esi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x70]
push eax
call esi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x80]
push eax
call esi
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
sbb ecx, dword [esp + 0x20]
sub dword [esp + 0x4c], eax
mov ebx, dword [esp + 0x38]
mov esi, ebx
sbb dword [esp + 0x50], ecx
sub dword [esp + 0x44], eax
sbb dword [esp + 0x48], ecx
sub dword [esp + 0x3c], eax
mov eax, ebx
sbb dword [esp + 0x40], ecx
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 [esp + 0x10], edx
test esi, esi
jne 0x445833
or edx, 0x800000
mov dword [esp + 0x10], edx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x28
jbe 0x4458e8
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push edi
call ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
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, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [esp + 0x14], ax
jne 0x4458e8
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 0x34]
cmp esi, eax
jbe 0x4458e8
push 0
push 0
push ecx
push edi
call ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x24]
cmp eax, 0x5a4d
je 0x4458dd
cmp eax, 0x454e
je 0x4458dd
cmp eax, 0x454c
je 0x4458dd
cmp eax, 0x4550
jne 0x4458e8
mov eax, dword [esp + 0x10]
or eax, 0x400000
jmp 0x4458ec
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4458f6
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x445900
mov dword [eax], esi
test ebp, ebp
je 0x445940
push dword [esp + 0x48]
push dword [esp + 0x48]
call fcn.00445630
push dword [esp + 0x58]
mov dword [ebp], eax
push dword [esp + 0x58]
mov dword [ebp + 4], edx
call fcn.00445630
push dword [esp + 0x50]
mov dword [ebp + 8], eax
push dword [esp + 0x50]
mov dword [ebp + 0xc], edx
call fcn.00445630
add esp, 0x18
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], edx
mov esi, dword [esp + 0x34]
test esi, esi
je 0x44596e
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx ecx, word [esp + 0x14]
movzx eax, word [esp + 0x10]
shl ecx, 0x10
or ecx, eax
mov dword [esi], ecx
xor eax, eax
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00455277
add esp, 0x80
ret