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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418378
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x427024]
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.004027d0
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 0x412e9a
cmp dword [ebp + 0x18], 0
je 0x412e7d
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 0x412e4d
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 0x412e26
mov eax, dword [ebp - 0x48]
cmp eax, 1
je 0x412daa
xor bl, bl
cmp eax, 3
jne 0x412d02
mov ecx, 0x2710
nop dword [eax]
mov eax, 0xcccccccd
mul dword [ebp - 0x34]
shr edx, 3
cmp edx, 0x3e8
jae 0x412c9a
mov edx, 0x3e8
jmp 0x412ca3
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 0x412d8e
cmp dword [ebp - 0x48], 1
jne 0x412cdf
push str.Service_stopped_successfully.
push str.stealth_manager
call fcn.004027d0
add esp, 8
mov bl, 1
call edi
sub eax, dword [ebp - 0x58]
cmp eax, 0x7530
ja 0x412d77
cmp dword [ebp - 0x48], 3
mov ecx, 0x2710
je 0x412c80
test bl, bl
jne 0x412da7
lea eax, [ebp - 0x4c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x412e15
cmp dword [ebp - 0x48], 1
je 0x412da7
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 0x412e07
cmp dword [ebp - 0x48], 1
je 0x412de1
call edi
sub eax, dword [ebp - 0x58]
cmp eax, 0x7530
ja 0x412dbb
cmp dword [ebp - 0x48], 1
jne 0x412d27
mov ebx, dword [ebp - 0x50]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
jmp 0x412eb3
push str.Service_stop_timed_out.
push str.stealth_manager
call fcn.00402740
add esp, 8
jmp 0x412d02
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_1_failed___d_
push str.stealth_manager
call fcn.00402740
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 0x412eb3
push str.Wait_timed_out
push str.stealth_manager
call fcn.00402740
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 0x412eb3
push str.Service_stopped_successfully.
push str.stealth_manager
call fcn.004027d0
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 0x412eb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_2_failed___d_
jmp 0x412d9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ControlService_failed___d__n
jmp 0x412d9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_3_failed___d_
push str.stealth_manager
call fcn.00402740
add esp, 0xc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
jmp 0x412eb3
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.00402740
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 0x10
push ebx
call esi
jmp 0x412eb3
push str.Cant_find_service
push str.stealth_manager
call fcn.00402740
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 8
push ebx
call esi
jmp 0x412eb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed___d_
push str.stealth_manager
call fcn.00402740
add esp, 0xc
push str.CStealthManager::stopService
push str._s_exit_
push str.stealth_manager
call fcn.004027d0
mov eax, dword [ebp + 0x1c]
add esp, 0xc
cmp eax, 0x10
jb 0x412edc
inc eax
push eax
push dword [ebp + 8]
call fcn.00405b90
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.00415b3b
mov esp, ebp
pop ebp
ret