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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 8]
sub rsp, 0x108
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov r13, rcx
xor ebx, ebx
mov dword [rcx + 0xb70], ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x14b
mov rcx, qword [rcx + 0xbc8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [r13 + 0xb80]
test rax, rax
mov r9d, ebx
je 0x14001c2a7
mov r9, qword [rax + 8]
xor r8d, r8d
mov edx, 0x402
mov rcx, qword [r13 + 0xbc8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rax
call qword [sym.imp.mfc140u.dll_Ordinal_4724]
mov r12, rbx
mov qword [rbp - 0x48], rbx
mov dword [rbp - 0x40], ebx
mov qword [rbp - 0x38], rbx
lea rcx, [rbp + 0x60]
call qword [sym.imp.CrlUtl.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_INIGetRegistryProductKey_void_]
nop
lea r8, [0x140054590]
mov rdx, rax
lea rcx, [rbp + 0x58]
call fcn.14001f0f0
mov qword [rbp + 0x50], rbx
lea rcx, [rbp + 0x50]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001c32a
mov eax, ebx
mov r12, qword [rbp + 0x50]
mov qword [rbp - 0x48], r12
mov dword [rbp - 0x40], ebx
test ebx, ebx
sete dil
lea rcx, [rbp + 0x58]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp + 0x60]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
test dil, dil
je 0x14001c75e
mov r15d, ebx
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov dword [rbp + 0x58], operator
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x58]
mov r8, rax
mov edx, r15d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov r14d, eax
mov dword [rsp + 0x60], eax
or edx, 0xffffffff
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CDialogImpl::ProcessMouseClick]
test r14d, r14d
jne 0x14001c73b
mov rdi, qword [rsp + 0x50]
lea rcx, [rsp + 0x78]
call qword [sym.imp.CrlUtl.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_INIGetProgramsDir_void_]
nop
mov r8, rdi
mov rdx, qword [rax]
lea rcx, [rsp + 0x70]
call qword [sym.imp.CrlUtils.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_SystemIO::Path::Combine_wchar_t_const____ptr64__wchar_t_const____ptr64_]
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.CrlUtils.dll_bool___cdecl_SystemIO::File::Exists_wchar_t_const____ptr64_]
test al, al
jne 0x14001c42f
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCToolBar::DrawButton]
xor al, al
jmp 0x14001c431
mov al, 1
test al, al
je 0x14001c73b
mov rsi, rbx
mov qword [rbp - 0x30], rbx
mov dword [rbp - 0x28], ebx
mov qword [rbp - 0x20], rbx
mov qword [rbp + 0x50], rbx
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001c72c
mov eax, ebx
mov rsi, qword [rbp + 0x50]
mov qword [rbp - 0x30], rsi
mov dword [rbp - 0x28], ebx
test ebx, ebx
jne 0x14001c72c
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov edx, 0x104
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov r14, rax
mov dword [rbp + 0x50], 0x208
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14001c518
mov eax, dword [rbp + 0x60]
dec eax
cmp eax, 1
jbe 0x14001c4ef
lea edi, [rbx + 0xd]
jmp 0x14001c518
test r14, r14
je 0x14001c516
mov eax, dword [rbp + 0x50]
test eax, eax
je 0x14001c512
test al, 1
jne 0x14001c50b
shr rax, 1
cmp word [r14 + rax*2 - 2], 0
je 0x14001c516
mov edi, 0xd
jmp 0x14001c518
mov word [r14], bx
mov edi, ebx
or edx, 0xffffffff
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CDialogImpl::ProcessMouseClick]
test edi, edi
je 0x14001c570
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
test rsi, rsi
je 0x14001c551
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
inc r15d
jmp 0x14001c350
mov edx, 0x104
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov r14, rax
mov dword [rbp + 0x50], 0x208
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x68]
xor r8d, r8d
lea rdx, [0x1400545b0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14001c5ef
mov eax, dword [rbp + 0x68]
dec eax
cmp eax, 1
jbe 0x14001c5c6
mov edi, 0xd
jmp 0x14001c5ef
test r14, r14
je 0x14001c5ed
mov eax, dword [rbp + 0x50]
test eax, eax
je 0x14001c5e9
test al, 1
jne 0x14001c5e2
shr rax, 1
cmp word [r14 + rax*2 - 2], 0
je 0x14001c5ed
mov edi, 0xd
jmp 0x14001c5ef
mov word [r14], bx
mov edi, ebx
or edx, 0xffffffff
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CDialogImpl::ProcessMouseClick]
test edi, edi
jne 0x14001c52a
lea ecx, [rdi + 0x10]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
mov r14, rax
mov qword [rbp - 8], rax
test rax, rax
je 0x14001c63e
mov rdi, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
nop
lea rcx, [r14 + 8]
mov rdx, rdi
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
nop
jmp 0x14001c641
mov r14, rbx
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x68]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_ExtractIconExW]
mov rcx, qword [r13 + 0xb80]
mov r8, qword [rsp + 0x68]
or edx, 0xffffffff
mov rcx, qword [rcx + 8]
call qword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov edi, eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.USER32.dll_DestroyIcon]
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x80], 0x27
xor r9d, r9d
xor r8d, r8d
mov edx, 0x146
mov rcx, qword [r13 + 0xbc8]
call qword [sym.imp.USER32.dll_SendMessageW]
movsxd rcx, eax
mov qword [rbp - 0x78], rcx
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_Ordinal_4947]
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x64], edi
mov dword [rbp - 0x60], edi
mov qword [rbp - 0x50], r14
lea rcx, [r13 + 0xb88]
lea rdx, [rbp - 0x80]
call qword [sym.imp.mfc140u.dll_CMFCAutoHideBar::GetVisibleCount]
or edx, 0xffffffff
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CDialogImpl::ProcessMouseClick]
mov dword [r13 + 0xb70], 1
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov r14d, dword [rsp + 0x60]
test rsi, rsi
je 0x14001c73b
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
inc r15d
test r14d, r14d
je 0x14001c350
cmp dword [r13 + 0x1c8], 0
je 0x14001c777
cmp dword [r13 + 0xb70], 0
je 0x14001c777
mov ebx, 1
lea rcx, [r13 + 0xb88]
mov edx, ebx
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
mov edx, 0x646
mov rcx, r13
call qword [sym.imp.mfc140u.dll_CMFCRibbonGallery::GetCompactSize]
mov rcx, rax
mov edx, dword [r13 + 0xb70]
call qword [sym.imp.mfc140u.dll_CMFCTasksPaneToolBarCmdUI::Enable]
nop
test r12, r12
je 0x14001c7b3
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret