Function at 0x140042664
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1402ee230]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r12, rdx
mov rdi, rcx
mov qword [rbp - 0x31], rcx
lea rax, vtable.Nvidia::Logging::FileLogManager.0
mov qword [rcx], rax
or qword [rcx + 8], 0xffffffffffffffff
mov r14d, 7
mov qword [rcx + 0x28], r14
xor ebx, ebx
mov qword [rcx + 0x20], rbx
mov word [rcx + 0x10], bx
mov qword [rcx + 0x48], rbx
mov qword [rbp - 0x11], r14
mov qword [rbp - 0x19], rbx
mov word [rbp - 0x29], bx
lea rcx, str.PathPrefix
call fcn.1401be2f4
mov r8, rax
lea rdx, str.PathPrefix
lea rcx, [rbp - 0x29]
call fcn.1401f2254
nop
lea r8, [rbp - 0x29]
lea rdx, [rbp - 1]
mov rcx, r12
call fcn.140041a54
nop
mov rdx, rax
lea rcx, [rdi + 0x10]
call fcn.1401fa398
nop
cmp qword [rbp + 0x17], 8
jb 0x14004271e
mov rcx, qword [rbp - 1]
call fcn.14005a61c
mov qword [rbp + 0x17], r14
mov qword [rbp + 0xf], rbx
mov word [rbp - 1], bx
cmp qword [rbp - 0x11], 8
jb 0x14004273a
mov rcx, qword [rbp - 0x29]
call fcn.14005a61c
lea rcx, [rdi + 0x10]
call fcn.140038718
mov qword [rbp - 0x11], r14
mov qword [rbp - 0x19], rbx
mov word [rbp - 0x29], bx
lea rcx, str.AppendProcessNameToPathPrefix
call fcn.1401be2f4
mov r8, rax
lea rdx, str.AppendProcessNameToPathPrefix
lea rcx, [rbp - 0x29]
call fcn.1401f2254
nop
mov r14d, 4
mov dword [rbp - 0x41], r14d
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rdx, qword [rbp - 0x29]
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x45]
xor r8d, r8d
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, 0x3bc6
test eax, eax
jne 0x1400427ba
cmp dword [rbp - 0x45], r14d
cmovne eax, ecx
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.1400419c4
nop
cmp qword [rbp - 0x11], 8
jb 0x1400427d9
mov rcx, qword [rbp - 0x29]
call fcn.14005a61c
cmp dword [rbp - 0x49], ebx
je 0x14004282c
lea rcx, [0x140226a28]
call fcn.1401be2f4
mov r8, rax
lea rdx, [0x140226a28]
lea rcx, [rdi + 0x10]
call fcn.1400312e0
lea rcx, [rbp - 1]
call fcn.140038638
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 1]
lea rcx, [rdi + 0x10]
call fcn.1401ee534
nop
cmp qword [rbp + 0x17], 8
jb 0x14004282c
mov rcx, qword [rbp - 1]
call fcn.14005a61c
mov qword [rbp - 0x11], 7
mov qword [rbp - 0x19], rbx
mov word [rbp - 0x29], bx
lea rcx, str.MaxFileCount
call fcn.1401be2f4
mov r8, rax
lea rdx, str.MaxFileCount
lea rcx, [rbp - 0x29]
call fcn.1401f2254
nop
mov dword [rbp - 0x49], r14d
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rdx, qword [rbp - 0x29]
lea rax, [rbp - 0x49]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x45]
xor r8d, r8d
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, 0x3bc6
test eax, eax
jne 0x1400428a1
cmp dword [rbp - 0x45], r14d
cmovne eax, esi
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.1400419c4
mov r11d, dword [rbp - 0x41]
mov dword [rdi + 0x38], r11d
cmp qword [rbp - 0x11], 8
jb 0x1400428c7
mov rcx, qword [rbp - 0x29]
call fcn.14005a61c
mov qword [rbp - 0x11], 7
mov qword [rbp - 0x19], rbx
mov word [rbp - 0x29], bx
lea rcx, str.MaxFileSize
call fcn.1401be2f4
mov r8, rax
lea rdx, str.MaxFileSize
lea rcx, [rbp - 0x29]
call fcn.1401f2254
nop
mov dword [rbp - 0x49], r14d
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rdx, qword [rbp - 0x29]
lea rax, [rbp - 0x49]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x45]
xor r8d, r8d
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140042937
cmp dword [rbp - 0x45], r14d
cmovne eax, esi
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.1400419c4
mov r11d, dword [rbp - 0x41]
mov dword [rdi + 0x3c], r11d
cmp qword [rbp - 0x11], 8
jb 0x14004295d
mov rcx, qword [rbp - 0x29]
call fcn.14005a61c
mov dword [rbp - 0x3d], 1
mov qword [rbp - 0x11], 7
mov qword [rbp - 0x19], rbx
mov word [rbp - 0x29], bx
lea rcx, str.WriteThrough
call fcn.1401be2f4
mov r8, rax
lea rdx, str.WriteThrough
lea rcx, [rbp - 0x29]
call fcn.1401f2254
mov dword [rbp - 0x49], r14d
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rdx, qword [rbp - 0x29]
lea rax, [rbp - 0x49]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x3d]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x45]
xor r8d, r8d
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp qword [rbp - 0x11], 8
jb 0x1400429d8
mov rcx, qword [rbp - 0x29]
call fcn.14005a61c
cmp dword [rbp - 0x3d], ebx
sete bl
mov dword [rdi + 0x40], ebx
mov rcx, rdi
call fcn.14003d0b0
nop
mov rax, rdi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1401be9b0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret