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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
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
lea rdx, str.B9AA1F11_F480_4054_A84E_B5D9277E40A8
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 r12d, r12d
mov ebx, r12d
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x50], r12
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
lea rdx, str.SoftwareClassesInterface_
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 rdx, [rbp + 0x68]
lea rcx, [rbp - 0x38]
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, [rbp - 0x38]
lea rcx, [rbp - 0x10]
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
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x60]
call qword [reloc.Cmmlib.dll___4__CStringT__W_Cmm__QEAAAEAV01_AEBV01__Z]
nop
lea rcx, [rbp - 0x10]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
lea rcx, [rbp - 0x60]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov qword [rbp - 0x70], r12
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x20], rcx
mov edi, 0x20219
mov r9d, edi
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018efc
mov dword [rsp + 0x48], 0x200
jmp 0x140019007
lea rcx, [rbp - 0x60]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov qword [rbp - 0x70], r12
lea rcx, [rbp - 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
je 0x140018ffa
lea rdx, str.TypeLib_
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 rdx, [rbp + 0x68]
lea rcx, [rbp - 0x38]
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, [rbp - 0x38]
lea rcx, [rbp - 0x10]
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
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x60]
call qword [reloc.Cmmlib.dll___4__CStringT__W_Cmm__QEAAAEAV01_AEBV01__Z]
nop
lea rcx, [rbp - 0x10]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
lea rcx, [rbp - 0x60]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov qword [rbp - 0x70], r12
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x20], rcx
mov r9d, edi
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018fc2
mov dword [rsp + 0x48], 0x200
jmp 0x140019007
lea rcx, [rbp - 0x60]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov qword [rbp - 0x70], r12
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20119
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400193ce
mov edi, 0x20119
mov dword [rsp + 0x48], 0x100
mov rbx, qword [rbp - 0x70]
mov qword [rsp + 0x40], rbx
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x4a0]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x68], 0x208
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x68]
lea r8, [rbp + 0x4a0]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400193ce
lea rdx, [0x140035fd0]
lea rcx, [rbp - 0x60]
call qword [reloc.Cmmlib.dll___Y__CStringT__W_Cmm__QEAAAEAV01_PEB_W_Z]
lea rdx, [rbp + 0x4a0]
lea rcx, [rbp - 0x60]
call qword [reloc.Cmmlib.dll___Y__CStringT__W_Cmm__QEAAAEAV01_PEB_W_Z]
lea rcx, [rbp - 0x60]
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 r9d, edi
mov rdx, 0xffffffff80000000
lea rcx, [rsp + 0x40]
call fcn.14000e940
test eax, eax
jne 0x1400193c9
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x8b0]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x64], 0x208
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x64]
lea r8, [rbp + 0x8b0]
xor edx, edx
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400193ce
lea rdx, [0x140035fd0]
lea rcx, [rbp - 0x60]
call qword [reloc.Cmmlib.dll___Y__CStringT__W_Cmm__QEAAAEAV01_PEB_W_Z]
lea rdx, [rbp + 0x8b0]
lea rcx, [rbp - 0x60]
call qword [reloc.Cmmlib.dll___Y__CStringT__W_Cmm__QEAAAEAV01_PEB_W_Z]
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x10]
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, [rbp - 0x60]
lea rcx, [rbp + 0x40]
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, [0x140035fd4]
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 rdx, [0x140035fd4]
lea rcx, [rbp + 0x18]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
nop
lea rdx, str.win32
lea rcx, [rbp - 0x10]
call qword [reloc.Cmmlib.dll___Y__CStringT__W_Cmm__QEAAAEAV01_PEB_W_Z]
lea rdx, str.Win64
lea rcx, [rbp + 0x40]
call qword [reloc.Cmmlib.dll___Y__CStringT__W_Cmm__QEAAAEAV01_PEB_W_Z]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x68], r12
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 r9d, edi
mov rdx, 0xffffffff80000000
lea rcx, [rsp + 0x58]
call fcn.14000e940
mov r14, qword [rsp + 0x58]
test eax, eax
jne 0x140019256
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x78], 0x410
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
xor r8d, r8d
lea rdx, [0x140035fd4]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140019256
mov eax, dword [rbp - 0x70]
dec eax
cmp eax, 1
ja 0x140019256
mov eax, dword [rbp - 0x78]
test eax, eax
je 0x14001923d
test al, 1
jne 0x140019256
shr rax, 1
cmp word [rbp + rax*2 + 0x8e], 0
je 0x140019245
jmp 0x140019256
mov word [rbp + 0x90], r12w
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x38]
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64____ptr64]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x78], r12d
mov qword [rbp - 0x80], r12
lea rcx, [rbp - 0x10]
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 r9d, edi
mov rdx, 0xffffffff80000000
lea rcx, [rsp + 0x70]
call fcn.14000e940
mov rsi, qword [rsp + 0x70]
test eax, eax
jne 0x140019323
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x78], 0x410
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
xor r8d, r8d
lea rdx, [0x140035fd4]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140019323
mov eax, dword [rbp - 0x70]
dec eax
cmp eax, 1
ja 0x140019323
mov eax, dword [rbp - 0x78]
test eax, eax
je 0x14001930a
test al, 1
jne 0x140019323
shr rax, 1
cmp word [rbp + rax*2 + 0x8e], 0
je 0x140019312
jmp 0x140019323
mov word [rbp + 0x90], r12w
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x18]
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64____ptr64]
lea rcx, [rbp - 0x38]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::IsEmpty_void_const___ptr64]
mov edi, 1
test eax, eax
jne 0x14001934e
lea rcx, [rbp + 0x18]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::IsEmpty_void_const___ptr64]
test eax, eax
jne 0x14001934e
mov eax, 3
mov dword [r15], eax
jmp 0x14001937e
lea rcx, [rbp - 0x38]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::IsEmpty_void_const___ptr64]
test eax, eax
jne 0x140019366
mov eax, 2
mov dword [r15], eax
jmp 0x14001937e
lea rcx, [rbp + 0x18]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::IsEmpty_void_const___ptr64]
test eax, eax
jne 0x14001937b
mov eax, edi
mov dword [r15], eax
jmp 0x14001937e
mov edi, r12d
test rsi, rsi
je 0x14001938d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test r14, r14
je 0x14001939c
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp + 0x18]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x40]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x10]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
jmp 0x1400193d1
mov rbx, qword [rsp + 0x40]
mov edi, r12d
lea rcx, [rbp - 0x60]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
test rbx, rbx
je 0x1400193eb
mov rcx, rbx
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 eax, edi
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 rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret