Function at 0x401c5a
Capabilities:
Copy file
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5628
call fcn.0040fdd0
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, esi
and eax, 0xff000000
xor ebx, ebx
cmp eax, 0x80000000
push edi
jne 0x401d39
mov edi, 0x208
push edi
lea eax, [ebp - 0x41a]
push ebx
push eax
mov word [ebp - 0x41c], bx
call sub.msvcrt.dll_memset
push edi
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call sub.msvcrt.dll_memset
and esi, 0xffffff
push esi
push str.f__6.6x
lea eax, [ebp - 0x41c]
push 0x14
push eax
call sub.msvcrt.dll__snwprintf
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcslen
mov esi, eax
lea eax, [ebp - 0x41c]
push eax
call sub.msvcrt.dll_wcslen
lea eax, [esi + eax + 1]
add esp, 0x30
cmp eax, 0x104
jae 0x401d07
lea eax, [ebp - 0x41c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
call fcn.004046c1
pop ecx
pop ecx
jmp 0x401d0e
mov word [ebp - 0x210], bx
lea eax, [ebp - 0x210]
push eax
call fcn.00404446
test eax, eax
pop ecx
je 0x401f21
push ebx
push dword [ebp + 0x18]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
jmp 0x401f21
mov edi, dword [ebp + 0x18]
push 0x208
lea eax, [ebp - 0x626]
push ebx
push eax
mov dword [ebp - 4], ebx
mov word [ebp - 0x628], bx
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp + 0x1c], ebx
je 0x401d8b
push str.gzip
push dword [ebp + 0x1c]
call sub.msvcrt.dll__wcsicmp
test eax, eax
pop ecx
pop ecx
jne 0x401d8b
push 0x4104b8
lea edi, [ebp - 0x628]
mov dword [ebp - 4], 1
call fcn.004043fb
pop ecx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push edi
call fcn.00404089
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 0x1c], eax
je 0x401e4d
push 0xfff
lea eax, [ebp - 0x1627]
push ebx
push eax
mov byte [ebp - 0x1628], bl
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0x14]
mov edi, eax
add esp, 0xc
shr edi, 0xc
mov dword [ebp + 0xc], ebx
je 0x401e0f
mov esi, 0x1000
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
shl eax, 0xc
push eax
push esi
lea eax, [ebp - 0x1628]
push eax
push dword [ebp + 8]
call fcn.00401f2a
push esi
lea eax, [ebp - 0x1628]
push eax
push dword [ebp + 0x1c]
call fcn.00404cb2
add esp, 0xc
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], edi
jb 0x401dd4
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
and eax, 0xfff
mov dword [ebp + 0x10], eax
jbe 0x401e44
shl edi, 0xc
push edi
push eax
lea eax, [ebp - 0x1628]
push eax
push dword [ebp + 8]
mov edx, esi
call fcn.00401f2a
push dword [ebp + 0x10]
lea eax, [ebp - 0x1628]
push eax
push dword [ebp + 0x1c]
call fcn.00404cb2
add esp, 0xc
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 4], ebx
je 0x401f21
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov esi, 0x104
push esi
lea eax, [ebp - 0x317]
push ebx
push eax
mov byte [ebp - 0x318], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x10b]
push ebx
push eax
mov byte [ebp - 0x10c], bl
call sub.msvcrt.dll_memset
mov edi, dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
add esp, 0x18
push ebx
push ebx
push esi
lea eax, [ebp - 0x318]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x628]
push eax
push ebx
push ebx
call edi
push ebx
push ebx
push esi
lea eax, [ebp - 0x10c]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x18]
push ebx
push ebx
call edi
lea eax, [ebp - 0x318]
push eax
call fcn.0040b4f5
mov esi, eax
cmp esi, ebx
pop ecx
je 0x401f21
lea eax, [ebp - 0x10c]
push 0x4104c8
push eax
call sub.msvcrt.dll_fopen
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x401f1a
jmp 0x401f02
je 0x401f13
push edi
push eax
lea eax, [ebp - 0x5628]
push 1
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
lea eax, [ebp - 0x5628]
mov ecx, esi
call fcn.0040b73e
cmp eax, ebx
jge 0x401eed
push edi
call sub.msvcrt.dll_fclose
pop ecx
mov eax, esi
call fcn.0040b98a
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x18