Function at 0x1002ef6
Capabilities:
Get session user name

Disassembly:
mov eax, 0x100b97c
call fcn.01007108
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
push 0x10012d4
lea ecx, [ebp - 0x14]
call fcn.0100b75c
mov byte [ebp - 4], 1
push ebx
call dword [fcn.01001080]
xor edi, edi
inc edi
cmp dword [ebp + 0x20], edi
jne 0x1002f49
push 0x10012e0
mov ecx, dword [ebp + 0x18]
call fcn.0100b774
test eax, eax
je 0x1002ff2
mov esi, dword [ebp + 0x14]
mov ecx, esi
call fcn.0100b6cc
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], eax
cmp eax, ebx
jne 0x1002f6f
push dword [ebp + 0x28]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x24]
push ebx
push dword [ebp + 0x1c]
push ebx
push ebx
jmp 0x1002f9e
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x20], ebx
jne 0x1002f85
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
mov eax, dword [esi]
mov dword [ebp - 0x3c], eax
push dword [ebp + 0x28]
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0x24]
push dword [ebp - 0x20]
push dword [ebp + 0x1c]
push dword [ebp - 0x24]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01002a34
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x1002fc3
push dword [ebp - 0x18]
call dword [fcn.01001080]
mov dword [ebp - 0x40], edi
mov esi, edi
jmp 0x1002fd9
cmp dword [ebp - 0x18], 0x80070005
je 0x1002fe8
push dword [ebp - 0x18]
call fcn.01002586
mov dword [ebp - 0x44], ebx
xor esi, esi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.0100b6d8
mov eax, esi
jmp 0x1003041
cmp dword [ebp + 0x20], ebx
jne 0x1002ff5
mov dword [ebp - 0x48], ebx
jmp 0x1003034
mov esi, dword [ebp + 0x14]
mov ecx, esi
call fcn.0100b6cc
mov eax, dword [eax + 4]
mov dword [ebp - 0x4c], eax
mov edi, 0xfe
cmp eax, ebx
jne 0x100305b
mov dword [ebp - 0x28], ebx
push edi
mov ecx, esi
call fcn.0100b750
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edi
lea ecx, [ebp - 0x2c]
push ecx
push eax
push 2
call fcn.0100b6c0
test al, al
jne 0x1003052
call fcn.01007fcb
mov dword [ebp - 0x50], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.0100b6d8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x24
push 0xffffffffffffffff
mov ecx, esi
call fcn.0100b744
push edi
mov edi, dword [ebp + 0x18]
mov ecx, edi
call fcn.0100b750
mov dword [ebp - 0x34], eax
push dword [esi]
push 0x157d
call fcn.01008c99
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0100b768
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.0100b6cc
mov eax, dword [eax + 4]
mov dword [ebp - 0x54], eax
push ebx
lea ecx, [ebp - 0x30]
push ecx
push eax
push dword [ebp - 0x14]
push 0xfffffffffffffff4
call dword [0x100104c]
push eax
call dword [0x1001078]
push 0x40
push dword [ebp - 0x34]
call fcn.01008464
push 0xffffffffffffffff
mov ecx, edi
call fcn.0100b744
mov eax, dword [edi]
mov dword [ebp - 0x58], eax
mov esi, dword [esi]
mov dword [ebp - 0x5c], esi
push dword [ebp + 0x28]
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0x24]
push ebx
push dword [ebp + 0x1c]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01002a34
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.0100b6d8
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
jmp 0x1003041