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

Disassembly:
mov eax, 0x4144ae
call fcn.004104dc
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 0x41c6d0
push 1
push esi
push 0x41c6e0
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jge 0x408527
or dword [ebp - 4], 0xffffffff
xor al, al
jmp 0x408c81
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0xfc]
call fcn.00401a66
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 0x408596
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
test eax, eax
je 0x408520
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 0x408586
jmp 0x408520
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push 0x4173d8
push eax
call dword [ecx + 0x1c]
test eax, eax
jns 0x4085d7
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
test eax, eax
je 0x408520
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 0x4085c4
jmp 0x408520
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0xfc]
call fcn.00401a66
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 0x408645
mov edx, dword [ebp - 0x60]
lea ecx, [ebp - 0xfc]
call fcn.00401a66
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push 0
push esi
push eax
call dword [ecx + 0x3c]
test eax, eax
jns 0x408645
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
test eax, eax
je 0x408520
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 0x408632
jmp 0x408520
call fcn.0040dbd1
push eax
push dword [ebp + 8]
call fcn.0040b723
mov dword [ebx], eax
test eax, eax
jne 0x408698
call fcn.0040dbd1
mov edi, eax
call fcn.0040c2d5
xor esi, esi
mov dword [ebx], eax
cmp eax, esi
jne 0x40869a
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x408520
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 0x408685
jmp 0x408520
xor esi, esi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push esi
push eax
call dword [ecx + 0x24]
test eax, eax
jns 0x4086d7
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x408520
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 0x4086c4
jmp 0x408520
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0xfc]
call fcn.00401a66
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 0x408721
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x408520
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 0x40870e
jmp 0x408520
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0xfc]
call fcn.00401a66
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 0x40876b
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x408520
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 0x408758
jmp 0x408520
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 0xfc]
call fcn.00401a66
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 0x4087b5
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x408520
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 0x4087a2
jmp 0x408520
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0xfc]
call fcn.00401a66
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 0x4087ff
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x408520
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 0x4087ec
jmp 0x408520
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0xfc]
call fcn.00401a66
push 0x28
pop edi
cmp dword [ebp + 0xc], edi
jge 0x40884f
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
push 3
push eax
call dword [ecx + 0x38]
cmp eax, esi
jge 0x40884f
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x408520
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 0x40883c
jmp 0x408520
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
lea edx, [ebp - 0x44]
push edx
push esi
push eax
call dword [ecx + 0x30]
test eax, eax
jns 0x40888c
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x408520
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 0x408879
jmp 0x408520
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0xfc]
call fcn.00401a66
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 0x4088da
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x408520
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 0x4088c7
jmp 0x408520
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0xfc]
call fcn.00401a66
mov eax, dword [ebp - 0x34]
push dword [ebx]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
push 3
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.0040c9fd
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
lea edx, [ebp - 0x104]
push edx
push eax
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
cmp dword [ebp + 0xc], edi
jl 0x408a13
push 8
push eax
call dword [ecx + 0x28]
test eax, eax
jns 0x40895b
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x408520
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 0x408948
jmp 0x408520
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0xfc]
call fcn.00401a66
cmp dword [ebp + 0xc], edi
jl 0x408979
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 esi
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 esi
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push esi
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 0x408b0a
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x408520
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 0x408a00
jmp 0x408520
push 9
push eax
call dword [ecx + 0x28]
test eax, eax
jns 0x408a48
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x408520
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 0x408a35
jmp 0x408520
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0xfc]
call fcn.00401a66
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x38]
push edx
push 0x41c700
mov dword [ebp - 0x38], esi
mov ecx, dword [eax]
push eax
call dword [ecx]
cmp eax, esi
jge 0x408a99
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x408520
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 0x408a86
jmp 0x408520
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0xfc]
call fcn.00401a66
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 0x408969
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
lea edx, [ebp - 0x904]
push edx
push eax
call dword [ecx + 0x5c]
cmp eax, esi
jge 0x408969
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x408520
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 0x408af7
jmp 0x408520
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0xfc]
call fcn.00401a66
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x30]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 8
push esi
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], edi
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 0x408b84
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 0x408ba1
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 0x408be1
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 0x408520
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 0x408bce
jmp 0x408520
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0xfc]
call fcn.00401a66
cmp dword [ebp + 0xc], 0x32
je 0x408c54
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 0x408c46
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 0x408520
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 0x408c33
jmp 0x408520
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0xfc]
call fcn.00401a66
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 0x408c7f
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 0x408c71
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret