Function at 0x4cf500
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x5915f1
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x248], eax
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x84]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov dword [esp + 0xc], esi
mov word [edi], ax
mov dword [esp + 0x264], eax
call fcn.004cf990
mov eax, dword [0x7e257c]
test al, 1
jne 0x4cf59c
or eax, 1
mov dword [0x7e257c], eax
mov byte [esp + 0x264], 1
call fcn.004d3640
push 0x5a01b0
call fcn.00565027
add esp, 4
mov byte [esp + 0x264], 0
mov eax, dword [0x7e257c]
cmp byte [0x7e2688], 0
je 0x4cf80f
test al, 1
jne 0x4cf5d7
or eax, 1
mov dword [0x7e257c], eax
mov byte [esp + 0x264], 2
call fcn.004d3640
push 0x5a01b0
call fcn.00565027
add esp, 4
mov byte [esp + 0x264], 0
xor eax, eax
mov dword [esp + 0x20], 0
push 0xffffffffffffffff
push eax
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x18]
push 0x7e2580
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.00404960
mov byte [esp + 0x264], 3
mov eax, dword [0x7e257c]
test al, 1
jne 0x4cf64a
or eax, 1
mov dword [0x7e257c], eax
mov byte [esp + 0x264], 4
call fcn.004d3640
push 0x5a01b0
call fcn.00565027
add esp, 4
mov byte [esp + 0x264], 3
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x4cf663
lea ecx, [esp + 0x10]
call fcn.004bc160
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4cf687
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4cf687
push 0x5a87e8
lea ecx, [esp + 0x14]
call fcn.00403b70
xor eax, eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
mov byte [esp + 0x264], 5
push 0x208
push eax
mov word [esp + 0x4c], ax
lea eax, [esp + 0x4e]
push eax
call fcn.0056cbb0
add esp, 0xc
mov dword [esp + 0x40], 0x104
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov word [esp + 0x24a], ax
cmp word [esp + 0x44], ax
jne 0x4cf6fb
xor ecx, ecx
jmp 0x4cf711
lea ecx, [esp + 0x44]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4cf702
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x30]
call fcn.00404a80
mov edx, str.__r_t_n
lea ecx, [esp + 0x28]
call fcn.004afdd0
mov edx, str.__r_t_n
lea ecx, [esp + 0x28]
call fcn.004afe40
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call fcn.004047c0
push 1
push 0x5ac8f0
lea ecx, [esp + 0x18]
call fcn.00404880
push 0xffffffffffffffff
push 0
push 0x7e25e0
lea ecx, [esp + 0x1c]
call fcn.004047c0
push 0xc
push str..RCStat.data
lea ecx, [esp + 0x18]
call fcn.00404880
cmp byte [esp + 0x26c], 0
je 0x4cf798
push str..pending
lea ecx, [esp + 0x14]
call fcn.00403b70
lea eax, [esp + 0x10]
cmp edi, eax
je 0x4cf7ac
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00404960
mov byte [esp + 0x264], 3
cmp dword [esp + 0x3c], 8
jb 0x4cf7c7
push dword [esp + 0x28]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
mov byte [esp + 0x264], al
cmp dword [esp + 0x24], 8
jb 0x4cf7f8
push dword [esp + 0x10]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
mov dword [esp + 0x264], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.00564de8
add esp, 0x25c
ret 4