// // AccountLayer::backupAccountFailed from 0x585040 to 0x5851de (414 bytes) // // 1 xrefs: // > `non-virtual thunk to'AccountLayer::backupAccountFailed @ 0x585208 // // 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::backupAccountFailed(int *a1, int a2, const char *a3) { GJAccountManager *v6; // r0 GJAccountManager *v7; // r0 int v8; // s17 float v9; // s17 int v10; // s16 const char *v11; // r1 float v12; // s16 cocos2d::CCString *v13; // r0 char *CString; // r1 int v15; // r8 int *v16; // r6 char *v17; // r2 cocos2d::CCString *v18; // r0 const char *v19; // r9 size_t v20; // r0 char *v21; // r1 cocos2d::CCString *v22; // r0 const char *v23; // r9 size_t v24; // r0 int v26; // [sp+10h] [bp-3Ch] int v27[2]; // [sp+14h] [bp-38h] BYREF char *v28; // [sp+1Ch] [bp-30h] int v29[3]; // [sp+20h] [bp-2Ch] BYREF int v30[3]; // [sp+2Ch] [bp-20h] BYREF int v31[3]; // [sp+38h] [bp-14h] BYREF v6 = (GJAccountManager *)AccountLayer::hideLoadingUI((AccountLayer *)a1); v7 = (GJAccountManager *)GJAccountManager::sharedState(v6); v8 = *((_DWORD *)v7 + 82); v27[0] = 0; v27[1] = 0; v28 = nullptr; v9 = (float)v8 * 0.00000095367; v10 = *(_DWORD *)(GJAccountManager::sharedState(v7) + 332); std::string::__init(v27, &unk_B6B226, 0); v12 = (float)v10 * 0.00000095367; if ( (float)(v9 + v12) <= 32.0 ) { CString = "Save size is within limits."; } else { v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Size: %.2f/32MB. (Profile: %.2f, Levels: %.2f)", v11, (float)(v9 + v12), v9, v12); CString = (char *)cocos2d::CCString::getCString(v13); } std::string::assign(v27, CString); v15 = a1[125]; if ( a2 == -3 ) { if ( (v27[0] & 1) != 0 ) v17 = v28; else v17 = (char *)v27 + 1; v18 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Backup failed. Error code: %i\n%s", a3, v17); v19 = (const char *)cocos2d::CCString::getCString(v18); memset(v30, 0, sizeof(v30)); v16 = v30; v20 = strlen(v19); std::string::__init(v30, v19, v20); TextArea::setString(v15, v30); } else if ( a2 == -2 ) { v16 = v29; memset(v29, 0, sizeof(v29)); std::string::__init(v29, "Login failed. Please login to verify your account.", 0x32u); TextArea::setString(v15, v29); } else { if ( (v27[0] & 1) != 0 ) v21 = v28; else v21 = (char *)v27 + 1; v22 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Backup failed. Please try again later.\n%s", v21); v23 = (const char *)cocos2d::CCString::getCString(v22); memset(v31, 0, sizeof(v31)); v16 = v31; v24 = strlen(v23); std::string::__init(v31, v23, v24); TextArea::setString(v15, v31); } std::string::~string((int)v16); LOWORD(v26) = 19455; BYTE2(v26) = 0; TextArea::colorAllCharactersTo(a1[125], v26); return std::string::~string((int)v27); }