Function at 0x40c730
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d0b7
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x485370]
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 esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x40cadd
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40cadd
lea eax, [ebp - 0x268]
push eax
mov ecx, esi
call fcn.00405070
lea ecx, [ebp - 0x268]
push ecx
mov eax, 1
lea ecx, [ebp - 0x270]
mov dword [ebp - 4], 0
call fcn.0040cdc0
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
cmp eax, 1
jne 0x40c7c9
test eax, eax
jns 0x40c7bf
push 0x80070057
call fcn.004051c0
cmp word [ecx], 0x5c
jne 0x40c7c9
xor bl, bl
jmp 0x40c7cb
mov bl, 1
mov eax, dword [ebp - 0x270]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c7ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40c801
mov edx, 0x47a348
lea eax, [ebp - 0x268]
call fcn.00407000
lea ecx, [ebp - 0x26c]
push ecx
mov ecx, edi
call fcn.00405070
lea edx, [ebp - 0x26c]
push edx
mov eax, 1
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 1
call fcn.0040cdc0
call fcn.0040ce40
mov bl, al
mov eax, dword [ebp - 0x270]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c853
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40c867
mov edx, 0x47a348
lea eax, [ebp - 0x26c]
call fcn.00407000
mov esi, dword [ebp - 0x26c]
mov eax, dword [ebp - 0x268]
mov ecx, esi
mov ebx, 4
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40c8a4
test dx, dx
je 0x40c8a0
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40c8a4
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x40c880
xor eax, eax
jmp 0x40c8a9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40c8ff
mov byte [ebp - 4], al
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c8cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c8f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40cadf
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40c920
mov ecx, dword [ebp - 0x26c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40cac7
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.00404b40
add eax, 0x10
mov dword [ebp - 0x270], eax
mov edx, 0x47b2e8
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 2
call fcn.00407000
mov eax, dword [ebp - 0x270]
lea edx, [ebp - 0x264]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c997
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x270]
call fcn.004051a0
lea ecx, [ebp - 0x26c]
call fcn.004051a0
lea ecx, [ebp - 0x268]
call fcn.004051a0
mov eax, 1
jmp 0x40cadf
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ecx]
mov ecx, 0x47b2f0
lea eax, [ebp - 0x238]
jmp 0x40c9b0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40c9d4
test dx, dx
je 0x40c9d0
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40c9d4
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x40c9b0
xor eax, eax
jmp 0x40c9d9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40cb1e
mov ecx, 0x47b2f4
lea eax, [ebp - 0x238]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40ca14
test dx, dx
je 0x40ca10
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40ca14
add eax, ebx
add ecx, ebx
test dx, dx
jne 0x40c9f0
xor eax, eax
jmp 0x40ca19
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40cb1e
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.00404b40
add eax, 0x10
mov dword [ebp - 0x278], eax
lea edx, [ebp - 0x238]
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 3
call fcn.00407000
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
call fcn.00404b40
add eax, 0x10
mov dword [ebp - 0x274], eax
lea edx, [ebp - 0x238]
lea eax, [ebp - 0x274]
mov byte [ebp - 4], bl
call fcn.00407000
test byte [ebp - 0x264], 0x10
mov edx, dword [ebp - 0x274]
mov eax, dword [ebp - 0x278]
je 0x40cafb
mov ecx, dword [ebp + 0x10]
push ecx
push edx
push eax
call fcn.0040c730
add esp, 0xc
test eax, eax
jne 0x40cb04
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x274]
call fcn.004051a0
lea ecx, [ebp - 0x278]
call fcn.004051a0
lea ecx, [ebp - 0x270]
call fcn.004051a0
lea ecx, [ebp - 0x26c]
call fcn.004051a0
lea ecx, [ebp - 0x268]
call fcn.004051a0
xor eax, eax
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.004501c4
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ebp + 0x10]
push ecx
push edx
push eax
call edi
lea ecx, [ebp - 0x274]
call fcn.004051a0
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 2
call fcn.004051a0
lea ecx, [ebp - 0x264]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c9a0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40c96c