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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x49aa58
push 0x46f9ba
mov eax, dword fs:[0]
push eax
add esp, 0xffffff90
mov eax, dword [0x49f074]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
cmp dword [ebp + 0xc], 0
jne 0x41efa1
jmp 0x41f153
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x4c], 0
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x48]
push edx
push 0
mov eax, dword [ebp - 0x4c]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x41f004
jmp 0x41f153
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xea
je 0x41f016
jmp 0x41f153
mov edx, dword [ebp - 0x48]
push edx
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x41f037
jmp 0x41f153
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x4c]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x41f063
jmp 0x41f131
mov dword [ebp - 0x50], 0
jmp 0x41f075
mov edx, dword [ebp - 0x50]
add edx, 1
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x20]
jae 0x41f131
imul esi, dword [ebp - 0x50], 0x24
add esi, dword [ebp - 0x4c]
mov ecx, 9
lea edi, [ebp - 0x80]
rep movsd dword es:[edi], dword [esi]
push 0x24
mov ecx, dword [ebp - 0x80]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x41f0b0
jmp 0x41f131
mov dword [ebp - 4], 1
lea eax, [ebp - 0x44]
push eax
push 1
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x41f0cd
jmp 0x41f113
cmp dword [ebp - 0x40], 1
je 0x41f113
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp - 0x48]
push eax
push 0x24
lea ecx, [ebp - 0x44]
push ecx
push 0
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x41f0f9
jmp 0x41f113
cmp dword [ebp - 0x40], 1
jne 0x41f101
jmp 0x41f113
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp - 0x58]
cmp eax, dword [ebp + 0x10]
jbe 0x41f111
jmp 0x41f113
jmp 0x41f0cd
mov dword [ebp - 4], 0
call fcn.0041f121
jmp 0x41f12c
jmp 0x41f06c
mov dword [ebp - 4], 0xfffffffe
call fcn.0041f13f
jmp 0x41f153
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00439a35
mov esp, ebp
pop ebp
ret 0xc