Function at 0x140020520
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x140065340]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor ebx, ebx
mov rsi, r8
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0x38], rbx
cmp r8, 0x104
jbe 0x140020567
xor eax, eax
jmp 0x140020897
add r8, r8
xor edx, edx
mov rcx, rdi
call fcn.140021100
lea rax, [rsp + 0x38]
lea rdx, str.SOFTWARENVIDIA_CorporationLoggingDefinitionsLogManagersFileOut
mov r9d, 0x101
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14002073a
lea rax, [rsp + 0x38]
lea rdx, str.SOFTWARENVIDIA_CorporationLoggingDefinitionsLogManagersFileOut
mov r9d, 0x101
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14002073a
lea rax, [rsp + 0x38]
lea rdx, str.SOFTWARENVIDIA_CorporationInstaller
mov r9d, 0x101
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140020895
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x44]
lea rdx, str.Logging
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x44], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002072a
cmp dword [rsp + 0x30], 1
jne 0x14002072a
lea rcx, [r14 + 0x2a4]
lea r8, str.GlobalNVInstallerLogFile
mov edx, 0x104
call fcn.1400229ec
lea rcx, [r14 + 0x4ac]
lea r8, str.NVInstallerLogSharedMemory
mov edx, 0x104
call fcn.1400229ec
lea rcx, [rsp + 0x52]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x50], bx
call fcn.140021100
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, str.LogPath
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140020712
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x140020712
lea rax, str.NVInstaller.log
lea r9, [rsp + 0x50]
lea r8, str._s_s
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.1400237c0
mov rcx, qword [rsp + 0x38]
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140020895
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call fcn.140020460
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140020895
lea rcx, [rbp + 0x162]
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x4c8], r15
mov word [rbp + 0x160], bx
call fcn.140021100
lea rcx, [rsp + 0x52]
xor edx, edx
mov r8d, 0x206
mov dword [rsp + 0x30], 0x208
mov word [rsp + 0x50], bx
call fcn.140021100
lea rdx, [rsp + 0x50]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140020882
lea eax, [r15 - 1]
cmp eax, 0x102
ja 0x140020882
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea rcx, [r14 + 0x2a4]
lea r8, str.GlobalDBInstallerLogFile
mov edx, 0x104
call fcn.1400229ec
lea rcx, [r14 + 0x4ac]
lea r8, str.DBInstallerLogSharedMemory
mov edx, 0x104
call fcn.1400229ec
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x160]
lea rdx, str.PathPrefix
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140020882
lea rcx, [rbp + 0x160]
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x140020882
lea rax, [rsp + 0x50]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], bx
jne 0x140020837
mov eax, dword [rsp + 0x30]
add rax, 5
add rcx, rax
cmp rcx, 0x104
jae 0x140020882
lea rax, [rsp + 0x50]
lea r9, [rbp + 0x160]
lea r8, str._s._s.log
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.1400237c0
cmp word [rdi], bx
mov ecx, 1
cmovne ebx, ecx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [rsp + 0x4c8]
mov eax, ebx
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.1400215b0
add rsp, 0x480
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret