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

Disassembly:
mov eax, 0x43ccaf
call fcn.0041d79c
sub esp, 0xa0
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
push 1
lea eax, [ebp + 8]
pop esi
push str..hdr
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 4], esi
push eax
call fcn.00403714
lea eax, [ebp + 8]
push str..src
push eax
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 2
call fcn.00403714
lea eax, [ebp + 8]
push str..src2
push eax
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 3
call fcn.00403714
add esp, 0x24
mov al, byte [ebp + 0x17]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 4
mov byte [ebp - 0x90], al
call fcn.00402b70
mov eax, dword [ebp - 0x14]
xor edi, edi
mov byte [ebp - 4], 5
mov dword [ebp - 0x34], ebx
cmp dword [eax + 0x34], ebx
jne 0x402250
mov byte [ebp - 0xd], bl
jmp 0x402517
mov eax, dword [ebp - 0x6c]
cmp eax, ebx
jne 0x40225c
mov eax, 0x440680
push ebx
push 0x80
push 3
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x10000000
push eax
call esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
jne 0x402283
mov eax, 0x440680
push ebx
push 0x80
push 2
push ebx
push 1
push 0x10000000
push eax
call esi
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x402511
cmp dword [ebp - 0x20], ebx
je 0x402511
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x2c]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [ebp - 0x2c], ecx
je 0x402410
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ecx + 0xc]
add ecx, 0x10
push ecx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x30], eax
call fcn.0040257b
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 6
inc eax
mov dword [ebp - 0x24], ebx
push eax
call fcn.00430bbc
cmp eax, ebx
pop ecx
mov dword [ebp - 0x1c], eax
je 0x40249d
push 1
push ebx
push dword [ebp - 0x3c]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x38]
inc eax
push eax
push ebx
push dword [ebp - 0x1c]
call fcn.0041d9b0
add esp, 0xc
lea eax, [ebp - 0x34]
push ebx
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x48]
push ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push 4
push eax
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x4c]
cmp eax, ebx
jne 0x402348
mov eax, 0x440680
lea ecx, [ebp - 0x24]
push ebx
push ecx
push dword [ebp - 0x28]
push eax
push dword [ebp - 0x18]
call esi
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x38]
push 4
push eax
push dword [ebp - 0x18]
call esi
lea eax, [ebp - 0x24]
push ebx
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x70
push 4
push eax
push dword [ebp - 0x18]
call esi
lea eax, [ebp - 0x24]
push ebx
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x28]
lea edi, [edi + eax + 0xc]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], edi
add edi, dword [ebp - 0x38]
lea ecx, [eax + 0x28]
call fcn.004029b4
mov ecx, eax
call fcn.00401cf8
push dword [ebp - 0x1c]
call fcn.00430be5
pop ecx
lea eax, [ebp - 0xac]
push 1
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
cmp eax, ebx
je 0x4023e9
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
call fcn.00402b70
lea ecx, [ebp - 0x2c]
call fcn.00402c5e
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [eax + 0x2c]
cmp ecx, eax
jne 0x4022c3
push dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x18]
call edi
mov al, byte [ebp - 0x80]
sub esp, 0x10
mov esi, esp
mov dword [ebp - 0x1c], esp
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.00402b70
push dword [0x44067c]
lea eax, [ebp - 0x80]
mov ecx, esi
push ebx
push eax
call fcn.00402a76
mov ecx, dword [ebp - 0x14]
call fcn.004026f2
mov al, byte [ebp - 0x60]
sub esp, 0x10
mov esi, esp
mov dword [ebp - 0x1c], esp
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.00402b70
push dword [0x44067c]
lea eax, [ebp - 0x60]
mov ecx, esi
push ebx
push eax
call fcn.00402a76
sub esp, 0x10
lea eax, [ebp - 0x70]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov byte [ebp - 4], 7
call fcn.0040298a
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00402841
mov byte [ebp - 0xd], 1
jmp 0x402514
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
push 1
lea ecx, [ebp - 0x50]
pop esi
mov byte [ebp - 4], 5
push esi
call fcn.00402b70
push esi
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 4
call fcn.00402b70
push esi
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00402b70
push esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.00402b70
push esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.00402b70
push esi
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.00402b70
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [ebp + 0x18]
call fcn.00402b70
xor al, al
jmp 0x40256a
mov byte [ebp - 0xd], bl
push 1
pop esi
push esi
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 4
call fcn.00402b70
push esi
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00402b70
push esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.00402b70
push esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.00402b70
push esi
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.00402b70
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [ebp + 0x18]
call fcn.00402b70
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x20