Function at 0x1002af70
Capabilities:
Check for time delay via gettickcount
Hide graphical window
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b4568
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x100e01f0]
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 0x1002afe4
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.10003fd0
jmp 0x1002b20a
push 0x100c5edc
push 0x100c5eec
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.10002f80
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 0x1002b048
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.10003fd0
jmp 0x1002b20a
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 0x1002b083
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 0x1002b09d
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 0x1002b151
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov ecx, 0xa
div ecx
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x3e8
jae 0x1002b0c8
mov dword [ebp - 0x40], 0x3e8
jmp 0x1002b0d8
cmp dword [ebp - 0x40], 0x2710
jbe 0x1002b0d8
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 0x1002b110
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 0x1002b12a
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 0x1002b14c
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 0x1002b09d
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 0x1002b179
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 0x1002b1f2
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
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 0x1002b1c6
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 0x1002b1ce
jmp 0x1002b1f2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x48]
jbe 0x1002b1f0
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 0x1002b179
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.10003fd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007ab33
mov esp, ebp
pop ebp
ret