Function at 0x404a80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463b28
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x483068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x22
xor eax, eax
mov dword [ebp - 0x20], 0
push str.SystemCurrentControlSetServices_
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.00409520
push 0x14
push str.MBAMInstallerService
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.004053f0
push 0xb
push str.Parameters
lea ecx, [ebp - 0x30]
call fcn.004053f0
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x34]
push ecx
push 0x20019
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x404bd7
lea ecx, [ebp - 0x4c]
call fcn.0041f060
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x404b35
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4858e0
call fcn.00408830
add esp, 4
mov edx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetupinstallerservicefactory.cpp
mov ecx, eax
call fcn.004073d0
mov edx, 0x476f7c
mov ecx, eax
call fcn.004073d0
push 0x215
mov ecx, eax
call fcn.00405950
mov edx, 0x4778b4
mov ecx, eax
call fcn.004073d0
mov edx, str.Failed_to_open_service_parameters_registry:
mov ecx, eax
call fcn.004073d0
push esi
mov ecx, eax
call fcn.004057b0
push eax
call fcn.00407a20
mov edx, dword [ebp - 0x38]
add esp, 4
cmp edx, 8
jb 0x404cb5
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404bc6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d13
push edx
push ecx
call fcn.004290dc
add esp, 8
xor bl, bl
jmp 0x404cc0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push str.RestartRequired
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x404cb9
lea ecx, [ebp - 0x4c]
call fcn.0041f060
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x404c19
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4858e0
call fcn.00408830
add esp, 4
mov edx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetupinstallerservicefactory.cpp
mov ecx, eax
call fcn.004073d0
mov edx, 0x476f7c
mov ecx, eax
call fcn.004073d0
push 0x21f
mov ecx, eax
call fcn.00405950
mov edx, 0x4778b4
mov ecx, eax
call fcn.004073d0
mov edx, str.Failed_to_query_restart_value__:
mov ecx, eax
call fcn.004073d0
push esi
mov ecx, eax
call fcn.004057b0
push eax
call fcn.00407a20
mov edx, dword [ebp - 0x38]
add esp, 4
cmp edx, 8
jb 0x404cac
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404ca2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d18
push edx
push ecx
call fcn.004290dc
add esp, 8
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
jmp 0x404cc0
cmp dword [ebp - 0x18], 0
setne bl
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x404cf6
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404cec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d1d
push edx
push ecx
call fcn.004290dc
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004290a8
mov esp, ebp
pop ebp
ret
call fcn.00443bfc
call fcn.00443bfc
call fcn.00443bfc
int3