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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xe50]
sub rsp, 0xf50
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rbp + 0xe40], rax
mov rdi, r9
mov rbx, r8
mov r14, rcx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r9
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0xa30]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x620]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x210]
call sub.VCRUNTIME140.dll_memset
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400083ed
test al, 0x10
jne 0x1400083ed
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400083e6
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], r14
mov rax, qword [rcx]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [rax + 0x10]
nop
xor esi, esi
jmp 0x1400085ac
mov r8, r14
lea rdx, str._s
lea rcx, [rbp + 0x620]
call fcn.140008700
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x620]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r15, rax
xor esi, esi
cmp rax, 0xffffffffffffffff
je 0x1400085ac
test byte [rbp - 0x40], 0x10
je 0x140008541
movzx ecx, word [rbp - 0x14]
movzx eax, word [rbp - 0x12]
cmp cx, 0x2e
jne 0x140008459
test ax, ax
je 0x14000858d
cmp cx, cx
jne 0x140008459
cmp ax, cx
jne 0x140008459
cmp word [rbp - 0x10], 0
je 0x14000858d
lea r9, [rbp - 0x14]
mov r8, r14
lea rdx, str._s_s
lea rcx, [rbp + 0x210]
call fcn.140008700
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x1400084dc
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x210]
mov qword [rsp + 0x20], rax
mov rax, qword [rcx]
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x20]
call qword [rax + 0x10]
test eax, eax
jne 0x1400084dc
lea edx, [rax + 0x5c]
lea rcx, [rbp + 0x210]
call sub.VCRUNTIME140.dll_wcsrchr
test rax, rax
je 0x1400085a2
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400084c4
add r8, r8
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x78], rsi
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14000850c
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x48], rsi
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140008526
mov rax, qword [rcx]
lea rdx, [rbp - 0x80]
call qword [rax]
mov qword [rbp - 0x48], rax
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x210]
call fcn.140008320
jmp 0x14000858d
lea r9, [rbp - 0x14]
mov r8, r14
lea rdx, str._s_s
lea rcx, [rbp + 0xa30]
call fcn.140008700
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14000858d
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xa30]
mov qword [rsp + 0x20], rax
mov rax, qword [rcx]
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x20]
call qword [rax + 0x10]
test eax, eax
je 0x1400085a2
lea rdx, [rbp - 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140008423
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400085c8
cmp rcx, rbx
sete dl
mov rax, qword [rcx]
xor dl, 1
call qword [rax + 0x20]
mov qword [rbx + 0x38], rsi
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x1400085e1
cmp rcx, rdi
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], rsi
mov rcx, qword [rbp + 0xe40]
xor rcx, rsp
call fcn.14000f2a0
mov rbx, qword [rsp + 0xf88]
add rsp, 0xf50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret