Function at 0x1400995c0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [rsp + 0x118], rbx
mov r13d, r8d
mov r14, rdx
mov r12, rcx
xor r15d, r15d
mov dword [rbp - 0x31], r15d
lea rax, [0x140dd81d8]
mov qword [rbp - 0x41], rax
lock inc dword [0x140dd81d8]
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
lea rax, [rbp - 0x2d]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x21]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x25]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14009974e
mov edx, eax
lea rcx, [rbp + 0xf]
call fcn.140097780
nop
lea rdx, [rbp - 0x19]
mov rcx, rax
call fcn.140009fd0
mov rbx, rax
mov rcx, qword [rax]
mov edx, dword [rcx]
cmp edx, 1
jne 0x140099691
mov rdx, qword [rax]
lea rcx, [rdx + 0x18]
cmp qword [rdx + 0x10], rcx
je 0x14009969f
mov rcx, qword [rax]
mov edx, dword [rcx + 8]
mov rcx, rax
call fcn.140005410
mov rax, qword [rbx]
mov rdx, qword [rax + 0x10]
lea rcx, [0x140d9a5a8]
call fcn.140015780
nop
mov rcx, qword [rbp - 0x19]
lock dec dword [rcx]
jne 0x1400996c6
mov rcx, qword [rbp - 0x19]
call fcn.140004d80
nop
mov rax, qword [rbp + 0xf]
lock dec dword [rax]
jne 0x1400996d8
mov rcx, qword [rbp + 0xf]
call fcn.14000ade0
mov rax, qword [rbp - 0x41]
mov qword [r12], rax
lock inc dword [rax]
mov rax, qword [r12]
test byte [rax + 0x10], 1
jne 0x1400996f8
mov edx, dword [rax + 4]
mov rcx, r12
call fcn.140010180
mov dword [rbp - 0x31], 1
mov rax, qword [rbp - 0x41]
lock dec dword [rax]
jne 0x140099a11
mov rsi, qword [rbp - 0x41]
movsxd rax, dword [rsi + 0xc]
lea rbx, [rsi + rax*8 + 0x18]
movsxd rax, dword [rsi + 8]
lea rdi, [rsi + rax*8 + 0x18]
cmp rdi, rbx
je 0x140099a09
nop dword [rax + rax]
sub rbx, 8
mov rdx, qword [rbx]
lock dec dword [rdx]
jne 0x140099744
mov rcx, qword [rbx]
call fcn.14000ade0
cmp rbx, rdi
jne 0x140099730
jmp 0x140099a09
mov eax, dword [rbp - 0x29]
inc eax
mov dword [rbp - 0x29], eax
mov edx, dword [rbp - 0x2d]
inc edx
mov dword [rbp - 0x2d], edx
cmp r13d, 1
jne 0x140099769
mov esi, dword [rbp - 0x21]
jmp 0x14009976e
mov esi, dword [rbp - 0x25]
mov edx, eax
inc edx
add edx, edx
xor r8d, r8d
lea rcx, [rbp - 0x49]
call fcn.1400052f0
nop
mov edi, r15d
test esi, esi
jle 0x140099989
lea rbx, [0x140dd80a8]
mov qword [rbp - 0x39], rbx
lock inc dword [0x140dd80a8]
mov rax, qword [rbp - 0x49]
movsxd rcx, dword [rax + 8]
shr rcx, 1
mov dword [rbp + 0x7f], ecx
mov ecx, dword [rax]
cmp r13d, 1
jne 0x1400997fe
cmp ecx, r13d
jne 0x1400997c5
mov rcx, qword [rbp - 0x49]
lea rdx, [rcx + 0x18]
cmp qword [rcx + 0x10], rdx
je 0x1400997d5
mov edx, dword [rax + 8]
lea rcx, [rbp - 0x49]
call fcn.140005410
mov rcx, qword [rbp - 0x49]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x7f]
mov r8, qword [rcx + 0x10]
mov edx, edi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x140099848
cmp ecx, 1
jne 0x140099811
mov rcx, qword [rbp - 0x49]
lea rdx, [rcx + 0x18]
cmp qword [rcx + 0x10], rdx
je 0x140099821
mov edx, dword [rax + 8]
lea rcx, [rbp - 0x49]
call fcn.140005410
mov rcx, qword [rbp - 0x49]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x7f]
mov r8, qword [rcx + 0x10]
mov edx, edi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400998e4
mov rax, qword [rbp - 0x49]
mov r8d, dword [rbp + 0x7f]
mov rdx, qword [rax + 0x10]
lea rcx, [rbp - 1]
call fcn.14000ed80
mov rcx, qword [rax]
mov qword [rbp - 0x39], rcx
mov qword [rax], rbx
mov rax, qword [rbp - 1]
lock dec dword [rax]
jne 0x140099881
mov rcx, qword [rbp - 1]
call fcn.14000ade0
mov rbx, qword [rbp - 0x39]
cmp dword [rbx + 8], 0
jne 0x1400998bf
or r8d, 0xffffffff
lea rdx, [0x140d3d664]
lea rcx, [rbp - 0x11]
call fcn.14000c980
mov rcx, qword [rax]
mov qword [rbp - 0x39], rcx
mov qword [rax], rbx
mov rax, qword [rbp - 0x11]
lock dec dword [rax]
jne 0x1400998bb
mov rcx, qword [rbp - 0x11]
call fcn.14000ade0
mov rbx, qword [rbp - 0x39]
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x41]
call fcn.140003d80
nop
lock dec dword [rbx]
jne 0x140099978
mov rcx, qword [rbp - 0x39]
call fcn.14000ade0
jmp 0x140099978
mov edx, eax
lea rcx, [rbp + 7]
call fcn.140097780
nop
lea rdx, [rbp - 9]
mov rcx, rax
call fcn.140009fd0
mov rbx, rax
mov rcx, qword [rax]
mov edx, dword [rcx]
cmp edx, 1
jne 0x140099916
mov rdx, qword [rax]
lea rcx, [rdx + 0x18]
cmp qword [rdx + 0x10], rcx
je 0x140099924
mov rcx, qword [rax]
mov edx, dword [rcx + 8]
mov rcx, rax
call fcn.140005410
mov rax, qword [rbx]
mov rdx, qword [rax + 0x10]
lea rcx, [0x140d9a580]
call fcn.140015780
nop
mov rax, qword [rbp - 9]
lock dec dword [rax]
jne 0x14009994b
mov rcx, qword [rbp - 9]
call fcn.140004d80
nop
mov rax, qword [rbp + 7]
lock dec dword [rax]
jne 0x14009995e
mov rcx, qword [rbp + 7]
call fcn.14000ade0
nop
lea rbx, [0x140dd80a8]
lock dec dword [0x140dd80a8]
jne 0x14009997f
mov rcx, rbx
call fcn.14000ade0
jmp 0x14009997f
lea rbx, [0x140dd80a8]
inc edi
cmp edi, esi
jl 0x140099791
mov rax, qword [rbp - 0x41]
mov qword [r12], rax
lock inc dword [rax]
mov rax, qword [r12]
test byte [rax + 0x10], 1
jne 0x1400999a9
mov edx, dword [rax + 4]
mov rcx, r12
call fcn.140010180
mov dword [rbp - 0x31], 1
mov rax, qword [rbp - 0x49]
lock dec dword [rax]
jne 0x1400999c3
mov rcx, qword [rbp - 0x49]
call fcn.140004d80
nop
mov rax, qword [rbp - 0x41]
lock dec dword [rax]
jne 0x140099a11
mov rsi, qword [rbp - 0x41]
movsxd rax, dword [rsi + 0xc]
lea rbx, [rsi + rax*8 + 0x18]
movsxd rax, dword [rsi + 8]
lea rdi, [rsi + rax*8 + 0x18]
cmp rdi, rbx
je 0x140099a09
nop word [rax + rax]
sub rbx, 8
mov rdx, qword [rbx]
lock dec dword [rdx]
jne 0x140099a04
mov rcx, qword [rbx]
call fcn.14000ade0
cmp rbx, rdi
jne 0x1400999f0
mov rcx, rsi
call fcn.140004d80
mov rax, r12
mov rbx, qword [rsp + 0x118]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret