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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420a78
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x42e024]
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.00402620
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 0x41261a
cmp dword [ebp + 0x18], 0
je 0x4125fd
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 0x4125cd
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 0x4125a6
mov eax, dword [ebp - 0x48]
cmp eax, 1
je 0x41252a
xor bl, bl
cmp eax, 3
jne 0x412482
mov ecx, 0x2710
nop dword [eax]
mov eax, 0xcccccccd
mul dword [ebp - 0x34]
shr edx, 3
cmp edx, 0x3e8
jae 0x41241a
mov edx, 0x3e8
jmp 0x412423
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 0x41250e
cmp dword [ebp - 0x48], 1
jne 0x41245f
push str.Service_stopped_successfully.
push str.stealth_manager
call fcn.00402620
add esp, 8
mov bl, 1
call edi
sub eax, dword [ebp - 0x58]
cmp eax, 0x7530
ja 0x4124f7
cmp dword [ebp - 0x48], 3
mov ecx, 0x2710
je 0x412400
test bl, bl
jne 0x412527
lea eax, [ebp - 0x4c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x412595
cmp dword [ebp - 0x48], 1
je 0x412527
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 0x412587
cmp dword [ebp - 0x48], 1
je 0x412561
call edi
sub eax, dword [ebp - 0x58]
cmp eax, 0x7530
ja 0x41253b
cmp dword [ebp - 0x48], 1
jne 0x4124a7
mov ebx, dword [ebp - 0x50]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
jmp 0x412633
push str.Service_stop_timed_out.
push str.stealth_manager
call fcn.00402590
add esp, 8
jmp 0x412482
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_1_failed___d_
push str.stealth_manager
call fcn.00402590
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 0x412633
push str.Wait_timed_out
push str.stealth_manager
call fcn.00402590
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 0x412633
push str.Service_stopped_successfully.
push str.stealth_manager
call fcn.00402620
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 0x412633
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_2_failed___d_
jmp 0x41251a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ControlService_failed___d__n
jmp 0x41251a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_3_failed___d_
push str.stealth_manager
call fcn.00402590
add esp, 0xc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
jmp 0x412633
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.00402590
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 0x10
push ebx
call esi
jmp 0x412633
push str.Cant_find_service
push str.stealth_manager
call fcn.00402590
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 8
push ebx
call esi
jmp 0x412633
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed___d_
push str.stealth_manager
call fcn.00402590
add esp, 0xc
push str.CStealthManager::stopService
push str._s_exit_
push str.stealth_manager
call fcn.00402620
mov eax, dword [ebp + 0x1c]
add esp, 0xc
cmp eax, 0x10
jb 0x41265c
inc eax
push eax
push dword [ebp + 8]
call fcn.00404770
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.0041e02b
mov esp, ebp
pop ebp
ret