Function at 0x18004ae60
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 0x18004b11c
test al, 0x10
je 0x18004b11c
xor eax, eax
cmp dword [rsp + 0x2e0], eax
je 0x18004aeec
test ebx, ebx
jne 0x18004aeec
lea r8, [0x1800e99cc]
lea rcx, str._sDirectory__s
mov r9, rbp
xor edx, edx
call fcn.18004d68c
test rsi, rsi
je 0x18004aee0
lea rcx, [0x1800e6f20]
mov rdx, rsi
call fcn.18004d68c
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.18004d68c
mov edx, 0x208
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x18004b11c
mov r8, rbp
mov edx, 0x104
mov rcx, rax
call fcn.1800ca050
xor ebp, ebp
test eax, eax
jne 0x18004b113
lea r8, [0x180110044]
mov edx, 0x104
mov rcx, rbx
call fcn.1800ccae0
test eax, eax
jne 0x18004b113
lea r8, [0x180111eb8]
test rsi, rsi
mov edx, 0x104
cmovne r8, rsi
mov rcx, rbx
call fcn.1800ccae0
test eax, eax
jne 0x18004b113
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x18004b113
lea rdx, [0x180121b80]
lea rcx, [rsp + 0x7c]
call fcn.1800ca2e4
test eax, eax
je 0x18004b0f4
lea rdx, [0x18012d0f4]
lea rcx, [rsp + 0x7c]
call fcn.1800ca2e4
test eax, eax
je 0x18004b0f4
mov r8, qword [rsp + 0x2c0]
mov edx, 0x104
mov rcx, rbx
call fcn.1800ca050
test eax, eax
jne 0x18004b0f4
lea r8, [0x180110044]
mov edx, 0x104
mov rcx, rbx
call fcn.1800ccae0
xor ecx, ecx
test eax, eax
jne 0x18004b0f4
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rbx + rdi*2], cx
jne 0x18004afed
lea r8, [rsp + 0x7c]
mov edx, 0x104
mov rcx, rbx
call fcn.1800ccae0
xor edx, edx
test eax, eax
jne 0x18004b0f0
mov ecx, dword [rsp + 0x2e0]
test ecx, ecx
je 0x18004b063
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, [0x1800e99cc]
and eax, 2
lea rcx, str._s_3u__c_s_n
or eax, 0x44
mov dword [rsp + 0x20], eax
call fcn.18004d68c
mov ecx, dword [rsp + 0x2e0]
xor edx, edx
cmp dword [rsp + 0x2e8], edx
jne 0x18004b0bc
test byte [rsp + 0x50], 0x10
je 0x18004b0bc
cmp dword [rsp + 0x2d0], edx
je 0x18004b0f0
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.18004ae60
jmp 0x18004b0e4
mov r10, qword [rsp + 0x2f0]
test r10, r10
je 0x18004b0f0
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 0x18004b10a
jmp 0x18004b0f4
mov edi, dword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18004af7c
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