Function at 0x140042cec
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 [0x1402f2208]
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.1401c0bf0
mov r8, rax
lea rdx, str.PathPrefix
lea rcx, [rbp - 0x29]
call fcn.140002850
nop
lea r8, [rbp - 0x29]
lea rdx, [rbp - 1]
mov rcx, r12
call fcn.1400420dc
nop
mov rdx, rax
lea rcx, [rdi + 0x10]
call fcn.1401fcca8
nop
cmp qword [rbp + 0x17], 8
jb 0x140042da6
mov rcx, qword [rbp - 1]
call fcn.14005ce7c
mov qword [rbp + 0x17], r14
mov qword [rbp + 0xf], rbx
mov word [rbp - 1], bx
cmp qword [rbp - 0x11], 8
jb 0x140042dc2
mov rcx, qword [rbp - 0x29]
call fcn.14005ce7c
lea rcx, [rdi + 0x10]
call fcn.140038c7c
mov qword [rbp - 0x11], r14
mov qword [rbp - 0x19], rbx
mov word [rbp - 0x29], bx
lea rcx, str.AppendProcessNameToPathPrefix
call fcn.1401c0bf0
mov r8, rax
lea rdx, str.AppendProcessNameToPathPrefix
lea rcx, [rbp - 0x29]
call fcn.140002850
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 0x140042e42
cmp dword [rbp - 0x45], r14d
cmovne eax, ecx
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.14004204c
nop
cmp qword [rbp - 0x11], 8
jb 0x140042e61
mov rcx, qword [rbp - 0x29]
call fcn.14005ce7c
cmp dword [rbp - 0x49], ebx
je 0x140042eb4
lea rcx, [0x140229e98]
call fcn.1401c0bf0
mov r8, rax
lea rdx, [0x140229e98]
lea rcx, [rdi + 0x10]
call fcn.1400318e8
lea rcx, [rbp - 1]
call fcn.140038b9c
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 1]
lea rcx, [rdi + 0x10]
call fcn.14002e540
nop
cmp qword [rbp + 0x17], 8
jb 0x140042eb4
mov rcx, qword [rbp - 1]
call fcn.14005ce7c
mov qword [rbp - 0x11], 7
mov qword [rbp - 0x19], rbx
mov word [rbp - 0x29], bx
lea rcx, str.MaxFileCount
call fcn.1401c0bf0
mov r8, rax
lea rdx, str.MaxFileCount
lea rcx, [rbp - 0x29]
call fcn.140002850
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 0x140042f29
cmp dword [rbp - 0x45], r14d
cmovne eax, esi
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.14004204c
mov r11d, dword [rbp - 0x41]
mov dword [rdi + 0x38], r11d
cmp qword [rbp - 0x11], 8
jb 0x140042f4f
mov rcx, qword [rbp - 0x29]
call fcn.14005ce7c
mov qword [rbp - 0x11], 7
mov qword [rbp - 0x19], rbx
mov word [rbp - 0x29], bx
lea rcx, str.MaxFileSize
call fcn.1401c0bf0
mov r8, rax
lea rdx, str.MaxFileSize
lea rcx, [rbp - 0x29]
call fcn.140002850
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 0x140042fbf
cmp dword [rbp - 0x45], r14d
cmovne eax, esi
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.14004204c
mov r11d, dword [rbp - 0x41]
mov dword [rdi + 0x3c], r11d
cmp qword [rbp - 0x11], 8
jb 0x140042fe5
mov rcx, qword [rbp - 0x29]
call fcn.14005ce7c
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.1401c0bf0
mov r8, rax
lea rdx, str.WriteThrough
lea rcx, [rbp - 0x29]
call fcn.140002850
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 0x140043060
mov rcx, qword [rbp - 0x29]
call fcn.14005ce7c
cmp dword [rbp - 0x3d], ebx
sete bl
mov dword [rdi + 0x40], ebx
mov rcx, rdi
call fcn.14003d5c8
nop
mov rax, rdi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1401c0410
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret