Function at 0x41d780
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac488
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4e006c]
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 0x20000004
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
test esi, esi
jne 0x41d88b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.0045b1b0
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x41d7ed
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e45b8
call fcn.0040d910
add esp, 4
mov edx, 0x4c4548
mov ecx, eax
call fcn.0040be10
mov edx, str.:.
mov ecx, eax
call fcn.0040be10
push 0x3f1
mov ecx, eax
call fcn.00408660
mov edx, 0x4c3eec
mov ecx, eax
call fcn.0040be10
mov edx, str.Error_opening_SCM:
mov ecx, eax
call fcn.0040be10
push esi
mov ecx, eax
call fcn.0041e4e0
push eax
call fcn.0040c180
mov edx, dword [ebp - 0x4c]
add esp, 4
cmp edx, 8
jb 0x41d884
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d87a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41db84
push edx
push ecx
call fcn.0046a609
add esp, 8
xor al, al
jmp 0x41db68
push 0xf01ff
push str.MBAMInstallerService
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 2
test edi, edi
jne 0x41d9f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
mov dword [ebp - 0x48], eax
call ebx
lea ecx, [ebp - 0x60]
call fcn.0045b1b0
cmp dword [ebp - 0x48], 0x424
jne 0x41d975
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x41d8e3
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e45b8
call fcn.0040d910
add esp, 4
mov edx, 0x4c4548
mov ecx, eax
call fcn.0040be10
mov edx, str.:.
mov ecx, eax
call fcn.0040be10
push 0x3fe
mov ecx, eax
call fcn.00408660
mov edx, str.:_Service_not_found:
mov ecx, eax
call fcn.0040be10
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.0041e6c0
push eax
call fcn.0040c180
mov edx, dword [ebp - 0x4c]
add esp, 4
cmp edx, 8
jb 0x41db4c
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41db42
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41db89
jmp 0x41db42
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x41d984
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e45b8
call fcn.0040d910
add esp, 4
mov edx, 0x4c4548
mov ecx, eax
call fcn.0040be10
mov edx, str.:.
mov ecx, eax
call fcn.0040be10
push 0x402
mov ecx, eax
call fcn.00408660
mov edx, 0x4c3eec
mov ecx, eax
call fcn.0040be10
mov edx, str.Error_opening
mov ecx, eax
call fcn.0040be10
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.0041e6c0
mov edx, str.__status:
mov ecx, eax
call fcn.0040be10
push dword [ebp - 0x48]
mov ecx, eax
call fcn.0041e4e0
jmp 0x41d92f
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x24
lea eax, [ebp - 0x40]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x41dab8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
mov dword [ebp - 0x48], eax
call ebx
push esi
call ebx
lea ecx, [ebp - 0x60]
call fcn.0045b1b0
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x41da45
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e45b8
call fcn.0040d910
add esp, 4
mov edx, 0x4c4548
mov ecx, eax
call fcn.0040be10
mov edx, str.:.
mov ecx, eax
call fcn.0040be10
push 0x40f
mov ecx, eax
call fcn.00408660
mov edx, 0x4c3eec
mov ecx, eax
call fcn.0040be10
mov edx, str.Error_getting
mov ecx, eax
call fcn.0040be10
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.0041e6c0
mov edx, str._status:
mov ecx, eax
call fcn.0040be10
push dword [ebp - 0x48]
mov ecx, eax
call fcn.0041e4e0
jmp 0x41d92f
cmp dword [ebp - 0x3c], 1
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
jne 0x41db52
call ebx
push esi
call ebx
lea ecx, [ebp - 0x60]
call fcn.0045b1b0
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x41dae5
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e45b8
call fcn.0040d910
add esp, 4
mov edx, 0x4c4548
mov ecx, eax
call fcn.0040be10
mov edx, str.:.
mov ecx, eax
call fcn.0040be10
push 0x416
mov ecx, eax
call fcn.00408660
mov edx, 0x4c3eec
mov ecx, eax
call fcn.0040be10
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.0041e6c0
mov edx, str._appears_to_be_stopped
mov ecx, eax
call fcn.0040be10
jmp 0x41d92f
push edx
push ecx
call fcn.0046a609
add esp, 8
mov byte [ebp - 0x41], 0
jmp 0x41db5b
call ebx
push esi
call ebx
mov byte [ebp - 0x41], 1
test edi, edi
je 0x41db62
push edi
call ebx
push esi
call ebx
mov al, byte [ebp - 0x41]
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.0046a0e8
mov esp, ebp
pop ebp
ret
call fcn.0048552c
call fcn.0048552c
int3