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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
nop
mov eax, 0
mov dword [ebp - 0x18], 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 0x401d78
mov eax, 0x40d57d
push eax
call sub.msvcrt.dll_printf
add esp, 4
mov eax, 0xffffffff
jmp 0x402064
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 0x401dc2
jmp 0x401de1
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 0x402064
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x401e26
mov eax, 0x40d593
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 0x402064
mov eax, dword [ebp - 0x20]
add eax, 0x3c
mov ecx, dword [eax]
mov eax, dword [ebp - 0x20]
add ecx, eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
cmp ecx, 0x4550
je 0x401e74
mov eax, 0x40d5a7
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 0x402064
mov eax, dword [ebp - 0x24]
add eax, 0x18
add eax, 0x60
add eax, 8
mov ecx, dword [eax]
cmp ecx, 0
je 0x401e90
jmp 0x401ebd
mov eax, 0x40d5ba
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 0x402064
mov eax, dword [ebp - 0x24]
add eax, 0x18
add eax, 0x60
add eax, 8
mov ecx, dword [eax]
push ecx
mov eax, dword [ebp - 0x24]
push eax
call fcn.0040b731
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0
jne 0x401f14
mov eax, str.This_PE_Doesnt_contain_an_IT_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 0x402064
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
add eax, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov ecx, 0x14
imul eax, ecx
mov ecx, dword [ebp - 0x28]
add ecx, eax
add ecx, 0x10
mov eax, dword [ecx]
cmp eax, 0
je 0x40204a
mov eax, dword [ebp - 0x18]
mov ecx, 0x14
imul eax, ecx
mov ecx, dword [ebp - 0x28]
add ecx, eax
add ecx, 0xc
mov eax, dword [ecx]
push eax
mov eax, dword [ebp - 0x24]
push eax
call fcn.0040b731
add esp, 8
mov ecx, dword [ebp - 8]
add eax, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
mov ecx, 0x14
imul eax, ecx
mov ecx, dword [ebp - 0x28]
add ecx, eax
add ecx, 0x10
mov eax, dword [ebp - 0x18]
mov edx, 0x14
imul eax, edx
mov edx, dword [ebp - 0x28]
add edx, eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [edx]
push eax
mov eax, dword [ecx]
push eax
mov eax, str._05X___05X__s_n
push eax
lea eax, [ebp - 0x8e]
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x14
lea eax, [ebp - 0x8e]
push eax
mov eax, 0
push eax
mov eax, 0x180
push eax
mov eax, dword [0x4105c0]
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [ebp - 0x18]
mov ecx, 0x14
imul eax, ecx
mov ecx, dword [ebp - 0x28]
add ecx, eax
mov eax, dword [ecx]
cmp eax, 0
mov eax, 0
setne al
cmp eax, 0
je 0x402003
mov eax, dword [ebp - 0x18]
mov ecx, 0x14
imul eax, ecx
mov ecx, dword [ebp - 0x28]
add ecx, eax
jmp 0x40201d
mov eax, dword [ebp - 0x18]
mov ecx, 0x14
imul eax, ecx
mov ecx, dword [ebp - 0x28]
add ecx, eax
add ecx, 0x10
mov eax, dword [ecx]
jmp 0x40201f
mov eax, dword [ecx]
push eax
mov eax, dword [ebp - 0x24]
push eax
call fcn.0040b731
add esp, 8
mov ecx, dword [ebp - 8]
add eax, ecx
mov dword [ebp - 0x2c], eax
mov eax, 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov ecx, eax
inc eax
mov dword [ebp - 0x18], eax
jmp 0x401f1f
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