Function at 0xc7894
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xf
push 0
push 0
dec ecx
jne 0xc789c
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0xc7c13
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x40]
mov eax, 0xc7c24
call fcn.00078120
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 4]
call fcn.000c7588
mov byte [ebp - 5], 0
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0xc7bea
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0xc7b90
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0xc7b89
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
push 0xc7c3c
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0xc7b2f
lea eax, [ebp - 0x3c]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_ControlService
test eax, eax
jne 0xc7b15
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x44]
mov eax, 0xc7c44
call fcn.00078120
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x18]
call fcn.000747a0
mov edx, dword [ebp - 0x48]
pop eax
call fcn.00013eec
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 4]
call fcn.000c75dc
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0xc7b0e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
push 0xc7c64
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0xc7ad4
lea eax, [ebp - 0x3c]
push eax
push 1
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_ControlService
neg eax
sbb eax, eax
neg eax
mov byte [0xea82c], al
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x18], eax
cmp byte [0xea82c], 0
jne 0xc7a26
lea edx, [ebp - 0x4c]
mov eax, 0xc7c6c
call fcn.00078120
lea eax, [ebp - 0x4c]
push eax
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x18]
call fcn.000747a0
mov edx, dword [ebp - 0x50]
pop eax
call fcn.00013eec
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 4]
call fcn.000c75dc
jmp 0xc7aec
lea edx, [ebp - 0x54]
mov eax, 0xc7c84
call fcn.00078120
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 4]
call fcn.000c7588
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x3c]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_ControlService
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x19], al
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x18], eax
cmp byte [ebp - 0x19], 0
jne 0xc7a73
push 0x1f4
call sub.kernel32.dll_Sleep
inc dword [ebp - 0xc]
cmp byte [ebp - 0x19], 0
jne 0xc7a82
cmp dword [ebp - 0xc], 0xa
jl 0xc7a43
cmp byte [ebp - 0x19], 0
jne 0xc7aba
lea edx, [ebp - 0x58]
mov eax, 0xc7c90
call fcn.00078120
lea eax, [ebp - 0x58]
push eax
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x18]
call fcn.000747a0
mov edx, dword [ebp - 0x5c]
pop eax
call fcn.00013eec
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 4]
call fcn.000c75dc
jmp 0xc7aec
lea edx, [ebp - 0x60]
mov eax, 0xc7cb0
call fcn.00078120
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 4]
call fcn.000c7588
jmp 0xc7aec
lea edx, [ebp - 0x64]
mov eax, 0xc7ccc
call fcn.00078120
mov eax, dword [ebp - 0x64]
mov edx, dword [ebp - 4]
call fcn.000c7588
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xc7b67
cmp dword [ebp - 0x14], 0
je 0xc7b08
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
mov dword [ebp - 0x14], eax
ret
lea edx, [ebp - 0x68]
mov eax, 0xc7ce0
call fcn.00078120
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 4]
call fcn.000c7588
jmp 0xc7b67
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x6c]
mov eax, 0xc7cfc
call fcn.00078120
lea eax, [ebp - 0x6c]
push eax
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 0x18]
call fcn.000747a0
mov edx, dword [ebp - 0x70]
pop eax
call fcn.00013eec
mov eax, dword [ebp - 0x6c]
mov edx, dword [ebp - 4]
call fcn.000c75dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xc7bc8
cmp dword [ebp - 0x10], 0
je 0xc7b83
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
mov dword [ebp - 0x10], eax
ret
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x74]
mov eax, 0xc7d18
call fcn.00078120
lea eax, [ebp - 0x74]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 0x18]
call fcn.000747a0
mov edx, dword [ebp - 0x78]
pop eax
call fcn.00013eec
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 4]
call fcn.000c75dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xc7bf1
cmp dword [ebp - 0x20], 0
je 0xc7be4
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
mov dword [ebp - 0x20], eax
ret