Function at 0x100164f0
Capabilities:
Check if file exists
Create directory
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009e7eb
mov eax, dword fs:[0]
push eax
sub esp, 0x87c
mov eax, dword [0x100cc314]
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 dword [ebp - 0x888], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
mov dword [ebp - 0x87c], esi
mov dword [ebp - 0x884], eax
call edi
test eax, eax
je 0x10016796
call fcn.1001b1e0
mov ecx, eax
test ecx, ecx
je 0x100167b6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x880], eax
push esi
lea ecx, [ebp - 0x880]
mov dword [ebp - 4], ebx
call fcn.1001ae90
test al, al
jne 0x100165a2
test esi, esi
jne 0x10016581
xor ecx, ecx
jmp 0x10016595
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016586
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x880]
call fcn.1001bda0
mov esi, dword [ebp - 0x880]
mov ebx, 1
push esi
mov dword [ebp - 4], 0xffffffff
call edi
test eax, eax
je 0x100165ce
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x100165ce
xor ecx, ecx
cmp eax, 0xffffffff
cmovne ebx, ecx
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100165e6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x1001660c
push dword [ebp + 0x10]
mov edi, dword [ebp - 0x87c]
push dword [ebp - 0x884]
mov ecx, dword [ebp - 0x888]
push edi
call fcn.100167d0
mov ebx, eax
jmp 0x10016796
mov ebx, dword [ebp - 0x884]
push ebx
call edi
test eax, eax
jne 0x10016621
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [ebp - 0x87c]
lea eax, [ebp - 0x628]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edi
push eax
call esi
push 0x100a83cc
lea eax, [ebp - 0x628]
push eax
call esi
lea eax, [ebp - 0x878]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x87c], eax
cmp eax, 0xffffffff
je 0x10016794
mov ebx, 1
nop dword [eax]
push edi
lea eax, [ebp - 0x420]
push eax
call esi
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x420]
push eax
call esi
push dword [ebp - 0x884]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x218]
push eax
call esi
test byte [ebp - 0x878], 0x10
je 0x1001674d
mov ecx, 0x100a83d0
lea eax, [ebp - 0x84c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100166e7
test dx, dx
je 0x100166e3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100166e7
add eax, 4
add ecx, 4
test dx, dx
jne 0x100166c1
xor eax, eax
jmp 0x100166ec
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001676b
mov ecx, 0x100a83d4
lea eax, [ebp - 0x84c]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10016726
test dx, dx
je 0x10016722
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10016726
add eax, 4
add ecx, 4
test dx, dx
jne 0x10016700
xor eax, eax
jmp 0x1001672b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001676b
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x888]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.100164f0
jmp 0x10016769
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x888]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.100167d0
and ebx, eax
lea eax, [ebp - 0x878]
push eax
push dword [ebp - 0x87c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10016670
push dword [ebp - 0x87c]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10016796
xor ebx, ebx
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.10061f52
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.1001ae50
int3