Function at 0x14024f744
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 [0x14049e510]
xor rax, rsp
mov qword [rbp + 0x40], rax
xor r14d, r14d
mov rdi, rcx
cmp qword [rcx + 0x10], r14
jne 0x14024f77e
call fcn.1402b9bb8
mov r8d, Compress
mov qword [rsp + 0x30], r14
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.14024f3dc
mov esi, eax
test eax, eax
jns 0x14024f7d4
cmp qword [rdi + 0x18], 8
jb 0x14024f7a6
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, 0x13c
call fcn.140177750
jmp 0x14024f961
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.14004d8a4
mov r15d, 4
mov rcx, qword [rax + 8]
cmp dword [rcx], r15d
jbe 0x14024f8a8
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, [0x1403e1c68]
xor r8d, r8d
mov dword [rsp + 0x20], 0xa
call fcn.140001158
test esi, esi
jne 0x14024f8de
cmp qword [rdi + 0x18], 8
jb 0x14024f8b6
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, 0x14f
call fcn.1401ff8d0
mov esi, eax
jmp 0x14024f961
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], r15d
jbe 0x14024f95e
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 0x14024f909
mov rdi, qword [rdi]
lea rcx, [0x140344690]
mov rax, r14
test rdi, rdi
je 0x14024f929
mov rcx, rdi
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r14w
jne 0x14024f91f
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, [0x1403e1ab9]
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov rcx, r10
call fcn.140001158
mov esi, r14d
cmp qword [rsp + 0x30], r14
je 0x14024f973
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.1402dfdb0
lea r11, [rsp + 0x150]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret