Function at 0x408d81
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
sub esp, 0x98
lea ebp, [esp - 4]
mov eax, dword [0x466b10]
xor eax, ebp
mov dword [ebp + 0x98], eax
push 0x4c
mov eax, 0x44ad28
call fcn.00433137
mov dword [ebp - 0x14], ecx
push str..hdr
lea eax, [ebp + 0xa4]
push eax
xor edi, edi
lea eax, [ebp + 0x1c]
inc edi
push eax
mov dword [ebp - 4], edi
call fcn.00407f8e
push str..src
lea eax, [ebp + 0xa4]
push eax
lea eax, [ebp + 0x60]
push eax
mov byte [ebp - 4], 2
call fcn.00407f8e
push str..src2
lea eax, [ebp + 0xa4]
push eax
lea eax, [ebp + 0x7c]
push eax
mov byte [ebp - 4], 3
call fcn.00407f8e
add esp, 0x24
xor ebx, ebx
push ebx
lea ecx, [ebp]
mov dword [ebp + 0x18], 0xf
call fcn.0040155f
mov eax, dword [ebp - 0x14]
xor esi, esi
cmp dword [eax + 0x30], ebx
mov byte [ebp - 4], 5
mov dword [ebp - 0x3c], ebx
jne 0x408e84
push ebx
push edi
lea ecx, [ebp]
call fcn.00401627
push ebx
push edi
lea ecx, [ebp + 0x7c]
call fcn.00401627
push ebx
push edi
lea ecx, [ebp + 0x60]
call fcn.00401627
push ebx
push edi
lea ecx, [ebp + 0x1c]
call fcn.00401627
push ebx
push edi
lea ecx, [ebp + 0xa4]
call fcn.00401627
push ebx
push edi
lea ecx, [ebp + 0xc0]
call fcn.00401627
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x98]
xor ecx, ebp
call fcn.00432980
add ebp, 0x9c
leave
ret 0x38
cmp dword [ebp + 0x78], 0x10
mov eax, dword [ebp + 0x64]
jae 0x408e90
lea eax, [ebp + 0x64]
push ebx
push 0x80
push 3
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push SysReAllocStringLen
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
jne 0x408ef5
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp]
call fcn.00401627
push ebx
push esi
lea ecx, [ebp + 0x7c]
call fcn.00401627
push ebx
push esi
lea ecx, [ebp + 0x60]
call fcn.00401627
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.00401627
push ebx
push esi
lea ecx, [ebp + 0xa4]
call fcn.00401627
push ebx
push esi
jmp 0x408e52
cmp dword [ebp + 0x94], 0x10
mov eax, dword [ebp + 0x80]
jae 0x408f0a
lea eax, [ebp + 0x80]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x38], eax
jne 0x408f83
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0xd], bl
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp]
call fcn.00401627
push ebx
push esi
lea ecx, [ebp + 0x7c]
call fcn.00401627
push ebx
push esi
lea ecx, [ebp + 0x60]
call fcn.00401627
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.00401627
push ebx
push esi
lea ecx, [ebp + 0xa4]
call fcn.00401627
push ebx
push esi
lea ecx, [ebp + 0xc0]
call fcn.00401627
mov al, byte [ebp - 0xd]
jmp 0x408e5f
mov edi, dword [ebp - 0x14]
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
add edi, 0x28
push edi
push eax
lea ecx, [ebp - 0x28]
call fcn.00407803
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
jmp 0x409078
lea ecx, [ebp - 0x30]
call fcn.004076af
mov eax, dword [eax]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], eax
call fcn.004076af
add eax, 4
push eax
lea ecx, [ebp + 0x38]
call fcn.00407ba8
mov eax, dword [ebp + 0x5c]
inc eax
push eax
mov byte [ebp - 4], 6
mov dword [ebp - 0x34], ebx
call fcn.00435fc3
pop ecx
push ebx
push ebx
push dword [ebp + 0x58]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x5c]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x5c]
push dword [ebp - 0x20]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x20]
call fcn.00436086
pop ecx
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp + 0x58], esi
add esi, dword [ebp + 0x5c]
push eax
mov ecx, edi
call fcn.00408a0e
mov ecx, eax
call fcn.00407ef1
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
cmp eax, ebx
je 0x409061
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push 1
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 5
call fcn.00401627
lea ecx, [ebp - 0x30]
call fcn.00407827
mov eax, dword [edi + 4]
push edi
push eax
lea ecx, [ebp - 0x28]
call fcn.00407803
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x30]
call fcn.00407667
test al, al
je 0x408fa9
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
sub esp, 0x1c
lea eax, [ebp + 0x1c]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.004019de
mov ecx, dword [ebp - 0x14]
call fcn.00407bcf
sub esp, 0x1c
lea eax, [ebp + 0x7c]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.004019de
sub esp, 0x1c
lea eax, [ebp + 0x60]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
mov byte [ebp - 4], 7
call fcn.004019de
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00407d30
mov byte [ebp - 0xd], 1
jmp 0x408f36