Function at 0x406fa0
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d57c
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x58e188]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, 1
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x278], edi
call esi
test eax, eax
je 0x40728e
mov ecx, dword [ebp + 0xc]
push ecx
call esi
test eax, eax
je 0x40728e
call fcn.0041b722
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40701b
push 0x80004005
call fcn.00401040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 2
call fcn.0041b722
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40704b
push 0x80004005
call fcn.00401040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x268], eax
push 0x53ec30
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x270]
push edx
mov byte [ebp - 4], 3
call fcn.00404620
add esp, 0xc
mov ecx, dword [ebp - 0x270]
lea eax, [ebp - 0x264]
push eax
push ecx
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x274], esi
cmp esi, 0xffffffff
je 0x4071c4
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, edi
mov edi, dword [ebp + 0x10]
lea ecx, [ecx]
test eax, eax
je 0x4071bd
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x238]
push edx
push eax
lea ecx, [ebp - 0x26c]
push 0x53ec24
push ecx
call fcn.00402570
mov eax, dword [ebp + 0xc]
add esp, 0x10
lea edx, [ebp - 0x238]
push edx
push eax
lea ecx, [ebp - 0x268]
push 0x53ec24
push ecx
call fcn.00402570
add esp, 0x10
test byte [ebp - 0x264], 0x10
je 0x407186
cmp word [ebp - 0x238], 0x2e
je 0x40719b
mov edx, dword [ebp - 0x268]
push 0
push edx
call ebx
mov eax, dword [ebp - 0x268]
push edi
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x280], esp
mov esi, esp
push eax
call fcn.00402000
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov eax, dword [ebp - 0x26c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x27c], esp
mov esi, esp
push eax
mov byte [ebp - 4], 6
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], 5
call fcn.00406fa0
mov esi, dword [ebp - 0x274]
add esp, 0xc
lea edx, [ebp - 0x264]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x4070b0
mov eax, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x26c]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea edx, [ebp - 0x264]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x4070b0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x270]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4071f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407217
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40723d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407260
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407286
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x278]
jmp 0x4072d9
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4072b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4072d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00514c0e
mov esp, ebp
pop ebp
ret