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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9429
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x5176f0]
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.0040d680
movzx eax, al
test eax, eax
jne 0x4063c0
lea ecx, [ebp + 0xc]
call fcn.0040d680
movzx ecx, al
test ecx, ecx
je 0x4063e1
mov byte [ebp - 0x2e1], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404250
mov al, byte [ebp - 0x2e1]
jmp 0x4066a4
lea edx, [ebp + 0xc]
push edx
call fcn.00404bd0
add esp, 4
movzx eax, al
test eax, eax
jne 0x406415
mov byte [ebp - 0x2e2], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404250
mov al, byte [ebp - 0x2e2]
jmp 0x4066a4
mov dword [ebp - 0x28c], 0
push 0x24c
push 0
lea ecx, [ebp - 0x288]
push ecx
call fcn.004b28e0
add esp, 0xc
push 0x4fd11c
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00402e60
add esp, 0xc
mov dword [ebp - 0x2f0], eax
lea ecx, [ebp - 0x28c]
push ecx
mov ecx, dword [ebp - 0x2f0]
call fcn.004041a0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x2c]
call fcn.00404250
cmp dword [ebp - 0x34], 0xffffffff
jne 0x40649b
mov byte [ebp - 0x2e3], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404250
mov al, byte [ebp - 0x2e3]
jmp 0x4066a4
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 0x40667c
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x2c4]
call fcn.00404aa0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c4]
push ecx
push 0x4fd124
call fcn.00407500
add esp, 8
movzx edx, al
test edx, edx
jne 0x406510
lea eax, [ebp - 0x2c4]
push eax
push 0x4fd128
call fcn.00407500
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40653d
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.00404250
jmp 0x4064b8
push 0x4fd130
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2a8]
push eax
call fcn.00402e60
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c4]
push ecx
lea ecx, [ebp - 0x2a8]
call fcn.004026e0
push 0x4fd134
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x2e0]
push eax
call fcn.00402e60
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c4]
push ecx
lea ecx, [ebp - 0x2e0]
call fcn.004026e0
mov edx, dword [ebp - 0x28c]
and edx, 1
je 0x4065bb
push 0x80
lea ecx, [ebp - 0x2a8]
call fcn.004041a0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x28c]
and eax, 0x10
je 0x406609
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2e8], esp
lea edx, [ebp - 0x2e0]
push edx
call fcn.004041c0
mov dword [ebp - 0x2f4], eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.00406370
add esp, 0x20
mov byte [ebp - 0x2f5], al
movzx ecx, byte [ebp - 0x2f5]
test ecx, ecx
jne 0x406607
mov byte [ebp - 0x2d], 0
jmp 0x406631
push 0
lea ecx, [ebp - 0x2e0]
call fcn.004041a0
push eax
lea ecx, [ebp - 0x2a8]
call fcn.004041a0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x406631
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.00404250
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a8]
call fcn.00404250
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c4]
call fcn.00404250
jmp 0x4064b8
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.00404250
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.004ae123
mov esp, ebp
pop ebp
ret