Function at 0x40a570
Capabilities:
Get session user name
Schedule task via itaskservice

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507756
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc0
mov eax, dword [0x54e39c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x68], eax
test eax, eax
je 0x40af31
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
push 0x5371dc
push 0x17
push 0
push 0x524b38
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40a605
push eax
push str.Cant_CoCreateInstance_:_x
call fcn.0040a310
add esp, 8
xor esi, esi
jmp 0x40af19
lea eax, [ebp - 0x60]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x60], xmm0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [ebp - 4], 2
sub esp, 0x10
mov eax, dword [ebp - 0x28]
movups xmm0, xmmword [ebp - 0x60]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
push eax
movups xmmword [ecx], xmm0
call edx
test eax, eax
jns 0x40a662
push eax
push str.Cant_Connect_:_x
call fcn.0040a310
add esp, 8
xor esi, esi
jmp 0x40af0f
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
mov esi, dword [ebp - 0x28]
push 0x5371ec
mov eax, dword [esi]
mov edi, dword [eax + 0x1c]
call fcn.0040a380
mov byte [ebp - 4], 5
mov eax, dword [eax]
test eax, eax
je 0x40a690
mov eax, dword [eax]
jmp 0x40a692
xor eax, eax
lea ecx, [ebp - 0x3c]
push ecx
push eax
push esi
call edi
mov esi, dword [ebp - 0x18]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x40a6ed
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40a6ed
test esi, esi
je 0x40a6ed
mov eax, dword [esi]
test eax, eax
je 0x40a6c8
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40a6df
push eax
call fcn.0049c328
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0049c2f7
mov eax, dword [ebp - 0x1c]
add esp, 8
test eax, eax
jns 0x40a706
push eax
push str.Cant_GetFolder_:_x
call fcn.0040a310
add esp, 8
xor esi, esi
jmp 0x40aefe
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x18]
mov esi, dword [ebp - 0x3c]
push 0x5371ec
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x1c], eax
call fcn.0040a380
mov byte [ebp - 4], 9
mov eax, dword [eax]
test eax, eax
je 0x40a737
mov eax, dword [eax]
jmp 0x40a739
xor eax, eax
lea ecx, [ebp - 0x38]
push ecx
push eax
push esi
call dword [ebp - 0x1c]
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x40a793
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40a793
test esi, esi
je 0x40a793
mov eax, dword [esi]
test eax, eax
je 0x40a76e
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40a785
push eax
call fcn.0049c328
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0049c2f7
mov eax, dword [ebp - 0x1c]
add esp, 8
test eax, eax
jns 0x40a85f
push eax
push 0x5371ec
push str.Cant_GetFolder_:_s___x
call fcn.0040a310
mov esi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x18]
movups xmm0, xmmword [ebp - 0x60]
add esp, 0xc
mov eax, dword [esi]
movups xmmword [ebp - 0x90], xmm0
push 0x5371ec
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x1c], eax
call fcn.0040a380
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
test ecx, ecx
je 0x40a7df
mov ecx, dword [ecx]
jmp 0x40a7e1
xor ecx, ecx
movups xmm0, xmmword [ebp - 0x90]
lea eax, [ebp - 0x38]
push eax
sub esp, 0x10
mov eax, esp
push ecx
push esi
movups xmmword [eax], xmm0
call dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x40a846
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40a846
test esi, esi
je 0x40a846
mov eax, dword [esi]
test eax, eax
je 0x40a821
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40a838
push eax
call fcn.0049c328
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0049c2f7
mov eax, dword [ebp - 0x1c]
add esp, 8
test eax, eax
jns 0x40a85f
push eax
push str.Cant_CreateFolder_:_x
call fcn.0040a310
add esp, 8
xor esi, esi
jmp 0x40aeed
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x28]
push edx
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
jns 0x40a892
push eax
push str.Cant_NewTask_:_x
call fcn.0040a310
add esp, 8
xor esi, esi
jmp 0x40aedc
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0x13
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x24]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
jns 0x40a8c3
push eax
push str.Cant_get_Settings:__x
call fcn.0040a310
add esp, 8
xor esi, esi
jmp 0x40aecb
mov esi, dword [ebp - 0x34]
mov eax, dword [esi]
mov edi, dword [eax + 0x48]
mov eax, 0xb
mov word [ebp - 0x80], ax
xor eax, eax
mov word [ebp - 0x78], ax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x19
call fcn.0040a490
movzx eax, ax
push eax
push esi
call edi
mov esi, eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
jns 0x40a912
push esi
push str.Cant_put_DisallowStartIfOnBatteries:__x
call fcn.0040a310
add esp, 8
xor esi, esi
jmp 0x40aecb
mov esi, dword [ebp - 0x34]
mov eax, dword [esi]
mov edi, dword [eax + 0x40]
mov eax, 0xb
mov word [ebp - 0x80], ax
xor eax, eax
mov word [ebp - 0x78], ax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x1f
call fcn.0040a490
movzx eax, ax
push eax
push esi
call edi
mov esi, eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
jns 0x40a961
push esi
push str.Cant_put_StopIfGoingOnBatteries:__x
call fcn.0040a310
add esp, 8
xor esi, esi
jmp 0x40aecb
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], 0x25
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x24]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
jns 0x40a992
push eax
push str.Cant_get_Triggers_:_x
call fcn.0040a310
add esp, 8
xor esi, esi
jmp 0x40aeba
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 0x2c
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
push edx
push 9
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov esi, eax
test esi, esi
jns 0x40a9c7
push esi
push str.Cant_CreateTask_:_x
call fcn.0040a310
add esp, 8
xor esi, esi
jmp 0x40aea9
mov byte [ebp - 4], 0x34
xor ecx, ecx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x40a9f2
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push 0x5371c4
push eax
call dword [ecx]
mov ecx, dword [ebp - 0x20]
xor edx, edx
test eax, eax
cmovs ecx, edx
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 0x35
test ecx, ecx
jne 0x40aa0f
push esi
push str.Cant_logon_trigger_:_x
call fcn.0040a310
add esp, 8
xor esi, esi
jmp 0x40ae98
mov eax, dword [ecx]
push 0xffffffffffffffff
push ecx
call dword [eax + 0x4c]
mov edi, dword [ebp - 0x20]
push str.Trigger1
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x64], esi
test esi, esi
je 0x40af5e
push esi
push edi
mov byte [ebp - 4], 0x3e
call dword [ebp - 0x1c]
push esi
mov byte [ebp - 4], 0x35
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp word [0x55aa98], 0
mov edi, dword [ebp - 0x20]
mov eax, dword [edi]
mov eax, dword [eax + 0x5c]
mov dword [ebp - 0x6c], eax
jne 0x40aa7b
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x100
push eax
push 0x55aa98
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x40af68
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, 0x55aa98
mov byte [ebp - 4], 0x3f
test eax, 0xffff0000
jne 0x40aab5
movzx eax, ax
lea ecx, [ebp - 0x18]
push eax
call fcn.00408d40
jmp 0x40aadd
mov ecx, 0x55aa98
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40aac0
sub ecx, edx
sar ecx, 1
push ecx
push 0x55aa98
lea ecx, [ebp - 0x18]
call fcn.00408f20
mov byte [ebp - 4], 0x40
lea ecx, [ebp - 0x64]
mov esi, dword [ebp - 0x18]
push esi
call fcn.0040a170
mov byte [ebp - 4], 0x41
push dword [eax]
push edi
call dword [ebp - 0x6c]
push dword [ebp - 0x64]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esi, 0xfffffff0
mov byte [ebp - 4], 0x42
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40ab1c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.0040c1a0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x43
push str.PT3S
push eax
call fcn.0040c260
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x6c]
mov edi, dword [ebp - 0x18]
add esp, 8
mov eax, dword [esi]
push edi
mov eax, dword [eax + 0x54]
mov dword [ebp - 0x64], eax
call fcn.0040a170
mov byte [ebp - 4], 0x44
push dword [eax]
push esi
call dword [ebp - 0x64]
push dword [ebp - 0x6c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 0x45
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x24]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
test eax, eax
jns 0x40ab9b
push eax
push str.Cant_get_Actions_:_x
call fcn.0040a310
add esp, 8
xor esi, esi
jmp 0x40ae6b
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 0x50
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x44]
push edx
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
test eax, eax
jns 0x40abce
push eax
push str.Cant_Create_action_:_x
call fcn.0040a310
add esp, 8
xor esi, esi
jmp 0x40ae5a
push dword [ebp - 0x40]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
call fcn.0040c0b0
mov byte [ebp - 4], 0x5c
lea ecx, [ebp - 0x68]
mov esi, dword [ebp - 0x30]
push dword [ebp - 0x68]
mov eax, dword [esi]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x64], eax
call fcn.0040a170
mov byte [ebp - 4], 0x5d
push dword [eax]
push esi
call dword [ebp - 0x64]
mov byte [ebp - 4], 0x5c
mov esi, eax
push dword [ebp - 0x68]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
jns 0x40ac2c
push esi
push str.Cant_put_Path:_x
call fcn.0040a310
add esp, 8
xor esi, esi
jmp 0x40ae49
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x64]
push 0x538390
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x68], eax
call fcn.0040a170
mov byte [ebp - 4], 0x6a
push dword [eax]
push esi
call dword [ebp - 0x68]
push dword [ebp - 0x64]
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
jns 0x40ac72
push esi
push str.Cant_put_Arguments:_x
call fcn.0040a310
add esp, 8
xor esi, esi
jmp 0x40ae49
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0x84
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
jns 0x40aca3
push eax
push str.Cant_get_Principal:_x
call fcn.0040a310
add esp, 8
xor esi, esi
jmp 0x40ae35
mov edi, dword [ebp - 0x2c]
push str.Users
mov eax, dword [edi]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x68], eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x64], esi
test esi, esi
je 0x40af72
push esi
push edi
mov byte [ebp - 4], 0x92
call dword [ebp - 0x68]
push esi
mov edi, eax
mov byte [ebp - 4], 0x84
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jns 0x40acf5
push edi
push str.Cant_put_GroupId:_x
call fcn.0040a310
add esp, 8
xor esi, esi
jmp 0x40ae35
mov eax, dword [ebp - 0x2c]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
test eax, eax
jns 0x40ad19
push eax
push str.Cant_put_RunLevel:_x
call fcn.0040a310
add esp, 8
xor esi, esi
jmp 0x40ae35
mov dword [ebp - 0x50], 0
mov esi, dword [ebp - 0x38]
xorps xmm0, xmm0
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esi]
movups xmmword [ebp - 0x90], xmm0
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x90]
push eax
call edi
movups xmm0, xmmword [ebp - 0x90]
lea eax, [ebp - 0xa0]
push eax
movups xmmword [ebp - 0xb0], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0xa0], xmm0
call edi
movups xmm0, xmmword [ebp - 0xa0]
lea eax, [ebp - 0x80]
push eax
movups xmmword [ebp - 0xc0], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x80], xmm0
call edi
mov byte [ebp - 4], 0xb0
lea ecx, [ebp - 0x64]
movups xmm0, xmmword [ebp - 0x80]
mov edi, dword [ebp - 0x24]
push str.ADBlockMasterTray
movups xmmword [ebp - 0xd0], xmm0
call fcn.0040a170
mov byte [ebp - 4], 0xb1
mov ecx, dword [eax]
lea eax, [ebp - 0x50]
movups xmm0, xmmword [ebp - 0xb0]
push eax
sub esp, 0x10
mov eax, esp
push 3
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [ebp - 0xc0]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0xd0]
push 6
push edi
push ecx
push esi
movups xmmword [eax], xmm0
call dword [ebp - 0x68]
push dword [ebp - 0x64]
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x80]
push eax
call edi
lea eax, [ebp - 0xa0]
push eax
call edi
lea eax, [ebp - 0x90]
push eax
call edi
test esi, esi
jns 0x40ae1f
push esi
push str.Cant_RegisterTaskDefinition:_x
call fcn.0040a310
add esp, 8
xor esi, esi
jmp 0x40ae24
mov esi, 1
mov byte [ebp - 4], 0xc0
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x40ae35
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc1
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40ae46
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 0xc2
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40ae5a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc3
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x40ae6b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc4
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x40ae7c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add edi, 0xfffffff0
mov byte [ebp - 4], 0xc5
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40ae98
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc6
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40aea9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc7
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x40aeba
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc8
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x40aecb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc9
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x40aedc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xca
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40aeed
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xcb
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x40aefe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xcc
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x40af0f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [ebp - 4], 0xcd
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x40af2d
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
jmp 0x40af40
push str.Name_or_Path_IsNULL
call fcn.0040a310
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049bdac
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x8007000e
call fcn.00404780
push 0x80004005
call fcn.00404780
push 0x8007000e
call fcn.00404780
int3