Function at 0x14000cdf0
Capabilities:
Modify service

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rsi, rcx
xorps xmm0, xmm0
movdqu xmmword [rax - 0x38], xmm0
xor edi, edi
mov qword [rax - 0x28], 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 0x14000cffb
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000cffb
mov eax, dword [rsp + 0xa8]
lea ebp, [rax + 0x40]
mov ecx, eax
mov byte [rsp + 0xa0], dil
mov r9, qword [rsp + 0x68]
mov rdx, r9
mov rbx, qword [rsp + 0x60]
sub rdx, rbx
sar rdx, 2
cmp rax, rdx
jae 0x14000cea6
lea rax, [rbx + rax*4]
mov qword [rsp + 0x68], rax
jmp 0x14000cef6
jbe 0x14000cef6
mov rax, qword [rsp + 0x70]
sub rax, rbx
sar rax, 2
cmp rcx, rax
jbe 0x14000ced3
lfence
lea r8, [rsp + 0xa0]
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.14000d830
jmp 0x14000cef1
sub rcx, rdx
lea r8, [rcx*4]
lea rbx, [r8 + r9]
xor edx, edx
mov rcx, r9
call fcn.14003adb0
mov qword [rsp + 0x68], rbx
mov rbx, qword [rsp + 0x60]
lea r9, [rsp + 0xa8]
mov r8d, ebp
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.advapi32.dll_QueryServiceConfigW]
test eax, eax
jne 0x14000cf1f
lea rdx, str.error_QueryServiceConfig
xor ecx, ecx
call fcn.140005ea0
test rbx, rbx
je 0x14000cffb
mov r8d, dword [rbx + 4]
lea rdx, str.Current_startup_type_0x_x
xor ecx, ecx
call fcn.140005ea0
movzx edx, byte [rsi + 0x299]
movzx ecx, byte [rsi + 0x298]
call fcn.1400180d0
mov rsi, rax
test rax, rax
jne 0x14000cf65
lea rdx, str.pSecureChannelMELSPCON_is_NULL
xor ecx, ecx
call fcn.140005ea0
jmp 0x14000cfa2
mov rcx, rsi
call fcn.140018380
test al, al
jne 0x14000cfa2
xor r8d, r8d
lea rdx, str.QueryLSPCONPresent__IsLSPCONPresent_failed_hr:0x_x
xor ecx, ecx
call fcn.140005ea0
mov rcx, rsi
call fcn.1400184e0
test eax, eax
jns 0x14000cfa2
lfence
mov r8d, eax
lea rdx, str.QueryLSPCONPresent__IsNativeHDCP2Present_failed_hr:0x_x
xor ecx, ecx
call fcn.140005ea0
cmp dword [rbx + 4], 2
je 0x14000d000
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 0x14000d000
lea rdx, str.Changing_startup_type_to_SERVICE_AUTO_START_Failed
xor ecx, ecx
call fcn.140005ea0
mov edi, 0x80004005
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000d03c
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d037
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d056
call fcn.14001bbcc
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.14003fb84
int3