Function at 0x18d31c50
Capabilities:
Create directory
Enumerate files on windows
Enumerate files recursively
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov dword [ebp - 0x264], 0
push 0x250
push 0
lea eax, [ebp - 0x250]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x25c], eax
mov edx, dword [ebp - 0x25c]
lea eax, [edx + edx + 0x208]
push eax
call fcn.18d33770
add esp, 4
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
jne 0x18d31cbd
mov dword [ebp - 0x264], 8
jmp 0x18d31f49
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x18d3500c
mov eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x260], eax
mov edx, dword [ebp - 0x260]
lea eax, [edx + edx + 0x208]
push eax
call fcn.18d33770
add esp, 4
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
jne 0x18d31d24
mov dword [ebp - 0x264], 8
jmp 0x18d31f49
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x258]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18d31d62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x264], 0xb7
je 0x18d31d62
jmp 0x18d31f49
mov dword [ebp - 0x264], 0
lea ecx, [ebp - 0x250]
push ecx
mov edx, dword [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0xffffffff
jne 0x18d31dbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x254]
push eax
mov ecx, dword [ebp - 0x264]
push ecx
push str.__CopyDirectoryW___luFindFirstFile__ws__n
call dword [sym.imp.ntdll.dll_DbgPrint]
add esp, 0xc
jmp 0x18d31f49
mov edx, dword [ebp - 0x250]
and edx, 0x10
je 0x18d31e06
movzx eax, word [ebp - 0x224]
cmp eax, 0x2e
jne 0x18d31dde
movzx ecx, word [ebp - 0x222]
test ecx, ecx
je 0x18d31e01
movzx edx, word [ebp - 0x224]
cmp edx, 0x2e
jne 0x18d31e06
movzx eax, word [ebp - 0x222]
cmp eax, 0x2e
jne 0x18d31e06
movzx ecx, word [ebp - 0x220]
test ecx, ecx
jne 0x18d31e06
jmp 0x18d31f18
mov edx, 0x5c
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x254]
mov word [ecx + eax*2], dx
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x254]
lea edx, [ecx + eax*2 + 2]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, 0x5c
mov ecx, dword [ebp - 0x260]
mov edx, dword [ebp - 0x258]
mov word [edx + ecx*2], ax
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp - 0x260]
mov edx, dword [ebp - 0x258]
lea eax, [edx + ecx*2 + 2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 0x250]
and ecx, 0x10
je 0x18d31eab
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x258]
push ecx
mov edx, dword [ebp - 0x254]
push edx
call fcn.18d31c50
add esp, 0x10
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x264], 0
je 0x18d31ea9
jmp 0x18d31f34
jmp 0x18d31f18
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x258]
push edx
mov eax, dword [ebp - 0x254]
push eax
call fcn.18d31b90
add esp, 0x10
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x264], 0
je 0x18d31f18
cmp dword [ebp - 0x264], 0
je 0x18d31f0e
cmp dword [ebp - 0x264], 0x20
je 0x18d31f0e
cmp dword [ebp - 0x264], 5
je 0x18d31f0e
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x264]
push edx
push str.__CopyDirectoryW___lu_CopyFileW__ws__n
call dword [sym.imp.ntdll.dll_DbgPrint]
add esp, 0xc
jmp 0x18d31f34
mov dword [ebp - 0x264], 0
lea eax, [ebp - 0x250]
push eax
mov ecx, dword [ebp - 0x268]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18d31dbc
mov edx, dword [ebp - 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jne 0x18d31c63
cmp dword [ebp - 0x254], 0
je 0x18d31f61
mov ecx, dword [ebp - 0x254]
push ecx
call fcn.18d33970
add esp, 4
mov eax, dword [ebp - 0x264]
mov esp, ebp
pop ebp
ret