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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x80], eax
call dword [sym.imp.KERNEL32.DLL_GetFileType]
cmp eax, 1
je 0x432f9e
pop edi
mov eax, 0x1000000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileInformationByHandle]
test eax, eax
jne 0x432fc2
pop edi
mov eax, 0x200
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
mov esi, dword [sym.imp.KERNEL32.DLL_SystemTimeToFileTime]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x48]
push eax
call esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x58]
push eax
call esi
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x70]
sbb ecx, dword [ebp - 0x68]
sub dword [ebp - 0x24], eax
sbb dword [ebp - 0x20], ecx
sub dword [ebp - 0x2c], eax
sbb dword [ebp - 0x28], ecx
sub dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x38]
mov edx, eax
sbb dword [ebp - 0x30], ecx
xor esi, esi
and edx, 1
mov ecx, 1
cmovne esi, ecx
test al, 2
je 0x433028
or esi, 2
test al, 4
je 0x43302f
or esi, 4
mov ecx, eax
and ecx, 0x10
je 0x433039
or esi, 0x10
test al, 0x20
je 0x433040
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 0x433062
or esi, 0x800000
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0x60], eax
cmp eax, 0x28
jbe 0x433114
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [ebp - 0x64]
push eax
push 2
lea eax, [ebp - 0x5c]
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 - 0x64]
push eax
push 4
lea eax, [ebp - 0x68]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, 0x54ad
cmp word [ebp - 0x5c], ax
jne 0x433111
mov ecx, dword [ebp - 0x68]
lea eax, [ecx + 0x34]
cmp dword [ebp - 0x60], eax
jbe 0x433111
push 0
push 0
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [ebp - 0x64]
push eax
push 4
lea eax, [ebp - 0x70]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [ebp - 0x70]
cmp eax, 0x5a4d
je 0x43310b
cmp eax, 0x454e
je 0x43310b
cmp eax, 0x454c
je 0x43310b
cmp eax, 0x4550
jne 0x433111
or esi, 0x400000
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x43311d
mov dword [ecx], esi
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x433126
mov dword [ecx], eax
test ebx, ebx
je 0x433156
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.004343f0
push dword [ebp - 0x20]
mov dword [ebx], eax
push dword [ebp - 0x24]
call fcn.004343f0
push dword [ebp - 0x30]
mov dword [ebx + 4], eax
push dword [ebp - 0x34]
call fcn.004343f0
add esp, 0x18
mov dword [ebx + 8], eax
mov esi, dword [ebp - 0x80]
test esi, esi
je 0x43317e
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_FileTimeToDosDateTime]
movzx ecx, word [ebp - 0x5c]
movzx eax, word [ebp - 0x60]
shl ecx, 0x10
or ecx, eax
mov dword [esi], ecx
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004e1f40
mov esp, ebp
pop ebp
ret