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

Disassembly:
push ebp
lea ebp, [esp - 0x238]
sub esp, 0x238
push 0xffffffffffffffff
push 0x5481e0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x592884]
xor eax, ebp
mov dword [ebp + 0x234], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x240]
xor bl, bl
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
push 0x54ec90
push 1
push 0
push 0x54ecb0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4f3a1c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4f3a1c
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x4f3875
mov edx, dword [esi]
mov ecx, dword [eax]
lea edi, [ebp - 0x10]
push edi
push 0x54ec80
push 0x54eca0
push edx
push eax
call dword [ecx + 0x20]
test eax, eax
js 0x4f3a1c
cmp dword [esi + 0x44], 8
lea edx, [esi + 0x30]
jb 0x4f389d
mov edx, dword [edx]
mov eax, dword [ebp - 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x80]
cmp dword [esi + 0x2c], 8
lea edx, [esi + 0x18]
jb 0x4f38b5
mov edx, dword [edx]
mov eax, dword [ebp - 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x10]
push 0x2000
push eax
mov ecx, dword [eax]
call dword [ecx + 0x70]
cmp dword [esi + 0x5c], 8
lea edx, [esi + 0x48]
jb 0x4f38d8
mov edx, dword [edx]
mov eax, dword [ebp - 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x88]
push 0x202
lea eax, [ebp + 0x30]
push 0
push eax
call fcn.004f9c00
add esp, 0xc
mov dword [ebp - 0x20], 0x101
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x4f3a1c
mov eax, dword [ebp - 0x10]
lea edx, [ebp + 0x30]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x78]
test eax, eax
js 0x4f3a1c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x24], 0
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x4f3a1c
push 0x30
lea eax, [ebp]
push 0
push eax
call fcn.004f9c00
mov eax, 0x30
add esp, 0xc
mov word [ebp], ax
mov eax, dword [esi + 0x64]
sub eax, 0
je 0x4f397f
sub eax, 1
jne 0x4f3a1c
mov dword [ebp + 0x20], 7
jmp 0x4f39dc
movzx eax, word [esi + 0x70]
mov word [ebp + 8], ax
movzx eax, word [esi + 0x6c]
mov word [ebp + 6], ax
movzx eax, word [esi + 0x68]
mov word [ebp + 4], ax
movzx eax, word [esi + 0x74]
mov word [ebp + 0x10], ax
movzx eax, word [esi + 0x78]
mov word [ebp + 0x12], ax
movzx eax, word [esi + 0x7c]
mov word [ebp + 0x24], ax
mov eax, dword [esi + 0x80]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov dword [ebp + 0x20], 1
mov eax, dword [esi + 0x84]
shl ecx, 2
mov dword [ebp + 0x14], ecx
mov ecx, eax
shl ecx, 4
sub ecx, eax
shl ecx, 2
mov dword [ebp + 0x18], ecx
mov eax, dword [ebp - 0x14]
lea edx, [ebp]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
js 0x4f3a1c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
push edx
push 0x54edb0
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x4f3a1c
mov eax, dword [ebp - 0x18]
push 1
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmovns ebx, ecx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4f3a2d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4f3a3e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4f3a4f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4f3a63
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x234]
xor ecx, ebp
call fcn.004f6f55
lea esp, [ebp + 0x238]
pop ebp
ret