Function at 0x40a700
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 0x4e9bb6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc0
mov eax, dword [0x52a394]
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, dword [ebx + 0xc]
mov dword [ebp - 0x68], eax
test eax, eax
je 0x40b0c1
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 0x516d2c
push 0x17
push 0
push 0x505cf8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40a796
push eax
push str.Cant_CoCreateInstance_:_x
call fcn.0040a4a0
add esp, 8
xor esi, esi
jmp 0x40b0a9
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 0x40a7f3
push eax
push str.Cant_Connect_:_x
call fcn.0040a4a0
add esp, 8
xor esi, esi
jmp 0x40b09f
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
mov esi, dword [ebp - 0x28]
push 0x516d3c
mov eax, dword [esi]
mov edi, dword [eax + 0x1c]
call fcn.0040a510
mov byte [ebp - 4], 5
mov eax, dword [eax]
test eax, eax
je 0x40a821
mov eax, dword [eax]
jmp 0x40a823
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 0x40a87e
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40a87e
test esi, esi
je 0x40a87e
mov eax, dword [esi]
test eax, eax
je 0x40a859
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40a870
push eax
call fcn.00494028
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00493ff7
mov eax, dword [ebp - 0x1c]
add esp, 8
test eax, eax
jns 0x40a897
push eax
push str.Cant_GetFolder_:_x
call fcn.0040a4a0
add esp, 8
xor esi, esi
jmp 0x40b08e
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x18]
mov esi, dword [ebp - 0x3c]
push 0x516d3c
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x1c], eax
call fcn.0040a510
mov byte [ebp - 4], 9
mov eax, dword [eax]
test eax, eax
je 0x40a8c8
mov eax, dword [eax]
jmp 0x40a8ca
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 0x40a924
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40a924
test esi, esi
je 0x40a924
mov eax, dword [esi]
test eax, eax
je 0x40a8ff
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40a916
push eax
call fcn.00494028
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00493ff7
mov eax, dword [ebp - 0x1c]
add esp, 8
test eax, eax
jns 0x40a9f0
push eax
push 0x516d3c
push str.Cant_GetFolder_:_s___x
call fcn.0040a4a0
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 0x516d3c
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x1c], eax
call fcn.0040a510
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
test ecx, ecx
je 0x40a970
mov ecx, dword [ecx]
jmp 0x40a972
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 0x40a9d7
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40a9d7
test esi, esi
je 0x40a9d7
mov eax, dword [esi]
test eax, eax
je 0x40a9b2
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40a9c9
push eax
call fcn.00494028
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00493ff7
mov eax, dword [ebp - 0x1c]
add esp, 8
test eax, eax
jns 0x40a9f0
push eax
push str.Cant_CreateFolder_:_x
call fcn.0040a4a0
add esp, 8
xor esi, esi
jmp 0x40b07d
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 0x40aa23
push eax
push str.Cant_NewTask_:_x
call fcn.0040a4a0
add esp, 8
xor esi, esi
jmp 0x40b06c
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 0x40aa54
push eax
push str.Cant_get_Settings:__x
call fcn.0040a4a0
add esp, 8
xor esi, esi
jmp 0x40b05b
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.0040a620
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 0x40aaa3
push esi
push str.Cant_put_DisallowStartIfOnBatteries:__x
call fcn.0040a4a0
add esp, 8
xor esi, esi
jmp 0x40b05b
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.0040a620
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 0x40aaf2
push esi
push str.Cant_put_StopIfGoingOnBatteries:__x
call fcn.0040a4a0
add esp, 8
xor esi, esi
jmp 0x40b05b
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 0x40ab23
push eax
push str.Cant_get_Triggers_:_x
call fcn.0040a4a0
add esp, 8
xor esi, esi
jmp 0x40b04a
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 0x40ab58
push esi
push str.Cant_CreateTask_:_x
call fcn.0040a4a0
add esp, 8
xor esi, esi
jmp 0x40b039
mov byte [ebp - 4], 0x34
xor ecx, ecx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x40ab83
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push 0x516d14
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 0x40aba0
push esi
push str.Cant_logon_trigger_:_x
call fcn.0040a4a0
add esp, 8
xor esi, esi
jmp 0x40b028
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 0x40b0f0
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 [0x535038], 0
mov edi, dword [ebp - 0x20]
mov eax, dword [edi]
mov eax, dword [eax + 0x5c]
mov dword [ebp - 0x6c], eax
jne 0x40ac0c
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x100
push eax
push 0x535038
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x40b0fa
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, 0x535038
mov byte [ebp - 4], 0x3f
test eax, 0xffff0000
jne 0x40ac46
movzx eax, ax
lea ecx, [ebp - 0x18]
push eax
call fcn.00408ed0
jmp 0x40ac6d
mov ecx, 0x535038
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ac50
sub ecx, edx
sar ecx, 1
push ecx
push 0x535038
lea ecx, [ebp - 0x18]
call fcn.004090b0
mov byte [ebp - 4], 0x40
lea ecx, [ebp - 0x64]
mov esi, dword [ebp - 0x18]
push esi
call fcn.0040a300
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 0x40acac
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.0040c6b0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x43
push str.PT3S
push eax
call fcn.0040c770
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.0040a300
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 0x40ad2b
push eax
push str.Cant_get_Actions_:_x
call fcn.0040a4a0
add esp, 8
xor esi, esi
jmp 0x40affb
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 0x40ad5e
push eax
push str.Cant_Create_action_:_x
call fcn.0040a4a0
add esp, 8
xor esi, esi
jmp 0x40afea
push dword [ebp - 0x40]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
call fcn.0040c5c0
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.0040a300
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 0x40adbc
push esi
push str.Cant_put_Path:_x
call fcn.0040a4a0
add esp, 8
xor esi, esi
jmp 0x40afd9
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x64]
push 0x517c34
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x68], eax
call fcn.0040a300
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 0x40ae02
push esi
push str.Cant_put_Arguments:_x
call fcn.0040a4a0
add esp, 8
xor esi, esi
jmp 0x40afd9
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 0x40ae33
push eax
push str.Cant_get_Principal:_x
call fcn.0040a4a0
add esp, 8
xor esi, esi
jmp 0x40afc5
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 0x40b104
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 0x40ae85
push edi
push str.Cant_put_GroupId:_x
call fcn.0040a4a0
add esp, 8
xor esi, esi
jmp 0x40afc5
mov eax, dword [ebp - 0x2c]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
test eax, eax
jns 0x40aea9
push eax
push str.Cant_put_RunLevel:_x
call fcn.0040a4a0
add esp, 8
xor esi, esi
jmp 0x40afc5
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.0040a300
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 0x40afaf
push esi
push str.Cant_RegisterTaskDefinition:_x
call fcn.0040a4a0
add esp, 8
xor esi, esi
jmp 0x40afb4
mov esi, 1
mov byte [ebp - 4], 0xc0
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x40afc5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc1
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40afd6
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 0x40afea
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc3
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x40affb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc4
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x40b00c
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 0x40b028
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 0x40b039
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc7
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x40b04a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc8
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x40b05b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc9
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x40b06c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xca
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40b07d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xcb
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x40b08e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xcc
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x40b09f
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 0x40b0bd
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
jmp 0x40b0d0
push str.Name_or_Path_IsNULL
call fcn.0040a4a0
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.00493aac
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
push 0x8007000e
call fcn.00404780
push 0x80004005
call fcn.00404780
push 0x8007000e
call fcn.00404780
int3