//
// MessageThreadsPage::threadListFinished from 0x10092c180 to 0x10092c74e (1486 bytes)
//
// 2 xrefs:
// > sub_10092CE10 @ 0x10092ce1c
// > ??> @ 0x100bc2370
//
// 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:22 +0000
//
void __fastcall MessageThreadsPage::threadListFinished(
__int64 a1,
__int64 a2,
unsigned int a3,
unsigned int a4,
int a5,
double a6)
{
__int64 v7; // r15
int v9; // r14d
int v10; // r13d
__int64 v11; // rdx
__int64 v12; // r15
int v13; // r14d
unsigned int v14; // r14d
__int64 v15; // r15
__int64 v16; // r14
unsigned int v17; // eax
size_t v18; // rdx
unsigned int v19; // ecx
__int64 v20; // rsi
const void *v21; // rdi
const void *v22; // rsi
unsigned int v23; // eax
size_t v24; // rdx
unsigned int v25; // ecx
__int64 v26; // rsi
const void *v27; // rdi
const void *v28; // rsi
unsigned int v29; // eax
size_t v30; // rdx
unsigned int v31; // ecx
__int64 v32; // rsi
const void *v33; // rdi
const void *v34; // rsi
unsigned int v35; // eax
size_t v36; // rdx
unsigned int v37; // ecx
__int64 v38; // rsi
const void *v39; // rdi
const void *v40; // rsi
unsigned int v41; // r15d
const std::string *v42; // r14
std::string *v43; // rax
__int64 v44; // rdi
__int64 v45; // r14
char *v46; // rax
__int64 CString; // rax
__int64 v48; // [rsp+0h] [rbp-50h]
unsigned int v49; // [rsp+Ch] [rbp-44h]
__int64 v50; // [rsp+10h] [rbp-40h]
unsigned __int8 v53; // [rsp+20h] [rbp-30h]
int v54; // [rsp+24h] [rbp-2Ch]
if ( *(_BYTE *)(a1 + 928) == 1 )
{
*(_BYTE *)(a1 + 928) = 0;
MessageThreadsPage::loadPage(a1, *(unsigned int *)(a1 + 840), 0);
return;
}
v7 = a4;
v53 = *(_BYTE *)(a1 + 929);
*(_BYTE *)(a1 + 929) = 0;
v9 = *(_DWORD *)(GameLevelManager::sharedState() + 480);
v10 = 0;
cocos2d::CCNode::unschedule(a1, (__int64)sub_10092BF00, 0);
if ( v9 > 0 )
{
*(float *)&a6 = (float)v9;
cocos2d::CCNode::schedule_1(a1, (__int64)sub_10092BF00, 0, a6);
}
v50 = v7;
if ( a2 )
v10 = sub_1007FEF90(a2);
if ( !v53 || *(_QWORD *)(a1 + 688) == 0 || v10 <= 0 )
goto LABEL_92;
v12 = *(_QWORD *)(a1 + 800);
v13 = 0;
v54 = 0;
if ( v12 )
v54 = sub_1007FEF90(v12);
v48 = v12;
if ( a2 )
v13 = sub_1007FEF90(a2);
if ( v54 != v13 )
{
LABEL_92:
MessageThreadsPage::applyThreadList(a1, a2, a3, v50, (unsigned int)a5, v53);
return;
}
if ( v54 > 0 )
{
v14 = 0;
do
{
v15 = sub_1007FEFE0(v48, v14);
v49 = v14;
v16 = sub_1007FEFE0(a2, v14);
if ( *(_DWORD *)(v15 + 56) != *(_DWORD *)(v16 + 56)
|| *(_DWORD *)(v15 + 112) != *(_DWORD *)(v16 + 112)
|| *(_DWORD *)(v15 + 116) != *(_DWORD *)(v16 + 116)
|| *(_DWORD *)(v15 + 168) != *(_DWORD *)(v16 + 168)
|| *(_BYTE *)(v15 + 204) != *(_BYTE *)(v16 + 204)
|| *(_BYTE *)(v15 + 265) != *(_BYTE *)(v16 + 265)
|| *(_DWORD *)(v15 + 268) != *(_DWORD *)(v16 + 268)
|| *(_BYTE *)(v15 + 274) != *(_BYTE *)(v16 + 274)
|| *(_BYTE *)(v15 + 264) != *(_BYTE *)(v16 + 264)
|| *(_DWORD *)(v15 + 200) != *(_DWORD *)(v16 + 200)
|| *(_DWORD *)(v15 + 208) != *(_DWORD *)(v16 + 208) )
{
goto LABEL_92;
}
v17 = *(unsigned __int8 *)(v15 + 88);
if ( (v17 & 1) != 0 )
{
v18 = *(_QWORD *)(v15 + 96);
v19 = *(unsigned __int8 *)(v16 + 88);
if ( (v19 & 1) == 0 )
goto LABEL_30;
}
else
{
v18 = v17 >> 1;
v19 = *(unsigned __int8 *)(v16 + 88);
if ( (v19 & 1) == 0 )
{
LABEL_30:
v20 = v19 >> 1;
goto LABEL_33;
}
}
v20 = *(_QWORD *)(v16 + 96);
LABEL_33:
if ( v18 != v20 )
goto LABEL_92;
if ( (v17 & 1) != 0 )
{
v21 = *(const void **)(v15 + 104);
if ( (v19 & 1) == 0 )
goto LABEL_36;
}
else
{
v21 = (const void *)(v15 + 89);
if ( (v19 & 1) == 0 )
{
LABEL_36:
v22 = (const void *)(v16 + 89);
goto LABEL_39;
}
}
v22 = *(const void **)(v16 + 104);
LABEL_39:
if ( memcmp(v21, v22, v18) )
goto LABEL_92;
v23 = *(unsigned __int8 *)(v15 + 64);
if ( (v23 & 1) != 0 )
{
v24 = *(_QWORD *)(v15 + 72);
v25 = *(unsigned __int8 *)(v16 + 64);
if ( (v25 & 1) == 0 )
goto LABEL_42;
}
else
{
v24 = v23 >> 1;
v25 = *(unsigned __int8 *)(v16 + 64);
if ( (v25 & 1) == 0 )
{
LABEL_42:
v26 = v25 >> 1;
goto LABEL_45;
}
}
v26 = *(_QWORD *)(v16 + 72);
LABEL_45:
if ( v24 != v26 )
goto LABEL_92;
if ( (v23 & 1) != 0 )
{
v27 = *(const void **)(v15 + 80);
if ( (v25 & 1) == 0 )
goto LABEL_48;
}
else
{
v27 = (const void *)(v15 + 65);
if ( (v25 & 1) == 0 )
{
LABEL_48:
v28 = (const void *)(v16 + 65);
goto LABEL_51;
}
}
v28 = *(const void **)(v16 + 80);
LABEL_51:
if ( memcmp(v27, v28, v24) )
goto LABEL_92;
v29 = *(unsigned __int8 *)(v15 + 216);
if ( (v29 & 1) != 0 )
{
v30 = *(_QWORD *)(v15 + 224);
v31 = *(unsigned __int8 *)(v16 + 216);
if ( (v31 & 1) == 0 )
goto LABEL_54;
}
else
{
v30 = v29 >> 1;
v31 = *(unsigned __int8 *)(v16 + 216);
if ( (v31 & 1) == 0 )
{
LABEL_54:
v32 = v31 >> 1;
goto LABEL_57;
}
}
v32 = *(_QWORD *)(v16 + 224);
LABEL_57:
if ( v30 != v32 )
goto LABEL_92;
if ( (v29 & 1) != 0 )
{
v33 = *(const void **)(v15 + 232);
if ( (v31 & 1) == 0 )
goto LABEL_60;
}
else
{
v33 = (const void *)(v15 + 217);
if ( (v31 & 1) == 0 )
{
LABEL_60:
v34 = (const void *)(v16 + 217);
goto LABEL_63;
}
}
v34 = *(const void **)(v16 + 232);
LABEL_63:
if ( memcmp(v33, v34, v30) )
goto LABEL_92;
v35 = *(unsigned __int8 *)(v15 + 240);
if ( (v35 & 1) != 0 )
{
v36 = *(_QWORD *)(v15 + 248);
v37 = *(unsigned __int8 *)(v16 + 240);
if ( (v37 & 1) != 0 )
goto LABEL_68;
}
else
{
v36 = v35 >> 1;
v37 = *(unsigned __int8 *)(v16 + 240);
if ( (v37 & 1) != 0 )
{
LABEL_68:
v38 = *(_QWORD *)(v16 + 248);
goto LABEL_69;
}
}
v38 = v37 >> 1;
LABEL_69:
if ( v36 != v38 )
goto LABEL_92;
v39 = (v35 & 1) != 0 ? *(const void **)(v15 + 256) : (const void *)(v15 + 241);
v40 = (v37 & 1) != 0 ? *(const void **)(v16 + 256) : (const void *)(v16 + 241);
if ( memcmp(v39, v40, v36)
|| *(_DWORD *)(v15 + 308) != *(_DWORD *)(v16 + 308)
|| *(_DWORD *)(v15 + 312) != *(_DWORD *)(v16 + 312)
|| *(_DWORD *)(v15 + 316) != *(_DWORD *)(v16 + 316)
|| *(_DWORD *)(v15 + 320) != *(_DWORD *)(v16 + 320)
|| *(_DWORD *)(v15 + 324) != *(_DWORD *)(v16 + 324)
|| *(_DWORD *)(v15 + 328) != *(_DWORD *)(v16 + 328) )
{
goto LABEL_92;
}
v14 = v49 + 1;
}
while ( v54 != v49 + 1 );
}
*(_DWORD *)(a1 + 844) = a3;
if ( a5 > 0 )
{
v11 = (unsigned int)((int)v50 >> 31);
LODWORD(v11) = (int)v50 % a5;
*(_DWORD *)(a1 + 832) = (int)v50 / a5;
}
(*(void (__fastcall **)(_QWORD, bool, __int64))(**(_QWORD **)(a1 + 712) + 344LL))(
*(_QWORD *)(a1 + 712),
(int)v50 > 0,
v11);
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 720) + 344LL))(
*(_QWORD *)(a1 + 720),
(int)v50 + v10 < (int)a3);
v41 = 0;
do
{
v42 = (const std::string *)(sub_1007FEFE0(a2, v41) + 144);
v43 = (std::string *)sub_1007FEFE0(*(_QWORD *)(a1 + 800), v41);
std::string::operator=(v43 + 6, v42);
++v41;
}
while ( v10 != v41 );
v44 = *(_QWORD *)(a1 + 936);
if ( v44 )
CustomListView::reloadAll(v44, (__int64)v42, a6);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 704) + 344LL))(*(_QWORD *)(a1 + 704), 0);
v45 = *(_QWORD *)(a1 + 792);
v46 = sub_10088E820("%i to %i of %i", (int)v50 + 1, (int)v50 + v10, a3);
CString = cocos2d::CCString::getCString((__int64)v46);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v45 + 928LL))(v45, CString);
sub_10092AC30(a1);
if ( *(_BYTE *)(a1 + 930) == 1 )
{
*(_BYTE *)(a1 + 930) = 0;
MessageThreadsPage::loadPage(a1, *(unsigned int *)(a1 + 832), *(_QWORD *)(a1 + 688) != 0);
}
}