Function at 0x140271778
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 [0x1403f04b0]
xor rax, rsp
mov qword [rbp + 0x40], rax
xor r14d, r14d
mov rdi, rcx
mov rdx, rcx
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x30]
lea r8d, [r14 + 0x20]
call fcn.1402714a0
mov esi, eax
test eax, eax
jns 0x1402717fb
cmp qword [rdi + 0x18], 8
jb 0x1402717cd
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, 0x3b
call fcn.14006982c
jmp 0x140271988
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.140048a14
mov r15d, 4
mov rcx, qword [rax + 8]
cmp dword [rcx], r15d
jbe 0x1402718cf
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, [0x140354219]
xor r8d, r8d
mov dword [rsp + 0x20], 0xa
call fcn.140001078
test esi, esi
jne 0x140271905
cmp qword [rdi + 0x18], 8
jb 0x1402718dd
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, 0x4e
call fcn.1401d35cc
mov esi, eax
jmp 0x140271988
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], r15d
jbe 0x140271985
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 0x140271930
mov rdi, qword [rdi]
lea rcx, [0x1402cb810]
mov rax, r14
test rdi, rdi
je 0x140271950
mov rcx, rdi
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r14w
jne 0x140271946
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, [0x14035418e]
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov rcx, r10
call fcn.140001078
mov esi, r14d
cmp qword [rsp + 0x30], r14
je 0x14027199a
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.14027a710
lea r11, [rsp + 0x150]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret