Function at 0x14000b0a0
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x180
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x198], rbx
mov rax, qword [0x140022008]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov dword [rsp + 0x60], 0x100
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 0x158]
call fcn.1400062d0
mov rbx, rax
cmp qword [rdi + 0x1a8], 0
je 0x14000b137
call qword [sym.imp.plotcfg13.dll_class_HT_SPMem_Pool____ptr64___cdecl_SPMP_void_]
mov r8, qword [rax]
mov rdx, qword [rdi + 0x1a8]
mov rcx, rax
call qword [r8 + 0x10]
test eax, eax
jne 0x14000b137
mov rcx, qword [rdi + 0x1a8]
test rcx, rcx
je 0x14000b137
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rbx, qword [rbx]
test rbx, rbx
je 0x14000b152
call qword [sym.imp.plotcfg13.dll_class_HT_SPMem_Pool____ptr64___cdecl_SPMP_void_]
mov r8, qword [rax]
mov rdx, rbx
mov rcx, rax
call qword [r8 + 8]
mov qword [rdi + 0x1a8], rbx
cmp qword [rsp + 0x30], 0
je 0x14000b18f
call qword [sym.imp.plotcfg13.dll_class_HT_SPMem_Pool____ptr64___cdecl_SPMP_void_]
mov r8, qword [rax]
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call qword [r8 + 0x10]
test eax, eax
jne 0x14000b18f
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000b18f
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.hcreg13.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_GetAppKey_wchar_t_const____ptr64_]
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rdx, str.Profiles
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_COleCurrency::operator_]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffff80000001
call fcn.1400102e0
test eax, eax
je 0x14000b203
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
xor eax, eax
jmp 0x14000b333
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, [0x140015350]
mov rcx, qword [rsp + 0x50]
call fcn.1400102a0
mov ebx, eax
mov rcx, qword [rsp + 0x50]
call sub.ADVAPI32.dll_RegCloseKey
test ebx, ebx
jne 0x14000b270
mov eax, dword [rsp + 0x64]
dec eax
cmp eax, 1
ja 0x14000b270
lea rdx, [0x140015228]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_COleCurrency::operator_]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_COleCurrency::operator_]
nop
jmp 0x14000b287
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
xor eax, eax
jmp 0x14000b333
lea r8, [rdi + 0x188]
lea rdx, [rdi + 0x178]
lea rcx, [rsp + 0x68]
call fcn.1400056f0
nop
mov rbx, qword [rsp + 0x68]
lea rdx, str.General
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_COleCurrency::operator_]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffff80000001
call fcn.1400102e0
cmp byte [rdi + 0x181], 1
jne 0x14000b317
mov rax, qword [rsp + 0x68]
mov ecx, dword [rax - 0x10]
lea ecx, [rcx*2 + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.NewStyleSheet
mov rcx, qword [rsp + 0x50]
call sub.ADVAPI32.dll_RegSetValueExW
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, 1
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14000f1e0
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rdi
ret