Function at 0x415be0
Capabilities:
Check for time delay via gettickcount
Modify service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e4fd
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.CStealthManager::stopService
push str._s_enter_
push str.stealth_manager
mov dword [ebp - 4], 0
call fcn.00401ed0
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x50], ebx
test ebx, ebx
je 0x415f2a
cmp dword [ebp + 0x18], 0
je 0x415f0d
cmp dword [ebp + 0x1c], 0xf
lea ecx, [ebp + 8]
push 0x26
cmova ecx, dword [ebp + 8]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x415edd
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x6c]
push eax
push 2
push esi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x6c], 0x15180
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x60], 3
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x54]
push eax
push 0x24
lea eax, [ebp - 0x4c]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x415eb6
mov eax, dword [ebp - 0x48]
cmp eax, 1
je 0x415e3a
xor bl, bl
cmp eax, 3
jne 0x415d92
mov ecx, 0x2710
nop dword [eax]
mov eax, 0xcccccccd
mul dword [ebp - 0x34]
shr edx, 3
cmp edx, 0x3e8
jae 0x415d2a
mov edx, 0x3e8
jmp 0x415d33
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x54]
push eax
push 0x24
lea eax, [ebp - 0x4c]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x415e1e
cmp dword [ebp - 0x48], 1
jne 0x415d6f
push str.Service_stopped_successfully.
push str.stealth_manager
call fcn.00401ed0
add esp, 8
mov bl, 1
call edi
sub eax, dword [ebp - 0x58]
cmp eax, 0x7530
ja 0x415e07
cmp dword [ebp - 0x48], 3
mov ecx, 0x2710
je 0x415d10
test bl, bl
jne 0x415e37
lea eax, [ebp - 0x4c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x415ea5
cmp dword [ebp - 0x48], 1
je 0x415e37
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x34]
call ebx
lea eax, [ebp - 0x54]
push eax
push 0x24
lea eax, [ebp - 0x4c]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x415e97
cmp dword [ebp - 0x48], 1
je 0x415e71
call edi
sub eax, dword [ebp - 0x58]
cmp eax, 0x7530
ja 0x415e4b
cmp dword [ebp - 0x48], 1
jne 0x415db7
mov ebx, dword [ebp - 0x50]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
jmp 0x415f43
push str.Service_stop_timed_out.
push str.stealth_manager
call fcn.00401ea0
add esp, 8
jmp 0x415d92
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_1_failed___d_
push str.stealth_manager
call fcn.00401ea0
add esp, 0xc
mov ebx, dword [ebp - 0x50]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
jmp 0x415f43
push str.Wait_timed_out
push str.stealth_manager
call fcn.00401ea0
mov ebx, dword [ebp - 0x50]
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
jmp 0x415f43
push str.Service_stopped_successfully.
push str.stealth_manager
call fcn.00401ed0
mov ebx, dword [ebp - 0x50]
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
jmp 0x415f43
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_2_failed___d_
jmp 0x415e2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ControlService_failed___d_
jmp 0x415e2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_3_failed___d_
push str.stealth_manager
call fcn.00401ea0
add esp, 0xc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
jmp 0x415f43
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x1c], 0xf
lea ecx, [ebp + 8]
push eax
cmova ecx, dword [ebp + 8]
push ecx
push str.OpenService___s__failed___d_
push str.stealth_manager
call fcn.00401ea0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 0x10
push ebx
call esi
jmp 0x415f43
push str.Cant_find_service
push str.stealth_manager
call fcn.00401ea0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 8
push ebx
call esi
jmp 0x415f43
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed___d_
push str.stealth_manager
call fcn.00401ea0
add esp, 0xc
push str.CStealthManager::stopService
push str._s_exit_
push str.stealth_manager
call fcn.00401ed0
mov ecx, dword [ebp + 0x1c]
add esp, 0xc
cmp ecx, 0xf
jbe 0x415f90
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x415f86
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x415f86
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041c16d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041bed2
mov esp, ebp
pop ebp
ret