// // AccountHelpLayer::updatePage from 0x14007fd20 to 0x14007ffe3 (707 bytes) // // 3 xrefs: // > AccountHelpLayer::customSetup @ 0x14007f9d6 // > AccountHelpLayer::accountStatusChanged @ 0x14007fd17 // > @ 0x1406c6984 // // 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=1 void AccountHelpLayer::updatePage(AccountHelpLayer *a1) { char v2; // bl GJAccountManager *v3; // rax GJAccountManager *v4; // rax bool v5; // si GJAccountManager *v6; // rax const char *v7; // rdx cocos2d::CCLabelProtocol_vtbl *v8; // rbx cocos2d::CCString *v9; // rax const char *CString; // rax GJAccountManager *v11; // rax const char *v12; // rdx cocos2d::CCLabelProtocol_vtbl *v13; // rbx cocos2d::CCString *v14; // rax const char *v15; // rax GJAccountManager *v16; // rax __int64 m_unkInt1; // rdx int v18; // [rsp+20h] [rbp-40h] BYREF __int128 v19; // [rsp+30h] [rbp-30h] BYREF __int64 v20; // [rsp+40h] [rbp-20h] unsigned __int64 v21; // [rsp+48h] [rbp-18h] v2 = 0; v18 = 0; v3 = GJAccountManager::sharedState(); v5 = false; if ( v3->m_accountID != v3->m_unkInt1 ) { v4 = GJAccountManager::sharedState(); sub_14003BDB0((__int64)&v19, (__int64)&v4->m_GJP2); v2 = 3; if ( v20 ) v5 = true; } if ( (v2 & 1) != 0 ) sub_14003A830((__int64)&v19); LOWORD(v18) = -1; BYTE2(v18) = -1; TextArea::colorAllCharactersTo(a1->m_textArea, (cocos2d::ccColor3B *)&v18); v6 = GJAccountManager::sharedState(); if ( v5 ) { sub_14003BDB0((__int64)&v19, (__int64)&v6->m_username); v7 = (const char *)&v19; if ( v21 > 0xF ) v7 = (const char *)v19; v8 = a1->m_loginStatusLabel->__vftable; v9 = cocos2d::CCString::createWithFormat("Linked to account: %s", v7); CString = cocos2d::CCString::getCString(v9); v8->setString(&a1->m_loginStatusLabel->cocos2d::CCLabelProtocol, CString); sub_14003A830((__int64)&v19); v19 = 0; v20 = 0; v21 = 15; LOBYTE(v19) = 0; } else if ( v6->m_accountID == v6->m_unkInt1 ) { a1->m_loginStatusLabel->setString(&a1->m_loginStatusLabel->cocos2d::CCLabelProtocol, "Not logged in"); v19 = 0; v20 = 0; v21 = 15; *(_QWORD *)&v19 = sub_14003AA10(0x30u); v20 = 46; v21 = 47; strcpy((char *)v19, "Create an account to backup\nand sync your data"); } else { v11 = GJAccountManager::sharedState(); sub_14003BDB0((__int64)&v19, (__int64)&v11->m_username); v12 = (const char *)&v19; if ( v21 > 0xF ) v12 = (const char *)v19; v13 = a1->m_loginStatusLabel->__vftable; v14 = cocos2d::CCString::createWithFormat("Linked to account: %s", v12); v15 = cocos2d::CCString::getCString(v14); v13->setString(&a1->m_loginStatusLabel->cocos2d::CCLabelProtocol, v15); sub_14003A830((__int64)&v19); v20 = 14; v21 = 15; strcpy((char *)&v19, "Login required"); HIBYTE(v19) = 0; } TextArea::setString(a1->m_textArea, (__int64)&v19); v16 = GJAccountManager::sharedState(); m_unkInt1 = (unsigned int)v16->m_unkInt1; LOBYTE(m_unkInt1) = v16->m_accountID != (_DWORD)m_unkInt1; a1->m_unlinkAccountButton->setVisible(a1->m_unlinkAccountButton, m_unkInt1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source