Function at 0x180002e94
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
push rsi
push rdi
push r13
sub rsp, 0xd00
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x1800754d0]
xor rax, rsp
mov qword [rsp + 0xcf0], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
lea ecx, [rbp + 8]
call fcn.18003c23c
cmp rax, rbp
je 0x180002ee8
mov qword [rax], rbx
jmp 0x180002eeb
mov rax, rbp
mov qword [rbx], rax
mov rcx, rbx
call fcn.180010184
mov qword [rbx + 0x30], rax
mov byte [rax + 0x41], 1
mov rax, qword [rbx + 0x30]
mov qword [rax + 8], rax
mov rax, qword [rbx + 0x30]
mov qword [rax], rax
mov rax, qword [rbx + 0x30]
mov qword [rax + 0x10], rax
mov qword [rbx + 0x38], rbp
mov dword [rsp + 0x30], 1
mov word [rsp + 0x2b0], bp
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x2b2]
call fcn.1800413a0
mov rdx, rdi
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x18005d3f4]
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
cmp rax, rbp
je 0x180003137
mov word [rax], bp
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp rax, rbp
je 0x180002f86
mov word [rax], bp
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rbx
lea rdi, [rsp + 0x2b0]
lea r13, [fcn.180003164]
cmp r13, rbp
je 0x180003137
cmp word [rsp + 0x2b2], 0x3a
je 0x18000300c
cmp word [rsp + 0x2b2], 0x5c
je 0x18000300c
mov word [rsp + 0x8e0], bp
xor edx, edx
mov r8d, 0x40e
lea rcx, [rsp + 0x8e2]
call fcn.1800413a0
lea rdx, [rsp + 0x8e0]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x8e0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdi, [rsp + 0x8e0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180003137
test al, 0x10
je 0x180003137
mov rdx, rdi
lea rcx, [rsp + 0x6d0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x18005d3f4]
lea rcx, [rsp + 0x6d0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x6d0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180003137
lea rdx, [0x18005e498]
lea rcx, [rsp + 0x8c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, ebp
je 0x180003118
lea rdx, [0x18005d8e4]
lea rcx, [rsp + 0x8c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, ebp
je 0x180003118
cmp dword [rsp + 0x60], 0xffffffff
je 0x180003118
mov rdx, rdi
lea rcx, [rsp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rsp + 0x8c]
lea rcx, [rsp + 0x4c0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [rsp + 0x60], 0x10
je 0x180003102
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x38]
mov r8, r13
mov edx, 1
lea rcx, [rsp + 0x4c0]
call fcn.180035fa4
cmp eax, 2
je 0x18000312e
jmp 0x180003118
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x4c0]
call fcn.180003164
cmp eax, ebp
je 0x18000312e
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebp
jne 0x18000306c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rax, rbx
mov rcx, qword [rsp + 0xcf0]
xor rcx, rsp
call fcn.18003c180
lea r11, [rsp + 0xd00]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop rdi
pop rsi
ret