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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
nop
mov eax, 0
push eax
mov eax, 0
push eax
mov eax, 0x184
push eax
mov eax, dword [0x4105dc]
push eax
call sub.user32.dll_SendMessageA
mov eax, 0
mov dword [ebp - 0x28], eax
mov eax, 0
push eax
mov eax, pe_nt_image_headers32
push eax
mov eax, 3
push eax
mov eax, 0
push eax
mov eax, 1
push eax
mov eax, 0x80000000
push eax
mov eax, 0x40d040
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
jne 0x40ba12
mov eax, str.Cannot_Open_the_File_n
push eax
call sub.msvcrt.dll_printf
add esp, 4
mov eax, 0xffffffff
jmp 0x40bc5f
mov eax, 0
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
call sub.msvcrt.dll_malloc
add esp, 4
mov dword [ebp - 8], eax
mov eax, 0
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile
cmp eax, 0
je 0x40ba5c
jmp 0x40ba7b
mov eax, dword [ebp - 8]
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0xffffffff
jmp 0x40bc5f
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x40bac0
mov eax, str.Invalid_Dos_Header_n
push eax
call sub.msvcrt.dll_printf
add esp, 4
mov eax, dword [ebp - 8]
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0xffffffff
jmp 0x40bc5f
mov eax, dword [ebp - 0x1c]
add eax, 0x3c
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
add ecx, eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
cmp ecx, 0x4550
je 0x40bb0e
mov eax, str.Invalid_PE_Header_n
push eax
call sub.msvcrt.dll_printf
add esp, 4
mov eax, dword [ebp - 8]
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0xffffffff
jmp 0x40bc5f
mov eax, dword [ebp - 0x20]
add eax, 0x18
add eax, 0x60
add eax, 0x28
mov ecx, dword [eax]
cmp ecx, 0
je 0x40bb2a
jmp 0x40bb57
mov eax, str.This_PE_doesnt_contain_Relocations_n
push eax
call sub.msvcrt.dll_printf
add esp, 4
mov eax, dword [ebp - 8]
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0xffffffff
jmp 0x40bc5f
mov eax, dword [ebp - 0x20]
add eax, 0x18
add eax, 0x60
add eax, 0x28
mov ecx, dword [eax]
push ecx
mov eax, dword [ebp - 0x20]
push eax
call fcn.0040b731
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
add eax, 0x18
add eax, 0x60
add eax, 0x28
add eax, 4
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x14]
cmp eax, 0
jne 0x40bbb4
mov eax, dword [ebp - 8]
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0xffffffff
jmp 0x40bc5f
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jae 0x40bc45
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
add eax, ecx
mov ecx, dword [ebp - 8]
add eax, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
add ecx, 4
mov edx, dword [ebp - 0x24]
add edx, 4
mov dword [ebp - 0xf4], eax
mov eax, dword [edx]
sub eax, 8
shr eax, 1
push eax
mov eax, dword [ecx]
push eax
mov eax, dword [ebp - 0xf4]
mov eax, dword [eax]
push eax
mov eax, str._n_nVirtual_Addr:__X_nSize_Of_Block:__X_nType_Offset_Members__d
push eax
lea eax, [ebp - 0xf0]
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x14
lea eax, [ebp - 0xf0]
push eax
mov eax, 0
push eax
mov eax, 0x180
push eax
mov eax, dword [0x4105dc]
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [ebp - 0x24]
add eax, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [eax]
add ecx, edx
mov dword [ebp - 0x28], ecx
jmp 0x40bbb4
mov eax, dword [ebp - 8]
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0
leave
ret