Function at 0x408470
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc2c9
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x5246f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.00407180
movzx eax, al
test eax, eax
jne 0x4084c0
lea ecx, [ebp + 0xc]
call fcn.00407180
movzx ecx, al
test ecx, ecx
je 0x4084e1
mov byte [ebp - 0x2e1], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00405540
mov al, byte [ebp - 0x2e1]
jmp 0x4087a4
lea edx, [ebp + 0xc]
push edx
call fcn.00407db0
add esp, 4
movzx eax, al
test eax, eax
jne 0x408515
mov byte [ebp - 0x2e2], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00405540
mov al, byte [ebp - 0x2e2]
jmp 0x4087a4
mov dword [ebp - 0x28c], 0
push 0x24c
push 0
lea ecx, [ebp - 0x288]
push ecx
call fcn.00463ac0
add esp, 0xc
push 0x50fe20
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00403800
add esp, 0xc
mov dword [ebp - 0x2f0], eax
lea ecx, [ebp - 0x28c]
push ecx
mov ecx, dword [ebp - 0x2f0]
call fcn.00404cf0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x2c]
call fcn.00405540
cmp dword [ebp - 0x34], 0xffffffff
jne 0x40859b
mov byte [ebp - 0x2e3], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00405540
mov al, byte [ebp - 0x2e3]
jmp 0x4087a4
mov byte [ebp - 0x2d], 1
lea edx, [ebp - 0x28c]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne cl
mov byte [ebp - 0x35], cl
movzx edx, byte [ebp - 0x35]
test edx, edx
je 0x40877c
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x2c4]
call fcn.00405d80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c4]
push ecx
push 0x50fe28
call fcn.00408cb0
add esp, 8
movzx edx, al
test edx, edx
jne 0x408610
lea eax, [ebp - 0x2c4]
push eax
push 0x50fe2c
call fcn.00408cb0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40863d
lea edx, [ebp - 0x28c]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne cl
mov byte [ebp - 0x35], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c4]
call fcn.00405540
jmp 0x4085b8
push 0x50fe34
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2a8]
push eax
call fcn.00403800
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c4]
push ecx
lea ecx, [ebp - 0x2a8]
call fcn.00403bc0
push 0x50fe38
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x2e0]
push eax
call fcn.00403800
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c4]
push ecx
lea ecx, [ebp - 0x2e0]
call fcn.00403bc0
mov edx, dword [ebp - 0x28c]
and edx, 1
je 0x4086bb
push 0x80
lea ecx, [ebp - 0x2a8]
call fcn.00404cf0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x28c]
and eax, 0x10
je 0x408709
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2e8], esp
lea edx, [ebp - 0x2e0]
push edx
call fcn.00404c60
mov dword [ebp - 0x2f4], eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.00408470
add esp, 0x20
mov byte [ebp - 0x2f5], al
movzx ecx, byte [ebp - 0x2f5]
test ecx, ecx
jne 0x408707
mov byte [ebp - 0x2d], 0
jmp 0x408731
push 0
lea ecx, [ebp - 0x2e0]
call fcn.00404cf0
push eax
lea ecx, [ebp - 0x2a8]
call fcn.00404cf0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x408731
mov byte [ebp - 0x2d], 0
lea edx, [ebp - 0x28c]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne cl
mov byte [ebp - 0x35], cl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2e0]
call fcn.00405540
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a8]
call fcn.00405540
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c4]
call fcn.00405540
jmp 0x4085b8
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [ebp - 0x2d]
mov byte [ebp - 0x2e9], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00405540
mov al, byte [ebp - 0x2e9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045f522
mov esp, ebp
pop ebp
ret