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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d658
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x47b06c]
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
lea ecx, [ebp - 0x4c]
call fcn.00409850
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [ebp - 0x60], eax
call fcn.00408850
push 0x1c
push str.DoStopATKCOMService:_name_
mov dword [ebp - 0x58], 0
mov ecx, dword [eax + 0x114]
lea eax, [ebp - 0x4c]
push eax
sub esp, 0x10
mov dword [ebp - 0x54], 0
movq xmm0, qword [ebp - 0x58]
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.0041b420
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [ebp - 0x64], edi
test edi, edi
jne 0x40c1fb
call fcn.00408850
sub esp, 8
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
movq xmm0, qword [ebp - 0x58]
mov ecx, dword [eax + 0x114]
mov eax, esp
push 1
sub esp, 0xc
mov dword [eax], str.schSCManager_is_NULL
mov dword [eax + 4], 0x14
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], edi
call fcn.00405a70
jmp 0x40c461
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
push 0x24
cmovae eax, dword [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40c25d
call fcn.00408850
sub esp, 8
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
movq xmm0, qword [ebp - 0x58]
mov ecx, dword [eax + 0x114]
mov eax, esp
push 1
sub esp, 0xc
mov dword [eax], str.Service_is_NULL
mov dword [eax + 4], 0xf
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], esi
call fcn.00405a70
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40c461
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea eax, [ebp - 0x5c]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push esi
call edi
test eax, eax
je 0x40c453
mov eax, dword [ebp - 0x30]
cmp eax, 1
jne 0x40c2a4
call fcn.00408850
sub esp, 8
mov ecx, dword [eax + 0x114]
mov eax, esp
mov dword [eax], str.Service_is_already_stopped.
mov dword [eax + 4], 0x1b
jmp 0x40c429
cmp eax, 3
jne 0x40c359
nop dword [eax]
call fcn.00408850
sub esp, 8
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
movq xmm0, qword [ebp - 0x58]
mov ecx, dword [eax + 0x114]
mov eax, esp
push 1
sub esp, 0xc
mov dword [eax], str.Service_stop_pending...
mov dword [eax + 4], 0x17
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.00405a70
mov eax, 0xcccccccd
mul dword [ebp - 0x1c]
shr edx, 3
cmp edx, 0x3e8
jae 0x40c311
mov edx, 0x3e8
jmp 0x40c31f
cmp edx, 0x2ee0
mov eax, 0x2ee0
cmova edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x5c]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push esi
call edi
test eax, eax
je 0x40c3ab
cmp dword [ebp - 0x30], 1
je 0x40c40c
call ebx
sub eax, dword [ebp - 0x60]
cmp eax, 0x7530
ja 0x40c38c
cmp dword [ebp - 0x30], 3
je 0x40c2b0
lea eax, [ebp - 0x34]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40c3ca
call fcn.00408850
sub esp, 8
mov ecx, dword [eax + 0x114]
mov eax, esp
mov dword [eax], str.ControlService_failed
mov dword [eax + 4], 0x15
jmp 0x40c429
call fcn.00408850
sub esp, 8
mov ecx, dword [eax + 0x114]
mov eax, esp
mov dword [eax], str.Service_stop_timed_out
mov dword [eax + 4], 0x16
jmp 0x40c429
call fcn.00408850
sub esp, 8
mov ecx, dword [eax + 0x114]
mov eax, esp
mov dword [eax], str.SQueryServiceStatusEx_failed
mov dword [eax + 4], 0x1c
jmp 0x40c429
cmp dword [ebp - 0x30], 1
je 0x40c40c
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x5c]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push esi
call edi
test eax, eax
je 0x40c4a8
cmp dword [ebp - 0x30], 1
je 0x40c40c
call ebx
sub eax, dword [ebp - 0x60]
cmp eax, 0x7530
ja 0x40c489
cmp dword [ebp - 0x30], 1
jne 0x40c3d0
call fcn.00408850
sub esp, 8
mov ecx, dword [eax + 0x114]
mov eax, esp
mov dword [eax + 4], 0x1c
mov dword [eax], str.Service_stopped_successfully
push 1
sub esp, 0xc
mov dword [ebp - 0x58], 0
mov eax, esp
mov dword [ebp - 0x54], 0
movq xmm0, qword [ebp - 0x58]
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.00405a70
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x64]
call esi
mov edx, dword [ebp - 0x38]
cmp edx, 0x10
jb 0x40c4d4
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c4ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c4f0
jmp 0x40c4ca
call fcn.00408850
sub esp, 8
mov ecx, dword [eax + 0x114]
mov eax, esp
mov dword [eax], str.Wait_timed_out
mov dword [eax + 4], 0xe
jmp 0x40c429
call fcn.00408850
sub esp, 8
mov ecx, dword [eax + 0x114]
mov eax, esp
mov dword [eax], str.QueryServiceStatusEx_failed
mov dword [eax + 4], 0x1b
jmp 0x40c429
push edx
push ecx
call fcn.0042736a
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.00427329
mov esp, ebp
pop ebp
ret
call fcn.004421bc
int3