// // AccountLayer::updatePage from 0x5847ac to 0x584a20 (628 bytes) // // 4 xrefs: // > AccountLayer::doBackup @ 0x584a46 // > AccountLayer::doSync @ 0x584a78 // > AccountLayer::accountStatusChanged @ 0x584afa // > AccountLayer::customSetup @ 0x584f86 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:52:57 +0000 // int __fastcall AccountLayer::updatePage(AccountLayer *this, int a2) { GJAccountManager *v4; // r0 int v5; // r0 int v6; // r6 _BOOL4 v7; // r6 GJAccountManager *v8; // r0 int v9; // r8 void (__fastcall *v10)(int, int); // r10 int v11; // r0 char *v12; // r1 cocos2d::CCString *v13; // r0 int CString; // r0 int v15; // r8 GJAccountManager *v16; // r0 int *v17; // r8 int v18; // r3 void (__fastcall *v19)(int *, int); // r10 int v20; // r0 char *v21; // r1 cocos2d::CCString *v22; // r0 int v23; // r0 int v24; // r8 int v25; // r8 GJAccountManager *v26; // r0 int v27; // r8 void (__fastcall *v28)(int, bool); // r10 int v29; // r0 GJAccountManager *v30; // r0 int v31; // r4 int (__fastcall *v32)(int, bool); // r6 int v33; // r0 int result; // r0 int v35; // r6 int v36; // r0 void (__fastcall *v37)(int, _BYTE *); // r3 int v38; // r0 int (__fastcall *v39)(int, _BYTE *); // r3 _BYTE v40[4]; // [sp+4h] [bp-14h] BYREF int v41; // [sp+8h] [bp-10h] BYREF int v42; // [sp+Ch] [bp-Ch] char *v43; // [sp+10h] [bp-8h] v4 = (GJAccountManager *)GJAccountManager::sharedState(this); if ( *((_DWORD *)v4 + 70) == *((_DWORD *)v4 + 71) ) { v7 = 0; } else { v5 = GJAccountManager::sharedState(v4); std::string::basic_string(&v41, v5 + 292); if ( (v41 & 1) != 0 ) v6 = v42; else v6 = (int)(unsigned __int8)v41 >> 1; v7 = v6 != 0; std::string::~string((int)&v41); } v8 = (GJAccountManager *)TextArea::colorAllCharactersTo(*((_DWORD *)this + 125), 0xFFFFFF); if ( v7 ) { v9 = *((_DWORD *)this + 124); v10 = *(void (__fastcall **)(int, int))(*(_DWORD *)v9 + 464); v11 = GJAccountManager::sharedState(v8); std::string::basic_string(&v41, v11 + 268); if ( (v41 & 1) != 0 ) v12 = v43; else v12 = (char *)&v41 + 1; v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Linked to account: %s", v12); CString = cocos2d::CCString::getCString(v13); v10(v9, CString); std::string::~string((int)&v41); v15 = *((_DWORD *)this + 125); v41 = 0; v42 = 0; v43 = nullptr; std::string::__init(&v41, &unk_B6B226, 0); TextArea::setString(v15, &v41); } else { v16 = (GJAccountManager *)GJAccountManager::sharedState(v8); v17 = *((int **)this + 124); v18 = *v17; if ( *((_DWORD *)v16 + 70) == *((_DWORD *)v16 + 71) ) { (*(void (__fastcall **)(_DWORD, const char *))(v18 + 464))(*((_DWORD *)this + 124), "Not logged in"); v25 = *((_DWORD *)this + 125); v41 = 0; v42 = 0; v43 = nullptr; std::string::__init(&v41, "Create an account to back up\nand load your data from the cloud", 0x3Eu); TextArea::setString(v25, &v41); } else { v19 = *(void (__fastcall **)(int *, int))(v18 + 464); v20 = GJAccountManager::sharedState(v16); std::string::basic_string(&v41, v20 + 268); if ( (v41 & 1) != 0 ) v21 = v43; else v21 = (char *)&v41 + 1; v22 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Linked to account: %s", v21, (unsigned __int8)v41 << 31); v23 = cocos2d::CCString::getCString(v22); v19(v17, v23); std::string::~string((int)&v41); v24 = *((_DWORD *)this + 125); v41 = 0; v42 = 0; v43 = nullptr; std::string::__init(&v41, "Login required", 0xEu); TextArea::setString(v24, &v41); } } std::string::~string((int)&v41); v26 = (GJAccountManager *)(*(int (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 126) + 172))( *((_DWORD *)this + 126), !v7); v27 = *((_DWORD *)this + 127); v28 = *(void (__fastcall **)(int, bool))(*(_DWORD *)v27 + 172); v29 = GJAccountManager::sharedState(v26); v28(v27, *(_DWORD *)(v29 + 280) == *(_DWORD *)(v29 + 284)); (*(void (__fastcall **)(_DWORD, _BOOL4))(**((_DWORD **)this + 128) + 172))(*((_DWORD *)this + 128), v7); (*(void (__fastcall **)(_DWORD, _BOOL4))(**((_DWORD **)this + 129) + 172))(*((_DWORD *)this + 129), v7); v30 = (GJAccountManager *)(*(int (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 130) + 172))( *((_DWORD *)this + 130), !v7); v31 = *((_DWORD *)this + 131); v32 = *(int (__fastcall **)(int, bool))(*(_DWORD *)v31 + 172); v33 = GJAccountManager::sharedState(v30); result = v32(v31, *(_DWORD *)(v33 + 280) != *(_DWORD *)(v33 + 284)); if ( a2 ) { if ( !*((_BYTE *)this + 536) ) { (*(void (__fastcall **)(_DWORD))(**((_DWORD **)this + 128) + 528))(*((_DWORD *)this + 128)); v35 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 128) + 536))(*((_DWORD *)this + 128)); v36 = *(_DWORD *)(v35 + 548); v37 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v36 + 480); memset(v40, 125, 3); v37(v36, v40); v38 = *(_DWORD *)(v35 + 536); v39 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v38 + 536); memset(v40, 125, 3); return v39(v38, v40); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source