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

Disassembly:
mov eax, 0x43d3eb
call fcn.0041de9c
sub esp, 0x98
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
push 1
lea eax, [ebp + 8]
pop edi
push str..hdr
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 4], edi
push eax
call fcn.0040354b
lea eax, [ebp + 8]
push str..src
push eax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 2
call fcn.0040354b
lea eax, [ebp + 8]
push str..src2
push eax
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 3
call fcn.0040354b
add esp, 0x24
mov al, byte [ebp + 0x17]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 4
mov byte [ebp - 0x88], al
call fcn.004029a7
mov eax, dword [ebp - 0x14]
xor esi, esi
mov byte [ebp - 4], 5
mov dword [ebp - 0x2c], ebx
cmp dword [eax + 0x34], ebx
jne 0x402177
mov byte [ebp - 0xd], bl
jmp 0x402349
mov eax, dword [ebp - 0x64]
cmp eax, ebx
jne 0x402183
mov eax, 0x440680
push ebx
push 0x80
push 3
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_CreateFileA]
push SysReAllocStringLen
push eax
call edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x54]
cmp eax, ebx
jne 0x4021aa
mov eax, 0x440680
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call edi
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x402343
cmp dword [ebp - 0x18], ebx
je 0x402343
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov dword [ebp - 0x20], eax
cmp eax, ecx
je 0x4022b6
mov ecx, dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.004023ad
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 6
inc eax
mov dword [ebp - 0x24], ebx
push eax
call fcn.0041e1f1
pop ecx
mov edi, eax
push ebx
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea eax, [ebp - 0x2c]
push ebx
push eax
push dword [ebp - 0x30]
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
lea eax, [ebp - 0x24]
push ebx
push eax
push dword [ebp - 0x30]
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call fcn.0041e108
pop ecx
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], esi
add esi, dword [ebp - 0x30]
lea ecx, [eax + 0x28]
call fcn.004027eb
mov ecx, eax
call fcn.00401c87
push 1
push ebx
push ebx
lea eax, [ebp - 0xa4]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
cmp eax, ebx
je 0x402292
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.004029a7
lea ecx, [ebp - 0x20]
call fcn.00402a95
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 0x20]
jmp 0x4021db
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
mov al, byte [ebp - 0x78]
sub esp, 0x10
mov esi, esp
mov dword [ebp - 0x1c], esp
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.004029a7
push dword [0x44067c]
lea eax, [ebp - 0x78]
mov ecx, esi
push ebx
push eax
call fcn.004028ad
mov ecx, dword [ebp - 0x14]
call fcn.00402524
mov al, byte [ebp - 0x58]
sub esp, 0x10
mov esi, esp
mov dword [ebp - 0x1c], esp
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.004029a7
push dword [0x44067c]
lea eax, [ebp - 0x58]
mov ecx, esi
push ebx
push eax
call fcn.004028ad
sub esp, 0x10
lea eax, [ebp - 0x68]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 7
call fcn.004027c1
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00402673
mov byte [ebp - 0xd], 1
jmp 0x402346
mov byte [ebp - 0xd], bl
push 1
pop edi
push edi
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 4
call fcn.004029a7
push edi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.004029a7
push edi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.004029a7
push edi
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.004029a7
push edi
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.004029a7
or dword [ebp - 4], 0xffffffff
push edi
lea ecx, [ebp + 0x18]
call fcn.004029a7
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x20