Function at 0x140006fa0
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x3c0
mov rax, qword [0x1400322d0]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
mov rbx, rdx
cmp ecx, 1
jle 0x1400072b6
mov rdx, qword [rdx + 8]
mov ecx, 0xfffd
movzx eax, word [rdx]
sub ax, 0x2d
test cx, ax
jne 0x1400072b6
lea rcx, str.install
add rdx, 2
call fcn.14000de2c
test eax, eax
jne 0x14000706d
lea r9, [0x14002a300]
lea r8, [0x14002a38c]
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.14000bd80
cmp qword [rax + 0x18], 8
jb 0x14000701c
mov rax, qword [rax]
lea r9, str.SynTPEnh_Caller_Service
lea r8, str._s_s
lea rcx, [rsp + 0x80]
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.14000e9cc
cmp qword [rsp + 0x78], 8
jb 0x140007053
mov rcx, qword [rsp + 0x60]
call fcn.14000d39c
call fcn.14000b220
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.14000ac40
jmp 0x14000734b
mov rdx, qword [rbx + 8]
lea rcx, str.remove
add rdx, 2
call fcn.14000de2c
test eax, eax
jne 0x140007097
call fcn.14000b220
mov rcx, rax
call fcn.14000add0
jmp 0x14000734b
mov rdx, qword [rbx + 8]
lea rcx, str.disable
add rdx, 2
call fcn.14000de2c
test eax, eax
jne 0x1400070c6
call fcn.14000b220
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.14000b0f0
jmp 0x14000734b
mov rdx, qword [rbx + 8]
lea rcx, str.enableAutoStart
add rdx, 2
call fcn.14000de2c
test eax, eax
jne 0x1400071af
call fcn.14000b220
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140007119
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed___d__n
mov edx, eax
call fcn.14000e9f0
jmp 0x14000734b
mov r8d, 2
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140007155
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenService_failed___d__n
mov edx, eax
call fcn.14000e9f0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000734b
xor eax, eax
or r9d, 0xffffffff
mov rcx, rdi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea r8d, [rax + 2]
or edx, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x14000725e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ChangeServiceConfig_failed___d__n
mov edx, eax
call fcn.14000e9f0
jmp 0x140007271
mov rdx, qword [rbx + 8]
lea rcx, str.enableDemandStart
add rdx, 2
call fcn.14000de2c
test eax, eax
jne 0x140007288
call fcn.14000b220
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x140007100
mov r8d, 2
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x140007133
xor eax, eax
or r9d, 0xffffffff
mov rcx, rdi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea r8d, [rax + 3]
or edx, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x14000725e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ChangeServiceConfig_failed___d__n
mov edx, eax
call fcn.14000e9f0
jmp 0x140007271
lea rdx, str.enabled
lea rcx, str.Service__s_successfully._n
call fcn.14000e9f0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000734b
mov rdx, qword [rbx + 8]
lea rcx, str.stop
add rdx, 2
call fcn.14000de2c
test eax, eax
jne 0x14000734b
call fcn.14000b220
mov rcx, rax
call fcn.14000af80
jmp 0x14000734b
lea rcx, str.Parameters:_n
call fcn.14000e9f0
lea rcx, str.__install__to_install_the_service._n
call fcn.14000e9f0
lea rcx, str.__remove___to_remove_the_service._n
call fcn.14000e9f0
lea rcx, [rsp + 0x80]
call fcn.140007a80
lea rax, [rsp + 0x80]
lea rcx, [rsp + 0x60]
mov qword [0x140035e18], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x60], rax
lea rax, [0x14000a660]
mov qword [rsp + 0x68], rax
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14000733e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Service_failed_to_run_w_err_0x_08lx_n
mov edx, eax
call fcn.14000e9f0
lea rcx, [rsp + 0x80]
call fcn.140007e90
xor eax, eax
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.14000d3c0
mov rbx, qword [rsp + 0x3d0]
add rsp, 0x3c0
pop rdi
ret