Function at 0x14000b1e0
Capabilities:
Modify service

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x90
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rax, qword [0x140068080]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbp, rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
xor edi, edi
mov qword [r11 - 0x28], rdi
mov dword [rsp + 0x68], edi
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
lea rdx, [rbp + 0x68]
mov r8d, 0xf003f
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov r14, rax
lea r9, [rsp + 0x68]
xor edx, edx
lea r8d, [rdi + 0x40]
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceConfigW]
test eax, eax
jne 0x14000b3f9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000b3f9
mov eax, dword [rsp + 0x68]
lea ebx, [rax + 0x40]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.14000e530
mov rsi, qword [rsp + 0x70]
lea r9, [rsp + 0x68]
mov r8d, ebx
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceConfigW]
test eax, eax
jne 0x14000b2b5
lea rdx, str.error_QueryServiceConfig
xor ecx, ecx
call fcn.140003fe0
test rsi, rsi
je 0x14000b3f9
mov r8d, dword [rsi + 4]
lea rdx, str.Current_startup_type_0x_x
xor ecx, ecx
call fcn.140003fe0
xor bl, bl
movzx edx, byte [rbp + 0x299]
movzx ecx, byte [rbp + 0x298]
call fcn.140013a60
mov rbp, rax
test rax, rax
jne 0x14000b2fd
lea rdx, str.pSecureChannelMELSPCON_is_NULL
xor ecx, ecx
call fcn.140003fe0
jmp 0x14000b33f
mov rcx, rbp
call fcn.140012b00
test al, al
jne 0x14000b339
xor r8d, r8d
lea rdx, str.QueryLSPCONPresent__IsLSPCONPresent_failed_hr:0x_x
xor ecx, ecx
call fcn.140003fe0
mov rcx, rbp
call fcn.140012d70
test eax, eax
jns 0x14000b33d
mov r8d, eax
lea rdx, str.QueryLSPCONPresent__IsNativeHDCP2Present_failed_hr:0x_x
xor ecx, ecx
call fcn.140003fe0
jmp 0x14000b33f
cmp al, 1
jne 0x14000b33f
mov bl, 1
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14000b398
test bl, bl
jne 0x14000b398
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
or r9d, 0xffffffff
mov r8d, 3
or edx, r9d
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfigW]
test eax, eax
jne 0x14000b3fe
lea rdx, str.Changing_startup_type_to_SERVICE_DEMAND_START_Failed
jmp 0x14000b3f2
add eax, 0xfffffffe
test eax, 0xfffffffd
je 0x14000b3fe
cmp bl, 1
jne 0x14000b3fe
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
or r9d, 0xffffffff
mov r8d, 2
or edx, r9d
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfigW]
test eax, eax
jne 0x14000b3fe
lea rdx, str.Changing_startup_type_to_SERVICE_AUTO_START_Failed
xor ecx, ecx
call fcn.140003fe0
mov edi, 0x80004005
mov rdx, qword [rsp + 0x70]
test rdx, rdx
je 0x14000b421
mov r8, qword [rsp + 0x80]
sub r8, rdx
sar r8, 2
lea rcx, [rsp + 0x70]
call fcn.14000e470
mov eax, edi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140013c00
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret