Function at 0x1400171e0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc30]
sub rsp, 0xd30
mov rax, qword [0x140092560]
xor rax, rsp
mov qword [rbp + 0xc20], rax
mov rsi, r8
mov qword [rsp + 0x50], r8
mov r12, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x80
mov r13b, 1
xor r14d, r14d
call fcn.140019dc0
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x14001728c
lea rdx, [rbp + 0x210]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14001728c
lea r8, [0x14007b174]
mov edx, 0x104
lea rcx, [rbp + 0x210]
call fcn.140053974
mov r8, r12
lea rcx, [rbp + 0x210]
mov edx, 0x104
call fcn.140053974
lea r12, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_GetErrorMode]
mov ecx, eax
mov dword [rsp + 0x40], eax
or ecx, 1
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.1400139c0
xor edx, edx
mov rcx, r12
mov rbx, rax
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400175cd
cmp qword [rdi + 8], r14
je 0x1400172e2
call fcn.1400139c0
mov rcx, qword [rdi + 8]
sub eax, ebx
mov dword [rcx + 0x3c], eax
mov rax, qword [rsp + 0x58]
mov r9d, 0x400
lea r8, [rbp + 0x420]
mov edx, 0x29bb
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1400175bd
movabs rax, 0x20003b002c
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x10]
mov qword [rbp - 0x10], rax
lea rcx, [rbp + 0x420]
call fcn.140053888
mov rbx, rax
test rax, rax
je 0x1400175bd
lea rsi, str.Dependency_module__ls_has_been_loaded_already
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140017378
mov rcx, qword [rdi]
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercommonwindowsNvcPluginLoadHelperWin32.cpp
mov qword [rsp + 0x28], rbx
mov r9d, 3
mov r8d, 0xcc
mov qword [rsp + 0x20], rsi
call fcn.140014810
jmp 0x140017556
cmp r14d, 0x10
jae 0x140017574
xor r15d, r15d
lea rdx, [rsp + 0x48]
mov ecx, 0x20019
mov qword [rsp + 0x48], r15
call fcn.140017bb0
mov esi, eax
test eax, eax
jne 0x140017507
xor edx, edx
lea rcx, [rbp]
mov r8d, 0x208
call fcn.140019dc0
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea r9d, [r15 + 2]
lea rax, [rbp]
mov dword [rsp + 0x44], 0x208
mov qword [rsp + 0x28], rax
lea rdx, str.ModuleMap
mov r8, rbx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, eax
test eax, eax
jne 0x1400174b3
cmp word [rbp], r15w
je 0x1400174b3
xor r8d, r8d
lea rdx, [rbp]
mov rcx, rdi
call fcn.140016e50
mov r15, rax
test rax, rax
je 0x140017451
mov rcx, qword [rdi]
lea rax, str.Loaded_dependency_module__ls
mov qword [rsp + 0x28], rbx
lea r9d, [rsi + 3]
lea r8d, [rsi + 0x76]
mov qword [rsp + 0x20], rax
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercommonwindowsNvcPluginLoadHelperWin32.cpp
call fcn.140014810
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140017542
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi]
lea rbx, str.Failed_to_load_dependency__ls._Error__u
mov dword [rsp + 0x30], eax
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercommonwindowsNvcPluginLoadHelperWin32.cpp
mov r9d, 1
lea rax, [rbp]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r8d, [r9 + 0x7c]
call fcn.140014810
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rbp]
mov rdx, rbx
mov r9d, eax
mov ecx, 0x1d
call fcn.140004f10
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140017542
mov rcx, qword [rdi]
lea rax, str.Failed_to_map_module__ls__result__ld_
mov dword [rsp + 0x30], esi
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercommonwindowsNvcPluginLoadHelperWin32.cpp
mov qword [rsp + 0x28], rbx
mov r9d, 1
mov r8d, 0x86
mov qword [rsp + 0x20], rax
call fcn.140014810
mov r9d, esi
lea rdx, str.Failed_to_map_module__ls__result__ld_
mov r8, rbx
mov ecx, 0x1f
call fcn.140004f10
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140017542
mov rcx, qword [rdi]
lea rbx, str.Failed_to_open_configurationroot.__result__ld_
mov dword [rsp + 0x28], esi
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercommonwindowsNvcPluginLoadHelperWin32.cpp
mov r9d, 1
mov qword [rsp + 0x20], rbx
mov r8d, 0x8f
call fcn.140014810
mov r8d, esi
mov rdx, rbx
mov ecx, 0x1f
call fcn.140004f10
mov qword [rsp + r14*8 + 0x70], r15
test r15, r15
je 0x1400175b0
inc r14d
lea rsi, str.Dependency_module__ls_has_been_loaded_already
lea r8, [rsp + 0x60]
xor ecx, ecx
lea rdx, [rbp - 0x10]
call fcn.140053888
mov rbx, rax
test rax, rax
jne 0x140017340
jmp 0x1400175b3
mov rcx, qword [rdi]
lea rbx, str.Dependency_count_exceeded_maximum_for__ls
mov qword [rsp + 0x28], r12
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercommonwindowsNvcPluginLoadHelperWin32.cpp
mov r9d, 1
mov qword [rsp + 0x20], rbx
mov r8d, 0xd5
call fcn.140014810
mov r8, r12
mov rdx, rbx
mov ecx, 0x20
call fcn.140004f10
xor r13b, r13b
mov rsi, qword [rsp + 0x50]
mov r15d, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r13b, r13b
je 0x1400175de
mov r8b, 1
mov rdx, r12
mov rcx, rdi
call fcn.140016e50
mov qword [rsi], rax
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test r14d, r14d
je 0x140017607
lea rbx, [rsp + 0x70]
mov edi, r14d
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x1400175f4
cmp qword [rsi], 0
setne al
mov rcx, qword [rbp + 0xc20]
xor rcx, rsp
call fcn.140018190
mov rbx, qword [rsp + 0xd88]
add rsp, 0xd30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret