Function at 0x140004bb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x14004a040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rcx
mov qword [rbp - 0x41], rcx
xor r15d, r15d
mov r8, rdx
lea rdx, str.CLSID_
lea rcx, [rbp + 7]
call fcn.14000b770
nop
mov esi, r15d
mov qword [rbp - 0x31], r15
mov dword [rbp - 0x29], r15d
mov qword [rbp - 0x21], r15
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 7
cmova rdx, qword [rbp + 7]
mov qword [rbp - 0x41], r15
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
jne 0x140004c46
mov rsi, qword [rbp - 0x41]
mov qword [rbp - 0x31], rsi
mov dword [rbp - 0x29], r15d
mov eax, r15d
test ecx, ecx
cmovne eax, ecx
xor r8d, r8d
test eax, eax
je 0x140004cec
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
lea rdx, [0x1400415cc]
mov rcx, rbx
call fcn.14000c000
nop
test rsi, rsi
je 0x140004c86
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 7
jbe 0x140004cc6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004cc1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004ede
call fcn.140011900
mov rax, rbx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400118e0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov dword [rbp - 0x49], r15d
lea rax, [rbp - 0x49]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x41]
lea rdx, str.AppID
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004e6b
mov eax, dword [rbp - 0x41]
dec eax
cmp eax, 1
ja 0x140004e6b
mov edi, dword [rbp - 0x49]
shr edi, 1
mov r8d, edi
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
xor edx, edx
lea rcx, [rbp - 0x19]
call fcn.14000bec0
nop
lea r14, [rbp - 0x19]
cmp qword [rbp - 1], 7
cmova r14, qword [rbp - 0x19]
lea eax, [rdi + rdi]
mov dword [rbp - 0x49], eax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x41]
xor r8d, r8d
lea rdx, str.AppID
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004ee4
mov eax, dword [rbp - 0x41]
dec eax
cmp eax, 1
ja 0x140004ee4
mov ecx, dword [rbp - 0x49]
test r14, r14
je 0x140004dc7
test ecx, ecx
je 0x140004dc3
test cl, 1
jne 0x140004ee4
mov eax, ecx
shr rax, 1
cmp word [r14 + rax*2 - 2], 0
jne 0x140004ee4
jmp 0x140004dc7
mov word [r14], r15w
shr ecx, 1
dec ecx
mov r8, qword [rbp - 9]
cmp rcx, r8
ja 0x140004ded
lea rax, [rbp - 0x19]
cmp qword [rbp - 1], 7
cmova rax, qword [rbp - 0x19]
mov qword [rbp - 9], rcx
mov word [rax + rcx*2], r15w
jmp 0x140004e46
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rbp - 1]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x140004e31
mov qword [rbp - 9], rcx
lea r9, [rbp - 0x19]
cmp rdi, 7
cmova r9, qword [rbp - 0x19]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x140004e26
movzx eax, r15w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], r15w
jmp 0x140004e46
mov word [rsp + 0x20], r15w
mov r9, rdx
xor r8d, r8d
lea rcx, [rbp - 0x19]
call fcn.14000cb00
movups xmm0, xmmword [rbp - 0x19]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 9]
movups xmmword [rbx + 0x10], xmm1
mov qword [rbp - 9], r15
mov qword [rbp - 1], 7
mov word [rbp - 0x19], r15w
jmp 0x140004c77
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
xor r8d, r8d
lea rdx, [0x1400415cc]
mov rcx, rbx
call fcn.14000c000
nop
test rsi, rsi
je 0x140004e9b
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 7
jbe 0x140004cc6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004cc1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004cc1
call fcn.14001d3f4
nop
call fcn.1400185d4
int3