Function at 0x1800090c0
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 0x18000937c
test al, 0x10
je 0x18000937c
xor eax, eax
cmp dword [rsp + 0x2e0], eax
je 0x18000914c
test ebx, ebx
jne 0x18000914c
lea r8, [0x180071c90]
lea rcx, str._sDirectory__s
mov r9, rbp
xor edx, edx
call fcn.18000af2c
test rsi, rsi
je 0x180009140
lea rcx, str.___s_
mov rdx, rsi
call fcn.18000af2c
lea rcx, [0x18006a3b8]
call fcn.18000af2c
mov edx, 0x208
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x18000937c
mov r8, rbp
mov edx, 0x104
mov rcx, rax
call fcn.18004e47c
xor ebp, ebp
test eax, eax
jne 0x180009373
lea r8, [0x18007ae14]
mov edx, 0x104
mov rcx, rbx
call fcn.18004e3f4
test eax, eax
jne 0x180009373
lea r8, [0x18007ae18]
test rsi, rsi
mov edx, 0x104
cmovne r8, rsi
mov rcx, rbx
call fcn.18004e3f4
test eax, eax
jne 0x180009373
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x180009373
lea rdx, [0x18007ae1c]
lea rcx, [rsp + 0x7c]
call fcn.18004e25c
test eax, eax
je 0x180009354
lea rdx, [0x18007ae20]
lea rcx, [rsp + 0x7c]
call fcn.18004e25c
test eax, eax
je 0x180009354
mov r8, qword [rsp + 0x2c0]
mov edx, 0x104
mov rcx, rbx
call fcn.18004e47c
test eax, eax
jne 0x180009354
lea r8, [0x18007ae14]
mov edx, 0x104
mov rcx, rbx
call fcn.18004e3f4
xor ecx, ecx
test eax, eax
jne 0x180009354
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rbx + rdi*2], cx
jne 0x18000924d
lea r8, [rsp + 0x7c]
mov edx, 0x104
mov rcx, rbx
call fcn.18004e3f4
xor edx, edx
test eax, eax
jne 0x180009350
mov ecx, dword [rsp + 0x2e0]
test ecx, ecx
je 0x1800092c3
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, [0x180071c90]
and eax, 2
lea rcx, str._s_3u__c_s_n
or eax, 0x44
mov dword [rsp + 0x20], eax
call fcn.18000af2c
mov ecx, dword [rsp + 0x2e0]
xor edx, edx
cmp dword [rsp + 0x2e8], edx
jne 0x18000931c
test byte [rsp + 0x50], 0x10
je 0x18000931c
cmp dword [rsp + 0x2d0], edx
je 0x180009350
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.1800090c0
jmp 0x180009344
mov r10, qword [rsp + 0x2f0]
test r10, r10
je 0x180009350
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 0x18000936a
jmp 0x180009354
mov edi, dword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800091dc
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