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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x268]
sub rsp, 0x330
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x14004b150]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov r15, r8
mov r12, rdx
mov r14, rcx
xor r13d, r13d
mov ebx, r13d
lea esi, [r13 + 7]
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x70], r13
mov word [rbp - 0x80], r13w
lea r8, [0x1400335d0]
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.140005004
nop
mov r8, r12
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400050bc
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140003fc4
nop
cmp qword [rsp + 0x48], 8
jb 0x140001643
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], r13
mov word [rsp + 0x30], r13w
cmp qword [rsp + 0x70], 8
jb 0x140001665
mov rcx, qword [rsp + 0x58]
call sub.msvcrt.dll_free
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
lea rdx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001769
test byte [rbp - 0x30], 0x10
jne 0x14000173d
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], r13
mov word [rsp + 0x30], r13w
lea rdx, [rbp - 4]
lea rcx, [rsp + 0x28]
call fcn.140003ecc
nop
lea r8, [0x1400335d0]
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.140005004
nop
lea r8, [rsp + 0x28]
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.1400050bc
nop
mov rdx, rax
mov rcx, r15
call fcn.140003438
nop
cmp qword [rbp - 0x40], 8
jb 0x1400016fc
mov rcx, qword [rbp - 0x58]
call sub.msvcrt.dll_free
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x48], r13
mov word [rbp - 0x58], r13w
cmp qword [rsp + 0x70], 8
jb 0x14000171b
mov rcx, qword [rsp + 0x58]
call sub.msvcrt.dll_free
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], r13
mov word [rsp + 0x58], r13w
cmp qword [rsp + 0x48], 8
jb 0x14000173d
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140001690
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
jmp 0x14000179a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
add eax, 0xfffffffe
cmp eax, 1
jbe 0x14000179a
cmp ecx, 0x35
je 0x14000179a
movzx ebx, cx
or ebx, 0x80070000
test ecx, ecx
cmovle ebx, ecx
test ebx, ebx
js 0x140001970
lea r8, [0x1400335d4]
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.140005004
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140003fc4
nop
cmp qword [rsp + 0x70], 8
jb 0x1400017d6
mov rcx, qword [rsp + 0x58]
call sub.msvcrt.dll_free
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
lea rdx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001949
lea rdx, [0x1400335dc]
lea rcx, [rbp - 4]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14000190e
lea rdx, [0x1400335e0]
lea rcx, [rbp - 4]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14000190e
test byte [rbp - 0x30], 0x10
je 0x14000190e
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], r13
mov word [rsp + 0x30], r13w
lea rdx, [rbp - 4]
lea rcx, [rsp + 0x28]
call fcn.140003ecc
nop
lea r8, [0x1400335d0]
mov rdx, r14
lea rcx, [rbp - 0x60]
call fcn.140005004
nop
lea r8, [rsp + 0x28]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400050bc
nop
mov r9d, 1
mov r8, r15
mov rdx, r12
mov rcx, rax
call fcn.14000159c
mov ebx, eax
test eax, eax
sets sil
cmp qword [rsp + 0x70], 8
jb 0x1400018bd
mov rcx, qword [rsp + 0x58]
call sub.msvcrt.dll_free
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r13
mov word [rsp + 0x58], r13w
cmp qword [rbp - 0x40], 8
jb 0x1400018e1
mov rcx, qword [rbp - 0x58]
call sub.msvcrt.dll_free
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], r13
mov word [rbp - 0x58], r13w
cmp qword [rsp + 0x48], 8
jb 0x140001904
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
test sil, sil
jne 0x140001929
mov esi, 7
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140001801
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x12
jmp 0x140001960
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x140001970
cmp eax, 0x35
je 0x140001970
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp qword [rbp - 0x68], 8
jb 0x140001980
mov rcx, qword [rbp - 0x80]
call sub.msvcrt.dll_free
mov eax, ebx
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.14002d5f0
mov rbx, qword [rsp + 0x388]
add rsp, 0x330
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret