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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x6119e8
push 0x571d10
mov eax, dword fs:[0]
push eax
add esp, 0xffffff7c
mov eax, dword [0x6218c0]
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 0x4791e0
mov eax, 1
jmp 0x4793ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x4791f4
xor eax, eax
jmp 0x4793ee
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 0x479217
xor eax, eax
jmp 0x4793ee
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 0x479260
mov dword [ebp - 0x7c], 0
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x6218c0
call fcn.00571e70
add esp, 0xc
mov eax, dword [ebp - 0x7c]
jmp 0x4793ee
mov dword [ebp - 0x6c], 0
jmp 0x479272
mov edx, dword [ebp - 0x6c]
add edx, 1
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x78]
jae 0x4793c7
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 0x4792ca
mov dword [ebp - 0x80], 0
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x6218c0
call fcn.00571e70
add esp, 0xc
mov eax, dword [ebp - 0x80]
jmp 0x4793ee
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 0x47930d
mov dword [ebp - 0x84], 0
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x6218c0
call fcn.00571e70
add esp, 0xc
mov eax, dword [ebp - 0x84]
jmp 0x4793ee
cmp dword [ebp - 0x3c], 1
je 0x4793a9
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 0x479363
mov dword [ebp - 0x88], 0
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x6218c0
call fcn.00571e70
add esp, 0xc
mov eax, dword [ebp - 0x88]
jmp 0x4793ee
cmp dword [ebp - 0x3c], 1
jne 0x47936b
jmp 0x4793a9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x8c]
cmp eax, dword [ebp - 0x90]
jbe 0x4793a4
mov dword [ebp - 0x94], 0
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x6218c0
call fcn.00571e70
add esp, 0xc
mov eax, dword [ebp - 0x94]
jmp 0x4793ee
jmp 0x47930d
mov dword [ebp - 4], 0
call fcn.004793b7
jmp 0x4793c2
jmp 0x479269
mov dword [ebp - 4], 0xfffffffe
call fcn.004793d5
jmp 0x4793e9
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.0057029b
mov esp, ebp
pop ebp
ret 8