Function at 0x41a3c0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc07d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x50b080]
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 edi, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
test edi, edi
jne 0x41a4cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.00467d30
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41a42d
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, 0x4eb858
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x40e
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4eb7a8
mov ecx, eax
call fcn.00411050
mov edx, str.Error_opening_SCM:
mov ecx, eax
call fcn.00411050
push esi
mov ecx, eax
call fcn.0041b670
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x4c]
add esp, 4
cmp ecx, 7
jbe 0x41a4c4
mov edx, dword [ebp - 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41a4ba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a80f
push ecx
push edx
call fcn.004906cd
add esp, 8
xor al, al
jmp 0x41a7f3
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 0x41a641
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
mov dword [ebp - 0x48], eax
call ebx
lea ecx, [ebp - 0x60]
call fcn.00467d30
cmp dword [ebp - 0x48], 0x424
jne 0x41a5bf
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41a523
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, 0x4eb858
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x41b
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Service_not_found:
mov ecx, eax
call fcn.00411050
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.0041ba80
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x4c]
add esp, 4
cmp ecx, 7
jbe 0x41a7d7
mov edx, dword [ebp - 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41a5ac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a814
push ecx
push edx
call fcn.004906cd
add esp, 8
mov byte [ebp - 0x41], 0
jmp 0x41a7ed
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41a5ce
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, 0x4eb858
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x41f
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4eb7a8
mov ecx, eax
call fcn.00411050
mov edx, str.Error_opening
mov ecx, eax
call fcn.00411050
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.0041ba80
mov edx, str.__status:
mov ecx, eax
call fcn.00411050
push dword [ebp - 0x48]
mov ecx, eax
call fcn.0041b670
jmp 0x41a56f
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x24
lea eax, [ebp - 0x40]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x41a74d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
mov dword [ebp - 0x48], eax
call ebx
push edi
call ebx
lea ecx, [ebp - 0x60]
call fcn.00467d30
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41a68f
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, 0x4eb858
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x42c
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4eb7a8
mov ecx, eax
call fcn.00411050
mov edx, str.Error_getting
mov ecx, eax
call fcn.00411050
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.0041ba80
mov edx, str._status:
mov ecx, eax
call fcn.00411050
push dword [ebp - 0x48]
mov ecx, eax
call fcn.0041b670
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x4c]
add esp, 4
cmp ecx, 7
jbe 0x41a7d7
mov edx, dword [ebp - 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41a73a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a814
push ecx
push edx
call fcn.004906cd
add esp, 8
mov byte [ebp - 0x41], 0
jmp 0x41a7ea
cmp dword [ebp - 0x3c], 1
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
jne 0x41a7e1
call ebx
push edi
call ebx
lea ecx, [ebp - 0x60]
call fcn.00467d30
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41a77a
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, 0x4eb858
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x433
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4eb7a8
mov ecx, eax
call fcn.00411050
mov edx, str.MBAMInstallerService
mov ecx, eax
call fcn.0041ba80
mov edx, str._appears_to_be_stopped
mov ecx, eax
call fcn.00411050
jmp 0x41a6fd
mov byte [ebp - 0x41], 0
test esi, esi
je 0x41a7ed
jmp 0x41a7ea
call ebx
push edi
call ebx
mov byte [ebp - 0x41], 1
push esi
call ebx
push edi
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.00490396
mov esp, ebp
pop ebp
ret
call fcn.004958ff
call fcn.004958ff
int3