Function at 0x40201f
Capabilities:
Copy file
Delete file
Get common file path
Set current directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2624
call fcn.0055bc20
mov eax, dword [0x5e2ec0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x2620], eax
mov edi, edx
mov dword [ebp - 0x2610], ecx
cmp eax, 0xffffffff
jne 0x402056
xor eax, eax
jmp 0x402304
mov esi, 0x2ff
xor ebx, ebx
push esi
lea eax, [ebp - 0x307]
push ebx
push eax
mov byte [ebp - 0x308], bl
call fcn.0055bfc0
add esp, 0xc
push esi
lea eax, [ebp - 0x607]
push ebx
push eax
mov byte [ebp - 0x608], bl
call fcn.0055bfc0
add esp, 0xc
lea eax, [ebp - 0x608]
push eax
push 0x300
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x308]
push eax
push ebx
push ebx
push 0x8005
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x5d3ac8
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
lea eax, [ebp - 0x308]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, 0xfff
push esi
lea eax, [ebp - 0x1607]
push ebx
push eax
mov dword [ebp - 0x2618], ebx
mov byte [ebp - 0x1608], bl
call fcn.0055bfc0
add esp, 0xc
push esi
lea eax, [ebp - 0x2607]
push ebx
push eax
mov byte [ebp - 0x2608], bl
call fcn.0055bfc0
add esp, 0xc
lea eax, [ebp - 0x261c]
push eax
push 0x5d3acc
call fcn.0045c9e2
pop ecx
pop ecx
test eax, eax
jne 0x4022e4
push ebx
lea eax, [ebp - 0x260c]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x2610]
push dword [ebp - 0x261c]
call fcn.00443427
add esp, 0x14
test eax, eax
jne 0x4022cc
push dword [ebp - 0x260c]
call fcn.00422ae4
pop ecx
cmp eax, 0x64
jne 0x4022cc
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
inc esi
push ebx
push dword [ebp - 0x260c]
call fcn.00422f0f
pop ecx
pop ecx
push eax
mov dword [ebp - 0x2610], eax
call edi
push eax
push dword [ebp - 0x2610]
lea eax, [ebp - 0x2608]
push eax
call fcn.0055a952
add esp, 0xc
lea eax, [ebp - 0x2608]
push eax
lea eax, [ebp - 0x1608]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp - 0x2608]
push ebx
push eax
call fcn.0055bfc0
add esp, 0xc
cmp dword [ebp + 0xc], 1
jle 0x4021d5
push 0x5d3ad0
jmp 0x4021dc
jne 0x4021e9
push 0x5d3ad4
lea eax, [ebp - 0x1608]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor eax, eax
inc eax
cmp dword [ebp + 0xc], eax
mov dword [ebp - 0x2614], eax
jle 0x402271
push dword [ebp - 0x2614]
push dword [ebp - 0x260c]
call fcn.00422f0f
pop ecx
pop ecx
push eax
mov dword [ebp - 0x2610], eax
call edi
push eax
push dword [ebp - 0x2610]
lea eax, [ebp - 0x2608]
push eax
call fcn.0055a952
add esp, 0xc
lea eax, [ebp - 0x2608]
push eax
lea eax, [ebp - 0x1608]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp - 0x2608]
push ebx
push eax
call fcn.0055bfc0
add esp, 0xc
push 0x5d3ad4
lea eax, [ebp - 0x1608]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
inc dword [ebp - 0x2614]
mov eax, dword [ebp - 0x2614]
cmp eax, dword [ebp + 0xc]
jl 0x4021f7
push ebx
lea eax, [ebp - 0x2624]
push eax
lea eax, [ebp - 0x1608]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x1608]
push eax
push dword [ebp - 0x2620]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea eax, [ebp - 0x1608]
push ebx
push eax
mov dword [ebp - 0x2624], ebx
call fcn.0055bfc0
add esp, 0xc
push dword [ebp - 0x260c]
inc dword [ebp - 0x2618]
call fcn.00422ae4
pop ecx
cmp eax, 0x64
je 0x402176
push dword [ebp - 0x260c]
call fcn.004222e8
pop ecx
push dword [ebp - 0x261c]
call fcn.0045b331
pop ecx
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x608]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x2618]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055a67a
leave
ret