Function at 0x4e5510
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x60164c
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x697bc0]
xor eax, esp
mov dword [esp + 0x284], eax
push esi
push edi
mov eax, dword [0x697bc0]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov eax, dword [0x6a2c5c]
mov edi, dword [ebp + 8]
mov dword [esp + 0x30], 0
test al, 1
jne 0x4e5594
or eax, 1
mov dword [0x6a2cdc], 7
mov dword [0x6a2c5c], eax
xor eax, eax
push 0x6149e0
mov dword [0x6a2cd8], 0
mov word [0x6a2cc8], ax
call fcn.005c45a7
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.004ef630
lea eax, [esp + 0x4c]
push eax
call fcn.004e8a10
add esp, 0x1c
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
push 0x104
lea eax, [esp + 0x88]
push 0
push eax
call fcn.005c63d0
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 0x4e5645
xor ecx, ecx
jmp 0x4e565f
lea ecx, [esp + 0x9c]
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e5650
sub ecx, esi
sar ecx, 1
push ecx
lea eax, [esp + 0xa0]
mov ecx, edx
push eax
call fcn.004ef630
lea ecx, [esp + 0x54]
call fcn.004e5fc0
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 0x4e5698
xor ecx, ecx
jmp 0x4e56af
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e56a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, 0x6a2cc8
call fcn.004ef630
push 0
push 0x6a2cc8
push reloc.WS2_32.dll_closesocket
call fcn.004eb690
add esp, 0xc
test al, al
jne 0x4e5900
xor eax, eax
mov dword [esp + 0x2c], 7
xorps xmm0, xmm0
mov dword [esp + 0x28], 0
push eax
push 0x66dd94
lea ecx, [esp + 0x20]
movdqa xmmword [esp + 0x6c], xmm0
movdqa xmmword [esp + 0x7c], xmm0
mov word [esp + 0x20], ax
call fcn.004ef630
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.004f19e0
mov dword [esp + 0x80], 0xf003f
mov byte [esp + 0x2a0], 2
cmp dword [esp + 0x2c], 8
jb 0x4e5773
push dword [esp + 0x18]
call fcn.005c4337
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.004f4240
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
mov byte [esp + 0x2a0], 3
push eax
lea ecx, [esp + 0x68]
call fcn.004f48a0
test eax, eax
jne 0x4e58c1
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
mov dword [esp + 0x3c], eax
cmp eax, ecx
je 0x4e58c5
cmp dword [eax + 0x24], 8
lea edx, [eax + 0x10]
jb 0x4e57df
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 0x4e580f
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e5800
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x54]
call fcn.004ef630
push 7
push 0
push str.Classes
lea ecx, [esp + 0x58]
mov byte [esp + 0x2ac], 4
call fcn.004f1b00
push dword [0x6a2cd8]
cmp dword [0x6a2cdc], 8
mov ecx, 0x6a2cc8
push 0
cmovae ecx, dword [0x6a2cc8]
mov esi, eax
push ecx
lea ecx, [esp + 0x58]
call fcn.004f1b00
cmp eax, 0xffffffff
je 0x4e5865
cmp esi, 0xffffffff
je 0x4e589b
mov byte [esp + 0x2a0], 3
cmp dword [esp + 0x60], 8
jb 0x4e5880
push dword [esp + 0x4c]
call fcn.005c4337
add esp, 4
lea ecx, [esp + 0x3c]
call fcn.004f2100
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jne 0x4e57d4
jmp 0x4e58c5
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x54]
mov ecx, 0x6a2cc8
push eax
call fcn.004f19e0
cmp dword [esp + 0x60], 8
jb 0x4e58c1
push dword [esp + 0x4c]
call fcn.005c4337
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.004f3140
push dword [esp + 0x40]
call fcn.005c4337
add esp, 4
mov dword [esp + 0x2a0], 0xffffffff
cmp dword [esp + 0x7c], 8
jb 0x4e5900
push dword [esp + 0x68]
call fcn.005c4337
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [edi + 0x10], 0
mov ecx, edi
push 0x6a2cc8
mov word [edi], ax
call fcn.004f19e0
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.005c6c09
mov esp, ebp
pop ebp
ret