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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x638]
sub rsp, 0x710
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140043008]
xor rax, rsp
mov qword [rbp + 0x600], rax
mov qword [rbp - 0x60], rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xor eax, eax
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.CrlUtl.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_INIGetAddonsDir_void_]
nop
lea rdx, [rsp + 0x50]
mov rcx, qword [rax]
call fcn.14001acc0
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rcx, [rbp - 0x80]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov edx, 0x104
lea rcx, [rbp - 0x80]
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov r8, rax
xor edx, edx
xor ecx, ecx
mov r9d, operator
call qword [sym.imp.CrlUtl.dll_int___cdecl_BOXIDGetRegistryInfo_wchar_t____ptr64__int__wchar_t____ptr64__int_]
test eax, eax
setne bl
or edx, 0xffffffff
lea rcx, [rbp - 0x80]
call qword [sym.imp.mfc140u.dll_CDialogImpl::ProcessMouseClick]
test bl, bl
je 0x14001b5e0
xor ebx, ebx
mov r12d, ebx
mov qword [rbp - 0x58], rbx
mov dword [rbp - 0x50], ebx
mov qword [rbp - 0x48], rbx
lea rdx, str.CoreComponentList
lea rcx, [rbp - 0x80]
call qword [sym.imp.mfc140u.dll_COleCurrency::operator_]
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbp - 0x80]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r14, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov qword [rsp + 0x68], r14
test eax, eax
jne 0x14001b5d0
mov r12, qword [rsp + 0x40]
mov qword [rbp - 0x58], r12
mov dword [rbp - 0x50], ebx
mov r13d, ebx
mov dword [rsp + 0x70], operator
nop dword [rax]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
lea r8, [rbp + 0x3f0]
mov edx, r13d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc r13d
test eax, eax
jne 0x14001b5d0
mov dword [rsp + 0x70], operator
mov r15, rbx
mov qword [rbp - 0x40], rbx
mov dword [rbp - 0x38], ebx
mov qword [rbp - 0x30], rbx
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x3f0]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001b581
mov eax, ebx
mov r15, qword [rsp + 0x48]
mov qword [rbp - 0x40], r15
mov dword [rbp - 0x38], ebx
test ebx, ebx
jne 0x14001b581
mov dword [rsp + 0x48], 0x400
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
xor r8d, r8d
lea rdx, [0x140029f58]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001b151
mov eax, dword [rbp - 0x70]
dec eax
cmp eax, 1
ja 0x14001b151
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x14001b13f
test al, 1
jne 0x14001b151
shr rax, 1
cmp word [rbp + rax*2 - 0x12], bx
je 0x14001b145
jmp 0x14001b151
xor eax, eax
mov word [rbp - 0x10], ax
lea rcx, [rbp - 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov ebx, eax
call qword [sym.imp.CrlUtl.dll_public:_static_struct_IAppStartupInit____ptr64___cdecl_ApplicationInfo::Settings_void_]
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x40]
lea r8, vtable.CdrConvStartupInit.0
cmp rcx, r8
jne 0x14001b171
mov eax, 8
jmp 0x14001b176
mov rcx, rax
call rdx
test ebx, eax
je 0x14001b57f
mov dword [rsp + 0x48], 0x400
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x6c]
xor r8d, r8d
lea rdx, [0x140029d48]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001b376
mov eax, dword [rbp - 0x6c]
dec eax
cmp eax, 1
ja 0x14001b376
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x14001b1e6
test al, 1
jne 0x14001b376
shr rax, 1
cmp word [rbp + rax*2 - 0x12], 0
je 0x14001b1ee
jmp 0x14001b376
xor ebx, ebx
mov word [rbp - 0x10], bx
jmp 0x14001b1f0
xor ebx, ebx
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__4]
nop
lea rax, [rsp + 0x78]
cmp rax, rdi
jae 0x14001b2ca
lea rax, [rsp + 0x78]
cmp rsi, rax
ja 0x14001b2ca
lea rbx, [rsp + 0x78]
sub rbx, rsi
sar rbx, 3
cmp rdi, r14
jne 0x14001b2a9
mov rax, r14
sub rax, rdi
sar rax, 3
cmp rax, 1
jae 0x14001b2a9
sub rdi, rsi
sar rdi, 3
movabs rdx, 0x1fffffffffffffff
mov rax, rdx
sub rax, rdi
cmp rax, 1
jb 0x14001b598
inc rdi
sub r14, rsi
sar r14, 3
mov rcx, r14
shr rcx, 1
mov rax, rdx
sub rax, rcx
lea rdx, [rcx + r14]
cmp rax, r14
mov eax, 0
cmovb rdx, rax
cmp rdx, rdi
cmovb rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.1400159a0
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x68], r14
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
lea rdx, [rsi + rbx*8]
mov qword [rsp + 0x48], rdi
mov qword [rbp - 0x78], rdi
test rdi, rdi
je 0x14001b2c5
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
nop
jmp 0x14001b363
cmp rdi, r14
jne 0x14001b346
mov rax, r14
sub rax, rdi
sar rax, 3
cmp rax, 1
jae 0x14001b346
sub rdi, rsi
sar rdi, 3
movabs rdx, 0x1fffffffffffffff
mov rax, rdx
sub rax, rdi
cmp rax, 1
jb 0x14001b5a6
inc rdi
sub r14, rsi
sar r14, 3
mov rcx, r14
shr rcx, 1
mov rax, rdx
sub rax, rcx
lea rdx, [rcx + r14]
cmp rax, r14
cmovb rdx, rbx
cmp rdx, rdi
cmovb rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.1400159a0
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x68], r14
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov qword [rbp - 0x78], rdi
mov qword [rsp + 0x48], rdi
test rdi, rdi
je 0x14001b363
lea rdx, [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
nop
add rdi, 8
mov qword [rsp + 0x58], rdi
lea rcx, [rsp + 0x78]
jmp 0x14001b579
mov dword [rsp + 0x48], 0x400
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x68]
xor r8d, r8d
lea rdx, str.CLSID
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001b57f
mov eax, dword [rbp - 0x68]
dec eax
cmp eax, 1
ja 0x14001b57f
mov eax, dword [rsp + 0x48]
xor ebx, ebx
test eax, eax
je 0x14001b3df
test al, 1
jne 0x14001b581
shr rax, 1
cmp word [rbp + rax*2 - 0x12], bx
je 0x14001b3e3
jmp 0x14001b581
mov word [rbp - 0x10], bx
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x10]
call fcn.14001aa00
test al, al
je 0x14001b581
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__4]
nop
lea rax, [rsp + 0x40]
cmp rax, rdi
jae 0x14001b4d2
lea rax, [rsp + 0x40]
cmp rsi, rax
ja 0x14001b4d2
lea rbx, [rsp + 0x40]
sub rbx, rsi
sar rbx, 3
cmp rdi, r14
jne 0x14001b4b1
mov rax, r14
sub rax, rdi
sar rax, 3
cmp rax, 1
jae 0x14001b4b1
sub rdi, rsi
sar rdi, 3
movabs rdx, 0x1fffffffffffffff
mov rax, rdx
sub rax, rdi
cmp rax, 1
jb 0x14001b5b4
inc rdi
sub r14, rsi
sar r14, 3
mov rcx, r14
shr rcx, 1
mov rax, rdx
sub rax, rcx
lea rdx, [rcx + r14]
cmp rax, r14
mov eax, 0
cmovb rdx, rax
cmp rdx, rdi
cmovb rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.1400159a0
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x68], r14
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
lea rdx, [rsi + rbx*8]
mov qword [rbp - 0x78], rdi
mov qword [rsp + 0x48], rdi
test rdi, rdi
je 0x14001b4cd
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
nop
jmp 0x14001b56b
cmp rdi, r14
jne 0x14001b54e
mov rax, r14
sub rax, rdi
sar rax, 3
cmp rax, 1
jae 0x14001b54e
sub rdi, rsi
sar rdi, 3
movabs rdx, 0x1fffffffffffffff
mov rax, rdx
sub rax, rdi
cmp rax, 1
jb 0x14001b5c2
inc rdi
sub r14, rsi
sar r14, 3
mov rcx, r14
shr rcx, 1
mov rax, rdx
sub rax, rcx
lea rdx, [rcx + r14]
cmp rax, r14
cmovb rdx, rbx
cmp rdx, rdi
cmovb rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.1400159a0
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x68], r14
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov qword [rbp - 0x78], rdi
mov qword [rsp + 0x48], rdi
test rdi, rdi
je 0x14001b56b
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
nop
add rdi, 8
mov qword [rsp + 0x58], rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
xor ebx, ebx
test r15, r15
je 0x14001b050
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001b050
lea rcx, str.vector_T__too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rcx, str.vector_T__too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
nop
lea rcx, str.vector_T__too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rcx, str.vector_T__too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
nop
test r12, r12
je 0x14001b5f4
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001b5f4
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x68], r14
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
call qword [sym.imp.CdrCore.dll_struct_IDrawAppComponent____ptr64___cdecl_DRAWGetAppInterface_void_]
mov r13, rax
mov rbx, rsi
cmp rsi, rdi
je 0x14001b6d8
mov r14, qword [rbp - 0x60]
xor esi, esi
nop
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x14001b6c1
lea rdx, str.CreateDrawCoreComponent
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001b6c1
call rax
mov r15, rax
test rax, rax
je 0x14001b6c1
mov rcx, qword [r14]
mov r8, qword [rcx + 0x28]
mov rdx, rax
mov rcx, r14
call r8
test al, al
jne 0x14001b6c1
mov r8, qword [r15]
mov rdx, r13
mov rcx, r15
call qword [r8 + 0x10]
test eax, eax
js 0x14001b6c1
mov qword [rsp + 0x40], r15
lea r12, [r14 - 0x10]
cmp eax, 1
sete r8b
lea rdx, [rsp + 0x40]
mov rcx, r12
call fcn.14001b920
test al, al
je 0x14001b6c1
mov qword [rsp + 0x40], rsi
mov rax, qword [r15]
lea r8, [rsp + 0x40]
lea rdx, [0x140029f48]
mov rcx, r15
call qword [rax]
test al, al
je 0x14001b6c1
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001b6c1
mov rdx, rsi
test r12, r12
cmovne rdx, r14
mov rax, qword [rcx]
call qword [rax]
add rbx, 8
cmp rbx, rdi
jne 0x14001b610
mov rsi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x68]
lea rcx, [rbp - 0x80]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
test rsi, rsi
je 0x14001b779
mov rbx, rsi
cmp rsi, rdi
je 0x14001b706
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
add rbx, 8
cmp rbx, rdi
jne 0x14001b6f4
sub r14, rsi
sar r14, 3
movabs rax, 0x1fffffffffffffff
cmp r14, rax
jbe 0x14001b723
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rax, [r14*8]
cmp rax, 0x1000
jb 0x14001b770
test sil, 0x1f
je 0x14001b740
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rsi - 8]
cmp rax, rsi
jb 0x14001b750
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rsi, rax
cmp rsi, 8
jae 0x14001b760
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rsi, 0x27
jbe 0x14001b76d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rsi, rax
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonUndo::XElementButtonUndo]
mov al, 1
mov rcx, qword [rbp + 0x600]
xor rcx, rsp
call fcn.14001f1d0
lea r11, [rsp + 0x710]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret