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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x43890d
xor eax, eax
jmp 0x438d4b
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
push 0
lea edx, [ebp - 0x2c]
push edx
push 0x200
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43896d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x23c], eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x438d4b
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x43899c
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x438d4b
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x3c]
cdq
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 0x2c]
push eax
push 0x200
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x438a09
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x438d4b
lea edx, [ebp - 0x230]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
je 0x438a36
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x438d4b
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x5c]
and eax, 2
jne 0x438a5b
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x438d4b
mov edx, dword [ebp - 4]
mov ax, word [edx + 6]
mov word [ebp - 0x238], ax
mov ecx, dword [ebp - 4]
movzx eax, word [ecx + 0x14]
add eax, 0x18
cdq
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
adc ecx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea edx, [ebp - 0x2c]
push edx
push 0x200
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x438ae2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x244], eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x438d4b
lea ecx, [ebp - 0x230]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x438afd
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
movzx eax, word [ebp - 0x238]
cmp dword [ebp - 0xc], eax
jae 0x438bcf
push str..text
mov ecx, dword [ebp - 8]
push ecx
call fcn.004317e0
add esp, 8
test eax, eax
je 0x438ba6
mov edx, dword [ebp - 0x18]
add edx, 0x28
mov eax, dword [ebp - 0x14]
adc eax, 0
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 0x200
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x438b98
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x248], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x438d4b
lea eax, [ebp - 0x230]
mov dword [ebp - 8], eax
jmp 0x438af4
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
xor eax, eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
xor eax, eax
add edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
adc ecx, eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
jmp 0x438af4
jmp 0x46bfbf
mov esp, ebp
pop ebp
ret 0x10