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

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rax, qword [0x14047b0a0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [0x140492b78], 0
je 0x1400a2e2a
lea rbx, [0x140492b68]
mov rcx, rbx
cmp qword [0x140492b80], 8
cmovae rcx, qword [0x140492b68]
lea rdx, str.createSchedulerTask
call fcn.1402e4f5c
test eax, eax
jne 0x1400a2b7a
lea rdx, [rsp + 0x38]
call fcn.1400a25f0
nop
cmp qword [rax + 0x18], 8
jb 0x1400a2b60
mov rax, qword [rax]
mov rdx, rax
call fcn.140137dd0
nop
lea rcx, [rsp + 0x38]
call fcn.14007ec70
mov al, 1
jmp 0x1400a2e2c
mov rcx, rbx
cmp qword [0x140492b80], 8
cmovae rcx, qword [0x140492b68]
lea rdx, str.deleteSchedulerTask
call fcn.1402e4f5c
test eax, eax
jne 0x1400a2ba9
call fcn.1401383f0
mov al, 1
jmp 0x1400a2e2c
mov rcx, rbx
cmp qword [0x140492b80], 8
cmovae rcx, qword [0x140492b68]
lea rdx, str.instService
call fcn.1402e4f5c
test eax, eax
jne 0x1400a2bdd
call fcn.1401383f0
call fcn.14009d470
mov al, 1
jmp 0x1400a2e2c
mov rcx, rbx
cmp qword [0x140492b80], 8
cmovae rcx, qword [0x140492b68]
lea rdx, str.uninstService
call fcn.1402e4f5c
test eax, eax
jne 0x1400a2d83
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x1400a2c37
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.14009d9f0
mov al, 1
jmp 0x1400a2e2c
mov r8d, 0x10024
lea rdx, [0x140402ad8]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x1400a2d5f
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400a2cf9
lea rdx, str.Coodesker_Service
lea rcx, str.Stopping__s._n
call fcn.14009d9f0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400a2cd6
mov eax, dword [rsp + 0x3c]
cmp eax, 3
jne 0x1400a2cda
lea rcx, [0x1403ff138]
call fcn.14009d9f0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1400a2ca4
mov eax, dword [rsp + 0x3c]
lea rdx, str.Coodesker_Service
cmp eax, 1
lea rcx, str._n_s_stopped._n
je 0x1400a2cf4
lea rcx, str._n_s_failed_to_stop._n
call fcn.14009d9f0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x1400a2d32
lea rdx, str.Coodesker_Service
lea rcx, str._s_removed._n
call fcn.14009d9f0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x1400a2e2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.DeleteService_failed_w_err_0x_08lx_n
call fcn.14009d9f0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x1400a2e2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
call fcn.14009d9f0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x1400a2e2c
mov rcx, rbx
cmp qword [0x140492b80], 8
cmovae rcx, qword [0x140492b68]
lea rdx, str.service
call fcn.1402e4f5c
test eax, eax
jne 0x1400a2df1
lea rax, [0x140402ad8]
mov qword [rsp + 0x38], rax
lea rax, [0x14009cfd0]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x1400a2d7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.StartServiceCtrlDispatcher
call fcn.14009d380
mov al, 1
jmp 0x1400a2e2c
cmp qword [0x140492b80], 8
cmovae rbx, qword [0x140492b68]
lea rdx, str.startService
mov rcx, rbx
call fcn.1402e4f5c
test eax, eax
jne 0x1400a2e2a
call fcn.14009d670
test eax, eax
je 0x1400a2d7c
call fcn.14009d470
mov al, 1
jmp 0x1400a2e2c
xor al, al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401aed20
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret