Function at 0x14001abd0
Capabilities:
Create service
Delete service
Modify service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x14006b020]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r14, rdx
lea r15, vtable.CTracePie.0
mov qword [rbp - 0x70], r15
xor ebx, ebx
mov qword [rbp + 0x38], rbx
mov word [rbp + 0x40], 0x100
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x3c], eax
lea r9d, [rbx + 0x3e]
lea r8, str.COsService::IOs_InstallService
lea edx, [rbx + 0x78]
lea rcx, [rbp - 0x68]
call fcn.1400133b0
lea r9d, [rbx + 0x1e]
lea r8, str.PIE_OS_Service
lea edx, [rbx + 0x28]
lea rcx, [rbp + 0x10]
call fcn.1400133b0
cmp byte [rbp + 0x41], 1
jne 0x14001ac71
lea r8, [0x14005a24c]
lea edx, [rbx + 5]
lea rcx, [rbp - 0x70]
call fcn.1400134a0
lea rax, vtable.CTracePieCommonOsService.0
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14006fad0], eax
jle 0x14001acd5
lea rcx, [0x14006fad0]
call fcn.140022568
cmp dword [0x14006fad0], 0xffffffff
jne 0x14001acd5
call fcn.14001d600
lea rcx, [0x140045570]
call fcn.1400228ec
nop
lea rcx, [0x14006fad0]
call fcn.140022508
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x14001ad06
lea r8, str.Cant_open_SC_Manager__
lea edx, [rax + 4]
lea rcx, [rbp - 0x70]
call fcn.1400134a0
nop
jmp 0x14001ae30
mov r8d, 0x10000
lea rdx, str.PIEService
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x14001ad5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbp - 0x70]
cmp eax, 0x424
jne 0x14001ad49
lea r8, str.Old_PIE_Service_doesnt_exist__no_need_to_delete_it
lea edx, [rdi + 4]
call fcn.1400134a0
jmp 0x14001add4
mov r9d, eax
lea r8, str.Failed_to_open_PIE_Service___Error__d
mov edx, 2
call fcn.1400134a0
jmp 0x14001add4
lea r8, str.PIE_old_Service_exists__lets_delete_it_before_installing_the_new_one
mov edx, 4
lea rcx, [rbp - 0x70]
call fcn.1400134a0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x14001ada1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.DeleteService_failed___d_
mov edx, 2
lea rcx, [rbp - 0x70]
call fcn.1400134a0
jmp 0x14001adb6
lea r8, str.Service_deleted_successfully
mov edx, 4
lea rcx, [rbp - 0x70]
call fcn.1400134a0
lea r8, str.Closing_old_service_handle
mov edx, 4
lea rcx, [rbp - 0x70]
call fcn.1400134a0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rax, str.This_service_is_part_of_the_Intel
mov qword [rbp - 0x80], rax
mov eax, dword [0x14006faa8]
mov qword [rsp + 0x30], rax
lea rax, [0x14006f8a0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x2e
lea r9, [0x14005e398]
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x70]
call fcn.14001c110
test eax, eax
jne 0x14001ae5d
xor r9d, r9d
lea r8, str.Failed_to_get_service_path__error_code:__d
lea edx, [rax + 2]
lea rcx, [rbp - 0x70]
call fcn.1400134a0
nop
cmp byte [rbp + 0x41], 1
mov qword [rbp - 0x70], r15
jne 0x14001ae56
cmp byte [rbp + 0x40], 0
jne 0x14001ae56
lea r8, [0x14005a254]
mov edx, 5
lea rcx, [rbp - 0x70]
call fcn.1400134a0
nop
xor eax, eax
jmp 0x14001af97
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov rdi, qword [rsp + 0x70]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
lea r8, [0x14005e428]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov r14, rax
mov r9, rdi
lea r8, str.PIE_new_Service_full_path_is:__ws
mov edx, 4
lea rcx, [rbp - 0x70]
call fcn.1400134a0
test r14, r14
je 0x14001af20
lea r8, str.PIE_Service_was_created
mov edx, 4
lea rcx, [rbp - 0x70]
call fcn.1400134a0
lea r8, [rbp - 0x80]
mov edx, 1
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov r9d, eax
lea r8, str.ChangeServiceConfig2_returned__d
mov edx, 4
lea rcx, [rbp - 0x70]
call fcn.1400134a0
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, 1
jmp 0x14001af58
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbp - 0x70]
cmp eax, 0x431
jne 0x14001af44
lea r8, str.PIE_Service_already_installed
mov edx, 4
call fcn.1400134a0
jmp 0x14001af58
mov r9d, eax
lea r8, str.PIE_Service_installation_failed._Error__d
mov edx, 2
call fcn.1400134a0
test rdi, rdi
je 0x14001af65
mov rcx, rdi
call fcn.140022904
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov qword [rbp - 0x70], r15
cmp byte [rbp + 0x41], 1
jne 0x14001af95
cmp byte [rbp + 0x40], 0
jne 0x14001af95
lea r8, [0x14005a254]
mov edx, 5
lea rcx, [rbp - 0x70]
call fcn.1400134a0
nop
mov eax, ebx
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400223c0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret