Function at 0x408bb7
Capabilities:
Schedule task via itaskservice

Disassembly:
push 0xac
mov eax, 0x520636
call fcn.004b3248
mov dword [ebp - 0x20], ecx
cmp dword [ebp + 8], 0
je 0x4092e5
cmp dword [ebp + 0xc], 0
je 0x4092e5
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], ebx
push eax
push 0x52e48c
push 0x17
push ebx
push 0x545580
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x408c19
push eax
push str.Cant_CoCreateInstance_:_x
call fcn.0040a008
pop ecx
pop ecx
jmp 0x4092d0
xor eax, eax
lea edi, [ebp - 0x68]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
sub esp, 0x10
mov eax, dword [ebp - 0x1c]
mov edi, esp
mov byte [ebp - 4], 1
lea esi, [ebp - 0x68]
sub esp, 0x10
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x68]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x68]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x68]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x28]
test eax, eax
jns 0x408c7f
push eax
push str.Cant_Connect_:_x
call fcn.0040a008
pop ecx
pop ecx
jmp 0x4092c6
mov dword [ebp - 0x34], ebx
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
mov edi, 0x52dad0
mov byte [ebp - 4], 2
push edi
call fcn.00407fde
mov ecx, dword [eax]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x408ca5
mov ecx, dword [ecx]
jmp 0x408ca7
mov ecx, ebx
mov eax, dword [esi]
lea edx, [ebp - 0x34]
push edx
push ecx
push esi
call dword [eax + 0x1c]
mov ecx, dword [ebp - 0x10]
mov esi, eax
test ecx, ecx
je 0x408cc0
call fcn.0040a059
test esi, esi
jns 0x408cd6
push esi
push str.Cant_GetFolder_:_x
call fcn.0040a008
pop ecx
pop ecx
jmp 0x4092b5
mov dword [ebp - 0x30], ebx
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x10]
push edi
mov byte [ebp - 4], 4
call fcn.00407fde
mov ecx, dword [eax]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x408cf7
mov ecx, dword [ecx]
jmp 0x408cf9
mov ecx, ebx
mov eax, dword [esi]
lea edx, [ebp - 0x30]
push edx
push ecx
push esi
call dword [eax + 0x24]
mov ecx, dword [ebp - 0x10]
mov esi, eax
mov byte [ebp - 4], 4
test ecx, ecx
je 0x408d16
call fcn.0040a059
test esi, esi
jns 0x408d5d
push esi
push edi
push str.Cant_GetFolder_:_s___x
call fcn.0040a008
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
add esp, 0xc
lea esi, [ebp - 0x68]
mov ecx, dword [eax]
push edx
sub esp, 0x10
mov edi, esp
push 0x52dad0
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x2c]
test eax, eax
jns 0x408d5d
push eax
push str.Cant_CreateFolder_:_x
call fcn.0040a008
pop ecx
pop ecx
jmp 0x4092a4
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
push edx
push ebx
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 6
call dword [ecx + 0x24]
test eax, eax
jns 0x408d88
push eax
push str.Cant_NewTask_:_x
call fcn.0040a008
pop ecx
pop ecx
jmp 0x409293
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x2c]
push edx
push eax
mov byte [ebp - 4], 7
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
jns 0x408da8
push eax
push str.Cant_get_Settings:__x
jmp 0x408e22
mov esi, dword [ebp - 0x2c]
push 0xb
pop eax
mov word [ebp - 0x58], ax
xor eax, eax
mov word [ebp - 0x50], ax
mov edi, dword [esi]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 8
call fcn.00408779
movzx eax, ax
push eax
push esi
call dword [edi + 0x48]
mov esi, eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
jns 0x408de6
push esi
push str.Cant_put_DisallowStartIfOnBatteries:__x
jmp 0x408e22
mov esi, dword [ebp - 0x2c]
push 0xb
pop eax
mov word [ebp - 0x58], ax
xor eax, eax
mov word [ebp - 0x50], ax
mov edi, dword [esi]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 9
call fcn.00408779
movzx eax, ax
push eax
push esi
call dword [edi + 0x40]
mov esi, eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
jns 0x408e2e
push esi
push str.Cant_put_StopIfGoingOnBatteries:__x
call fcn.0040a008
pop ecx
pop ecx
jmp 0x409282
mov dword [ebp - 0x44], ebx
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x44]
push edx
push eax
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
jns 0x408e58
push eax
push str.Cant_get_Triggers_:_x
call fcn.0040a008
pop ecx
pop ecx
jmp 0x409271
mov dword [ebp - 0x40], ebx
push 0xb
pop eax
mov byte [ebp - 4], al
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x44]
push edx
push 9
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov esi, eax
test esi, esi
jns 0x408e88
push esi
push str.Cant_CreateTask_:_x
call fcn.0040a008
pop ecx
pop ecx
jmp 0x409260
push dword [ebp - 0x40]
lea ecx, [ebp - 0x18]
call fcn.00407b0c
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0xc
test eax, eax
jne 0x408eb0
push esi
push str.Cant_logon_trigger_:_x
call fcn.0040a008
pop ecx
pop ecx
jmp 0x40924d
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0x4c]
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push str.Trigger1
call fcn.00407d21
push dword [eax]
mov ecx, dword [esi]
push esi
mov byte [ebp - 4], 0xd
call dword [ecx + 0x24]
push dword [ebp - 0x10]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 0xc
call edi
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov esi, dword [ebp - 0x18]
push eax
call fcn.0040957a
push dword [eax]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xe
call fcn.00407d21
push dword [eax]
mov ecx, dword [esi]
push esi
mov byte [ebp - 4], 0xf
call dword [ecx + 0x5c]
push dword [ebp - 0x20]
call edi
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 0xc
lea ecx, [ecx - 0x10]
call fcn.00406cd8
call fcn.004067f6
push eax
lea ecx, [ebp - 0x10]
call fcn.00405f79
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0x10
push str.PT3S
push eax
call fcn.00406701
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x18]
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x20]
call fcn.00407d21
push dword [eax]
mov ecx, dword [edi]
push edi
mov byte [ebp - 4], 0x11
call dword [ecx + 0x54]
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x3c]
push edx
push eax
mov byte [ebp - 4], 0x12
mov ecx, dword [eax]
call dword [ecx + 0x44]
test eax, eax
jns 0x408f90
push eax
push str.Cant_get_Actions_:_x
call fcn.0040a008
pop ecx
pop ecx
jmp 0x409234
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
push edx
push ebx
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 0x13
call dword [ecx + 0x30]
test eax, eax
jns 0x408fbb
push eax
push str.Cant_Create_action_:_x
call fcn.0040a008
pop ecx
pop ecx
jmp 0x409223
push dword [ebp - 0x38]
lea ecx, [ebp - 0x28]
call fcn.00407ae3
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x28]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0x14
call fcn.00407d21
push dword [eax]
mov ecx, dword [edi]
push edi
mov byte [ebp - 4], 0x15
call dword [ecx + 0x2c]
push dword [ebp + 0xc]
mov edi, eax
mov byte [ebp - 4], 0x14
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jns 0x408fff
push edi
push str.Cant_put_Path:_x
jmp 0x40906f
cmp dword [ebp + 0x14], 0
je 0x40903a
push dword [ebp + 0x14]
mov edi, dword [ebp - 0x28]
lea ecx, [ebp + 0xc]
call fcn.00407d21
push dword [eax]
mov ecx, dword [edi]
push edi
mov byte [ebp - 4], 0x16
call dword [ecx + 0x34]
push dword [ebp + 0xc]
mov edi, eax
mov byte [ebp - 4], 0x14
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jns 0x40903a
push edi
push str.Cant_put_Arguments:_x
jmp 0x40906f
cmp dword [ebp + 0x10], 0
je 0x40907b
push dword [ebp + 0x10]
mov edi, dword [ebp - 0x28]
lea ecx, [ebp + 0xc]
call fcn.00407d21
push dword [eax]
mov ecx, dword [edi]
push edi
mov byte [ebp - 4], 0x17
call dword [ecx + 0x3c]
push dword [ebp + 0xc]
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jns 0x40907b
push edi
push str.Cant_put_WorkingDirectory:_x
call fcn.0040a008
pop ecx
pop ecx
jmp 0x409212
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
push edx
push eax
mov byte [ebp - 4], 0x18
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
jns 0x40909b
push eax
push str.Cant_get_Principal:_x
jmp 0x4090e7
mov edi, dword [ebp - 0x24]
lea ecx, [ebp + 0xc]
push str.Users
call fcn.00407d21
push dword [eax]
mov ecx, dword [edi]
push edi
mov byte [ebp - 4], 0x19
call dword [ecx + 0x40]
push dword [ebp + 0xc]
mov edi, eax
mov byte [ebp - 4], 0x18
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jns 0x4090d2
push edi
push str.Cant_put_GroupId:_x
jmp 0x4090e7
mov eax, dword [ebp - 0x24]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
test eax, eax
jns 0x4090f3
push eax
push str.Cant_put_RunLevel:_x
call fcn.0040a008
pop ecx
pop ecx
jmp 0x409201
mov dword [ebp - 0x48], ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edi, [ebp - 0x88]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x88]
push eax
call ebx
lea esi, [ebp - 0x88]
xor eax, eax
lea edi, [ebp - 0x98]
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 edi, [ebp - 0x78]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x78]
push eax
call ebx
lea esi, [ebp - 0x78]
xor eax, eax
lea edi, [ebp - 0xa8]
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 edi, [ebp - 0x58]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
push eax
call ebx
push dword [ebp + 8]
mov ebx, dword [ebp - 0x30]
lea esi, [ebp - 0x58]
lea edi, [ebp - 0xb8]
mov byte [ebp - 4], 0x1d
movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00407d21
lea edx, [ebp - 0x48]
mov ecx, dword [ebx]
push edx
sub esp, 0x10
mov byte [ebp - 4], 0x1e
mov edi, esp
lea esi, [ebp - 0x98]
push 3
movsd dword es:[edi], dword [esi]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0xa8]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0xb8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 6
push dword [ebp - 0x14]
movsd dword es:[edi], dword [esi]
push dword [eax]
push ebx
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x44]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x58]
push eax
call ebx
lea eax, [ebp - 0x78]
push eax
call ebx
lea eax, [ebp - 0x88]
push eax
call ebx
test esi, esi
jns 0x4091ea
push esi
push str.Cant_RegisterTaskDefinition:_x
call fcn.0040a008
pop ecx
pop ecx
xor ebx, ebx
jmp 0x4091ed
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 0x18
test eax, eax
je 0x4091fe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0x14
test eax, eax
je 0x409212
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 0x13
test eax, eax
je 0x409223
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 0x12
test eax, eax
je 0x409234
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 0x10
test eax, eax
je 0x409245
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi - 0x10]
call fcn.00406cd8
push 0xb
pop eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x409260
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x409271
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 7
test eax, eax
je 0x409282
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 6
test eax, eax
je 0x409293
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 4
test eax, eax
je 0x4092a4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 2
test eax, eax
je 0x4092b5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 1
test eax, eax
je 0x4092c6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4092e1
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, ebx
jmp 0x4092f2
push str.Name_or_Path_IsNULL
call fcn.0040a008
pop ecx
xor eax, eax
call fcn.004b3211
ret 0x10