Function at 0x10029470
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006f9b8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x100871e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0x7530
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x100294e4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
sub eax, 0x10
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
call fcn.10003fb0
jmp 0x10029700
push 0x1007caa4
push 0x1007cab4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x54], eax
push 0
lea ecx, [ebp + 8]
call fcn.10002f60
mov dword [ebp - 0x64], eax
push 0x2c
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [ebp - 0x54]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x10029548
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
sub ecx, 0x10
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x58]
call fcn.10003fb0
jmp 0x10029700
push 0
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
lea edx, [ebp - 0x50]
push edx
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x10029583
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x30], 1
jne 0x1002959d
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x30], 3
jne 0x10029651
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov ecx, 0xa
div ecx
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x3e8
jae 0x100295c8
mov dword [ebp - 0x40], 0x3e8
jmp 0x100295d8
cmp dword [ebp - 0x40], 0x2710
jbe 0x100295d8
mov dword [ebp - 0x40], 0x2710
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x50]
push eax
push 0x24
lea ecx, [ebp - 0x34]
push ecx
push 0
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x10029610
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x30], 1
jne 0x1002962a
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x48]
jbe 0x1002964c
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1002959d
lea eax, [ebp - 0x34]
push eax
push 1
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x10029679
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x30], 1
je 0x100296e8
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x50]
push edx
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x100296bc
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x30], 1
jne 0x100296c4
jmp 0x100296e8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x48]
jbe 0x100296e6
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10029679
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
sub eax, 0x10
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
call fcn.10003fb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100422b3
mov esp, ebp
pop ebp
ret