Function at 0x1400d6060
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, [0x140199388]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x140199380], rdi
jne 0x1400d60ab
lea rcx, [0x140199360]
call fcn.140040ae0
lea rcx, [0x140199388]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x140199380]
test rcx, rcx
je 0x1400d60df
mov rax, qword [rcx]
lea r8, [0x14014e0f8]
mov edx, 0xc9
mov rax, qword [rax + 0x30]
call qword [case.0x14006aed5.0]
jmp 0x1400d60e6
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__2]
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 0x1400d612c
mov eax, edi
mov rbx, qword [rbp + 0x2f]
mov qword [rbp + 0x17], rbx
mov dword [rbp + 0x1f], edi
test eax, eax
je 0x1400d6271
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 0x1400d6191
mov eax, edi
test rbx, rbx
je 0x1400d6186
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 0x1400d6271
mov ecx, dword [0x1401993f8]
mov eax, dword [0x1401993fc]
add ecx, eax
je 0x1400d620d
mov dword [rbp - 0x21], edi
call fcn.1400057e0
mov qword [rbp - 0x29], rax
lock inc dword [rbp - 0x21]
mov dword [rbp + 0x67], 1
mov rax, qword [rbp - 0x29]
test rax, rax
jne 0x1400d61d6
call fcn.1400057e0
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, [0x14014e160]
mov qword [rsp + 0x20], rax
lea r9, [0x140000000]
lea r8, [rbp + 0x77]
movsx edx, di
call fcn.140004bd0
nop
mov eax, dword [rbp + 0x67]
test al, 1
je 0x1400d6248
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 0x1400d6244
nop dword [rax]
call fcn.140005b50
mov eax, 0xffffffff
lock xadd dword [rbp - 0x21], eax
cmp eax, 1
jns 0x1400d6230
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 0x1400d63c6
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, [0x14014e440]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400d62af
cmp dword [rbp - 1], 4
je 0x1400d639c
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, [0x14014e460]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400d639c
mov ecx, dword [0x1401993f8]
mov eax, dword [0x1401993fc]
add ecx, eax
je 0x1400d635b
mov dword [rbp - 0x11], edi
call fcn.1400057e0
mov qword [rbp - 0x19], rax
lock inc dword [rbp - 0x11]
mov dword [rbp + 0x67], 2
mov rax, qword [rbp - 0x19]
test rax, rax
jne 0x1400d6324
call fcn.1400057e0
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_value
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.140004bd0
nop
mov eax, dword [rbp + 0x67]
test al, 2
je 0x1400d6398
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 0x1400d6394
nop dword [rax + rax]
call fcn.140005b50
mov eax, 0xffffffff
lock xadd dword [rbp - 0x11], eax
cmp eax, 1
jns 0x1400d6380
lock inc dword [rbp - 0x11]
mov rbx, qword [rbp + 0x17]
test rbx, rbx
je 0x1400d63ad
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 0x1400d63c6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0xc0
pop rdi
pop rbx
pop rbp
ret