Function at 0x140006ee0
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 0x1400071f6
mov rdx, qword [rdx + 8]
mov ecx, 0xfffd
movzx eax, word [rdx]
sub ax, 0x2d
test cx, ax
jne 0x1400071f6
lea rcx, str.install
add rdx, 2
call fcn.14000c29c
test eax, eax
jne 0x140006fad
lea r9, [0x1400280b8]
lea r8, [0x14002814c]
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.14000a550
cmp qword [rax + 0x18], 8
jb 0x140006f5c
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.14000ce1c
cmp qword [rsp + 0x78], 8
jb 0x140006f93
mov rcx, qword [rsp + 0x60]
call fcn.14000b810
call fcn.140009b10
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.140009530
jmp 0x14000728b
mov rdx, qword [rbx + 8]
lea rcx, str.remove
add rdx, 2
call fcn.14000c29c
test eax, eax
jne 0x140006fd7
call fcn.140009b10
mov rcx, rax
call fcn.1400096c0
jmp 0x14000728b
mov rdx, qword [rbx + 8]
lea rcx, str.disable
add rdx, 2
call fcn.14000c29c
test eax, eax
jne 0x140007006
call fcn.140009b10
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.1400099e0
jmp 0x14000728b
mov rdx, qword [rbx + 8]
lea rcx, str.enableAutoStart
add rdx, 2
call fcn.14000c29c
test eax, eax
jne 0x1400070ef
call fcn.140009b10
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 0x140007059
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed___d__n
mov edx, eax
call fcn.14000ce40
jmp 0x14000728b
mov r8d, 2
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140007095
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenService_failed___d__n
mov edx, eax
call fcn.14000ce40
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000728b
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 0x14000719e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ChangeServiceConfig_failed___d__n
mov edx, eax
call fcn.14000ce40
jmp 0x1400071b1
mov rdx, qword [rbx + 8]
lea rcx, str.enableDemandStart
add rdx, 2
call fcn.14000c29c
test eax, eax
jne 0x1400071c8
call fcn.140009b10
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 0x140007040
mov r8d, 2
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x140007073
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 0x14000719e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ChangeServiceConfig_failed___d__n
mov edx, eax
call fcn.14000ce40
jmp 0x1400071b1
lea rdx, str.enabled
lea rcx, str.Service__s_successfully._n
call fcn.14000ce40
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000728b
mov rdx, qword [rbx + 8]
lea rcx, str.stop
add rdx, 2
call fcn.14000c29c
test eax, eax
jne 0x14000728b
call fcn.140009b10
mov rcx, rax
call fcn.140009870
jmp 0x14000728b
lea rcx, str.Parameters:_n
call fcn.14000ce40
lea rcx, str.__install__to_install_the_service._n
call fcn.14000ce40
lea rcx, str.__remove___to_remove_the_service._n
call fcn.14000ce40
lea rcx, [rsp + 0x80]
call fcn.1400074c0
lea rax, [rsp + 0x80]
lea rcx, [rsp + 0x60]
mov qword [0x1400318c8], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x60], rax
lea rax, [0x140008f80]
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 0x14000727e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Service_failed_to_run_w_err_0x_08lx_n
mov edx, eax
call fcn.14000ce40
lea rcx, [rsp + 0x80]
call fcn.1400076f0
xor eax, eax
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.14000b830
mov rbx, qword [rsp + 0x340]
add rsp, 0x330
pop rdi
ret