Function at 0x140008940
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.140007f70
mov r12, rax
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400089c3
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 0x140008c22
cmp dword [rsp + 0x38], 1
jne 0x140008cb6
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.1400b33bc
mov r14, rax
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140008a2e
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 0x140008b8a
mov ecx, dword [rsp + 0x30]
mov eax, ecx
shr rax, 1
cmp word [r14 + rax*2 - 2], r13w
jne 0x140008a79
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 0x140008afc
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140008ae3
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140008ade
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140008b35
mov rcx, r8
call fcn.1400b3088
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 0x140008b01
mov rsi, qword [rsp + 0x70]
cmp rsi, 8
jb 0x140008b41
lea rdx, [rsi*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008b3c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008b3c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b3088
mov edx, 2
mov rcx, r14
call fcn.1400b3088
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.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, 2
mov rcx, r14
call fcn.1400b3088
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.140005ec0
nop
lea r8, [0x1400c382c]
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140005e50
nop
mov r8, rdi
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, r14d
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, rdi
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, rdi
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
int3