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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x140031020]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
mov qword [rbp + 0x3f], rax
test rax, rax
je 0x1400027ea
mov r8d, 0x10024
lea rdx, str.Te.Service
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
mov qword [rbp + 0x47], rax
test rax, rax
setne r14b
test rax, rax
je 0x140002804
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp + 0x17]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1400027d0
mov eax, dword [rbp + 0x1b]
sub eax, 1
je 0x140002710
cmp eax, 2
je 0x1400026eb
lea r8, [rbp + 0x17]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400027a9
jmp 0x140002710
mov eax, 0xcccccccd
mul dword [rbp + 0x2f]
shr edx, 3
mov eax, 0x3e8
cmp edx, eax
cmova eax, edx
mov ecx, 0x2710
cmp eax, ecx
cmovb ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbp + 0x1b], 1
je 0x140002733
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x7530
jb 0x14000269c
cmp dword [rbp + 0x1b], 1
jne 0x140002860
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x140002781
test r14b, r14b
je 0x14000274f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140018430
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov r9d, 0xcf
lea rdx, str.::DeleteService_failed.
call fcn.1400028d4
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov r9d, 0xc8
lea rdx, str.::ControlService_serviceHandle__SERVICE_CONTROL_STOP_...__failed
call fcn.1400028d4
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.1400029f0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.1400029a4
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
movups xmmword [rbp - 0x11], xmm0
lea rcx, [rbp - 0x21]
call fcn.1400015a4
nop
lea r9, str.Te.Service
lea r8, str.OpenService_failed_for__s__it_may_not_be_installed_on_this_system.
lea rdx, [rbp - 1]
mov rcx, rax
call fcn.140001cc0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov r9d, 0xa5
lea r8, str.E:BA163_s_srcWex.ServicesService.cpp
mov rdx, rbx
call fcn.140001a0c
nop
mov ecx, 0x80070102
call fcn.140002a3c
int3