Function at 0x18000716c
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 0x180007410
test al, 0x10
je 0x180007410
cmp dword [rsp + 0x2e0], edi
je 0x1800071f4
test ebx, ebx
jne 0x1800071f4
lea r8, [0x1800962fc]
lea rcx, str._sDirectory__s
mov r9, rbp
xor edx, edx
call fcn.180008f6c
test rsi, rsi
je 0x1800071e8
lea rcx, str.___s_
mov rdx, rsi
call fcn.180008f6c
lea rcx, [0x1800964e8]
call fcn.180008f6c
mov edx, 0x208
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x180007407
mov r8, rbp
mov ebp, 0x104
mov rcx, rax
mov edx, ebp
call fcn.180074f8c
test eax, eax
jne 0x180007407
lea r8, [0x18009c4ac]
mov edx, ebp
mov rcx, rbx
call fcn.180074f04
test eax, eax
jne 0x180007407
lea r8, [0x18009c4b0]
test rsi, rsi
mov edx, ebp
cmovne r8, rsi
mov rcx, rbx
call fcn.180074f04
test eax, eax
jne 0x180007407
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x180007407
lea rdx, [0x18009c4b4]
lea rcx, [rsp + 0x7c]
call fcn.180074e7c
test eax, eax
je 0x1800073e8
lea rdx, [0x18009c4b8]
lea rcx, [rsp + 0x7c]
call fcn.180074e7c
test eax, eax
je 0x1800073e8
mov r8, qword [rsp + 0x2c0]
mov edx, 0x104
mov rcx, rbx
call fcn.180074f8c
test eax, eax
jne 0x1800073e8
lea r8, [0x18009c4ac]
mov edx, 0x104
mov rcx, rbx
call fcn.180074f04
test eax, eax
jne 0x1800073e8
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.180074f04
test eax, eax
jne 0x1800073e4
mov eax, dword [rsp + 0x2e0]
mov edi, dword [rsp + 0x2d8]
test eax, eax
je 0x180007369
mov eax, dword [rsp + 0x50]
lea rcx, [rsp + 0x7c]
lea edx, [rdi + rdi]
shr eax, 3
mov qword [rsp + 0x28], rcx
lea r8, [0x1800962fc]
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.180008f6c
mov eax, dword [rsp + 0x2e0]
test byte [rsp + 0x50], 0x10
jne 0x18000739b
mov rdi, qword [rsp + 0x2e8]
test rdi, rdi
je 0x1800073e4
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 0x1800073d8
cmp dword [rsp + 0x2d0], 0
je 0x1800073e4
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.18000716c
mov edi, eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x1800073fe
jmp 0x1800073e8
mov edi, dword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18000727e
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