Function at 0x1402bb160
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x14065ef68]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rbx, rdx
mov r15, rcx
xor r13d, r13d
mov dword [rbp - 0x59], r13d
xor edx, edx
call fcn.1402bb6a0
cmp eax, 7
jne 0x1402bb2b2
mov rbx, qword [0x14068baa0]
test rbx, rbx
je 0x1402bb29d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x30]
test al, al
je 0x1402bb29d
mov rdx, r15
lea rcx, [rbp - 0x11]
call fcn.14026b4a0
nop
mov r8, rax
lea rdx, str.Service_not_running:_
lea rcx, [rbp - 0x51]
call fcn.1400599d0
nop
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x1402bb22c
inc rdx
mov rcx, qword [rbp - 0x11]
cmp rdx, 0x1000
jb 0x1402bb227
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1402bb2a4
mov rcx, r8
call fcn.1402f1e30
mov qword [rbp - 1], r13
mov qword [rbp + 7], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x11], 0
mov rax, qword [rbx]
lea r9, [rbp - 0x51]
lea r8, str.eax::services::platform::_anonymous_namespace::Win32Service::ensureStopped
mov edx, 3
mov rcx, rbx
call qword [rax + gethostname]
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x1402bb28d
inc rdx
mov rcx, qword [rbp - 0x51]
cmp rdx, 0x1000
jb 0x1402bb288
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1402bb2ab
mov rcx, r8
call fcn.1402f1e30
mov qword [rbp - 0x41], r13
mov qword [rbp - 0x39], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x51], 0
mov al, 1
jmp 0x1402bb64c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor r14b, r14b
cmp eax, 6
je 0x1402bb530
lea r8, [rbp - 0x11]
mov r12d, 1
mov edx, r12d
mov rcx, qword [r15 + 0x28]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1402bb3e6
mov rdi, qword [0x14068baa0]
test rdi, rdi
je 0x1402bb3c9
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x30]
test al, al
je 0x1402bb3c9
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
mov qword [rbp - 0x41], r13
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x39], reloc.WS2_32.dll_ntohs
lea edx, [r12 + 0x1f]
lea rcx, [rbp - 0x51]
call fcn.1400505f0
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x41], 0x1a
mov qword [rbp - 0x39], 0x1f
movups xmm0, xmmword [str.Service_sent_stop_command.]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x1404b7890]
movsd qword [rax + 0x10], xmm0
movzx edx, word [0x1404b7898]
mov word [rax + 0x18], dx
mov byte [rax + 0x1a], r14b
mov dword [rbp - 0x59], r12d
mov rax, qword [rdi]
lea r9, [rbp - 0x51]
lea r8, str.eax::services::platform::_anonymous_namespace::Win32Service::ensureStopped
lea edx, [r12 + 2]
mov rcx, rdi
call qword [rax + gethostname]
and r12d, 0xfffffffe
mov dword [rbp - 0x59], r12d
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x1402bb3b9
inc rdx
mov rcx, qword [rbp - 0x51]
cmp rdx, 0x1000
jb 0x1402bb3b4
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1402bb3df
mov rcx, r8
call fcn.1402f1e30
mov qword [rbp - 0x41], r13
mov qword [rbp - 0x39], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x51], 0
cmp dword [rbp - 0xd], 1
sete r14b
test r14b, r14b
jne 0x1402bb55a
jmp 0x1402bb530
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rsi, qword [0x14068baa0]
test rsi, rsi
je 0x1402bb530
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test al, al
je 0x1402bb530
lea rcx, [rbp - 0x31]
call fcn.14028fbf0
mov rdi, rax
mov rdx, r15
lea rcx, [rbp + 0xf]
call fcn.14026b4a0
nop
mov r9, rdi
mov r8, rax
lea rdx, str.Unable_to_stop_service._Service:____
lea rcx, [rbp - 0x51]
call fcn.1400758f0
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x1402bb472
inc rdx
mov rcx, qword [rbp + 0xf]
cmp rdx, 0x1000
jb 0x1402bb46d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1402bb679
mov rcx, r8
call fcn.1402f1e30
mov qword [rbp + 0x1f], r13
mov qword [rbp + 0x27], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0xf], 0
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x1402bb4bd
inc rdx
mov rcx, qword [rbp - 0x31]
cmp rdx, 0x1000
jb 0x1402bb4b8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1402bb680
mov rcx, r8
call fcn.1402f1e30
mov qword [rbp - 0x21], r13
mov qword [rbp - 0x19], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x31], 0
mov rax, qword [rsi]
lea r9, [rbp - 0x51]
lea r8, str.eax::services::platform::_anonymous_namespace::Win32Service::ensureStopped
mov edx, r12d
mov rcx, rsi
call qword [rax + gethostname]
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x1402bb520
inc rdx
mov rcx, qword [rbp - 0x51]
cmp rdx, 0x1000
jb 0x1402bb51b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1402bb687
mov rcx, r8
call fcn.1402f1e30
mov qword [rbp - 0x41], r13
mov qword [rbp - 0x39], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x51], 0
test rbx, rbx
jle 0x1402bb648
mov r9d, 6
mov r8, rbx
lea edx, [r9 + 1]
mov rcx, r15
call fcn.1402bcfa0
movzx r14d, al
test al, al
je 0x1402bb648
mov rbx, qword [0x14068baa0]
test rbx, rbx
je 0x1402bb648
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x30]
test al, al
je 0x1402bb648
mov rdx, r15
lea rcx, [rbp - 0x31]
call fcn.14026b4a0
nop
mov r8, rax
lea rdx, str.Service_stopped:_
lea rcx, [rbp - 0x51]
call fcn.1400599d0
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x1402bb5d7
inc rdx
mov rcx, qword [rbp - 0x31]
cmp rdx, 0x1000
jb 0x1402bb5d2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1402bb68e
mov rcx, r8
call fcn.1402f1e30
mov qword [rbp - 0x21], r13
mov qword [rbp - 0x19], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x31], 0
mov rax, qword [rbx]
lea r9, [rbp - 0x51]
lea r8, str.eax::services::platform::_anonymous_namespace::Win32Service::ensureStopped
mov edx, 3
mov rcx, rbx
call qword [rax + gethostname]
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x1402bb638
inc rdx
mov rcx, qword [rbp - 0x51]
cmp rdx, 0x1000
jb 0x1402bb633
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1402bb695
mov rcx, r8
call fcn.1402f1e30
mov qword [rbp - 0x41], r13
mov qword [rbp - 0x39], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x51], 0
movzx eax, r14b
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1402f2210
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3