// // AccountHelpLayer::updatePage from 0x84cd78 to 0x84d170 (1016 bytes) // // 3 xrefs: // > AccountHelpLayer::customSetup @ 0x84d4ec // > AccountHelpLayer::accountStatusChanged @ 0x84d5d4 // > @ 0x592f8 // // 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 AccountHelpLayer::updatePage(AccountHelpLayer *a1) { GJAccountManager *v2; // x0 char *v3; // x0 __int64 v4; // x23 cocos2d::CCLabelBMFont *m_loginStatusLabel; // x23 void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // x24 double v7; // d0 cocos2d::CCString *v8; // x0 const char *CString; // x0 char *v10; // x0 TextArea *m_textArea; // x23 char *v12; // x1 char *v13; // x0 CCMenuItemSpriteExtra *m_unlinkAccountButton; // x19 void (__fastcall *setVisible)(cocos2d::CCNode *__hidden, bool); // x21 GJAccountManager *v16; // x1 GJAccountManager *v17; // x0 cocos2d::CCLabelBMFont *v18; // x23 void (__fastcall *v19)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // x24 double v20; // d0 cocos2d::CCString *v21; // x0 const char *v22; // x0 char *v23; // x0 TextArea *v24; // x23 unsigned int *v25; // x1 int v26; // w2 TextArea *v27; // x23 unsigned int *v28; // x1 unsigned int *v29; // x1 int v30; // w2 unsigned int *v31; // x1 unsigned int *v32; // x1 int v33; // w2 unsigned int *v34; // x1 int v35; // w2 char *v36; // [xsp+50h] [xbp+50h] BYREF v2 = GJAccountManager::sharedState(); if ( v2->m_accountID == v2->m_unkInt1 ) { TextArea::colorAllCharactersTo(a1->m_textArea, (cocos2d::ccColor3B)&unk_FFFFFF); } else { GJAccountManager::sharedState(); sub_D18D28(&v36); v3 = v36 - 24; v4 = *((_QWORD *)v36 - 3); if ( v36 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v29 = (unsigned int *)(v36 - 8); do v30 = __ldaxr(v29); while ( __stlxr(v30 - 1, v29) ); } else { v30 = *((_DWORD *)v36 - 2); *((_DWORD *)v36 - 2) = v30 - 1; } if ( v30 <= 0 ) operator delete(v3); } TextArea::colorAllCharactersTo(a1->m_textArea, (cocos2d::ccColor3B)&unk_FFFFFF); if ( v4 ) { m_loginStatusLabel = a1->m_loginStatusLabel; setString = m_loginStatusLabel->setString; GJAccountManager::sharedState(); *(_QWORD *)&v7 = sub_D18D28(&v36).n128_u64[0]; v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Linked to account: %s", v36, v7); CString = cocos2d::CCString::getCString(v8); setString(m_loginStatusLabel, (const unsigned __int8 *)CString); v10 = v36 - 24; if ( v36 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v32 = (unsigned int *)(v36 - 8); do v33 = __ldaxr(v32); while ( __stlxr(v33 - 1, v32) ); } else { v33 = *((_DWORD *)v36 - 2); *((_DWORD *)v36 - 2) = v33 - 1; } if ( v33 <= 0 ) operator delete(v10); } m_textArea = a1->m_textArea; sub_D153B8((int)&v36, &byte_F288A0); TextArea::setString((__int64)m_textArea, (const void **)&v36); v12 = v36; v13 = v36 - 24; if ( v36 - 24 == (char *)&qword_124B6B0 ) goto LABEL_6; if ( &pthread_create ) { v31 = (unsigned int *)(v36 - 8); do v26 = __ldaxr(v31); while ( __stlxr(v26 - 1, v31) ); goto LABEL_14; } LABEL_35: v26 = *((_DWORD *)v12 - 2); *((_DWORD *)v12 - 2) = v26 - 1; goto LABEL_14; } } v17 = GJAccountManager::sharedState(); if ( v17->m_accountID == v17->m_unkInt1 ) { a1->m_loginStatusLabel->setString(a1->m_loginStatusLabel, "Not logged in"); v27 = a1->m_textArea; sub_D153B8((int)&v36, "Create an account to backup\nand sync your data"); TextArea::setString((__int64)v27, (const void **)&v36); v12 = v36; v13 = v36 - 24; if ( v36 - 24 == (char *)&qword_124B6B0 ) goto LABEL_6; if ( !&pthread_create ) goto LABEL_35; v28 = (unsigned int *)(v36 - 8); do v26 = __ldaxr(v28); while ( __stlxr(v26 - 1, v28) ); goto LABEL_14; } v18 = a1->m_loginStatusLabel; v19 = v18->setString; GJAccountManager::sharedState(); *(_QWORD *)&v20 = sub_D18D28(&v36).n128_u64[0]; v21 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Linked to account: %s", v36, v20); v22 = cocos2d::CCString::getCString(v21); v19(v18, (const unsigned __int8 *)v22); v23 = v36 - 24; if ( v36 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v34 = (unsigned int *)(v36 - 8); do v35 = __ldaxr(v34); while ( __stlxr(v35 - 1, v34) ); } else { v35 = *((_DWORD *)v36 - 2); *((_DWORD *)v36 - 2) = v35 - 1; } if ( v35 <= 0 ) operator delete(v23); } v24 = a1->m_textArea; sub_D153B8((int)&v36, "Login required"); TextArea::setString((__int64)v24, (const void **)&v36); v12 = v36; v13 = v36 - 24; if ( v36 - 24 != (char *)&qword_124B6B0 ) { if ( !&pthread_create ) goto LABEL_35; v25 = (unsigned int *)(v36 - 8); do v26 = __ldaxr(v25); while ( __stlxr(v26 - 1, v25) ); LABEL_14: if ( v26 <= 0 ) operator delete(v13); } LABEL_6: m_unlinkAccountButton = a1->m_unlinkAccountButton; setVisible = m_unlinkAccountButton->setVisible; v16 = GJAccountManager::sharedState(); setVisible(m_unlinkAccountButton, v16->m_accountID != v16->m_unkInt1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source