Function at 0x140020110
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x140062148]
xor rax, rsp
mov qword [rbp + 0x410], rax
lea r14, [0x14005f580]
mov rdi, r14
mov r15d, 0x133
mov esi, r15d
xor r12d, r12d
lea r13, str.B9AA1F11_F480_4054_A84E_B5D9277E40A8
nop word [rax + rax]
mov rdx, rdi
lea rcx, [rbp - 0x30]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64____ptr64]
nop
lea rdx, str.Interface_
lea rcx, [rsp + 0x58]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
nop
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x58]
call qword [reloc.Cmmlib.dll___Y__CStringT__W_Cmm__QEAAAEAV01_AEBV01__Z]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x80]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_class_Cmm::CStringT_wchar_t_____ptr64____ptr64]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea r8, str.TypeLib
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x80]
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t____cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64____ptr64]
nop
lea rcx, [rbp - 0x80]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov rbx, r12
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x40], r12
lea rcx, [rbp - 0x58]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov qword [rsp + 0x48], r12
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, 0x2011f
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140020339
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x38], 0x100
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x48], 0x410
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, [0x140046190]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140020339
mov eax, dword [rsp + 0x50]
dec eax
cmp eax, 1
jbe 0x1400202a0
mov eax, SafeArrayDestroy
jmp 0x1400202c6
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x1400202be
test al, 1
jne 0x1400202b7
shr rax, 1
cmp word [rbp + rax*2 - 2], 0
je 0x1400202c3
mov eax, SafeArrayDestroy
jmp 0x1400202c6
mov word [rbp], r12w
mov eax, r12d
test eax, eax
jne 0x140020339
lea rdx, [rbp]
lea rcx, [rsp + 0x58]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
nop
lea rdx, str.ECF2380D_06DD_4BD6_94C2_64F21CA4FBC8
lea rcx, [rsp + 0x58]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::CompareNoCase_wchar_t_const____ptr64_const___ptr64]
test eax, eax
je 0x140020306
lea rdx, str.84098E4A_AB20_467D_80CB_07CA34EA199D
lea rcx, [rsp + 0x58]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::CompareNoCase_wchar_t_const____ptr64_const___ptr64]
test eax, eax
jne 0x14002032d
mov dword [rsp + 0x28], 0x4e
mov qword [rsp + 0x20], r13
mov r9d, 1
xor r8d, r8d
lea rdx, [0x140046190]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
test rbx, rbx
je 0x140020348
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp - 0x58]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
add rdi, 0x20
sub rsi, 1
jne 0x140020170
nop dword [rax + rax]
mov rdx, r14
lea rcx, [rbp - 0x80]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64____ptr64]
nop
lea rdx, str.Interface_
lea rcx, [rsp + 0x58]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
nop
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call qword [reloc.Cmmlib.dll___Y__CStringT__W_Cmm__QEAAAEAV01_AEBV01__Z]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_class_Cmm::CStringT_wchar_t_____ptr64____ptr64]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea r8, str.TypeLib
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t____cdecl_Cmm::CStringT_wchar_t_::operator_wchar_t_const____ptr64____ptr64]
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov rbx, r12
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x40], r12
lea rcx, [rbp - 0x58]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov qword [rsp + 0x48], r12
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, 0x2021f
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140020539
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x38], 0x200
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x48], 0x410
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, [0x140046190]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140020539
mov eax, dword [rsp + 0x50]
dec eax
cmp eax, 1
jbe 0x1400204a0
mov eax, SafeArrayDestroy
jmp 0x1400204c6
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x1400204be
test al, 1
jne 0x1400204b7
shr rax, 1
cmp word [rbp + rax*2 - 2], 0
je 0x1400204c3
mov eax, SafeArrayDestroy
jmp 0x1400204c6
mov word [rbp], r12w
mov eax, r12d
test eax, eax
jne 0x140020539
lea rdx, [rbp]
lea rcx, [rsp + 0x58]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
nop
lea rdx, str.ECF2380D_06DD_4BD6_94C2_64F21CA4FBC8
lea rcx, [rsp + 0x58]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::CompareNoCase_wchar_t_const____ptr64_const___ptr64]
test eax, eax
je 0x140020506
lea rdx, str.84098E4A_AB20_467D_80CB_07CA34EA199D
lea rcx, [rsp + 0x58]
call qword [sym.imp.Cmmlib.dll_public:_int___cdecl_Cmm::CStringT_wchar_t_::CompareNoCase_wchar_t_const____ptr64_const___ptr64]
test eax, eax
jne 0x14002052d
mov dword [rsp + 0x28], 0x4e
mov qword [rsp + 0x20], r13
mov r9d, 1
xor r8d, r8d
lea rdx, [0x140046190]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
test rbx, rbx
je 0x140020548
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp - 0x58]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x80]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
add r14, 0x20
sub r15, 1
jne 0x140020370
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.140032650
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret