Function at 0x41f6e0
Capabilities:
Query service status
Start service

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bcebb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x50c080]
xor eax, ebp
mov dword [ebp - 0x14], 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 0x41f7d7
lea ecx, [ebp - 0x70]
call fcn.00467cf0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41f744
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBAMService.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x45
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4ec7a8
mov ecx, eax
call fcn.00411050
mov edx, str.Attempt_to_start_without_name
mov ecx, eax
call fcn.00411050
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x5c]
add esp, 4
cmp ecx, 7
jbe 0x41f7d0
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41f7c6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41fd7b
push ecx
push edx
call fcn.00490f7d
add esp, 8
xor al, al
jmp 0x41fa5e
push 0x20000004
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 1
test edi, edi
jne 0x41f86b
lea ecx, [ebp - 0x70]
call fcn.00467cf0
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41f80d
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBAMService.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x4e
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4ec7a8
mov ecx, eax
call fcn.00411050
mov edx, str.OpenSCManager_failed:
mov ecx, eax
call fcn.00411050
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0041b590
jmp 0x41f78d
cmp dword [esi + 0x18], 7
lea eax, [esi + 4]
jbe 0x41f876
mov eax, dword [eax]
push 0x14
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 3
test esi, esi
jne 0x41f94d
lea ecx, [ebp - 0x70]
call fcn.00467cf0
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41f8a8
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBAMService.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x56
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4ec7a8
mov ecx, eax
call fcn.00411050
mov edx, str.OpenService_failed:
mov ecx, eax
call fcn.00411050
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x50]
push eax
call fcn.0041b590
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x5c]
add esp, 4
cmp ecx, 7
jbe 0x41f946
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41f93c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41fd7b
push ecx
push edx
call fcn.00490f7d
add esp, 8
push 0
jmp 0x41fa37
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x24
lea eax, [ebp - 0x44]
mov dword [ebp - 0x24], 0
push eax
xorps xmm0, xmm0
push 0
push esi
movups xmmword [ebp - 0x44], xmm0
movups xmmword [ebp - 0x34], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x41fa7e
lea ecx, [ebp - 0x70]
call fcn.00467cf0
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41f998
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBAMService.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x60
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4ec7a8
mov ecx, eax
call fcn.00411050
mov edx, str.QueryServiceStatusEx_failed:
mov ecx, eax
call fcn.00411050
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x50]
push eax
call fcn.0041b590
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x5c]
add esp, 4
cmp ecx, 7
jbe 0x41fa36
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41fa2c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41fd7b
push ecx
push edx
call fcn.00490f7d
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 - 0x49], al
test esi, esi
je 0x41fa54
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [ebp - 0x49]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00490c46
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
cmp dword [ebp - 0x40], 4
jne 0x41fa98
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp - 0x49], 1
jmp 0x41fa49
mov al, byte [ebx + 8]
lea ecx, [ebp - 0x48]
xor edx, edx
mov dword [ebp - 0x48], str.noTray
test al, al
movzx eax, al
cmove ecx, edx
push ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x41fbf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
cmp eax, 0x420
je 0x41fbf4
lea ecx, [ebp - 0x70]
cmp eax, 0x241
je 0x41fb8f
call fcn.00467cf0
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41faf6
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBAMService.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x7f
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4ec7a8
mov ecx, eax
call fcn.00411050
mov edx, str.StartService_failed:
mov ecx, eax
call fcn.00411050
push dword [ebp - 0x50]
mov ecx, eax
call fcn.0041b590
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x5c]
add esp, 4
cmp ecx, 7
jbe 0x41fa36
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41fa2c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41fa2c
jmp 0x41fd7b
call fcn.00467cf0
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41fba3
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBAMService.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x87
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4ec7a8
mov ecx, eax
call fcn.00411050
mov edx, str.Service_requires_restart_due_to_ELAM_driver_state.
mov ecx, eax
call fcn.00411050
jmp 0x41f9f3
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x50], 0
nop
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x18]
push eax
push 0x24
lea eax, [ebp - 0x44]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x41fcfe
mov eax, dword [ebp - 0x58]
mov ecx, 1
cmp dword [ebp - 0x40], 4
movzx eax, al
cmove eax, ecx
mov ecx, dword [ebp - 0x50]
inc ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x50], ecx
cmp ecx, 0x3c
jae 0x41fc6d
test al, al
je 0x41fc00
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 - 0x49], 1
jmp 0x41fa4d
test al, al
jne 0x41fc4b
lea ecx, [ebp - 0x88]
call fcn.00467cf0
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41fc8b
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBAMService.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0xa3
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4ec7a8
mov ecx, eax
call fcn.00411050
mov edx, str.Timed_out_waiting_for_service_start:
mov ecx, eax
call fcn.00411050
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x74]
add esp, 4
cmp ecx, 7
jbe 0x41fa36
mov edx, dword [ebp - 0x88]
lea ecx, [ecx*2 + 2]
jmp 0x41fa0e
lea ecx, [ebp - 0x88]
call fcn.00467cf0
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x41fd18
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, str.C:JenkinsworkspaceMBAM_WindowsA_MB5_MBSetup_srcMBSetupMBAMService.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x96
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4ec7a8
mov ecx, eax
call fcn.00411050
mov edx, str.QueryServiceStatusEx_failed:
mov ecx, eax
call fcn.00411050
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x50]
push eax
call fcn.0041b590
jmp 0x41fcd7
call fcn.004961af
int3