// // GJMessagePopup::onBlock from 0x1002a7ee0 to 0x1002a811b (571 bytes) // // 1 xrefs: // > GJMessagePopup::loadFromGJMessage @ 0x1002a7af0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall GJMessagePopup::onBlock(GJMessagePopup *a1, cocos2d::CCObject *a2) { __int128 v2; // xmm0 GJUserMessage *m_message; // rax std::string *p_m_username; // rax cocos2d::CCString *v5; // rax const char *CString; // r14 size_t v7; // rax size_t v8; // r15 char *v9; // r12 char *v10; // r14 size_t v11; // r13 size_t v12; // rax size_t v13; // r15 char *v14; // r12 size_t v15; // r13 ButtonSprite **v16; // rbx char v17; // [rsp+0h] [rbp-80h] _QWORD v18[2]; // [rsp+8h] [rbp-78h] BYREF void *__p; // [rsp+18h] [rbp-68h] __int128 v20; // [rsp+20h] [rbp-60h] BYREF void *longStorage; // [rsp+30h] [rbp-50h] _QWORD __dst[2]; // [rsp+40h] [rbp-40h] BYREF char *__s; // [rsp+50h] [rbp-30h] m_message = a1->m_message; if ( (m_message->m_username.m_data.m_short.sizex2 & 1) != 0 ) { sub_100006B70( &v20, m_message->m_username.m_data.m_long.longStorage, m_message->m_username.m_data.m_long.size, *(double *)&v2); } else { p_m_username = &m_message->m_username; longStorage = p_m_username->m_data.m_long.longStorage; v2 = *(_OWORD *)&p_m_username->m_data.m_short.sizex2; v20 = *(_OWORD *)&p_m_username->m_data.m_short.sizex2; } v5 = (cocos2d::CCString *)sub_1007AB580( "Are you sure you want to block %s?\n" "%s will no longer be able to:\n" "- View your profile\n" "- Send messages\n" "- Send friend requests\n" "- Messages from this user will be removed", v17); CString = cocos2d::CCString::getCString(v5); v7 = strlen(CString); if ( v7 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(*(double *)&v2); v8 = v7; if ( v7 >= 0x17 ) { v11 = 26; if ( (v7 | 7) != 0x17 ) v11 = (v7 | 7) + 1; v9 = (char *)operator new(v11); __s = v9; __dst[0] = v11 | 1; __dst[1] = v8; LABEL_12: memmove(v9, CString, v8); v9[v8] = 0; if ( (__dst[0] & 1) != 0 ) goto LABEL_8; goto LABEL_13; } LOBYTE(__dst[0]) = 2 * v7; v9 = (char *)__dst + 1; if ( v7 ) goto LABEL_12; BYTE1(__dst[0]) = 0; if ( (__dst[0] & 1) != 0 ) { LABEL_8: v10 = __s; goto LABEL_14; } LABEL_13: v10 = (char *)__dst + 1; LABEL_14: v12 = strlen(v10); if ( v12 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(*(double *)&v2); v13 = v12; if ( v12 >= 0x17 ) { v15 = 26; if ( (v12 | 7) != 0x17 ) v15 = (v12 | 7) + 1; v14 = (char *)operator new(v15); __p = v14; v18[0] = v15 | 1; v18[1] = v13; goto LABEL_21; } LOBYTE(v18[0]) = 2 * v12; v14 = (char *)v18 + 1; if ( v12 ) LABEL_21: memmove(v14, v10, v13); v14[v13] = 0; v16 = (ButtonSprite **)FLAlertLayer::create( &a1->FLAlertLayerProtocol, "Confirm Block", v18, "Back", "Block", 0, 380.0, 0.0, 1.0); if ( (v18[0] & 1) != 0 ) operator delete(__p); ButtonSprite::updateBGImage(v16[75], "GJ_button_06.png"); (*(void (__fastcall **)(ButtonSprite **, __int64))&(*v16)->m_fVertexZ)(v16, 1); (*(void (__fastcall **)(ButtonSprite **))&(*v16)[1].m_fTextureTop)(v16); if ( (__dst[0] & 1) != 0 ) operator delete(__s); if ( (v20 & 1) != 0 ) operator delete(longStorage); }
GD Web Decomp Icon

GD Web Decomp

Raw Source