// // ThreadViewPopup::refreshLockNotice from 0x1400dad40 to 0x1400db47a (1850 bytes) // // 9 xrefs: // > ThreadViewPopup::init @ 0x1400da5f4 // > ThreadViewPopup::exitSearch @ 0x1400dbde6 // > ThreadViewPopup::threadSendFinished @ 0x1400de4dc // > ThreadViewPopup::threadSendFinished @ 0x1400de5da // > ThreadViewPopup::threadMessagesFinished @ 0x1400dec3c // > ThreadViewPopup::threadMessagesFinished @ 0x1400dee43 // > ThreadViewPopup::threadMessagesFinished @ 0x1400def82 // > ThreadOptionsPopup::threadUpdateFinished @ 0x1400f62bc // > @ 0x140914894 // // 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:28 +0000 // // Hidden C++ exception states: #wind=1 _UNKNOWN **__fastcall ThreadViewPopup::refreshLockNotice(__int64 a1) { _UNKNOWN **result; // rax __int64 v3; // rcx char v4; // dl int v5; // ecx bool v6; // r15 __int64 v7; // rcx __int64 v8; // rcx __int64 v9; // rcx __int64 v10; // rcx __int64 v11; // rcx __int64 v12; // rcx __int64 v13; // rcx __int64 v14; // rcx size_t v15; // rsi __int64 *v16; // rax __int64 v17; // rcx bool v18; // di _BYTE *v19; // rax size_t v20; // r8 char *v21; // r12 const char *v22; // rdx __int64 v23; // rax void **v24; // rcx char *v25; // rbx size_t v26; // r13 bool v27; // r14 char *v28; // rax const char *v29; // rdx struct cocos2d::CCLabelBMFont *v30; // rax __int64 *v31; // rdi __int64 v32; // rbx __int64 v33; // rax __int64 v34; // rax const char *CString; // rdx int v36; // r8d cocos2d::CCString *v37; // rax __int64 v38; // rax char *v39; // rdx char *v40; // rbx __int64 v41; // rcx int v42; // ecx __int64 v43; // rcx int v44; // ecx size_t v45; // r8 __int64 v46; // rbx float v47; // xmm6_4 double v48; // xmm0_8 float v49; // xmm7_4 __int64 v50; // rdi __int64 *v51; // r14 __int64 v52; // rsi double (__fastcall *v53)(__int64); // rbx double v54; // xmm0_8 float v55; // xmm6_4 double v56; // xmm0_8 __int64 v57; // rax __int64 *v58; // [rsp+30h] [rbp-A8h] BYREF __int128 v59; // [rsp+38h] [rbp-A0h] BYREF __int64 v60; // [rsp+48h] [rbp-90h] __int64 v61; // [rsp+50h] [rbp-88h] void *Buf1[2]; // [rsp+58h] [rbp-80h] BYREF size_t Size[2]; // [rsp+68h] [rbp-70h] _UNKNOWN *retaddr; // [rsp+D8h] [rbp+0h] BYREF result = &retaddr; if ( *(_BYTE *)(a1 + 1104) ) return result; v6 = true; if ( !*(_BYTE *)(a1 + 783) ) { v3 = *(_QWORD *)(a1 + 744); v4 = *(_BYTE *)(v3 + 320); if ( (v4 || *(_DWORD *)(v3 + 324) != 8) && !*(_BYTE *)(v3 + 328) ) { if ( !v4 || (v5 = *(_DWORD *)(v3 + 324), v5 != 2) && (((v5 - 4) & 0xFFFFFFFC) != 0 || v5 == 6) ) v6 = false; } } v7 = *(_QWORD *)(a1 + 1224); if ( v7 ) (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v7 + 336LL))(v7, !v6); v8 = *(_QWORD *)(a1 + 1232); if ( v8 ) (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v8 + 336LL))(v8, !v6); v9 = *(_QWORD *)(a1 + 1008); if ( v9 ) (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v9 + 336LL))(v9, !v6); v10 = *(_QWORD *)(a1 + 904); if ( v10 ) (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v10 + 336LL))(v10, !v6); v11 = *(_QWORD *)(a1 + 1016); if ( v6 ) { if ( v11 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v11 + 336LL))(v11, 0); v12 = *(_QWORD *)(a1 + 912); if ( v12 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v12 + 1104LL))(v12, 0); } v13 = *(_QWORD *)(a1 + 920); if ( v13 ) { if ( v6 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v13 + 1032LL))(v13, 0); (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 920) + 336LL))(*(_QWORD *)(a1 + 920), !v6); (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 920) + 920LL))(*(_QWORD *)(a1 + 920), !v6); } v14 = *(_QWORD *)(a1 + 904); v15 = -1; if ( v14 ) { v16 = (__int64 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v14 + 952LL))(v14); v58 = v16; v17 = *(_QWORD *)(a1 + 744); v18 = *(_BYTE *)(v17 + 320) && *(_DWORD *)(v17 + 324) == 1; v19 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(v16[79] + 360) + 8LL))(v16[79] + 360); *(_OWORD *)Buf1 = 0; *(_OWORD *)Size = 0; v20 = -1; do ++v20; while ( v19[v20] ); sub_14003D230(Buf1, v19, v20); v21 = "Send"; v22 = "Send"; if ( v18 ) v22 = "Req"; v23 = -1; do ++v23; while ( v22[v23] ); v24 = Buf1; v25 = (char *)Buf1[0]; v26 = Size[1]; if ( Size[1] > 0xF ) v24 = (void **)Buf1[0]; if ( Size[0] == v23 ) { if ( Size[0] ) v27 = memcmp(v24, v22, Size[0]) == 0; else v27 = 1; } else { v27 = 0; } if ( v26 > 0xF ) { v28 = v25; if ( v26 + 1 >= 0x1000 ) { v25 = *((char **)v25 - 1); if ( (unsigned __int64)(v28 - v25 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v25); } if ( !v27 ) { if ( v18 ) v21 = "Req"; ButtonSprite::setString(v58, v21); v29 = "GJ_button_01.png"; if ( v18 ) v29 = "GJ_button_05.png"; ButtonSprite::updateBGImage((__int64)v58, v29); } } if ( !*(_QWORD *)(a1 + 792) ) { v30 = cocos2d::CCLabelBMFont::create(&byte_1406ED6E0, "goldFont.fnt"); *(_QWORD *)(a1 + 792) = v30; (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v30 + 160LL))(v30); v31 = *(__int64 **)(a1 + 792); v32 = *v31; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v58, *(float *)(a1 + 840), *(float *)(a1 + 1060) + 14.0); (*(void (__fastcall **)(__int64 *, __int64))(v32 + 184))(v31, v33); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 792), 6); } v34 = *(_QWORD *)(a1 + 744); if ( *(_BYTE *)(a1 + 783) ) { CString = "Moderator view."; if ( *(_BYTE *)(v34 + 328) ) CString = "Locked. Moderator view."; } else if ( *(_BYTE *)(v34 + 320) || *(_DWORD *)(v34 + 324) != 8 ) { if ( *(_BYTE *)(v34 + 328) ) { CString = "This conversation has been locked."; } else { v36 = *(_DWORD *)(v34 + 324); if ( v36 == 4 ) { v37 = cocos2d::CCString::createWithFormat("%s only accepts messages from friends."); } else { if ( v36 != 5 ) { CString = "Message request pending."; if ( v36 == 7 ) CString = "You can't message this user."; goto LABEL_76; } v37 = cocos2d::CCString::createWithFormat("%s has messages turned off."); } CString = cocos2d::CCString::getCString(v37); } } else { CString = "You were removed from this group chat."; } LABEL_76: (**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 792) + 360LL))( *(_QWORD *)(a1 + 792) + 360LL, CString); cocos2d::CCLabelBMFont::limitLabelWidth( *(cocos2d::CCLabelBMFont **)(a1 + 792), *(float *)(a1 + 832) - 40.0, 0.5, 0.30000001); (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 792) + 336LL))(*(_QWORD *)(a1 + 792), v6); if ( !*(_QWORD *)(a1 + 800) ) { v58 = (__int64 *)Buf1; *(_OWORD *)Buf1 = 0; Size[0] = 0; Size[1] = 15; LOBYTE(Buf1[0]) = 0; v59 = 0; v60 = 0; v61 = 15; LOBYTE(v59) = 0; v38 = InfoAlertButton::create(&v59, Buf1); *(_QWORD *)(a1 + 800) = v38; *(_DWORD *)(v38 + 372) = 1069547520; (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), *(_QWORD *)(a1 + 800)); } if ( *(_BYTE *)(a1 + 783) ) { v39 = "Moderator View"; v40 = "You are reading this conversation as a moderator.\nParticipants cannot see this and nothing is marked read."; } else { v41 = *(_QWORD *)(a1 + 744); if ( *(_BYTE *)(v41 + 320) || *(_DWORD *)(v41 + 324) != 8 ) { if ( *(_BYTE *)(v41 + 328) ) { v39 = "Conversation Locked"; } else { v42 = *(_DWORD *)(v41 + 324); if ( v42 == 4 ) { v39 = "Friends Only"; } else if ( v42 == 5 ) { v39 = "Messages Off"; } else { v39 = "Request Pending"; if ( v42 == 7 ) v39 = "Blocked"; } } } else { v39 = "Removed"; } v43 = *(_QWORD *)(a1 + 744); if ( *(_BYTE *)(v43 + 320) || *(_DWORD *)(v43 + 324) != 8 ) { if ( *(_BYTE *)(v43 + 328) ) { v40 = "A moderator locked this conversation.\nIt can still be read, but no new messages can be sent."; } else { v44 = *(_DWORD *)(v43 + 324); if ( v44 == 4 ) { v40 = "This user only accepts messages from friends.\nSend a friend request to message them."; } else if ( v44 == 5 ) { v40 = "This user has turned messages off.\nYou can read the conversation but not reply."; } else { v40 = "Your message was sent as a request.\nYou can write again once they reply."; if ( v44 == 7 ) v40 = "Messages between you and this user are blocked."; } } } else { v40 = "The owner removed you from this group chat.\n" "You can still read messages sent before you were removed.\n" "You cannot see new messages or send messages.\n" "You can remove the group chat from the options menu when you are done."; } } v45 = -1; do ++v45; while ( v39[v45] ); sub_1400405A0((void **)(*(_QWORD *)(a1 + 800) + 520LL), v39, v45); do ++v15; while ( v40[v15] ); sub_1400405A0((void **)(*(_QWORD *)(a1 + 800) + 552LL), v40, v15); v46 = *(_QWORD *)(a1 + 792); v47 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v46 + 320LL))(v46); v48 = (*(double (__fastcall **)(__int64))(*(_QWORD *)v46 + 168LL))(v46); v49 = *(float *)&v48 * v47; v50 = *(_QWORD *)(a1 + 792); v51 = *(__int64 **)(a1 + 800); v52 = *v51; v53 = *(double (__fastcall **)(__int64))(*(_QWORD *)v50 + 232LL); v54 = (*(double (__fastcall **)(__int64))(*(_QWORD *)v50 + 216LL))(v50); v55 = (float)(*(float *)&v54 + (float)(v49 * 0.5)) + 12.0; v56 = v53(v50); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v58, v55, *(float *)&v56); (*(void (__fastcall **)(__int64 *, __int64))(v52 + 184))(v51, v57); return (_UNKNOWN **)(*(__int64 (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 800) + 336LL))( *(_QWORD *)(a1 + 800), v6); }
GD Web Decomp Icon

GD Web Decomp

Raw Source