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

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x320], rbx
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rsi, rdx
mov qword [rsp + 0x30], rcx
lea rax, [0x14034d1a0]
mov qword [rsp + 0x58], rax
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x28], rax
lea edx, [rax + 1]
lea rcx, [rsp + 0x20]
call fcn.1402028a0
mov eax, dword [rsp + 0x28]
inc eax
movsxd rdx, eax
mov r9d, 1
lea r8, [0x1403526ec]
mov rcx, qword [rsp + 0x20]
call fcn.1402c06dc
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.140203bb0
nop
lea r8, [rsp + 0x20]
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.1400d4050
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x58]
call fcn.1402028a0
movsxd r9, dword [rbx + 0xc]
mov ecx, dword [rsp + 0x60]
inc ecx
movsxd rdx, ecx
mov r8, qword [rbx]
mov rcx, qword [rsp + 0x58]
call fcn.1402c06dc
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x58]
call fcn.140203bb0
nop
cmp dword [rsp + 0x50], 0
jle 0x1401b966d
mov rcx, qword [rsp + 0x48]
call fcn.1402bd0e0
nop
cmp dword [rsp + 0x28], 0
jle 0x1401b967e
mov rcx, qword [rsp + 0x20]
call fcn.1402bd0e0
lea rdx, [rbp - 0x70]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
jne 0x1401b96d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1401b98fc
mov rcx, rsi
call fcn.1401bf000
lea rdx, [rbp - 0x70]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
jne 0x1401b96d6
xor bl, bl
jmp 0x1401b9a00
or rdi, 0xffffffffffffffff
nop word [rax + rax]
test byte [rbp - 0x70], 0x10
je 0x1401b97d8
movzx ecx, word [rbp - 0x44]
movzx eax, word [rbp - 0x42]
cmp cx, word [0x14034bd50]
jne 0x1401b9708
cmp ax, word [0x14034bd52]
je 0x1401b98c9
cmp cx, word [0x1403526fc]
jne 0x1401b972b
cmp ax, word [0x1403526fe]
jne 0x1401b972b
movzx eax, word [rbp - 0x40]
cmp ax, word [0x140352700]
je 0x1401b98c9
lea rax, [rbp - 0x44]
mov rbx, rdi
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401b9732
xor eax, eax
mov qword [rsp + 0x70], rax
test ebx, ebx
jne 0x1401b9755
lea rax, [0x14034d1a0]
mov qword [rsp + 0x68], rax
jmp 0x1401b977b
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rsp + 0x70]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x44]
mov rcx, qword [rsp + 0x68]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.140203bb0
nop
lea r8, [rsp + 0x68]
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.1400d4050
nop
cmp dword [rsp + 0x70], 0
jle 0x1401b97ac
mov rcx, qword [rsp + 0x68]
call fcn.1402bd0e0
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call fcn.1401b9580
test al, al
je 0x1401b98df
cmp dword [rsp + 0x50], 0
jle 0x1401b98c4
mov rcx, qword [rsp + 0x48]
jmp 0x1401b98bf
lea rax, [rbp - 0x44]
mov rbx, rdi
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401b97e0
xor eax, eax
mov qword [rsp + 0x28], rax
test ebx, ebx
jne 0x1401b9803
lea rax, [0x14034d1a0]
mov qword [rsp + 0x20], rax
jmp 0x1401b9829
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rsp + 0x28]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x44]
mov rcx, qword [rsp + 0x20]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.140203bb0
nop
lea r8, [rsp + 0x20]
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.1400d4050
nop
cmp dword [rsp + 0x28], 0
jle 0x1401b985a
mov rcx, qword [rsp + 0x20]
call fcn.1402bd0e0
xor r8d, r8d
lea rdx, [rsp + 0x78]
call fcn.1401b9450
movzx eax, al
test eax, eax
jne 0x1401b98b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1401b9897
lea rcx, [rsp + 0x78]
call fcn.1401bf000
xor r8d, r8d
lea rdx, [rsp + 0x78]
call fcn.1401b9450
movzx eax, al
test eax, eax
jne 0x1401b98b4
mov rbx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov r8, rbx
lea rcx, str.Error__d:__ls_r_n
call fcn.1401b5550
nop
cmp dword [rbp - 0x80], 0
jle 0x1401b98c4
mov rcx, qword [rsp + 0x78]
call fcn.1402bd0e0
mov rbx, qword [rsp + 0x40]
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1401b9903
jmp 0x1401b96e0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
cmp dword [rsp + 0x50], 0
jle 0x1401b98fc
mov rcx, qword [rsp + 0x48]
call fcn.1402bd0e0
xor bl, bl
jmp 0x1401b9a00
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsi]
test rbx, rbx
jne 0x1401b9920
xor eax, eax
mov edi, eax
mov qword [rsp + 0x38], rax
jmp 0x1401b9935
inc rdi
cmp word [rbx + rdi*2], 0
jne 0x1401b9920
xor eax, eax
mov qword [rsp + 0x38], rax
test edi, edi
jne 0x1401b9943
lea rax, [0x14034d1a0]
mov qword [rsp + 0x30], rax
jmp 0x1401b9968
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1402028a0
movsxd r9, edi
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
mov r8, rbx
mov rcx, qword [rsp + 0x30]
call fcn.1402c06dc
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140203bb0
nop
mov r8b, 1
lea rdx, [rsp + 0x30]
call fcn.1401b9450
movzx edi, al
cmp dword [rsp + 0x38], 0
jle 0x1401b9996
mov rcx, qword [rsp + 0x30]
call fcn.1402bd0e0
test edi, edi
jne 0x1401b99fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1401b99e0
mov rcx, rsi
call fcn.1401bf000
mov rdx, qword [rsi]
lea rcx, [rsp + 0x48]
call fcn.140200840
nop
mov r8b, 1
lea rdx, [rsp + 0x48]
call fcn.1401b9450
movzx edi, al
cmp dword [rsp + 0x50], 0
jle 0x1401b99dc
mov rcx, qword [rsp + 0x48]
call fcn.1402bd0e0
test edi, edi
jne 0x1401b99fa
mov rbx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov r8, rbx
lea rcx, str.Error__d:__ls_r_n
call fcn.1401b5550
cmp edi, 1
sete bl
cmp dword [rsp + 0x60], 0
jle 0x1401b9a11
mov rcx, qword [rsp + 0x58]
call fcn.1402bd0e0
movzx eax, bl
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1402bcad0
mov rbx, qword [rsp + 0x320]
add rsp, 0x2f0
pop rdi
pop rsi
pop rbp
ret