Function at 0x106d688
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x70
mov rax, qword [0x0109d100]
mov r12, rcx
lea rdi, [0x0109d100]
mov rcx, rdi
mov r13, r8
mov r14, rdx
mov ebp, 0x80040809
call qword [rax + 0x18]
mov rcx, rdi
add rax, 0x18
mov qword [rsp + 0x30], rax
mov rax, qword [0x0109d100]
call qword [rax + 0x18]
lea rdx, [r12 + 0xe0]
lea rcx, [rsp + 0x38]
add rax, 0x18
mov qword [rsp + 0x38], rax
call fcn.0106f1c8
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.0106f1c8
lea rdx, [0x01067740]
lea rcx, [rsp + 0x30]
call fcn.0106f2b8
lea rdx, [0x01067748]
lea rcx, [rsp + 0x38]
call fcn.0106f2b8
mov rax, qword [0x0109d100]
mov rcx, rdi
xor ebx, ebx
call qword [rax + 0x18]
or rsi, 0xffffffffffffffff
add rax, 0x18
cmp qword [r12 + 8], rbx
mov qword [rsp + 0x58], rax
jne 0x106d76b
lea rdx, [rax - 0x18]
mov ebp, 0x80070006
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x106d890
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x106d890
lea rdx, [0x010673d8]
xor eax, eax
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x58]
call fcn.0106bba4
mov rdi, qword [rsp + 0x58]
mov rcx, qword [r12 + 8]
and qword [rsp + 0x60], rbx
lea rax, [rsp + 0x60]
mov rdx, rdi
mov r9d, 0x80000000
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x106d868
mov rbx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x30]
lea r12d, [rax + 4]
lea rax, [rsp + 0xb8]
lea r9, [rsp + 0x4c]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0xb8], r12d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov ebp, eax
jne 0x106d815
cmp dword [rsp + 0x4c], r12d
je 0x106d813
mov ebp, 0xd
jmp 0x106d868
xor ebp, ebp
test ebp, ebp
jne 0x106d868
mov rdx, qword [rsp + 0x38]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x44], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov ebp, eax
jne 0x106d855
cmp dword [rsp + 0x48], r12d
jne 0x106d80c
test ebp, ebp
jne 0x106d868
mov eax, dword [rsp + 0x50]
mov dword [r14], eax
mov eax, dword [rsp + 0x40]
mov dword [r13], eax
lea rdx, [rdi - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x106d882
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test rbx, rbx
je 0x106d890
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsp + 0x38]
mov eax, esi
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x106d8af
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x30]
mov ecx, esi
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x106d8ce
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea r11, [rsp + 0x70]
mov eax, ebp
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret