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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4617e0
push 0x42dbf0
mov eax, dword fs:[0]
push eax
add esp, 0xffffff7c
mov eax, dword [0x465074]
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 - 0x68], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x90], 0x7530
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x70]
push ecx
push 0
mov edx, dword [ebp - 0x68]
push edx
push 1
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x41d1f0
mov eax, 1
jmp 0x41d3fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x41d204
xor eax, eax
jmp 0x41d3fe
mov ecx, dword [ebp - 0x70]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x41d227
xor eax, eax
jmp 0x41d3fe
mov dword [ebp - 4], 0
lea edx, [ebp - 0x78]
push edx
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x68]
push edx
push 1
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x41d270
mov dword [ebp - 0x7c], 0
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x465074
call fcn.0042dd50
add esp, 0xc
mov eax, dword [ebp - 0x7c]
jmp 0x41d3fe
mov dword [ebp - 0x6c], 0
jmp 0x41d282
mov edx, dword [ebp - 0x6c]
add edx, 1
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x78]
jae 0x41d3d7
imul esi, dword [ebp - 0x6c], 0x24
add esi, dword [ebp - 0x68]
mov ecx, 9
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
push 0x24
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x41d2da
mov dword [ebp - 0x80], 0
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x465074
call fcn.0042dd50
add esp, 0xc
mov eax, dword [ebp - 0x80]
jmp 0x41d3fe
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x40]
push ecx
push 1
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x41d31d
mov dword [ebp - 0x84], 0
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x465074
call fcn.0042dd50
add esp, 0xc
mov eax, dword [ebp - 0x84]
jmp 0x41d3fe
cmp dword [ebp - 0x3c], 1
je 0x41d3b9
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x70]
push edx
push 0x24
lea eax, [ebp - 0x40]
push eax
push 0
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x41d373
mov dword [ebp - 0x88], 0
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x465074
call fcn.0042dd50
add esp, 0xc
mov eax, dword [ebp - 0x88]
jmp 0x41d3fe
cmp dword [ebp - 0x3c], 1
jne 0x41d37b
jmp 0x41d3b9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x8c]
cmp eax, dword [ebp - 0x90]
jbe 0x41d3b4
mov dword [ebp - 0x94], 0
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x465074
call fcn.0042dd50
add esp, 0xc
mov eax, dword [ebp - 0x94]
jmp 0x41d3fe
jmp 0x41d31d
mov dword [ebp - 4], 0
call fcn.0041d3c7
jmp 0x41d3d2
jmp 0x41d279
mov dword [ebp - 4], 0xfffffffe
call fcn.0041d3e5
jmp 0x41d3f9
mov eax, 1
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.0042a2fe
mov esp, ebp
pop ebp
ret