Function at 0x18000ef10
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov r11, rsp
push rbp
push rdi
lea rbp, [r11 - 0x5e8]
sub rsp, 0x6d8
mov rax, qword [0x1800bb120]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
mov r10, qword [rbp + 0x618]
mov ecx, dword [0x1800be1f8]
mov rdi, qword [rbp + 0x638]
mov qword [r11 - 0x18], rsi
mov rsi, qword [rbp + 0x630]
mov qword [r11 - 0x20], r12
mov r12, rdx
mov rdx, qword [rbp + 0x610]
mov qword [r11 - 0x28], r13
mov r13, r9
mov qword [r11 - 0x30], r14
mov r14, qword [rbp + 0x628]
mov qword [r11 - 0x38], r15
mov r15, r8
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], r10
test ecx, ecx
jne 0x18000f158
xor edx, edx
lea rcx, [rbp + 0x390]
mov r8d, 0x208
call fcn.18005f7c0
mov edx, 0x104
lea rcx, [rbp + 0x390]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor edx, edx
lea rcx, [rbp + 0x180]
mov r8d, 0x208
call fcn.18005f7c0
lea rax, str.ntdll.dll
mov qword [rsp + 0x28], 0xffffffffffffffff
lea r9, [rbp + 0x390]
mov qword [rsp + 0x20], rax
lea r8, [0x18008de10]
mov edx, 0x103
lea rcx, [rbp + 0x180]
call fcn.18000ecf0
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x18000f037
lea rcx, [rbp + 0x180]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000f0be
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x18000f0be
lea rdx, str.RtlGetVersion
mov qword [rsp + 0x6f0], rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x18000f0b6
xor edx, edx
lea rcx, [rbp + 0x64]
mov r8d, VarUI4FromDisp
call fcn.18005f7c0
lea rcx, [rbp + 0x60]
mov dword [rbp + 0x60], VarUI4FromDisp
call rbx
mov eax, dword [rbp + 0x64]
test eax, eax
je 0x18000f0b6
mov dword [0x1800be1f8], eax
lea r8, [rbp + 0x74]
mov eax, dword [rbp + 0x68]
lea rcx, [0x1800be210]
mov dword [0x1800be1fc], eax
or r9, 0xffffffffffffffff
mov eax, dword [rbp + 0x6c]
mov edx, 0x104
mov dword [0x1800be200], eax
mov eax, dword [rbp + 0x70]
mov dword [0x1800be204], eax
call fcn.1800659b0
mov rbx, qword [rsp + 0x6f0]
xor edx, edx
lea rcx, [rsp + 0x44]
mov r8d, 0x118
call fcn.18005f7c0
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [0x1800be1f8]
test eax, eax
je 0x18000f14e
test ecx, ecx
jne 0x18000f119
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x44]
mov dword [0x1800be1fc], eax
mov eax, dword [rsp + 0x4c]
mov dword [0x1800be200], eax
mov eax, dword [rsp + 0x50]
mov dword [0x1800be204], eax
mov dword [0x1800be1f8], ecx
cmp byte [0x1800be41e], 0
mov rdx, qword [rsp + 0x30]
mov r10, qword [rsp + 0x38]
jne 0x18000f158
movzx eax, word [rbp + 0x56]
mov word [0x1800be41c], ax
movzx eax, word [rbp + 0x54]
mov word [0x1800be418], ax
movzx eax, byte [rbp + 0x5a]
mov byte [0x1800be41e], al
jmp 0x18000f158
mov rdx, qword [rsp + 0x30]
mov r10, qword [rsp + 0x38]
test r12, r12
je 0x18000f161
mov dword [r12], ecx
mov r12, qword [rsp + 0x6c8]
test r15, r15
je 0x18000f177
mov eax, dword [0x1800be1fc]
mov dword [r15], eax
mov r15, qword [rsp + 0x6b0]
test r13, r13
je 0x18000f18e
mov eax, dword [0x1800be200]
mov dword [r13], eax
mov r13, qword [rsp + 0x6c0]
test rdx, rdx
je 0x18000f1a3
mov eax, dword [0x1800be204]
mov dword [rdx], eax
test r10, r10
je 0x18000f1c7
mov eax, dword [rbp + 0x620]
test eax, eax
je 0x18000f1c7
mov edx, eax
lea r8, [0x1800be210]
or r9, 0xffffffffffffffff
mov rcx, r10
call fcn.1800659b0
test r14, r14
je 0x18000f1d7
movzx eax, word [0x1800be418]
mov word [r14], ax
mov r14, qword [rsp + 0x6b8]
test rsi, rsi
je 0x18000f1ee
movzx eax, word [0x1800be41c]
mov word [rsi], ax
mov rsi, qword [rsp + 0x6d0]
test rdi, rdi
je 0x18000f204
movzx eax, byte [0x1800be41e]
mov byte [rdi], al
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.18003ff90
add rsp, 0x6d8
pop rdi
pop rbp
ret