Function at 0x140006f90
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x330
mov rax, qword [0x14002e2c0]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov rbx, rdx
cmp ecx, 1
jle 0x1400072a6
mov rdx, qword [rdx + 8]
mov ecx, 0xfffd
movzx eax, word [rdx]
sub ax, 0x2d
test cx, ax
jne 0x1400072a6
lea rcx, str.install
add rdx, 2
call fcn.14000c28c
test eax, eax
jne 0x14000705d
lea r9, [0x1400280b8]
lea r8, [0x14002814c]
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.14000a540
cmp qword [rax + 0x18], 8
jb 0x14000700c
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.14000ce0c
cmp qword [rsp + 0x78], 8
jb 0x140007043
mov rcx, qword [rsp + 0x60]
call fcn.14000b800
call fcn.140006ee0
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.1400095b0
jmp 0x14000733b
mov rdx, qword [rbx + 8]
lea rcx, str.remove
add rdx, 2
call fcn.14000c28c
test eax, eax
jne 0x140007087
call fcn.140006ee0
mov rcx, rax
call fcn.140009740
jmp 0x14000733b
mov rdx, qword [rbx + 8]
lea rcx, str.disable
add rdx, 2
call fcn.14000c28c
test eax, eax
jne 0x1400070b6
call fcn.140006ee0
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.140009a60
jmp 0x14000733b
mov rdx, qword [rbx + 8]
lea rcx, str.enableAutoStart
add rdx, 2
call fcn.14000c28c
test eax, eax
jne 0x14000719f
call fcn.140006ee0
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 0x140007109
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed___d__n
mov edx, eax
call fcn.14000ce30
jmp 0x14000733b
mov r8d, 2
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140007145
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenService_failed___d__n
mov edx, eax
call fcn.14000ce30
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000733b
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 0x14000724e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ChangeServiceConfig_failed___d__n
mov edx, eax
call fcn.14000ce30
jmp 0x140007261
mov rdx, qword [rbx + 8]
lea rcx, str.enableDemandStart
add rdx, 2
call fcn.14000c28c
test eax, eax
jne 0x140007278
call fcn.140006ee0
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 0x1400070f0
mov r8d, 2
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x140007123
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 0x14000724e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ChangeServiceConfig_failed___d__n
mov edx, eax
call fcn.14000ce30
jmp 0x140007261
lea rdx, str.enabled
lea rcx, str.Service__s_successfully._n
call fcn.14000ce30
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000733b
mov rdx, qword [rbx + 8]
lea rcx, str.stop
add rdx, 2
call fcn.14000c28c
test eax, eax
jne 0x14000733b
call fcn.140006ee0
mov rcx, rax
call fcn.1400098f0
jmp 0x14000733b
lea rcx, str.Parameters:_n
call fcn.14000ce30
lea rcx, str.__install__to_install_the_service._n
call fcn.14000ce30
lea rcx, str.__remove___to_remove_the_service._n
call fcn.14000ce30
lea rcx, [rsp + 0x80]
call fcn.140007570
lea rax, [rsp + 0x80]
lea rcx, [rsp + 0x60]
mov qword [0x1400318d8], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x60], rax
lea rax, [0x140009000]
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 0x14000732e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Service_failed_to_run_w_err_0x_08lx_n
mov edx, eax
call fcn.14000ce30
lea rcx, [rsp + 0x80]
call fcn.1400077a0
xor eax, eax
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.14000b820
mov rbx, qword [rsp + 0x340]
add rsp, 0x330
pop rdi
ret