Function at 0x4e38a0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x5759cc
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x5ea6f0]
xor eax, esp
mov dword [esp + 0x284], eax
push esi
push edi
mov eax, dword [0x5ea6f0]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov eax, dword [0x5f051c]
mov edi, dword [ebp + 8]
mov dword [esp + 0x30], 0
test al, 1
jne 0x4e3924
or eax, 1
mov dword [0x5f056c], 7
mov dword [0x5f051c], eax
xor eax, eax
push 0x57e840
mov dword [0x5f0568], 0
mov word [0x5f0558], ax
call fcn.0054e2c9
add esp, 4
sub esp, 0x18
mov dword [esp + 0x4c], 0
mov ecx, esp
xor eax, eax
push 0xc
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push str.explorer.exe
mov word [ecx], ax
call fcn.004e9a70
lea ecx, [esp + 0x4c]
call fcn.004e6770
add esp, 0x18
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
push 0x104
lea eax, [esp + 0x88]
push 0
push eax
call fcn.00550c40
add esp, 0xc
mov dword [esp + 0x48], 0x104
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
sub esp, 0x18
mov dword [esp + 0x50], 0
mov edx, esp
mov dword [esp + 0x54], 0
xor eax, eax
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
cmp word [esp + 0x9c], ax
jne 0x4e39d4
xor ecx, ecx
jmp 0x4e39ef
lea ecx, [esp + 0x9c]
lea esi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e39e0
sub ecx, esi
sar ecx, 1
push ecx
lea eax, [esp + 0xa0]
mov ecx, edx
push eax
call fcn.004e9a70
lea ecx, [esp + 0x54]
call fcn.004e4350
add esp, 0x18
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
mov edx, dword [esp + 0x38]
cmp word [edx], 0
jne 0x4e3a28
xor ecx, ecx
jmp 0x4e3a3f
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e3a30
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, 0x5f0558
call fcn.004e9a70
push 0
push 0x5f0558
push reloc.WS2_32.dll_closesocket
call fcn.004e7c80
add esp, 0xc
test al, al
jne 0x4e3c90
xor eax, eax
mov dword [esp + 0x2c], 7
xorps xmm0, xmm0
mov dword [esp + 0x28], 0
push eax
push 0x5d0864
lea ecx, [esp + 0x20]
movdqa xmmword [esp + 0x6c], xmm0
movdqa xmmword [esp + 0x7c], xmm0
mov word [esp + 0x20], ax
call fcn.004e9a70
mov dword [esp + 0x2a0], 0
lea ecx, [esp + 0x68]
xor eax, eax
mov dword [esp + 0x64], reloc.WS2_32.dll_closesocket
push 0xffffffffffffffff
push eax
mov word [esp + 0x70], ax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], 0
call fcn.004ebbd0
mov dword [esp + 0x80], 0xf003f
mov byte [esp + 0x2a0], 2
cmp dword [esp + 0x2c], 8
jb 0x4e3b03
push dword [esp + 0x18]
call fcn.0054e059
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
xorps xmm0, xmm0
mov dword [esp + 0x28], 0
movq qword [esp + 0x40], xmm0
mov word [esp + 0x18], ax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.004ee050
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
mov byte [esp + 0x2a0], 3
push eax
lea ecx, [esp + 0x68]
call fcn.004ee5b0
test eax, eax
jne 0x4e3c51
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
mov dword [esp + 0x3c], eax
cmp eax, ecx
je 0x4e3c55
cmp dword [eax + 0x24], 8
lea edx, [eax + 0x10]
jb 0x4e3b6f
mov edx, dword [edx]
xor eax, eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
cmp word [edx], ax
je 0x4e3b9f
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e3b90
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x54]
call fcn.004e9a70
push 7
push 0
push str.Classes
lea ecx, [esp + 0x58]
mov byte [esp + 0x2ac], 4
call fcn.004ebcf0
push dword [0x5f0568]
cmp dword [0x5f056c], 8
mov ecx, 0x5f0558
push 0
cmovae ecx, dword [0x5f0558]
mov esi, eax
push ecx
lea ecx, [esp + 0x58]
call fcn.004ebcf0
cmp eax, 0xffffffff
je 0x4e3bf5
cmp esi, 0xffffffff
je 0x4e3c2b
mov byte [esp + 0x2a0], 3
cmp dword [esp + 0x60], 8
jb 0x4e3c10
push dword [esp + 0x4c]
call fcn.0054e059
add esp, 4
lea ecx, [esp + 0x3c]
call fcn.004ec230
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jne 0x4e3b64
jmp 0x4e3c55
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x54]
mov ecx, 0x5f0558
push eax
call fcn.004ebbd0
cmp dword [esp + 0x60], 8
jb 0x4e3c51
push dword [esp + 0x4c]
call fcn.0054e059
add esp, 4
mov ecx, dword [esp + 0x40]
push ecx
push dword [ecx]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x4c]
call fcn.004ed180
push dword [esp + 0x40]
call fcn.0054e059
add esp, 4
mov dword [esp + 0x2a0], 0xffffffff
cmp dword [esp + 0x7c], 8
jb 0x4e3c90
push dword [esp + 0x68]
call fcn.0054e059
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [edi + 0x10], 0
mov ecx, edi
push 0x5f0558
mov word [edi], ax
call fcn.004ebbd0
mov eax, edi
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x284]
xor ecx, esp
call fcn.005507d9
mov esp, ebp
pop ebp
ret