Function at 0x1800159f8
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
mov rbx, rcx
mov rcx, qword [0x180039b48]
mov rbp, rdx
xor eax, eax
mov edi, 0x104
xor edx, edx
mov r8d, 0x250
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x38], edi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
xor eax, eax
cmp rsi, rax
je 0x180015e3c
mov rcx, rbx
call fcn.1800155b4
xor ecx, ecx
cmp rax, rcx
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]
xor ecx, ecx
cmp edx, ecx
mov ecx, dword [rsp + 0x34]
cmove edx, ecx
lea ecx, [rax + rcx + 2]
mov dword [rsp + 0xb0], edx
cmp ecx, edi
jbe 0x180015abb
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 [0x180039b48]
lea r8d, [rdi + rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
mov qword [rsp + 0x48], rax
xor eax, eax
cmp rbp, rax
je 0x180015e11
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]
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x180015cc6
mov edi, dword [rsp + 0x30]
mov rbp, rbx
mov rbx, rax
xor eax, eax
cmp dword [rsi + 0x1c], eax
jne 0x180015c7c
cmp dword [rsi + 0x20], 0x10000000
ja 0x180015c7c
cmp word [rsi + 0x2c], 0x2e
je 0x180015c7c
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 [0x180039b48]
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]
mov rbx, rax
xor eax, eax
cmp rbx, rax
je 0x180015c77
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rbx
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]
xor edx, edx
lea r8d, [rdx + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
xor ecx, ecx
mov rdx, rbp
cmp rax, rcx
je 0x180015c0c
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]
xor ecx, ecx
mov word [rax], cx
lea rax, [rbx + 0x28]
mov rdx, rax
jmp 0x180015c10
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]
mov dword [rbx + 0x24], eax
mov eax, dword [rsp + 0xb8]
mov dword [rbx + 0x18], eax
xor eax, eax
cmp rcx, rax
je 0x180015c4e
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rdx + 8]
mov qword [rbx], rdx
mov qword [rbx + 8], rax
mov qword [rax], rbx
xor eax, eax
mov qword [rdx + 8], rbx
cmp rcx, rax
je 0x180015c75
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc edi
mov rbx, qword [rsp + 0x40]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor ecx, ecx
cmp eax, ecx
je 0x180015ca8
mov rcx, qword [0x180039d08]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x180015b2a
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, [0x1800318a4]
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]
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x180015df5
lea rax, [rsi + 0x2c]
cmp word [rax], 0x2e
je 0x180015db8
test byte [rsi], 0x10
je 0x180015db8
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 0x180015d69
mov rcx, qword [0x180039b48]
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 0x180015d3d
mov rcx, qword [0x180039b48]
lea r8d, [rdi + rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
xor eax, eax
cmp rbp, rax
je 0x180015dea
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.1800159f8
add dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor ecx, ecx
cmp eax, ecx
je 0x180015dea
mov rcx, qword [0x180039d08]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
lea rax, [rsi + 0x2c]
je 0x180015cf8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindClose]
xor r8d, r8d
cmp rbp, r8
je 0x180015e0f
mov rcx, qword [0x180039b48]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov r8, qword [rsp + 0x50]
cmp r8, rax
je 0x180015e2a
mov rcx, qword [0x180039b48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180039b48]
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