Function at 0x1400187f0
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 [0x14004ae08]
xor rax, rsp
mov qword [rbp + 0x410], rax
lea r14, [0x140048580]
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.SoftwareClassesInterface_
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 [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, [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__const____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, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018a19
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, [0x140035fd4]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140018a19
mov eax, dword [rsp + 0x50]
dec eax
cmp eax, 1
jbe 0x140018980
mov eax, SafeArrayDestroy
jmp 0x1400189a6
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x14001899e
test al, 1
jne 0x140018997
shr rax, 1
cmp word [rbp + rax*2 - 2], 0
je 0x1400189a3
mov eax, SafeArrayDestroy
jmp 0x1400189a6
mov word [rbp], r12w
mov eax, r12d
test eax, eax
jne 0x140018a19
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 0x1400189e6
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 0x140018a0d
mov dword [rsp + 0x28], 0x4e
mov qword [rsp + 0x20], r13
mov r9d, 1
xor r8d, r8d
lea rdx, [0x140035fd4]
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 0x140018a28
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 0x140018850
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.SoftwareClassesInterface_
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 [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, [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__const____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, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018c19
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, [0x140035fd4]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140018c19
mov eax, dword [rsp + 0x50]
dec eax
cmp eax, 1
jbe 0x140018b80
mov eax, SafeArrayDestroy
jmp 0x140018ba6
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x140018b9e
test al, 1
jne 0x140018b97
shr rax, 1
cmp word [rbp + rax*2 - 2], 0
je 0x140018ba3
mov eax, SafeArrayDestroy
jmp 0x140018ba6
mov word [rbp], r12w
mov eax, r12d
test eax, eax
jne 0x140018c19
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 0x140018be6
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 0x140018c0d
mov dword [rsp + 0x28], 0x4e
mov qword [rsp + 0x20], r13
mov r9d, 1
xor r8d, r8d
lea rdx, [0x140035fd4]
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 0x140018c28
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 0x140018a50
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.140027b30
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