Function at 0x4028e0
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp + 0x10]
mov esi, eax
push 0x2c
push dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x40291f
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x18]
push eax
push 0x24
lea eax, [ebp - 0x40]
push eax
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x402b31
mov eax, dword [ebp - 0x3c]
cmp eax, 1
je 0x402b31
cmp eax, 3
jne 0x4029b4
mov edi, 0x2710
mov eax, 0xcccccccd
mul dword [ebp - 0x28]
shr edx, 3
cmp edx, 0x3e8
jae 0x40296a
mov edx, 0x3e8
jmp 0x40296f
cmp edx, edi
cmova edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x18]
push eax
push 0x24
lea eax, [ebp - 0x40]
push eax
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x402b31
cmp dword [ebp - 0x3c], 1
je 0x402b31
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x7530
ja 0x402b31
cmp dword [ebp - 0x3c], 3
je 0x402950
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
jne 0x402adf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x402adf
push dword [ebp - 4]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x402adf
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
jne 0x402a36
push dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x402adf
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
jbe 0x402b41
mov ebx, dword [ebp - 0x14]
nop word [eax + eax]
mov eax, dword [ebx]
movups xmm0, xmmword [ebx + 0x10]
push 0x24
push eax
push dword [ebp + 0x10]
movups xmmword [ebp - 0x78], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x402ad9
lea eax, [ebp - 0x64]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x402ad2
cmp dword [ebp - 0x60], 1
je 0x402abe
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x64]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x402ad9
cmp dword [ebp - 0x60], 1
je 0x402abe
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7530
ja 0x402ad2
cmp dword [ebp - 0x60], 1
jne 0x402a83
mov eax, dword [ebp - 0x1c]
add ebx, 0x24
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x10]
jb 0x402a50
mov ebx, dword [ebp - 8]
jmp 0x402b44
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0x40]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x402b31
cmp dword [ebp - 0x3c], 1
je 0x402b31
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x18]
push eax
push 0x24
lea eax, [ebp - 0x40]
push eax
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x402b31
cmp dword [ebp - 0x3c], 1
je 0x402b31
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x7530
ja 0x402b31
cmp dword [ebp - 0x3c], 1
jne 0x402af6
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x402adc