Function at 0x416160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b638
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4cb06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x22
xor eax, eax
mov dword [ebp - 0x34], 0
push str.SystemCurrentControlSetServices_
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.00407780
push 0x14
push str.MBAMInstallerService
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.00417a80
push 0xb
push str.Parameters
lea ecx, [ebp - 0x30]
call fcn.00417a80
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 0x4162c7
cmp esi, 2
je 0x4163ac
lea ecx, [ebp - 0x4c]
call fcn.0044e680
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x416224
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4cf1e0
call fcn.0040bda0
add esp, 4
mov edx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetupinstallerservicefactory.cpp
mov ecx, eax
call fcn.0040ab10
mov edx, str.:.
mov ecx, eax
call fcn.0040ab10
push 0x43b
mov ecx, eax
call fcn.00407be0
mov edx, 0x4b1c08
mov ecx, eax
call fcn.0040ab10
mov edx, str.Failed_to_open_service_parameters_registry:
mov ecx, eax
call fcn.0040ab10
push esi
mov ecx, eax
call fcn.00407a40
push eax
call fcn.0040ae80
mov edx, dword [ebp - 0x38]
add esp, 4
cmp edx, 8
jb 0x4163ac
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4162b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41640f
push edx
push ecx
call fcn.0045d989
add esp, 8
or esi, 0xffffffff
jmp 0x4163bd
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 4
push eax
push 0
push 0
push str.ErrorStatus
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x4163b1
lea ecx, [ebp - 0x4c]
call fcn.0044e680
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x416310
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4cf1e0
call fcn.0040bda0
add esp, 4
mov edx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetupinstallerservicefactory.cpp
mov ecx, eax
call fcn.0040ab10
mov edx, str.:.
mov ecx, eax
call fcn.0040ab10
push 0x445
mov ecx, eax
call fcn.00407be0
mov edx, 0x4b1c08
mov ecx, eax
call fcn.0040ab10
mov edx, str.Failed_to_query_status_value__:
mov ecx, eax
call fcn.0040ab10
push esi
mov ecx, eax
call fcn.00407a40
push eax
call fcn.0040ae80
mov edx, dword [ebp - 0x38]
add esp, 4
cmp edx, 8
jb 0x4163a3
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416399
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416414
push edx
push ecx
call fcn.0045d989
add esp, 8
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or esi, 0xffffffff
jmp 0x4163bd
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x4163f3
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4163e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416419
push edx
push ecx
call fcn.0045d989
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045d468
mov esp, ebp
pop ebp
ret
call fcn.004786bc
call fcn.004786bc
call fcn.004786bc
int3