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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c6a9
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x600f84]
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.0040d050
movzx eax, al
test eax, eax
jne 0x4062c0
lea ecx, [ebp + 0xc]
call fcn.0040d050
movzx ecx, al
test ecx, ecx
je 0x4062e1
mov byte [ebp - 0x2e1], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004042a0
mov al, byte [ebp - 0x2e1]
jmp 0x4065a4
lea edx, [ebp + 0xc]
push edx
call fcn.00404c20
add esp, 4
movzx eax, al
test eax, eax
jne 0x406315
mov byte [ebp - 0x2e2], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004042a0
mov al, byte [ebp - 0x2e2]
jmp 0x4065a4
mov dword [ebp - 0x28c], 0
push 0x24c
push 0
lea ecx, [ebp - 0x288]
push ecx
call fcn.00557f00
add esp, 0xc
push 0x5dd3ac
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00402e80
add esp, 0xc
mov dword [ebp - 0x2f0], eax
lea ecx, [ebp - 0x28c]
push ecx
mov ecx, dword [ebp - 0x2f0]
call fcn.004041f0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x2c]
call fcn.004042a0
cmp dword [ebp - 0x34], 0xffffffff
jne 0x40639b
mov byte [ebp - 0x2e3], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004042a0
mov al, byte [ebp - 0x2e3]
jmp 0x4065a4
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 0x40657c
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x2c4]
call fcn.00404af0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c4]
push ecx
push 0x5dd3b4
call fcn.00406fa0
add esp, 8
movzx edx, al
test edx, edx
jne 0x406410
lea eax, [ebp - 0x2c4]
push eax
push 0x5dd3b8
call fcn.00406fa0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40643d
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.004042a0
jmp 0x4063b8
push 0x5dd3c0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2a8]
push eax
call fcn.00402e80
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c4]
push ecx
lea ecx, [ebp - 0x2a8]
call fcn.004026e0
push 0x5dd3c4
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x2e0]
push eax
call fcn.00402e80
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 0x4064bb
push 0x80
lea ecx, [ebp - 0x2a8]
call fcn.004041f0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x28c]
and eax, 0x10
je 0x406509
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2e8], esp
lea edx, [ebp - 0x2e0]
push edx
call fcn.00404210
mov dword [ebp - 0x2f4], eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.00406270
add esp, 0x20
mov byte [ebp - 0x2f5], al
movzx ecx, byte [ebp - 0x2f5]
test ecx, ecx
jne 0x406507
mov byte [ebp - 0x2d], 0
jmp 0x406531
push 0
lea ecx, [ebp - 0x2e0]
call fcn.004041f0
push eax
lea ecx, [ebp - 0x2a8]
call fcn.004041f0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x406531
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.004042a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a8]
call fcn.004042a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c4]
call fcn.004042a0
jmp 0x4063b8
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.004042a0
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.005521f1
mov esp, ebp
pop ebp
ret