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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x4ac084]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x84], eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4443bf
mov eax, 0x1000000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00458d41
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x3c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x4443e4
mov eax, 0x200
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00458d41
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov esi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x4c]
push eax
call esi
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x5c]
push eax
call esi
mov eax, dword [ebp - 0x78]
sub eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x74]
sbb ecx, dword [ebp - 0x6c]
sub dword [ebp - 0x28], eax
sbb dword [ebp - 0x24], ecx
sub dword [ebp - 0x30], eax
sbb dword [ebp - 0x2c], ecx
sub dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x3c]
mov edx, eax
sbb dword [ebp - 0x34], ecx
xor esi, esi
and edx, 1
mov ecx, 1
cmovne esi, ecx
test al, 2
je 0x444449
or esi, 2
test al, 4
je 0x444450
or esi, 4
mov ecx, eax
and ecx, 0x10
je 0x44445a
or esi, 0x10
test al, 0x20
je 0x444461
or esi, 0x20
mov eax, esi
or esi, 0x80000000
or eax, 0x40000000
test ecx, ecx
cmovne esi, eax
or esi, 0x1000000
test edx, edx
jne 0x444483
or esi, 0x800000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x64], eax
cmp eax, 0x28
jbe 0x444535
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x68]
push eax
push 2
lea eax, [ebp - 0x60]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0x24
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x68]
push eax
push 4
lea eax, [ebp - 0x6c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [ebp - 0x60], ax
jne 0x444532
mov ecx, dword [ebp - 0x6c]
lea eax, [ecx + 0x34]
cmp dword [ebp - 0x64], eax
jbe 0x444532
push 0
push 0
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x68]
push eax
push 4
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x74]
cmp eax, 0x5a4d
je 0x44452c
cmp eax, 0x454e
je 0x44452c
cmp eax, 0x454c
je 0x44452c
cmp eax, 0x4550
jne 0x444532
or esi, 0x400000
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x44453e
mov dword [ecx], esi
mov ecx, dword [ebp - 0x80]
test ecx, ecx
je 0x444547
mov dword [ecx], eax
test ebx, ebx
je 0x444577
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.004442b0
push dword [ebp - 0x24]
mov dword [ebx], eax
push dword [ebp - 0x28]
call fcn.004442b0
push dword [ebp - 0x34]
mov dword [ebx + 4], eax
push dword [ebp - 0x38]
call fcn.004442b0
add esp, 0x18
mov dword [ebx + 8], eax
mov esi, dword [ebp - 0x84]
test esi, esi
je 0x4445a2
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx ecx, word [ebp - 0x60]
movzx eax, word [ebp - 0x64]
shl ecx, 0x10
or ecx, eax
mov dword [esi], ecx
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00458d41
mov esp, ebp
pop ebp
ret