Function at 0x4149d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4284d0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4312c8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x40]
xor esi, esi
cmp ebp, esi
jne 0x414a0d
mov eax, 0x80004003
jmp 0x414c27
mov eax, dword [ebp + 4]
cmp eax, esi
mov byte [ebp], 1
mov word [ebp + 2], 1
je 0x414a28
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp + 4], esi
mov byte [ebp + 8], 1
mov eax, dword [edi + 4]
cmp eax, esi
mov dword [esp + 0x24], esi
jne 0x414a3b
xor eax, eax
jmp 0x414a4d
push eax
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
cmp dword [edi + 4], esi
mov dword [esp + 0x40], eax
je 0x414a64
cmp eax, esi
jne 0x414a64
push 0x8007000e
call fcn.00405760
push str.CadManagerControlCommunicationCenter
mov dword [esp + 0x3c], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push str.CadManagerControlCommunicationCenter
lea ecx, [esp + 0x48]
call fcn.00401ff0
cmp eax, esi
jge 0x414a8c
push eax
call fcn.00405760
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x4c], 1
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x414c10
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x30]
push edx
push esi
push str.EnableCommunicationCenter
push edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], 4
call ebx
cmp eax, esi
jne 0x414aff
cmp dword [esp + 0x28], 4
jne 0x414aff
cmp dword [esp + 0x14], esi
jne 0x414aff
mov byte [ebp], 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push esi
push str.MaintenancePatchNotificationOption
push edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x40], 4
call ebx
cmp eax, esi
jne 0x414b37
cmp dword [esp + 0x1c], 4
jne 0x414b37
mov ax, word [esp + 0x18]
mov word [ebp + 2], ax
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x1c]
push eax
push esi
lea edx, [ecx + ecx]
lea ecx, [esp + 0x30]
push ecx
push esi
push str.LocalPatchListLocation
push edi
mov dword [esp + 0x34], edx
call ebx
cmp eax, esi
jne 0x414bca
mov eax, dword [esp + 0x28]
cmp eax, 1
je 0x414b68
cmp eax, 2
jne 0x414bca
mov eax, dword [esp + 0x1c]
shr eax, 1
cmp eax, 1
mov dword [esp + 0x1c], eax
jbe 0x414bca
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00418c29
add esp, 4
mov esi, eax
lea eax, [esp + 0x1c]
push eax
push esi
push str.LocalPatchListLocation
lea ecx, [esp + 0x38]
call fcn.00413c00
push esi
lea ecx, [esp + 0x2c]
call fcn.00403a30
mov ecx, dword [esp + 0x28]
push esi
mov dword [ebp + 4], ecx
call fcn.0041880d
add esp, 4
push 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor esi, esi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
push ecx
push esi
push str.EnableNonPatchNotifications
push edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x44], 4
call ebx
cmp eax, esi
jne 0x414c03
cmp dword [esp + 0x28], 4
jne 0x414c03
cmp dword [esp + 0x20], esi
jne 0x414c03
mov byte [ebp + 8], 0
cmp edi, esi
je 0x414c18
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x414c18
mov dword [esp + 0x24], 0x80004005
mov edx, dword [esp + 0x40]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4