Function at 0x1402a6768
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rbp + 0x40], rax
xor r14d, r14d
mov rdi, rcx
cmp qword [rcx + 0x10], r14
jne 0x1402a67a2
call fcn.140298678
mov r8d, Compress
mov qword [rsp + 0x30], r14
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1402a63f4
mov esi, eax
test eax, eax
jns 0x1402a67f8
cmp qword [rdi + 0x18], 8
jb 0x1402a67ca
mov rdi, qword [rdi]
mov rcx, qword [rbp + 0x68]
lea rax, str.Could_not_get_handle_for_service__ws
mov qword [rsp + 0x28], rdi
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov r9d, esi
mov qword [rsp + 0x20], rax
mov edx, 0x128
call fcn.14016b7bc
jmp 0x1402a6985
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
lea edx, [rax + 1]
mov dword [rsp + 0x50], eax
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
mov esi, eax
call fcn.14004acb4
mov r15d, 4
mov rcx, qword [rax + 8]
cmp dword [rcx], r15d
jbe 0x1402a68cc
lea rax, str.Service_status
mov qword [rbp - 0x78], reloc.Cabinet.dll_CreateCompressor
mov qword [rbp - 0x80], rax
lea rax, [rsp + 0x38]
mov qword [rbp - 0x70], rax
lea rax, [rsp + 0x3c]
mov qword [rbp - 0x60], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x50], rax
lea rax, [rsp + 0x44]
mov qword [rbp - 0x40], rax
lea rax, [rsp + 0x48]
mov qword [rbp - 0x30], rax
lea rax, [rsp + 0x4c]
mov qword [rbp - 0x20], rax
lea rax, [rsp + 0x50]
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x18], r15
mov qword [rbp - 8], r15
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1403a403b]
xor r8d, r8d
mov dword [rsp + 0x20], 0xa
call fcn.140001158
test esi, esi
jne 0x1402a6902
cmp qword [rdi + 0x18], 8
jb 0x1402a68da
mov rdi, qword [rdi]
mov rcx, qword [rbp + 0x68]
lea r9, str.Could_not_stop_service__ws
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov qword [rsp + 0x20], rdi
mov edx, 0x13b
call fcn.1401ea930
mov esi, eax
jmp 0x1402a6985
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], r15d
jbe 0x1402a6982
cmp qword [rdi + 0x18], 8
lea rax, str.Stop_command_sent_to_SCM_successfully
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], VarR8FromUI1
jb 0x1402a692d
mov rdi, qword [rdi]
lea rcx, [0x14030cae0]
mov rax, r14
test rdi, rdi
je 0x1402a694d
mov rcx, rdi
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r14w
jne 0x1402a6943
lea eax, [rax*2 + 2]
mov qword [rbp + 0x30], rcx
mov dword [rbp + 0x38], eax
mov dword [rbp + 0x3c], r14d
lea rax, [rbp]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1403a3f04]
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov rcx, r10
call fcn.140001158
mov esi, r14d
cmp qword [rsp + 0x30], r14
je 0x1402a6997
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov eax, esi
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1402ae860
lea r11, [rsp + 0x150]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret