Function at 0x1002c62
Capabilities:
Get session user name

Disassembly:
push 0x14
mov eax, 0x100fdc5
call fcn.01001e76
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
lea ecx, [ebp - 0x14]
call sub.framedynos.dll_public:_void___thiscall_CHString::constructor_void_
mov dword [ebp - 4], edi
mov byte [ebp - 4], 1
cmp dword [ebp + 0x20], 1
jne 0x1002ca0
push 0x10027cc
mov ecx, dword [ebp + 0x18]
call sub.framedynos.dll_public:_int___thiscall_CHString::Compare_unsigned_short_int_const__const
test eax, eax
je 0x100955e
mov esi, dword [ebp + 0x14]
mov ecx, esi
call sub.framedynos.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
cmp dword [eax + 4], edi
jne 0x10094fa
push dword [ebp + 0x30]
push dword [ebp + 0x28]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x24]
push edi
push dword [ebp + 0x1c]
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01002d08
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
cmp dword [ebp - 0x1c], 1
jne 0x1009525
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
xor eax, eax
inc eax
call fcn.01001894
ret 0x2c
xor ecx, ecx
xor edx, edx
inc edx
cmp dword [ebp + 0x20], edi
jne 0x100950b
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
xor edx, edx
mov eax, dword [esi]
push dword [ebp + 0x30]
push dword [ebp + 0x28]
lea ebx, [ebp - 0x18]
push ebx
push dword [ebp + 0x24]
push edx
push dword [ebp + 0x1c]
push ecx
push eax
jmp 0x1002cc6
mov eax, 0x80041064
cmp dword [ebp - 0x18], eax
je 0x1009554
mov eax, 0x80070005
cmp dword [ebp - 0x18], eax
je 0x1009554
push dword [ebp - 0x18]
call fcn.01007792
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
xor eax, eax
jmp 0x1002cfb
push eax
call ebx
cmp dword [ebp + 0x20], edi
je 0x1009541
jmp 0x1009561
mov esi, dword [ebp + 0x14]
mov ecx, esi
call sub.framedynos.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
cmp dword [eax + 4], edi
jne 0x100959d
mov dword [ebp + 0x20], edi
lea eax, [ebp + 0x20]
push eax
push edi
push 2
call sub.Secur32.dll_GetUserNameExW
push dword [ebp + 0x20]
mov ecx, esi
call sub.framedynos.dll_public:_unsigned_short_int____thiscall_CHString::GetBufferSetLength_int_
lea ecx, [ebp + 0x20]
push ecx
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x100959d
call fcn.01002877
jmp 0x1009541
mov ebx, dword [ebp + 0x2c]
cmp ebx, edi
jne 0x10095a9
mov ebx, 0x100
push ebx
mov ecx, dword [ebp + 0x18]
call sub.framedynos.dll_public:_unsigned_short_int____thiscall_CHString::GetBufferSetLength_int_
mov dword [ebp + 0x20], eax
push dword [esi]
push 0x157d
call fcn.01001c99
push eax
lea eax, [ebp - 0x14]
push eax
call sub.framedynos.dll_public:_void___cdecl_CHString::Format_unsigned_short_int_const__
add esp, 0xc
lea ecx, [ebp - 0x14]
call sub.framedynos.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
mov eax, dword [eax + 4]
push edi
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [ebp - 0x14]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push ebx
push dword [ebp + 0x20]
call fcn.0100d214
mov dword [ebp - 0x1c], eax
cmp eax, 1
jne 0x1009541
push 0xffffffffffffffff
mov ebx, dword [ebp + 0x18]
mov ecx, ebx
call sub.framedynos.dll_public:_void___thiscall_CHString::ReleaseBuffer_int_
mov eax, dword [ebx]
mov esi, dword [esi]
push dword [ebp + 0x30]
push dword [ebp + 0x28]
push edi
push dword [ebp + 0x24]
push edi
push dword [ebp + 0x1c]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01002d08
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
mov eax, dword [ebp - 0x1c]
jmp 0x1002cfb