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

Disassembly:
mov eax, 0x41d8fa
call fcn.004198ec
sub esp, 0x8f8
push ebx
push esi
push edi
lea eax, [ebp - 0x5c]
push eax
mov ebx, ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
xor esi, esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push 0x4287bc
push 1
push esi
push 0x4287cc
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jge 0x40a4d9
or dword [ebp - 4], 0xffffffff
xor al, al
jmp 0x40ac3c
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0xfc]
call fcn.0040a46e
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x28]
test eax, eax
jns 0x40a548
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
test eax, eax
je 0x40a4d2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
sub esi, 4
dec edi
jne 0x40a538
jmp 0x40a4d2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push 0x4215cc
push eax
call dword [ecx + 0x1c]
test eax, eax
jns 0x40a589
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
test eax, eax
je 0x40a4d2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
sub esi, 4
dec edi
jne 0x40a576
jmp 0x40a4d2
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0xfc]
call fcn.0040a46e
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
lea edx, [ebp - 0x60]
push edx
mov esi, str.MicrosoftWindowsMedia_CenterPBDARegisterSW
push esi
push eax
call dword [ecx + 0x34]
test eax, eax
js 0x40a5f7
mov edx, dword [ebp - 0x60]
lea ecx, [ebp - 0xfc]
call fcn.0040a46e
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push 0
push esi
push eax
call dword [ecx + 0x3c]
test eax, eax
jns 0x40a5f7
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
test eax, eax
je 0x40a4d2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
sub esi, 4
dec edi
jne 0x40a5e4
jmp 0x40a4d2
push str..exe
call fcn.004016c1
push eax
push dword [ebp + 8]
call fcn.00404e26
mov dword [ebx], eax
test eax, eax
jne 0x40a64d
call fcn.004016c1
mov edi, eax
call fcn.00403fca
mov dword [ebx], eax
test eax, eax
jne 0x40a64d
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
test eax, eax
je 0x40a4d2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
sub esi, 4
dec edi
jne 0x40a63a
jmp 0x40a4d2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push 0
push eax
call dword [ecx + 0x24]
test eax, eax
jns 0x40a68b
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
test eax, eax
je 0x40a4d2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
sub esi, 4
dec edi
jne 0x40a678
jmp 0x40a4d2
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0xfc]
call fcn.0040a46e
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x3c]
push edx
push eax
call dword [ecx + 0x24]
test eax, eax
jns 0x40a6d5
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
test eax, eax
je 0x40a4d2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
sub esi, 4
dec edi
jne 0x40a6c2
jmp 0x40a4d2
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0xfc]
call fcn.0040a46e
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x48]
push edx
push eax
call dword [ecx + 0x44]
test eax, eax
jns 0x40a71f
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
test eax, eax
je 0x40a4d2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
sub esi, 4
dec edi
jne 0x40a70c
jmp 0x40a4d2
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 0xfc]
call fcn.0040a46e
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push eax
call dword [ecx + 0x3c]
test eax, eax
jns 0x40a769
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
test eax, eax
je 0x40a4d2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
sub esi, 4
dec edi
jne 0x40a756
jmp 0x40a4d2
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0xfc]
call fcn.0040a46e
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x2c]
test eax, eax
jns 0x40a7b3
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
test eax, eax
je 0x40a4d2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
sub esi, 4
dec edi
jne 0x40a7a0
jmp 0x40a4d2
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0xfc]
call fcn.0040a46e
cmp dword [ebp + 0xc], 0x28
jge 0x40a801
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
push 3
push eax
call dword [ecx + 0x38]
test eax, eax
jns 0x40a801
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
test eax, eax
je 0x40a4d2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
sub esi, 4
dec edi
jne 0x40a7ee
jmp 0x40a4d2
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
lea edx, [ebp - 0x44]
push edx
push 0
push eax
call dword [ecx + 0x30]
test eax, eax
jns 0x40a83f
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
test eax, eax
je 0x40a4d2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
sub esi, 4
dec edi
jne 0x40a82c
jmp 0x40a4d2
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0xfc]
call fcn.0040a46e
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
push edx
push str.MbLk
push eax
call dword [ecx]
test eax, eax
jns 0x40a88d
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
test eax, eax
je 0x40a4d2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
sub esi, 4
dec edi
jne 0x40a87a
jmp 0x40a4d2
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0xfc]
call fcn.0040a46e
mov eax, dword [ebp - 0x34]
push dword [ebx]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
push 3
push dword [ebp + 8]
lea esi, [ebp - 0x104]
call fcn.004039ef
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
mov edx, esi
push edx
push eax
call dword [ecx + 0x34]
cmp dword [ebp + 0xc], 0x28
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
jl 0x40a9c7
push 8
push eax
call dword [ecx + 0x28]
test eax, eax
jns 0x40a90a
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
test eax, eax
je 0x40a4d2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
sub esi, 4
dec edi
jne 0x40a8f7
jmp 0x40a4d2
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0xfc]
call fcn.0040a46e
xor edi, edi
cmp dword [ebp + 0xc], 0x28
jl 0x40a92b
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
or ebx, 0xffffffff
push ebx
push eax
call dword [ecx + 0x98]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push str.PT1M
push eax
call dword [ecx + 0x28]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push 0x1f4
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push str.PT0S
push eax
call dword [ecx + 0x70]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x40]
push edx
push eax
call dword [ecx + 0x9c]
test eax, eax
jns 0x40aac4
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x7c]
mov ebx, eax
cmp eax, edi
je 0x40a4d2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec ebx
sub esi, 4
cmp ebx, edi
jne 0x40a9b2
jmp 0x40a4d2
push 9
push eax
call dword [ecx + 0x28]
test eax, eax
jns 0x40a9fc
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
test eax, eax
je 0x40a4d2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
sub esi, 4
dec edi
jne 0x40a9e9
jmp 0x40a4d2
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0xfc]
call fcn.0040a46e
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x38]
push edx
xor edi, edi
push 0x4287ec
mov dword [ebp - 0x38], edi
mov ecx, dword [eax]
push eax
call dword [ecx]
cmp eax, edi
jge 0x40aa51
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov ebx, eax
cmp eax, edi
je 0x40a4d2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec ebx
sub esi, 4
cmp ebx, edi
jne 0x40aa3c
jmp 0x40a4d2
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0xfc]
call fcn.0040a46e
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x904]
push eax
mov dword [ebp - 0x30], 0x400
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x40a91a
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
lea edx, [ebp - 0x904]
push edx
push eax
call dword [ecx + 0x5c]
cmp eax, edi
jge 0x40a91a
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov ebx, eax
cmp eax, edi
je 0x40a4d2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec ebx
sub esi, 4
cmp ebx, edi
jne 0x40aaaf
jmp 0x40a4d2
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0xfc]
call fcn.0040a46e
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x30]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 8
push edi
lea eax, [ebp - 0x74]
push eax
push eax
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
push str.NT_AUTHORITYSystem
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea edx, [ebp - 0x28]
push edx
sub esp, 0x10
cmp dword [ebp + 0xc], 0x28
lea esi, [ebp - 0x5c]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x5c]
jge 0x40ab3f
push 3
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
mov edi, esp
push 6
push dword [ebp - 0x18]
lea esi, [ebp - 0x5c]
push str.PBDARegisterSW
jmp 0x40ab5c
push 5
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
mov edi, esp
push 6
push dword [ebp - 0x18]
lea esi, [ebp - 0x74]
push str.MicrosoftWindowsMedia_CenterPBDARegisterSW
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x44]
test eax, eax
jns 0x40ab9c
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x7c]
mov edi, eax
test eax, eax
je 0x40a4d2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
sub esi, 4
dec edi
jne 0x40ab89
jmp 0x40a4d2
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0xfc]
call fcn.0040a46e
cmp dword [ebp + 0xc], 0x32
je 0x40ac0f
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
lea edx, [ebp - 0x30]
push edx
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x30]
test eax, eax
jns 0x40ac01
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x7c]
mov edi, eax
test eax, eax
je 0x40a4d2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
sub esi, 4
dec edi
jne 0x40abee
jmp 0x40a4d2
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0xfc]
call fcn.0040a46e
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x7c]
mov edi, eax
test eax, eax
je 0x40ac3a
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
sub esi, 4
dec edi
jne 0x40ac2c
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret