//
// sub_10092EE80 from 0x10092ee80 to 0x10092ef71 (241 bytes)
//
// 13 xrefs:
// > ThreadViewPopup::init @ 0x10092db28
// > sub_100930D70 @ 0x100930db0
// > sub_100930D70 @ 0x100930dd1
// > sub_1009319C0 @ 0x100931a25
// > sub_1009319C0 @ 0x100931a46
// > ThreadViewPopup::threadSearchFinished @ 0x100931c21
// > ThreadViewPopup::threadSearchFinished @ 0x100931c43
// > ThreadViewPopup::threadMessagesFinished @ 0x1009350df
// > ThreadViewPopup::threadMessagesFinished @ 0x10093510a
// > ThreadViewPopup::threadMessagesFinished @ 0x100935348
// > ThreadViewPopup::threadMessagesFinished @ 0x100935369
// > ThreadViewPopup::threadMessagesFailed @ 0x100936230
// > ThreadViewPopup::threadMessagesFailed @ 0x100936252
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:38:23 +0000
//
void __fastcall sub_10092EE80(__int64 a1)
{
const void *v2; // rdi
__int64 v3; // rax
__int64 v4; // rcx
int v5; // esi
int v6; // r8d
unsigned __int8 v7[16]; // [rsp+10h] [rbp-20h] BYREF
void *__p; // [rsp+20h] [rbp-10h]
if ( *(_BYTE *)(a1 + 789) == 1 && !*(_BYTE *)(a1 + 790) && !*(_BYTE *)(a1 + 1104) && !*(_BYTE *)(a1 + 1168) )
{
v2 = *(const void **)(GameLevelManager::sharedState() + 1264);
if ( !v2
|| __dynamic_cast(
v2,
(const struct __class_type_info *)&`typeinfo for'ThreadMessageDelegate,
(const struct __class_type_info *)&`typeinfo for'MessageThreadsPage,
664) )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 672;
}
if ( *(_QWORD *)(GameLevelManager::sharedState() + 1264) == a1 + 672 )
{
v3 = GameLevelManager::sharedState();
v4 = *(_QWORD *)(a1 + 776);
v5 = *(_DWORD *)(*(_QWORD *)(a1 + 752) + 56LL);
if ( v4 <= 0 )
v6 = -1;
else
v6 = *(_DWORD *)(a1 + 936);
*(_WORD *)v7 = 0;
sub_100572E00(v3, v5, 0, v4, v6, 0, v7);
if ( (v7[0] & 1) != 0 )
operator delete(__p);
}
}
}