Function at 0x140327568
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
call fcn.14000dfe0
mov rcx, rax
test rax, rax
jne 0x1403275ae
mov ecx, 0x80004005
call fcn.1400069ec
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rdi], rax
mov dword [rsp + 0x30], 1
mov ebx, 0x200
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.14028ace0
mov dword [rbp + 0x198], ebx
lea rdx, [0x1403da680]
lea rcx, [rsp + 0x38]
call fcn.140006f04
lea rcx, [rbp + 0x1a8]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete sil
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14032763c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test sil, sil
je 0x1403277af
lea rdx, [0x1403da6d0]
lea rcx, [rsp + 0x40]
call fcn.140006f04
lea rcx, [rbp + 0x198]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x1a0]
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, qword [rbp + 0x1a8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete sil
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1403276ab
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test sil, sil
jne 0x140327783
lea rdx, [0x1403da680]
lea rcx, [rsp + 0x48]
call fcn.140006f04
lea rdx, [rbp + 0x1a8]
mov qword [rsp + 0x20], rdx
mov r9d, 0x20119
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete sil
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14032770f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test sil, sil
je 0x1403277af
lea rdx, [0x1403da6d0]
lea rcx, [rsp + 0x50]
call fcn.140006f04
lea rcx, [rbp + 0x198]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x1a0]
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, qword [rbp + 0x1a8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete sil
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14032777e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test sil, sil
je 0x1403277af
lea rax, [rsp + 0x60]
inc rbx
cmp word [rax + rbx*2], r14w
jne 0x140327788
mov r8d, ebx
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.14000797c
mov rcx, qword [rbp + 0x1a8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
add rsp, 0x260
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret