// // GJUserCell::onUnblockUser from 0x100256440 to 0x100256685 (581 bytes) // // 1 xrefs: // > GJUserCell::loadFromScore @ 0x10024be18 // // 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 GJUserCell::onUnblockUser(GJUserCell *a1, cocos2d::CCObject *a2) { __int128 v2; // xmm0 GJUserScore *m_userScore; // rax std::string *p_m_userName; // rax cocos2d::CCString *v5; // rax const char *CString; // rbx size_t v7; // rax size_t v8; // r14 char *v9; // r15 char *v10; // rbx size_t v11; // r12 size_t v12; // rax size_t v13; // r14 char *v14; // r15 size_t v15; // r12 ButtonSprite **v16; // rbx char v17; // [rsp+0h] [rbp-80h] _QWORD v18[2]; // [rsp+8h] [rbp-78h] BYREF void *v19; // [rsp+18h] [rbp-68h] __int128 v20; // [rsp+20h] [rbp-60h] BYREF void *__p; // [rsp+30h] [rbp-50h] _QWORD __dst[2]; // [rsp+40h] [rbp-40h] BYREF char *__s; // [rsp+50h] [rbp-30h] m_userScore = a1->m_userScore; if ( !m_userScore || m_userScore->m_accountID <= 0 ) return; if ( (m_userScore->m_userName.m_data.m_short.sizex2 & 1) != 0 ) { sub_100006B70( &v20, m_userScore->m_userName.m_data.m_long.longStorage, m_userScore->m_userName.m_data.m_long.size, *(double *)&v2); } else { p_m_userName = &m_userScore->m_userName; __p = 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 unblock %s?", 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; } else { LOBYTE(__dst[0]) = 2 * v7; v9 = (char *)__dst + 1; if ( !v7 ) { BYTE1(__dst[0]) = 0; if ( (v20 & 1) == 0 ) goto LABEL_11; goto LABEL_10; } } memmove(v9, CString, v8); v9[v8] = 0; if ( (v20 & 1) != 0 ) LABEL_10: operator delete(__p); LABEL_11: if ( (__dst[0] & 1) != 0 ) v10 = __s; else v10 = (char *)__dst + 1; 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); v19 = v14; v18[0] = v15 | 1; v18[1] = v13; } else { LOBYTE(v18[0]) = 2 * v12; v14 = (char *)v18 + 1; if ( !v12 ) goto LABEL_27; } memmove(v14, v10, v13); LABEL_27: v14[v13] = 0; v16 = (ButtonSprite **)FLAlertLayer::create_1( &a1->FLAlertLayerProtocol, "Unblock user", v18, "Back", "Unblock", 300.0); if ( (v18[0] & 1) != 0 ) operator delete(v19); (*(void (__fastcall **)(ButtonSprite **, __int64))&(*v16)->m_fVertexZ)(v16, 1); ButtonSprite::updateBGImage(v16[75], "GJ_button_05.png"); (*(void (__fastcall **)(ButtonSprite **))&(*v16)[1].m_fTextureTop)(v16); if ( (__dst[0] & 1) != 0 ) operator delete(__s); }
GD Web Decomp Icon

GD Web Decomp

Raw Source