Function at 0x140024aa0
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x110
mov qword [rsp + 0xe0], 0xfffffffffffffffe
mov rax, qword [0x14019cfa0]
xor rax, rsp
mov qword [rsp + 0x108], rax
lea rax, [rsp + 0xe8]
mov rdi, rax
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0x60], 0
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140024b60
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x4c], eax
xor r8d, r8d
lea rdx, [rsp + 0x4c]
lea rcx, [rsp + 0x78]
call fcn.14001b0b0
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x128]
call fcn.140004b30
nop
lea rcx, [rsp + 0x78]
call fcn.140001910
xor eax, eax
jmp 0x140024f75
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140024be7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x90]
call fcn.14001b0b0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x128]
call fcn.140004b30
nop
lea rcx, [rsp + 0x90]
call fcn.140001910
xor eax, eax
jmp 0x140024f75
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140024c9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
cmp qword [rsp + 0x30], 0
je 0x140024c1c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp qword [rsp + 0x28], 0
je 0x140024c2f
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [rsp + 0x38], 0x420
jne 0x140024c45
mov eax, 1
jmp 0x140024f75
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xa8]
call fcn.14001b0b0
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x128]
call fcn.140004b30
nop
lea rcx, [rsp + 0xa8]
call fcn.140001910
xor eax, eax
jmp 0x140024f75
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140024d3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
xor r8d, r8d
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0xc0]
call fcn.14001b0b0
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x128]
call fcn.140004b30
nop
lea rcx, [rsp + 0xc0]
call fcn.140001910
cmp qword [rsp + 0x30], 0
je 0x140024d24
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp qword [rsp + 0x28], 0
je 0x140024d37
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x140024f75
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xfc]
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x64], 0
cmp dword [rsp + 0xec], 2
jne 0x140024e61
xor edx, edx
mov eax, dword [rsp + 0x100]
mov ecx, 0xa
div ecx
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x3e8
jae 0x140024d91
mov dword [rsp + 0x20], 0x3e8
jmp 0x140024da3
cmp dword [rsp + 0x20], 0x2710
jbe 0x140024da3
mov dword [rsp + 0x20], 0x2710
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140024e20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0xd8]
call fcn.14001b0b0
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x128]
call fcn.140004b30
nop
lea rcx, [rsp + 0xd8]
call fcn.140001910
jmp 0x140024e61
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0xfc], eax
jbe 0x140024e44
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xfc]
mov dword [rsp + 0x3c], eax
jmp 0x140024e5c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x40]
imul ecx, dword [rsp + 0x100], 0xa
cmp eax, ecx
jbe 0x140024e5c
jmp 0x140024e61
jmp 0x140024d5b
cmp dword [rsp + 0xec], 4
je 0x140024e7f
cmp dword [rsp + 0xec], 2
je 0x140024e7f
mov dword [rsp + 0x44], 0
jmp 0x140024e87
mov dword [rsp + 0x44], 1
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x140024f4b
mov rcx, qword [rsp + 0x128]
call fcn.140004a80
test eax, eax
jne 0x140024f4b
mov eax, dword [rsp + 0xec]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 2
je 0x140024f21
cmp dword [rsp + 0x24], 3
je 0x140024f37
cmp dword [rsp + 0x24], 5
je 0x140024edf
cmp dword [rsp + 0x24], 6
je 0x140024ef5
cmp dword [rsp + 0x24], 7
je 0x140024f0b
jmp 0x140024f4b
lea rdx, str.The_service_is_resuming.
mov rcx, qword [rsp + 0x128]
call fcn.140004670
jmp 0x140024f4b
lea rdx, str.The_service_is_pausing.
mov rcx, qword [rsp + 0x128]
call fcn.140004670
jmp 0x140024f4b
lea rdx, str.The_service_is_paused.
mov rcx, qword [rsp + 0x128]
call fcn.140004670
jmp 0x140024f4b
lea rdx, str.The_service_is_starting.
mov rcx, qword [rsp + 0x128]
call fcn.140004670
jmp 0x140024f4b
lea rdx, str.The_service_is_stopping.
mov rcx, qword [rsp + 0x128]
call fcn.140004670
cmp qword [rsp + 0x30], 0
je 0x140024f5e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp qword [rsp + 0x28], 0
je 0x140024f71
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.1400dbfd0
add rsp, 0x110
pop rdi
ret