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

Disassembly:
mov eax, 0x41573c
call fcn.00411720
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 0x41d83c
push 1
push esi
push 0x41d84c
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jge 0x407cf9
or dword [ebp - 4], 0xffffffff
xor al, al
jmp 0x40847b
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0xfc]
call fcn.00407c90
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
jge 0x407d6a
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
test eax, eax
je 0x407cf2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec edi
sub esi, 4
test edi, edi
jne 0x407d58
jmp 0x407cf2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push 0x417df0
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x407dad
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
test eax, eax
je 0x407cf2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec edi
sub esi, 4
test edi, edi
jne 0x407d98
jmp 0x407cf2
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0xfc]
call fcn.00407c90
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
jl 0x407e1d
mov edx, dword [ebp - 0x60]
lea ecx, [ebp - 0xfc]
call fcn.00407c90
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push 0
push esi
push eax
call dword [ecx + 0x3c]
test eax, eax
jge 0x407e1d
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
test eax, eax
je 0x407cf2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec edi
sub esi, 4
test edi, edi
jne 0x407e08
jmp 0x407cf2
call fcn.00401676
push eax
push dword [ebp + 8]
call fcn.0040414b
mov dword [ebx], eax
test eax, eax
jne 0x407e72
call fcn.00401676
mov edi, eax
call fcn.0040358c
xor esi, esi
mov dword [ebx], eax
cmp eax, esi
jne 0x407e74
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x407cf2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec edi
sub esi, 4
test edi, edi
jne 0x407e5d
jmp 0x407cf2
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
jge 0x407eb3
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x407cf2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec edi
sub esi, 4
test edi, edi
jne 0x407e9e
jmp 0x407cf2
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0xfc]
call fcn.00407c90
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x3c]
push edx
push eax
call dword [ecx + 0x24]
test eax, eax
jge 0x407eff
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x407cf2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec edi
sub esi, 4
test edi, edi
jne 0x407eea
jmp 0x407cf2
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0xfc]
call fcn.00407c90
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x48]
push edx
push eax
call dword [ecx + 0x44]
test eax, eax
jge 0x407f4b
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x407cf2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec edi
sub esi, 4
test edi, edi
jne 0x407f36
jmp 0x407cf2
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 0xfc]
call fcn.00407c90
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push eax
call dword [ecx + 0x3c]
test eax, eax
jge 0x407f97
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x407cf2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec edi
sub esi, 4
test edi, edi
jne 0x407f82
jmp 0x407cf2
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0xfc]
call fcn.00407c90
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x2c]
test eax, eax
jge 0x407fe3
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x407cf2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec edi
sub esi, 4
test edi, edi
jne 0x407fce
jmp 0x407cf2
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0xfc]
call fcn.00407c90
push 0x28
pop edi
cmp dword [ebp + 0xc], edi
jge 0x408035
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
push 3
push eax
call dword [ecx + 0x38]
cmp eax, esi
jge 0x408035
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x407cf2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec edi
sub esi, 4
test edi, edi
jne 0x408020
jmp 0x407cf2
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
jge 0x408074
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x407cf2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec edi
sub esi, 4
test edi, edi
jne 0x40805f
jmp 0x407cf2
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0xfc]
call fcn.00407c90
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
jge 0x4080c4
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x407cf2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec edi
sub esi, 4
test edi, edi
jne 0x4080af
jmp 0x407cf2
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0xfc]
call fcn.00407c90
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.00403269
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
lea edx, [ebp - 0x104]
push edx
push eax
call dword [ecx + 0x34]
cmp dword [ebp + 0xc], edi
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
jl 0x408201
push 8
push eax
call dword [ecx + 0x28]
test eax, eax
jge 0x408147
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x407cf2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec edi
sub esi, 4
test edi, edi
jne 0x408132
jmp 0x407cf2
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0xfc]
call fcn.00407c90
cmp dword [ebp + 0xc], edi
jl 0x408165
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
jge 0x4082fe
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x407cf2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec edi
sub esi, 4
test edi, edi
jne 0x4081ec
jmp 0x407cf2
push 9
push eax
call dword [ecx + 0x28]
test eax, eax
jge 0x408238
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x407cf2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec edi
sub esi, 4
test edi, edi
jne 0x408223
jmp 0x407cf2
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0xfc]
call fcn.00407c90
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x38]
push edx
push 0x41d86c
mov dword [ebp - 0x38], esi
mov ecx, dword [eax]
push eax
call dword [ecx]
cmp eax, esi
jge 0x40828b
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x407cf2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec edi
sub esi, 4
test edi, edi
jne 0x408276
jmp 0x407cf2
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0xfc]
call fcn.00407c90
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 0x408155
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 0x408155
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov edi, eax
cmp eax, esi
je 0x407cf2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec edi
sub esi, 4
test edi, edi
jne 0x4082e9
jmp 0x407cf2
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0xfc]
call fcn.00407c90
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 0x408378
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 0x408395
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
jge 0x4083d7
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 0x407cf2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec edi
sub esi, 4
test edi, edi
jne 0x4083c2
jmp 0x407cf2
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0xfc]
call fcn.00407c90
cmp dword [ebp + 0xc], 0x32
je 0x40844c
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
jge 0x40843e
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 0x407cf2
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec edi
sub esi, 4
test edi, edi
jne 0x408429
jmp 0x407cf2
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0xfc]
call fcn.00407c90
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 0x408479
lea esi, [ebp + eax*4 - 0x100]
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
dec edi
sub esi, 4
test edi, edi
jne 0x408469
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret