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

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x5c8]
sub rsp, 0x6c8
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1401d4618]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
mov qword [rsp + 0x38], r9
mov edi, r8d
mov dword [rsp + 0x30], r8d
mov qword [rsp + 0x40], rdx
mov rsi, rcx
mov ecx, 7
mov qword [rbp - 0x58], rcx
xor ebx, ebx
mov qword [rbp - 0x60], rbx
mov word [rbp - 0x70], bx
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x80], rbx
mov word [rsp + 0x70], bx
test r8d, r8d
je 0x140022cba
lea r8, [rbp - 0x70]
mov rcx, rsi
call fcn.1400072c8
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rbp - 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140022be5
mov qword [rsp + 0x68], 7
xor eax, eax
mov qword [rsp + 0x60], rax
mov word [rsp + 0x50], ax
cmp word [rbp - 4], ax
jne 0x140022ae2
mov r8d, eax
jmp 0x140022af4
lea rcx, [rbp - 4]
or r8, 0xffffffffffffffff
inc r8
cmp word [rcx + r8*2], ax
jne 0x140022aea
lea rdx, [rbp - 4]
lea rcx, [rsp + 0x50]
call fcn.140008bbc
nop
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1400072c8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.14000867c
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call fcn.140023814
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor ecx, ecx
test eax, eax
je 0x140022bda
mov rdi, qword [rsp + 0x38]
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rcx
mov word [rsp + 0x50], cx
cmp word [rbp - 4], cx
jne 0x140022b6e
mov r8, rcx
jmp 0x140022b80
lea rax, [rbp - 4]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], cx
jne 0x140022b76
lea rdx, [rbp - 4]
lea rcx, [rsp + 0x50]
call fcn.140008bbc
nop
nop
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1400072c8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.14000867c
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140023814
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor ecx, ecx
test eax, eax
jne 0x140022b50
mov edi, dword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140022c22
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x140022c22
lea r9, str.file_search_failed
mov r8d, eax
mov edx, 0xf
lea rcx, [rbp + 0x220]
call fcn.140021420
lea rdx, [0x1401e3810]
lea rcx, [rbp + 0x220]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
add edi, 0xffffffff
je 0x140022cba
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rax
mov word [rbp - 0x50], ax
lea r8d, [rax + 1]
lea rdx, [0x140191f0c]
lea rcx, [rbp - 0x50]
call fcn.140008bbc
nop
lea r8, [rbp - 0x50]
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140022cf4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x50]
call fcn.14000867c
mov rbx, qword [rsp + 0x50]
cmp qword [rsp + 0x58], rbx
je 0x140022caf
mov rsi, qword [rsp + 0x40]
mov r9, qword [rsp + 0x38]
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call fcn.140022a18
add rbx, 0x20
cmp rbx, qword [rsp + 0x58]
jne 0x140022c91
lea rcx, [rsp + 0x50]
call fcn.140012374
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x70]
call fcn.14000867c
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.140121d80
add rsp, 0x6c8
pop rdi
pop rsi
pop rbx
pop rbp
ret