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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41bc38
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x428024]
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.00402320
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 0x40fffa
cmp dword [ebp + 0x18], 0
je 0x40ffdd
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
push 0x26
cmovae ecx, dword [ebp + 8]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x40ffad
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 0x40ff86
mov eax, dword [ebp - 0x48]
cmp eax, 1
je 0x40ff0a
xor bl, bl
cmp eax, 3
jne 0x40fe62
mov ecx, 0x2710
nop dword [eax]
mov eax, 0xcccccccd
mul dword [ebp - 0x34]
shr edx, 3
cmp edx, 0x3e8
jae 0x40fdfa
mov edx, 0x3e8
jmp 0x40fe03
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 0x40feee
cmp dword [ebp - 0x48], 1
jne 0x40fe3f
push str.Service_stopped_successfully.
push str.stealth_manager
call fcn.00402320
add esp, 8
mov bl, 1
call edi
sub eax, dword [ebp - 0x58]
cmp eax, 0x7530
ja 0x40fed7
cmp dword [ebp - 0x48], 3
mov ecx, 0x2710
je 0x40fde0
test bl, bl
jne 0x40ff07
lea eax, [ebp - 0x4c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40ff75
cmp dword [ebp - 0x48], 1
je 0x40ff07
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 0x40ff67
cmp dword [ebp - 0x48], 1
je 0x40ff41
call edi
sub eax, dword [ebp - 0x58]
cmp eax, 0x7530
ja 0x40ff1b
cmp dword [ebp - 0x48], 1
jne 0x40fe87
mov ebx, dword [ebp - 0x50]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
jmp 0x410013
push str.Service_stop_timed_out.
push str.stealth_manager
call fcn.0040bc30
add esp, 8
jmp 0x40fe62
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_1_failed___d_
push str.stealth_manager
call fcn.0040bc30
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 0x410013
push str.Wait_timed_out
push str.stealth_manager
call fcn.0040bc30
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 0x410013
push str.Service_stopped_successfully.
push str.stealth_manager
call fcn.00402320
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 0x410013
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_2_failed___d_
jmp 0x40fefa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ControlService_failed___d__n
jmp 0x40fefa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_3_failed___d_
push str.stealth_manager
call fcn.0040bc30
add esp, 0xc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
jmp 0x410013
cmp dword [ebp + 0x1c], 0x10
lea esi, [ebp + 8]
cmovae esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.OpenService___s__failed___d_
push str.stealth_manager
call fcn.0040bc30
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 0x10
push ebx
call esi
jmp 0x410013
push str.Cant_find_service
push str.stealth_manager
call fcn.0040bc30
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 8
push ebx
call esi
jmp 0x410013
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed___d_
push str.stealth_manager
call fcn.0040bc30
add esp, 0xc
push str.CStealthManager::stopService
push str._s_exit_
push str.stealth_manager
call fcn.00402320
mov eax, dword [ebp + 0x1c]
add esp, 0xc
cmp eax, 0x10
jb 0x41003c
inc eax
push eax
push dword [ebp + 8]
call fcn.00402b40
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.00419532
mov esp, ebp
pop ebp
ret