Function at 0x1002d39
Capabilities:
Get session user name

Disassembly:
mov eax, 0x100a990
call fcn.01006a70
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
push 0x10012c4
lea ecx, [ebp - 0x1c]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_unsigned_short_int_const__
mov byte [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
inc edi
cmp dword [ebp + 0x20], edi
jne 0x1002d8c
push 0x10012d0
mov ecx, dword [ebp + 0x18]
call sub.framedyn.dll_public:_int___thiscall_CHString::Compare_unsigned_short_int_const__const
test eax, eax
je 0x1002e35
mov esi, dword [ebp + 0x14]
mov ecx, esi
call sub.framedyn.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x1002db2
push dword [ebp + 0x28]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x24]
push ebx
push dword [ebp + 0x1c]
push ebx
push ebx
jmp 0x1002de1
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
cmp dword [ebp + 0x20], ebx
jne 0x1002dc8
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ebx
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
push dword [ebp + 0x28]
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp + 0x24]
push dword [ebp - 0x2c]
push dword [ebp + 0x1c]
push dword [ebp - 0x28]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0100287a
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x1002e06
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x34], edi
mov esi, edi
jmp 0x1002e1c
cmp dword [ebp - 0x14], 0x80070005
je 0x1002e2b
push dword [ebp - 0x14]
call fcn.01002430
mov dword [ebp - 0x38], ebx
xor esi, esi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
mov eax, esi
jmp 0x1002e84
cmp dword [ebp + 0x20], ebx
jne 0x1002e38
mov dword [ebp - 0x3c], ebx
jmp 0x1002e77
mov esi, dword [ebp + 0x14]
mov ecx, esi
call sub.framedyn.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
mov eax, dword [eax + 4]
mov dword [ebp - 0x40], eax
mov edi, 0xfe
cmp eax, ebx
jne 0x1002e9e
mov dword [ebp - 0x44], ebx
push edi
mov ecx, esi
call sub.framedyn.dll_public:_unsigned_short_int____thiscall_CHString::GetBufferSetLength_int_
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], edi
lea ecx, [ebp - 0x48]
push ecx
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x1002e95
call fcn.01007751
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
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 sub.framedyn.dll_public:_void___thiscall_CHString::ReleaseBuffer_int_
push edi
mov edi, dword [ebp + 0x18]
mov ecx, edi
call sub.framedyn.dll_public:_unsigned_short_int____thiscall_CHString::GetBufferSetLength_int_
mov dword [ebp - 0x50], eax
push dword [esi]
push 0x157d
call fcn.01008316
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.framedyn.dll_public:_void___cdecl_CHString::Format_unsigned_short_int_const__
add esp, 0xc
lea ecx, [ebp - 0x1c]
call sub.framedyn.dll_protected:_struct_CHStringData____thiscall_CHString::GetData_void_const
mov eax, dword [eax + 4]
mov dword [ebp - 0x54], eax
push ebx
lea ecx, [ebp - 0x18]
push ecx
push eax
push dword [ebp - 0x1c]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0x40
push dword [ebp - 0x50]
call fcn.01007b2b
push 0xffffffffffffffff
mov ecx, edi
call sub.framedyn.dll_public:_void___thiscall_CHString::ReleaseBuffer_int_
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 - 0x14]
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.0100287a
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
jmp 0x1002e84