Function at 0x14000a198
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400ce148]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r13, rdx
mov rsi, rcx
mov qword [rbp - 0x31], rcx
lea rax, vtable.Nvidia::Logging::FileLogManager.0
mov qword [rcx], rax
or qword [rcx + 8], 0xffffffffffffffff
mov r15d, 7
mov qword [rcx + 0x28], r15
xor edi, edi
mov qword [rcx + 0x20], rdi
mov word [rcx + 0x10], di
mov qword [rcx + 0x48], rdi
mov qword [rbp - 9], r15
mov qword [rbp - 0x11], rdi
mov word [rbp - 0x21], di
lea rcx, str.PathPrefix
call fcn.14004a2f8
mov r8, rax
lea rdx, str.PathPrefix
lea rcx, [rbp - 0x21]
call fcn.140073170
nop
lea r8, [rbp - 0x21]
lea rdx, [rbp + 7]
mov rcx, r13
call fcn.140006210
nop
mov rdx, rax
lea rcx, [rsi + 0x10]
call fcn.140011524
nop
cmp qword [rbp + 0x1f], 8
jb 0x14000a257
mov rcx, qword [rbp + 7]
call fcn.14004aab0
mov qword [rbp + 0x1f], r15
mov qword [rbp + 0x17], rdi
mov word [rbp + 7], di
cmp qword [rbp - 9], 8
jb 0x14000a273
mov rcx, qword [rbp - 0x21]
call fcn.14004aab0
mov ecx, 0xfffe
call fcn.14004b2fc
mov rbx, rax
mov qword [rbp - 0x41], rax
cmp qword [rsi + 0x28], 8
jb 0x14000a291
mov rcx, qword [rsi + 0x10]
jmp 0x14000a295
lea rcx, [rsi + 0x10]
mov r8d, 0x7fff
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rbx
call fcn.14004a2f8
mov r8, rax
mov rdx, rbx
lea rcx, [rsi + 0x10]
call fcn.140073170
nop
mov rcx, rbx
call fcn.14004aab0
mov qword [rbp - 9], r15
mov qword [rbp - 0x11], rdi
mov word [rbp - 0x21], di
lea rcx, str.AppendProcessNameToPathPrefix
call fcn.14004a2f8
mov r8, rax
lea rdx, str.AppendProcessNameToPathPrefix
lea rcx, [rbp - 0x21]
call fcn.140073170
nop
mov ebx, 4
mov dword [rbp - 0x45], ebx
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rdx, qword [rbp - 0x21]
lea rax, [rbp - 0x45]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x49]
xor r8d, r8d
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, 0x3bc6
test eax, eax
jne 0x14000a338
cmp dword [rbp - 0x49], ebx
cmovne eax, ecx
lea r15, str.RegQueryValueEx
mov rdx, r15
mov ecx, eax
call fcn.140005f74
nop
cmp qword [rbp - 9], 8
jb 0x14000a35a
mov rcx, qword [rbp - 0x21]
call fcn.14004aab0
cmp dword [rbp - 0x41], edi
je 0x14000a3ad
lea rcx, [0x14009e804]
call fcn.14004a2f8
mov r8, rax
lea rdx, [0x14009e804]
lea rcx, [rsi + 0x10]
call fcn.14000e244
lea rcx, [rbp + 7]
call fcn.140005a68
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 7]
lea rcx, [rsi + 0x10]
call fcn.1400115b0
nop
cmp qword [rbp + 0x1f], 8
jb 0x14000a3ad
mov rcx, qword [rbp + 7]
call fcn.14004aab0
mov r12d, 7
mov qword [rbp - 9], r12
mov qword [rbp - 0x11], rdi
mov word [rbp - 0x21], di
lea rcx, [0x14009e808]
call fcn.14004a2f8
mov r8, rax
lea rdx, [0x14009e808]
lea rcx, [rbp - 0x21]
call fcn.140073170
nop
mov dword [rbp - 0x41], ebx
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rdx, qword [rbp - 0x21]
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x45]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x49]
xor r8d, r8d
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000a422
cmp dword [rbp - 0x49], ebx
mov ecx, 0x3bc6
cmovne eax, ecx
mov rdx, r15
mov ecx, eax
call fcn.140005f74
mov r11d, dword [rbp - 0x45]
mov dword [rsi + 0x38], r11d
cmp qword [rbp - 9], 8
jb 0x14000a444
mov rcx, qword [rbp - 0x21]
call fcn.14004aab0
mov qword [rbp - 9], r12
mov qword [rbp - 0x11], rdi
mov word [rbp - 0x21], di
lea rcx, str.MaxFileSize
call fcn.14004a2f8
mov r8, rax
lea rdx, str.MaxFileSize
lea rcx, [rbp - 0x21]
call fcn.140073170
nop
mov dword [rbp - 0x41], ebx
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rdx, qword [rbp - 0x21]
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x45]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x49]
xor r8d, r8d
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000a4b3
cmp dword [rbp - 0x49], ebx
mov ecx, 0x3bc6
cmovne eax, ecx
mov rdx, r15
mov ecx, eax
call fcn.140005f74
mov r11d, dword [rbp - 0x45]
mov dword [rsi + 0x3c], r11d
cmp qword [rbp - 9], 8
jb 0x14000a4d5
mov rcx, qword [rbp - 0x21]
call fcn.14004aab0
mov dword [rbp - 0x39], 1
mov qword [rbp - 9], r12
mov qword [rbp - 0x11], rdi
mov word [rbp - 0x21], di
lea rcx, str.WriteThrough
call fcn.14004a2f8
mov r8, rax
lea rdx, str.WriteThrough
lea rcx, [rbp - 0x21]
call fcn.140073170
mov dword [rbp - 0x41], ebx
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rdx, qword [rbp - 0x21]
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x49]
xor r8d, r8d
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp qword [rbp - 9], 8
jb 0x14000a54b
mov rcx, qword [rbp - 0x21]
call fcn.14004aab0
cmp dword [rbp - 0x39], edi
sete dil
mov dword [rsi + 0x40], edi
mov rcx, rsi
call fcn.14000a58c
nop
mov rax, rsi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140049cd0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret