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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xcd0]
sub rsp, 0xdd0
mov rax, qword [0x14004ae08]
xor rax, rsp
mov qword [rbp + 0xcc0], rax
mov r15, rdx
mov qword [rbp - 0x80], rdx
lea rdx, [0x140035fd4]
lea rcx, [rbp + 0x60]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xor r13d, r13d
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x48], r13d
mov qword [rsp + 0x50], r13
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerUserDataS_1_5_18Products
lea rcx, [rbp + 0x38]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
nop
lea rcx, [rbp + 0x38]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov r8, rax
mov rdx, 0xffffffff80000002
mov r9d, 0x20119
lea rcx, [rsp + 0x40]
call fcn.14000e940
mov edi, eax
test eax, eax
je 0x140019503
lea rdx, [rbp + 0x60]
mov rcx, r15
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_class_Cmm::CStringT_wchar_t__const____ptr64____ptr64]
nop
lea rcx, [rbp + 0x38]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001990f
jmp 0x140019908
mov r14d, r13d
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x8b0]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x78], 0x208
mov r12, qword [rsp + 0x40]
nop word [rax + rax]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x78]
lea r8, [rbp + 0x8b0]
mov edx, r14d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc r14d
cmp eax, 0x103
je 0x1400198e7
mov dword [rsp + 0x78], 0x208
lea rdx, [rbp + 0x8b0]
lea rcx, [rbp - 0x28]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
nop
lea rcx, [rbp - 0x28]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::IsEmpty_void_const___ptr64]
test eax, eax
je 0x1400195a2
lea rcx, [rbp - 0x28]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
jmp 0x140019530
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x78]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_class_Cmm::CStringT_wchar_t__const____ptr64____ptr64]
nop
lea rdx, [0x140035fd0]
lea rcx, [rbp - 0x78]
call qword [reloc.Cmmlib.dll___Y__CStringT__W_Cmm__QEAAAEAV01_PEB_W_Z]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x78]
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_class_Cmm::CStringT_wchar_t__const____ptr64____ptr64]
lea rdx, str.InstallProperties
lea rcx, [rbp - 0x78]
call qword [reloc.Cmmlib.dll___Y__CStringT__W_Cmm__QEAAAEAV01_PEB_W_Z]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov rbx, r13
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x60], r13d
mov qword [rsp + 0x68], r13
lea rcx, [rbp - 0x78]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov qword [rsp + 0x70], r13
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20119
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140019643
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x60], 0x100
test edi, edi
jne 0x140019845
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x70], 0x410
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x7c]
xor r8d, r8d
lea rdx, str.DisplayName
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1400196d9
mov eax, dword [rsp + 0x7c]
dec eax
cmp eax, 1
jbe 0x1400196ad
mov edi, SafeArrayDestroy
jmp 0x1400196d9
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x1400196ce
test al, 1
jne 0x1400196c7
shr rax, 1
cmp word [rbp + rax*2 + 0x8e], 0
je 0x1400196d6
mov edi, SafeArrayDestroy
jmp 0x1400196d9
mov word [rbp + 0x90], r13w
mov edi, r13d
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x50]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
nop
test edi, edi
jne 0x14001983a
lea rcx, [rbp - 0x50]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::IsEmpty_void_const___ptr64]
test eax, eax
jne 0x14001983a
lea rdx, str.Microsoft_Office_Professional_Plus_2013
lea rcx, [rbp - 0x50]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::CompareNoCase_wchar_t_const____ptr64_const___ptr64]
test eax, eax
je 0x140019748
lea rdx, str.Microsoft_Office_Professional_Plus_2016
lea rcx, [rbp - 0x50]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::CompareNoCase_wchar_t_const____ptr64_const___ptr64]
test eax, eax
je 0x140019748
lea rdx, str.Microsoft_Office_Professional_Plus_2010
lea rcx, [rbp - 0x50]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::CompareNoCase_wchar_t_const____ptr64_const___ptr64]
test eax, eax
jne 0x14001983a
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x4a0]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x70], 0x410
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x4a0]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
xor r8d, r8d
lea rdx, str.UninstallString
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1400197d4
mov eax, dword [rbp - 0x80]
dec eax
cmp eax, 1
jbe 0x1400197a8
mov edi, SafeArrayDestroy
jmp 0x1400197d4
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x1400197c9
test al, 1
jne 0x1400197c2
shr rax, 1
cmp word [rbp + rax*2 + 0x49e], 0
je 0x1400197d1
mov edi, SafeArrayDestroy
jmp 0x1400197d4
mov word [rbp + 0x4a0], r13w
mov edi, r13d
lea rdx, [rbp + 0x4a0]
lea rcx, [rbp]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
nop
test edi, edi
jne 0x14001982f
lea rcx, [rbp]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::IsEmpty_void_const___ptr64]
test eax, eax
jne 0x14001982f
xor r8d, r8d
lea rdx, [0x140036700]
lea rcx, [rbp]
call qword [sym.imp.Cmmlib.dll_public:_unsigned_long_long_unsigned___int64____cdecl_Cmm::CStringT_wchar_t_::find_wchar_t_const____ptr64__unsigned_long_long_unsigned___int64__const___ptr64]
mov rsi, rax
xor r8d, r8d
lea rdx, [0x140036704]
lea rcx, [rbp]
call qword [sym.imp.Cmmlib.dll_public:_unsigned_long_long_unsigned___int64____cdecl_Cmm::CStringT_wchar_t_::find_wchar_t_const____ptr64__unsigned_long_long_unsigned___int64__const___ptr64]
cmp rsi, 0xffffffffffffffff
je 0x14001982f
cmp rax, 0xffffffffffffffff
jne 0x14001986e
lea rcx, [rbp]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x50]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
test rbx, rbx
je 0x140019854
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp - 0x78]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x28]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
jmp 0x140019530
sub rax, rsi
lea r9, [rax + 1]
mov r8, rsi
lea rdx, [rbp + 0x28]
lea rcx, [rbp]
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CRangeT_wchar_t_const____ptr64____cdecl_Cmm::CStringT_wchar_t_::Mid_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64_____ptr64]
movups xmm1, xmmword [rax]
movdqa xmm0, xmm1
psrldq xmm0, 8
movq r8, xmm0
movq rdx, xmm1
sub r8, rdx
sar r8, 1
lea rcx, [rbp + 0x60]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::Assign_wchar_t_const____ptr64__unsigned_long_long_unsigned___int64_____ptr64]
nop
lea rcx, [rbp]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x50]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
test rbx, rbx
je 0x1400198d2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp - 0x78]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x28]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
lea rdx, [rbp + 0x60]
mov rcx, r15
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_class_Cmm::CStringT_wchar_t__const____ptr64____ptr64]
nop
lea rcx, [rbp + 0x38]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
test r12, r12
je 0x14001990f
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp + 0x60]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
mov rax, r15
mov rcx, qword [rbp + 0xcc0]
xor rcx, rsp
call fcn.140027b30
lea r11, [rsp + 0xdd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret