Function at 0x18000408c
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.18003c28c
cmp rax, rbp
je 0x1800040e0
mov qword [rax], rbx
jmp 0x1800040e3
mov rax, rbp
mov qword [rbx], rax
mov rcx, rbx
call fcn.180011470
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.180041420
mov rdx, rdi
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x18005d4ac]
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
cmp rax, rbp
je 0x18000432f
mov word [rax], bp
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp rax, rbp
je 0x18000417e
mov word [rax], bp
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rbx
lea rdi, [rsp + 0x2b0]
lea r13, [fcn.18000435c]
cmp r13, rbp
je 0x18000432f
cmp word [rsp + 0x2b2], 0x3a
je 0x180004204
cmp word [rsp + 0x2b2], 0x5c
je 0x180004204
mov word [rsp + 0x8e0], bp
xor edx, edx
mov r8d, 0x40e
lea rcx, [rsp + 0x8e2]
call fcn.180041420
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 0x18000432f
test al, 0x10
je 0x18000432f
mov rdx, rdi
lea rcx, [rsp + 0x6d0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x18005d4ac]
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 0x18000432f
lea rdx, [0x18005e538]
lea rcx, [rsp + 0x8c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, ebp
je 0x180004310
lea rdx, [0x18005d994]
lea rcx, [rsp + 0x8c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, ebp
je 0x180004310
cmp dword [rsp + 0x60], 0xffffffff
je 0x180004310
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 0x1800042fa
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.180020660
cmp eax, 2
je 0x180004326
jmp 0x180004310
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x4c0]
call fcn.18000435c
cmp eax, ebp
je 0x180004326
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebp
jne 0x180004264
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rax, rbx
mov rcx, qword [rsp + 0xcf0]
xor rcx, rsp
call fcn.18003c1d0
lea r11, [rsp + 0xd00]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop rdi
pop rsi
ret