Function at 0x1400b63a0
Capabilities:
Query service status
Stop service

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r12, rdx
mov rsi, rcx
xor edi, edi
mov dword [rsp + 0x34], edi
lea r14, [rcx + 8]
mov rax, qword [rcx]
mov r8, r14
lea rdx, str.StopService:__S
call qword [rax + 0x80]
xor edx, edx
mov r8d, 0xf003f
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r13, rax
test rax, rax
jne 0x1400b6436
mov rbx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, r14
lea rdx, str.Unable_to_open_SCM_stopping__S__err_d
mov rcx, rsi
call qword [rbx + 0x80]
lea rbx, [0x140285c9d]
jmp 0x1400b6598
mov r8d, 0xf01ff
mov rdx, r14
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov r15, rax
test rax, rax
jne 0x1400b647b
mov rbx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, r14
lea rdx, str.Unable_to_open_handle_to__S__err_d
mov rcx, rsi
call qword [rbx + 0x80]
lea rbx, [0x140285c9d]
jmp 0x1400b658f
lea r8, [rsp + 0x48]
mov edx, 1
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1400b64bd
mov rbx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, r14
lea rdx, str.Unable_to_send_STOP_command_to__S__err_d
mov rcx, rsi
call qword [rbx + 0x80]
lea rbx, [0x140285c9d]
jmp 0x1400b6586
xor r14b, r14b
mov byte [rsp + 0x30], r14b
mov dword [rsp + 0x38], edi
cmp edi, 0x64
jge 0x1400b6540
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x48]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400b6520
mov r8d, dword [rsp + 0x4c]
cmp r8d, 3
jne 0x1400b64f8
jmp 0x1400b651c
cmp r8d, 1
jne 0x1400b6509
movzx r14d, r8b
mov byte [rsp + 0x30], r8b
jmp 0x1400b6540
mov rax, qword [rsi]
lea rdx, str.Unexpected_service_state__d_after_STOP_command
mov rcx, rsi
call qword [rax + 0x80]
inc edi
jmp 0x1400b64c5
mov rbx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [rsi + 8]
lea rdx, str.Unable_to_QueryServiceStatus_on__S_err_d
mov rcx, rsi
call qword [rbx + 0x80]
movzx edi, r14b
mov dword [rsp + 0x34], edi
lea r14, [rsi + 8]
mov r10, qword [rsi]
lea rbx, [0x140285c9d]
mov rax, rbx
test r12, r12
cmovne rax, r12
lea r8, str.NOT
test edi, edi
cmovne r8, rbx
mov qword [rsp + 0x20], rax
mov r9, r14
lea rdx, str.Service__sstopped__s_on__s
mov rcx, rsi
call qword [r10 + 0x80]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x1400b65c8
mov r10, qword [rsi]
test r12, r12
cmovne rbx, r12
mov dword [rsp + 0x20], eax
mov r9, rbx
mov r8, r14
lea rdx, str.Failed_to_tStop_service__s_on__s___d_
mov rcx, rsi
call qword [r10 + 0x80]
nop
mov eax, edi
jmp 0x1400b65d0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140113910
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret