Function at 0x14007bf90
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0xa0
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov r14, r9
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
xor r15d, r15d
mov qword [rax - 0x38], r15
mov dword [rax - 0x30], r15d
mov qword [rax - 0x28], r15
call fcn.14000ce10
mov rcx, rax
test rax, rax
je 0x14007c21a
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x70], rbx
movzx r9d, byte [rsp + 0xe0]
inc r9d
shl r9d, 8
or r9d, 0x20019
mov r8, qword [rdi]
mov rdx, rbp
lea rcx, [rsp + 0x80]
call fcn.14000da90
test eax, eax
je 0x14007c0c1
call fcn.14000ce10
mov rcx, rax
test rax, rax
je 0x14007c225
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi], rax
lea rdx, [0x1400f4784]
lea rdi, [r15 - 1]
cmp rdx, 0x10000
jae 0x14007c05f
movzx edx, dx
mov rcx, rsi
call fcn.14000d4c0
jmp 0x14007c077
mov rax, rdi
inc rax
cmp word [rdx + rax*2], r15w
jne 0x14007c062
mov r8d, eax
mov rcx, rsi
call fcn.14000fd40
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14007c08e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14007c0a1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rsi
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rdi, qword [rsp + 0x80]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14007c142
lea rcx, [rbx - 0x18]
call fcn.14000c440
add rax, 0x18
mov qword [rsi], rax
mov rdi, 0xffffffffffffffff
lock xadd dword [rbx - 8], edi
sub edi, 1
jg 0x14007c08e
mov rcx, qword [rbx - 0x18]
lea rdx, [rbx - 0x18]
jmp 0x14007c088
mov edx, dword [rsp + 0x60]
add edx, 1
mov dword [rsp + 0x60], edx
js 0x14007c204
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x14007c177
lea rcx, [rsp + 0x70]
call fcn.14000e630
mov rbx, qword [rsp + 0x70]
mov edx, dword [rsp + 0x60]
lea eax, [rdx + rdx]
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x60], r15d
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14007c1e0
mov eax, dword [rsp + 0x68]
dec eax
cmp eax, 1
ja 0x14007c1e0
mov ecx, dword [rsp + 0x64]
test rbx, rbx
je 0x14007c1da
test ecx, ecx
je 0x14007c1d6
test cl, 1
jne 0x14007c1e0
mov eax, ecx
shr rax, 1
cmp word [rbx + rax*2 - 2], r15w
je 0x14007c1da
jmp 0x14007c1e0
mov word [rbx], r15w
shr ecx, 1
mov dword [rsp + 0x60], ecx
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1400b7e14
test eax, eax
js 0x14007c20f
cmp eax, dword [rbx - 0xc]
jg 0x14007c20f
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r15w
jmp 0x14007c110
mov ecx, 0x80070057
call fcn.14000c310
nop
mov ecx, 0x80070057
call fcn.14000c310
nop
mov ecx, 0x80004005
call fcn.14000c310
int3
mov ecx, 0x80004005
call fcn.14000c310
int3