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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x1401f41c0]
xor rax, rsp
mov qword [rbp + 0x80], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x70], eax
mov ebx, edx
movups xmmword [rsp + 0x60], xmm0
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, rsi
mov edi, eax
call fcn.140065ba0
mov rcx, qword [rsi + 0x10]
lea rax, [rsp + 0x30]
mov r9d, 0x24
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14006650a
mov eax, dword [rsp + 0x54]
cmp eax, 1
je 0x140066481
mov qword [rsp + 0x1b8], r14
cmp eax, 3
jne 0x14006640d
mov r14d, 0x2710
nop dword [rax]
mov eax, 0xcccccccd
mul dword [rsp + 0x68]
shr edx, 3
cmp edx, 0x3e8
jae 0x1400663bb
mov edx, 0x3e8
jmp 0x1400663c2
cmp edx, r14d
cmova edx, r14d
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsi + 0x10]
lea rax, [rsp + 0x30]
mov r9d, 0x24
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1400665d8
cmp dword [rsp + 0x54], 1
je 0x140066479
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, ebx
ja 0x140066479
cmp dword [rsp + 0x54], 3
je 0x1400663a0
mov rcx, qword [rsi + 0x10]
lea r8, [rsp + 0x50]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140066571
cmp dword [rsp + 0x54], 1
je 0x140066479
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsi + 0x10]
lea rax, [rsp + 0x30]
mov r9d, 0x24
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1400664a3
cmp dword [rsp + 0x54], 1
je 0x140066479
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, ebx
ja 0x140066479
cmp dword [rsp + 0x54], 1
jne 0x140066430
mov r14, qword [rsp + 0x1b8]
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14016ab50
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x190
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
mov byte [rbp - 0x80], 0
mov r8d, 0xff
lea rcx, [rbp - 0x7f]
call fcn.140191ec0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea r9, str.WinScCtrl::stop
lea rax, [0x1401a4750]
mov edx, 0x100
lea r8, [0x1401a4660]
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x80]
call fcn.140040fd0
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x38]
call fcn.140038230
lea rdx, [0x1401ec5c8]
lea rcx, [rsp + 0x38]
call fcn.14016bd70
int3
xor edx, edx
mov byte [rbp - 0x80], 0
mov r8d, 0xff
lea rcx, [rbp - 0x7f]
call fcn.140191ec0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea r9, str.WinScCtrl::stop
lea rax, [0x1401a4670]
mov edx, 0x100
lea r8, [0x1401a4660]
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x80]
call fcn.140040fd0
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x38]
call fcn.140038230
lea rdx, [0x1401ec5c8]
lea rcx, [rsp + 0x38]
call fcn.14016bd70
int3
xor edx, edx
mov byte [rbp - 0x80], 0
mov r8d, 0xff
lea rcx, [rbp - 0x7f]
call fcn.140191ec0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea r9, str.WinScCtrl::stop
lea rax, [0x1401a4738]
mov edx, 0x100
lea r8, [0x1401a4660]
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x80]
call fcn.140040fd0
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x38]
call fcn.140038230
lea rdx, [0x1401ec5c8]
lea rcx, [rsp + 0x38]
call fcn.14016bd70
int3
xor edx, edx
mov byte [rbp - 0x80], 0
mov r8d, 0xff
lea rcx, [rbp - 0x7f]
call fcn.140191ec0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea r9, str.WinScCtrl::stop
lea rax, [0x1401a4670]
mov edx, 0x100
lea r8, [0x1401a4660]
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x80]
call fcn.140040fd0
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x38]
call fcn.140038230
lea rdx, [0x1401ec5c8]
lea rcx, [rsp + 0x38]
call fcn.14016bd70
int3