Function at 0x4e34a0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x56827c
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x5d86f0]
xor eax, esp
mov dword [esp + 0x284], eax
push esi
push edi
mov eax, dword [0x5d86f0]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov eax, dword [0x5de234]
mov edi, dword [ebp + 8]
mov dword [esp + 0x30], 0
test al, 1
jne 0x4e3524
or eax, 1
mov dword [0x5de284], 7
mov dword [0x5de234], eax
xor eax, eax
push 0x56fc30
mov dword [0x5de280], 0
mov word [0x5de270], ax
call fcn.0054221a
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.004e8990
lea ecx, [esp + 0x4c]
call fcn.004e6120
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.005443d0
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 0x4e35d4
xor ecx, ecx
jmp 0x4e35ef
lea ecx, [esp + 0x9c]
lea esi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e35e0
sub ecx, esi
sar ecx, 1
push ecx
lea eax, [esp + 0xa0]
mov ecx, edx
push eax
call fcn.004e8990
lea ecx, [esp + 0x54]
call fcn.004e3f50
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 0x4e3628
xor ecx, ecx
jmp 0x4e363f
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e3630
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, 0x5de270
call fcn.004e8990
push 0
push 0x5de270
push reloc.WS2_32.dll_closesocket
call fcn.004e7630
add esp, 0xc
test al, al
jne 0x4e3890
xor eax, eax
mov dword [esp + 0x2c], 7
xorps xmm0, xmm0
mov dword [esp + 0x28], 0
push eax
push 0x5c057c
lea ecx, [esp + 0x20]
movdqa xmmword [esp + 0x6c], xmm0
movdqa xmmword [esp + 0x7c], xmm0
mov word [esp + 0x20], ax
call fcn.004e8990
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.004eaa20
mov dword [esp + 0x80], 0xf003f
mov byte [esp + 0x2a0], 2
cmp dword [esp + 0x2c], 8
jb 0x4e3703
push dword [esp + 0x18]
call fcn.00541faa
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.004ece90
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
mov byte [esp + 0x2a0], 3
push eax
lea ecx, [esp + 0x68]
call fcn.004ed3d0
test eax, eax
jne 0x4e3851
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
mov dword [esp + 0x3c], eax
cmp eax, ecx
je 0x4e3855
cmp dword [eax + 0x24], 8
lea edx, [eax + 0x10]
jb 0x4e376f
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 0x4e379f
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e3790
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x54]
call fcn.004e8990
push 7
push 0
push str.Classes
lea ecx, [esp + 0x58]
mov byte [esp + 0x2ac], 4
call fcn.004eab40
push dword [0x5de280]
cmp dword [0x5de284], 8
mov ecx, 0x5de270
push 0
cmovae ecx, dword [0x5de270]
mov esi, eax
push ecx
lea ecx, [esp + 0x58]
call fcn.004eab40
cmp eax, 0xffffffff
je 0x4e37f5
cmp esi, 0xffffffff
je 0x4e382b
mov byte [esp + 0x2a0], 3
cmp dword [esp + 0x60], 8
jb 0x4e3810
push dword [esp + 0x4c]
call fcn.00541faa
add esp, 4
lea ecx, [esp + 0x3c]
call fcn.004eb070
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jne 0x4e3764
jmp 0x4e3855
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x54]
mov ecx, 0x5de270
push eax
call fcn.004eaa20
cmp dword [esp + 0x60], 8
jb 0x4e3851
push dword [esp + 0x4c]
call fcn.00541faa
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.004ebfc0
push dword [esp + 0x40]
call fcn.00541faa
add esp, 4
mov dword [esp + 0x2a0], 0xffffffff
cmp dword [esp + 0x7c], 8
jb 0x4e3890
push dword [esp + 0x68]
call fcn.00541faa
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [edi + 0x10], 0
mov ecx, edi
push 0x5de270
mov word [edi], ax
call fcn.004eaa20
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.0054546b
mov esp, ebp
pop ebp
ret