Function at 0x1005728
Capabilities:
Get session user name

Disassembly:
push 0x14
mov eax, 0x1019f5e
call fcn.0101458a
xor edi, edi
mov dword [ebp - 0x18], edi
push 0x1001378
lea ecx, [ebp - 0x14]
call sub.framedynos.dll_public:_void___thiscall_CHString::constructor_unsigned_short_int_const__
mov dword [ebp - 4], edi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp + 0x20], 1
jne 0x100576b
push 0x1001440
mov ecx, dword [ebp + 0x18]
call sub.framedynos.dll_public:_int___thiscall_CHString::Compare_unsigned_short_int_const__const
test eax, eax
je 0x10057fb
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 0x100578c
push dword [ebp + 0x28]
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x24]
push edi
push dword [ebp + 0x1c]
push edi
push edi
jmp 0x10057af
xor ecx, ecx
xor edx, edx
inc edx
cmp dword [ebp + 0x20], edi
jne 0x100579d
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
xor edx, edx
mov eax, dword [esi]
push dword [ebp + 0x28]
lea ebx, [ebp + 0x14]
push ebx
push dword [ebp + 0x24]
push edx
push dword [ebp + 0x1c]
push ecx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01005276
cmp eax, 1
jne 0x10057d8
xor edi, edi
inc edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
mov eax, edi
jmp 0x1005948
cmp dword [ebp + 0x14], 0x80041064
je 0x10057f4
cmp dword [ebp + 0x14], 0x80070005
je 0x10057f4
push dword [ebp + 0x14]
call fcn.01004dc9
jmp 0x10057c5
cmp dword [ebp + 0x20], edi
jne 0x10057fe
jmp 0x10057c5
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 0x1005867
mov byte [ebp - 4], 1
mov ebx, 0xfe
push ebx
mov ecx, esi
call sub.framedynos.dll_public:_unsigned_short_int____thiscall_CHString::GetBufferSetLength_int_
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], edi
mov dword [ebp + 0x20], ebx
lea ecx, [ebp + 0x20]
push ecx
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x100583b
call fcn.01014cc4
jmp 0x10057c5
push 0xffffffffffffffff
mov ecx, esi
call sub.framedynos.dll_public:_void___thiscall_CHString::ReleaseBuffer_int_
jmp 0x100586c
mov ebx, 0xfe
mov byte [ebp - 4], 3
push ebx
mov ebx, dword [ebp + 0x18]
mov ecx, ebx
call sub.framedynos.dll_public:_unsigned_short_int____thiscall_CHString::GetBufferSetLength_int_
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp + 0x18], eax
cmp eax, 0xffffffff
je 0x10057c5
cmp eax, edi
je 0x10057c5
push dword [esi]
push 0x157d
call fcn.01017157
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 - 0x18]
push ecx
push eax
push dword [ebp - 0x14]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0x40
push dword [ebp - 0x1c]
call fcn.01015cb6
cmp eax, 1
jne 0x10057c5
push 0xffffffffffffffff
mov ecx, ebx
call sub.framedynos.dll_public:_void___thiscall_CHString::ReleaseBuffer_int_
mov eax, dword [ebx]
mov esi, dword [esi]
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.01005276
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
mov eax, esi
jmp 0x1005948
call fcn.0101463e
ret 0x24