Function at 0x140021ea0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x140061148]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov esi, edx
lea rdx, [0x140045190]
lea rcx, [rsp + 0x78]
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 + 0x30], xmm0
xor ebx, ebx
mov edi, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x40], rbx
lea eax, [rsi - 1]
test eax, 0xfffffffd
je 0x140022018
cmp esi, 2
jne 0x14002212a
lea rdx, str.SOFTWAREClassesInterface6A222195_F65E_467F_8F77_EB180BD85288TypeLib
lea rcx, [rsp + 0x78]
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, [rsp + 0x78]
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 + 0x30]
call fcn.140016660
test eax, eax
jne 0x14002207c
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x48], 0x410
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
xor r8d, r8d
lea rdx, [0x140045190]
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002212a
mov eax, dword [rsp + 0x4c]
dec eax
cmp eax, 1
ja 0x14002212a
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x140021fd4
test al, 1
jne 0x14002212a
shr rax, 1
cmp word [rbp + rax*2 - 0x62], bx
je 0x140021fd8
jmp 0x14002212a
mov word [rbp - 0x60], bx
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x50]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
nop
lea rdx, str.B9AA1F11_F480_4054_A84E_B5D9277E40A8
lea rcx, [rsp + 0x50]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::Compare_wchar_t_const____ptr64_const___ptr64]
nop
lea rcx, [rsp + 0x50]
test eax, eax
jne 0x140022123
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
mov ebx, 1
jmp 0x14002212a
lea rdx, str.SOFTWAREClassesInterface6A222195_F65E_467F_8F77_EB180BD85288TypeLib
lea rcx, [rsp + 0x78]
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, [rsp + 0x78]
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, 0x20219
lea rcx, [rsp + 0x30]
call fcn.140016660
test eax, eax
je 0x140022086
lea rcx, [rsp + 0x78]
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 + 0x30]
call fcn.140016660
test eax, eax
je 0x140022086
mov rdi, qword [rsp + 0x30]
jmp 0x14002212a
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x48], 0x410
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
xor r8d, r8d
lea rdx, [0x140045190]
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002212a
mov eax, dword [rsp + 0x4c]
dec eax
cmp eax, 1
ja 0x14002212a
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x1400220f7
test al, 1
jne 0x14002212a
shr rax, 1
cmp word [rbp + rax*2 - 0x62], 0
je 0x1400220fb
jmp 0x14002212a
mov word [rbp - 0x60], bx
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x50]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
nop
lea rdx, str.B9AA1F11_F480_4054_A84E_B5D9277E40A8
lea rcx, [rsp + 0x50]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::Compare_wchar_t_const____ptr64_const___ptr64]
nop
jmp 0x140021ffb
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
test rdi, rdi
je 0x140022139
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
mov eax, ebx
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.1400325f0
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret