// // ThreadOptionsPopup::threadUpdateFinished from 0x1400f6120 to 0x1400f64f7 (983 bytes) // // 2 xrefs: // > @ 0x14072cbe0 // > @ 0x14091526c // // 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 11:26:38 +0000 // // Hidden C++ exception states: #wind=2 void __fastcall ThreadOptionsPopup::threadUpdateFinished(__int64 a1, int a2, unsigned int a3) { __int64 v5; // rcx int v6; // eax __int64 v7; // rsi __int64 *v8; // r14 const char *v9; // rdx size_t v10; // r8 __int64 v11; // rbx __int64 v12; // rdx __int64 v13; // r8 __int64 v14; // rax cocos2d::CCNotificationCenter *v15; // rax __int64 v16; // rcx __int64 *v17; // rsi char v18; // cl const char *v19; // rdx size_t v20; // r8 __int64 v21; // rbx __int64 v22; // rdx __int64 v23; // r8 __int64 v24; // rax __int64 *v25; // rsi const char *v26; // rcx const char *v27; // rdx bool v28; // zf size_t v29; // r8 __int64 v30; // rbx __int64 v31; // rdx __int64 v32; // r8 __int64 v33; // rax __int64 v34; // rbx __int64 v35; // rbx __int64 v36; // rax __int64 v37; // rcx __int128 v38; // [rsp+30h] [rbp-40h] BYREF __int64 v39; // [rsp+40h] [rbp-30h] __int64 v40; // [rsp+48h] [rbp-28h] __int128 v41; // [rsp+50h] [rbp-20h] BYREF __int64 v42; // [rsp+60h] [rbp-10h] __int64 v43; // [rsp+68h] [rbp-8h] void *v44; // [rsp+A0h] [rbp+30h] v5 = *(_QWORD *)(a1 + 16); if ( a2 != *(_DWORD *)(v5 + 56) || a3 != *(_DWORD *)(a1 + 32) ) { v37 = *(_QWORD *)(a1 + 24); if ( v37 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)(v37 + 672) + 64LL))(v37 + 672); return; } *(_DWORD *)(a1 + 32) = 0; if ( a3 == 10 ) { *(_BYTE *)(v5 + 244) = *(_BYTE *)(v5 + 244) == 0; v25 = *(__int64 **)(cocos2d::CCDirector::sharedDirector(v5) + 272); v26 = "Conversation muted"; v27 = "Conversation unmuted"; v28 = *(_BYTE *)(*(_QWORD *)(a1 + 16) + 244LL) == 0; LABEL_32: if ( !v28 ) v27 = v26; v41 = 0; v42 = 0; v43 = 15; LOBYTE(v41) = 0; v38 = 0; v39 = 0; v40 = 0; v29 = -1; do ++v29; while ( v27[v29] ); sub_14003D230(&v38, v27, v29); v30 = *v25; v33 = TextAlertPopup::create(&v38, v31, v32, 150, &v41); (*(void (__fastcall **)(__int64 *, __int64, __int64))(v30 + 456))(v25, v33, 1000); v34 = *(_QWORD *)(a1 + 24); if ( v34 ) { v35 = v34 + 672; v36 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v44 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v44); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v36 = *(_QWORD *)&qword_14090BFB0; } *(_QWORD *)(v36 + 1392) = v35; goto LABEL_22; } LABEL_21: v15 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::sharedNotificationCenter(); cocos2d::CCNotificationCenter::postNotification(v15, "ThreadsChangedNotification", nullptr); LABEL_22: (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 - 1000) + 1104LL))(a1 - 1000, 0); return; } if ( a3 == 15 ) { *(_BYTE *)(v5 + 330) = *(_BYTE *)(v5 + 330) == 0; v25 = *(__int64 **)(cocos2d::CCDirector::sharedDirector(v5) + 272); v26 = "Conversation pinned"; v27 = "Conversation unpinned"; v28 = *(_BYTE *)(*(_QWORD *)(a1 + 16) + 330LL) == 0; goto LABEL_32; } if ( a3 - 101 <= 1 ) { *(_BYTE *)(v5 + 328) = a3 == 101; v16 = *(_QWORD *)(a1 + 24); if ( v16 ) ThreadViewPopup::refreshLockNotice(v16); v17 = *(__int64 **)(cocos2d::CCDirector::sharedDirector(v16) + 272); v18 = *(_BYTE *)(*(_QWORD *)(a1 + 16) + 328LL); v41 = 0; v42 = 0; v43 = 15; LOBYTE(v41) = 0; v19 = "Conversation unlocked"; if ( v18 ) v19 = "Conversation locked"; v38 = 0; v39 = 0; v40 = 0; v20 = -1; do ++v20; while ( v19[v20] ); sub_14003D230(&v38, v19, v20); v21 = *v17; v24 = TextAlertPopup::create(&v38, v22, v23, 150, &v41); (*(void (__fastcall **)(__int64 *, __int64, __int64))(v21 + 456))(v17, v24, 1000); goto LABEL_22; } if ( a3 <= 0x12 ) { v6 = 264226; if ( _bittest(&v6, a3) ) { v7 = *(_QWORD *)(a1 + 24); if ( v7 ) { ThreadViewPopup::onClose(*(_QWORD **)(a1 + 24)); *(_QWORD *)(a1 + 24) = 0; } v8 = *(__int64 **)(cocos2d::CCDirector::sharedDirector(v5) + 272); switch ( a3 ) { case 0xBu: v9 = "Request cancelled"; break; case 5u: v9 = "Left group chat"; break; case 0x12u: v9 = "Group chat removed"; break; default: v9 = "Messages cleared"; if ( !*(_DWORD *)(a1 + 36) ) v9 = "Left conversation"; break; } v38 = 0; v39 = 0; v40 = 15; LOBYTE(v38) = 0; v41 = 0; v42 = 0; v43 = 0; v10 = -1; do ++v10; while ( v9[v10] ); sub_14003D230(&v41, v9, v10); v11 = *v8; v14 = TextAlertPopup::create(&v41, v12, v13, 150, &v38); (*(void (__fastcall **)(__int64 *, __int64, __int64))(v11 + 456))(v8, v14, 1000); if ( v7 ) goto LABEL_22; goto LABEL_21; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source