Function at 0x408e00
Capabilities:
Copy file
Delete file
Get file size
Move file
Set file attributes
Write file on windows

Disassembly:
sub esp, 0xc60
push ebx
push ebp
push esi
push edi
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x470]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esp + 0x670]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x230]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xc78]
lea ecx, [esp + 0x470]
push eax
push ecx
call esi
mov edx, dword [esp + 0xc7c]
lea eax, [esp + 0x30]
push edx
push str._s.cdy
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [esp + 0xc8c]
add esp, 0xc
lea ecx, [esp + 0x230]
push ebx
push ecx
call esi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x870]
lea edx, [esp + 0x230]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x330]
lea ecx, [esp + 0x470]
xor ebp, ebp
push eax
push ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4091ac
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x474]
push eax
push ecx
call fcn.004091c0
add esp, 0xc
cmp eax, 1
jne 0x4091ac
lea edx, [esp + 0x30]
lea eax, [esp + 0x670]
push edx
push eax
call esi
lea ecx, [esp + 0x670]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dl, byte [esp + eax + 0x670]
lea eax, [esp + eax + 0x670]
dec eax
cmp dl, 0x5c
je 0x408f31
mov cl, byte [eax]
dec eax
cmp cl, 0x5c
jne 0x408f29
lea edx, [esp + 0x670]
mov byte [eax + 1], 0
push edx
call fcn.00409250
add esp, 4
lea eax, [esp + 0x30]
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4091ac
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x470]
push ecx
push 0x416e2c
push edx
call fcn.004094b0
add esp, 0xc
mov dword [esp + 0x10], eax
lea eax, [esp + 0x230]
push ebx
push eax
call esi
push 0
lea ecx, [esp + 0x234]
push 0
push 0
mov dword [esp + 0x28], ecx
call fcn.004092c0
mov esi, eax
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, 0x400
jb 0x408fbe
mov eax, 0x400
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push eax
lea eax, [esp + 0x878]
push eax
push ecx
call fcn.00409b10
add esp, 0x10
test eax, eax
jle 0x40904d
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x40904d
lea edx, [esp + 0x870]
push eax
push edx
push esi
add ebp, eax
mov dword [esp + 0x24], eax
call fcn.004092c0
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov esi, eax
lea eax, [esp + 0x18]
push 0
push eax
lea edx, [esp + 0x878]
push ecx
push edx
push edi
call ebx
mov eax, dword [esp + 0x14]
sub eax, ebp
cmp eax, 0x400
jb 0x40902a
mov eax, 0x400
jmp 0x40902e
test eax, eax
jbe 0x40904d
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x870]
push ecx
push eax
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.00409b10
add esp, 0x10
test eax, eax
jg 0x408fe5
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00409f80
add esp, 4
lea edx, [esp + 0x344]
lea eax, [esp + 0x33c]
lea ecx, [esp + 0x334]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0xc84]
push edi
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x330]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x30]
push eax
push ecx
call edi
cmp dword [esp + 0x2c], esi
jne 0x409195
cmp dword [esp + 0x14], ebp
jne 0x409195
mov ebx, dword [esp + 0xc7c]
push 0x80
push ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call esi
mov ebp, dword [sym.imp.MSVCRT.dll_rename]
lea edx, [esp + 0x30]
push ebx
push edx
call ebp
add esp, 8
test eax, eax
je 0x409161
lea eax, [esp + 0x30]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x409161
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x30]
push ebx
push ecx
call ebp
add esp, 8
test eax, eax
je 0x409161
lea edx, [esp + 0x30]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x409161
push eax
lea eax, [esp + 0x34]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
push 0x80
jne 0x409153
lea ecx, [esp + 0x34]
push ecx
call edi
lea edx, [esp + 0x30]
push edx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc60
ret
lea eax, [esp + 0x34]
push eax
call edi
lea ecx, [esp + 0x30]
push ecx
call esi
mov eax, dword [esp + 0xc74]
test eax, eax
je 0x409185
lea edx, [esp + 0x470]
push 0x80
push edx
call edi
lea eax, [esp + 0x470]
push eax
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc60
ret
lea ecx, [esp + 0x30]
push 0x80
push ecx
call edi
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc60
ret