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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5bbb58
push 0x532d00
mov eax, dword fs:[0]
push eax
add esp, 0xffffff7c
mov eax, dword [0x5c4680]
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 0x478910
mov eax, 1
jmp 0x478b1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x478924
xor eax, eax
jmp 0x478b1e
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 0x478947
xor eax, eax
jmp 0x478b1e
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 0x478990
mov dword [ebp - 0x7c], 0
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x5c4680
call fcn.00532e60
add esp, 0xc
mov eax, dword [ebp - 0x7c]
jmp 0x478b1e
mov dword [ebp - 0x6c], 0
jmp 0x4789a2
mov edx, dword [ebp - 0x6c]
add edx, 1
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x78]
jae 0x478af7
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 0x4789fa
mov dword [ebp - 0x80], 0
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x5c4680
call fcn.00532e60
add esp, 0xc
mov eax, dword [ebp - 0x80]
jmp 0x478b1e
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 0x478a3d
mov dword [ebp - 0x84], 0
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x5c4680
call fcn.00532e60
add esp, 0xc
mov eax, dword [ebp - 0x84]
jmp 0x478b1e
cmp dword [ebp - 0x3c], 1
je 0x478ad9
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 0x478a93
mov dword [ebp - 0x88], 0
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x5c4680
call fcn.00532e60
add esp, 0xc
mov eax, dword [ebp - 0x88]
jmp 0x478b1e
cmp dword [ebp - 0x3c], 1
jne 0x478a9b
jmp 0x478ad9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x8c]
cmp eax, dword [ebp - 0x90]
jbe 0x478ad4
mov dword [ebp - 0x94], 0
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x5c4680
call fcn.00532e60
add esp, 0xc
mov eax, dword [ebp - 0x94]
jmp 0x478b1e
jmp 0x478a3d
mov dword [ebp - 4], 0
call fcn.00478ae7
jmp 0x478af2
jmp 0x478999
mov dword [ebp - 4], 0xfffffffe
call fcn.00478b05
jmp 0x478b19
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.005313f0
mov esp, ebp
pop ebp
ret 8