Function at 0x401410
Capabilities:
Read file via mapping
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0xc0000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0xc], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateFileMappingA_24
sub esp, 0x18
mov dword [ebp - 0x10], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 6
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._MapViewOfFile_20
sub esp, 0x14
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0x1c]
add eax, edx
add eax, 0x18
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
movzx eax, word [eax + 2]
movzx eax, ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x4a], 0xb860
mov dword [ebp - 0x46], 0x30800000
mov dword [ebp - 0x42], 0xff3d4088
mov dword [ebp - 0x3e], 0x7500404f
mov dword [ebp - 0x3a], 0xb861f5
mov dword [ebp - 0x36], 0xff000000
mov word [ebp - 0x32], 0xe0
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0x4a]
add eax, 2
mov edx, dword [ebp - 0x20]
add edx, ecx
mov dword [eax], edx
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x20]
add eax, edx
mov dword [esp + 4], eax
mov dword [esp], 0x406044
call sym._printf
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x20]
lea ecx, [edx + eax]
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 8]
lea eax, [ebp - 0x4a]
add eax, 0xb
add edx, ecx
mov dword [eax], edx
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x20]
add edx, eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 8]
add eax, edx
mov dword [esp + 4], eax
mov dword [esp], 0x406068
call sym._printf
lea eax, [ebp - 0x4a]
add eax, 0x13
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
add edx, ecx
mov dword [eax], edx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
add eax, edx
mov dword [esp + 4], eax
mov dword [esp], str.___
call sym._printf
mov edx, dword [ebp - 0x30]
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 3
sub eax, 0x28
add dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
mov dword [esp], 0x4060a4
call sym._printf
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x14]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._SetFilePointer_16
sub esp, 0x10
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x50]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1a
lea eax, [ebp - 0x4a]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteFile_20
sub esp, 0x14
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._FlushViewOfFile_8
sub esp, 8
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.__
call sym._printf
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._UnmapViewOfFile_4
sub esp, 4
nop
leave
ret