Function at 0x40a560
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 0x505b96
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc0
mov eax, dword [0x54c39c]
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 0x40af21
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 0x5351bc
push 0x17
push 0
push 0x522af8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40a5f5
push eax
push str.Cant_CoCreateInstance_:_x
call fcn.0040a300
add esp, 8
xor esi, esi
jmp 0x40af09
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 0x40a652
push eax
push str.Cant_Connect_:_x
call fcn.0040a300
add esp, 8
xor esi, esi
jmp 0x40aeff
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
mov esi, dword [ebp - 0x28]
push 0x5351cc
mov eax, dword [esi]
mov edi, dword [eax + 0x1c]
call fcn.0040a370
mov byte [ebp - 4], 5
mov eax, dword [eax]
test eax, eax
je 0x40a680
mov eax, dword [eax]
jmp 0x40a682
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 0x40a6dd
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40a6dd
test esi, esi
je 0x40a6dd
mov eax, dword [esi]
test eax, eax
je 0x40a6b8
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40a6cf
push eax
call fcn.0049a778
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0049a747
mov eax, dword [ebp - 0x1c]
add esp, 8
test eax, eax
jns 0x40a6f6
push eax
push str.Cant_GetFolder_:_x
call fcn.0040a300
add esp, 8
xor esi, esi
jmp 0x40aeee
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x18]
mov esi, dword [ebp - 0x3c]
push 0x5351cc
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x1c], eax
call fcn.0040a370
mov byte [ebp - 4], 9
mov eax, dword [eax]
test eax, eax
je 0x40a727
mov eax, dword [eax]
jmp 0x40a729
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 0x40a783
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40a783
test esi, esi
je 0x40a783
mov eax, dword [esi]
test eax, eax
je 0x40a75e
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40a775
push eax
call fcn.0049a778
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0049a747
mov eax, dword [ebp - 0x1c]
add esp, 8
test eax, eax
jns 0x40a84f
push eax
push 0x5351cc
push str.Cant_GetFolder_:_s___x
call fcn.0040a300
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 0x5351cc
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x1c], eax
call fcn.0040a370
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
test ecx, ecx
je 0x40a7cf
mov ecx, dword [ecx]
jmp 0x40a7d1
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 0x40a836
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40a836
test esi, esi
je 0x40a836
mov eax, dword [esi]
test eax, eax
je 0x40a811
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40a828
push eax
call fcn.0049a778
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0049a747
mov eax, dword [ebp - 0x1c]
add esp, 8
test eax, eax
jns 0x40a84f
push eax
push str.Cant_CreateFolder_:_x
call fcn.0040a300
add esp, 8
xor esi, esi
jmp 0x40aedd
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 0x40a882
push eax
push str.Cant_NewTask_:_x
call fcn.0040a300
add esp, 8
xor esi, esi
jmp 0x40aecc
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 0x40a8b3
push eax
push str.Cant_get_Settings:__x
call fcn.0040a300
add esp, 8
xor esi, esi
jmp 0x40aebb
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.0040a480
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 0x40a902
push esi
push str.Cant_put_DisallowStartIfOnBatteries:__x
call fcn.0040a300
add esp, 8
xor esi, esi
jmp 0x40aebb
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.0040a480
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 0x40a951
push esi
push str.Cant_put_StopIfGoingOnBatteries:__x
call fcn.0040a300
add esp, 8
xor esi, esi
jmp 0x40aebb
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 0x40a982
push eax
push str.Cant_get_Triggers_:_x
call fcn.0040a300
add esp, 8
xor esi, esi
jmp 0x40aeaa
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 0x40a9b7
push esi
push str.Cant_CreateTask_:_x
call fcn.0040a300
add esp, 8
xor esi, esi
jmp 0x40ae99
mov byte [ebp - 4], 0x34
xor ecx, ecx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x40a9e2
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push 0x5351a4
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 0x40a9ff
push esi
push str.Cant_logon_trigger_:_x
call fcn.0040a300
add esp, 8
xor esi, esi
jmp 0x40ae88
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 0x40af4e
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 [0x558a98], 0
mov edi, dword [ebp - 0x20]
mov eax, dword [edi]
mov eax, dword [eax + 0x5c]
mov dword [ebp - 0x6c], eax
jne 0x40aa6b
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x100
push eax
push 0x558a98
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x40af58
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, 0x558a98
mov byte [ebp - 4], 0x3f
test eax, 0xffff0000
jne 0x40aaa5
movzx eax, ax
lea ecx, [ebp - 0x18]
push eax
call fcn.00408d30
jmp 0x40aacd
mov ecx, 0x558a98
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40aab0
sub ecx, edx
sar ecx, 1
push ecx
push 0x558a98
lea ecx, [ebp - 0x18]
call fcn.00408f10
mov byte [ebp - 4], 0x40
lea ecx, [ebp - 0x64]
mov esi, dword [ebp - 0x18]
push esi
call fcn.0040a160
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 0x40ab0c
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.0040c180
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x43
push str.PT3S
push eax
call fcn.0040c240
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.0040a160
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 0x40ab8b
push eax
push str.Cant_get_Actions_:_x
call fcn.0040a300
add esp, 8
xor esi, esi
jmp 0x40ae5b
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 0x40abbe
push eax
push str.Cant_Create_action_:_x
call fcn.0040a300
add esp, 8
xor esi, esi
jmp 0x40ae4a
push dword [ebp - 0x40]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
call fcn.0040c090
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.0040a160
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 0x40ac1c
push esi
push str.Cant_put_Path:_x
call fcn.0040a300
add esp, 8
xor esi, esi
jmp 0x40ae39
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x64]
push 0x536370
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x68], eax
call fcn.0040a160
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 0x40ac62
push esi
push str.Cant_put_Arguments:_x
call fcn.0040a300
add esp, 8
xor esi, esi
jmp 0x40ae39
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 0x40ac93
push eax
push str.Cant_get_Principal:_x
call fcn.0040a300
add esp, 8
xor esi, esi
jmp 0x40ae25
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 0x40af62
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 0x40ace5
push edi
push str.Cant_put_GroupId:_x
call fcn.0040a300
add esp, 8
xor esi, esi
jmp 0x40ae25
mov eax, dword [ebp - 0x2c]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
test eax, eax
jns 0x40ad09
push eax
push str.Cant_put_RunLevel:_x
call fcn.0040a300
add esp, 8
xor esi, esi
jmp 0x40ae25
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.0040a160
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 0x40ae0f
push esi
push str.Cant_RegisterTaskDefinition:_x
call fcn.0040a300
add esp, 8
xor esi, esi
jmp 0x40ae14
mov esi, 1
mov byte [ebp - 4], 0xc0
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x40ae25
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc1
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40ae36
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 0x40ae4a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc3
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x40ae5b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc4
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x40ae6c
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 0x40ae88
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 0x40ae99
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc7
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x40aeaa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc8
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x40aebb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc9
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x40aecc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xca
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40aedd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xcb
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x40aeee
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xcc
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x40aeff
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 0x40af1d
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
jmp 0x40af30
push str.Name_or_Path_IsNULL
call fcn.0040a300
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.0049a1fc
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