Function at 0x1400192a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x90], rbx
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x1400192d2
mov eax, 0x80004003
jmp 0x140019608
mov byte [rdx], 1
mov eax, 1
mov word [rdx + 2], ax
mov rcx, qword [rdx + 8]
xor edi, edi
test rcx, rcx
je 0x1400192f3
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsi + 8], rdi
mov byte [rsi + 0x10], 1
mov rcx, qword [rbx + 8]
test rcx, rcx
jne 0x140019305
mov rax, rdi
jmp 0x140019317
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov edx, eax
mov rcx, qword [rbx + 8]
call qword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov qword [rsp + 0x38], rax
cmp qword [rbx + 8], rdi
je 0x140019332
test rax, rax
jne 0x140019332
mov ecx, 0x8007000e
call fcn.140002460
nop
lea rcx, str.CadManagerControlCommunicationCenter
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8d, eax
lea rdx, str.CadManagerControlCommunicationCenter
lea rcx, [rsp + 0x38]
call fcn.14000c020
test eax, eax
jns 0x14001935f
mov ecx, eax
call fcn.140002460
int3
mov rbp, rdi
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x98], rdi
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rsp + 0x38]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400195e9
mov rbp, qword [rsp + 0x98]
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x98], edi
mov dword [rsp + 0xa8], 4
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.EnableCommunicationCenter
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001940c
cmp dword [rsp + 0x34], 4
jne 0x14001940c
cmp dword [rsp + 0x98], eax
jne 0x14001940c
mov byte [rsi], al
mov dword [rsp + 0xa0], edi
mov dword [rsp + 0xa8], 4
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.MaintenancePatchNotificationOption
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140019467
cmp dword [rsp + 0x34], 4
jne 0x140019467
movzx eax, word [rsp + 0xa0]
mov word [rsi + 2], ax
mov dword [rsp + 0xa8], edi
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.LocalPatchListLocation
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140019584
mov eax, dword [rsp + 0x34]
cmp eax, 1
je 0x1400194b2
cmp eax, 2
jne 0x140019584
mov r13d, dword [rsp + 0xa8]
shr r13d, 1
cmp r13d, 1
jbe 0x140019584
mov ecx, r13d
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call sub.MSVCR90.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov r12, rax
lea eax, [r13 + r13]
mov dword [rsp + 0xa8], eax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.LocalPatchListLocation
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140019544
mov eax, dword [rsp + 0x34]
cmp eax, 1
je 0x140019530
cmp eax, 2
jne 0x140019544
test r12, r12
je 0x140019549
cmp dword [rsp + 0xa8], 0
jne 0x140019544
mov word [r12], di
test r12, r12
jne 0x14001954e
mov rax, rdi
jmp 0x140019567
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
test rax, rax
jne 0x140019567
mov ecx, 0x8007000e
call fcn.140002460
nop
mov qword [rsp + 0xa8], rdi
mov qword [rsi + 8], rax
mov rcx, r12
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
nop
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [rsp + 0x30], edi
mov dword [rsp + 0xa8], 4
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.EnableNonPatchNotifications
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400195d6
cmp dword [rsp + 0x34], 4
jne 0x1400195d6
cmp dword [rsp + 0x30], eax
jne 0x1400195d6
mov byte [rsi + 0x10], al
test rbp, rbp
je 0x1400195ee
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, rdi
jmp 0x1400195ee
mov edi, 0x80004005
test rbp, rbp
je 0x1400195fd
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret