Function at 0x40ea40
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eeda7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2f8
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.0040f770
add esp, 4
mov dword [ebp - 0xe8], 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 0x40ef81
lea edx, [ebp - 0x10]
push edx
call fcn.0040efa0
add esp, 4
mov dword [ebp - 4], 1
push 0x208
push 0
lea eax, [ebp - 0x304]
push eax
call fcn.004cb140
add esp, 0xc
mov dword [ebp - 0xc4], 0x104
lea ecx, [ebp - 0xc4]
push ecx
lea edx, [ebp - 0x304]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x304]
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 0x40ef69
lea ecx, [ebp - 0x18]
call fcn.0040b7d0
movzx edx, al
test edx, edx
jne 0x40ef69
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 0x40ef69
lea eax, [ebp - 0x20]
push eax
call fcn.0040fad0
add esp, 4
mov byte [ebp - 4], 3
mov ecx, 0x5c
mov word [ebp - 0xc0], cx
mov edx, 0x41
mov word [ebp - 0xbe], dx
mov eax, 0x70
mov word [ebp - 0xbc], ax
mov ecx, 0x70
mov word [ebp - 0xba], cx
mov edx, 0x44
mov word [ebp - 0xb8], dx
mov eax, 0x61
mov word [ebp - 0xb6], ax
mov ecx, 0x74
mov word [ebp - 0xb4], cx
mov edx, 0x61
mov word [ebp - 0xb2], dx
mov eax, 0x5c
mov word [ebp - 0xb0], ax
mov ecx, 0x52
mov word [ebp - 0xae], cx
mov edx, 0x6f
mov word [ebp - 0xac], dx
mov eax, 0x61
mov word [ebp - 0xaa], ax
mov ecx, 0x6d
mov word [ebp - 0xa8], cx
mov edx, 0x69
mov word [ebp - 0xa6], dx
mov eax, 0x6e
mov word [ebp - 0xa4], ax
mov ecx, 0x67
mov word [ebp - 0xa2], cx
mov edx, 0x5c
mov word [ebp - 0xa0], dx
mov eax, 0x4d
mov word [ebp - 0x9e], ax
mov ecx, 0x69
mov word [ebp - 0x9c], cx
mov edx, 0x63
mov word [ebp - 0x9a], dx
mov eax, 0x72
mov word [ebp - 0x98], ax
mov ecx, 0x6f
mov word [ebp - 0x96], cx
mov edx, 0x73
mov word [ebp - 0x94], dx
mov eax, 0x6f
mov word [ebp - 0x92], ax
mov ecx, 0x66
mov word [ebp - 0x90], cx
mov edx, 0x74
mov word [ebp - 0x8e], dx
mov eax, 0x5c
mov word [ebp - 0x8c], ax
mov ecx, 0x49
mov word [ebp - 0x8a], cx
mov edx, 0x6e
mov word [ebp - 0x88], dx
mov eax, 0x74
mov word [ebp - 0x86], ax
mov ecx, 0x65
mov word [ebp - 0x84], cx
mov edx, 0x72
mov word [ebp - 0x82], dx
mov eax, 0x6e
mov word [ebp - 0x80], ax
mov ecx, 0x65
mov word [ebp - 0x7e], cx
mov edx, 0x74
mov word [ebp - 0x7c], dx
mov eax, 0x20
mov word [ebp - 0x7a], ax
mov ecx, 0x45
mov word [ebp - 0x78], cx
mov edx, 0x78
mov word [ebp - 0x76], dx
mov eax, 0x70
mov word [ebp - 0x74], ax
mov ecx, 0x6c
mov word [ebp - 0x72], cx
mov edx, 0x6f
mov word [ebp - 0x70], dx
mov eax, 0x72
mov word [ebp - 0x6e], ax
mov ecx, 0x65
mov word [ebp - 0x6c], cx
mov edx, 0x72
mov word [ebp - 0x6a], dx
mov eax, 0x5c
mov word [ebp - 0x68], ax
mov ecx, 0x51
mov word [ebp - 0x66], cx
mov edx, 0x75
mov word [ebp - 0x64], dx
mov eax, 0x69
mov word [ebp - 0x62], ax
mov ecx, 0x63
mov word [ebp - 0x60], cx
mov edx, 0x6b
mov word [ebp - 0x5e], dx
mov eax, 0x20
mov word [ebp - 0x5c], ax
mov ecx, 0x4c
mov word [ebp - 0x5a], cx
mov edx, 0x61
mov word [ebp - 0x58], dx
mov eax, 0x75
mov word [ebp - 0x56], ax
mov ecx, 0x6e
mov word [ebp - 0x54], cx
mov edx, 0x63
mov word [ebp - 0x52], dx
mov eax, 0x68
mov word [ebp - 0x50], ax
mov ecx, 0x5c
mov word [ebp - 0x4e], cx
mov edx, 0x55
mov word [ebp - 0x4c], dx
mov eax, 0x73
mov word [ebp - 0x4a], ax
mov ecx, 0x65
mov word [ebp - 0x48], cx
mov edx, 0x72
mov word [ebp - 0x46], dx
mov eax, 0x20
mov word [ebp - 0x44], ax
mov ecx, 0x50
mov word [ebp - 0x42], cx
mov edx, 0x69
mov word [ebp - 0x40], dx
mov eax, 0x6e
mov word [ebp - 0x3e], ax
mov ecx, 0x6e
mov word [ebp - 0x3c], cx
mov edx, 0x65
mov word [ebp - 0x3a], dx
mov eax, 0x64
mov word [ebp - 0x38], ax
mov ecx, 0x5c
mov word [ebp - 0x36], cx
mov edx, 0x54
mov word [ebp - 0x34], dx
mov eax, 0x61
mov word [ebp - 0x32], ax
mov ecx, 0x73
mov word [ebp - 0x30], cx
mov edx, 0x6b
mov word [ebp - 0x2e], dx
mov eax, 0x42
mov word [ebp - 0x2c], ax
mov ecx, 0x61
mov word [ebp - 0x2a], cx
mov edx, 0x72
mov word [ebp - 0x28], dx
mov eax, 0x5c
mov word [ebp - 0x26], ax
xor ecx, ecx
mov word [ebp - 0x24], cx
lea ecx, [ebp - 0x11]
call fcn.004063b0
push eax
lea edx, [ebp - 0x22]
push edx
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0xfc]
call fcn.00406b20
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea ecx, [ebp - 0xf4]
call fcn.00406d10
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xcc]
call fcn.00415e30
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0xe4]
push eax
call fcn.00408590
add esp, 0xc
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0xd4]
push edx
lea eax, [ebp - 0xe0]
push eax
call fcn.00408630
add esp, 0xc
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xdc], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0xdc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00407eb0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xe0]
call fcn.00407640
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe4]
call fcn.00407640
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xf4]
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