Function at 0x1800142d0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set current directory

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x98]
sub rsp, 0x190
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x18005b0d0]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rsi, rcx
lea rdx, [rsp + 0x70]
lea rcx, str.E1A8B82A_32CE_4B0D_BE0D_AA68C772E423
call qword [sym.imp.RPCRT4.dll_UuidFromStringA]
lea rdi, [rsi + 0x1ca0]
mov qword [rsp + 0x20], rdi
lea r9, [0x1800416f0]
xor edx, edx
lea r8d, [rdx + 3]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
jns 0x1800144b6
cmp eax, 0x80040154
jne 0x18001452b
lea rdx, str.madVR.ax
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc100.dll_Ordinal_310]
nop
lea rdx, str.madVR64.ax
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc100.dll_Ordinal_1294]
lea rcx, [rsp + 0x60]
call fcn.180033ea0
nop
lea r8, [rsp + 0x38]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.180007150
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc100.dll_Ordinal_889]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x180014419
lea rcx, [rsp + 0x40]
call fcn.180033ea0
nop
lea r8, str.madVR
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1800071d0
nop
lea r8, [rsp + 0x38]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.180007150
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc100.dll_Ordinal_1291]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc100.dll_Ordinal_889]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x180014498
lea rdx, [rbp - 0x80]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rcx, [rsp + 0x40]
call fcn.180033ea0
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc100.dll_Ordinal_889]
mov qword [rsp + 0x20], 0
mov r9, rdi
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
call fcn.1800115e0
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc100.dll_Ordinal_889]
jmp 0x1800144b6
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc100.dll_Ordinal_889]
mov eax, 0x80040154
jmp 0x18001452b
mov rdx, qword [rdi]
test rdx, rdx
jne 0x1800144d3
lea rdx, str.Load_madVR_failed.
mov ecx, 2
call fcn.180035240
mov eax, ebx
jmp 0x18001452b
mov rcx, qword [rsi + 0x9b0]
mov rax, qword [rcx]
lea r8, str.madVR_render
call qword [rax + Ordinal_26]
test eax, eax
jne 0x18001452b
lea rdx, [rsp + 0x70]
lea rcx, str.9B517604_2D86_4FA2_A20C_ECF88301B010
call qword [sym.imp.RPCRT4.dll_UuidFromStringA]
mov rcx, qword [rdi]
mov rax, qword [rcx]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x70]
call qword [rax]
test eax, eax
js 0x180014529
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.ca_core.dll_Ordinal_16]
xor eax, eax
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.18003c580
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret