Function at 0x140018200
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov r15, r8
mov rsi, rdx
mov r13, rcx
xor r14d, r14d
mov dword [rbp + 0x7f], r14d
mov qword [rbp - 0x49], r14
mov r8, rdx
lea rdx, [rbp - 0x41]
call fcn.1400188e0
nop
lea r8d, [r14 + 1]
lea rdx, [rbp + 0x7f]
lea rcx, [rbp - 0x41]
call qword [sym.imp.mfc140u.dll_CStringList::InsertBefore]
nop
lea rdx, [0x140043110]
mov rcx, rax
call qword [sym.imp.mfc140u.dll_Ordinal_2903]
mov ebx, eax
lea rcx, [rbp + 0x7f]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
test ebx, ebx
jne 0x14001828b
xor edx, edx
lea r8d, [r14 + 1]
lea rcx, [rbp - 0x41]
call qword [sym.imp.mfc140u.dll_CDHtmlDialog::DDX_DHtml_Radio]
nop
lea rcx, [r13 + 0x10]
call qword [sym.imp.mfc140u.dll_CMFCRibbonUndoButton::GetIconSize]
mov rdx, rax
lea rcx, [rbp - 0x29]
call qword [sym.imp.mfc140u.dll_Ordinal_285]
mov rdi, rax
mov dword [rbp + 0x7f], 2
mov r9, qword [rbp - 0x41]
mov ecx, dword [r9 - 0x10]
mov rdx, qword [r13 + 0x10]
mov dword [rsp + 0x20], ecx
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x29]
call qword [sym.imp.mfc140u.dll_CMFCTasksPane::CollapseAllGroups]
lea rcx, [rbp - 0x31]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov rdx, rdi
lea rcx, [rbp - 0x19]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
mov rdi, rax
mov qword [rbp - 9], rax
mov edx, 0x5c
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CPaneFrameWnd::EnterDragMode]
mov ebx, eax
lea r8d, [rax + 1]
lea rdx, [rbp - 0x21]
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CMFCToolBar::LoadState]
nop
mov rdx, rax
lea rcx, [rbp - 0x31]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rbp - 0x21]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov r8d, ebx
lea rdx, [rbp - 0x39]
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CStringList::InsertBefore]
nop
lea rdx, str.HKEY_CURRENT_USER
lea rcx, [rbp - 0x39]
call qword [sym.imp.mfc140u.dll_CFileFind::CloseContext]
test eax, eax
jne 0x140018355
mov r14, 0xffffffff80000001
jmp 0x140018373
lea rdx, str.HKEY_LOCAL_MACHINE
lea rcx, [rbp - 0x39]
call qword [sym.imp.mfc140u.dll_CFileFind::CloseContext]
mov rcx, 0xffffffff80000002
test eax, eax
cmove r14, rcx
lea rcx, [rbp - 0x39]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, 0x100
mov r9d, 0x200
cmp dword [r13 + 0x18], 1
cmove r9d, eax
or r9d, 0x20019
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rbp - 0x31]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400183ca
cmp qword [rbp - 0x49], 0
je 0x1400183ca
xor bl, bl
jmp 0x1400183cc
mov bl, 1
lea rcx, [rbp - 0x31]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp - 0x29]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
test bl, bl
je 0x1400183ed
xor r14b, r14b
jmp 0x1400185a6
mov dword [rbp + 0x67], 0x3e8
mov edx, 0x3e8
lea rcx, [rbp + 0x17]
call fcn.14001ed90
nop
mov edx, 0x2f
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_COleControl::ReleaseCaches]
test eax, eax
js 0x140018428
lea r8d, [rax + 1]
lea rdx, [rbp + 0x7f]
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CMFCToolBar::LoadState]
jmp 0x140018435
mov rdx, rsi
lea rcx, [rbp + 0x7f]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
mov rdi, qword [rbp + 0x17]
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x7f]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
sete r14b
lea rcx, [rbp + 0x7f]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, dword [rbp + 0x67]
shr eax, 1
test ebx, ebx
jne 0x140018557
test eax, eax
jne 0x140018493
lea rdx, case.0x140010aed.70
mov rcx, r15
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
jmp 0x140018557
mov edx, eax
lea rcx, [rbp - 1]
call fcn.14001ed90
nop
mov edx, 0x2f
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_COleControl::ReleaseCaches]
test eax, eax
js 0x1400184c4
lea r8d, [rax + 1]
lea rdx, [rbp + 0x7f]
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CMFCToolBar::LoadState]
jmp 0x1400184d1
mov rdx, rsi
lea rcx, [rbp + 0x7f]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
mov rbx, qword [rbp - 1]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x7f]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete r14b
lea rcx, [rbp + 0x7f]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
nop
test rbx, rbx
je 0x140018557
mov rax, qword [rbp + 0xf]
sub rax, rbx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rbx
cmp rdx, 0x1000
jb 0x14001854f
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001854f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400334e4
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rdi, rdi
je 0x1400185a6
mov rax, qword [rbp + 0x27]
sub rax, rdi
sar rax, 1
lea rdx, [rax + rax]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14001859d
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001859d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1400334e4
nop
lea rcx, [rbp - 0x41]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
movzx eax, r14b
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret