Function at 0x1401666b0
Capabilities:
Query service status
Start service
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7c0]
sub rsp, 0x8c0
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov r12d, edx
lea rdx, str.CBaseOSSpecTypeWin2K::DOMSServiceControl
lea rcx, [rsp + 0x40]
call fcn.14001abe0
nop
lea r13, [0x1402a8360]
lea rdi, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x140166784
test byte [rcx + 0x1c], 1
je 0x14016674c
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0xbe
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x140166784
test byte [rcx + 0x1c], 1
je 0x140166784
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0xbf
mov dword [rsp + 0x20], r12d
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
xor esi, esi
xor edx, edx
xor ecx, ecx
mov r8d, 0x20000000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r15, rax
test rax, rax
jne 0x14016680a
mov rax, qword [0x1402a8360]
cmp rax, r13
je 0x1401667df
test byte [rax + 0x1c], 4
je 0x1401667df
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0xc0
lea r8, [0x140265800]
mov rcx, qword [rax + 0x10]
call fcn.140001ad0
mov rax, qword [0x1402a8360]
test r12d, r12d
jne 0x140166a8f
mov byte [rsp + 0x48], 1
cmp rax, r13
je 0x140166d38
test byte [rax + 0x1c], 1
je 0x140166d38
mov edx, 0xc1
jmp 0x140166b17
mov r8d, 0xf01ff
lea rdx, str.Canon_Output_Manager_Service
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r14, rax
test rax, rax
jne 0x1401668ba
mov rax, qword [0x1402a8360]
cmp rax, r13
je 0x14016687f
test byte [rax + 0x1c], 2
je 0x14016687f
mov rbx, rdi
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rsp + 0x40]
call fcn.14001b0b0
mov edx, 0xc2
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x140265800]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test r12d, r12d
jne 0x140166a8f
mov byte [rsp + 0x48], 1
mov rax, qword [0x1402a8360]
cmp rax, r13
je 0x140166d38
test byte [rax + 0x1c], 1
je 0x140166d38
mov edx, 0xc3
jmp 0x140166b17
lea rdx, [rbp - 0x70]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14016695d
mov rax, qword [0x1402a8360]
cmp rax, r13
je 0x140166922
test byte [rax + 0x1c], 2
je 0x140166922
mov rbx, rdi
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rsp + 0x40]
call fcn.14001b0b0
mov edx, 0xc4
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x140265800]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [rsp + 0x48], 1
mov rax, qword [0x1402a8360]
cmp rax, r13
je 0x140166d38
test byte [rax + 0x1c], 1
je 0x140166d38
mov edx, 0xc5
jmp 0x140166b17
mov eax, dword [rbp - 0x6c]
test r12d, r12d
je 0x140166b87
cmp eax, 4
je 0x140166b87
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1401669ee
mov rax, qword [0x1402a8360]
cmp rax, r13
je 0x1401669d7
test byte [rax + 0x1c], 2
je 0x1401669d7
mov rbx, rdi
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rsp + 0x40]
call fcn.14001b0b0
mov edx, 0xc6
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x140265800]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140166a8f
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x140166a28
test byte [rcx + 0x1c], 4
je 0x140166a28
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, Ordinal_203
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
lea rcx, [rsp + 0x30]
call fcn.140099a10
nop
xor ecx, ecx
call fcn.1401fe7b0
mov rbx, rax
xor ecx, ecx
call fcn.1401fe7b0
sub rax, rbx
cmp rax, 0x1e
jge 0x140166a85
nop dword [rax]
lea rdx, str.Canon_Output_Manager_Service
lea rcx, [rsp + 0x30]
call fcn.14009df10
cmp eax, 4
je 0x140166b43
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call fcn.1401fe7b0
sub rax, rbx
cmp rax, 0x1e
jl 0x140166a50
lea rcx, [rsp + 0x30]
call fcn.140099b80
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x50]
call fcn.1401e7e40
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
lea r8, [rbp - 0x50]
lea rdx, str.DOMSNAME
mov rcx, r9
call qword [case.0x1400136d6.0]
mov rcx, qword [0x1402bbf68]
mov rax, qword [rcx]
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x50]
mov edx, 0xa2
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
mov byte [rsp + 0x48], 1
mov rax, qword [0x1402a8360]
cmp rax, r13
je 0x140166d38
test byte [rax + 0x1c], 1
je 0x140166d38
mov edx, 0xcd
mov r9, rdi
cmp qword [0x1402bbdc8], 8
mov dword [rsp + 0x20], esi
cmovae r9, qword [0x1402bbdb0]
lea r8, [0x140265800]
mov rcx, qword [rax + 0x10]
call fcn.140001b40
jmp 0x140166d31
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x140166b7d
test byte [rcx + 0x1c], 4
je 0x140166b7d
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, Ordinal_203
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
mov esi, 1
jmp 0x140166cd2
cmp eax, 1
je 0x140166cdc
lea r8, [rbp - 0x70]
mov edx, 1
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_ControlService]
cmp eax, 1
je 0x140166c39
mov rax, qword [0x1402a8360]
cmp rax, r13
je 0x140166bfe
test byte [rax + 0x1c], 2
je 0x140166bfe
mov rbx, rdi
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
lea rcx, [rsp + 0x40]
call fcn.14001b0b0
mov edx, Ordinal_203
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x140265800]
mov rcx, qword [0x1402a8360]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [rsp + 0x48], 1
mov rax, qword [0x1402a8360]
cmp rax, r13
je 0x140166d38
test byte [rax + 0x1c], 1
je 0x140166d38
mov edx, Ordinal_203
jmp 0x140166b17
lea rcx, [rsp + 0x30]
call fcn.140099a10
nop
xor ecx, ecx
call fcn.1401fe7b0
mov rbx, rax
xor ecx, ecx
call fcn.1401fe7b0
sub rax, rbx
cmp rax, 0x1e
jge 0x140166cd2
nop
lea rdx, str.Canon_Output_Manager_Service
lea rcx, [rsp + 0x30]
call fcn.14009df10
cmp eax, 1
je 0x140166c93
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call fcn.1401fe7b0
sub rax, rbx
cmp rax, 0x1e
jl 0x140166c60
jmp 0x140166cd2
mov rcx, qword [0x1402a8360]
cmp rcx, r13
je 0x140166ccd
test byte [rcx + 0x1c], 4
je 0x140166ccd
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, reloc.WINSPOOL.DRV_Ordinal_203
lea r8, [0x140265800]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
mov esi, 1
lea rcx, [rsp + 0x30]
call fcn.140099b80
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [rsp + 0x48], 1
mov rax, qword [0x1402a8360]
cmp rax, r13
je 0x140166d38
test byte [rax + 0x1c], 1
je 0x140166d38
mov r9, rdi
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0xcc
mov dword [rsp + 0x20], esi
lea r8, [0x140265800]
mov rcx, qword [rax + 0x10]
call fcn.140001b40
mov rax, qword [0x1402a8360]
lea rcx, vtable.WppTrace.0
mov qword [rsp + 0x40], rcx
cmp byte [rsp + 0x48], 0
jne 0x140166d94
cmp rax, r13
je 0x140166d94
test byte [rax + 0x1c], 1
je 0x140166d94
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
cmp qword [0x1402bbdc8], 8
cmovae rdi, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rcx
mov r9, rdi
lea r8, [0x140252818]
mov rcx, qword [rax + 0x10]
call fcn.140006c90
lea rcx, [rsp + 0x70]
call fcn.1400048a0
lea rcx, [rsp + 0x50]
call fcn.1400048a0
mov eax, esi
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x8c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret