Function at 0x4179d0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x459074]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x2d], 0
cmp dword [ebp + 8], 0
jne 0x4179f5
mov al, byte [ebp - 0x2d]
jmp 0x417d1a
push 0x20000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x417a65
mov dword [ebp - 0x40], 0x452d18
push 0x5c
mov eax, dword [ebp - 0x40]
push eax
call fcn.00423220
add esp, 8
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x417a36
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x44], ecx
jmp 0x417a3c
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x44], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x452ccc
push 0x5d
mov eax, dword [ebp - 0x44]
push eax
push 2
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x14
xor ecx, ecx
jne 0x417a0d
mov al, byte [ebp - 0x2d]
jmp 0x417d1a
push 0xf01ff
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x417ae3
mov dword [ebp - 0x4c], 0x452da8
push 0x5c
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00423220
add esp, 8
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x417aaa
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x50], edx
jmp 0x417ab0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x452d7c
push 0x63
mov ecx, dword [ebp - 0x50]
push ecx
push 2
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x14
xor edx, edx
jne 0x417a81
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [ebp - 0x2d]
jmp 0x417d1a
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0x24
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 0
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x417b87
mov dword [ebp - 0x58], 0x452e28
push 0x5c
mov eax, dword [ebp - 0x58]
push eax
call fcn.00423220
add esp, 8
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x417b4c
mov ecx, dword [ebp - 0x54]
add ecx, 1
mov dword [ebp - 0x5c], ecx
jmp 0x417b52
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_:__d
push 0x6f
mov eax, dword [ebp - 0x5c]
push eax
push 2
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x14
xor ecx, ecx
jne 0x417b23
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x28], 4
je 0x417b93
cmp dword [ebp - 0x28], 2
jne 0x417bae
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x417d1a
push 0
push 0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x417c2c
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x64], 0x452ea0
push 0x5c
mov eax, dword [ebp - 0x64]
push eax
call fcn.00423220
add esp, 8
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x417bfd
mov ecx, dword [ebp - 0x60]
add ecx, 1
mov dword [ebp - 0x68], ecx
jmp 0x417c03
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x68], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x452ce4
push 0x7d
mov eax, dword [ebp - 0x68]
push eax
push 1
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x14
xor ecx, ecx
jne 0x417bd4
mov al, byte [ebp - 0x2d]
jmp 0x417d1a
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 0
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x417d03
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x28], 4
jne 0x417cb0
mov byte [ebp - 0x2d], 1
mov dword [ebp - 0x70], 0x452f28
push 0x5c
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.00423220
add esp, 8
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x417c89
mov edx, dword [ebp - 0x6c]
add edx, 1
mov dword [ebp - 0x74], edx
jmp 0x417c8f
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
push str.service_is_running
push 0x87
mov ecx, dword [ebp - 0x74]
push ecx
push 2
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x10
xor edx, edx
jne 0x417c60
jmp 0x417d03
mov dword [ebp - 0x7c], 0x452fa0
push 0x5c
mov eax, dword [ebp - 0x7c]
push eax
call fcn.00423220
add esp, 8
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x417cd9
mov ecx, dword [ebp - 0x78]
add ecx, 1
mov dword [ebp - 0x80], ecx
jmp 0x417cdf
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], edx
push str.service_not_running
push 0x8b
mov eax, dword [ebp - 0x80]
push eax
push 1
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x10
xor ecx, ecx
jne 0x417cb0
jmp 0x417d03
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421720
mov esp, ebp
pop ebp
ret