Function at 0x140007290
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 0x1400072d9
xor eax, eax
jmp 0x1400077eb
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 0x140007377
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x1a8], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.140009910
lea rcx, str.__DIAS_service_is_not_running.
call fcn.140015f90
mov qword [rsp + 0x1b0], rax
mov r8, qword [rsp + 0x1b0]
lea rdx, str.__DIAS_service_is_not_running.
lea rcx, [rsp + 0x60]
call fcn.14000a940
nop
lea rcx, [rsp + 0x60]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.140009910
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1400077eb
lea rax, [rsp + 0x1b8]
mov qword [rsp + 0x1c0], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x88]
call fcn.140009910
lea rcx, str.__stopping_DIAS_dependent_services
call fcn.140015f90
mov qword [rsp + 0x1c8], rax
mov r8, qword [rsp + 0x1c8]
lea rdx, str.__stopping_DIAS_dependent_services
lea rcx, [rsp + 0x88]
call fcn.14000a940
nop
lea rcx, [rsp + 0x88]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x88]
call fcn.140009910
mov r8d, 0x1e
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
call fcn.140007ad0
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x1d8], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xb0]
call fcn.140009910
lea rcx, str.__stopping_DIAS_service
call fcn.140015f90
mov qword [rsp + 0x1e0], rax
mov r8, qword [rsp + 0x1e0]
lea rdx, str.__stopping_DIAS_service
lea rcx, [rsp + 0xb0]
call fcn.14000a940
nop
lea rcx, [rsp + 0xb0]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xb0]
call fcn.140009910
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
jmp 0x14000748f
mov eax, dword [rsp + 0x38]
add eax, 1
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x1e
jae 0x140007617
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1400074cb
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 0x1400077eb
cmp dword [rsp + 0x44], 1
je 0x140007514
cmp dword [rsp + 0x38], 0
jne 0x14000750f
lea r8, [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14000750f
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 0x1400077eb
jmp 0x140007594
lea rax, [rsp + 0x1e8]
mov qword [rsp + 0x1f0], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xd8]
call fcn.140009910
lea rcx, str.__stopped.
call fcn.140015f90
mov qword [rsp + 0x1f8], rax
mov r8, qword [rsp + 0x1f8]
lea rdx, str.__stopped.
lea rcx, [rsp + 0xd8]
call fcn.14000a940
nop
lea rcx, [rsp + 0xd8]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xd8]
call fcn.140009910
mov dword [rsp + 0x30], 1
jmp 0x140007617
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.140009910
lea rcx, [0x1400259f0]
call fcn.140015f90
mov qword [rsp + 0x210], rax
mov r8, qword [rsp + 0x210]
lea rdx, [0x1400259f0]
lea rcx, [rsp + 0x100]
call fcn.14000a940
nop
lea rcx, [rsp + 0x100]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x100]
call fcn.140009910
jmp 0x140007484
cmp dword [rsp + 0x30], 0
jne 0x14000763b
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 0x1400077eb
lea rax, [rsp + 0x218]
mov qword [rsp + 0x220], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x128]
call fcn.140009910
lea rcx, str.__unregister_DIAS_from_NTService
call fcn.140015f90
mov qword [rsp + 0x228], rax
mov r8, qword [rsp + 0x228]
lea rdx, str.__unregister_DIAS_from_NTService
lea rcx, [rsp + 0x128]
call fcn.14000a940
nop
lea rcx, [rsp + 0x128]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x128]
call fcn.140009910
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x14000775d
lea rax, [rsp + 0x230]
mov qword [rsp + 0x238], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x150]
call fcn.140009910
lea rcx, str.__failed_to_remove_the_service_from_SCM
call fcn.140015f90
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.14000a940
nop
lea rcx, [rsp + 0x150]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x150]
call fcn.140009910
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 0x1400077eb
lea rax, [rsp + 0x288]
mov qword [rsp + 0x290], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x178]
call fcn.140009910
lea rcx, str.__done
call fcn.140015f90
mov qword [rsp + 0x298], rax
mov r8, qword [rsp + 0x298]
lea rdx, str.__done
lea rcx, [rsp + 0x178]
call fcn.14000a940
nop
lea rcx, [rsp + 0x178]
call fcn.1400019b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x178]
call fcn.140009910
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