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

Disassembly:
sub esp, 0xa0
push edi
push 0x20000000
push 0
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x404494
cmp dword [esp + 0xac], 1
jne 0x40448a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x28]
push str.OpenSCManager_ERROR____ld_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
push str.Tool_VDCServiceStopAndStart
lea ecx, [esp + 0x2c]
push ecx
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
add esp, 0xa0
ret
push esi
push 0xf01ff
push str.Canon_NetSpot_Suite_Service
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4044f4
cmp dword [esp + 0xb0], 1
jne 0x4044e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x2c]
push str.OpenService_ERROR____ld_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
push str.Tool_VDCServiceStopAndStart
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop edi
add esp, 0xa0
ret
mov eax, dword [esp + 0xac]
test eax, eax
push ebx
push ebp
je 0x40456e
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x404561
cmp dword [esp + 0xb8], 1
jne 0x404548
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x34]
push str.StartService_ERROR____ld_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push str.Tool_VDCServiceStopAndStart
lea edx, [esp + 0x38]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop ebp
pop ebx
pop esi
xor eax, eax
pop edi
add esp, 0xa0
ret
mov dword [esp + 0x10], 1
jmp 0x404670
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
mov eax, dword [esp + 0xb8]
jne 0x4045d1
cmp eax, 1
jne 0x4045b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x34]
push str.QueryServiceStatus_ERROR____ld_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push str.Tool_VDCServiceStopAndStart
lea edx, [esp + 0x38]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop ebp
pop ebx
pop esi
xor eax, eax
pop edi
add esp, 0xa0
ret
cmp eax, 1
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
jne 0x404606
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
push str.QueryServiceStatus_SERVICE____ld_
push ecx
call ebx
add esp, 0xc
push 0
push str.Tool_VDCServiceStopAndStart
lea edx, [esp + 0x38]
push edx
push 0
call ebp
cmp dword [esp + 0x18], 1
je 0x404670
lea eax, [esp + 0x14]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ecx, 1
cmp eax, ecx
je 0x40466c
cmp dword [esp + 0xb8], ecx
jne 0x404653
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x34]
push str.ControlService_ERROR____ld_
push ecx
call ebx
add esp, 0xc
push 0
push str.Tool_VDCServiceStopAndStart
lea edx, [esp + 0x38]
push edx
push 0
call ebp
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop ebp
pop ebx
pop esi
xor eax, eax
pop edi
add esp, 0xa0
ret
mov dword [esp + 0x10], ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop esi
pop edi
add esp, 0xa0
ret