Function at 0x40a460
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 0x501ff6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc0
mov eax, dword [0x548394]
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 0x40ae21
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 0x53151c
push 0x17
push 0
push 0x51ee78
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40a4f5
push eax
push str.Cant_CoCreateInstance_:_x
call fcn.0040a200
add esp, 8
xor esi, esi
jmp 0x40ae09
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 0x40a552
push eax
push str.Cant_Connect_:_x
call fcn.0040a200
add esp, 8
xor esi, esi
jmp 0x40adff
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
mov esi, dword [ebp - 0x28]
push 0x53152c
mov eax, dword [esi]
mov edi, dword [eax + 0x1c]
call fcn.0040a270
mov byte [ebp - 4], 5
mov eax, dword [eax]
test eax, eax
je 0x40a580
mov eax, dword [eax]
jmp 0x40a582
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 0x40a5dd
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40a5dd
test esi, esi
je 0x40a5dd
mov eax, dword [esi]
test eax, eax
je 0x40a5b8
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40a5cf
push eax
call fcn.00496b28
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00496af7
mov eax, dword [ebp - 0x1c]
add esp, 8
test eax, eax
jns 0x40a5f6
push eax
push str.Cant_GetFolder_:_x
call fcn.0040a200
add esp, 8
xor esi, esi
jmp 0x40adee
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x18]
mov esi, dword [ebp - 0x3c]
push 0x53152c
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x1c], eax
call fcn.0040a270
mov byte [ebp - 4], 9
mov eax, dword [eax]
test eax, eax
je 0x40a627
mov eax, dword [eax]
jmp 0x40a629
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 0x40a683
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40a683
test esi, esi
je 0x40a683
mov eax, dword [esi]
test eax, eax
je 0x40a65e
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40a675
push eax
call fcn.00496b28
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00496af7
mov eax, dword [ebp - 0x1c]
add esp, 8
test eax, eax
jns 0x40a74f
push eax
push 0x53152c
push str.Cant_GetFolder_:_s___x
call fcn.0040a200
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 0x53152c
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x1c], eax
call fcn.0040a270
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
test ecx, ecx
je 0x40a6cf
mov ecx, dword [ecx]
jmp 0x40a6d1
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 0x40a736
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40a736
test esi, esi
je 0x40a736
mov eax, dword [esi]
test eax, eax
je 0x40a711
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40a728
push eax
call fcn.00496b28
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00496af7
mov eax, dword [ebp - 0x1c]
add esp, 8
test eax, eax
jns 0x40a74f
push eax
push str.Cant_CreateFolder_:_x
call fcn.0040a200
add esp, 8
xor esi, esi
jmp 0x40addd
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 0x40a782
push eax
push str.Cant_NewTask_:_x
call fcn.0040a200
add esp, 8
xor esi, esi
jmp 0x40adcc
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 0x40a7b3
push eax
push str.Cant_get_Settings:__x
call fcn.0040a200
add esp, 8
xor esi, esi
jmp 0x40adbb
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.0040a380
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 0x40a802
push esi
push str.Cant_put_DisallowStartIfOnBatteries:__x
call fcn.0040a200
add esp, 8
xor esi, esi
jmp 0x40adbb
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.0040a380
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 0x40a851
push esi
push str.Cant_put_StopIfGoingOnBatteries:__x
call fcn.0040a200
add esp, 8
xor esi, esi
jmp 0x40adbb
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 0x40a882
push eax
push str.Cant_get_Triggers_:_x
call fcn.0040a200
add esp, 8
xor esi, esi
jmp 0x40adaa
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 0x40a8b7
push esi
push str.Cant_CreateTask_:_x
call fcn.0040a200
add esp, 8
xor esi, esi
jmp 0x40ad99
mov byte [ebp - 4], 0x34
xor ecx, ecx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x40a8e2
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push 0x531504
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 0x40a8ff
push esi
push str.Cant_logon_trigger_:_x
call fcn.0040a200
add esp, 8
xor esi, esi
jmp 0x40ad88
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 0x40ae4e
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 [0x5541d0], 0
mov edi, dword [ebp - 0x20]
mov eax, dword [edi]
mov eax, dword [eax + 0x5c]
mov dword [ebp - 0x6c], eax
jne 0x40a96b
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x100
push eax
push 0x5541d0
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
call fcn.004049b0
mov ecx, eax
test ecx, ecx
je 0x40ae58
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, 0x5541d0
mov byte [ebp - 4], 0x3f
test eax, 0xffff0000
jne 0x40a9a5
movzx eax, ax
lea ecx, [ebp - 0x18]
push eax
call fcn.00408c30
jmp 0x40a9cd
mov ecx, 0x5541d0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a9b0
sub ecx, edx
sar ecx, 1
push ecx
push 0x5541d0
lea ecx, [ebp - 0x18]
call fcn.00408e10
mov byte [ebp - 4], 0x40
lea ecx, [ebp - 0x64]
mov esi, dword [ebp - 0x18]
push esi
call fcn.0040a060
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 0x40aa0c
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.0040c080
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x43
push str.PT3S
push eax
call fcn.0040c140
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.0040a060
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 0x40aa8b
push eax
push str.Cant_get_Actions_:_x
call fcn.0040a200
add esp, 8
xor esi, esi
jmp 0x40ad5b
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 0x40aabe
push eax
push str.Cant_Create_action_:_x
call fcn.0040a200
add esp, 8
xor esi, esi
jmp 0x40ad4a
push dword [ebp - 0x40]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
call fcn.0040bf90
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.0040a060
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 0x40ab1c
push esi
push str.Cant_put_Path:_x
call fcn.0040a200
add esp, 8
xor esi, esi
jmp 0x40ad39
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x64]
push 0x532730
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x68], eax
call fcn.0040a060
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 0x40ab62
push esi
push str.Cant_put_Arguments:_x
call fcn.0040a200
add esp, 8
xor esi, esi
jmp 0x40ad39
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 0x40ab93
push eax
push str.Cant_get_Principal:_x
call fcn.0040a200
add esp, 8
xor esi, esi
jmp 0x40ad25
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 0x40ae62
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 0x40abe5
push edi
push str.Cant_put_GroupId:_x
call fcn.0040a200
add esp, 8
xor esi, esi
jmp 0x40ad25
mov eax, dword [ebp - 0x2c]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
test eax, eax
jns 0x40ac09
push eax
push str.Cant_put_RunLevel:_x
call fcn.0040a200
add esp, 8
xor esi, esi
jmp 0x40ad25
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.0040a060
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 0x40ad0f
push esi
push str.Cant_RegisterTaskDefinition:_x
call fcn.0040a200
add esp, 8
xor esi, esi
jmp 0x40ad14
mov esi, 1
mov byte [ebp - 4], 0xc0
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x40ad25
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc1
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40ad36
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 0x40ad4a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc3
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x40ad5b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc4
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x40ad6c
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 0x40ad88
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 0x40ad99
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc7
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x40adaa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc8
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x40adbb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc9
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x40adcc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xca
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40addd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xcb
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x40adee
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xcc
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x40adff
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 0x40ae1d
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
jmp 0x40ae30
push str.Name_or_Path_IsNULL
call fcn.0040a200
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.004965ac
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