Function at 0x418900
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6bf0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x65d0c8]
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 0x4189e3
lea ecx, [ebp - 0x64]
call fcn.0043fe90
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x418950
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x665180
call fcn.004177a0
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_n_mb4uns_srcmb4unsmbamservice.cpp
mov ecx, eax
call fcn.00416940
mov edx, 0x63bb2c
mov ecx, eax
call fcn.00416940
push 0x46
mov ecx, eax
call fcn.004150f0
mov edx, 0x63aed4
mov ecx, eax
call fcn.00416940
mov edx, str.Attempt_to_start_without_name
mov ecx, eax
call fcn.00416940
push eax
call fcn.00416cb0
mov edx, dword [ebp - 0x50]
add esp, 4
cmp edx, 8
jb 0x4189dc
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4189d2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418f62
push edx
push ecx
call fcn.00573e4d
add esp, 8
xor al, al
jmp 0x418c69
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 0x418a77
lea ecx, [ebp - 0x64]
call fcn.0043fe90
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x418a19
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x665180
call fcn.004177a0
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_n_mb4uns_srcmb4unsmbamservice.cpp
mov ecx, eax
call fcn.00416940
mov edx, 0x63bb2c
mov ecx, eax
call fcn.00416940
push 0x4e
mov ecx, eax
call fcn.004150f0
mov edx, 0x63aed4
mov ecx, eax
call fcn.00416940
mov edx, str.OpenSCManager_failed:
mov ecx, eax
call fcn.00416940
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0041a2c0
jmp 0x418999
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x418a82
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 0x418b59
lea ecx, [ebp - 0x64]
call fcn.0043fe90
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x418ab4
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x665180
call fcn.004177a0
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_n_mb4uns_srcmb4unsmbamservice.cpp
mov ecx, eax
call fcn.00416940
mov edx, 0x63bb2c
mov ecx, eax
call fcn.00416940
push 0x56
mov ecx, eax
call fcn.004150f0
mov edx, 0x63aed4
mov ecx, eax
call fcn.00416940
mov edx, str.OpenService_failed:
mov ecx, eax
call fcn.00416940
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x48]
push eax
call fcn.0041a2c0
push eax
call fcn.00416cb0
mov edx, dword [ebp - 0x50]
add esp, 4
cmp edx, 8
jb 0x418b52
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418b48
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418f62
push edx
push ecx
call fcn.00573e4d
add esp, 8
push 0
jmp 0x418c43
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 0x418c84
lea ecx, [ebp - 0x64]
call fcn.0043fe90
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x418ba4
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x665180
call fcn.004177a0
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_n_mb4uns_srcmb4unsmbamservice.cpp
mov ecx, eax
call fcn.00416940
mov edx, 0x63bb2c
mov ecx, eax
call fcn.00416940
push 0x60
mov ecx, eax
call fcn.004150f0
mov edx, 0x63aed4
mov ecx, eax
call fcn.00416940
mov edx, str.QueryServiceStatusEx_failed:
mov ecx, eax
call fcn.00416940
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x48]
push eax
call fcn.0041a2c0
push eax
call fcn.00416cb0
mov edx, dword [ebp - 0x50]
add esp, 4
cmp edx, 8
jb 0x418c42
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418c38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418f62
push edx
push ecx
call fcn.00573e4d
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp - 0x41], 0
test esi, esi
je 0x418c5f
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [ebp - 0x41]
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.005738eb
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x3c], 4
jne 0x418c9e
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp - 0x41], 1
jmp 0x418c54
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x418de2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
cmp eax, 0x420
je 0x418de2
lea ecx, [ebp - 0x64]
cmp eax, 0x241
je 0x418d80
call fcn.0043fe90
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x418ce7
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x665180
call fcn.004177a0
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_n_mb4uns_srcmb4unsmbamservice.cpp
mov ecx, eax
call fcn.00416940
mov edx, 0x63bb2c
mov ecx, eax
call fcn.00416940
push 0x75
mov ecx, eax
call fcn.004150f0
mov edx, 0x63aed4
mov ecx, eax
call fcn.00416940
mov edx, str.StartService_failed:
mov ecx, eax
call fcn.00416940
push dword [ebp - 0x48]
mov ecx, eax
call fcn.0041a2c0
push eax
call fcn.00416cb0
mov edx, dword [ebp - 0x50]
add esp, 4
cmp edx, 8
jb 0x418c42
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418c38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x418c38
jmp 0x418f62
call fcn.0043fe90
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x418d94
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x665180
call fcn.004177a0
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_n_mb4uns_srcmb4unsmbamservice.cpp
mov ecx, eax
call fcn.00416940
mov edx, 0x63bb2c
mov ecx, eax
call fcn.00416940
push 0x7d
mov ecx, eax
call fcn.004150f0
mov edx, 0x63aed4
mov ecx, eax
call fcn.00416940
mov edx, str.Service_requires_restart_due_to_ELAM_driver_state.
mov ecx, eax
call fcn.00416940
jmp 0x418bff
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
nop dword [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 0x418ee8
mov eax, dword [ebp - 0x4c]
mov ecx, 1
cmp dword [ebp - 0x3c], 4
movzx eax, al
cmove eax, ecx
mov ecx, dword [ebp - 0x48]
inc ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
cmp ecx, 0x3c
jae 0x418e5d
test al, al
je 0x418df0
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 - 0x41], 1
jmp 0x418c54
test al, al
jne 0x418e3b
lea ecx, [ebp - 0x7c]
call fcn.0043fe90
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x418e78
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x665180
call fcn.004177a0
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_n_mb4uns_srcmb4unsmbamservice.cpp
mov ecx, eax
call fcn.00416940
mov edx, 0x63bb2c
mov ecx, eax
call fcn.00416940
push 0x99
mov ecx, eax
call fcn.004150f0
mov edx, 0x63aed4
mov ecx, eax
call fcn.00416940
mov edx, str.Timed_out_waiting_for_service_start:
mov ecx, eax
call fcn.00416940
push eax
call fcn.00416cb0
mov edx, dword [ebp - 0x68]
add esp, 4
cmp edx, 8
jb 0x418c42
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
jmp 0x418c1a
lea ecx, [ebp - 0x7c]
call fcn.0043fe90
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x418eff
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x665180
call fcn.004177a0
add esp, 4
mov edx, str.c:jenkinsworkspacembam_windows_n_mb4uns_srcmb4unsmbamservice.cpp
mov ecx, eax
call fcn.00416940
mov edx, 0x63bb2c
mov ecx, eax
call fcn.00416940
push 0x8c
mov ecx, eax
call fcn.004150f0
mov edx, 0x63aed4
mov ecx, eax
call fcn.00416940
mov edx, str.QueryServiceStatusEx_failed:
mov ecx, eax
call fcn.00416940
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x48]
push eax
call fcn.0041a2c0
jmp 0x418ec4
call fcn.0057f64e
int3