Function at 0x140015570
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x140035460]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor ebx, ebx
mov r12, r8
mov rsi, rdx
mov r13, rcx
mov qword [rsp + 0x38], rbx
cmp r8, 0x104
jbe 0x1400155b8
xor eax, eax
jmp 0x1400158e9
add r8, r8
xor edx, edx
mov rcx, rsi
call fcn.140015ef0
lea rdx, [rsp + 0x38]
mov r9d, 0x101
mov qword [rsp + 0x20], rdx
lea rdx, str.SOFTWARENVIDIA_CorporationLoggingDefinitionsLogManagersFileOut
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14001578b
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 0x14001578b
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 0x1400158e7
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 0x14001577b
cmp dword [rsp + 0x30], 1
jne 0x14001577b
lea rcx, [r13 + 0x2a4]
lea r8, str.GlobalNVInstallerLogFile
mov edx, 0x104
call fcn.140017b14
lea rcx, [r13 + 0x4ac]
lea r8, str.NVInstallerLogSharedMemory
mov edx, 0x104
call fcn.140017b14
lea rcx, [rsp + 0x52]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x50], bx
call fcn.140015ef0
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 0x140015763
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x140015763
lea rax, str.NVInstaller.log
lea r9, [rsp + 0x50]
lea r8, str._s_s
mov rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14001802c
mov rcx, qword [rsp + 0x38]
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400158e7
mov r8, r12
mov rdx, rsi
mov rcx, r13
call fcn.1400154b0
mov edx, 1
test eax, eax
cmovne ebx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400158e7
lea rcx, [rbp + 0x162]
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x4c8], rdi
mov word [rbp + 0x160], bx
call fcn.140015ef0
lea rcx, [rsp + 0x52]
xor edx, edx
mov r8d, 0x206
mov dword [rsp + 0x30], 0x208
mov word [rsp + 0x50], bx
call fcn.140015ef0
lea rdx, [rsp + 0x50]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1400158d4
test edi, edi
je 0x1400158d4
cmp edi, 0x104
jae 0x1400158d4
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea rcx, [r13 + 0x2a4]
lea r8, str.GlobalDBInstallerLogFile
mov edx, 0x104
call fcn.140017b14
lea rcx, [r13 + 0x4ac]
lea r8, str.DBInstallerLogSharedMemory
mov edx, 0x104
call fcn.140017b14
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], rdx
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 0x1400158d4
lea rcx, [rbp + 0x160]
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x1400158d4
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
mov eax, dword [rsp + 0x30]
not rcx
lea rcx, [rcx + rax + 4]
cmp rcx, 0x104
jae 0x1400158d4
lea rax, [rsp + 0x50]
lea r9, [rbp + 0x160]
lea r8, str._s._s.log
mov rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14001802c
cmp word [rsi], bx
mov edx, 1
cmovne ebx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x4c8]
mov eax, ebx
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.1400167a0
add rsp, 0x480
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret