Function at 0x18001500c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
and dword [rsp + 0x30], 0
mov rbx, rcx
mov rcx, qword [0x1800307d8]
mov rbp, rdx
mov edi, 0x104
mov r8d, 0x250
xor edx, edx
mov dword [rsp + 0x38], edi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
je 0x180015430
mov rcx, rbx
call fcn.180014bc4
test rax, rax
mov qword [rsp + 0x50], rax
cmovne rbx, rax
mov rcx, rbx
mov qword [rsp + 0x90], rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rbp
mov dword [rsp + 0x34], eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [rsp + 0xb0]
mov ecx, dword [rsp + 0x34]
test edx, edx
cmove edx, ecx
lea ecx, [rax + rcx + 2]
cmp ecx, edi
mov dword [rsp + 0xb0], edx
jbe 0x1800150c8
add ecx, 0xfffffefb
mov eax, 0xfc0fc0fd
mul ecx
mov edi, edx
shr edi, 8
add edi, 2
imul edi, edi, 0x104
mov dword [rsp + 0x38], edi
mov rcx, qword [0x1800307d8]
lea r8d, [rdi + rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
mov qword [rsp + 0x48], rax
je 0x180015405
xor edx, edx
mov r8d, 0x140
mov rcx, rsi
call sub.ntdll.dll_memset
mov r8, qword [rsp + 0x98]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov qword [rsp + 0x40], rax
je 0x1800152c7
mov edi, dword [rsp + 0x30]
mov rbp, rbx
mov rbx, rax
cmp dword [rsi + 0x1c], 0
jne 0x18001527f
cmp dword [rsi + 0x20], 0x10000000
ja 0x18001527f
cmp word [rsi + 0x2c], 0x2e
je 0x18001527f
lea rcx, [rsi + 0x2c]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x98]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x1800307d8]
mov r11d, eax
mov eax, dword [rsp + 0x34]
xor edx, edx
add eax, ebx
add r11d, eax
lea eax, [r11 + r11 + 0x2c]
mov dword [rsp + 0x30], eax
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x18001527a
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
add r8, 0x28
call sub.ntdll.dll_memset
lea rcx, [rbx + 0x28]
mov rdx, rbp
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
call qword [sym.imp.ntdll.dll_wcscpy]
mov rcx, qword [rsp + 0x98]
mov r8w, 0x5c
xor edx, edx
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
mov rdx, rbp
test rax, rax
je 0x180015212
mov r8, qword [rsp + 0x98]
lea rcx, [rbx + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rbx + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
and word [rax], 0
lea rax, [rbx + 0x28]
mov rdx, rax
jmp 0x180015216
lea rax, [rbx + 0x28]
lea r8, [rsi + 0x2c]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
mov dword [rbx + 0x24], eax
mov eax, dword [rsp + 0xb8]
mov dword [rbx + 0x18], eax
je 0x180015252
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rdx + 8]
mov qword [rbx], rdx
mov qword [rbx + 8], rax
mov qword [rax], rbx
mov qword [rdx + 8], rbx
je 0x180015277
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add edi, 1
mov rbx, qword [rsp + 0x40]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1800152a9
mov rcx, qword [0x1800309f0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x180015135
mov rcx, rbx
mov dword [rsp + 0x30], edi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [rsp + 0x38]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x90]
lea r8, [0x18002a7a0]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov qword [rsp + 0x40], rax
je 0x1800153ee
lea rax, [rsi + 0x2c]
cmp word [rax], 0x2e
je 0x1800153b3
test byte [rsi], 0x10
je 0x1800153b3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov eax, dword [rsp + 0x34]
lea eax, [rbx + rax + 2]
cmp eax, edi
jbe 0x180015364
mov rcx, qword [0x1800307d8]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rsp + 0x34]
lea r11d, [rbx + rax + 2]
add edi, 0x104
cmp edi, r11d
jb 0x18001533e
mov rcx, qword [0x1800307d8]
lea r8d, [rdi + rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
je 0x1800153e3
mov rdx, qword [rsp + 0x90]
lea r8, [rsi + 0x2c]
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [rsp + 0xb8]
mov r9, qword [rsp + 0xa8]
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xb0]
mov rcx, rbp
mov dword [rsp + 0x20], eax
call fcn.18001500c
add dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1800153e3
mov rcx, qword [0x1800309f0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
lea rax, [rsi + 0x2c]
je 0x1800152f9
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindClose]
test rbp, rbp
je 0x180015405
mov rcx, qword [0x1800307d8]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x50]
test r8, r8
je 0x18001541e
mov rcx, qword [0x1800307d8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1800307d8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rsp + 0x30]
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret