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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x858
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push 0x41c730
push 1
push 0
push 0x41c720
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4082a4
xor al, al
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
mov edi, 0x41c740
push edi
mov esi, str.Watchmon_Service
push esi
push eax
call dword [ecx + 0x18]
mov ebx, eax
test ebx, ebx
jns 0x4082e8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push edi
push 0x41c710
push esi
push eax
call dword [ecx + 0x20]
mov ebx, eax
test ebx, ebx
jns 0x4082e8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40829d
cmp dword [ebp + 0x10], 0x28
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov esi, 0x4179f4
jge 0x40832d
push 0x2000
push eax
call dword [ecx + 0x70]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x854]
push eax
mov dword [ebp - 0x18], 0x400
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x408336
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 0
lea edx, [ebp - 0x854]
push edx
jmp 0x408330
push 0
push esi
push eax
call dword [ecx + 0x78]
mov ebx, eax
test ebx, ebx
jns 0x408345
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4082dd
call fcn.0040dbd1
push eax
push dword [ebp + 8]
call fcn.0040b723
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
test eax, eax
jne 0x408372
call fcn.0040dbd1
mov edi, eax
call fcn.0040c2d5
mov dword [ebx], eax
test eax, eax
je 0x40829d
mov eax, dword [ebp - 8]
push dword [ebx]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x80]
test eax, eax
js 0x40833a
push 4
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 8]
call fcn.0040c9fd
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x54]
push edx
push eax
call dword [ecx + 0x88]
test eax, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
js 0x40833f
push esi
push eax
call dword [ecx + 0x90]
test eax, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
js 0x40833f
push 0xffffffffffffffff
push eax
call dword [ecx + 0xa8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 0x20
push eax
call dword [ecx + 0x98]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x40833a
push 0x30
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.004052c0
add esp, 0xc
push 0x2d
xor esi, esi
inc esi
mov eax, 0x80c
mov word [ebp - 0x42], ax
mov eax, esi
mov word [ebp - 0x40], ax
mov word [ebp - 0x3e], ax
pop eax
mov word [ebp - 0x3a], ax
mov eax, esi
mov word [ebp - 0x44], ax
mov word [ebp - 0x46], ax
push 0x30
mov eax, 0x7d0
mov word [ebp - 0x48], ax
pop eax
mov word [ebp - 0x4c], ax
xor eax, eax
cmp dword [ebp + 0x10], 0x28
push 0x13
setl al
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x38], 0xa
mov dword [ebp - 0x34], esi
add eax, 6
mov dword [ebp - 0x2c], eax
pop eax
mov word [ebp - 0x3c], ax
mov eax, esi
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x40833a
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x41c750
push eax
call dword [ecx]
test eax, eax
js 0x40833a
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push esi
push 0
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp + 0x10], 0x32
je 0x4084d3
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
test eax, eax
jns 0x4084d3
xor bl, bl
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
jmp 0x40829f
mov bl, 1
jmp 0x4084ba