// // AccountLayer::backupAccountFailed from 0x98ebf4 to 0x98eedc (744 bytes) // // 3 xrefs: // > `non-virtual thunk to'AccountLayer::backupAccountFailed @ 0x98eee8 // > @ 0xdeac0 // > @ 0x1472ed0 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 12:57:58 +0000 // __int64 __fastcall AccountLayer::backupAccountFailed(__int64 *a1, int a2, unsigned int a3) { GJAccountManager *v6; // x0 GJAccountManager *v7; // x0 float v8; // s9 int v9; // w3 float v10; // s8 const char *v11; // x1 cocos2d::CCString *v12; // x0 size_t v13; // x0 __int64 *v14; // x22 char *v16; // x2 __int64 *v17; // x22 cocos2d::CCString *v18; // x0 size_t v19; // x0 const char *v20; // x1 __int64 *v21; // x22 cocos2d::CCString *v22; // x0 size_t v23; // x0 const char *v24; // [xsp+58h] [xbp+58h] char *v25; // [xsp+58h] [xbp+58h] char *CString; // [xsp+58h] [xbp+58h] __int64 v27; // [xsp+60h] [xbp+60h] __int64 v28[2]; // [xsp+68h] [xbp+68h] BYREF void *v29; // [xsp+78h] [xbp+78h] __int64 v30[2]; // [xsp+80h] [xbp+80h] BYREF void *v31; // [xsp+90h] [xbp+90h] __int64 v32[2]; // [xsp+98h] [xbp+98h] BYREF void *v33; // [xsp+A8h] [xbp+A8h] __int64 v34[2]; // [xsp+B0h] [xbp+B0h] BYREF void *v35; // [xsp+C0h] [xbp+C0h] v6 = (GJAccountManager *)AccountLayer::hideLoadingUI((AccountLayer *)a1); v7 = (GJAccountManager *)*(unsigned int *)(GJAccountManager::sharedState(v6) + 440); v8 = (float)(int)v7 * 0.00000095367; v9 = *(_DWORD *)(GJAccountManager::sharedState(v7) + 444); v28[0] = 0; v28[1] = 0; v29 = nullptr; v10 = (float)v9 * 0.00000095367; std::string::__init(v28, &byte_11B8890, 0); if ( (float)(v8 + v10) <= 32.0 ) { std::string::assign(v28, "Save size is within limits.", 0x1Bu); if ( a2 != -3 ) { LABEL_3: if ( a2 == -2 ) { v14 = (__int64 *)a1[81]; v30[0] = 0; v30[1] = 0; v31 = nullptr; std::string::__init(v30, "Login failed. Please login to verify your account.", 0x32u); TextArea::setString(v14, (char *)v30); if ( (v30[0] & 1) != 0 ) operator delete(v31); } else { v20 = (char *)v28 + 1; v21 = (__int64 *)a1[81]; if ( (v28[0] & 1) != 0 ) v20 = (const char *)v29; v22 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Backup failed. Please try again later.\n%s", v20); CString = (char *)cocos2d::CCString::getCString(v22); v34[0] = 0; v34[1] = 0; v35 = nullptr; v23 = strlen(CString); std::string::__init(v34, CString, v23); TextArea::setString(v21, (char *)v34); if ( (v34[0] & 1) != 0 ) operator delete(v35); } goto LABEL_6; } } else { v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Size: %.2f/32MB. (Profile: %.2f, Levels: %.2f)", v11, (float)(v8 + v10), v8, v10); v24 = (const char *)cocos2d::CCString::getCString(v12); v13 = strlen(v24); std::string::assign(v28, v24, v13); if ( a2 != -3 ) goto LABEL_3; } v16 = (char *)v28 + 1; v17 = (__int64 *)a1[81]; if ( (v28[0] & 1) != 0 ) v16 = (char *)v29; v18 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Backup failed. Error code: %i\n%s", (const char *)a3, v16); v25 = (char *)cocos2d::CCString::getCString(v18); v32[0] = 0; v32[1] = 0; v33 = nullptr; v19 = strlen(v25); std::string::__init(v32, v25, v19); TextArea::setString(v17, (char *)v32); if ( (v32[0] & 1) != 0 ) operator delete(v33); LABEL_6: LOBYTE(v27) = -1; *(_WORD *)((char *)&v27 + 1) = 75; TextArea::colorAllCharactersTo(a1[81], v27); if ( (v28[0] & 1) != 0 ) operator delete(v29); return _stack_chk_guard; }