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

Disassembly:
push ebp
sub esp, 0x7d0
lea ebp, [esp - 4]
mov eax, dword [0x41b028]
xor eax, ebp
mov dword [ebp + 0x7d0], eax
push 0x20
mov eax, 0x4106cf
call fcn.0040fb7e
mov eax, dword [ebp + 0x7dc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x7e0]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x7e4]
mov esi, ecx
mov dword [ebp - 0x20], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.UPCChelper.dll_int___cdecl_STIsCurrentUserLocalAdministrator_void_]
cmp eax, ebx
je 0x406a80
lea eax, [ebp - 0x18]
push eax
push 0x4128b0
push 1
push ebx
push 0x4128d0
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x406a80
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x4128a0
push 0x4128c0
push dword [ebp - 0x28]
push eax
call dword [ecx + 0x20]
cmp eax, ebx
jl 0x406a80
cmp dword [ebp - 0x10], ebx
je 0x406a80
lea ecx, [ebp - 0x14]
call dword [0x4127a8]
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x80]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x90]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x2000
push eax
call dword [ecx + 0x70]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp]
push eax
mov dword [ebp - 0x2c], 0x3e8
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp]
push edx
push eax
call dword [ecx + 0x78]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp + 0x7e8]
cmp dword [eax - 0xc], ebx
jne 0x406a4d
mov eax, dword [ebp - 0x1c]
add eax, 4
mov ecx, dword [eax]
cmp dword [ecx - 0xc], ebx
lea ecx, [ebp + 0x7e8]
jne 0x406a46
push str._schedule
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
cmp byte [0x41ba38], bl
je 0x4069c9
push str.__autofix
lea ecx, [ebp + 0x7e8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
cmp byte [0x41ba39], bl
je 0x4069e2
push str.__shutdown
lea ecx, [ebp + 0x7e8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
push str.diskOptimizer
mov ecx, 0x41ba14
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
jne 0x406a4d
lea eax, [ebp - 0x20]
push 0x414214
push eax
lea esi, [ebp + 0x7e8]
call fcn.00404d03
lea ecx, [ebp - 0x1c]
push 0x41ba30
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004048ce
add esp, 0x10
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x406a4d
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x7e8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x88]
mov esi, eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
jge 0x406ab3
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp + 0x7e8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x7d0]
xor ecx, ebp
call fcn.0040f372
add ebp, 0x7d4
leave
ret 0x10
lea edx, [ebp - 0x24]
push edx
push 0x412870
push eax
call dword [ecx]
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
jl 0x406a77
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push 1
push ebx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp + 0x7e8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp esi, ebx
jl 0x406a8c
mov al, 1
jmp 0x406a8e