Function at 0x14004268c
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.1401be384
mov r8, rax
lea rdx, str.PathPrefix
lea rcx, [rbp - 0x29]
call fcn.1401f2230
nop
lea r8, [rbp - 0x29]
lea rdx, [rbp - 1]
mov rcx, r12
call fcn.140041a7c
nop
mov rdx, rax
lea rcx, [rdi + 0x10]
call fcn.1401fa374
nop
cmp qword [rbp + 0x17], 8
jb 0x140042746
mov rcx, qword [rbp - 1]
call fcn.14005a6ac
mov qword [rbp + 0x17], r14
mov qword [rbp + 0xf], rbx
mov word [rbp - 1], bx
cmp qword [rbp - 0x11], 8
jb 0x140042762
mov rcx, qword [rbp - 0x29]
call fcn.14005a6ac
lea rcx, [rdi + 0x10]
call fcn.140038740
mov qword [rbp - 0x11], r14
mov qword [rbp - 0x19], rbx
mov word [rbp - 0x29], bx
lea rcx, str.AppendProcessNameToPathPrefix
call fcn.1401be384
mov r8, rax
lea rdx, str.AppendProcessNameToPathPrefix
lea rcx, [rbp - 0x29]
call fcn.1401f2230
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 0x1400427e2
cmp dword [rbp - 0x45], r14d
cmovne eax, ecx
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.1400419ec
nop
cmp qword [rbp - 0x11], 8
jb 0x140042801
mov rcx, qword [rbp - 0x29]
call fcn.14005a6ac
cmp dword [rbp - 0x49], ebx
je 0x140042854
lea rcx, [0x140226a28]
call fcn.1401be384
mov r8, rax
lea rdx, [0x140226a28]
lea rcx, [rdi + 0x10]
call fcn.140031308
lea rcx, [rbp - 1]
call fcn.140038660
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 1]
lea rcx, [rdi + 0x10]
call fcn.1401ee510
nop
cmp qword [rbp + 0x17], 8
jb 0x140042854
mov rcx, qword [rbp - 1]
call fcn.14005a6ac
mov qword [rbp - 0x11], 7
mov qword [rbp - 0x19], rbx
mov word [rbp - 0x29], bx
lea rcx, str.MaxFileCount
call fcn.1401be384
mov r8, rax
lea rdx, str.MaxFileCount
lea rcx, [rbp - 0x29]
call fcn.1401f2230
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 0x1400428c9
cmp dword [rbp - 0x45], r14d
cmovne eax, esi
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.1400419ec
mov r11d, dword [rbp - 0x41]
mov dword [rdi + 0x38], r11d
cmp qword [rbp - 0x11], 8
jb 0x1400428ef
mov rcx, qword [rbp - 0x29]
call fcn.14005a6ac
mov qword [rbp - 0x11], 7
mov qword [rbp - 0x19], rbx
mov word [rbp - 0x29], bx
lea rcx, str.MaxFileSize
call fcn.1401be384
mov r8, rax
lea rdx, str.MaxFileSize
lea rcx, [rbp - 0x29]
call fcn.1401f2230
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 0x14004295f
cmp dword [rbp - 0x45], r14d
cmovne eax, esi
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.1400419ec
mov r11d, dword [rbp - 0x41]
mov dword [rdi + 0x3c], r11d
cmp qword [rbp - 0x11], 8
jb 0x140042985
mov rcx, qword [rbp - 0x29]
call fcn.14005a6ac
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.1401be384
mov r8, rax
lea rdx, str.WriteThrough
lea rcx, [rbp - 0x29]
call fcn.1401f2230
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 0x140042a00
mov rcx, qword [rbp - 0x29]
call fcn.14005a6ac
cmp dword [rbp - 0x3d], ebx
sete bl
mov dword [rdi + 0x40], ebx
mov rcx, rdi
call fcn.14003d0d8
nop
mov rax, rdi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1401bea40
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret