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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2f0
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov rax, qword [0x14004a300]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov r12, r9
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x60], rdx
mov rdi, rcx
mov qword [rsp + 0x70], rcx
mov r13, qword [rsp + 0x358]
mov rsi, qword [rsp + 0x360]
mov qword [rsp + 0x58], rsi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x40], rax
or r14, 0xffffffffffffffff
mov rcx, r14
xor r8d, r8d
inc rcx
cmp word [rax + rcx*2], r8w
jne 0x14002271c
cmp word [rax + rcx*2 - 2], 0x5c
mov rax, r14
je 0x140022744
lea rdx, str..
inc rax
cmp word [rdx + rax*2], r8w
jne 0x140022738
jmp 0x140022755
lea rdx, [0x14003c508]
inc rax
cmp word [rdx + rax*2], r8w
jne 0x14002274b
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.14000a054
lea rdx, [rsp + 0x90]
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r15, rax
mov qword [rsp + 0x78], rax
cmp rax, r14
jne 0x1400227b1
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.14002c700
add rsp, 0x2f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov r14, qword [rsp + 0x350]
xor ecx, ecx
test byte [rsp + 0x90], 0x10
je 0x1400229b7
movzx eax, word [rsp + 0xbe]
cmp word [rsp + 0xbc], 0x2e
jne 0x140022804
test ax, ax
je 0x1400229b7
cmp word [rsp + 0xbc], 0x2e
jne 0x140022804
cmp ax, 0x2e
jne 0x140022804
cmp word [rsp + 0xc0], cx
je 0x1400229b7
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x40], rax
or rdi, 0xffffffffffffffff
mov rcx, rdi
xor ebx, ebx
inc rcx
cmp word [rax + rcx*2], bx
jne 0x140022824
cmp word [rax + rcx*2 - 2], 0x5c
je 0x14002284c
mov r8d, 1
lea rdx, [0x14003f0d0]
lea rcx, [rsp + 0x40]
call fcn.14000a054
lea rcx, [rsp + 0xbc]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], bx
jne 0x140022857
mov r8d, eax
lea rdx, [rsp + 0xbc]
lea rcx, [rsp + 0x40]
call fcn.14000a054
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x48], rax
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], bx
jne 0x140022888
cmp word [rax + rcx*2 - 2], 0x5c
je 0x1400228b0
mov r8d, 1
lea rdx, [0x14003f0d0]
lea rcx, [rsp + 0x48]
call fcn.14000a054
lea rcx, [rsp + 0xbc]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], bx
jne 0x1400228bb
mov r8d, eax
lea rdx, [rsp + 0xbc]
lea rcx, [rsp + 0x48]
call fcn.14000a054
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x50], rax
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], bx
jne 0x1400228ec
cmp word [rax + rcx*2 - 2], 0x5c
je 0x140022914
mov r8d, 1
lea rdx, [0x14003f0d0]
lea rcx, [rsp + 0x50]
call fcn.14000a054
lea rcx, [rsp + 0xbc]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], bx
jne 0x14002291f
mov r8d, eax
lea rdx, [rsp + 0xbc]
lea rcx, [rsp + 0x50]
call fcn.14000a054
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
call fcn.1400229e8
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov r9, r12
mov rsi, qword [rsp + 0x50]
mov r8, rsi
mov rdx, rdi
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.140026488
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov r9, r12
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.1400226ac
nop
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x70]
lea rdx, [rsp + 0x90]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor ecx, ecx
test eax, eax
jne 0x1400227bb
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
jmp 0x140022785