Function at 0x40929d
Capabilities:
Schedule task via itaskscheduler

Disassembly:
push 0x84
mov eax, 0x48112e
call fcn.00455cee
xor esi, esi
push esi
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 4
jl 0x40941c
lea eax, [ebp - 0x10]
push eax
push 0x4851d0
push 1
push esi
push 0x4853c0
mov dword [ebp - 0x10], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x40948b
push str.Created_ITaskService
call fcn.004083b8
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
pop ecx
lea eax, [ebp - 0x40]
push eax
call ebx
mov dword [ebp - 4], esi
lea esi, [ebp - 0x40]
lea edi, [ebp - 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x50]
push eax
movsd dword es:[edi], dword [esi]
call ebx
lea esi, [ebp - 0x50]
lea edi, [ebp - 0x80]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x60]
push eax
movsd dword es:[edi], dword [esi]
call ebx
lea esi, [ebp - 0x60]
lea edi, [ebp - 0x90]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x30]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov byte [ebp - 4], 3
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x70]
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 edi, esp
lea esi, [ebp - 0x80]
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 edi, esp
mov eax, dword [ebp - 0x10]
lea esi, [ebp - 0x90]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x28]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
lea eax, [ebp - 0x30]
push eax
setge bl
call esi
lea eax, [ebp - 0x60]
push eax
call esi
lea eax, [ebp - 0x50]
push eax
call esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x40]
push eax
call esi
test bl, bl
je 0x40948b
and dword [ebp - 0x18], 0
lea esi, [ebp - 0x1c]
call fcn.004081bc
mov dword [ebp - 4], 4
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
lea esi, [ebp - 0x18]
push esi
push eax
push ecx
call dword [edx + 0x1c]
test eax, eax
setge bl
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x1c]
mov dword [ebp + 8], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test bl, bl
je 0x40948b
push dword [ebp + 0xc]
lea edi, [ebp + 0xc]
call fcn.004081ee
mov dword [ebp - 4], 5
mov eax, dword [eax]
test eax, eax
je 0x409400
mov eax, dword [eax]
jmp 0x409402
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
push 0
push eax
push ecx
call dword [edx + 0x3c]
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40948b
call fcn.00408297
jmp 0x40948b
lea eax, [ebp - 0x14]
push eax
push 0x485170
push 1
push esi
push 0x485190
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
mov dword [ebp + 8], eax
jl 0x40948b
push str.Task_scheduler_connect_to_ITaskscheduler
call fcn.004083b8
mov eax, dword [ebp - 0x14]
pop ecx
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push 0x485150
push 0x485180
push dword [ebp + 0xc]
push eax
call dword [ecx + 0x20]
mov dword [ebp + 8], eax
cmp eax, 0x80070050
jne 0x40948b
push str.Task_already_exists
call fcn.004083b8
mov eax, dword [ebp - 0x14]
pop ecx
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
push str.Delete_task
call fcn.004083b8
pop ecx
mov eax, dword [ebp + 8]
call fcn.00455dc6
ret 8