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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52bb06
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x57d718]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], ecx
test edx, edx
je 0x409b75
test eax, eax
je 0x409b75
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
push 0x53a3bc
push 0x17
push 0
push 0x551d70
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40931c
push eax
push str.Cant_CoCreateInstance_:_x
call fcn.0040aaf0
add esp, 8
xor esi, esi
jmp 0x409b5d
lea eax, [ebp - 0x58]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x58], xmm0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
movups xmm0, xmmword [ebp - 0x58]
mov eax, dword [ebp - 0x20]
sub esp, 0x10
mov ecx, esp
mov byte [ebp - 4], 1
sub esp, 0x10
mov edx, dword [eax]
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 dword [edx + 0x28]
test eax, eax
jns 0x409377
push eax
push str.Cant_Connect_:_x
call fcn.0040aaf0
add esp, 8
xor esi, esi
jmp 0x409b53
mov dword [ebp - 0x34], 0
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x5c]
push 0x539a18
mov byte [ebp - 4], 2
call fcn.00408110
mov eax, dword [eax]
mov byte [ebp - 4], 3
test eax, eax
je 0x4093a0
mov ecx, dword [eax]
jmp 0x4093a2
xor ecx, ecx
mov eax, dword [esi]
lea edx, [ebp - 0x34]
push edx
push ecx
push esi
call dword [eax + 0x1c]
mov esi, dword [ebp - 0x5c]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x24], eax
test esi, esi
je 0x409400
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x409400
test esi, esi
je 0x409400
mov eax, dword [esi]
test eax, eax
je 0x4093db
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4093f2
push eax
call fcn.004bde24
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004bdb0a
mov eax, dword [ebp - 0x24]
add esp, 8
test eax, eax
jns 0x409419
push eax
push str.Cant_GetFolder_:_x
call fcn.0040aaf0
add esp, 8
xor esi, esi
jmp 0x409b42
mov dword [ebp - 0x30], 0
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x24]
push 0x539a18
mov byte [ebp - 4], 4
call fcn.00408110
mov eax, dword [eax]
mov byte [ebp - 4], 5
test eax, eax
je 0x409442
mov ecx, dword [eax]
jmp 0x409444
xor ecx, ecx
mov eax, dword [esi]
lea edx, [ebp - 0x30]
push edx
push ecx
push esi
call dword [eax + 0x24]
mov esi, dword [ebp - 0x24]
mov ecx, eax
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 4
test esi, esi
je 0x4094a2
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x4094a2
test esi, esi
je 0x4094a2
mov eax, dword [esi]
test eax, eax
je 0x40947d
push eax
call edi
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x409494
push eax
call fcn.004bde24
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004bdb0a
mov ecx, dword [ebp - 0x5c]
add esp, 8
test ecx, ecx
jns 0x4094f0
push ecx
push 0x539a18
push str.Cant_GetFolder_:_s___x
call fcn.0040aaf0
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
movups xmm0, xmmword [ebp - 0x58]
add esp, 0xc
mov edx, dword [eax]
push ecx
sub esp, 0x10
mov ecx, esp
push 0x539a18
push eax
movups xmmword [ecx], xmm0
call dword [edx + 0x2c]
test eax, eax
jns 0x4094f0
push eax
push str.Cant_CreateFolder_:_x
call fcn.0040aaf0
add esp, 8
xor esi, esi
jmp 0x409b31
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
push edx
push 0
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 6
call dword [ecx + 0x24]
test eax, eax
jns 0x409523
push eax
push str.Cant_NewTask_:_x
call fcn.0040aaf0
add esp, 8
xor esi, esi
jmp 0x409b20
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x2c]
push edx
push eax
mov byte [ebp - 4], 7
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
jns 0x409554
push eax
push str.Cant_get_Settings:__x
call fcn.0040aaf0
add esp, 8
xor esi, esi
jmp 0x409b0f
mov esi, dword [ebp - 0x2c]
mov eax, 0xb
mov word [ebp - 0x7c], ax
xor eax, eax
mov word [ebp - 0x74], ax
mov edi, dword [esi]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 8
call fcn.00408d60
movzx eax, ax
push eax
push esi
call dword [edi + 0x48]
mov esi, eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
jns 0x4095a1
push esi
push str.Cant_put_DisallowStartIfOnBatteries:__x
call fcn.0040aaf0
add esp, 8
xor esi, esi
jmp 0x409b0f
mov esi, dword [ebp - 0x2c]
mov eax, 0xb
mov word [ebp - 0x7c], ax
xor eax, eax
mov word [ebp - 0x74], ax
mov edi, dword [esi]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 9
call fcn.00408d60
movzx eax, ax
push eax
push esi
call dword [edi + 0x40]
mov esi, eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
jns 0x4095ee
push esi
push str.Cant_put_StopIfGoingOnBatteries:__x
call fcn.0040aaf0
add esp, 8
xor esi, esi
jmp 0x409b0f
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x44]
push edx
push eax
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
jns 0x40961f
push eax
push str.Cant_get_Triggers_:_x
call fcn.0040aaf0
add esp, 8
xor esi, esi
jmp 0x409afe
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
push edx
push 9
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 0xb
call dword [ecx + 0x28]
mov esi, eax
test esi, esi
jns 0x409654
push esi
push str.Cant_CreateTask_:_x
call fcn.0040aaf0
add esp, 8
xor esi, esi
jmp 0x409aed
mov eax, dword [ebp - 0x40]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x40967b
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x539c8c
push eax
call dword [ecx]
mov ecx, dword [ebp - 0x14]
xor edx, edx
test eax, eax
cmovs ecx, edx
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xc
test ecx, ecx
jne 0x409698
push esi
push str.Cant_logon_trigger_:_x
call fcn.0040aaf0
add esp, 8
xor esi, esi
jmp 0x409adc
mov eax, dword [ecx]
push 0xffffffffffffffff
push ecx
call dword [eax + 0x4c]
mov edi, dword [ebp - 0x14]
push str.Trigger1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x64], esi
test esi, esi
je 0x409ba1
mov eax, dword [edi]
push esi
push edi
mov byte [ebp - 4], 0xd
call dword [eax + 0x24]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
mov byte [ebp - 4], 0xc
call edi
cmp word [0x583648], 0
mov esi, dword [ebp - 0x14]
jne 0x4096f7
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x100
push eax
push 0x583648
push 2
call sub.Secur32.dll_GetUserNameExW
call fcn.004066f0
mov ecx, eax
test ecx, ecx
je 0x409bab
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x5c], eax
push 0x583648
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xe
call fcn.00406300
test al, al
jne 0x409735
push 0x583648
lea ecx, [ebp - 0x5c]
call fcn.00405e30
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xf
call fcn.00407b60
push dword [eax]
mov ecx, dword [esi]
push esi
mov byte [ebp - 4], 0x10
call dword [ecx + 0x5c]
push dword [ebp - 0x64]
call edi
lea ecx, [ebp - 0x5c]
call fcn.00405e10
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
call fcn.004079d0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0x11
push str.PT3S
push eax
call fcn.00406600
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x64]
add esp, 8
push dword [ebp - 0x5c]
call fcn.00407b60
push dword [eax]
mov ecx, dword [esi]
push esi
mov byte [ebp - 4], 0x12
call dword [ecx + 0x54]
push dword [ebp - 0x64]
call edi
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x3c]
push edx
push eax
mov byte [ebp - 4], 0x13
mov ecx, dword [eax]
call dword [ecx + 0x44]
test eax, eax
jns 0x4097d1
push eax
push str.Cant_get_Actions_:_x
call fcn.0040aaf0
add esp, 8
xor esi, esi
jmp 0x409ac3
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
push edx
push 0
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 0x14
call dword [ecx + 0x30]
test eax, eax
jns 0x409804
push eax
push str.Cant_Create_action_:_x
call fcn.0040aaf0
add esp, 8
xor esi, esi
jmp 0x409ab2
push dword [ebp - 0x38]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
call fcn.00407990
push dword [ebp - 0x6c]
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0x15
call fcn.00407b60
push dword [eax]
mov ecx, dword [esi]
push esi
mov byte [ebp - 4], 0x16
call dword [ecx + 0x2c]
push dword [ebp - 0x6c]
mov esi, eax
mov byte [ebp - 4], 0x15
call edi
test esi, esi
jns 0x409858
push esi
push str.Cant_put_Path:_x
call fcn.0040aaf0
add esp, 8
xor esi, esi
jmp 0x409aa1
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x40989b
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x68]
push eax
call fcn.00407b60
push dword [eax]
mov ecx, dword [esi]
push esi
mov byte [ebp - 4], 0x17
call dword [ecx + 0x34]
push dword [ebp - 0x68]
mov esi, eax
mov byte [ebp - 4], 0x15
call edi
test esi, esi
jns 0x40989b
push esi
push str.Cant_put_Arguments:_x
call fcn.0040aaf0
add esp, 8
xor esi, esi
jmp 0x409aa1
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x4098da
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x60]
push eax
call fcn.00407b60
push dword [eax]
mov ecx, dword [esi]
push esi
mov byte [ebp - 4], 0x18
call dword [ecx + 0x3c]
push dword [ebp - 0x60]
mov esi, eax
call edi
test esi, esi
jns 0x4098da
push esi
push str.Cant_put_WorkingDirectory:_x
call fcn.0040aaf0
add esp, 8
xor esi, esi
jmp 0x409aa1
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
push edx
push eax
mov byte [ebp - 4], 0x19
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
jns 0x40990b
push eax
push str.Cant_get_Principal:_x
call fcn.0040aaf0
add esp, 8
xor esi, esi
jmp 0x409a90
mov eax, dword [ebp - 0x28]
push str.Users
mov dword [ebp - 0x60], eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x68], esi
test esi, esi
je 0x409bb5
mov ecx, dword [ebp - 0x60]
push esi
push ecx
mov byte [ebp - 4], 0x1a
mov eax, dword [ecx]
call dword [eax + 0x40]
push esi
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 0x19
call edi
mov eax, dword [ebp - 0x60]
test eax, eax
jns 0x40995d
push eax
push str.Cant_put_GroupId:_x
call fcn.0040aaf0
add esp, 8
xor esi, esi
jmp 0x409a90
mov eax, dword [ebp - 0x28]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
test eax, eax
jns 0x409981
push eax
push str.Cant_put_RunLevel:_x
call fcn.0040aaf0
add esp, 8
xor esi, esi
jmp 0x409a90
mov dword [ebp - 0x48], 0
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0xa0]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0xa0], xmm0
call esi
movups xmm0, xmmword [ebp - 0xa0]
lea eax, [ebp - 0x90]
push eax
movups xmmword [ebp - 0xb0], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x90], xmm0
call esi
movups xmm0, xmmword [ebp - 0x90]
lea eax, [ebp - 0x7c]
push eax
movups xmmword [ebp - 0xc0], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x7c], xmm0
call esi
movups xmm0, xmmword [ebp - 0x7c]
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x60]
push dword [ebp - 0x80]
mov byte [ebp - 4], 0x1e
movups xmmword [ebp - 0xd0], xmm0
call fcn.00407b60
mov ecx, dword [eax]
lea eax, [ebp - 0x48]
movups xmm0, xmmword [ebp - 0xb0]
push eax
mov edx, dword [esi]
sub esp, 0x10
mov eax, esp
mov byte [ebp - 4], 0x1f
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 dword [ebp - 0x18]
movups xmmword [eax], xmm0
push ecx
push esi
call dword [edx + 0x44]
push dword [ebp - 0x60]
mov esi, eax
call edi
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x7c]
push eax
call edi
lea eax, [ebp - 0x90]
push eax
call edi
lea eax, [ebp - 0xa0]
push eax
call edi
test esi, esi
jns 0x409a7a
push esi
push str.Cant_RegisterTaskDefinition:_x
call fcn.0040aaf0
add esp, 8
xor esi, esi
jmp 0x409a7f
mov esi, 1
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 0x19
test eax, eax
je 0x409a90
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 0x15
test eax, eax
je 0x409aa1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x14
test eax, eax
je 0x409ab2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 0x13
test eax, eax
je 0x409ac3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 0x11
test eax, eax
je 0x409ad4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x5c]
call fcn.00405e10
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xb
test eax, eax
je 0x409aed
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x409afe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 7
test eax, eax
je 0x409b0f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 6
test eax, eax
je 0x409b20
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 4
test eax, eax
je 0x409b31
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 2
test eax, eax
je 0x409b42
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 1
test eax, eax
je 0x409b53
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x409b71
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
jmp 0x409b84
push str.Name_or_Path_IsNULL
call fcn.0040aaf0
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 - 0x10]
xor ecx, ebp
call fcn.004bddc0
mov esp, ebp
pop ebp
ret 0x10
push 0x8007000e
call fcn.004062e0
push 0x80004005
call fcn.004062e0
push 0x8007000e
call fcn.004062e0
int3