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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 8], ecx
push rbp
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r15, rax
test rax, rax
jne 0x1400023e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
jmp 0x140002619
lea rdx, [0x140006a60]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
jne 0x14000240d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [rdi - 2]
jmp 0x14000260e
lea rax, [rbp + 0x30]
lea r8, [rbp - 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140002448
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, 0xfffffffd
jmp 0x14000260e
mov eax, dword [rbp - 0x2c]
dec eax
test eax, 0xfffffffd
je 0x140002467
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, 0xfffffffc
jmp 0x14000260e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [rbp - 0x1c]
mov r13d, 0x2710
mov r14d, eax
jmp 0x1400024e7
mov eax, 0xcccccccd
mul dword [rbp - 0x18]
shr edx, 3
cmp edx, 0x3e8
jae 0x140002495
mov edx, 0x3e8
jmp 0x14000249c
cmp edx, r13d
cmova edx, r13d
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rbp + 0x30]
lea r8, [rbp - 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000252b
cmp dword [rbp - 0x1c], esi
jbe 0x1400024d9
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [rbp - 0x1c]
mov r14d, eax
jmp 0x1400024e7
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r14d
cmp eax, dword [rbp - 0x18]
ja 0x140002518
cmp dword [rbp - 0x2c], 3
je 0x14000247b
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x140002544
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, 0xfffffff9
jmp 0x14000260e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, 0xfffffffa
jmp 0x14000260e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, 0xfffffffb
jmp 0x14000260e
lea rax, [rbp + 0x30]
lea r8, [rbp - 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x14000257f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, 0xfffffff8
jmp 0x14000260e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [rbp - 0x1c]
mov r14d, eax
jmp 0x1400025eb
mov eax, 0xcccccccd
mul dword [rbp - 0x18]
shr edx, 3
cmp edx, 0x3e8
jae 0x1400025a7
mov edx, 0x3e8
jmp 0x1400025ae
cmp edx, r13d
cmova edx, r13d
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rbp + 0x30]
lea r8, [rbp - 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1400025f3
cmp dword [rbp - 0x1c], esi
ja 0x14000257f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r14d
cmp eax, dword [rbp - 0x18]
ja 0x1400025f9
cmp dword [rbp - 0x2c], 2
je 0x14000258d
jmp 0x1400025f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rbp - 0x2c], 4
mov eax, 0xfffffff7
mov rcx, rdi
cmovne ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret