Function at 0x140021010
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 [0x140061148]
xor rax, rsp
mov qword [rbp + 0xcc0], rax
mov r15, rdx
mov qword [rbp - 0x80], rdx
lea rdx, [0x140045190]
lea rcx, [rbp + 0x68]
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 + 0x40]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
nop
lea rcx, [rbp + 0x40]
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.140016660
mov edi, eax
test eax, eax
je 0x1400210e3
lea rdx, [rbp + 0x68]
mov rcx, r15
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_class_Cmm::CStringT_wchar_t_____ptr64____ptr64]
nop
lea rcx, [rbp + 0x40]
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 0x1400214de
jmp 0x1400214d7
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 + 0x30]
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 0x1400214b6
mov dword [rsp + 0x78], 0x208
lea rdx, [rbp + 0x8b0]
lea rcx, [rbp - 0x20]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
nop
lea rcx, [rbp - 0x20]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::IsEmpty_void_const___ptr64]
test eax, eax
je 0x140021182
lea rcx, [rbp - 0x20]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
jmp 0x140021110
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x70]
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, [0x140048904]
lea rcx, [rbp - 0x70]
call qword [reloc.Cmmlib.dll___Y__CStringT__W_Cmm__QEAAAEAV01_PEB_W_Z]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x70]
call qword [reloc.Cmmlib.dll___Y__CStringT__W_Cmm__QEAAAEAV01_AEBV01__Z]
lea rdx, str.InstallProperties
lea rcx, [rbp - 0x70]
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 - 0x70]
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 0x140021223
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x60], 0x100
test edi, edi
jne 0x140021425
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 0x1400212b9
mov eax, dword [rsp + 0x7c]
dec eax
cmp eax, 1
jbe 0x14002128d
mov edi, SafeArrayDestroy
jmp 0x1400212b9
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x1400212ae
test al, 1
jne 0x1400212a7
shr rax, 1
cmp word [rbp + rax*2 + 0x8e], 0
je 0x1400212b6
mov edi, SafeArrayDestroy
jmp 0x1400212b9
mov word [rbp + 0x90], r13w
mov edi, r13d
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x48]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
nop
test edi, edi
jne 0x14002141a
lea rcx, [rbp - 0x48]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::IsEmpty_void_const___ptr64]
test eax, eax
jne 0x14002141a
lea rdx, str.Microsoft_Office_Professional_Plus_2013
lea rcx, [rbp - 0x48]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::CompareNoCase_wchar_t_const____ptr64_const___ptr64]
test eax, eax
je 0x140021328
lea rdx, str.Microsoft_Office_Professional_Plus_2016
lea rcx, [rbp - 0x48]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::CompareNoCase_wchar_t_const____ptr64_const___ptr64]
test eax, eax
je 0x140021328
lea rdx, str.Microsoft_Office_Professional_Plus_2010
lea rcx, [rbp - 0x48]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::CompareNoCase_wchar_t_const____ptr64_const___ptr64]
test eax, eax
jne 0x14002141a
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 0x1400213b4
mov eax, dword [rbp - 0x80]
dec eax
cmp eax, 1
jbe 0x140021388
mov edi, SafeArrayDestroy
jmp 0x1400213b4
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x1400213a9
test al, 1
jne 0x1400213a2
shr rax, 1
cmp word [rbp + rax*2 + 0x49e], 0
je 0x1400213b1
mov edi, SafeArrayDestroy
jmp 0x1400213b4
mov word [rbp + 0x4a0], r13w
mov edi, r13d
lea rdx, [rbp + 0x4a0]
lea rcx, [rbp + 8]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
nop
test edi, edi
jne 0x14002140f
lea rcx, [rbp + 8]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::IsEmpty_void_const___ptr64]
test eax, eax
jne 0x14002140f
xor r8d, r8d
lea rdx, [0x140041a20]
lea rcx, [rbp + 8]
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, [0x140041a24]
lea rcx, [rbp + 8]
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 0x14002140f
cmp rax, 0xffffffffffffffff
jne 0x14002144e
lea rcx, [rbp + 8]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x48]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
test rbx, rbx
je 0x140021434
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp - 0x70]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x20]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
jmp 0x140021110
sub rax, rsi
lea r9, [rax + 1]
mov r8, rsi
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 8]
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 xmm0, xmmword [rax]
movaps xmmword [rbp + 0x30], xmm0
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x68]
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_class_Cmm::CRangeT_wchar_t_const____ptr64_____ptr64]
nop
lea rcx, [rbp + 8]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x48]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
test rbx, rbx
je 0x1400214a1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp - 0x70]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x20]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
lea rdx, [rbp + 0x68]
mov rcx, r15
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_class_Cmm::CStringT_wchar_t_____ptr64____ptr64]
nop
lea rcx, [rbp + 0x40]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
test r12, r12
je 0x1400214de
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp + 0x68]
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.1400325f0
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