Function at 0x1400131b0
Capabilities:
Modify service

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x400
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14004e2d0]
xor rax, rsp
mov qword [rsp + 0x3f0], rax
mov rbx, rdx
cmp ecx, 1
jle 0x1400135ab
mov rdx, qword [rdx + 8]
movzx eax, word [rdx]
sub ax, 0x2d
mov ecx, 0xfffd
test cx, ax
jne 0x1400135ab
add rdx, 2
lea rcx, str.install
call fcn.140021588
test eax, eax
jne 0x14001328f
lea r9, [0x14003f71c]
lea r8, [0x140040854]
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.14001ee60
cmp qword [rax + 0x18], 8
jb 0x14001323b
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
lea r9, str.SynTPEnh_Caller_Service
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call fcn.1400223d4
cmp qword [rsp + 0x80], 8
jb 0x140013275
mov rcx, qword [rsp + 0x68]
call fcn.140020a7c
call fcn.14001dbd0
mov rcx, rax
lea rdx, [rsp + 0xa0]
call fcn.14001cbe0
jmp 0x140013643
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, str.remove
call fcn.140021588
test eax, eax
jne 0x1400132b9
call fcn.14001dbd0
mov rcx, rax
call fcn.14001cd70
jmp 0x140013643
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, str.disable
call fcn.140021588
test eax, eax
jne 0x1400132e8
call fcn.14001dbd0
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.14001d090
jmp 0x140013643
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, str.enableAutoStart
call fcn.140021588
test eax, eax
jne 0x1400133d1
call fcn.14001dbd0
mov rdi, rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14001333b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed___d__n
call fcn.14002250c
jmp 0x140013643
mov r8d, 2
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x140013377
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenService_failed___d__n
call fcn.14002250c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140013643
xor edi, edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
or r9d, 0xffffffff
lea r8d, [rdi + 2]
or edx, r9d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x140013480
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ChangeServiceConfig_failed___d__n
call fcn.14002250c
jmp 0x140013493
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, str.enableDemandStart
call fcn.140021588
test eax, eax
jne 0x1400134aa
call fcn.14001dbd0
mov rdi, rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x140013322
mov r8d, 2
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140013355
xor edi, edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
or r9d, 0xffffffff
lea r8d, [rdi + 3]
or edx, r9d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x140013480
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ChangeServiceConfig_failed___d__n
call fcn.14002250c
jmp 0x140013493
lea rdx, str.enabled
lea rcx, str.Service__s_successfully._n
call fcn.14002250c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140013643
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, str.stop
call fcn.140021588
test eax, eax
jne 0x1400134d4
call fcn.14001dbd0
mov rcx, rax
call fcn.14001cf20
jmp 0x140013643
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, [0x14004141c]
call fcn.140021588
test eax, eax
je 0x140013538
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, [0x140041420]
call fcn.140021588
test eax, eax
je 0x140013538
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, [0x140041424]
call fcn.140021588
test eax, eax
je 0x140013538
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, [0x14004142c]
call fcn.140021588
test eax, eax
jne 0x140013643
mov edx, 1
lea rcx, [rsp + 0x68]
call fcn.14001f8a0
nop
xor edi, edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0x20006
xor r9d, r9d
lea r8, str.SoftwareSynapticsSynTPEnh
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x68]
call fcn.14001fb10
test eax, eax
je 0x14001359c
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8, qword [rbx + 8]
lea rdx, str.Command
lea rcx, [rsp + 0x70]
call fcn.140020560
lea rcx, [rsp + 0x70]
call fcn.14001ff20
nop
lea rcx, [rsp + 0x68]
call fcn.14001f9c0
jmp 0x140013643
lea rcx, str.Parameters:_n
call fcn.14002250c
lea rcx, str.__install__to_install_the_service._n
call fcn.14002250c
lea rcx, str.__remove___to_remove_the_service._n
call fcn.14002250c
lea rcx, [rsp + 0xa0]
call fcn.140014170
lea rax, [rsp + 0xa0]
mov qword [0x140052038], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x68], rax
lea rax, [0x14001c530]
mov qword [rsp + 0x70], rax
xor edi, edi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], rdi
lea rcx, [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140013636
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Service_failed_to_run_w_err_0x_08lx_n
call fcn.14002250c
lea rcx, [rsp + 0xa0]
call fcn.1400147e0
xor eax, eax
mov rcx, qword [rsp + 0x3f0]
xor rcx, rsp
call fcn.140020aa0
lea r11, [rsp + 0x400]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret