Function at 0x40d380
Capabilities:
Schedule task via itaskservice

Disassembly:
push 0xffffffffffffffff
push 0x4e2322
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x51f4f4]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x51f4f4]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
push 0xf9
push str.__d_ConfigureTask_LogOn_____Start
mov edi, ecx
call fcn.0040cb20
add esp, 8
xor ebx, ebx
push ebx
push ebx
push ebx
push 3
push 6
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov esi, eax
cmp esi, ebx
jge 0x40d404
push esi
push str._nCoInitializeSecurity_failed:__x
call fcn.0040cb20
add esp, 8
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
jmp 0x40dd2a
mov eax, dword [edi + 8]
lea esi, [edi + 8]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x40d41e
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00409cc0
mov eax, dword [esi]
xor ecx, ecx
mov word [esp + 0xcc], cx
mov ecx, eax
mov dword [esp + 0xe0], 7
mov dword [esp + 0xdc], ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40d441
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0xcc]
call fcn.00406860
lea edx, [esp + 0x24]
push edx
push 0x501994
push 1
push ebx
mov dword [esp + 0x100], ebx
push 0x501b84
mov dword [esp + 0x38], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jge 0x40d4bb
push esi
push str.Failed_to_create_an_instance_of_ITaskService:__x
call fcn.0040cb20
add esp, 8
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0xe0], 8
jb 0x40d4b4
mov eax, dword [esp + 0xcc]
push eax
call fcn.004129b1
add esp, 4
mov eax, esi
jmp 0x40dd2a
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 0x84]
push ecx
call esi
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x90]
mov edi, dword [esp + 0x84]
mov ebp, dword [esp + 0x88]
lea ecx, [esp + 0x94]
push ecx
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc4], eax
call esi
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0xa0]
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
call esi
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0xa4]
push edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
call esi
mov byte [esp + 0xf0], 4
mov esi, dword [esp + 0xbc]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebp
mov dword [eax + 8], esi
mov esi, dword [esp + 0xd0]
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x44]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x58]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x5c]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x60]
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x80]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x84]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x88]
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0xd4]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0xe8]
mov dword [eax + 4], esi
mov esi, dword [esp + 0xec]
mov dword [eax + 8], esi
mov esi, dword [esp + 0xf0]
mov dword [eax + 0xc], esi
push ecx
mov eax, dword [edx + 0x28]
call eax
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0xa4]
push ecx
mov esi, eax
call ebp
lea edx, [esp + 0x74]
push edx
call ebp
lea eax, [esp + 0x94]
push eax
call ebp
lea ecx, [esp + 0x84]
push ecx
mov byte [esp + 0xf4], bl
call ebp
cmp esi, ebx
jge 0x40d683
push esi
push str.ITaskService::Connect_failed:__x
call fcn.0040cb20
mov eax, dword [esp + 0x2c]
mov edx, dword [eax]
add esp, 8
push eax
mov eax, dword [edx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0xe0], 8
jb 0x40d4b4
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.004129b1
add esp, 4
mov eax, esi
jmp 0x40dd2a
lea edx, [esp + 0x1c]
push edx
mov edi, 0x50682c
mov dword [esp + 0x1c], ebx
call fcn.0040e590
mov byte [esp + 0xf0], 5
mov eax, dword [eax]
cmp eax, ebx
je 0x40d6a8
mov ecx, dword [eax]
jmp 0x40d6aa
xor ecx, ecx
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
lea esi, [esp + 0x18]
push esi
push ecx
push eax
mov eax, dword [edx + 0x1c]
call eax
mov esi, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x20], esi
mov byte [esp + 0xf0], bl
call fcn.0040e500
cmp esi, ebx
jge 0x40d6fb
push esi
push str.Cannot_get_Root_Folder_pointer:__x
call fcn.0040cb20
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 8
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x40dd1a
lea eax, [esp + 0x1c]
push eax
mov edi, str.EPM_Preload
call fcn.0040e590
mov byte [esp + 0xf0], 6
mov eax, dword [eax]
cmp eax, ebx
je 0x40d71c
mov ecx, dword [eax]
jmp 0x40d71e
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
push ebx
push ecx
push eax
mov eax, dword [edx + 0x3c]
call eax
lea edi, [esp + 0x1c]
mov byte [esp + 0xf0], bl
call fcn.0040e500
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], ebx
mov ecx, dword [eax]
push ebx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov edi, eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp edi, ebx
jge 0x40d797
push edi
push str.Failed_to_create_a_task_definition:__x
call fcn.0040cb20
mov eax, dword [esp + 0x20]
add esp, 8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea esi, [esp + 0xc8]
call fcn.00405d00
mov eax, edi
jmp 0x40dd2a
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x64]
mov dword [esp + 0x64], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
mov edi, eax
cmp edi, ebx
jl 0x40d7dd
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x48]
push 1
push eax
call edx
mov edi, eax
cmp edi, ebx
jl 0x40d7dd
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x64]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x40]
call eax
mov edi, eax
cmp edi, ebx
jge 0x40d800
push edi
push str.Failed_to_set_Principal_RunLevel_as_TASK_RUNLEVEL_HIGHEST_:__x
call fcn.0040cb20
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 8
push eax
call edx
mov eax, dword [esp + 0x14]
jmp 0x40d776
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov edi, eax
cmp edi, ebx
jge 0x40d823
push edi
push str._nCannot_get_identification_pointer:__x
jmp 0x40d7e3
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push str.HP_Easy_Printer_Manager
push eax
call edx
mov edi, eax
cmp edi, ebx
jge 0x40d842
push edi
push str._nCannot_put_identification_info:__x
jmp 0x40d7e3
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
push str.Run_task_for_Easy_Printer_Manager_V2_preload
push eax
call edx
mov edi, eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp edi, ebx
jge 0x40d870
push edi
push str._nCannot_put_description_:__x
jmp 0x40d7e3
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x6c]
mov dword [esp + 0x6c], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov edi, eax
cmp edi, ebx
jge 0x40d896
push edi
push str._nCannot_get_settings_pointer:__x
jmp 0x40d7e3
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x58]
push 0xffffffffffffffff
push eax
call edx
mov edi, eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp edi, ebx
jge 0x40d8c1
push edi
push str._nCannot_put_setting_info:__x
jmp 0x40d7e3
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x48]
mov dword [esp + 0x48], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov edi, eax
cmp edi, ebx
jge 0x40d8e7
push edi
push str._nCannot_get_trigger_collection:__x
jmp 0x40d7e3
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x60]
push edx
mov dword [esp + 0x64], ebx
mov ecx, dword [eax]
push 9
push eax
mov eax, dword [ecx + 0x28]
call eax
mov edi, eax
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp edi, ebx
jge 0x40d91b
push edi
push str._nCannot_create_the_trigger:__x
jmp 0x40d7e3
mov eax, dword [esp + 0x60]
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x60], ebx
mov ecx, dword [eax]
push 0x501a44
push eax
mov eax, dword [ecx]
call eax
mov edi, eax
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp edi, ebx
jge 0x40d951
push edi
push str._nQueryInterface_call_failed_for_ILogonTrigger:__x
jmp 0x40d7e3
lea eax, [esp + 0x1c]
push eax
mov edi, str.Trigger1
call fcn.0040e590
mov byte [esp + 0xf0], 7
mov eax, dword [eax]
cmp eax, ebx
je 0x40d972
mov eax, dword [eax]
jmp 0x40d974
xor eax, eax
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x24]
push ecx
call eax
mov esi, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x20], esi
mov byte [esp + 0xf0], bl
call fcn.0040e500
cmp esi, ebx
jge 0x40d9a9
push esi
push str._nCannot_put_the_trigger_ID:__x
call fcn.0040cb20
add esp, 8
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, ebx
jge 0x40d9ea
push esi
push str._nCannot_put_delay_for_boot_trigger:__x
call fcn.0040cb20
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 8
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x40dd1a
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
mov edi, eax
cmp edi, ebx
jge 0x40da10
push edi
push str._nCannot_get_Task_collection_pointer:__x
jmp 0x40d7e3
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x6c], ebx
mov ecx, dword [eax]
push ebx
push eax
mov eax, dword [ecx + 0x30]
call eax
mov edi, eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp edi, ebx
jge 0x40da43
push edi
push str._nCannot_create_the_action:__x
jmp 0x40d7e3
mov eax, dword [esp + 0x68]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], ebx
mov ecx, dword [eax]
push str.MbLk
push eax
mov eax, dword [ecx]
call eax
mov edi, eax
mov eax, dword [esp + 0x68]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp edi, ebx
jge 0x40da79
push edi
push str._nQueryInterface_call_failed_for_IExecAction:__x
jmp 0x40d7e3
cmp dword [esp + 0xe0], 8
mov edi, dword [esp + 0xcc]
jae 0x40da91
lea edi, [esp + 0xcc]
lea eax, [esp + 0x1c]
push eax
call fcn.0040e590
mov byte [esp + 0xf0], 8
mov eax, dword [eax]
cmp eax, ebx
je 0x40daad
mov eax, dword [eax]
jmp 0x40daaf
xor eax, eax
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x2c]
push ecx
call eax
mov esi, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x20], esi
mov byte [esp + 0xf0], bl
call fcn.0040e500
cmp esi, ebx
jl 0x40db1e
lea ecx, [esp + 0x1c]
push ecx
mov edi, str._preload
call fcn.0040e590
mov byte [esp + 0xf0], 9
mov eax, dword [eax]
cmp eax, ebx
je 0x40daf7
mov eax, dword [eax]
jmp 0x40daf9
xor eax, eax
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x34]
push ecx
call eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x20], eax
mov byte [esp + 0xf0], bl
call fcn.0040e500
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, ebx
jge 0x40db39
push esi
push str._nCannot_put_the_executable_or_command_line_argument_path:__x
jmp 0x40d9bf
lea esi, [esp + 0xb4]
mov dword [esp + 0x70], ebx
call fcn.0040e3d0
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov esi, dword [eax]
mov eax, dword [eax + 0xc]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov dword [esp + 0x88], ecx
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], eax
call edi
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x80]
lea eax, [esp + 0x94]
push eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
call edi
mov byte [esp + 0xf0], 0xc
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0xa0]
lea edx, [esp + 0x1c]
push edx
mov edi, str.EPM_Preload
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
call fcn.0040e590
mov byte [esp + 0xf0], 0xd
mov eax, dword [eax]
cmp eax, ebx
je 0x40dbf8
mov edx, dword [eax]
jmp 0x40dbfa
xor edx, edx
lea eax, [esp + 0x70]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x9c]
mov dword [eax + 4], esi
mov esi, dword [esp + 0xa0]
mov dword [eax + 8], esi
mov esi, dword [esp + 0xa4]
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x60]
push 2
mov ecx, dword [esp + 0x30]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x78]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x7c]
mov edi, dword [ecx]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x80]
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x5c]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x70]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x74]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x78]
push 6
mov dword [eax + 0xc], esi
mov eax, dword [esp + 0x50]
push eax
push edx
push ecx
mov ecx, dword [edi + 0x44]
call ecx
mov esi, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x20], esi
call fcn.0040e500
lea edx, [esp + 0x94]
push edx
call ebp
lea eax, [esp + 0x74]
push eax
call ebp
lea ecx, [esp + 0xb4]
push ecx
mov byte [esp + 0xf4], bl
call ebp
cmp esi, ebx
push esi
jge 0x40dcd1
push str._nError_saving_the_Task_:__x
call fcn.0040cb20
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
add esp, 8
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x40d9d3
push str._n_Success__Task_successfully_registered._:__x
call fcn.0040cb20
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 8
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x23a
push str.__d_ConfigureTask_LogOn_____End
call fcn.0040cb20
add esp, 8
lea esi, [esp + 0xc8]
call fcn.00405d00
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.004451b5
add esp, 0xe0
ret