Function at 0x140008800
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 rdi, r8
mov r15, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
xor r14d, r14d
mov dword [rsp + 0x34], r14d
mov qword [rcx], r14
mov qword [rcx + 0x10], r14
mov esi, 7
mov qword [rcx + 0x18], rsi
mov word [rcx], r14w
mov dword [rsp + 0x34], 1
mov edx, 0x101
mov rcx, r15
call fcn.140007e30
mov r12, rax
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140008883
mov rdx, qword [rdi]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r14d, eax
test eax, eax
jne 0x140008ae2
cmp dword [rsp + 0x38], 1
jne 0x140008b76
mov ecx, dword [rsp + 0x30]
shr rcx, 1
inc rcx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400b31ec
mov r14, rax
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400088ee
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, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r13d, eax
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r13d, r13d
jne 0x140008a4a
mov ecx, dword [rsp + 0x30]
mov eax, ecx
shr rax, 1
cmp word [r14 + rax*2 - 2], r13w
jne 0x140008939
add ecx, 0xfffffffe
mov dword [rsp + 0x30], ecx
mov r8d, ecx
shr r8, 1
xor r12d, r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], rsi
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.140003cb0
lea rax, [rsp + 0x58]
cmp rbx, rax
je 0x1400089bc
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400089a3
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000899e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400089f5
mov rcx, r8
call fcn.1400b2eb8
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rbx + 0x10], xmm1
mov word [rsp + 0x58], r12w
jmp 0x1400089c1
mov rsi, qword [rsp + 0x70]
cmp rsi, 8
jb 0x140008a01
lea rdx, [rsi*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400089fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400089fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b2eb8
mov edx, 2
mov rcx, r14
call fcn.1400b2eb8
nop
mov rcx, r15
call fcn.140001af0
nop
mov rcx, rdi
call fcn.140001af0
mov rax, rbx
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.1400b2f50
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, 2
mov rcx, r14
call fcn.1400b2eb8
mov edx, r13d
lea rcx, [rbp - 0x28]
call fcn.140003e70
mov rbx, rax
mov r8, r15
lea rdx, [0x1400c3830]
lea rcx, [rbp - 0x48]
call fcn.140005dc0
nop
lea r8, [0x1400c382c]
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140005d50
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140005cf0
nop
lea r8, [0x1400c3824]
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.140005d50
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.140005cc0
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140006770
lea rdx, [0x1401392b0]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, r14d
lea rcx, [rbp - 8]
call fcn.140003e70
mov rbx, rax
mov r8, r15
lea rdx, [0x1400c3830]
lea rcx, [rbp + 0x18]
call fcn.140005dc0
nop
lea r8, [0x1400c382c]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140005d50
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140005cf0
nop
lea r8, [0x1400c3824]
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.140005d50
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.140005cc0
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140006770
lea rdx, [0x1401392b0]
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.140005dc0
nop
lea r8, [0x1400c382c]
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.140005d50
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140005cf0
nop
lea r8, str._has_wrong_type
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140005d50
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140006770
lea rdx, [0x1401392b0]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
int3