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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x432958
push 0x406840
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x434008]
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 0x404794
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 0x404791
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 0x4047bf
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.00404912
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x404791
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 0x404791
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 0x404819
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x434008
call fcn.00408f30
add esp, 0xc
jmp 0x404791
xor edi, edi
mov dword [ebp - 0x58], edi
cmp edi, dword [ebp - 0x20]
jae 0x4048e7
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 0x4048ac
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 0x4048ac
cmp dword [ebp - 0x40], 1
je 0x4048c7
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 0x4048ac
cmp dword [ebp - 0x40], 1
je 0x4048c7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x64]
jbe 0x404872
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x434008
call fcn.00408f30
add esp, 0xc
mov edi, dword [ebp - 0x54]
jmp 0x404791
mov dword [ebp - 4], 0
call fcn.004048df
inc edi
jmp 0x40481b
mov dword [ebp - 4], 0xfffffffe
mov edi, dword [ebp - 0x54]
call fcn.004048fe
jmp 0x404791