Function at 0x402692
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa88
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp esi, ebx
je 0x40294c
cmp word [esi], bx
je 0x40294c
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40294c
cmp word [eax], bx
je 0x40294c
push edi
mov edi, 0x104
push edi
push eax
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_wcslen
lea eax, [ebp + eax*2 - 0x216]
add esp, 0x10
cmp word [eax], 0x5c
jne 0x402708
xor ecx, ecx
mov word [eax], cx
push edi
lea eax, [ebp - 0x670]
push esi
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 0x468], ax
lea eax, [ebp - 0x670]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
cmp eax, ebx
je 0x402750
cmp word [ebp + eax*2 - 0x672], 0x5c
je 0x402750
lea eax, [ebp - 0x670]
push 0x40300c
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0xa88]
push eax
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
mov eax, 0x40301c
cmp ecx, ebx
je 0x402776
cmp word [ecx], bx
jne 0x402779
mov dword [ebp + 0x10], eax
push eax
lea eax, [ebp - 0x670]
push eax
call sub.MSVCRT.dll_wcscat
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
pop ecx
pop ecx
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x214]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
cmp eax, 0xffffffff
je 0x4027bc
test byte [ebp - 0x464], 0x10
je 0x4027b9
mov dword [ebp - 8], 1
push eax
call ebx
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x670]
push eax
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x40294b
cmp dword [ebp - 8], 0
jne 0x402808
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_wcslen
cmp word [ebp + eax*2 - 0x216], 0x3a
pop ecx
je 0x402808
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x402948
mov dword [ebp - 4], 1
lea eax, [ebp - 0xa88]
push eax
lea eax, [ebp - 0x87c]
push eax
call sub.MSVCRT.dll_wcscpy
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x87c]
push eax
call sub.MSVCRT.dll_wcscat
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x20
test eax, eax
je 0x40287c
cmp word [ebp + eax*2 - 0x216], 0x5c
je 0x40287c
lea eax, [ebp - 0x214]
push 0x40300c
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_wcscat
test byte [ebp - 0x464], 0x10
pop ecx
pop ecx
je 0x4028ed
test byte [ebp + 0x14], 1
je 0x402932
lea eax, [ebp - 0x438]
push 0x403014
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x402932
lea eax, [ebp - 0x438]
push 0x403010
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x402932
push dword [ebp + 0x14]
lea eax, [ebp - 0x214]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x87c]
push eax
call fcn.00402692
jmp 0x40292f
push dword [ebp + 0x10]
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.DLL_PathMatchSpecW]
test eax, eax
je 0x402932
test byte [ebp + 0x14], 2
je 0x402919
push pe_nt_image_headers32
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x87c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
and dword [ebp - 4], eax
lea eax, [ebp - 0x464]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40280f
push esi
call ebx
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0x10