Function at 0x10006bca8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xe0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x100142128]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x78], rdx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
lea r13d, [r12 + 7]
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
lea r8d, [r12 + 0x1d]
lea rdx, [0x1000085d8]
lea rcx, [rsp + 0x48]
call fcn.10002cf94
nop
lea r8, [rsp + 0x48]
lea edx, [r12 + 4]
lea rcx, [rsp + 0xa8]
call fcn.1000a11f0
nop
cmp qword [rsp + 0x68], 8
jb 0x10006bd4b
mov rcx, qword [rsp + 0x50]
cmp rcx, r12
je 0x10006bd4b
call sub.msvcrt.dll_free
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
or r14, 0xffffffffffffffff
cmp qword [rbp + 0xa0], r12
jne 0x10006bf16
mov qword [rsp + 0xa0], r13
mov qword [rsp + 0x98], r12
mov word [rsp + 0x88], r12w
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x10000bee0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r12d
jne 0x10006bee0
mov dword [rsp + 0x34], r12d
mov dword [rsp + 0x30], r12d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, [0x100008618]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r12d
jne 0x10006bed4
mov edx, dword [rsp + 0x30]
inc edx
add rdx, rdx
lea ecx, [r14 + 0x41]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
cmp rax, r12
je 0x10006bed4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, [0x100008618]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r12d
jne 0x10006becb
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
xor eax, eax
mov rcx, r14
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.10002cf94
nop
mov r9, r14
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x80]
call fcn.10002cd2c
nop
cmp qword [rsp + 0x68], 8
jb 0x10006bea7
mov rcx, qword [rsp + 0x50]
cmp rcx, r12
je 0x10006bea7
call sub.msvcrt.dll_free
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
lea rdx, [rbp + 0x88]
lea rcx, [rsp + 0x80]
call fcn.100040318
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rsp + 0xa0], 8
jb 0x10006befd
mov rcx, qword [rsp + 0x88]
cmp rcx, r12
je 0x10006befd
call sub.msvcrt.dll_free
mov qword [rsp + 0xa0], r13
mov qword [rsp + 0x98], r12
mov word [rsp + 0x88], r12w
mov qword [rbx + 0x20], r13
mov qword [rbx + 0x18], r12
mov word [rbx + 8], r12w
lea rdx, [rbp + 0x88]
mov r9, r14
xor r8d, r8d
mov rcx, rbx
call fcn.10002cd2c
nop
mov dword [rsp + 0x40], 1
lea rcx, [rsp + 0xa8]
call fcn.1000a1360
mov rax, rbx
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.1000c8b30
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret