Function at 0x140042de0
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 [0x1402ef1f8]
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.1401bf020
mov r8, rax
lea rdx, str.PathPrefix
lea rcx, [rbp - 0x29]
call fcn.1400028c4
nop
lea r8, [rbp - 0x29]
lea rdx, [rbp - 1]
mov rcx, r12
call fcn.1400422cc
nop
mov rdx, rax
lea rcx, [rdi + 0x10]
call fcn.1401fad10
nop
cmp qword [rbp + 0x17], 8
jb 0x140042e9a
mov rcx, qword [rbp - 1]
call fcn.14005b2ec
mov qword [rbp + 0x17], r14
mov qword [rbp + 0xf], rbx
mov word [rbp - 1], bx
cmp qword [rbp - 0x11], 8
jb 0x140042eb6
mov rcx, qword [rbp - 0x29]
call fcn.14005b2ec
lea rcx, [rdi + 0x10]
call fcn.140039308
mov qword [rbp - 0x11], r14
mov qword [rbp - 0x19], rbx
mov word [rbp - 0x29], bx
lea rcx, str.AppendProcessNameToPathPrefix
call fcn.1401bf020
mov r8, rax
lea rdx, str.AppendProcessNameToPathPrefix
lea rcx, [rbp - 0x29]
call fcn.1400028c4
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 0x140042f36
cmp dword [rbp - 0x45], r14d
cmovne eax, ecx
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.14004223c
nop
cmp qword [rbp - 0x11], 8
jb 0x140042f55
mov rcx, qword [rbp - 0x29]
call fcn.14005b2ec
cmp dword [rbp - 0x49], ebx
je 0x140042fa8
lea rcx, [0x140227e78]
call fcn.1401bf020
mov r8, rax
lea rdx, [0x140227e78]
lea rcx, [rdi + 0x10]
call fcn.140031ec8
lea rcx, [rbp - 1]
call fcn.140039228
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 1]
lea rcx, [rdi + 0x10]
call fcn.1401ef014
nop
cmp qword [rbp + 0x17], 8
jb 0x140042fa8
mov rcx, qword [rbp - 1]
call fcn.14005b2ec
mov qword [rbp - 0x11], 7
mov qword [rbp - 0x19], rbx
mov word [rbp - 0x29], bx
lea rcx, str.MaxFileCount
call fcn.1401bf020
mov r8, rax
lea rdx, str.MaxFileCount
lea rcx, [rbp - 0x29]
call fcn.1400028c4
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 0x14004301d
cmp dword [rbp - 0x45], r14d
cmovne eax, esi
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.14004223c
mov r11d, dword [rbp - 0x41]
mov dword [rdi + 0x38], r11d
cmp qword [rbp - 0x11], 8
jb 0x140043043
mov rcx, qword [rbp - 0x29]
call fcn.14005b2ec
mov qword [rbp - 0x11], 7
mov qword [rbp - 0x19], rbx
mov word [rbp - 0x29], bx
lea rcx, str.MaxFileSize
call fcn.1401bf020
mov r8, rax
lea rdx, str.MaxFileSize
lea rcx, [rbp - 0x29]
call fcn.1400028c4
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 0x1400430b3
cmp dword [rbp - 0x45], r14d
cmovne eax, esi
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.14004223c
mov r11d, dword [rbp - 0x41]
mov dword [rdi + 0x3c], r11d
cmp qword [rbp - 0x11], 8
jb 0x1400430d9
mov rcx, qword [rbp - 0x29]
call fcn.14005b2ec
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.1401bf020
mov r8, rax
lea rdx, str.WriteThrough
lea rcx, [rbp - 0x29]
call fcn.1400028c4
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 0x140043154
mov rcx, qword [rbp - 0x29]
call fcn.14005b2ec
cmp dword [rbp - 0x3d], ebx
sete bl
mov dword [rdi + 0x40], ebx
mov rcx, rdi
call fcn.14003d974
nop
mov rax, rdi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1401be840
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret