Function at 0x140026cbc
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r13
push r15
lea rbp, [rax - 0x3c8]
sub rsp, 0x4b0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x140119ad0]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
lea r8, str.Common::IsOnlyCentennialOfficeTemplateRegistered__
lea r12, str.UevCommon
mov rdx, r12
lea rcx, [rbp + 0x110]
call fcn.140026964
nop
xor esi, esi
mov byte [rsp + 0x60], sil
call fcn.14000a564
mov rcx, qword [rax]
lea r15d, [rsi + 7]
lea r13d, [rsi + 9]
test byte [rcx + 0x20], 8
jbe 0x140026dd9
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], rsi
mov word [rbp - 0x30], si
lea r8d, [rsi + 0x3e]
lea rdx, str.Common::IsOnlyCentennialOfficeTemplateRegistered_____Entering.
lea rcx, [rbp - 0x30]
call fcn.1400061d0
nop
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x68], rsi
mov word [rbp - 0x78], si
mov r8d, r13d
mov rdx, r12
lea rcx, [rbp - 0x78]
call fcn.1400061d0
nop
call fcn.14000a564
lea r8, [rbp - 0x30]
lea rdx, [rbp + 0x10]
call fcn.140021e8c
mov rbx, rax
call fcn.14000a564
mov rcx, rax
mov r9, rbx
lea r8, [rbp - 0x78]
call fcn.140021c44
nop
lea rcx, [rbp + 0x10]
call fcn.140009a50
nop
cmp qword [rbp - 0x60], 8
jb 0x140026dbc
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x68], rsi
mov word [rbp - 0x78], si
cmp qword [rbp - 0x18], 8
jb 0x140026dd9
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x20119
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftUevAgentRuntimeTemplateRegistration
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x64], eax
call fcn.14000a564
mov rcx, qword [rax]
lea rbx, [method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_8]
lea rdi, [0x1400295f0]
test byte [rcx + 0x20], 8
jbe 0x140026f02
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x48], rsi
mov word [rbp - 0x58], si
mov r8d, 0x51
lea rdx, str.Common::IsOnlyCentennialOfficeTemplateRegistered___RegCreateKeyEx_returned___1_.
lea rcx, [rbp - 0x58]
call fcn.1400061d0
nop
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], rsi
mov word [rbp - 0x30], si
mov r8, r13
mov rdx, r12
lea rcx, [rbp - 0x30]
call fcn.1400061d0
nop
call fcn.14000a564
lea r8, [rbp - 0x58]
lea rdx, [rbp + 0x10]
call fcn.140021e8c
nop
lea rcx, [rsp + 0x64]
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], rdi
lea rdx, [rbp - 0x78]
mov rcx, rax
call fcn.140014fe8
mov rbx, rax
call fcn.14000a564
mov rcx, rax
mov r9, rbx
lea r8, [rbp - 0x30]
call fcn.140021c44
nop
lea rcx, [rbp + 0x10]
call fcn.140009a50
nop
cmp qword [rbp - 0x18], 8
jb 0x140026ede
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], rsi
mov word [rbp - 0x30], si
cmp qword [rbp - 0x40], 8
jb 0x140026efb
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
lea rbx, [method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_8]
cmp dword [rsp + 0x64], esi
jne 0x140027208
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14002733e
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [rsp + 0x64], eax
call fcn.14000a564
mov rcx, qword [rax]
test byte [rcx + 0x20], 8
jbe 0x140027047
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x48], rsi
mov word [rbp - 0x58], si
mov r8d, 0x60
lea rdx, str.Common::IsOnlyCentennialOfficeTemplateRegistered___RegQueryInfoKey_returned___1_._cValues___2_
lea rcx, [rbp - 0x58]
call fcn.1400061d0
nop
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], rsi
mov word [rbp - 0x30], si
mov r8, r13
mov rdx, r12
lea rcx, [rbp - 0x30]
call fcn.1400061d0
nop
call fcn.14000a564
lea r8, [rbp - 0x58]
lea rdx, [rbp + 0x10]
call fcn.140021e8c
nop
lea rcx, [rsp + 0x64]
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], rdi
lea rdx, [rbp - 0x78]
mov rcx, rax
call fcn.140014fe8
lea rcx, [rsp + 0x68]
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], rdi
lea rdx, [rbp - 0x78]
mov rcx, rax
call fcn.140014fe8
mov rbx, rax
call fcn.14000a564
mov rcx, rax
mov r9, rbx
lea r8, [rbp - 0x30]
call fcn.140021c44
nop
lea rcx, [rbp + 0x10]
call fcn.140009a50
nop
cmp qword [rbp - 0x18], 8
jb 0x14002702a
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], rsi
mov word [rbp - 0x30], si
cmp qword [rbp - 0x40], 8
jb 0x140027047
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
cmp dword [rsp + 0x64], esi
jne 0x140027208
mov eax, dword [rsp + 0x68]
cmp eax, 2
ja 0x140027208
mov edi, esi
test eax, eax
je 0x140027208
mov dword [rsp + 0x78], 0x104
mov rcx, qword [rsp + 0x70]
test rcx, rcx
setne al
test al, al
je 0x14002736d
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x78]
lea r8, [rbp + 0x190]
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [rsp + 0x64], eax
call fcn.14000a564
mov rax, qword [rax]
test byte [rax + 0x20], 8
jbe 0x1400271bb
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x48], rsi
mov word [rbp - 0x58], si
mov r8d, 0x5f
lea rdx, str.Common::IsOnlyCentennialOfficeTemplateRegistered___RegEnumValue_returned___1_._valueName___2_
lea rcx, [rbp - 0x58]
call fcn.1400061d0
nop
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], rsi
mov word [rbp - 0x30], si
mov r8, r13
mov rdx, r12
lea rcx, [rbp - 0x30]
call fcn.1400061d0
nop
call fcn.14000a564
lea r8, [rbp - 0x58]
lea rdx, [rbp + 0x10]
call fcn.140021e8c
nop
lea rcx, [rsp + 0x64]
mov qword [rbp - 0x78], rcx
lea rcx, [method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_8]
mov qword [rbp - 0x70], rcx
lea rcx, [0x1400295f0]
mov qword [rbp - 0x68], rcx
lea rdx, [rbp - 0x78]
mov rcx, rax
call fcn.140014fe8
lea rcx, [rbp + 0x190]
mov qword [rbp - 0x78], rcx
lea rcx, [method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_8]
mov qword [rbp - 0x70], rcx
lea rcx, [0x140029600]
mov qword [rbp - 0x68], rcx
lea rdx, [rbp - 0x78]
mov rcx, rax
call fcn.140014fe8
mov rbx, rax
call fcn.14000a564
mov rcx, rax
mov r9, rbx
lea r8, [rbp - 0x30]
call fcn.140021c44
nop
lea rcx, [rbp + 0x10]
call fcn.140009a50
nop
cmp qword [rbp - 0x18], 8
jb 0x14002719e
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], rsi
mov word [rbp - 0x30], si
cmp qword [rbp - 0x40], 8
jb 0x1400271bb
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
cmp dword [rsp + 0x64], esi
jne 0x140027334
lea rdx, str.MicrosoftCentennialOfficeWin32
lea rcx, [rbp + 0x190]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x1400271f7
lea rdx, str.MicrosoftCentennialOfficeWin64
lea rcx, [rbp + 0x190]
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140027334
mov byte [rsp + 0x60], 1
inc edi
cmp edi, dword [rsp + 0x68]
jb 0x140027068
call fcn.14000a564
mov rcx, qword [rax]
test byte [rcx + 0x20], 8
jbe 0x1400272e7
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x48], rsi
mov word [rbp - 0x58], si
mov r8d, 0x60
lea rdx, str.Common::IsOnlyCentennialOfficeTemplateRegistered___onlyCentennialOfficeTemplateRegistered___1_.
lea rcx, [rbp - 0x58]
call fcn.1400061d0
nop
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], rsi
mov word [rbp - 0x30], si
mov r8, r13
mov rdx, r12
lea rcx, [rbp - 0x30]
call fcn.1400061d0
nop
call fcn.14000a564
lea r8, [rbp - 0x58]
lea rdx, [rbp + 0x10]
call fcn.140021e8c
nop
lea rcx, [rsp + 0x60]
mov qword [rbp - 0x78], rcx
lea rcx, [method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_8]
mov qword [rbp - 0x70], rcx
lea rcx, [0x140029610]
mov qword [rbp - 0x68], rcx
lea rdx, [rbp - 0x78]
mov rcx, rax
call fcn.140014fe8
mov rbx, rax
call fcn.14000a564
mov rcx, rax
mov r9, rbx
lea r8, [rbp - 0x30]
call fcn.140021c44
nop
lea rcx, [rbp + 0x10]
call fcn.140009a50
nop
cmp qword [rbp - 0x18], 8
jb 0x1400272ca
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], rsi
mov word [rbp - 0x30], si
cmp qword [rbp - 0x40], 8
jb 0x1400272e7
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov bl, byte [rsp + 0x60]
lea rcx, [rsp + 0x70]
call fcn.140005f2c
nop
lea rcx, [rbp + 0x110]
call fcn.140026a74
mov al, bl
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.1400b6c20
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop rbp
ret
mov byte [rsp + 0x60], sil
jmp 0x140027208
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rbp - 0x58]
call fcn.140005fd8
nop
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x30]
call fcn.140005818
lea rdx, [0x14010f938]
lea rcx, [rbp - 0x30]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rbp - 0x58]
call fcn.140005fd8
nop
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x30]
call fcn.140005818
lea rdx, [0x14010f938]
lea rcx, [rbp - 0x30]
call sub.msvcrt.dll__CxxThrowException
int3