Function at 0x40f4f0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eee6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x27c
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov ecx, 0x52429a
call fcn.004c6bbd
mov eax, dword [ebp + 8]
push eax
call fcn.0040e720
add esp, 4
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
or ecx, 1
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40f755
lea edx, [ebp - 0x10]
push edx
call fcn.0040efa0
add esp, 4
mov dword [ebp - 4], 1
push 0x208
push 0
lea eax, [ebp - 0x288]
push eax
call fcn.004cb140
add esp, 0xc
mov dword [ebp - 0x48], 0x104
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x288]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x18]
call fcn.00406160
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.0040b7d0
movzx ecx, al
test ecx, ecx
jne 0x40f73d
lea ecx, [ebp - 0x18]
call fcn.0040b7d0
movzx edx, al
test edx, edx
jne 0x40f73d
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.004083c0
add esp, 8
movzx edx, al
test edx, edx
je 0x40f73d
lea eax, [ebp - 0x20]
push eax
call fcn.0040fad0
add esp, 4
mov byte [ebp - 4], 3
mov ecx, 0x5c
mov word [ebp - 0x44], cx
mov edx, 0x41
mov word [ebp - 0x42], dx
mov eax, 0x70
mov word [ebp - 0x40], ax
mov ecx, 0x70
mov word [ebp - 0x3e], cx
mov edx, 0x44
mov word [ebp - 0x3c], dx
mov eax, 0x61
mov word [ebp - 0x3a], ax
mov ecx, 0x74
mov word [ebp - 0x38], cx
mov edx, 0x61
mov word [ebp - 0x36], dx
mov eax, 0x5c
mov word [ebp - 0x34], ax
mov ecx, 0x4c
mov word [ebp - 0x32], cx
mov edx, 0x6f
mov word [ebp - 0x30], dx
mov eax, 0x63
mov word [ebp - 0x2e], ax
mov ecx, 0x61
mov word [ebp - 0x2c], cx
mov edx, 0x6c
mov word [ebp - 0x2a], dx
mov eax, 0x5c
mov word [ebp - 0x28], ax
xor ecx, ecx
mov word [ebp - 0x26], cx
lea ecx, [ebp - 0x11]
call fcn.004063b0
push eax
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x80]
call fcn.00406b20
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea ecx, [ebp - 0x78]
call fcn.00406d10
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x50]
call fcn.00415e30
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x68]
push eax
call fcn.00408590
add esp, 0xc
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x58], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x58]
push edx
lea eax, [ebp - 0x64]
push eax
call fcn.00408630
add esp, 0xc
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x60]
push edx
mov ecx, dword [ebp + 8]
call fcn.00407eb0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x64]
call fcn.00407640
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x68]
call fcn.00407640
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x78]
call fcn.00407960
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00407640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00407640
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00407640
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret