Function at 0x140007490
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x330
mov rax, qword [0x1400312d0]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov rbx, rdx
cmp ecx, 1
jle 0x1400077a6
mov rdx, qword [rdx + 8]
mov ecx, 0xfffd
movzx eax, word [rdx]
sub ax, 0x2d
test cx, ax
jne 0x1400077a6
lea rcx, str.install
add rdx, 2
call fcn.14000dbac
test eax, eax
jne 0x14000755d
lea r9, [0x14002a608]
lea r8, [0x14002a69c]
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.14000b1d0
cmp qword [rax + 0x18], 8
jb 0x14000750c
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.14000e74c
cmp qword [rsp + 0x78], 8
jb 0x140007543
mov rcx, qword [rsp + 0x60]
call fcn.14000d11c
call fcn.14000a570
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.140009e80
jmp 0x14000783b
mov rdx, qword [rbx + 8]
lea rcx, str.remove
add rdx, 2
call fcn.14000dbac
test eax, eax
jne 0x140007587
call fcn.14000a570
mov rcx, rax
call fcn.14000a010
jmp 0x14000783b
mov rdx, qword [rbx + 8]
lea rcx, str.disable
add rdx, 2
call fcn.14000dbac
test eax, eax
jne 0x1400075b6
call fcn.14000a570
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.14000a330
jmp 0x14000783b
mov rdx, qword [rbx + 8]
lea rcx, str.enableAutoStart
add rdx, 2
call fcn.14000dbac
test eax, eax
jne 0x14000769f
call fcn.14000a570
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 0x140007609
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed___d__n
mov edx, eax
call fcn.14000e770
jmp 0x14000783b
mov r8d, 2
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140007645
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenService_failed___d__n
mov edx, eax
call fcn.14000e770
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000783b
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 0x14000774e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ChangeServiceConfig_failed___d__n
mov edx, eax
call fcn.14000e770
jmp 0x140007761
mov rdx, qword [rbx + 8]
lea rcx, str.enableDemandStart
add rdx, 2
call fcn.14000dbac
test eax, eax
jne 0x140007778
call fcn.14000a570
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 0x1400075f0
mov r8d, 2
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x140007623
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 0x14000774e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ChangeServiceConfig_failed___d__n
mov edx, eax
call fcn.14000e770
jmp 0x140007761
lea rdx, str.enabled
lea rcx, str.Service__s_successfully._n
call fcn.14000e770
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000783b
mov rdx, qword [rbx + 8]
lea rcx, str.stop
add rdx, 2
call fcn.14000dbac
test eax, eax
jne 0x14000783b
call fcn.14000a570
mov rcx, rax
call fcn.14000a1c0
jmp 0x14000783b
lea rcx, str.Parameters:_n
call fcn.14000e770
lea rcx, str.__install__to_install_the_service._n
call fcn.14000e770
lea rcx, str.__remove___to_remove_the_service._n
call fcn.14000e770
lea rcx, [rsp + 0x80]
call fcn.140007a70
lea rax, [rsp + 0x80]
lea rcx, [rsp + 0x60]
mov qword [0x140034978], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x60], rax
lea rax, [0x1400098c0]
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 0x14000782e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Service_failed_to_run_w_err_0x_08lx_n
mov edx, eax
call fcn.14000e770
lea rcx, [rsp + 0x80]
call fcn.140007ce0
xor eax, eax
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.14000d140
mov rbx, qword [rsp + 0x340]
add rsp, 0x330
pop rdi
ret