Function at 0x14001b230
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 [0x140045008]
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.14001afe0
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 0x14001b8f8
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 r15, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov qword [rsp + 0x68], r15
test eax, eax
jne 0x14001b8e8
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 0x14001b8e8
mov dword [rsp + 0x70], operator
mov r14, 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 0x14001b899
mov eax, ebx
mov r14, qword [rsp + 0x48]
mov qword [rbp - 0x40], r14
mov dword [rbp - 0x38], ebx
test ebx, ebx
jne 0x14001b899
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, [0x14002b1e8]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001b473
mov eax, dword [rbp - 0x70]
dec eax
cmp eax, 1
ja 0x14001b473
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x14001b45f
test al, 1
jne 0x14001b473
shr rax, 1
cmp word [rbp + rax*2 - 0x12], bx
je 0x14001b467
jmp 0x14001b473
xor r8d, r8d
mov word [rbp - 0x10], r8w
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 0x14001b493
mov eax, 8
jmp 0x14001b498
mov rcx, rax
call rdx
test ebx, eax
je 0x14001b897
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, str.InprocServer32
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001b693
mov eax, dword [rbp - 0x6c]
dec eax
cmp eax, 1
ja 0x14001b693
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x14001b508
test al, 1
jne 0x14001b693
shr rax, 1
cmp word [rbp + rax*2 - 0x12], 0
je 0x14001b510
jmp 0x14001b693
xor ebx, ebx
mov word [rbp - 0x10], bx
jmp 0x14001b512
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 0x14001b5e7
lea rax, [rsp + 0x78]
cmp rsi, rax
ja 0x14001b5e7
lea rbx, [rsp + 0x78]
sub rbx, rsi
sar rbx, 3
cmp rdi, r15
jne 0x14001b5c6
mov rax, r15
sub rax, rdi
sar rax, 3
cmp rax, 1
jae 0x14001b5c6
sub rdi, rsi
sar rdi, 3
movabs rcx, 0x1fffffffffffffff
mov rax, rcx
sub rax, rdi
cmp rax, 1
jb 0x14001b8b0
lea rdx, [rdi + 1]
sub r15, rsi
sar r15, 3
mov rax, r15
shr rax, 1
sub rcx, rax
add rax, r15
xor r8d, r8d
cmp rcx, r15
cmovae r8, rax
cmp r8, rdx
cmovae rdx, r8
lea rcx, [rsp + 0x50]
call fcn.140016000
mov r15, qword [rsp + 0x60]
mov qword [rsp + 0x68], r15
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 0x14001b5e2
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
nop
jmp 0x14001b680
cmp rdi, r15
jne 0x14001b663
mov rax, r15
sub rax, rdi
sar rax, 3
cmp rax, 1
jae 0x14001b663
sub rdi, rsi
sar rdi, 3
movabs rcx, 0x1fffffffffffffff
mov rax, rcx
sub rax, rdi
cmp rax, 1
jb 0x14001b8be
lea rdx, [rdi + 1]
sub r15, rsi
sar r15, 3
mov rax, r15
shr rax, 1
sub rcx, rax
add rax, r15
mov r8, rbx
cmp rcx, r15
cmovae r8, rax
cmp r8, rdx
cmovae rdx, r8
lea rcx, [rsp + 0x50]
call fcn.140016000
mov r15, qword [rsp + 0x60]
mov qword [rsp + 0x68], r15
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov qword [rbp - 0x78], rdi
mov qword [rsp + 0x48], rdi
test rdi, rdi
je 0x14001b680
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 0x14001b891
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, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001b897
mov eax, dword [rbp - 0x68]
dec eax
cmp eax, 1
ja 0x14001b897
mov eax, dword [rsp + 0x48]
xor ebx, ebx
test eax, eax
je 0x14001b6fc
test al, 1
jne 0x14001b899
shr rax, 1
cmp word [rbp + rax*2 - 0x12], bx
je 0x14001b700
jmp 0x14001b899
mov word [rbp - 0x10], bx
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x10]
call fcn.14001ad20
test al, al
je 0x14001b899
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 0x14001b7ea
lea rax, [rsp + 0x40]
cmp rsi, rax
ja 0x14001b7ea
lea rbx, [rsp + 0x40]
sub rbx, rsi
sar rbx, 3
cmp rdi, r15
jne 0x14001b7c9
mov rax, r15
sub rax, rdi
sar rax, 3
cmp rax, 1
jae 0x14001b7c9
sub rdi, rsi
sar rdi, 3
movabs rcx, 0x1fffffffffffffff
mov rax, rcx
sub rax, rdi
cmp rax, 1
jb 0x14001b8cc
lea rdx, [rdi + 1]
sub r15, rsi
sar r15, 3
mov rax, r15
shr rax, 1
sub rcx, rax
add rax, r15
xor r8d, r8d
cmp rcx, r15
cmovae r8, rax
cmp r8, rdx
cmovae rdx, r8
lea rcx, [rsp + 0x50]
call fcn.140016000
mov r15, qword [rsp + 0x60]
mov qword [rsp + 0x68], r15
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 0x14001b7e5
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
nop
jmp 0x14001b883
cmp rdi, r15
jne 0x14001b866
mov rax, r15
sub rax, rdi
sar rax, 3
cmp rax, 1
jae 0x14001b866
sub rdi, rsi
sar rdi, 3
movabs rcx, 0x1fffffffffffffff
mov rax, rcx
sub rax, rdi
cmp rax, 1
jb 0x14001b8da
lea rdx, [rdi + 1]
sub r15, rsi
sar r15, 3
mov rax, r15
shr rax, 1
sub rcx, rax
add rax, r15
mov r8, rbx
cmp rcx, r15
cmovae r8, rax
cmp r8, rdx
cmovae rdx, r8
lea rcx, [rsp + 0x50]
call fcn.140016000
mov r15, qword [rsp + 0x60]
mov qword [rsp + 0x68], r15
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov qword [rbp - 0x78], rdi
mov qword [rsp + 0x48], rdi
test rdi, rdi
je 0x14001b883
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 r14, r14
je 0x14001b370
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001b370
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 0x14001b90c
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001b90c
mov r15, qword [rsp + 0x60]
mov qword [rsp + 0x68], r15
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 0x14001b9ef
mov r15, qword [rbp - 0x60]
xor esi, esi
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x14001b9d8
lea rdx, str.CreateDrawCoreComponent
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001b9d8
call rax
mov r14, rax
test rax, rax
je 0x14001b9d8
mov rcx, qword [r15]
mov r8, qword [rcx + 0x28]
mov rdx, rax
mov rcx, r15
call r8
test al, al
jne 0x14001b9d8
mov r8, qword [r14]
mov rdx, r13
mov rcx, r14
call qword [r8 + 0x10]
test eax, eax
js 0x14001b9d8
mov qword [rsp + 0x40], r14
lea r12, [r15 - 0x10]
cmp eax, 1
sete r8b
lea rdx, [rsp + 0x40]
mov rcx, r12
call fcn.14001bca0
test al, al
je 0x14001b9d8
mov qword [rsp + 0x40], rsi
mov rax, qword [r14]
lea r8, [rsp + 0x40]
lea rdx, [0x14002b1d8]
mov rcx, r14
call qword [rax]
test al, al
je 0x14001b9d8
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001b9d8
mov rax, qword [rcx]
mov rdx, r15
test r12, r12
cmove rdx, rsi
call qword [rax]
add rbx, 8
cmp rbx, rdi
jne 0x14001b927
mov rsi, qword [rsp + 0x50]
mov r15, qword [rsp + 0x68]
lea rcx, [rbp - 0x80]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
test rsi, rsi
je 0x14001ba95
mov rbx, rsi
cmp rsi, rdi
je 0x14001ba22
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
add rbx, 8
cmp rbx, rdi
jne 0x14001ba10
sub r15, rsi
sar r15, 3
movabs rax, 0x1fffffffffffffff
cmp r15, rax
jbe 0x14001ba3f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rax, [r15*8]
cmp rax, 0x1000
jb 0x14001ba8c
test sil, 0x1f
je 0x14001ba5c
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 0x14001ba6c
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 0x14001ba7c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rsi, 0x27
jbe 0x14001ba89
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.14001fb30
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