Function at 0x14028dfd4
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 [0x1405420e0]
xor rax, rsp
mov qword [rbp + 0x40], rax
xor r14d, r14d
mov rdi, rcx
cmp qword [rcx + 0x10], r14
jne 0x14028e00e
call fcn.140329e68
mov r8d, Compress
mov qword [rsp + 0x30], r14
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.14028dc1c
mov esi, eax
test eax, eax
jns 0x14028e064
cmp qword [rdi + 0x18], 8
jb 0x14028e036
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.14018588c
jmp 0x14028e1f7
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]
nop dword [rax + rax]
mov esi, eax
call fcn.1400550c0
mov r15d, 4
mov rcx, qword [rax + 8]
cmp dword [rcx], r15d
jbe 0x14028e13e
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, [0x140486837]
xor r8d, r8d
mov dword [rsp + 0x20], 0xa
call fcn.140001208
test esi, esi
jne 0x14028e174
cmp qword [rdi + 0x18], 8
jb 0x14028e14c
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.1402297e4
mov esi, eax
jmp 0x14028e1f7
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], r15d
jbe 0x14028e1f4
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 0x14028e19f
mov rdi, qword [rdi]
lea rcx, [0x1403cb630]
mov rax, r14
test rdi, rdi
je 0x14028e1bf
mov rcx, rdi
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r14w
jne 0x14028e1b5
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, [0x140486688]
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov rcx, r10
call fcn.140001208
mov esi, r14d
cmp qword [rsp + 0x30], r14
je 0x14028e20f
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
mov eax, esi
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140356560
lea r11, [rsp + 0x150]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret