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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0x2710
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x410c69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov dword [edx], 1
xor eax, eax
jmp 0x410e40
push 0x124
push 0x448708
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x410cab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov dword [edx], 2
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x410e40
lea ecx, [ebp - 0xc]
push ecx
push 0x24
lea edx, [ebp - 0x3c]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x410ce3
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
jmp 0x410e27
cmp dword [ebp - 0x38], 1
jne 0x410cf3
jmp 0x410e27
cmp dword [ebp - 0x38], 3
jne 0x410d9d
mov eax, dword [ebp - 0x24]
xor edx, edx
mov ecx, 0xa
div ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x3e8
jae 0x410d1e
mov dword [ebp - 8], 0x3e8
jmp 0x410d2e
cmp dword [ebp - 8], 0x2710
jbe 0x410d2e
mov dword [ebp - 8], 0x2710
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0xc]
push eax
push 0x24
lea ecx, [ebp - 0x3c]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x410d70
mov eax, dword [ebp + 8]
mov dword [eax], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x410e27
cmp dword [ebp - 0x38], 1
jne 0x410d80
jmp 0x410e27
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jbe 0x410d98
jmp 0x410e27
jmp 0x410cf3
lea edx, [ebp - 0x3c]
push edx
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x410dc9
mov ecx, dword [ebp + 8]
mov dword [ecx], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
jmp 0x410e27
cmp dword [ebp - 0x38], 1
je 0x410e27
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0xc]
push ecx
push 0x24
lea edx, [ebp - 0x3c]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x410e0b
mov ecx, dword [ebp + 8]
mov dword [ecx], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
jmp 0x410e27
cmp dword [ebp - 0x38], 1
jne 0x410e13
jmp 0x410e27
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jbe 0x410e25
jmp 0x410e27
jmp 0x410dc9
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret