Function at 0x140009c84
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x2a0
xor eax, eax
mov ebx, r9d
mov rsi, rdx
mov edi, eax
mov dword [rsp + 0x40], eax
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140009f40
test al, 0x10
je 0x140009f40
xor eax, eax
cmp dword [rsp + 0x2e0], eax
je 0x140009d10
test ebx, ebx
jne 0x140009d10
lea r8, [0x1400eed60]
lea rcx, str._sDirectory__s
mov r9, rbp
xor edx, edx
call fcn.14000bce4
test rsi, rsi
je 0x140009d04
lea rcx, [0x1400f7f08]
mov rdx, rsi
call fcn.14000bce4
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000bce4
mov edx, 0x208
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140009f40
mov r8, rbp
mov edx, 0x104
mov rcx, rax
call fcn.1400c26d0
xor ebp, ebp
test eax, eax
jne 0x140009f37
lea r8, [0x1400f7f14]
mov edx, 0x104
mov rcx, rbx
call fcn.1400c2648
test eax, eax
jne 0x140009f37
lea r8, [0x1400f7f18]
test rsi, rsi
mov edx, 0x104
cmovne r8, rsi
mov rcx, rbx
call fcn.1400c2648
test eax, eax
jne 0x140009f37
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140009f37
lea rdx, [0x1400f7f1c]
lea rcx, [rsp + 0x7c]
call fcn.1400c24b0
test eax, eax
je 0x140009f18
lea rdx, [0x1400f7f20]
lea rcx, [rsp + 0x7c]
call fcn.1400c24b0
test eax, eax
je 0x140009f18
mov r8, qword [rsp + 0x2c0]
mov edx, 0x104
mov rcx, rbx
call fcn.1400c26d0
test eax, eax
jne 0x140009f18
lea r8, [0x1400f7f14]
mov edx, 0x104
mov rcx, rbx
call fcn.1400c2648
xor ecx, ecx
test eax, eax
jne 0x140009f18
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rbx + rdi*2], cx
jne 0x140009e11
lea r8, [rsp + 0x7c]
mov edx, 0x104
mov rcx, rbx
call fcn.1400c2648
xor edx, edx
test eax, eax
jne 0x140009f14
mov ecx, dword [rsp + 0x2e0]
test ecx, ecx
je 0x140009e87
mov ecx, dword [rsp + 0x2d8]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x7c]
shr eax, 3
mov qword [rsp + 0x28], r8
mov r9d, ecx
not eax
lea edx, [rcx + rcx]
lea r8, [0x1400eed60]
and eax, 2
lea rcx, str._s_3u__c_s_n
or eax, 0x44
mov dword [rsp + 0x20], eax
call fcn.14000bce4
mov ecx, dword [rsp + 0x2e0]
xor edx, edx
cmp dword [rsp + 0x2e8], edx
jne 0x140009ee0
test byte [rsp + 0x50], 0x10
je 0x140009ee0
cmp dword [rsp + 0x2d0], edx
je 0x140009f14
mov rax, qword [rsp + 0x2f8]
mov r9d, dword [rsp + 0x2d8]
mov r8d, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x2f0]
inc r9d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], ecx
mov rcx, rbx
mov rdx, rsi
call fcn.140009c84
jmp 0x140009f08
mov r10, qword [rsp + 0x2f0]
test r10, r10
je 0x140009f14
mov r9, qword [rsp + 0x2f8]
mov ecx, dword [rsp + 0x2d8]
mov eax, edi
lea r8, [rbx + rax*2]
mov rdx, rbx
call r10
mov edi, eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x140009f2e
jmp 0x140009f18
mov edi, dword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140009da0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret