Function at 0x10079ff
Capabilities:
Get session user name

Disassembly:
push 0x14
mov eax, 0x10105f8
call fcn.010087c2
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 0x1007a3d
push 0x1001460
mov ecx, dword [ebp + 0x18]
call sub.framedynos.dll_public:_int___thiscall_CHString::Compare_unsigned_short_int_const__const
test eax, eax
je 0x1007af6
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 0x1007a61
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
jmp 0x1007a87
xor ecx, ecx
xor edx, edx
inc edx
cmp dword [ebp + 0x20], edi
jne 0x1007a72
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
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010074f3
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 0x1007aba
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
xor eax, eax
inc eax
jmp 0x1007ae4
mov eax, 0x80041064
cmp dword [ebp - 0x18], eax
je 0x1007aec
mov eax, 0x80070005
cmp dword [ebp - 0x18], eax
je 0x1007aec
push dword [ebp - 0x18]
call fcn.01006f72
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
xor eax, eax
call fcn.0100883b
ret 0x2c
push eax
call ebx
cmp dword [ebp + 0x20], edi
jne 0x1007af9
jmp 0x1007ad6
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 0x1007b35
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 0x1007b35
call fcn.010097db
jmp 0x1007ad6
mov ebx, dword [ebp + 0x2c]
cmp ebx, edi
jne 0x1007b41
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.0100b775
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.0100a667
mov dword [ebp - 0x1c], eax
cmp eax, 1
jne 0x1007ad6
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.010074f3
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 0x1007ae4