Function at 0x140008680
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140158238]
xor rax, rsp
mov qword [rbp + 0x28], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdx
mov edx, 0x101
call fcn.140007f70
mov rbx, rax
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400086d0
mov rdx, qword [rdi]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r14d, eax
test eax, eax
jne 0x14000882a
cmp dword [rsp + 0x34], 4
jne 0x1400088be
mov ecx, dword [rsp + 0x30]
call fcn.1400b33bc
mov r14, rax
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140008723
mov rdx, qword [rdi]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, 1
mov rcx, r14
test r15d, r15d
jne 0x140008799
mov ebx, dword [r14]
call fcn.1400b3088
nop
mov rcx, rsi
call fcn.140001af0
nop
mov rcx, rdi
call fcn.140001af0
mov eax, ebx
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.1400b3120
mov rbx, qword [rsp + 0x170]
add rsp, 0x130
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1400b3088
nop
mov edx, r15d
lea rcx, [rbp - 0x38]
call fcn.140003e70
mov rbx, rax
mov r8, rsi
lea rdx, [0x1400c3830]
lea rcx, [rbp - 0x58]
call fcn.140005ec0
nop
lea r8, [0x1400c382c]
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.140005e50
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140005df0
nop
lea r8, [0x1400c3824]
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.140005e50
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.140005dc0
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140006870
lea rdx, [0x1401392e8]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, r14d
lea rcx, [rbp - 0x18]
call fcn.140003e70
mov rbx, rax
mov r8, rsi
lea rdx, [0x1400c3830]
lea rcx, [rbp + 8]
call fcn.140005ec0
nop
lea r8, [0x1400c382c]
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140005e50
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.140005df0
nop
lea r8, [0x1400c3824]
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.140005e50
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.140005dc0
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140006870
lea rdx, [0x1401392e8]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, rsi
lea rdx, str.Registry_value
lea rcx, [rbp - 0x38]
call fcn.140005ec0
nop
lea r8, [0x1400c382c]
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.140005e50
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.140005df0
nop
lea r8, str._has_wrong_type
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140005e50
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140006870
lea rdx, [0x1401392e8]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
int3