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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4339d8
push 0x406d80
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x435008]
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 esi, ecx
mov byte [ebp - 0x4d], 0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], 0x7530
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x404cd4
push 0x2c
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x54], edi
test edi, edi
je 0x404cd1
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 1
push edi
mov esi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
call esi
test eax, eax
je 0x404cff
mov byte [ebp - 0x4d], 1
mov eax, dword [ebp - 0x4c]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov al, byte [ebp - 0x4d]
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.00404e52
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x404cd1
push dword [ebp - 0x48]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x404cd1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x48]
push eax
push 1
push edi
call esi
test eax, eax
jne 0x404d59
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x435008
call fcn.00409470
add esp, 0xc
jmp 0x404cd1
xor edi, edi
mov dword [ebp - 0x58], edi
cmp edi, dword [ebp - 0x20]
jae 0x404e27
lea eax, [edi + edi*8]
mov ecx, dword [ebp - 0x5c]
movups xmm1, xmmword [ecx + eax*4]
movups xmm0, xmmword [ecx + eax*4 + 0x10]
movups xmmword [ebp - 0x7c], xmm0
mov eax, dword [ecx + eax*4 + 0x20]
mov dword [ebp - 0x6c], eax
push 0x24
movd eax, xmm1
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x68], esi
test esi, esi
je 0x404dec
mov dword [ebp - 4], 1
lea eax, [ebp - 0x44]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x404dec
cmp dword [ebp - 0x40], 1
je 0x404e07
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x48]
push eax
push 0x24
lea eax, [ebp - 0x44]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x404dec
cmp dword [ebp - 0x40], 1
je 0x404e07
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x64]
jbe 0x404db2
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x435008
call fcn.00409470
add esp, 0xc
mov edi, dword [ebp - 0x54]
jmp 0x404cd1
mov dword [ebp - 4], 0
call fcn.00404e1f
inc edi
jmp 0x404d5b
mov dword [ebp - 4], 0xfffffffe
mov edi, dword [ebp - 0x54]
call fcn.00404e3e
jmp 0x404cd1