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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x43e970
push 0x41dc50
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x442cfc]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0x7530
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 1
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0xc]
push edx
mov edi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
call edi
test eax, eax
jne 0x40bdde
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40bd90
mov eax, dword [ebp - 0x1c]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x40bd90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push esi
push 1
mov ecx, dword [ebx + 0xc]
push ecx
call edi
test eax, eax
je 0x40bd7d
xor ebx, ebx
mov dword [ebp - 0x24], ebx
nop
cmp ebx, dword [ebp - 0x20]
jae 0x40bdd2
lea eax, [ebx + ebx*8]
lea esi, [esi + eax*4]
mov ecx, 9
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
push 0x24
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x34], esi
test esi, esi
jne 0x40bcfe
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x442cfc
call fcn.0042a364
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, 1
mov dword [ebp - 4], edi
lea edx, [ebp - 0x58]
push edx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40bd40
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x442cfc
call fcn.0042a364
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x54], edi
je 0x40bda6
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x1c]
push edx
push 0x24
lea eax, [ebp - 0x58]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40bcd5
cmp dword [ebp - 0x54], edi
je 0x40bda6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x30]
jbe 0x40bd40
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x442cfc
call fcn.0042a364
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0
call fcn.0040bdca
add ebx, edi
mov dword [ebp - 0x24], ebx
mov esi, dword [ebp - 0x28]
jmp 0x40bca0
mov dword [ebp - 4], 0xfffffffe
call fcn.0040bdf7
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4