Function at 0x10008530
Capabilities:
Get session information
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x10088b84
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
mov eax, dword [0x100d4254]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [esp + 0x14]
mov dword [esp + 8], 0
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
push ecx
push 5
push eax
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x100085d5
push 0xffffffffffffffff
push dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const___int_]
add esp, 0xc
push dword [esp + 8]
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString__]
lea ecx, [esp + 0xc]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x44
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.10009c60
mov esi, eax
push 0x28
push str.WTSQuerySessionInformation_lasterror:__1
mov dword [esp + 0x58], 0
call dword [sym.imp.Qt5Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____cdecl_QString::fromAscii_helper_char_const___int_]
mov dword [esp + 0x20], eax
add esp, 0xc
mov byte [esp + 0x10], 0x20
mov ecx, esp
mov byte [esp + 0x4c], 1
push dword [esp + 0x10]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
push 0
push esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.Qt5Core.dll_public:_class_QString___thiscall_QString::arg_class_QString_const___int__class_QChar_]
mov esi, eax
lea eax, [esp + 0x18]
mov byte [esp + 0x48], 2
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x3c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug___thiscall_QMessageLogger::debug_void_]
push esi
mov ecx, eax
mov byte [esp + 0x4c], 3
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___class_QString_const__]
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 2
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDebug::destructor_void_]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 1
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 0
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], 0xffffffff
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
push 0
push 0x1009e7f0
call dword [sym.imp.Qt5Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____cdecl_QString::fromAscii_helper_char_const___int_]
mov ecx, dword [esp + 0x58]
add esp, 8
mov dword [ecx], eax
mov eax, ecx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x44
ret