Function at 0x4e38e0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x571cdc
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x5e56f0]
xor eax, esp
mov dword [esp + 0x284], eax
push esi
push edi
mov eax, dword [0x5e56f0]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov eax, dword [0x5eb51c]
mov edi, dword [ebp + 8]
mov dword [esp + 0x30], 0
test al, 1
jne 0x4e3964
or eax, 1
mov dword [0x5eb56c], 7
mov dword [0x5eb51c], eax
xor eax, eax
push 0x57a4b0
mov dword [0x5eb568], 0
mov word [0x5eb558], ax
call fcn.0054a5e9
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.004e9ab0
lea ecx, [esp + 0x4c]
call fcn.004e67b0
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.0054cf60
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 0x4e3a14
xor ecx, ecx
jmp 0x4e3a2f
lea ecx, [esp + 0x9c]
lea esi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e3a20
sub ecx, esi
sar ecx, 1
push ecx
lea eax, [esp + 0xa0]
mov ecx, edx
push eax
call fcn.004e9ab0
lea ecx, [esp + 0x54]
call fcn.004e4390
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 0x4e3a68
xor ecx, ecx
jmp 0x4e3a7f
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e3a70
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, 0x5eb558
call fcn.004e9ab0
push 0
push 0x5eb558
push reloc.WS2_32.dll_closesocket
call fcn.004e7cc0
add esp, 0xc
test al, al
jne 0x4e3cd0
xor eax, eax
mov dword [esp + 0x2c], 7
xorps xmm0, xmm0
mov dword [esp + 0x28], 0
push eax
push 0x5cc174
lea ecx, [esp + 0x20]
movdqa xmmword [esp + 0x6c], xmm0
movdqa xmmword [esp + 0x7c], xmm0
mov word [esp + 0x20], ax
call fcn.004e9ab0
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.004ebc10
mov dword [esp + 0x80], 0xf003f
mov byte [esp + 0x2a0], 2
cmp dword [esp + 0x2c], 8
jb 0x4e3b43
push dword [esp + 0x18]
call fcn.0054a379
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.004ee080
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
mov byte [esp + 0x2a0], 3
push eax
lea ecx, [esp + 0x68]
call fcn.004ee5e0
test eax, eax
jne 0x4e3c91
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
mov dword [esp + 0x3c], eax
cmp eax, ecx
je 0x4e3c95
cmp dword [eax + 0x24], 8
lea edx, [eax + 0x10]
jb 0x4e3baf
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 0x4e3bdf
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e3bd0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x54]
call fcn.004e9ab0
push 7
push 0
push str.Classes
lea ecx, [esp + 0x58]
mov byte [esp + 0x2ac], 4
call fcn.004ebd30
push dword [0x5eb568]
cmp dword [0x5eb56c], 8
mov ecx, 0x5eb558
push 0
cmovae ecx, dword [0x5eb558]
mov esi, eax
push ecx
lea ecx, [esp + 0x58]
call fcn.004ebd30
cmp eax, 0xffffffff
je 0x4e3c35
cmp esi, 0xffffffff
je 0x4e3c6b
mov byte [esp + 0x2a0], 3
cmp dword [esp + 0x60], 8
jb 0x4e3c50
push dword [esp + 0x4c]
call fcn.0054a379
add esp, 4
lea ecx, [esp + 0x3c]
call fcn.004ec260
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jne 0x4e3ba4
jmp 0x4e3c95
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x54]
mov ecx, 0x5eb558
push eax
call fcn.004ebc10
cmp dword [esp + 0x60], 8
jb 0x4e3c91
push dword [esp + 0x4c]
call fcn.0054a379
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.004ed1b0
push dword [esp + 0x40]
call fcn.0054a379
add esp, 4
mov dword [esp + 0x2a0], 0xffffffff
cmp dword [esp + 0x7c], 8
jb 0x4e3cd0
push dword [esp + 0x68]
call fcn.0054a379
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [edi + 0x10], 0
mov ecx, edi
push 0x5eb558
mov word [edi], ax
call fcn.004ebc10
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.0054caf9
mov esp, ebp
pop ebp
ret