Function at 0x4076e7
Capabilities:
Schedule task via itaskservice

Disassembly:
push 0xac
mov eax, 0x504b96
call fcn.0049b39b
mov dword [ebp - 0x20], ecx
cmp dword [ebp + 8], 0
je 0x407e15
cmp dword [ebp + 0xc], 0
je 0x407e15
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 0x51042c
push 0x17
push ebx
push 0x525a00
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x407749
push eax
push str.Cant_CoCreateInstance_:_x
call fcn.00408b38
pop ecx
pop ecx
jmp 0x407e00
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 0x4077af
push eax
push str.Cant_Connect_:_x
call fcn.00408b38
pop ecx
pop ecx
jmp 0x407df6
mov dword [ebp - 0x34], ebx
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
mov edi, 0x50fa70
mov byte [ebp - 4], 2
push edi
call fcn.00406b0e
mov ecx, dword [eax]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x4077d5
mov ecx, dword [ecx]
jmp 0x4077d7
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 0x4077f0
call fcn.00408b89
test esi, esi
jns 0x407806
push esi
push str.Cant_GetFolder_:_x
call fcn.00408b38
pop ecx
pop ecx
jmp 0x407de5
mov dword [ebp - 0x30], ebx
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x10]
push edi
mov byte [ebp - 4], 4
call fcn.00406b0e
mov ecx, dword [eax]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x407827
mov ecx, dword [ecx]
jmp 0x407829
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 0x407846
call fcn.00408b89
test esi, esi
jns 0x40788d
push esi
push edi
push str.Cant_GetFolder_:_s___x
call fcn.00408b38
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 0x50fa70
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 0x40788d
push eax
push str.Cant_CreateFolder_:_x
call fcn.00408b38
pop ecx
pop ecx
jmp 0x407dd4
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 0x4078b8
push eax
push str.Cant_NewTask_:_x
call fcn.00408b38
pop ecx
pop ecx
jmp 0x407dc3
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 0x4078d8
push eax
push str.Cant_get_Settings:__x
jmp 0x407952
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.004072a9
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 0x407916
push esi
push str.Cant_put_DisallowStartIfOnBatteries:__x
jmp 0x407952
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.004072a9
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 0x40795e
push esi
push str.Cant_put_StopIfGoingOnBatteries:__x
call fcn.00408b38
pop ecx
pop ecx
jmp 0x407db2
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 0x407988
push eax
push str.Cant_get_Triggers_:_x
call fcn.00408b38
pop ecx
pop ecx
jmp 0x407da1
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 0x4079b8
push esi
push str.Cant_CreateTask_:_x
call fcn.00408b38
pop ecx
pop ecx
jmp 0x407d90
push dword [ebp - 0x40]
lea ecx, [ebp - 0x18]
call fcn.0040663c
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0xc
test eax, eax
jne 0x4079e0
push esi
push str.Cant_logon_trigger_:_x
call fcn.00408b38
pop ecx
pop ecx
jmp 0x407d7d
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.00406851
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.004080aa
push dword [eax]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xe
call fcn.00406851
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.00405808
call fcn.00405323
push eax
lea ecx, [ebp - 0x10]
call fcn.00404aa6
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0x10
push str.PT3S
push eax
call fcn.0040522e
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x18]
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x20]
call fcn.00406851
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 0x407ac0
push eax
push str.Cant_get_Actions_:_x
call fcn.00408b38
pop ecx
pop ecx
jmp 0x407d64
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 0x407aeb
push eax
push str.Cant_Create_action_:_x
call fcn.00408b38
pop ecx
pop ecx
jmp 0x407d53
push dword [ebp - 0x38]
lea ecx, [ebp - 0x28]
call fcn.00406613
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x28]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0x14
call fcn.00406851
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 0x407b2f
push edi
push str.Cant_put_Path:_x
jmp 0x407b9f
cmp dword [ebp + 0x14], 0
je 0x407b6a
push dword [ebp + 0x14]
mov edi, dword [ebp - 0x28]
lea ecx, [ebp + 0xc]
call fcn.00406851
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 0x407b6a
push edi
push str.Cant_put_Arguments:_x
jmp 0x407b9f
cmp dword [ebp + 0x10], 0
je 0x407bab
push dword [ebp + 0x10]
mov edi, dword [ebp - 0x28]
lea ecx, [ebp + 0xc]
call fcn.00406851
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 0x407bab
push edi
push str.Cant_put_WorkingDirectory:_x
call fcn.00408b38
pop ecx
pop ecx
jmp 0x407d42
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 0x407bcb
push eax
push str.Cant_get_Principal:_x
jmp 0x407c17
mov edi, dword [ebp - 0x24]
lea ecx, [ebp + 0xc]
push str.Users
call fcn.00406851
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 0x407c02
push edi
push str.Cant_put_GroupId:_x
jmp 0x407c17
mov eax, dword [ebp - 0x24]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
test eax, eax
jns 0x407c23
push eax
push str.Cant_put_RunLevel:_x
call fcn.00408b38
pop ecx
pop ecx
jmp 0x407d31
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.00406851
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 0x407d1a
push esi
push str.Cant_RegisterTaskDefinition:_x
call fcn.00408b38
pop ecx
pop ecx
xor ebx, ebx
jmp 0x407d1d
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 0x18
test eax, eax
je 0x407d2e
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 0x407d42
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 0x13
test eax, eax
je 0x407d53
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 0x12
test eax, eax
je 0x407d64
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 0x10
test eax, eax
je 0x407d75
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi - 0x10]
call fcn.00405808
push 0xb
pop eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x407d90
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x407da1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 7
test eax, eax
je 0x407db2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 6
test eax, eax
je 0x407dc3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 4
test eax, eax
je 0x407dd4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 2
test eax, eax
je 0x407de5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 1
test eax, eax
je 0x407df6
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 0x407e11
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, ebx
jmp 0x407e22
push str.Name_or_Path_IsNULL
call fcn.00408b38
pop ecx
xor eax, eax
call fcn.0049b364
ret 0x10