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

Disassembly:
push ebp
sub esp, 0x7d0
lea ebp, [esp - 4]
mov eax, dword [0x41a028]
xor eax, ebp
mov dword [ebp + 0x7d0], eax
push 0x20
mov eax, 0x40f37d
call fcn.0040e81e
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.SACOhelper.dll_int___cdecl_STIsCurrentUserLocalAdministrator_void_]
cmp eax, ebx
je 0x4063a4
lea eax, [ebp - 0x18]
push eax
push 0x411890
push 1
push ebx
push 0x4118b0
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4063a4
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x411880
push 0x4118a0
push dword [ebp - 0x28]
push eax
call dword [ecx + 0x20]
cmp eax, ebx
jl 0x4063a4
cmp dword [ebp - 0x10], ebx
je 0x4063a4
lea ecx, [ebp - 0x14]
call dword [0x411784]
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 0x406371
mov eax, dword [ebp - 0x1c]
add eax, 4
mov ecx, dword [eax]
cmp dword [ecx - 0xc], ebx
lea ecx, [ebp + 0x7e8]
jne 0x40636a
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 [0x41aa34], bl
je 0x4062ed
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 [0x41aa35], bl
je 0x406306
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, 0x41aa14
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 0x406371
lea eax, [ebp - 0x20]
push 0x4131d8
push eax
lea esi, [ebp + 0x7e8]
call fcn.00405f69
lea ecx, [ebp - 0x1c]
push 0x41aa2c
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004046f6
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 0x406371
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 0x4063d7
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.0040e012
add ebp, 0x7d4
leave
ret 0x10
lea edx, [ebp - 0x24]
push edx
push 0x411850
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 0x40639b
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 0x4063b0
mov al, 1
jmp 0x4063b2