Function at 0x1400166a8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x270
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x140065010]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rsi, r9
mov r12, r8
mov r15, rcx
lea rdx, str.Unknown
lea rcx, [rsp + 0x30]
call fcn.140006ba8
nop
xor r13d, r13d
cmp dword [0x140067c2c], r13d
jne 0x140016717
call fcn.140013a38
mov dword [0x140067c2c], 1
mov ebx, dword [0x140067b74]
or r14, 0xffffffffffffffff
cmp ebx, 3
jne 0x14001673c
lea rdx, [0x140052f08]
mov rax, r14
inc rax
cmp word [rdx + rax*2], r13w
jne 0x140016730
jmp 0x14001678f
cmp ebx, 2
jne 0x140016757
lea rdx, [0x140052f10]
mov rax, r14
inc rax
cmp word [rdx + rax*2], r13w
jne 0x14001674b
jmp 0x14001678f
cmp ebx, 5
jne 0x140016772
lea rdx, [0x140052f18]
mov rax, r14
inc rax
cmp word [rdx + rax*2], r13w
jne 0x140016766
jmp 0x14001678f
cmp ebx, 6
jne 0x140016f95
lea rdx, [0x140052f20]
mov rax, r14
inc rax
cmp word [rdx + rax*2], r13w
jne 0x140016785
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.140007134
lea rdx, [0x1400506b0]
lea rcx, [rsp + 0x48]
call fcn.140006ba8
nop
mov qword [rsp + 0x58], r13
mov dil, r13b
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftVisualStudioVSPerf
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001694f
mov dword [rsp + 0x40], r13d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.CollectionToolsDir
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140016938
mov edx, dword [rsp + 0x40]
lea rcx, [rbp + 0x20]
call fcn.140002f60
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov r14, qword [rbp + 0x20]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.CollectionToolsDir
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140016912
cmp dword [rsp + 0x50], 1
jne 0x140016912
mov qword [rbp + 0x48], r13
mov qword [rbp + 0x50], r13
mov qword [rbp + 0x48], r13
mov qword [rbp + 0x50], 7
mov word [rbp + 0x38], r13w
mov rdx, r14
lea rcx, [rbp + 0x38]
call fcn.14000346c
nop
mov rax, qword [rbp + 0x48]
lea rdx, [rax - 1]
cmp rax, rdx
ja 0x1400168a2
call fcn.140003a9c
int3
lea rax, [rbp + 0x38]
mov rcx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x50]
cmp r8, 8
cmovae rax, rcx
cmp word [rax + rdx*2], 0x5c
je 0x1400168d5
lea rdx, [0x140052b58]
lea rcx, [rbp + 0x38]
call fcn.140003188
mov r8, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x38]
lea rdx, [rbp + 0x38]
cmp r8, 8
cmovae rdx, rcx
test rdx, rdx
jne 0x1400168eb
mov eax, r13d
jmp 0x1400168f9
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r13w
jne 0x1400168ef
mov r8d, eax
lea rcx, [rsp + 0x48]
call fcn.140007134
nop
lea rcx, [rbp + 0x38]
call fcn.1400033dc
jmp 0x140016929
mov edx, 0xe1232723
mov r8d, 0x119
mov rcx, qword [r15 + 8]
call fcn.140003ebc
mov dil, 1
lea rcx, [rbp + 0x20]
call fcn.140002ee4
or r14, 0xffffffffffffffff
jmp 0x14001694f
mov edx, 0xe1232723
mov r8d, 0x11f
mov rcx, qword [r15 + 8]
call fcn.140003ebc
mov dil, 1
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001695f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, dil
jne 0x140016f6d
lea rdi, str.VSPerf_Portable.xml
mov r8, rdi
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x80]
call fcn.14001735c
nop
mov rdx, rax
mov rcx, r12
call fcn.14000d7c4
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1400169ad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [r12]
call fcn.140016654
test eax, eax
jne 0x1400169db
mov rcx, qword [r15 + 8]
mov qword [rbp - 0x78], rdi
mov rax, qword [rcx]
lea r9, [rbp - 0x78]
mov edx, 0xe12305e0
mov r8d, 1
call qword [rax]
jmp 0x140016f6d
cmp dword [0x140067c2c], r13d
jne 0x1400169f6
call fcn.140013a38
mov edi, 1
mov dword [0x140067c2c], edi
jmp 0x1400169fb
mov edi, 1
mov ecx, dword [0x140067b64]
shr ecx, 4
and ecx, 0xf
mov r12d, 0xa
mov r9d, r12d
lea r8d, [r12 + 0x36]
lea rdx, [rbp + 0x60]
call fcn.1400390b0
cmp dword [0x140067c2c], r13d
jne 0x140016a32
call fcn.140013a38
mov dword [0x140067c2c], edi
mov ecx, dword [0x140067b64]
and ecx, 0xf
mov r9d, r12d
mov r8d, 0x40
lea rdx, [rbp + 0xe0]
call fcn.1400390b0
lea rdx, str..xml
lea rcx, [rsp + 0x60]
call fcn.14000d8ac
nop
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x50]
call fcn.1400172b8
nop
lea r12, [0x140052fd8]
mov r8, r12
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14001735c
nop
lea r8, [rbp + 0x60]
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.14001735c
nop
mov r8, r12
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.14001735c
nop
lea r8, [rbp + 0xe0]
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.14001735c
nop
lea r8, [rsp + 0x60]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14000cff0
nop
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140016af1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140016b12
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140016b33
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140016b54
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140016b75
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140016b96
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x48]
call fcn.14000cff0
nop
mov rdx, rax
mov rcx, rsi
call fcn.14000d7c4
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140016bd6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rsi]
call fcn.140016654
test eax, eax
jne 0x140016f47
lea rdx, str..xml
lea rcx, [rsp + 0x68]
call fcn.14000d8ac
nop
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x28]
call fcn.1400172b8
nop
mov r8, r12
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.14001735c
nop
lea r8, [rbp + 0x60]
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.14001735c
nop
lea r8, [rsp + 0x68]
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.14000cff0
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14000d7c4
nop
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140016c69
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140016c8a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140016cab
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140016ccc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140016ced
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x20]
call fcn.14000cff0
nop
mov rdx, rax
mov rcx, rsi
call fcn.14000d7c4
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140016d2d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rsi]
call fcn.140016654
test eax, eax
jne 0x140016f47
cmp ebx, 2
jne 0x140016e32
cmp dword [0x140067c2c], r13d
jne 0x140016d5a
call fcn.140013a38
mov dword [0x140067c2c], edi
cmp dword [0x140067c38], r13d
jne 0x140016d84
mov eax, dword [0x140067b78]
mov dword [0x140067c30], eax
test eax, eax
jne 0x140016d7e
call fcn.140013cf8
mov dword [0x140067c34], eax
mov dword [0x140067c38], edi
cmp dword [0x140067b8c], r13d
jne 0x140016d98
call fcn.140013c48
mov dword [0x140067b8c], edi
cmp dword [0x140067b54], r13d
je 0x140016e32
lea rdx, str._arch.xml
lea rcx, [rsp + 0x70]
call fcn.14000d8ac
nop
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x10]
call fcn.1400172b8
nop
lea r8, [rsp + 0x70]
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.14000cff0
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14000d7c4
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140016e07
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140016e28
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x70]
jmp 0x140016eba
lea rdx, str..xml
lea rcx, [rsp + 0x78]
call fcn.14000d8ac
nop
lea r8, [rsp + 0x30]
lea rcx, [rbp]
call fcn.1400172b8
nop
lea r8, [rsp + 0x78]
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.14000cff0
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14000d7c4
nop
mov rdx, qword [rbp - 8]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140016e94
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140016eb5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140016ed6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 8]
call fcn.14000cff0
nop
mov rdx, rax
mov rcx, rsi
call fcn.14000d7c4
nop
mov rdx, qword [rbp + 8]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140016f16
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rsi]
call fcn.140016654
test eax, eax
jne 0x140016f47
mov rcx, qword [r15 + 8]
mov rax, qword [rsp + 0x38]
mov qword [rbp + 0x10], rax
mov rax, qword [rcx]
lea r9, [rbp + 0x10]
mov r8d, edi
mov edx, 0xe12305e0
call qword [rax]
mov ebx, 0x80004005
jmp 0x140016f4a
mov ebx, r13d
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140016f72
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140016f72
mov ebx, 0x80004005
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140016fae
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140016fae
mov rcx, qword [r15 + 8]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xe12305e7
call qword [rax]
mov ebx, 0x80004005
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov ecx, r14d
lock xadd dword [rdx + 0x10], ecx
add ecx, r14d
test ecx, ecx
jg 0x140016fd0
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140026390
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret