Function at 0x417220
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b00c0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4e606c]
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 - 0x18], edi
mov dword [ebp - 4], 0
test edi, edi
jne 0x41732b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x3c]
mov esi, eax
call fcn.0045ebe0
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x41728d
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4ea4d8
call fcn.00410550
add esp, 4
mov edx, 0x4c93f8
mov ecx, eax
call fcn.0040f730
mov edx, 0x4c9104
mov ecx, eax
call fcn.0040f730
push 0x3d6
mov ecx, eax
call fcn.0040dd30
mov edx, 0x4c932c
mov ecx, eax
call fcn.0040f730
mov edx, str.Error_opening_SCM:
mov ecx, eax
call fcn.0040f730
push esi
mov ecx, eax
call fcn.004186b0
push eax
call fcn.0040faa0
mov edx, dword [ebp - 0x28]
add esp, 4
cmp edx, 8
jb 0x417324
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41731a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175c4
push edx
push ecx
call fcn.0046e8d1
add esp, 8
xor al, al
jmp 0x4175a8
push 0xf01ff
push str.MBAMInstallerService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
test esi, esi
jne 0x41742a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
mov dword [ebp - 0x14], eax
call ebx
lea ecx, [ebp - 0x3c]
call fcn.0045ebe0
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x417376
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4ea4d8
call fcn.00410550
add esp, 4
mov edx, 0x4c93f8
mov ecx, eax
call fcn.0040f730
mov edx, 0x4c9104
mov ecx, eax
call fcn.0040f730
push 0x3e0
mov ecx, eax
call fcn.0040dd30
mov edx, 0x4c932c
mov ecx, eax
call fcn.0040f730
mov edx, str.Error_opening
mov ecx, eax
call fcn.0040f730
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.00418a40
mov edx, str.__status:
mov ecx, eax
call fcn.0040f730
push dword [ebp - 0x14]
mov ecx, eax
call fcn.004186b0
push eax
call fcn.0040faa0
mov edx, dword [ebp - 0x28]
add esp, 4
cmp edx, 8
jb 0x417597
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41758d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175c9
jmp 0x41758d
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.MBAMInstallerService
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x417501
lea ecx, [ebp - 0x3c]
call fcn.0045ebe0
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x41745d
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4ea4d8
call fcn.00410550
add esp, 4
mov edx, 0x4c93f8
mov ecx, eax
call fcn.0040f730
mov edx, 0x4c9104
mov ecx, eax
call fcn.0040f730
push 0x3e9
mov ecx, eax
call fcn.0040dd30
mov edx, str.:_Success_starting
mov ecx, eax
call fcn.0040f730
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.00418a40
push eax
call fcn.0040faa0
mov edx, dword [ebp - 0x28]
add esp, 4
cmp edx, 8
jb 0x4174ec
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4174e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4175ce
push edx
push ecx
call fcn.0046e8d1
add esp, 8
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call ebx
push edi
call ebx
mov byte [ebp - 0x1d], 1
jmp 0x41759b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
mov dword [ebp - 0x24], eax
call ebx
push edi
call ebx
lea ecx, [ebp - 0x3c]
call fcn.0045ebe0
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x41752d
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4ea4d8
call fcn.00410550
add esp, 4
mov edx, 0x4c93f8
mov ecx, eax
call fcn.0040f730
mov edx, 0x4c9104
mov ecx, eax
call fcn.0040f730
push 0x3f0
mov ecx, eax
call fcn.0040dd30
mov edx, str.:_Error_starting
mov ecx, eax
call fcn.0040f730
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.00418a40
mov edx, str.__status:
mov ecx, eax
call fcn.0040f730
push dword [ebp - 0x24]
jmp 0x4173dd
push edx
push ecx
call fcn.0046e8d1
add esp, 8
mov byte [ebp - 0x1d], 0
test esi, esi
je 0x4175a2
push esi
call ebx
push edi
call ebx
mov al, byte [ebp - 0x1d]
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.0046e3b0
mov esp, ebp
pop ebp
ret
call fcn.0048981c
call fcn.0048981c
call fcn.0048981c
int3