Function at 0x10006c898
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x100142128]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, rdx
mov r12, rcx
mov qword [rsp + 0x70], rdx
xor r13d, r13d
mov dword [rsp + 0x68], r13d
lea r14d, [r13 + 7]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r13
mov word [rsp + 0x40], r13w
lea r8d, [r13 + 0x20]
lea rdx, [0x100008760]
lea rcx, [rsp + 0x38]
call fcn.10002cf94
nop
lea r8, [rsp + 0x38]
lea edx, [r13 + 4]
lea rcx, [rsp + 0x80]
call fcn.1000a11f0
nop
cmp qword [rsp + 0x58], 8
jb 0x10006c937
mov rcx, qword [rsp + 0x40]
cmp rcx, r13
je 0x10006c937
call sub.msvcrt.dll_free
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r13
mov word [rsp + 0x40], r13w
or r15, 0xffffffffffffffff
cmp qword [r12 + 0x238], r13
jne 0x10006cb21
mov qword [rsp + 0x60], r13
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x10000a4a0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp eax, r13d
jne 0x10006cac0
mov dword [rsp + 0x34], r13d
mov dword [rsp + 0x30], r13d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, [0x10000a480]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp eax, r13d
jne 0x10006cac0
cmp dword [rsp + 0x34], 1
jne 0x10006cabb
mov ecx, dword [rsp + 0x30]
inc ecx
add rcx, rcx
call qword [sym.imp.msvcrt.dll_malloc]
mov rbp, rax
cmp rax, r13
je 0x10006cab4
mov r8d, dword [rsp + 0x30]
inc r8d
add r8, r8
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, [0x10000a480]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp eax, r13d
jne 0x10006caa9
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r13
mov word [rsp + 0x40], r13w
xor eax, eax
mov rcx, r15
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbp
lea rcx, [rsp + 0x38]
call fcn.10002cf94
nop
lea rcx, [r12 + 0x220]
mov r9, r15
xor r8d, r8d
lea rdx, [rsp + 0x38]
call fcn.10002cd2c
nop
cmp qword [rsp + 0x58], 8
jb 0x10006ca99
mov rcx, qword [rsp + 0x40]
cmp rcx, r13
je 0x10006ca99
call sub.msvcrt.dll_free
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r13
mov word [rsp + 0x40], r13w
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_free]
jmp 0x10006cac0
mov ebx, 0xe
jmp 0x10006cac0
mov ebx, 0xd
mov rcx, qword [rsp + 0x60]
cmp rcx, r13
je 0x10006cad0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, r13d
je 0x10006cb21
lea rdx, [rsp + 0x38]
mov rcx, r12
call fcn.10006bf84
nop
lea rcx, [r12 + 0x220]
mov r9, r15
xor r8d, r8d
mov rdx, rax
call fcn.10002cd2c
nop
cmp qword [rsp + 0x58], 8
jb 0x10006cb11
mov rcx, qword [rsp + 0x40]
cmp rcx, r13
je 0x10006cb11
call sub.msvcrt.dll_free
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r13
mov word [rsp + 0x40], r13w
mov qword [rsi + 0x20], r14
mov qword [rsi + 0x18], r13
mov word [rsi + 8], r13w
lea rdx, [r12 + 0x220]
mov r9, r15
xor r8d, r8d
mov rcx, rsi
call fcn.10002cd2c
nop
mov dword [rsp + 0x68], 1
lea rcx, [rsp + 0x80]
call fcn.1000a1360
mov rax, rsi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1000c8b30
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret