Function at 0x40a7b0
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 0x502e66
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc0
mov eax, dword [0x549394]
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 0x40b171
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 0x53251c
push 0x17
push 0
push 0x51fe78
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40a845
push eax
push str.Cant_CoCreateInstance_:_x
call fcn.0040a550
add esp, 8
xor esi, esi
jmp 0x40b159
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 0x40a8a2
push eax
push str.Cant_Connect_:_x
call fcn.0040a550
add esp, 8
xor esi, esi
jmp 0x40b14f
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
mov esi, dword [ebp - 0x28]
push 0x53252c
mov eax, dword [esi]
mov edi, dword [eax + 0x1c]
call fcn.0040a5c0
mov byte [ebp - 4], 5
mov eax, dword [eax]
test eax, eax
je 0x40a8d0
mov eax, dword [eax]
jmp 0x40a8d2
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 0x40a92d
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40a92d
test esi, esi
je 0x40a92d
mov eax, dword [esi]
test eax, eax
je 0x40a908
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40a91f
push eax
call fcn.004979a8
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00497977
mov eax, dword [ebp - 0x1c]
add esp, 8
test eax, eax
jns 0x40a946
push eax
push str.Cant_GetFolder_:_x
call fcn.0040a550
add esp, 8
xor esi, esi
jmp 0x40b13e
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x18]
mov esi, dword [ebp - 0x3c]
push 0x53252c
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x1c], eax
call fcn.0040a5c0
mov byte [ebp - 4], 9
mov eax, dword [eax]
test eax, eax
je 0x40a977
mov eax, dword [eax]
jmp 0x40a979
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 0x40a9d3
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40a9d3
test esi, esi
je 0x40a9d3
mov eax, dword [esi]
test eax, eax
je 0x40a9ae
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40a9c5
push eax
call fcn.004979a8
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00497977
mov eax, dword [ebp - 0x1c]
add esp, 8
test eax, eax
jns 0x40aa9f
push eax
push 0x53252c
push str.Cant_GetFolder_:_s___x
call fcn.0040a550
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 0x53252c
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x1c], eax
call fcn.0040a5c0
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
test ecx, ecx
je 0x40aa1f
mov ecx, dword [ecx]
jmp 0x40aa21
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 0x40aa86
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40aa86
test esi, esi
je 0x40aa86
mov eax, dword [esi]
test eax, eax
je 0x40aa61
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40aa78
push eax
call fcn.004979a8
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00497977
mov eax, dword [ebp - 0x1c]
add esp, 8
test eax, eax
jns 0x40aa9f
push eax
push str.Cant_CreateFolder_:_x
call fcn.0040a550
add esp, 8
xor esi, esi
jmp 0x40b12d
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 0x40aad2
push eax
push str.Cant_NewTask_:_x
call fcn.0040a550
add esp, 8
xor esi, esi
jmp 0x40b11c
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 0x40ab03
push eax
push str.Cant_get_Settings:__x
call fcn.0040a550
add esp, 8
xor esi, esi
jmp 0x40b10b
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.0040a6d0
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 0x40ab52
push esi
push str.Cant_put_DisallowStartIfOnBatteries:__x
call fcn.0040a550
add esp, 8
xor esi, esi
jmp 0x40b10b
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.0040a6d0
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 0x40aba1
push esi
push str.Cant_put_StopIfGoingOnBatteries:__x
call fcn.0040a550
add esp, 8
xor esi, esi
jmp 0x40b10b
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 0x40abd2
push eax
push str.Cant_get_Triggers_:_x
call fcn.0040a550
add esp, 8
xor esi, esi
jmp 0x40b0fa
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 0x40ac07
push esi
push str.Cant_CreateTask_:_x
call fcn.0040a550
add esp, 8
xor esi, esi
jmp 0x40b0e9
mov byte [ebp - 4], 0x34
xor ecx, ecx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x40ac32
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push 0x532504
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 0x40ac4f
push esi
push str.Cant_logon_trigger_:_x
call fcn.0040a550
add esp, 8
xor esi, esi
jmp 0x40b0d8
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 0x40b19e
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 [0x555170], 0
mov edi, dword [ebp - 0x20]
mov eax, dword [edi]
mov eax, dword [eax + 0x5c]
mov dword [ebp - 0x6c], eax
jne 0x40acbb
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x100
push eax
push 0x555170
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x40b1a8
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, 0x555170
mov byte [ebp - 4], 0x3f
test eax, 0xffff0000
jne 0x40acf5
movzx eax, ax
lea ecx, [ebp - 0x18]
push eax
call fcn.00408f80
jmp 0x40ad1d
mov ecx, 0x555170
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ad00
sub ecx, edx
sar ecx, 1
push ecx
push 0x555170
lea ecx, [ebp - 0x18]
call fcn.00409160
mov byte [ebp - 4], 0x40
lea ecx, [ebp - 0x64]
mov esi, dword [ebp - 0x18]
push esi
call fcn.0040a3b0
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 0x40ad5c
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.0040c760
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x43
push str.PT3S
push eax
call fcn.0040c820
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.0040a3b0
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 0x40addb
push eax
push str.Cant_get_Actions_:_x
call fcn.0040a550
add esp, 8
xor esi, esi
jmp 0x40b0ab
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 0x40ae0e
push eax
push str.Cant_Create_action_:_x
call fcn.0040a550
add esp, 8
xor esi, esi
jmp 0x40b09a
push dword [ebp - 0x40]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
call fcn.0040c670
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.0040a3b0
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 0x40ae6c
push esi
push str.Cant_put_Path:_x
call fcn.0040a550
add esp, 8
xor esi, esi
jmp 0x40b089
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x64]
push 0x5336d8
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x68], eax
call fcn.0040a3b0
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 0x40aeb2
push esi
push str.Cant_put_Arguments:_x
call fcn.0040a550
add esp, 8
xor esi, esi
jmp 0x40b089
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 0x40aee3
push eax
push str.Cant_get_Principal:_x
call fcn.0040a550
add esp, 8
xor esi, esi
jmp 0x40b075
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 0x40b1b2
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 0x40af35
push edi
push str.Cant_put_GroupId:_x
call fcn.0040a550
add esp, 8
xor esi, esi
jmp 0x40b075
mov eax, dword [ebp - 0x2c]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
test eax, eax
jns 0x40af59
push eax
push str.Cant_put_RunLevel:_x
call fcn.0040a550
add esp, 8
xor esi, esi
jmp 0x40b075
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.0040a3b0
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 0x40b05f
push esi
push str.Cant_RegisterTaskDefinition:_x
call fcn.0040a550
add esp, 8
xor esi, esi
jmp 0x40b064
mov esi, 1
mov byte [ebp - 4], 0xc0
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x40b075
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc1
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40b086
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 0x40b09a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc3
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x40b0ab
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc4
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x40b0bc
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 0x40b0d8
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 0x40b0e9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc7
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x40b0fa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc8
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x40b10b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc9
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x40b11c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xca
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40b12d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xcb
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x40b13e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xcc
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x40b14f
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 0x40b16d
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
jmp 0x40b180
push str.Name_or_Path_IsNULL
call fcn.0040a550
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.0049742c
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