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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14b4
call fcn.0040be80
push 0x104
push 0
lea eax, [ebp - 0x86c]
push eax
call fcn.0040be20
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
lea edx, [ebp - 0x86c]
push edx
call fcn.0040bd10
add esp, 8
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.0040be20
add esp, 0xc
push 2
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.0040d350
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x310]
push eax
call fcn.0040be20
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x310]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x108]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x104
push 0
lea eax, [ebp - 0xa74]
push eax
call fcn.0040be20
add esp, 0xc
push 0x104
lea ecx, [ebp - 0xa74]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x86c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x427464
lea eax, [ebp - 0xc7c]
push eax
call fcn.0040c8aa
add esp, 8
push 0x423460
lea ecx, [ebp - 0xc7c]
push ecx
call fcn.0040c880
add esp, 8
lea edx, [ebp - 0xc7c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40896c
push 0
lea eax, [ebp - 0xc7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 7
lea ecx, [ebp - 0xc7c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x310]
push edx
lea eax, [ebp - 0x518]
push eax
call fcn.0040c8aa
add esp, 8
push 0x42347c
lea ecx, [ebp - 0x518]
push ecx
call fcn.0040c880
add esp, 8
lea edx, [ebp - 0x768]
push edx
lea eax, [ebp - 0x518]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4089c9
xor eax, eax
jmp 0x408c37
mov ecx, 1
test ecx, ecx
je 0x408c28
lea edx, [ebp - 0xc7c]
push edx
lea eax, [ebp - 0xe84]
push eax
call fcn.0040c8aa
add esp, 8
push 0x423488
lea ecx, [ebp - 0xe84]
push ecx
call fcn.0040c880
add esp, 8
lea edx, [ebp - 0x73c]
push edx
lea eax, [ebp - 0xe84]
push eax
call fcn.0040c880
add esp, 8
mov ecx, dword [ebp - 0x768]
and ecx, 0x10
test ecx, ecx
je 0x408a28
jmp 0x408c0c
push 0x104
push 0
lea edx, [ebp - 0x12a0]
push edx
call fcn.0040be20
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x1094]
push eax
call fcn.0040be20
add esp, 0xc
lea ecx, [ebp - 0x73c]
push ecx
lea edx, [ebp - 0x1094]
push edx
call fcn.0040c8aa
add esp, 8
mov dword [ebp - 0xe8c], 0
cmp dword [ebp - 0xe8c], 3
jge 0x408abd
lea eax, [ebp - 0x1094]
push eax
call fcn.0040be00
add esp, 4
mov ecx, dword [ebp - 0xe8c]
lea edx, [eax + ecx - 3]
mov eax, dword [ebp - 0xe8c]
mov cx, word [ebp + edx*2 - 0x1094]
mov word [ebp + eax*2 - 0x12a0], cx
mov edx, dword [ebp - 0xe8c]
add edx, 1
mov dword [ebp - 0xe8c], edx
jmp 0x408a74
mov dword [ebp - 0x1098], 0
lea eax, [ebp - 0xa74]
push eax
call fcn.0040be00
add esp, 4
cmp dword [ebp - 0x1098], eax
jae 0x408b14
mov ecx, dword [ebp - 0x1098]
xor edx, edx
mov dx, word [ebp + ecx*2 - 0xa74]
cmp edx, 0x5c
jne 0x408b03
mov eax, dword [ebp - 0x1098]
mov word [ebp + eax*2 - 0xa74], 0x2d
mov ecx, dword [ebp - 0x1098]
add ecx, 1
mov dword [ebp - 0x1098], ecx
jmp 0x408ac7
lea edx, [ebp - 0xa74]
push edx
call fcn.0040cb39
add esp, 4
lea eax, [ebp - 0x12a0]
push eax
call fcn.0040cb39
add esp, 4
lea ecx, [ebp - 0x12a0]
push ecx
lea edx, [ebp - 0xa74]
push edx
call fcn.0040b090
add esp, 8
mov dword [ebp - 0xe88], eax
cmp dword [ebp - 0xe88], 0
je 0x408c0c
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x14b0]
push ecx
call fcn.0040c8aa
add esp, 8
push 0x42348c
lea edx, [ebp - 0x14b0]
push edx
call fcn.0040c880
add esp, 8
lea eax, [ebp - 0x73c]
push eax
lea ecx, [ebp - 0x14b0]
push ecx
call fcn.0040c880
add esp, 8
push 2
lea edx, [ebp - 0x14b0]
push edx
lea eax, [ebp - 0x12a8]
push eax
call fcn.0040c39a
add esp, 0xc
lea ecx, [ebp - 0x12a8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x408bf6
mov dword [ebp - 0x14b4], 0
lea edx, [ebp - 0x14b4]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x12a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
cmp dword [ebp - 0x14b4], 0
ja 0x408bf6
xor eax, eax
jmp 0x408c37
push 0
lea ecx, [ebp - 0xe84]
push ecx
lea edx, [ebp - 0x14b0]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x768]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x408c23
jmp 0x408c28
jmp 0x4089c9
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov esp, ebp
pop ebp
ret