Function at 0x180009f54
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 edi, eax
mov dword [rsp + 0x40], eax
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18000a210
test al, 0x10
je 0x18000a210
xor eax, eax
cmp dword [rsp + 0x2e0], eax
je 0x180009fe0
test ebx, ebx
jne 0x180009fe0
mov r9, rbp
lea r8, [0x1800f75a0]
xor edx, edx
lea rcx, str._sDirectory__s
call fcn.18000c008
test rsi, rsi
je 0x180009fd4
mov rdx, rsi
lea rcx, [0x180100748]
call fcn.18000c008
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.18000c008
mov edx, 0x208
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x18000a210
mov r8, rbp
mov edx, 0x104
mov rcx, rax
call fcn.1800c63e8
xor ebp, ebp
test eax, eax
jne 0x18000a207
lea r8, [0x180100754]
mov edx, 0x104
mov rcx, rbx
call fcn.1800c6450
test eax, eax
jne 0x18000a207
test rsi, rsi
lea r8, [0x180100758]
mov edx, 0x104
mov rcx, rbx
cmovne r8, rsi
call fcn.1800c6450
test eax, eax
jne 0x18000a207
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x18000a207
lea rdx, [0x18010075c]
lea rcx, [rsp + 0x7c]
call fcn.1800c6270
test eax, eax
je 0x18000a1e8
lea rdx, [0x180100760]
lea rcx, [rsp + 0x7c]
call fcn.1800c6270
test eax, eax
je 0x18000a1e8
mov r8, qword [rsp + 0x2c0]
mov edx, 0x104
mov rcx, rbx
call fcn.1800c63e8
test eax, eax
jne 0x18000a1e8
lea r8, [0x180100754]
mov edx, 0x104
mov rcx, rbx
call fcn.1800c6450
xor ecx, ecx
test eax, eax
jne 0x18000a1e8
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rbx + rdi*2], cx
jne 0x18000a0e1
lea r8, [rsp + 0x7c]
mov edx, 0x104
mov rcx, rbx
call fcn.1800c6450
xor edx, edx
test eax, eax
jne 0x18000a1e4
mov ecx, dword [rsp + 0x2e0]
test ecx, ecx
je 0x18000a157
mov ecx, dword [rsp + 0x2d8]
lea r8, [rsp + 0x7c]
mov eax, dword [rsp + 0x50]
mov r9d, ecx
shr eax, 3
not eax
mov qword [rsp + 0x28], r8
and eax, 2
lea edx, [rcx + rcx]
or eax, 0x44
lea r8, [0x1800f75a0]
lea rcx, str._s_3u__c_s_n
mov dword [rsp + 0x20], eax
call fcn.18000c008
mov ecx, dword [rsp + 0x2e0]
xor edx, edx
cmp dword [rsp + 0x2e8], edx
jne 0x18000a1b0
test byte [rsp + 0x50], 0x10
je 0x18000a1b0
cmp dword [rsp + 0x2d0], edx
je 0x18000a1e4
mov rax, qword [rsp + 0x2f8]
mov r8d, 1
mov r9d, dword [rsp + 0x2d8]
mov qword [rsp + 0x38], rax
inc r9d
mov rax, qword [rsp + 0x2f0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edx
mov rdx, rsi
mov dword [rsp + 0x20], ecx
mov rcx, rbx
call fcn.180009f54
jmp 0x18000a1d8
mov r10, qword [rsp + 0x2f0]
test r10, r10
je 0x18000a1e4
mov r9, qword [rsp + 0x2f8]
mov rdx, rbx
mov ecx, dword [rsp + 0x2d8]
mov eax, edi
lea r8, [rbx + rax*2]
call r10
mov dword [rsp + 0x40], eax
mov edi, eax
test eax, eax
jne 0x18000a1fe
jmp 0x18000a1e8
mov edi, dword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18000a070
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