Function at 0x14001a2a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rsp + 0xe0], rbx
mov rax, qword [0x1400e07b8]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rdx
mov rsi, rcx
mov qword [rbp - 0x11], rcx
lea rax, vtable.Nvidia::Logging::FileLogManager.0
mov qword [rcx], rax
mov qword [rcx + 8], 0xffffffffffffffff
lea rdi, [rcx + 0x10]
mov qword [rdi + 0x18], 7
xor ebx, ebx
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
mov qword [rcx + 0x40], rbx
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], rbx
mov word [rbp - 0x39], bx
lea r8d, [rbx + 0xa]
lea rdx, str.PathPrefix
lea rcx, [rbp - 0x39]
call fcn.1400317d0
nop
lea r8, [rbp - 0x39]
lea rdx, [rbp + 7]
mov rcx, r15
call fcn.140017f80
mov r14, rax
cmp rdi, rax
je 0x14001a36d
cmp qword [rdi + 0x18], 8
jb 0x14001a353
mov rcx, qword [rdi]
call fcn.14006119c
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
mov rdx, r14
mov rcx, rdi
call fcn.14002e400
cmp qword [rbp + 0x1f], 8
jb 0x14001a37d
mov rcx, qword [rbp + 7]
call fcn.14006119c
mov qword [rbp + 0x1f], 7
mov qword [rbp + 0x17], rbx
mov word [rbp + 7], bx
cmp qword [rbp - 0x21], 8
jb 0x14001a39d
mov rcx, qword [rbp - 0x39]
call fcn.14006119c
mov rcx, rdi
call fcn.140017fe0
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], rbx
mov word [rbp - 0x39], bx
mov r8d, 0x1d
lea rdx, str.AppendProcessNameToPathPrefix
lea rcx, [rbp - 0x39]
call fcn.1400317d0
nop
mov dword [rbp - 1], 4
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rdx, qword [rbp - 0x39]
lea rax, [rbp - 1]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 5]
xor r8d, r8d
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r14d, 0x3bc6
test eax, eax
jne 0x14001a415
cmp dword [rbp - 5], 4
cmovne eax, r14d
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.140019d10
nop
cmp qword [rbp - 0x21], 8
jb 0x14001a434
mov rcx, qword [rbp - 0x39]
call fcn.14006119c
cmp dword [rbp - 9], 0
je 0x14001a47d
mov r8d, 1
lea rdx, [0x1400b894c]
mov rcx, rdi
call fcn.14001ed30
lea rcx, [rbp + 7]
call fcn.140018080
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 7]
mov rcx, rdi
call fcn.140023790
nop
cmp qword [rbp + 0x1f], 8
jb 0x14001a47d
mov rcx, qword [rbp + 7]
call fcn.14006119c
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], rbx
mov word [rbp - 0x39], bx
mov r8d, 0xc
lea rdx, [0x1400b8950]
lea rcx, [rbp - 0x39]
call fcn.1400317d0
nop
mov dword [rbp - 9], 4
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rdx, qword [rbp - 0x39]
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 5]
xor r8d, r8d
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001a4e7
cmp dword [rbp - 5], 4
cmovne eax, r14d
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.140019d10
mov eax, dword [rbp - 1]
mov dword [rsi + 0x30], eax
cmp qword [rbp - 0x21], 8
jb 0x14001a50b
mov rcx, qword [rbp - 0x39]
call fcn.14006119c
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], rbx
mov word [rbp - 0x39], bx
mov r8d, 0xb
lea rdx, str.MaxFileSize
lea rcx, [rbp - 0x39]
call fcn.1400317d0
nop
mov dword [rbp - 9], 4
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rdx, qword [rbp - 0x39]
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 5]
xor r8d, r8d
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001a575
cmp dword [rbp - 5], 4
cmovne eax, r14d
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.140019d10
mov eax, dword [rbp - 1]
mov dword [rsi + 0x34], eax
cmp qword [rbp - 0x21], 8
jb 0x14001a599
mov rcx, qword [rbp - 0x39]
call fcn.14006119c
mov dword [rbp + 3], 1
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], rbx
mov word [rbp - 0x39], bx
mov r8d, 0xc
lea rdx, str.WriteThrough
lea rcx, [rbp - 0x39]
call fcn.1400317d0
mov dword [rbp - 9], 4
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rdx, qword [rbp - 0x39]
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 3]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 5]
xor r8d, r8d
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp qword [rbp - 0x21], 8
jb 0x14001a60d
mov rcx, qword [rbp - 0x39]
call fcn.14006119c
cmp dword [rbp + 3], 0
sete bl
mov dword [rsi + 0x38], ebx
mov rcx, rsi
call fcn.14001a050
nop
mov rax, rsi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140060a70
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret