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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x47ddc0
push 0x459d45
mov eax, dword fs:[0]
push eax
add esp, 0xffffff90
mov eax, dword [0x4810f4]
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 0x41e451
jmp 0x41e603
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 0x41e4b4
jmp 0x41e603
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x41e4c6
jmp 0x41e603
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 0x41e4e7
jmp 0x41e603
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 0x41e513
jmp 0x41e5e1
mov dword [ebp - 0x50], 0
jmp 0x41e525
mov edx, dword [ebp - 0x50]
add edx, 1
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x20]
jae 0x41e5e1
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 0x41e560
jmp 0x41e5e1
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 0x41e57d
jmp 0x41e5c3
cmp dword [ebp - 0x40], 1
je 0x41e5c3
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 0x41e5a9
jmp 0x41e5c3
cmp dword [ebp - 0x40], 1
jne 0x41e5b1
jmp 0x41e5c3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x58]
cmp eax, dword [ebp + 0x10]
jbe 0x41e5c1
jmp 0x41e5c3
jmp 0x41e57d
mov dword [ebp - 4], 0
call fcn.0041e5d1
jmp 0x41e5dc
jmp 0x41e51c
mov dword [ebp - 4], 0xfffffffe
call fcn.0041e5ef
jmp 0x41e603
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.0043a762
mov esp, ebp
pop ebp
ret 0xc