Function at 0x14004f5d0
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x1400f0158]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rbx, rcx
movzx eax, byte [rcx + 0x50]
nop
test al, al
jne 0x14004f82d
lea r8, [rbp + 0x80]
mov edx, 1
mov rcx, qword [rcx + 0x48]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14004f679
mov ecx, dword [rbp + 0x84]
xor edi, edi
movzx eax, byte [rbx + 0x50]
nop
test al, al
jne 0x14004f66e
nop dword [rax + rax]
cmp ecx, 1
je 0x14004f688
cmp edi, 0x50
jge 0x14004f7b6
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call fcn.14004eee0
mov ecx, eax
inc edi
movzx edx, byte [rbx + 0x50]
nop
test dl, dl
je 0x14004f640
cmp ecx, 1
jne 0x14004f7b6
jmp 0x14004f688
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x426
jne 0x14004f6b0
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140071b40
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140008170
nop
cmp edi, 0x41c
ja 0x14004f701
je 0x14004f6f8
mov eax, edi
sub eax, 5
je 0x14004f6ef
sub eax, 1
je 0x14004f6e6
cmp eax, 0x415
jne 0x14004f711
lea rdx, str.StopService:_the_service_cannot_be_stopped_because_other_running_services_are_dependent_on_it__
jmp 0x14004f759
lea rdx, str.StopService:_the_service_has_not_been_opened__
jmp 0x14004f759
lea rdx, str.StopService:_insufficient_user_rights_request_the_service_to_stop__
jmp 0x14004f759
lea rdx, str.StopService:_the_service_does_not_accept_stop_requests__
jmp 0x14004f759
mov eax, edi
mov esi, 0x41d
sub eax, esi
je 0x14004f752
cmp eax, 8
je 0x14004f749
lea rdx, str.StopService_failed_to_stop_the_service
lea rcx, [rsp + 0x50]
call fcn.14001d460
mov rcx, rax
lea rdx, [rbx + 0x20]
call fcn.14001dae0
mov rcx, rax
lea rdx, [0x1400bf784]
call fcn.14001d460
mov edx, edi
mov rcx, rax
call fcn.140042640
jmp 0x14004f76f
lea rdx, str.StopService:_the_service_is_already_stopped_or_is_in_a_pending_state__
jmp 0x14004f759
lea rdx, str.StopService:
lea rcx, [rsp + 0x50]
call fcn.14001d460
lea rdx, [rbx + 0x20]
mov rcx, rax
call fcn.14001dae0
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140010260
nop
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.14004f8a0
mov rbx, rax
call fcn.14004f890
mov r8, rax
mov r9, rbx
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140049110
lea rdx, [0x1400e7738]
lea rcx, [rsp + 0x20]
call fcn.1400787c0
nop
lea rcx, [rbx + 0x50]
call fcn.14004e340
mov esi, 0x41d
mov ecx, 0x4c7
test al, al
cmovne esi, ecx
lea rdx, [rbx + 0x20]
lea rcx, [rbp + 0x60]
call fcn.14004f8a0
mov rbx, rax
lea rdx, str.StopService:
lea rcx, [rbp + 0x40]
call fcn.140005210
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.140021ff0
mov rbx, rax
call fcn.14004f890
mov r8, rax
mov r9, rbx
mov edx, esi
lea rcx, [rsp + 0x20]
call fcn.140049110
lea rdx, [0x1400e7738]
lea rcx, [rsp + 0x20]
call fcn.1400787c0
nop
lea rdx, [rcx + 0x20]
lea rcx, [rbp + 0xa0]
call fcn.14004f8a0
mov rbx, rax
lea rdx, str.StopService:
lea rcx, [rbp + 0x40]
call fcn.140005210
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.140021ff0
mov rbx, rax
call fcn.14004f890
mov r8, rax
mov r9, rbx
mov edx, 0x4c7
lea rcx, [rsp + 0x20]
call fcn.140049110
lea rdx, [0x1400e7738]
lea rcx, [rsp + 0x20]
call fcn.1400787c0
int3