// // ProfilePage::onBlockUser from 0x1403c42d0 to 0x1403c451c (588 bytes) // // 2 xrefs: // > ProfilePage::loadPageFromUserInfo @ 0x1403c2469 // > @ 0x1406d77c0 // // 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 // // Hidden C++ exception states: #wind=4 void ProfilePage::onBlockUser(ProfilePage *a1, cocos2d::CCObject *a2) { GJAccountManager *v3; // rax ProfilePage *v4; // rcx const char *v5; // r8 const char *v6; // rdx cocos2d::CCString *v7; // rax const char *CString; // rax size_t v9; // rbx size_t v10; // r8 void **v11; // rdx FLAlertLayer *v12; // rbx __int64 v13; // rax void *v14; // rcx FLAlertLayer *v15; // [rsp+58h] [rbp-41h] __int128 v16; // [rsp+60h] [rbp-39h] BYREF __int64 v17; // [rsp+70h] [rbp-29h] __int64 v18; // [rsp+78h] [rbp-21h] _BYTE v19[32]; // [rsp+80h] [rbp-19h] BYREF void *Block[2]; // [rsp+A0h] [rbp+7h] BYREF __int64 v21; // [rsp+B0h] [rbp+17h] unsigned __int64 v22; // [rsp+B8h] [rbp+1Fh] _QWORD v23[4]; // [rsp+C0h] [rbp+27h] BYREF v3 = GJAccountManager::sharedState(); if ( v3->m_accountID - v3->m_unkInt1 > 0 ) { sub_14003BDB0((__int64)v23, (__int64)&a1->m_score->m_userName); v5 = (const char *)v23; if ( v23[3] <= 0xFu ) { v6 = (const char *)v23; } else { v6 = (const char *)v23[0]; v5 = (const char *)v23[0]; } v7 = cocos2d::CCString::createWithFormat( "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, v5); CString = cocos2d::CCString::getCString(v7); *(_OWORD *)Block = 0; v21 = 0; v22 = 0; v9 = -1; v10 = -1; do ++v10; while ( CString[v10] ); sub_14003A930(Block, CString, v10); v11 = Block; if ( v22 > 0xF ) v11 = (void **)Block[0]; v16 = 0; v17 = 0; v18 = 0; do ++v9; while ( *((_BYTE *)v11 + v9) ); sub_14003A930(&v16, v11, v9); v15 = (FLAlertLayer *)operator new(0x278u); v12 = FLAlertLayer::FLAlertLayer(v15); if ( v12 ) { v13 = sub_14003BDB0((__int64)v19, (__int64)&v16); if ( FLAlertLayer::init( (__int64)v12, (__int64)&a1->FLAlertLayerProtocol, "Confirm Block", v13, "Back", "Block", 380.0, 0, 0, 1.0) ) { cocos2d::CCObject::autorelease(v12); } else { ((void (__fastcall *)(FLAlertLayer *, __int64))v12->~FLAlertLayer)(v12, 1); v12 = nullptr; } } sub_14003A830((__int64)&v16); ButtonSprite::updateBGImage(v12->m_button2, "GJ_button_06.png"); v12->setTag(v12, 3); v12->show(v12); if ( v22 > 0xF ) { v14 = Block[0]; if ( v22 + 1 >= 0x1000 ) { v14 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v14 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v14); } sub_14003A830((__int64)v23); } else { ProfilePage::showNoAccountError(v4); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source