Function at 0x14000a870
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0xa8], ebx
mov dword [rsp + 0x30], ebx
call fcn.14004b0d0
mov rcx, rax
mov edx, ebx
test rax, rax
setne dl
test edx, edx
jne 0x14000a8b0
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rdx, [0x1400df8d8]
test rdx, 0xffffffffffff0000
jne 0x14000a8f0
movzx edi, dx
mov ecx, edi
call fcn.14004aef8
test rax, rax
je 0x14000a8fb
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005b70
jmp 0x14000a8fb
lea rcx, [rsp + 0x40]
call fcn.140005ff0
nop
call fcn.14004b0d0
mov rcx, rax
test rax, rax
setne bl
test ebx, ebx
jne 0x14000a918
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rdx, str.MicrosoftWindowsCurrentVersionUninstall_
test rdx, 0xffffffffffff0000
jne 0x14000a958
movzx ebx, dx
mov ecx, ebx
call fcn.14004aef8
test rax, rax
je 0x14000a963
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140005b70
jmp 0x14000a963
lea rcx, [rsp + 0x38]
call fcn.140005ff0
nop
lea rdx, [rsi + 0x290]
lea r8, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.140006600
nop
lea r8, [rsp + 0x40]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140006600
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rax]
mov ecx, 0x80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete dil
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14000a9d6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14000a9f7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14000aa18
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x14000aa36
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x14000aae5
mov dword [rsp + 0xa0], 4
mov dword [rsp + 0x98], 4
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xa0]
xor r8d, r8d
lea rdx, str.MajorVersion
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000aada
mov dword [rsp + 0xa0], 4
mov dword [rsp + 0x98], 4
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xa0]
xor r8d, r8d
lea rdx, str.MinorVersion
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0xa8]
shl eax, 0x10
or eax, dword [rsp + 0x30]
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret