Function at 0x404530
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463a90
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x483068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x60000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
test edi, edi
jne 0x40463b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x30]
mov esi, eax
call fcn.0041f060
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x40459d
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 0x1d3
mov ecx, eax
call fcn.00405950
mov edx, 0x4778b4
mov ecx, eax
call fcn.004073d0
mov edx, str.Error_opening_SCM:
mov ecx, eax
call fcn.004073d0
push esi
mov ecx, eax
call fcn.00405610
push eax
call fcn.00407a20
mov edx, dword [ebp - 0x1c]
add esp, 4
cmp edx, 8
jb 0x404634
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40462a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404771
push edx
push ecx
call fcn.004290dc
add esp, 8
xor bl, bl
jmp 0x404753
push 0xf01ff
push str.MBAMInstallerService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 2
test esi, esi
jne 0x404731
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x30]
mov esi, eax
call fcn.0041f060
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x40467c
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 0x1dc
mov ecx, eax
call fcn.00405950
mov edx, 0x4778b4
mov ecx, eax
call fcn.004073d0
mov edx, str.Error_opening
mov ecx, eax
call fcn.004073d0
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.00407760
mov edx, str.__status:
mov ecx, eax
call fcn.004073d0
push esi
mov ecx, eax
call fcn.00405610
push eax
call fcn.00407a20
mov edx, dword [ebp - 0x1c]
add esp, 4
cmp edx, 8
jb 0x404727
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40471d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404776
push edx
push ecx
call fcn.004290dc
add esp, 8
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor bl, bl
jmp 0x404750
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.MBAMInstallerService
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
call esi
push edi
call esi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
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
int3