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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42df69
mov eax, dword fs:[0]
push eax
sub esp, 0x380
mov eax, dword [0x43b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x274], esi
mov eax, ecx
mov dword [ebp - 0x270], eax
mov ecx, dword [ebp + 8]
mov edx, eax
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x278], ecx
push ecx
lea ecx, [ebp - 0x360]
mov dword [ebp - 0x264], edi
call fcn.0040fb80
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x40ce0c
cmp dword [eax + 0x24], ecx
mov ecx, 0x435f88
je 0x40ce0c
mov ecx, dword [eax + 0x1c]
lea eax, [ebp - 0x260]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x26c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x360]
call fcn.004015a0
cmp dword [ebp - 0x26c], 0xffffffff
mov ebx, 1
mov dword [ebp - 0x268], ebx
je 0x40d329
nop word [eax + eax]
cmp word [ebp - 0x234], 0x2e
jne 0x40ce7e
mov ax, word [ebp - 0x232]
test ax, ax
je 0x40d302
cmp ax, 0x2e
jne 0x40ce7e
cmp word [ebp - 0x230], 0
je 0x40d302
test byte [ebp - 0x260], 0x10
lea eax, [ebp - 0x234]
push eax
jne 0x40d1be
mov edx, dword [ebp - 0x270]
lea ecx, [ebp - 0x2b0]
call fcn.0040fb80
mov dword [ebp - 4], 1
lea eax, [ebp - 0x234]
push eax
mov edx, esi
lea ecx, [ebp - 0x2dc]
call fcn.0040fb80
add esp, 8
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x2d0]
test esi, esi
jne 0x40cee2
cmp dword [ebp - 0x2b8], 0
mov esi, 0x435f88
cmovne esi, dword [ebp - 0x2c0]
mov edi, dword [ebp - 0x2a4]
test edi, edi
je 0x40cef0
mov ebx, edi
jmp 0x40ceff
cmp dword [ebp - 0x28c], 0
je 0x40cf52
mov ebx, dword [ebp - 0x294]
test ebx, ebx
je 0x40cf52
cmp word [ebx], 0
je 0x40cf52
test esi, esi
je 0x40cf52
cmp word [esi], 0
je 0x40cf52
push esi
push ebx
call fcn.00416f46
add esp, 8
test eax, eax
jne 0x40cf3a
mov ecx, ebx
call fcn.0040cca0
test eax, eax
jne 0x40d099
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40cf4c
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40d099
mov edi, dword [ebp - 0x2a4]
mov edx, dword [ebp - 0x264]
test edx, edx
je 0x40d08f
test edi, edi
jne 0x40cf7d
cmp dword [ebp - 0x28c], edi
jne 0x40cf73
mov edi, 0x435f88
jmp 0x40cf7d
mov edi, dword [ebp - 0x294]
test edi, edi
je 0x40cfc0
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40cf82
sub esi, ecx
sar esi, 1
test esi, esi
jle 0x40cfc0
mov edx, dword [edx]
add esi, esi
mov ecx, dword [ebp - 0x264]
lea eax, [esi + 2]
push eax
call dword [edx]
push esi
mov ebx, eax
push edi
push ebx
call fcn.00413470
mov edx, dword [ebp - 0x264]
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
jmp 0x40cfc2
xor ebx, ebx
mov eax, dword [edx + 0x14]
lea edi, [edx + 4]
mov esi, dword [edi + 0x14]
sub eax, esi
cmp eax, 4
jl 0x40cfde
mov eax, dword [edi + 0xc]
mov dword [esi + eax], ebx
add dword [edi + 0x14], 4
jmp 0x40cff2
lea eax, [esi + 4]
mov ecx, edi
push eax
call fcn.0040e470
mov edx, dword [ebp - 0x264]
mov dword [eax + esi], ebx
mov ebx, dword [ebp - 0x2d0]
test ebx, ebx
jne 0x40d015
cmp dword [ebp - 0x2b8], ebx
jne 0x40d00b
mov ebx, 0x435f88
jmp 0x40d015
mov ebx, dword [ebp - 0x2c0]
test ebx, ebx
je 0x40d05e
mov esi, ebx
lea ecx, [esi + 2]
nop word [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40d020
sub esi, ecx
sar esi, 1
test esi, esi
jle 0x40d05e
mov edx, dword [edx]
add esi, esi
mov ecx, dword [ebp - 0x264]
lea eax, [esi + 2]
push eax
call dword [edx]
push esi
push ebx
mov ebx, eax
mov dword [ebp - 0x268], eax
push ebx
call fcn.00413470
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
jmp 0x40d060
xor ebx, ebx
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 0x14]
sub eax, esi
cmp eax, 4
jl 0x40d081
mov eax, dword [edi + 0xc]
mov dword [esi + eax], ebx
add dword [edi + 0x14], 4
xor ebx, ebx
mov dword [ebp - 0x268], ebx
jmp 0x40d09f
lea eax, [esi + 4]
mov ecx, edi
push eax
call fcn.0040e470
mov dword [eax + esi], ebx
xor ebx, ebx
mov dword [ebp - 0x268], ebx
jmp 0x40d09f
mov ebx, dword [ebp - 0x268]
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2cc]
mov dword [ebp - 0x27c], eax
mov dword [ebp - method.CWString.virtual_0], vtable.CVolMem.0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2c0]
test ecx, ecx
je 0x40d0ec
mov eax, dword [ebp - 0x2cc]
push ecx
mov eax, dword [eax + 0xc]
cmp eax, method.CWString.virtual_12
jne 0x40d0e4
mov ecx, 0x43cc18
call fcn.0040ede0
jmp 0x40d0ec
lea ecx, [ebp - 0x2cc]
call eax
mov dword [ebp - 0x2c0], 0
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 0x2bc], 0
mov byte [ebp - 4], 3
mov dword [ebp - method.CWString.virtual_0], vtable.CVolObject.0
mov byte [ebp - 4], 1
mov dword [ebp - method.CWString.virtual_0], vtable.CVolObject.0
mov dword [ebp - 4], 6
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x27c], eax
mov dword [ebp - method.CWString.virtual_0], vtable.CVolMem.0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x294]
test ecx, ecx
je 0x40d176
mov eax, dword [ebp - 0x2a0]
push ecx
mov eax, dword [eax + 0xc]
cmp eax, method.CWString.virtual_12
jne 0x40d16e
mov ecx, 0x43cc18
call fcn.0040ede0
jmp 0x40d176
lea ecx, [ebp - 0x2a0]
call eax
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x290], 0
mov byte [ebp - 4], 6
mov dword [ebp - method.CWString.virtual_0], vtable.CVolObject.0
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x264]
mov dword [ebp - method.CWString.virtual_0], vtable.CVolObject.0
jmp 0x40d2fc
mov edx, esi
lea ecx, [ebp - 0x308]
call fcn.0040fb80
add esp, 4
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x2fc]
test eax, eax
jne 0x40d1f2
cmp dword [ebp - 0x2e4], 0
mov eax, 0x435f88
cmovne eax, dword [ebp - 0x2ec]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x308]
call fcn.0040f120
mov edx, eax
mov eax, dword [edx + 0x14]
cmp eax, 2
jb 0x40d223
mov ecx, dword [edx + 0xc]
movzx ecx, word [ecx + eax - 2]
test cx, cx
jne 0x40d223
add eax, 0xfffffffe
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x2e8]
mov esi, dword [ebp - 0x2e4]
sub eax, esi
mov dword [ebp - 0x284], 0x5c
cmp eax, 4
jl 0x40d258
mov ecx, dword [ebp - 0x2ec]
mov eax, dword [ebp - 0x284]
mov dword [ecx + esi], eax
add dword [ebp - 0x2e4], 4
jmp 0x40d270
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x2f8]
call fcn.0040e470
mov ecx, dword [ebp - 0x284]
mov dword [eax + esi], ecx
mov edx, dword [ebp - 0x270]
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x38c]
call fcn.0040fb80
mov byte [ebp - 4], 0xa
mov edx, eax
push 0x436750
lea ecx, [ebp - 0x334]
call fcn.0040fb80
add esp, 8
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x38c]
call fcn.004015a0
push edi
push 1
push 0
push dword [ebp - 0x278]
lea edx, [ebp - 0x308]
lea ecx, [ebp - 0x334]
call fcn.0040cd90
add esp, 0x10
neg eax
sbb eax, eax
and ebx, eax
mov dword [ebp - 0x268], ebx
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x334]
call fcn.004015a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x308]
call fcn.004015a0
mov esi, dword [ebp - 0x274]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ce50
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fcbe
mov esp, ebp
pop ebp
ret