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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e332
mov eax, dword fs:[0]
push eax
sub esp, 0x1e4
mov eax, dword [0x4251d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x405c12
xor eax, eax
jmp 0x405f2d
push 0xf01ff
push str.Canon_Driver_Information_Assist_Service
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x405c73
push str.__DIAS_service_is_not_running.
lea ecx, [ebp - 0x58]
call fcn.00406560
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
push ecx
call fcn.00401580
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.004077c0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x405f2d
push str.__stopping_DIAS_dependent_services
lea ecx, [ebp - 0x74]
call fcn.00406560
mov dword [ebp - 4], 1
lea eax, [ebp - 0x74]
push eax
call fcn.00401580
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x74]
call fcn.004077c0
push 0x1e
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.004061e0
add esp, 0xc
push str.__stopping_DIAS_service
lea ecx, [ebp - 0x90]
call fcn.00406560
mov dword [ebp - 4], 2
lea eax, [ebp - 0x90]
push eax
call fcn.00401580
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x90]
call fcn.004077c0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
jmp 0x405d0d
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0x1e
jae 0x405e12
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x405d44
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x405f2d
cmp dword [ebp - 0x38], 1
je 0x405d81
cmp dword [ebp - 0x20], 0
jne 0x405d7f
lea eax, [ebp - 0x3c]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x405d7f
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x405f2d
jmp 0x405dc6
push str.__stopped.
lea ecx, [ebp - 0xac]
call fcn.00406560
mov dword [ebp - 4], 3
lea ecx, [ebp - 0xac]
push ecx
call fcn.00401580
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xac]
call fcn.004077c0
mov dword [ebp - 0x18], 1
jmp 0x405e12
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x41f6b4
lea ecx, [ebp - 0xc8]
call fcn.00406560
mov dword [ebp - 4], 4
lea edx, [ebp - 0xc8]
push edx
call fcn.00401580
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xc8]
call fcn.004077c0
jmp 0x405d04
cmp dword [ebp - 0x18], 0
jne 0x405e33
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x405f2d
push str.__unregister_DIAS_from_NTService
lea ecx, [ebp - 0xe4]
call fcn.00406560
mov dword [ebp - 4], 5
lea edx, [ebp - 0xe4]
push edx
call fcn.00401580
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xe4]
call fcn.004077c0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x405ed8
push str.__failed_to_remove_the_service_from_SCM
lea ecx, [ebp - 0x100]
call fcn.00406560
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x100]
push ecx
call fcn.00401580
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x100]
call fcn.004077c0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x405f2d
push str.__done
lea ecx, [ebp - 0x11c]
call fcn.00406560
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00401580
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x11c]
call fcn.004077c0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret