// // ProfilePage::onBlockUser from 0x1007bded0 to 0x1007be1e2 (786 bytes) // // 1 xrefs: // > ProfilePage::loadPageFromUserInfo @ 0x1007bbe8b // // 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 ProfilePage::onBlockUser(ProfilePage *a1, cocos2d::CCObject *a2) { __int128 v2; // xmm0 GJAccountManager *v3; // rax GJUserScore *m_score; // rax std::string *p_m_userName; // rax const char *v6; // rdx char *v7; // rbx char *v8; // rax const char *CString; // r14 size_t v10; // rax size_t v11; // r15 char *v12; // r12 char *v13; // r14 size_t v14; // r13 size_t v15; // rax size_t v16; // r15 char *v17; // r12 size_t v18; // r13 ButtonSprite **v19; // rbx __int128 v20; // [rsp+0h] [rbp-70h] BYREF void *v21; // [rsp+10h] [rbp-60h] _QWORD __dst[2]; // [rsp+18h] [rbp-58h] BYREF char *__s; // [rsp+28h] [rbp-48h] __int128 v24; // [rsp+30h] [rbp-40h] BYREF void *__p; // [rsp+40h] [rbp-30h] v3 = GJAccountManager::sharedState(); if ( v3->m_accountID > v3->m_unkInt1 ) { m_score = a1->m_score; if ( (m_score->m_userName.m_data.m_short.sizex2 & 1) != 0 ) { sub_100006B70( &v24, m_score->m_userName.m_data.m_long.longStorage, m_score->m_userName.m_data.m_long.size, *(double *)&v2); if ( (v24 & 1) == 0 ) goto LABEL_4; } else { p_m_userName = &m_score->m_userName; __p = p_m_userName->m_data.m_long.longStorage; v2 = *(_OWORD *)&p_m_userName->m_data.m_short.sizex2; v24 = *(_OWORD *)&p_m_userName->m_data.m_short.sizex2; if ( (v24 & 1) == 0 ) { LABEL_4: v6 = (char *)&v24 + 1; goto LABEL_10; } } v6 = (const char *)__p; LABEL_10: v8 = 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", v6, v6); CString = cocos2d::CCString::getCString((cocos2d::CCString *)v8); v10 = strlen(CString); if ( v10 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(*(double *)&v2); v11 = v10; if ( v10 >= 0x17 ) { v14 = 26; if ( (v10 | 7) != 0x17 ) v14 = (v10 | 7) + 1; v12 = (char *)operator new(v14); __s = v12; __dst[0] = v14 | 1; __dst[1] = v11; } else { LOBYTE(__dst[0]) = 2 * v10; v12 = (char *)__dst + 1; if ( !v10 ) { BYTE1(__dst[0]) = 0; if ( (__dst[0] & 1) != 0 ) { LABEL_14: v13 = __s; goto LABEL_20; } LABEL_19: v13 = (char *)__dst + 1; LABEL_20: v15 = strlen(v13); if ( v15 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(*(double *)&v2); v16 = v15; if ( v15 >= 0x17 ) { v18 = 26; if ( (v15 | 7) != 0x17 ) v18 = (v15 | 7) + 1; v17 = (char *)operator new(v18); v21 = v17; *(_QWORD *)&v20 = v18 | 1; *((_QWORD *)&v20 + 1) = v16; } else { LOBYTE(v20) = 2 * v15; v17 = (char *)&v20 + 1; if ( !v15 ) goto LABEL_28; } memmove(v17, v13, v16); LABEL_28: v17[v16] = 0; v19 = (ButtonSprite **)FLAlertLayer::create( (int)a1 + 632, (int)"Confirm Block", &v20, (int)"Back", (int)"Block", 0, 380.0, 0.0, 1.0); if ( (v20 & 1) != 0 ) operator delete(v21); ButtonSprite::updateBGImage(v19[75], "GJ_button_06.png"); (*(void (__fastcall **)(ButtonSprite **, __int64))&(*v19)->m_fVertexZ)(v19, 3); (*(void (__fastcall **)(ButtonSprite **))&(*v19)[1].m_fTextureTop)(v19); if ( (__dst[0] & 1) != 0 ) operator delete(__s); if ( (v24 & 1) != 0 ) operator delete(__p); return; } } memmove(v12, CString, v11); v12[v11] = 0; if ( (__dst[0] & 1) != 0 ) goto LABEL_14; goto LABEL_19; } __p = operator new(0x70u); *(_QWORD *)&v24 = 113; *((_QWORD *)&v24 + 1) = 111; strcpy( (char *)__p, "Create an to send messages, add friends and more! You can create an account from the main menu."); v7 = FLAlertLayer::create_1(0, (int)"No Account", (__int64)&v24, (int)"OK", 0, COERCE_DOUBLE(1135214592)); if ( (v24 & 1) != 0 ) operator delete(__p); (*(void (__fastcall **)(char *))(*(_QWORD *)v7 + 1288LL))(v7); }
GD Web Decomp Icon

GD Web Decomp

Raw Source