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

Disassembly:
sub rsp, 0x2d8
mov qword [rsp + 0x2c8], 0xfffffffffffffffe
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r8d, 2
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400072e9
xor eax, eax
jmp 0x1400077fb
mov r8d, 0xf01ff
lea rdx, str.Canon_Driver_Information_Assist_Service
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140007387
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x1a8], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.140009950
lea rcx, str.__DIAS_service_is_not_running.
call fcn.140015fd0
mov qword [rsp + 0x1b0], rax
mov r8, qword [rsp + 0x1b0]
lea rdx, str.__DIAS_service_is_not_running.
lea rcx, [rsp + 0x60]
call fcn.14000a980
nop
lea rcx, [rsp + 0x60]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.140009950
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1400077fb
lea rax, [rsp + 0x1b8]
mov qword [rsp + 0x1c0], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x88]
call fcn.140009950
lea rcx, str.__stopping_DIAS_dependent_services
call fcn.140015fd0
mov qword [rsp + 0x1c8], rax
mov r8, qword [rsp + 0x1c8]
lea rdx, str.__stopping_DIAS_dependent_services
lea rcx, [rsp + 0x88]
call fcn.14000a980
nop
lea rcx, [rsp + 0x88]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x88]
call fcn.140009950
mov r8d, 0x1e
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
call fcn.140007b10
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x1d8], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xb0]
call fcn.140009950
lea rcx, str.__stopping_DIAS_service
call fcn.140015fd0
mov qword [rsp + 0x1e0], rax
mov r8, qword [rsp + 0x1e0]
lea rdx, str.__stopping_DIAS_service
lea rcx, [rsp + 0xb0]
call fcn.14000a980
nop
lea rcx, [rsp + 0xb0]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xb0]
call fcn.140009950
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
jmp 0x14000749f
mov eax, dword [rsp + 0x38]
add eax, 1
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x1e
jae 0x140007627
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1400074db
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1400077fb
cmp dword [rsp + 0x44], 1
je 0x140007524
cmp dword [rsp + 0x38], 0
jne 0x14000751f
lea r8, [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14000751f
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1400077fb
jmp 0x1400075a4
lea rax, [rsp + 0x1e8]
mov qword [rsp + 0x1f0], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xd8]
call fcn.140009950
lea rcx, str.__stopped.
call fcn.140015fd0
mov qword [rsp + 0x1f8], rax
mov r8, qword [rsp + 0x1f8]
lea rdx, str.__stopped.
lea rcx, [rsp + 0xd8]
call fcn.14000a980
nop
lea rcx, [rsp + 0xd8]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xd8]
call fcn.140009950
mov dword [rsp + 0x30], 1
jmp 0x140007627
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x200]
mov qword [rsp + 0x208], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x100]
call fcn.140009950
lea rcx, [0x1400259f0]
call fcn.140015fd0
mov qword [rsp + 0x210], rax
mov r8, qword [rsp + 0x210]
lea rdx, [0x1400259f0]
lea rcx, [rsp + 0x100]
call fcn.14000a980
nop
lea rcx, [rsp + 0x100]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x100]
call fcn.140009950
jmp 0x140007494
cmp dword [rsp + 0x30], 0
jne 0x14000764b
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1400077fb
lea rax, [rsp + 0x218]
mov qword [rsp + 0x220], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x128]
call fcn.140009950
lea rcx, str.__unregister_DIAS_from_NTService
call fcn.140015fd0
mov qword [rsp + 0x228], rax
mov r8, qword [rsp + 0x228]
lea rdx, str.__unregister_DIAS_from_NTService
lea rcx, [rsp + 0x128]
call fcn.14000a980
nop
lea rcx, [rsp + 0x128]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x128]
call fcn.140009950
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x14000776d
lea rax, [rsp + 0x230]
mov qword [rsp + 0x238], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x150]
call fcn.140009950
lea rcx, str.__failed_to_remove_the_service_from_SCM
call fcn.140015fd0
mov qword [rsp + 0x260], rax
mov r8, qword [rsp + 0x260]
lea rdx, str.__failed_to_remove_the_service_from_SCM
lea rcx, [rsp + 0x150]
call fcn.14000a980
nop
lea rcx, [rsp + 0x150]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x150]
call fcn.140009950
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1400077fb
lea rax, [rsp + 0x288]
mov qword [rsp + 0x290], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x178]
call fcn.140009950
lea rcx, str.__done
call fcn.140015fd0
mov qword [rsp + 0x298], rax
mov r8, qword [rsp + 0x298]
lea rdx, str.__done
lea rcx, [rsp + 0x178]
call fcn.14000a980
nop
lea rcx, [rsp + 0x178]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x178]
call fcn.140009950
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
add rsp, 0x2d8
ret