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

Disassembly:
push 0xffffffffffffffff
push 0x4e2ed6
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x51f4f4]
xor eax, esp
mov dword [esp + 0x27c], eax
push ebx
push esi
push edi
mov eax, dword [0x51f4f4]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
push 0x240
push str.__d_ConfigureTask_LogOnTS1_____Start
mov edi, ecx
call fcn.0040cb20
add esp, 8
lea eax, [esp + 0x20]
push eax
push 0x501934
push 1
xor ebx, ebx
push ebx
push 0x501954
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jge 0x40dde9
push esi
push str.Failed_to_create_an_instance_of_ITaskScheduler:__x
call fcn.0040cb20
add esp, 8
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
jmp 0x40e2e5
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push str.EPM_Preload
push eax
call edx
cmp eax, ebx
push eax
jl 0x40de0a
push str.Old_talsk_deleted_successfully_hr___x
jmp 0x40de0f
push str.Old_talsk_Not_deleted__hr___x
call fcn.0040cb20
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
add esp, 8
lea edx, [esp + 0x14]
push edx
push 0x501914
push 0x501944
push str.EPM_Preload
push eax
mov eax, dword [ecx + 0x20]
call eax
mov esi, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, ebx
jge 0x40de64
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
push str.Failed_calling_NewWorkItem__error__0x_x_n
call fcn.0040cb20
add esp, 8
mov eax, esi
jmp 0x40e2e5
push 0x27c
push str.__d_
call fcn.0040cb20
mov eax, dword [edi + 8]
lea esi, [edi + 8]
sub eax, 0x10
add esp, 8
cmp dword [eax + 0xc], 1
jle 0x40de90
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00409cc0
mov eax, dword [esi]
xor ecx, ecx
mov word [esp + 0x74], cx
mov ecx, eax
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40deb0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x74]
call fcn.00406860
lea esi, [esp + 0x18]
mov dword [esp + 0x298], ebx
call fcn.0040cce0
sub esp, 0x1c
mov edi, esp
push 0x284
mov byte [esp + 0x2b8], 1
mov ecx, 7
lea esi, [esp + 0x90]
push str.__d_wstrExecutablePath___s_
rep movsd dword es:[edi], dword [esi]
call fcn.0040cb20
mov edx, dword [esp + 0x3c]
push edx
push 0x285
push str.__d_strModuleDirectory___s_
call fcn.0040cb20
mov ecx, dword [esp + 0xa4]
mov edi, 8
add esp, 0x30
cmp dword [esp + 0x88], edi
jae 0x40df33
lea ecx, [esp + 0x74]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x80]
call eax
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 4], 1
jle 0x40df5e
mov ecx, dword [ecx - 0xc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00409cc0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x90]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x88]
push str._preload
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x70]
push 0x2000
push eax
call edx
push 0x294
push str.__d_
mov dword [esp + 0x34], 0x100
call fcn.0040cb20
add esp, 8
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x90]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea edx, [esp + 0x8c]
push edx
push 0x296
push str.__d_szUserName___s_
call fcn.0040cb20
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
add esp, 0xc
push ebx
lea edx, [esp + 0x90]
push edx
push eax
mov eax, dword [ecx + 0x78]
call eax
mov esi, eax
cmp esi, ebx
jge 0x40e063
push str.Failed_calling_ITask::SetAccountInformation:
call fcn.0040cb20
push esi
push str.error__0x_x_n
call fcn.0040cb20
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 0xc
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [esp + 0x298], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e046
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x88], edi
jb 0x40e05c
mov ecx, dword [esp + 0x74]
push ecx
call fcn.004129b1
add esp, 4
mov eax, esi
jmp 0x40e2e5
push 0x2a1
push str.__d_
call fcn.0040cb20
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
add esp, 8
push str.Run_task_for_Easy_Printer_Manager_V2_preload
push eax
mov eax, dword [edx + 0x48]
call eax
mov edi, eax
cmp edi, ebx
jge 0x40e0e6
push str.Failed_calling_ITask::SetComment:
call fcn.0040cb20
push edi
push str.error__0x_x_n
call fcn.0040cb20
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 0xc
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [esp + 0x298], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e2da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40e2da
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edi, eax
cmp edi, ebx
jge 0x40e131
push str.Failed_calling_ITask::CreatTrigger:
call fcn.0040cb20
push edi
push str.error__0x_x_n
call fcn.0040cb20
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 0xc
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x40e2d1
push 0x2bd
push str.__d_
call fcn.0040cb20
push 0x30
lea eax, [esp + 0x4c]
push ebx
push eax
call fcn.00446dc0
push 0x2c9
push str.__d_
call fcn.0040cb20
add esp, 0x1c
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x2cb
push str.__d_
call fcn.0040cb20
mov dx, word [esp + 0x3e]
mov ax, word [esp + 0x3a]
mov cx, word [esp + 0x38]
mov word [esp + 0x50], dx
mov edx, 0x30
mov word [esp + 0x4e], ax
mov eax, dword [esp + 0x2c]
mov word [esp + 0x48], dx
add esp, 8
lea edx, [esp + 0x40]
mov word [esp + 0x44], cx
mov dword [esp + 0x60], 7
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edi, eax
cmp edi, ebx
jge 0x40e1fe
push str.Failed_calling_ITaskTrigger::SetTrigger:
call fcn.0040cb20
push edi
push str.error__0x_x_n
call fcn.0040cb20
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 0xc
push eax
call edx
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x40e2d1
push 0x2e6
push str.__d_
call fcn.0040cb20
mov eax, dword [esp + 0x1c]
add esp, 8
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], ebx
mov ecx, dword [eax]
push 0x4f0958
push eax
mov eax, dword [ecx]
call eax
mov edi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp edi, ebx
jge 0x40e254
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
push str.Failed_calling_QueryInterface__error__0x_x_n
call fcn.0040cb20
add esp, 8
jmp 0x40e2d1
push 0x2f7
push str.__d_
call fcn.0040cb20
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
add esp, 8
push 1
push ebx
push eax
call edx
mov edi, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp edi, ebx
jge 0x40e29d
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
push str.Failed_calling_Save__error__0x_x_n
call fcn.0040cb20
add esp, 8
jmp 0x40e2d1
push 0x303
push str.__d_
call fcn.0040cb20
add esp, 8
call dword [sym.imp.ole32.dll_CoUninitialize]
push str.Created_task._n
call fcn.0040cb20
push 0x30b
push str.__d_ConfigureTask_LogOnTS1_____End
call fcn.0040cb20
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.00409810
lea esi, [esp + 0x70]
call fcn.00405d00
mov eax, edi
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x27c]
xor ecx, esp
call fcn.004451b5
add esp, 0x28c
ret