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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x421c
call fcn.0041dff0
mov ecx, dword [ebp + 0x1c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
xor eax, eax
mov esi, 0x104
push esi
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x114], al
mov ebx, edi
lea eax, [ebp - 0x113]
shr ebx, 0x1c
push eax
and ebx, 3
mov dword [ebp - 8], ecx
call sub.msvcrt.dll_memset
push str.gzip
push dword [ebp + 0x20]
call sub.msvcrt.dll__mbsicmp
add esp, 0x14
test eax, eax
jne 0x413891
push 0x420738
lea edi, [ebp - 0x114]
mov dword [ebp - 0xc], 1
call fcn.00409df3
mov eax, edi
mov edi, dword [ebp + 0x14]
pop ecx
mov dword [ebp - 8], eax
test ebx, ebx
jne 0x41390d
push esi
lea eax, [ebp - 0x21b]
push ebx
push eax
mov byte [ebp - 0x21c], bl
call sub.msvcrt.dll_memset
push dword [ebp + 0x10]
lea eax, [ebp - 0x21c]
push dword [ebp + 0xc]
push str._s_8.8Xd01
push esi
push eax
call sub.msvcrt.dll__snprintf
mov eax, dword [ebp + 8]
add esp, 0x20
cmp dword [eax + 0x20], 0x13
jb 0x4138de
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x21c]
call fcn.004135cb
lea eax, [ebp - 0x21c]
push eax
call fcn.00409f03
test eax, eax
pop ecx
je 0x413a03
push 0
push dword [ebp - 8]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
mov dword [ebp - 4], eax
jmp 0x413a03
cmp ebx, 3
ja 0x413a03
mov eax, dword [ebp + 8]
mov edx, edi
lea ecx, [ebx + ebx - 2]
mov esi, 0x100
shr edi, 0x18
shl esi, cl
and edi, 3
and edx, 0xffffff
cmp dword [eax + 0x20], 0x13
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x10], esi
mov edi, 0x1000
jb 0x41394b
push ebx
call fcn.00413a85
jmp 0x41394d
mov eax, edi
mov ecx, esi
mov esi, dword [ebp + 8]
imul ecx, edx
add ecx, eax
add esi, 0x14
mov dword [ebp + 0x20], ecx
call fcn.0040b6a8
push dword [ebp - 8]
call fcn.00409a9d
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 0xc], eax
je 0x413a03
cmp dword [ebp + 0x18], 0
jne 0x413987
mov eax, dword [ebp + 0x14]
imul eax, dword [ebp + 0x10]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x18]
shr eax, 0xc
mov dword [ebp - 4], eax
je 0x4139c5
mov ecx, dword [ebp + 0x20]
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
push edi
push dword [esi]
push dword [ebp + 0x14]
push dword [eax + ebx*4]
call fcn.0040a8cd
push edi
push dword [esi]
push dword [ebp + 0xc]
call fcn.0040a8ae
add dword [ebp + 0x14], edi
add esp, 0x1c
dec dword [ebp + 0x10]
jne 0x41399b
mov eax, dword [ebp - 4]
mov edi, dword [ebp + 0x18]
and edi, 0xfff
jbe 0x4139f3
push edi
push dword [esi]
shl eax, 0xc
add eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 8]
push dword [eax + ebx*4]
call fcn.0040a8cd
push edi
push dword [esi]
push dword [ebp + 0xc]
call fcn.0040a8ae
add esp, 0x1c
push dword [ebp + 0xc]
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x413a7b
push dword [ebp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
call ebx
lea eax, [ebp - 0x114]
push eax
call fcn.00419716
mov esi, eax
test esi, esi
pop ecx
je 0x413a72
push 0x41f51c
push dword [ebp + 0x1c]
call sub.msvcrt.dll_fopen
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x413a6b
jmp 0x413a53
je 0x413a64
push edi
push eax
lea eax, [ebp - 0x421c]
push 1
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
lea eax, [ebp - 0x421c]
mov ecx, esi
call fcn.0041995f
test eax, eax
jge 0x413a3e
push edi
call sub.msvcrt.dll_fclose
pop ecx
mov eax, esi
call fcn.00419bab
lea eax, [ebp - 0x114]
push eax
call ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x1c