Function at 0x14000a900
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.14004b378
mov rcx, rax
mov edx, ebx
test rax, rax
setne dl
test edx, edx
jne 0x14000a940
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, [0x1400df918]
test rdx, 0xffffffffffff0000
jne 0x14000a980
movzx edi, dx
mov ecx, edi
call fcn.14004b1a0
test rax, rax
je 0x14000a98b
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005c00
jmp 0x14000a98b
lea rcx, [rsp + 0x40]
call fcn.140006080
nop
call fcn.14004b378
mov rcx, rax
test rax, rax
setne bl
test ebx, ebx
jne 0x14000a9a8
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 0x14000a9e8
movzx ebx, dx
mov ecx, ebx
call fcn.14004b1a0
test rax, rax
je 0x14000a9f3
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140005c00
jmp 0x14000a9f3
lea rcx, [rsp + 0x38]
call fcn.140006080
nop
lea rdx, [rsi + 0x290]
lea r8, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.140006690
nop
lea r8, [rsp + 0x40]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140006690
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 0x14000aa66
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 0x14000aa87
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 0x14000aaa8
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 0x14000aac6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x14000ab75
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 0x14000ab6a
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