Function at 0x1400087d4
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 edi, edi
mov ebx, r9d
mov rsi, rdx
mov dword [rsp + 0x40], edi
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140008a7d
test al, 0x10
je 0x140008a7d
cmp dword [rsp + 0x2e0], edi
je 0x14000885c
test ebx, ebx
jne 0x14000885c
lea r8, [0x1400d296c]
lea rcx, str._sDirectory__s
mov r9, rbp
xor edx, edx
call fcn.14000a838
test rsi, rsi
je 0x140008850
lea rcx, str.___s_
mov rdx, rsi
call fcn.14000a838
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000a838
mov edx, 0x208
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140008a74
mov r8, rbp
mov ebp, 0x104
mov rcx, rax
mov rdx, rbp
call fcn.1400bc8e4
test eax, eax
jne 0x140008a74
lea r8, [0x1400d9e5c]
mov rdx, rbp
mov rcx, rbx
call fcn.1400bc848
test eax, eax
jne 0x140008a74
lea r8, [0x1400d9e60]
test rsi, rsi
mov rdx, rbp
cmovne r8, rsi
mov rcx, rbx
call fcn.1400bc848
test eax, eax
jne 0x140008a74
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140008a74
lea rdx, [0x1400d9e64]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140008a55
lea rdx, [0x1400d9e68]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140008a55
mov r8, qword [rsp + 0x2c0]
mov edx, 0x104
mov rcx, rbx
call fcn.1400bc8e4
test eax, eax
jne 0x140008a55
lea r8, [0x1400d9e5c]
mov edx, 0x104
mov rcx, rbx
call fcn.1400bc848
test eax, eax
jne 0x140008a55
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
lea r8, [rsp + 0x7c]
mov edx, 0x104
not rcx
dec rcx
mov qword [rsp + 0x48], rcx
mov rcx, rbx
call fcn.1400bc848
test eax, eax
jne 0x140008a51
mov eax, dword [rsp + 0x2e0]
mov edi, dword [rsp + 0x2d8]
test eax, eax
je 0x1400089d6
mov eax, dword [rsp + 0x50]
lea rcx, [rsp + 0x7c]
lea edx, [rdi + rdi]
shr eax, 3
mov qword [rsp + 0x28], rcx
lea r8, [0x1400d296c]
not eax
lea rcx, str._s_3u__c_s_n
mov r9d, edi
and eax, 2
or eax, 0x44
mov dword [rsp + 0x20], eax
call fcn.14000a838
mov eax, dword [rsp + 0x2e0]
test byte [rsp + 0x50], 0x10
jne 0x140008a08
mov rdi, qword [rsp + 0x2e8]
test rdi, rdi
je 0x140008a51
mov eax, dword [rsp + 0x48]
mov r9, qword [rsp + 0x2f0]
mov ecx, dword [rsp + 0x2d8]
lea r8, [rbx + rax*2]
mov rdx, rbx
call rdi
jmp 0x140008a45
cmp dword [rsp + 0x2d0], 0
je 0x140008a51
mov rcx, qword [rsp + 0x2f0]
lea r9d, [rdi + 1]
mov r8d, 1
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x2e8]
mov rdx, rsi
mov qword [rsp + 0x28], rcx
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.1400087d4
mov edi, eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x140008a6b
jmp 0x140008a55
mov edi, dword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400088e9
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