Function at 0x14000ca60
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 0x14000cc6b
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000cc6b
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 0x14000cb16
lea rax, [rbx + rax*4]
mov qword [rsp + 0x68], rax
jmp 0x14000cb66
jbe 0x14000cb66
mov rax, qword [rsp + 0x70]
sub rax, rbx
sar rax, 2
cmp rcx, rax
jbe 0x14000cb43
lfence
lea r8, [rsp + 0xa0]
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.14000d4a0
jmp 0x14000cb61
sub rcx, rdx
lea r8, [rcx*4]
lea rbx, [r8 + r9]
xor edx, edx
mov rcx, r9
call fcn.140039360
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 0x14000cb8f
lea rdx, str.error_QueryServiceConfig
xor ecx, ecx
call fcn.1400063c0
test rbx, rbx
je 0x14000cc6b
mov r8d, dword [rbx + 4]
lea rdx, str.Current_startup_type_0x_x
xor ecx, ecx
call fcn.1400063c0
movzx edx, byte [rsi + 0x299]
movzx ecx, byte [rsi + 0x298]
call fcn.140016690
mov rsi, rax
test rax, rax
jne 0x14000cbd5
lea rdx, str.pSecureChannelMELSPCON_is_NULL
xor ecx, ecx
call fcn.1400063c0
jmp 0x14000cc12
mov rcx, rsi
call fcn.140016940
test al, al
jne 0x14000cc12
xor r8d, r8d
lea rdx, str.QueryLSPCONPresent__IsLSPCONPresent_failed_hr:0x_x
xor ecx, ecx
call fcn.1400063c0
mov rcx, rsi
call fcn.140016aa0
test eax, eax
jns 0x14000cc12
lfence
mov r8d, eax
lea rdx, str.QueryLSPCONPresent__IsNativeHDCP2Present_failed_hr:0x_x
xor ecx, ecx
call fcn.1400063c0
cmp dword [rbx + 4], 2
je 0x14000cc70
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
lea rax, [0x1400517d4]
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 0x14000cc70
lea rdx, str.Changing_startup_type_to_SERVICE_AUTO_START_Failed
xor ecx, ecx
call fcn.1400063c0
mov edi, 0x80004005
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000ccac
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cca7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ccc6
call fcn.14001a17c
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.14003e134
int3