Function at 0x1400e4bc0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
xor edi, edi
mov dword [rbp + 0x67], edi
mov ebx, edi
mov qword [rbp + 0x17], rbx
mov dword [rbp + 0x1f], edi
mov qword [rbp + 0x27], rdi
mov dword [rbp + 0x6f], edi
lea rcx, [0x1401c15e8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x1401c15e0], rdi
jne 0x1400e4c0b
lea rcx, [0x1401c15c0]
call fcn.140047ce0
lea rcx, [0x1401c15e8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x1401c15e0]
test rcx, rcx
je 0x1400e4c3f
mov rax, qword [rcx]
lea r8, [0x14016f328]
mov edx, 0xc9
mov rax, qword [rax + 0x30]
call qword [case.0x140077645.0]
jmp 0x1400e4c46
lea rax, str._error_interface_not_inited_
mov rdx, rax
lea rcx, [rbp - 9]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
nop
mov qword [rbp + 0x2f], rdi
lea rax, [rbp + 0x2f]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rbp - 9]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400e4c8c
mov eax, edi
mov rbx, qword [rbp + 0x2f]
mov qword [rbp + 0x17], rbx
mov dword [rbp + 0x1f], edi
test eax, eax
je 0x1400e4dd1
mov qword [rbp + 0x37], rdi
lea rax, [rbp + 0x3f]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x37]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp - 9]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400e4cf1
mov eax, edi
test rbx, rbx
je 0x1400e4ce6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rbp + 0x37]
mov qword [rbp + 0x17], rbx
mov dword [rbp + 0x1f], edi
test eax, eax
je 0x1400e4dd1
mov ecx, dword [0x1401c1658]
mov eax, dword [0x1401c165c]
add ecx, eax
je 0x1400e4d6d
mov dword [rbp - 0x21], edi
call fcn.140005ad0
mov qword [rbp - 0x29], rax
lock inc dword [rbp - 0x21]
mov dword [rbp + 0x67], 1
mov rax, qword [rbp - 0x29]
test rax, rax
jne 0x1400e4d36
call fcn.140005ad0
mov qword [rbp - 0x29], rax
lock inc dword [rbp - 0x21]
mov rcx, qword [rbp - 0x29]
mov dword [rbp + 0x77], 4
lea rax, str._SECCENTER__Cannot_create_key._REGPATH_PRODUCT
mov qword [rsp + 0x28], rax
lea rax, [0x14016f400]
mov qword [rsp + 0x20], rax
lea r9, [0x140000000]
lea r8, [rbp + 0x77]
movsx edx, di
call fcn.140004c90
nop
mov eax, dword [rbp + 0x67]
test al, 1
je 0x1400e4da8
and eax, 0xfffffffe
mov dword [rbp + 0x67], eax
mov qword [rbp - 0x29], rdi
mov eax, 0xffffffff
lock xadd dword [rbp - 0x21], eax
cmp eax, 1
js 0x1400e4da4
nop dword [rax]
call fcn.140005e40
mov eax, 0xffffffff
lock xadd dword [rbp - 0x21], eax
cmp eax, 1
jns 0x1400e4d90
lock inc dword [rbp - 0x21]
lea rcx, [rbp - 9]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x1400e4f26
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0xc0
pop rdi
pop rbx
pop rbp
ret
mov dword [rbp + 0x7f], 4
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 1]
xor r8d, r8d
lea rdx, [0x14016f308]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400e4e0f
cmp dword [rbp - 1], 4
je 0x1400e4efc
mov eax, dword [rbp + 0x6f]
mov dword [rbp + 7], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x14016f378]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400e4efc
mov ecx, dword [0x1401c1658]
mov eax, dword [0x1401c165c]
add ecx, eax
je 0x1400e4ebb
mov dword [rbp - 0x11], edi
call fcn.140005ad0
mov qword [rbp - 0x19], rax
lock inc dword [rbp - 0x11]
mov dword [rbp + 0x67], 2
mov rax, qword [rbp - 0x19]
test rax, rax
jne 0x1400e4e84
call fcn.140005ad0
mov qword [rbp - 0x19], rax
lock inc dword [rbp - 0x11]
mov rcx, qword [rbp - 0x19]
mov dword [rbp + 0xf], 4
lea rax, str._SECCENTER__Cannot_save_ok_secc_first_run_selected_index
mov qword [rsp + 0x28], rax
lea rax, str.CMainDialog::_SetNotFirstSeccenterRun
mov qword [rsp + 0x20], rax
lea r9, [0x140000000]
lea r8, [rbp + 0xf]
movsx edx, di
call fcn.140004c90
nop
mov eax, dword [rbp + 0x67]
test al, 2
je 0x1400e4ef8
and eax, 0xfffffffd
mov dword [rbp + 0x67], eax
mov qword [rbp - 0x19], rdi
mov eax, 0xffffffff
lock xadd dword [rbp - 0x11], eax
cmp eax, 1
js 0x1400e4ef4
nop dword [rax + rax]
call fcn.140005e40
mov eax, 0xffffffff
lock xadd dword [rbp - 0x11], eax
cmp eax, 1
jns 0x1400e4ee0
lock inc dword [rbp - 0x11]
mov rbx, qword [rbp + 0x17]
test rbx, rbx
je 0x1400e4f0d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rdi
lea rcx, [rbp - 9]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
test rbx, rbx
je 0x1400e4f26
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0xc0
pop rdi
pop rbx
pop rbp
ret