Function at 0x40cec0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48014b
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4a1500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x40cfa3
lea ecx, [ebp - 0x6c]
call fcn.00441c80
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x40cf10
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4a4ad0
call fcn.0040ab60
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsN_MB5Uns_srcmb4unsMBAMService.cpp
mov ecx, eax
call fcn.004097d0
mov edx, 0x48f0d4
mov ecx, eax
call fcn.004097d0
push 0x46
mov ecx, eax
call fcn.00407bb0
mov edx, 0x48f2e4
mov ecx, eax
call fcn.004097d0
mov edx, str.Attempt_to_start_without_name
mov ecx, eax
call fcn.004097d0
push eax
call fcn.00409b50
mov ecx, dword [ebp - 0x58]
add esp, 4
cmp ecx, 7
jbe 0x40cf9c
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cf92
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d53b
push ecx
push edx
call fcn.00452718
add esp, 8
xor al, al
jmp 0x40d22a
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], 1
test edi, edi
jne 0x40d037
lea ecx, [ebp - 0x6c]
call fcn.00441c80
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x40cfd9
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4a4ad0
call fcn.0040ab60
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsN_MB5Uns_srcmb4unsMBAMService.cpp
mov ecx, eax
call fcn.004097d0
mov edx, 0x48f0d4
mov ecx, eax
call fcn.004097d0
push 0x4e
mov ecx, eax
call fcn.00407bb0
mov edx, 0x48f2e4
mov ecx, eax
call fcn.004097d0
mov edx, str.OpenSCManager_failed:
mov ecx, eax
call fcn.004097d0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0040ea20
jmp 0x40cf59
cmp dword [esi + 0x18], 7
lea eax, [esi + 4]
jbe 0x40d042
mov eax, dword [eax]
push 0x14
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 3
test esi, esi
jne 0x40d119
lea ecx, [ebp - 0x6c]
call fcn.00441c80
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x40d074
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4a4ad0
call fcn.0040ab60
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsN_MB5Uns_srcmb4unsMBAMService.cpp
mov ecx, eax
call fcn.004097d0
mov edx, 0x48f0d4
mov ecx, eax
call fcn.004097d0
push 0x56
mov ecx, eax
call fcn.00407bb0
mov edx, 0x48f2e4
mov ecx, eax
call fcn.004097d0
mov edx, str.OpenService_failed:
mov ecx, eax
call fcn.004097d0
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x4c]
push eax
call fcn.0040ea20
push eax
call fcn.00409b50
mov ecx, dword [ebp - 0x58]
add esp, 4
cmp ecx, 7
jbe 0x40d112
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d108
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d53b
push ecx
push edx
call fcn.00452718
add esp, 8
push 0
jmp 0x40d203
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x24
lea eax, [ebp - 0x40]
mov dword [ebp - 0x20], 0
push eax
xorps xmm0, xmm0
push 0
push esi
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x40d245
lea ecx, [ebp - 0x6c]
call fcn.00441c80
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x40d164
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4a4ad0
call fcn.0040ab60
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsN_MB5Uns_srcmb4unsMBAMService.cpp
mov ecx, eax
call fcn.004097d0
mov edx, 0x48f0d4
mov ecx, eax
call fcn.004097d0
push 0x60
mov ecx, eax
call fcn.00407bb0
mov edx, 0x48f2e4
mov ecx, eax
call fcn.004097d0
mov edx, str.QueryServiceStatusEx_failed:
mov ecx, eax
call fcn.004097d0
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x4c]
push eax
call fcn.0040ea20
push eax
call fcn.00409b50
mov ecx, dword [ebp - 0x58]
add esp, 4
cmp ecx, 7
jbe 0x40d202
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d1f8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d53b
push ecx
push edx
call fcn.00452718
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov byte [ebp - 0x45], al
test esi, esi
je 0x40d220
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [ebp - 0x45]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004523b6
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x3c], 4
jne 0x40d25f
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp - 0x45], 1
jmp 0x40d215
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], str.noTray
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40d3af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
cmp eax, 0x420
je 0x40d3af
lea ecx, [ebp - 0x6c]
cmp eax, 0x241
je 0x40d34a
call fcn.00441c80
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x40d2b1
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4a4ad0
call fcn.0040ab60
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsN_MB5Uns_srcmb4unsMBAMService.cpp
mov ecx, eax
call fcn.004097d0
mov edx, 0x48f0d4
mov ecx, eax
call fcn.004097d0
push 0x79
mov ecx, eax
call fcn.00407bb0
mov edx, 0x48f2e4
mov ecx, eax
call fcn.004097d0
mov edx, str.StartService_failed:
mov ecx, eax
call fcn.004097d0
push dword [ebp - 0x4c]
mov ecx, eax
call fcn.0040ea20
push eax
call fcn.00409b50
mov ecx, dword [ebp - 0x58]
add esp, 4
cmp ecx, 7
jbe 0x40d202
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d1f8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d1f8
jmp 0x40d53b
call fcn.00441c80
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x40d35e
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4a4ad0
call fcn.0040ab60
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsN_MB5Uns_srcmb4unsMBAMService.cpp
mov ecx, eax
call fcn.004097d0
mov edx, 0x48f0d4
mov ecx, eax
call fcn.004097d0
push 0x81
mov ecx, eax
call fcn.00407bb0
mov edx, 0x48f2e4
mov ecx, eax
call fcn.004097d0
mov edx, str.Service_requires_restart_due_to_ELAM_driver_state.
mov ecx, eax
call fcn.004097d0
jmp 0x40d1bf
mov byte [ebp - 0x54], 0
mov dword [ebp - 0x4c], 0
nop word [eax + eax]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x14]
push eax
push 0x24
lea eax, [ebp - 0x40]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40d4be
mov eax, dword [ebp - 0x54]
mov ecx, 1
cmp dword [ebp - 0x3c], 4
movzx eax, al
cmove eax, ecx
mov ecx, dword [ebp - 0x4c]
inc ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x4c], ecx
cmp ecx, 0x3c
jae 0x40d42d
test al, al
je 0x40d3c0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 0x45], 1
jmp 0x40d219
test al, al
jne 0x40d40b
lea ecx, [ebp - 0x84]
call fcn.00441c80
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x40d44b
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4a4ad0
call fcn.0040ab60
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsN_MB5Uns_srcmb4unsMBAMService.cpp
mov ecx, eax
call fcn.004097d0
mov edx, 0x48f0d4
mov ecx, eax
call fcn.004097d0
push 0x9d
mov ecx, eax
call fcn.00407bb0
mov edx, 0x48f2e4
mov ecx, eax
call fcn.004097d0
mov edx, str.Timed_out_waiting_for_service_start:
mov ecx, eax
call fcn.004097d0
push eax
call fcn.00409b50
mov ecx, dword [ebp - 0x70]
add esp, 4
cmp ecx, 7
jbe 0x40d202
mov edx, dword [ebp - 0x84]
lea ecx, [ecx*2 + 2]
jmp 0x40d1da
lea ecx, [ebp - 0x84]
call fcn.00441c80
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x40d4d8
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4a4ad0
call fcn.0040ab60
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsN_MB5Uns_srcmb4unsMBAMService.cpp
mov ecx, eax
call fcn.004097d0
mov edx, 0x48f0d4
mov ecx, eax
call fcn.004097d0
push 0x90
mov ecx, eax
call fcn.00407bb0
mov edx, 0x48f2e4
mov ecx, eax
call fcn.004097d0
mov edx, str.QueryServiceStatusEx_failed:
mov ecx, eax
call fcn.004097d0
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x4c]
push eax
call fcn.0040ea20
jmp 0x40d497
call fcn.0045e581
int3