Function at 0x40a6f0
Capabilities:
Get session user name
Schedule task via itaskscheduler

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x458
mov eax, dword [0x493040]
xor eax, esp
mov dword [esp + 0x454], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
push 0x30
mov dword [esp + 0x10], eax
lea eax, [esp + 0x44]
push 0
push eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.0045c980
add esp, 0xc
mov dword [esp + 0x2c], 0
xor edi, edi
mov dword [esp + 0x28], 0x1f4
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x1c]
push eax
push 0x48fa14
push 1
push edi
push 0x48f9e8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x40a935
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push 0x48fa98
push 0x48f9d8
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x20]
mov esi, eax
test esi, esi
js 0x40a935
mov eax, dword [esp + 0x18]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x80]
mov esi, eax
test esi, esi
js 0x40a935
mov esi, dword [esp + 8]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a7f0
sub ecx, edx
sar ecx, 1
je 0x40a819
mov eax, dword [esp + 0x18]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov esi, eax
test esi, esi
js 0x40a935
mov eax, dword [esp + 0x18]
push 0x2000
push eax
mov ecx, dword [eax]
call dword [ecx + 0x70]
mov esi, eax
test esi, esi
js 0x40a935
mov esi, dword [esp + 0xc]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a840
sub ecx, edx
sar ecx, 1
je 0x40a856
push 0
push esi
jmp 0x40a86d
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0
lea edx, [esp + 0x74]
push edx
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x78]
mov esi, eax
test esi, esi
js 0x40a935
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x30]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
js 0x40a935
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, 0x30
lea edx, [esp + 0x40]
mov word [esp + 0x40], ax
movzx eax, word [esp + 0x36]
mov word [esp + 0x48], ax
movzx eax, word [esp + 0x32]
mov word [esp + 0x46], ax
movzx eax, word [esp + 0x30]
mov word [esp + 0x44], ax
mov eax, 0x13
mov word [esp + 0x50], ax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x60], eax
mov eax, 7
mov word [esp + 0x64], ax
mov eax, dword [esp + 0x24]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
js 0x40a935
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push 0x47c460
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
test esi, esi
js 0x40a935
mov eax, dword [esp + 0x20]
push 1
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
mov eax, 1
test esi, esi
cmovns edi, eax
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40a943
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x40a951
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x40a95f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x40a96d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x45c]
xor eax, eax
test edi, edi
pop edi
cmove eax, esi
pop esi
xor ecx, esp
call fcn.0045a978
mov esp, ebp
pop ebp
ret