Function at 0x412690
Capabilities:
Check for time delay via gettickcount
Enumerate services
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56617d
push 0x52ec28
push dword fs:[0]
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x5c]
push eax
push 0x24
lea eax, [ebp - 0x58]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [0x6992d4]
test eax, eax
jne 0x4126e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4129bb
cmp dword [ebp - 0x54], 1
jne 0x412748
xor eax, eax
jmp 0x4129bb
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x5c]
push eax
push 0x24
lea eax, [ebp - 0x58]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [0x6992d4]
test eax, eax
jne 0x412723
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4129bb
cmp dword [ebp - 0x54], 1
jne 0x412730
xor eax, eax
jmp 0x4129bb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x60]
cmp eax, dword [ebp + 0x14]
jbe 0x412748
mov eax, 0x5b4
jmp 0x4129bb
cmp dword [ebp - 0x54], 3
je 0x4126f4
cmp dword [ebp + 0x10], 0
je 0x412950
mov dword [ebp - 0x6c], 0
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
mov eax, dword [ebp - 0x6c]
push eax
push 1
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
jne 0x412950
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x41279c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4129bb
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, dword [ebp - 0x5c]
push edx
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x4127c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4129bb
mov dword [ebp - 4], 0
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x6c]
push eax
push 1
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
jne 0x412803
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.0052ed60
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4129bb
mov dword [ebp - 0x68], 0
jmp 0x412922
lea edi, [ebp - 0x90]
mov eax, dword [ebp - 0x68]
mov edx, 0x24
mul edx
mov edx, dword [ebp - 0x6c]
lea esi, [edx + eax]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
push 0x24
mov eax, dword [ebp - 0x90]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x64], eax
test eax, eax
jne 0x41285e
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.0052ed60
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4129bb
mov dword [ebp - 4], 1
lea eax, [ebp - 0x34]
push eax
push 1
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4128fc
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.0052ed60
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4129bb
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x5c]
push eax
push 0x24
lea eax, [ebp - 0x58]
push eax
push 0
mov eax, dword [ebp - 0x64]
push eax
call dword [0x6992d4]
test eax, eax
jne 0x4128d1
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.0052ed60
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4129bb
cmp dword [ebp - 0x30], 1
je 0x412906
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x60]
cmp eax, dword [ebp + 0x14]
jbe 0x4128fc
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.0052ed60
pop ecx
pop ecx
mov eax, 0x5b4
jmp 0x4129bb
cmp dword [ebp - 0x30], 1
jne 0x412895
mov dword [ebp - 4], 0
call fcn.00412914
jmp 0x41291f
inc dword [ebp - 0x68]
mov eax, dword [ebp - 0x94]
cmp dword [ebp - 0x68], eax
jb 0x41280f
or dword [ebp - 4], 0xffffffff
call fcn.0041293c
jmp 0x412950
lea eax, [ebp - 0x34]
push eax
push 1
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4129b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4129bb
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x5c]
push eax
push 0x24
lea eax, [ebp - 0x58]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [0x6992d4]
test eax, eax
jne 0x412998
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4129bb
cmp dword [ebp - 0x30], 1
je 0x4129b9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x60]
cmp eax, dword [ebp + 0x14]
jbe 0x4129b3
mov eax, 0x5b4
jmp 0x4129bb
cmp dword [ebp - 0x30], 1
jne 0x41296c
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret