Function at 0x14001a790
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x14006b020]
xor rax, rsp
mov qword [rbp + 0xd8], rax
mov r14, rdx
lea r12, vtable.CTracePie.0
mov qword [rbp - 0x10], r12
xor ebx, ebx
mov qword [rbp + 0x98], rbx
mov word [rbp + 0xa0], 0x100
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbp + 0x98], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x9c], eax
lea r9d, [rbx + 0x3a]
lea r8, str.COsService::IOs_StartService
lea edx, [rbx + 0x78]
lea rcx, [rbp - 8]
call fcn.1400133b0
lea r9d, [rbx + 0x1e]
lea r8, str.PIE_OS_Service
lea edx, [rbx + 0x28]
lea rcx, [rbp + 0x70]
call fcn.1400133b0
cmp byte [rbp + 0xa1], 1
jne 0x14001a844
lea r8, [0x14005a24c]
lea edx, [rbx + 5]
lea rcx, [rbp - 0x10]
call fcn.1400134a0
lea rdi, vtable.CTracePieCommonOsService.0
mov qword [rbp - 0x10], rdi
lea r15, str.TRUE
lea rsi, str.FALSE
test r14, r14
je 0x14001a9dc
lea r8, [rbp + 0xb0]
mov rdx, r14
call fcn.14001b840
test eax, eax
je 0x14001a9bc
mov qword [rsp + 0x30], r12
mov qword [rbp - 0x28], rbx
mov word [rbp - 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbp - 0x28], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp - 0x24], eax
mov r9d, 0x38
lea r8, str.COsService::prvStartService
lea edx, [r9 + 0x40]
lea rcx, [rsp + 0x38]
call fcn.1400133b0
mov r9d, 0x1e
lea r8, str.PIE_OS_Service
lea edx, [r9 + 0xa]
lea rcx, [rbp - 0x50]
call fcn.1400133b0
cmp byte [rbp - 0x1f], 1
jne 0x14001a8ef
lea r8, [0x14005a24c]
mov edx, 5
lea rcx, [rsp + 0x30]
call fcn.1400134a0
mov qword [rsp + 0x30], rdi
mov edi, 1
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14001a92c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.StartService_failed___d_
lea edx, [rdi + 1]
lea rcx, [rsp + 0x30]
call fcn.1400134a0
mov edi, ebx
jmp 0x14001a942
lea r8, str.Service_start_pending...
mov edx, 2
lea rcx, [rsp + 0x30]
call fcn.1400134a0
mov rax, rsi
test edi, edi
cmovne rax, r15
mov qword [rsp + 0x20], rax
lea r9, str.bStartSuccess
lea r8, str._s___s
mov edx, 4
lea rcx, [rsp + 0x30]
call fcn.1400134a0
nop
mov qword [rsp + 0x30], r12
cmp byte [rbp - 0x1f], 1
jne 0x14001a996
cmp byte [rbp - 0x20], 0
jne 0x14001a996
lea r8, [0x14005a254]
mov edx, 5
lea rcx, [rsp + 0x30]
call fcn.1400134a0
nop
lea rax, str.prvStartService_failed
lea r8, str.prvStartService_succeeded__requested_PIE_Service_to_start__PIE_Service_is_not_fully_active_until_its_state_is_changed_to_Running
test edi, edi
cmove r8, rax
mov edx, 3
lea rcx, [rbp - 0x10]
call fcn.1400134a0
mov ebx, edi
jmp 0x14001a9f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.ServiceCanBeStarted_failed____d
mov edx, 3
lea rcx, [rbp - 0x10]
call fcn.1400134a0
jmp 0x14001a9f1
lea r8, str.svcHandle_is_null
mov edx, 3
lea rcx, [rbp - 0x10]
call fcn.1400134a0
test ebx, ebx
cmovne rsi, r15
mov qword [rsp + 0x20], rsi
lea r9, str.retCode
lea r8, str.____returned__s___s
mov edx, 4
lea rcx, [rbp - 0x10]
call fcn.1400134a0
nop
mov eax, ebx
mov rcx, qword [rbp + 0xd8]
xor rcx, rsp
call fcn.1400223c0
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret