Function at 0x1400c86e0
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x14057b900]
xor rax, rsp
mov qword [rsp + 0x78], rax
movzx r14d, dl
mov rdi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
lea r15, vtable.mb::common::system::ScopedAny_struct_SC_HANDLE______ptr64__int____cdecl___struct_SC_HANDLE______ptr64___int___cdecl_CloseServiceHandle_struct_SC_HANDLE______ptr64___0__0__0_.0
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x1400c879e
mov rcx, qword [rdi]
mov rdi, qword [rcx]
test rdi, rdi
je 0x1400c8797
mov rax, qword [rdi]
mov rbx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea rax, str.Failed_to_open_SC_Manager._Error:__u
mov qword [rsp + 0x30], rax
lea rax, [0x14050ab28]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
mov r9d, 0x5e2
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonElamUtils.cpp
lea rdx, str.mb::common::elam::ForceRemoveProcessProtection::_lambda_1_::operator___
mov rcx, rdi
call rbx
xor bl, bl
jmp 0x1400c88af
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov rbx, qword [rdi + 8]
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400c87b7
mov rdx, qword [rbx]
mov r8d, 2
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x1400c8811
mov rcx, qword [rdi]
mov rdi, qword [rcx]
test rdi, rdi
je 0x1400c889a
mov rcx, qword [rdi]
mov r14, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 7
jbe 0x1400c87fe
mov rbx, qword [rbx]
mov dword [rsp + 0x40], eax
lea rax, str.Failed_to_open_service__ls._Error:__u
mov r9d, 0x5e9
jmp 0x1400c8868
mov dword [rsp + 0x50], 0
lea r8, [rsp + 0x50]
mov edx, 0xc
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x1400c889e
test r14b, r14b
je 0x1400c889a
mov rax, qword [rdi]
mov rdi, qword [rax]
test rdi, rdi
je 0x1400c889a
mov rax, qword [rdi]
mov r14, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 7
jbe 0x1400c8857
mov rbx, qword [rbx]
mov dword [rsp + 0x40], eax
lea rax, str.Failed_to_change_service_config_for__ls._Error:__u
mov r9d, 0x5f0
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea rax, [0x14050ab28]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonElamUtils.cpp
lea rdx, str.mb::common::elam::ForceRemoveProcessProtection::_lambda_1_::operator___
mov rcx, rdi
call r14
xor bl, bl
jmp 0x1400c88a0
mov bl, 1
test rsi, rsi
je 0x1400c88af
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
test rbp, rbp
je 0x1400c88bd
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, bl
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14014f4f0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret