Function at 0x1400194b0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14005d030]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rdx
cmp ecx, 1
jle 0x1400197b4
mov rdx, qword [rdx + 8]
movzx eax, word [rdx]
sub ax, 0x2d
mov ecx, 0xfffd
test cx, ax
jne 0x1400197b4
add rdx, 2
lea rcx, str.install
call fcn.14002c1fc
test eax, eax
jne 0x140019524
call fcn.14001f620
jmp 0x1400198b2
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, str.remove
call fcn.14002c1fc
test eax, eax
jne 0x14001969a
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x27], xmm0
mov qword [rbp + 0x37], rax
mov dword [rbp + 0x3f], eax
xor edx, edx
xor ecx, ecx
lea r8d, [rax + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x14001957f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.140019450
jmp 0x1400198b2
mov r8d, 0x10024
lea rdi, [0x1400511b0]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x1400195c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
call fcn.140019450
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400198b2
lea r8, [rbp + 0x27]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140019651
mov rdx, rdi
lea rcx, str.Stopping__s.
call fcn.140019450
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp + 0x27]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140019633
mov eax, dword [rbp + 0x2b]
cmp eax, 3
jne 0x140019636
lea rcx, [0x140052584]
call fcn.140019450
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp + 0x27]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140019603
mov eax, dword [rbp + 0x2b]
mov rdx, rdi
cmp eax, 1
lea rcx, [0x140052588]
je 0x14001964c
lea rcx, str._n_s_failed_to_stop._n
call fcn.140019450
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140019674
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.DeleteService_failed_w_err_0x_08lx_n
call fcn.140019450
jmp 0x140019683
mov rdx, rdi
lea rcx, str._s_is_removed._n
call fcn.140019450
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400198b2
mov rdx, qword [rbx + 8]
add rdx, 2
lea rcx, str.console
call fcn.14002c1fc
test eax, eax
jne 0x140019882
lea rsi, vtable.CServiceBase.0
mov qword [rbp - 0x29], rsi
lea rdi, [0x1400511b0]
mov qword [rbp - 0x21], rdi
xor ebx, ebx
mov qword [rbp + 7], rbx
mov dword [rbp - 0x19], 0x10
mov dword [rbp - 0x15], 2
mov qword [rbp - 0x11], 5
mov qword [rbp - 9], rbx
mov dword [rbp - 1], ebx
lea r9, [rbp + 0xf]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140052370]
call qword [sym.imp.ADVAPI32.dll_EventRegister]
test eax, eax
je 0x140019717
mov edx, eax
lea rcx, str.Provider_not_registered._EventRegister_failed_with__d_n
call fcn.140019450
lea rax, vtable.DtsApoService.0
mov qword [rbp - 0x29], rax
mov qword [rbp + 0x17], rbx
mov byte [rbp + 0x1f], 1
mov r8b, 4
lea rdx, str.Running_in_console_mode._Press_enter_to_start.
lea rcx, [rbp - 0x29]
call qword [0x140051e90]
call fcn.140031550
cmp eax, 0xa
jne 0x14001976d
mov r8b, 4
lea rdx, str.Starting_Rpc_Server..
lea rcx, [rbp - 0x29]
mov rax, qword [rbp - 0x29]
call qword [rax + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x29]
mov rax, qword [rbp - 0x29]
call qword [rax + 8]
mov r8b, 4
lea rdx, str.Press_enter_to_stop_the_server_and_exit.
lea rcx, [rbp - 0x29]
mov rax, qword [rbp - 0x29]
call qword [rax + 0x30]
call fcn.140031550
cmp eax, 0xa
jne 0x140019798
lea rcx, [rbp - 0x29]
mov rax, qword [rbp - 0x29]
call qword [rax + 0x10]
nop
mov qword [rbp - 0x29], rsi
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x1400198b2
call qword [sym.imp.ADVAPI32.dll_EventUnregister]
jmp 0x1400198b2
lea rsi, vtable.CServiceBase.0
mov qword [rbp - 0x29], rsi
lea rdi, [0x1400511b0]
mov qword [rbp - 0x21], rdi
xor ebx, ebx
mov qword [rbp + 7], rbx
mov dword [rbp - 0x19], 0x10
mov dword [rbp - 0x15], 2
mov qword [rbp - 0x11], 5
mov qword [rbp - 9], rbx
mov dword [rbp - 1], ebx
lea r9, [rbp + 0xf]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140052370]
call qword [sym.imp.ADVAPI32.dll_EventRegister]
test eax, eax
je 0x140019815
mov edx, eax
lea rcx, str.Provider_not_registered._EventRegister_failed_with__d_n
call fcn.140019450
lea rax, vtable.DtsApoService.0
mov qword [rbp - 0x29], rax
mov qword [rbp + 0x17], rbx
mov byte [rbp + 0x1f], bl
lea rax, [rbp - 0x29]
mov qword [0x14005ffa0], rax
mov rax, qword [rbp - 0x21]
mov qword [rbp + 0x27], rax
lea rax, [0x14001f0e0]
mov qword [rbp + 0x2f], rax
mov qword [rbp + 0x37], rbx
mov qword [rbp + 0x3f], rbx
lea rcx, [rbp + 0x27]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14001986f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Service_failed_to_run_w_err_0x_08lx_n
call fcn.140019450
mov qword [rbp - 0x29], rsi
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x140019882
call qword [sym.imp.ADVAPI32.dll_EventUnregister]
lea rcx, str.Parameters:_n
call fcn.140019450
lea rcx, str.__install__to_install_the_service._n
call fcn.140019450
lea rcx, str.__remove___to_remove_the_service._n
call fcn.140019450
lea rcx, str.__console__to_run_in_console_mode._n
call fcn.140019450
xor eax, eax
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400247e0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret