Function at 0x140008350
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x140158238]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov rsi, r8
mov r15, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
xor r13d, r13d
mov dword [rsp + 0x38], r13d
mov edx, 0x101
mov rcx, r15
call fcn.140007f70
mov r12, rax
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400083b7
mov rdx, qword [rsi]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140008571
cmp dword [rsp + 0x34], 3
jne 0x140008604
mov r14d, dword [rsp + 0x30]
mov qword [rdi], r13
mov qword [rdi + 8], r13
mov qword [rdi + 0x10], r13
test r14, r14
je 0x140008467
cmp r14, 0x1000
jb 0x140008439
lea rcx, [r14 + 0x27]
cmp rcx, r14
jbe 0x140008679
call fcn.1400b304c
mov rcx, rax
test rax, rax
je 0x140008432
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140008441
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.1400b304c
mov qword [rdi], rax
mov qword [rdi + 8], rax
add rax, r14
mov qword [rdi + 0x10], rax
mov rbx, qword [rdi]
mov r8, r14
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
lea rax, [rbx + r14]
mov qword [rdi + 8], rax
mov dword [rsp + 0x38], 1
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14000847c
mov rdx, qword [rsi]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400084e7
mov rcx, r15
call fcn.140001af0
nop
mov rcx, rsi
call fcn.140001af0
mov rax, rdi
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.1400b3120
mov rbx, qword [rsp + 0x198]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov edx, ebx
lea rcx, [rbp - 0x28]
call fcn.140003e70
mov rbx, rax
mov r8, r15
lea rdx, [0x1400c3830]
lea rcx, [rbp - 0x48]
call fcn.140005ec0
nop
lea r8, [0x1400c382c]
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140005e50
nop
mov r8, rsi
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140005df0
nop
lea r8, [0x1400c3824]
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.140005e50
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.140005dc0
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140006870
lea rdx, [0x1401392e8]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, ebx
lea rcx, [rbp - 8]
call fcn.140003e70
mov rbx, rax
mov r8, r15
lea rdx, [0x1400c3830]
lea rcx, [rbp + 0x18]
call fcn.140005ec0
nop
lea r8, [0x1400c382c]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140005e50
nop
mov r8, rsi
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140005df0
nop
lea r8, [0x1400c3824]
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.140005e50
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.140005dc0
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140006870
lea rdx, [0x1401392e8]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, r15
lea rdx, str.Registry_value
lea rcx, [rbp - 0x28]
call fcn.140005ec0
nop
lea r8, [0x1400c382c]
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.140005e50
nop
mov r8, rsi
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140005df0
nop
lea r8, str._has_wrong_type
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140005e50
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140006870
lea rdx, [0x1401392e8]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.140001c20
int3