Function at 0x1400e54d0
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140488480]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0x80000000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
setne r12b
test rax, rax
jne 0x1400e5589
call fcn.1400f74d0
mov r8, qword [rax]
xor edx, edx
mov ecx, dword [str.____.034_]
call r8
test eax, eax
je 0x1400e5575
call fcn.1400f74d0
mov rbx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.Failed_to_open_SCM_handle._Err___d_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x5e
lea r9, str.utlLoadDriver
lea r8, str.C:code_app_playerhdSourceutlUtlWinnt.cpp
mov edx, dword [str.____.034_]
xor ecx, ecx
call rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400fe630
mov ebp, eax
jmp 0x1400e572f
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.1400f5110
cmp qword [rax + 0x18], 8
jb 0x1400e55a0
mov rax, qword [rax]
mov r8d, 0xa0000000
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1400e55ff
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e55fa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400e55fa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010464c
xor ebp, ebp
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], bp
test rbx, rbx
setne r15b
test rbx, rbx
jne 0x1400e5693
call fcn.1400f74d0
mov r8, qword [rax]
xor edx, edx
mov ecx, dword [str.____.034_]
call r8
test eax, eax
je 0x1400e5685
call fcn.1400f74d0
mov rbp, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rsi + 0x18], 0x10
jb 0x1400e5650
mov rsi, qword [rsi]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rsi
lea rax, str.Failed_to_open_service__s._Err___d_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x66
lea r9, str.utlLoadDriver
lea r8, str.C:code_app_playerhdSourceutlUtlWinnt.cpp
mov edx, dword [str.____.034_]
xor ecx, ecx
call rbp
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
jmp 0x1400e5716
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400e5720
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
cmp eax, 0x420
je 0x1400e5720
call fcn.1400f74d0
mov r8, qword [rax]
xor edx, edx
mov ecx, dword [str.____.034_]
call r8
test eax, eax
je 0x1400e5716
call fcn.1400f74d0
mov r10, qword [rax + 8]
cmp qword [rsi + 0x18], 0x10
jb 0x1400e56df
mov rsi, qword [rsi]
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], rsi
lea rax, str.Failed_to_start_service__s._Err___d_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x71
lea r9, str.utlLoadDriver
lea r8, str.C:code_app_playerhdSourceutlUtlWinnt.cpp
mov edx, dword [str.____.034_]
xor ecx, ecx
call r10
mov ecx, r14d
call fcn.1400fe630
mov ebp, eax
test r15b, r15b
je 0x1400e572f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
test r12b, r12b
je 0x1400e573e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov eax, ebp
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140104760
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret