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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1c0], rbx
mov rax, qword [0x14027bbd0]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov ebx, edx
mov r13d, ecx
xor r8d, r8d
lea rdx, str.Tool_VDCServiceStopAndStart
lea rcx, [rsp + 0x30]
call fcn.140017fc0
nop
mov dword [rsp + 0x20], ebx
mov r9d, r13d
lea r8, str.bVdcCtrl___d__bDebug___d
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140017c80
xor r12d, r12d
xor edx, edx
xor ecx, ecx
mov r8d, 0x20000000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x14000caf6
cmp ebx, 1
jne 0x14000cacc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.OpenSCManager_ERROR____ld_
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
lea r8, str.Tool_VDCServiceStopAndStart
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x30]
call fcn.140017c80
nop
lea rcx, [rsp + 0x30]
call fcn.140018150
xor eax, eax
jmp 0x14000cd87
mov r8d, 0xf01ff
lea rdx, str.Canon_NetSpot_Suite_Service
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x14000cb7e
cmp ebx, 1
jne 0x14000cb4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.OpenService_ERROR____ld_
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
lea r8, str.Tool_VDCServiceStopAndStart
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x30]
call fcn.140017c80
nop
lea rcx, [rsp + 0x30]
call fcn.140018150
xor eax, eax
jmp 0x14000cd87
mov rcx, rax
test r13d, r13d
je 0x14000cc00
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14000cd48
cmp ebx, 1
jne 0x14000cbd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.StartService_ERROR____ld_
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
lea r8, str.Tool_VDCServiceStopAndStart
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x30]
call fcn.140017c80
nop
jmp 0x14000cd3a
lea rdx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14000cc82
cmp ebx, 1
jne 0x14000cc46
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.QueryServiceStatus_ERROR____ld_
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
lea r8, str.Tool_VDCServiceStopAndStart
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x30]
call fcn.140017c80
nop
lea rcx, [rsp + 0x30]
call fcn.140018150
xor eax, eax
jmp 0x14000cd87
cmp ebx, 1
jne 0x14000ccb5
mov r8d, dword [rsp + 0x4c]
lea rdx, str.QueryServiceStatus_SERVICE____ld_
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
lea r8, str.Tool_VDCServiceStopAndStart
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [rsp + 0x4c], 1
je 0x14000cd4e
lea r8, [rsp + 0x48]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
cmp eax, 1
je 0x14000cd48
cmp ebx, 1
jne 0x14000cd0f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.ControlService_ERROR____ld_
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
lea r8, str.Tool_VDCServiceStopAndStart
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x30]
call fcn.140017c80
nop
lea rcx, [rsp + 0x30]
call fcn.140018150
xor eax, eax
jmp 0x14000cd87
mov r12d, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r9d, r12d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x30]
call fcn.140017c80
nop
lea rcx, [rsp + 0x30]
call fcn.140018150
mov eax, r12d
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1401945b0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret