Function at 0x14000ca40
Capabilities:
Modify service

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x80
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rsi, rcx
xorps xmm0, xmm0
movdqu xmmword [rax - 0x30], xmm0
xor edi, edi
mov qword [rax - 0x20], rdi
mov dword [rax + 0x10], edi
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.DLL_OpenSCManagerW]
lea rdx, [rsi + 0x68]
mov r8d, 0xf003f
mov rcx, rax
call qword [sym.imp.ADVAPI32.DLL_OpenServiceW]
mov r14, rax
lea r9, [rsp + 0xa8]
xor edx, edx
lea r8d, [rdi + 0x40]
mov rcx, rax
call qword [sym.imp.ADVAPI32.DLL_QueryServiceConfigW]
test eax, eax
jne 0x14000cc4d
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x14000cc4d
mov eax, dword [rsp + 0xa8]
lea ebp, [rax + 0x40]
mov ecx, eax
mov byte [rsp + 0xa0], dil
mov r9, qword [rsp + 0x70]
mov rdx, r9
mov rbx, qword [rsp + 0x68]
sub rdx, rbx
sar rdx, 2
cmp rax, rdx
jae 0x14000cafe
lea rax, [rbx + rax*4]
mov qword [rsp + 0x70], rax
jmp 0x14000cb4b
jbe 0x14000cb4b
mov rax, qword [rsp + 0x78]
sub rax, rbx
sar rax, 2
cmp rcx, rax
jbe 0x14000cb28
lea r8, [rsp + 0xa0]
mov rdx, rcx
lea rcx, [rsp + 0x68]
call fcn.14000d480
jmp 0x14000cb46
sub rcx, rdx
lea r8, [rcx*4]
lea rbx, [r8 + r9]
xor edx, edx
mov rcx, r9
call fcn.14003a280
mov qword [rsp + 0x70], rbx
mov rbx, qword [rsp + 0x68]
lea r9, [rsp + 0xa8]
mov r8d, ebp
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.DLL_QueryServiceConfigW]
test eax, eax
jne 0x14000cb74
lea rdx, str.error_QueryServiceConfig
xor ecx, ecx
call fcn.140005e60
test rbx, rbx
je 0x14000cc4d
mov r8d, dword [rbx + 4]
lea rdx, str.Current_startup_type_0x_x
xor ecx, ecx
call fcn.140005e60
movzx edx, byte [rsi + 0x299]
movzx ecx, byte [rsi + 0x298]
call fcn.140017d30
mov rsi, rax
test rax, rax
jne 0x14000cbba
lea rdx, str.pSecureChannelMELSPCON_is_NULL
xor ecx, ecx
call fcn.140005e60
jmp 0x14000cbf4
mov rcx, rsi
call fcn.140017fe0
test al, al
jne 0x14000cbf4
xor r8d, r8d
lea rdx, str.QueryLSPCONPresent__IsLSPCONPresent_failed_hr:0x_x
xor ecx, ecx
call fcn.140005e60
mov rcx, rsi
call fcn.140018140
test eax, eax
jns 0x14000cbf4
mov r8d, eax
lea rdx, str.QueryLSPCONPresent__IsNativeHDCP2Present_failed_hr:0x_x
xor ecx, ecx
call fcn.140005e60
cmp dword [rbx + 4], 2
je 0x14000cc52
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
lea rax, str.RPCSS
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov edx, 0xffffffff
mov r9d, edx
mov r8d, 2
mov rcx, r14
call qword [sym.imp.ADVAPI32.DLL_ChangeServiceConfigW]
test eax, eax
jne 0x14000cc52
lea rdx, str.Changing_startup_type_to_SERVICE_AUTO_START_Failed
xor ecx, ecx
call fcn.140005e60
mov edi, 0x80004005
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000cc8e
mov rdx, qword [rsp + 0x78]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cc89
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000cca8
call fcn.14001ba4c
mov eax, edi
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14003d4e4
int3