Function at 0x40d712
Capabilities:
Schedule task via itaskservice

Disassembly:
push 0x12c
mov eax, 0x554bdf
call fcn.00534d8f
mov esi, ecx
mov dword [ebp - 0xc4], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
push ecx
push ecx
push 0x21
push str.NGSetupUtils::CTaskSchedulerWrapper::InitializeScheduler
push 0x5ce3ec
push dword [0x5ce3e8]
lea ecx, [ebp - 0x8c]
call fcn.0040514c
mov byte [ebp - 4], 1
lea ecx, [esi + 0xc]
lea eax, [ebp + 8]
cmp ecx, eax
je 0x40d764
push 0xffffffffffffffff
push ebx
push eax
call fcn.004042f0
mov dword [ebp - 0x90], ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x94], ebx
mov byte [ebp - 4], 3
mov byte [ebp - 4], 4
lea eax, [ebp - 0x94]
push eax
push 0x59cdcc
push 1
push ebx
push 0x59cdbc
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x90], eax
test eax, eax
jns 0x40d7bb
mov dword [ebp - 0xac], str.Failed_to_create_an_instance_of_ITaskService
push 0x5bb384
lea eax, [ebp - 0xac]
push eax
call fcn.005371ce
lea ecx, [ebp - 0x118]
call fcn.0040bbd0
mov byte [ebp - 4], 5
mov esi, eax
lea edi, [ebp - 0x138]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xf8]
call fcn.0040bbd0
mov byte [ebp - 4], 6
mov esi, eax
lea edi, [ebp - 0xe8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xd8]
call fcn.0040bbd0
mov byte [ebp - 4], 7
mov esi, eax
lea edi, [ebp - 0x128]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x108]
call fcn.0040bbd0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x94]
mov edx, dword [ecx]
sub esp, 0x10
lea esi, [ebp - 0x138]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebp - 0xe8]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebp - 0x128]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ecx
call dword [edx + 0x28]
mov edi, eax
mov dword [ebp - 0x90], edi
mov byte [ebp - 4], 7
lea eax, [ebp - 0x108]
push eax
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
call esi
mov byte [ebp - 4], 6
lea eax, [ebp - 0xd8]
push eax
call esi
mov byte [ebp - 4], 5
lea eax, [ebp - 0xf8]
push eax
call esi
mov byte [ebp - 4], 4
lea eax, [ebp - 0x118]
push eax
call esi
test edi, edi
jns 0x40d8bf
mov dword [ebp - 0xa8], str.ITaskService::Connect_failed
push 0x5bb384
lea eax, [ebp - 0xa8]
jmp 0x40d7b5
mov esi, dword [ebp - 0x94]
push 0x59ad0c
lea ecx, [ebp - 0xb8]
call fcn.0040bb78
mov byte [ebp - 4], 9
mov ecx, dword [eax]
mov edx, dword [esi]
mov edi, dword [ebp - 0xc4]
lea eax, [edi + 4]
push eax
push ecx
push esi
call dword [edx + 0x1c]
mov esi, eax
mov dword [ebp - 0x90], esi
mov byte [ebp - 4], 4
push dword [ebp - 0xb8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
jns 0x40d922
mov dword [ebp - 0xb0], str.Cannot_get_Root_Folder_pointer
push 0x5bb384
lea eax, [ebp - 0xb0]
jmp 0x40d7b5
lea esi, [edi + 8]
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax]
push esi
push ebx
push eax
call dword [ecx + 0x24]
mov dword [ebp - 0x90], eax
test eax, eax
jns 0x40d957
mov dword [ebp - 0xc0], str.Failed_to_create_a_task_definition
push 0x5bb384
lea eax, [ebp - 0xc0]
jmp 0x40d7b5
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 0xb
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [ebp - 0x9c]
push edx
push eax
call dword [ecx + 0x2c]
mov dword [ebp - 0x90], eax
test eax, eax
jns 0x40d998
mov dword [ebp - 0xa4], str.Failed_to_get_task_settings
push 0x5bb384
lea eax, [ebp - 0xa4]
jmp 0x40d7b5
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x48]
mov dword [ebp - 0x90], eax
test eax, eax
jns 0x40d9c9
mov dword [ebp - 0xa0], str.Failed_to_change_power_settings_for_task
push 0x5bb384
lea eax, [ebp - 0xa0]
jmp 0x40d7b5
mov dword [ebp - 0x98], ebx
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 0xd
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [ebp - 0x98]
push edx
push eax
call dword [ecx + 0x3c]
mov dword [ebp - 0x90], eax
test eax, eax
jns 0x40da0a
mov dword [ebp - 0xb4], str.Cannot_get_principal_pointer
push 0x5bb384
lea eax, [ebp - 0xb4]
jmp 0x40d7b5
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x48]
mov esi, eax
mov dword [ebp - 0x90], esi
test esi, esi
jns 0x40da3d
mov dword [ebp - 0xbc], str.Cannot_put_principal_run_level:_TASK_RUNLEVEL_LUA
push 0x5bb384
lea eax, [ebp - 0xbc]
jmp 0x40d7b5
mov byte [ebp - 4], 0xe
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x40da55
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xf
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x40da6d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0x10
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x40da85
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 1
jmp 0x40dac1
movzx esi, si
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x8c]
call fcn.004051b5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404190
mov eax, esi
call fcn.00534ce1
ret 0x18