Function at 0x409f81
Capabilities:
Check if file exists
Copy file
Create directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get disk information
Get disk size
Get file attributes
Set file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10c8
call fcn.0040be80
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.0040c8aa
add esp, 8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x410]
push eax
call fcn.0040c8aa
add esp, 8
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409fe4
push 0
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 3
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a3af
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x61c]
push eax
call fcn.0040c8aa
add esp, 8
push 0x4237d4
lea ecx, [ebp - 0x61c]
push ecx
call fcn.0040c880
add esp, 8
lea edx, [ebp - 0x86c]
push edx
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0xffffffff
jne 0x40a04e
xor eax, eax
jmp 0x40a3b4
mov ecx, 1
test ecx, ecx
je 0x40a3a2
lea edx, [ebp - 0x410]
push edx
lea eax, [ebp - 0xa74]
push eax
call fcn.0040c8aa
add esp, 8
push str._
lea ecx, [ebp - 0xa74]
push ecx
call fcn.0040c880
add esp, 8
lea edx, [ebp - 0x840]
push edx
lea eax, [ebp - 0xa74]
push eax
call fcn.0040c880
add esp, 8
mov ecx, dword [ebp - 0x86c]
and ecx, 0x10
test ecx, ecx
je 0x40a139
mov edx, dword [ebp - 0x840]
and edx, 0xffff
cmp edx, 0x2e
je 0x40a134
lea eax, [ebp - 0xa74]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40a0de
push 0
lea ecx, [ebp - 0xa74]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0xc7c]
push eax
call fcn.0040c8aa
add esp, 8
push 0x4237e4
lea ecx, [ebp - 0xc7c]
push ecx
call fcn.0040c880
add esp, 8
lea edx, [ebp - 0x840]
push edx
lea eax, [ebp - 0xc7c]
push eax
call fcn.0040c880
add esp, 8
lea ecx, [ebp - 0xc7c]
push ecx
lea edx, [ebp - 0xa74]
push edx
call fcn.00409f81
add esp, 8
jmp 0x40a383
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0xe94]
push ecx
call fcn.0040c8aa
add esp, 8
push 0x4237e8
lea edx, [ebp - 0xe94]
push edx
call fcn.0040c880
add esp, 8
lea eax, [ebp - 0x840]
push eax
lea ecx, [ebp - 0xe94]
push ecx
call fcn.0040c880
add esp, 8
mov edx, dword [ebp - 0x858]
mov dword [ebp - 0xc8c], edx
mov eax, dword [ebp - 0x854]
mov dword [ebp - 0xc88], eax
cmp dword [0x427cc4], 0
je 0x40a1bf
mov ecx, dword [0x427cd0]
add ecx, dword [ebp - 0x84c]
mov dword [0x427cd0], ecx
cmp dword [0x427cd0], 0x1400000
jb 0x40a1bf
xor eax, eax
jmp 0x40a3b4
cmp dword [0x427cc8], 0
je 0x40a2ed
lea edx, [ebp - 0xeac]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0xe9c]
push eax
lea ecx, [ebp - 0xeac]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov edx, dword [ebp - 0xe98]
sub edx, dword [ebp - 0xc88]
mov dword [ebp - 0xc80], edx
mov eax, dword [ebp - 0xc80]
xor edx, edx
mov ecx, 0xc9
div ecx
mov dword [ebp - 0xeb0], eax
cmp dword [ebp - 0xeb0], 0x1e
jg 0x40a2d5
lea edx, [ebp - 0x410]
push edx
lea eax, [ebp - 0x10c0]
push eax
call fcn.0040c8aa
add esp, 8
push 0x4237ec
lea ecx, [ebp - 0x10c0]
push ecx
call fcn.0040c880
add esp, 8
lea edx, [ebp - 0x840]
push edx
lea eax, [ebp - 0x10c0]
push eax
call fcn.0040c880
add esp, 8
push 2
lea ecx, [ebp - 0xe94]
push ecx
lea edx, [ebp - 0xeb8]
push edx
call fcn.0040c39a
add esp, 0xc
lea eax, [ebp - 0xeb8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x40a2bf
mov dword [ebp - 0x10c4], 0
lea ecx, [ebp - 0x10c4]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0xeb8]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
cmp dword [ebp - 0x10c4], 0
ja 0x40a2bf
xor eax, eax
jmp 0x40a3b4
push 0
lea eax, [ebp - 0x10c0]
push eax
lea ecx, [ebp - 0xe94]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp - 0xeb0], 0x1f
jl 0x40a2eb
lea edx, [ebp - 0xe94]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40a35b
mov eax, dword [0x4220a4]
push eax
lea ecx, [ebp - 0xa74]
push ecx
lea edx, [ebp - 0xe94]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0xa74]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10c8], eax
lea ecx, [ebp - 0xc8c]
push ecx
lea edx, [ebp - 0xc8c]
push edx
lea eax, [ebp - 0xc8c]
push eax
mov ecx, dword [ebp - 0x10c8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov edx, dword [ebp - 0x10c8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x427cc0], 0
je 0x40a383
push 0x80
lea eax, [ebp - 0xe94]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0xe94]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x86c]
push edx
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a39d
jmp 0x40a3a2
jmp 0x40a04e
mov ecx, dword [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov esp, ebp
pop ebp
ret