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

Disassembly:
push ebp
sub esp, 0x7d0
lea ebp, [esp - 4]
mov eax, dword [0x41f028]
xor eax, ebp
mov dword [ebp + 0x7d0], eax
push 0x20
mov eax, 0x40f237
call fcn.0040e67e
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.ATDUhelper.dll_Ordinal_1043]
cmp eax, ebx
je 0x406341
lea eax, [ebp - 0x18]
push eax
push 0x416a88
push 1
push ebx
push 0x416aa8
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x406341
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x416a78
push 0x416a98
push dword [ebp - 0x28]
push eax
call dword [ecx + 0x20]
cmp eax, ebx
jl 0x406341
cmp dword [ebp - 0x10], ebx
je 0x406341
lea ecx, [ebp - 0x14]
call dword [0x41676c]
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 0x40630e
mov eax, dword [ebp - 0x1c]
add eax, 4
mov ecx, dword [eax]
cmp dword [ecx - 0xc], ebx
lea ecx, [ebp + 0x7e8]
jne 0x406307
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 [0x41ff90], bl
je 0x40628a
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 [0x41ff91], bl
je 0x4062a3
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, 0x41ff70
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 0x40630e
lea eax, [ebp - 0x20]
push 0x418620
push eax
lea esi, [ebp + 0x7e8]
call fcn.00405f06
lea ecx, [ebp - 0x1c]
push 0x41ff88
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004047c2
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 0x40630e
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 0x406374
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.0040de80
add ebp, 0x7d4
leave
ret 0x10
lea edx, [ebp - 0x24]
push edx
push 0x416a48
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 0x406338
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 0x40634d
mov al, 1
jmp 0x40634f