// // AccountLayer::backupAccountFailed from 0x84c25c to 0x84c628 (972 bytes) // // 3 xrefs: // > `non-virtual thunk to'AccountLayer::backupAccountFailed @ 0x84c634 // > @ 0xa9e00 // > @ 0x118ddb0 // // 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 AccountLayer::backupAccountFailed(AccountLayer *a1, BackupAccountError a2, int a3) { float v6; // s9 float v7; // s8 const char *v8; // x1 double v9; // d0 cocos2d::CCString *v10; // x0 size_t v11; // x0 unsigned __int64 v12; // d0 TextArea *v13; // x21 cocos2d::CCString *v14; // x0 char *v15; // x0 char *v16; // x0 char *v17; // x0 TextArea *m_textArea; // x24 cocos2d::CCString *v19; // x0 char *v20; // x0 char *v21; // x1 unsigned int *v22; // x1 int v23; // w2 TextArea *v24; // x24 unsigned int *v25; // x1 unsigned int *v26; // x1 int v27; // w2 unsigned int *v28; // x1 int v29; // w2 const char *CString; // [xsp+68h] [xbp+68h] cocos2d::ccColor3B v31; // [xsp+80h] [xbp+80h] char *v32; // [xsp+88h] [xbp+88h] BYREF char *v33; // [xsp+90h] [xbp+90h] BYREF char *v34; // [xsp+98h] [xbp+98h] BYREF _DWORD *v35; // [xsp+A0h] [xbp+A0h] BYREF AccountLayer::hideLoadingUI(a1); v6 = (float)GJAccountManager::sharedState()->m_gameManagerSize * 0.00000095367; v7 = (float)GJAccountManager::sharedState()->m_localLevelsSize * 0.00000095367; sub_D153B8((int)&v32, &byte_F288A0); *(float *)&v9 = v6 + v7; if ( (float)(v6 + v7) > 32.0 ) { v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Size: %.2f/32MB. (Profile: %.2f, Levels: %.2f)", v8, *(float *)&v9, v6, v7); CString = cocos2d::CCString::getCString(v10); v11 = strlen(CString); v12 = sub_D1798C(&v32, CString, v11).n128_u64[0]; if ( a2 != BackupOrSyncFailed ) goto LABEL_3; LABEL_8: m_textArea = a1->m_textArea; v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Backup failed. Error code: %i\n%s", (const char *)(unsigned int)a3, v32, *(double *)&v12); v20 = (char *)cocos2d::CCString::getCString(v19); sub_D153B8((int)&v34, v20); TextArea::setString((__int64)m_textArea, (const void **)&v34); v21 = v34; v16 = v34 - 24; if ( v34 - 24 == (char *)&qword_124B6B0 ) goto LABEL_5; if ( &pthread_create ) { v22 = (unsigned int *)(v34 - 8); do v23 = __ldaxr(v22); while ( __stlxr(v23 - 1, v22) ); LABEL_12: if ( v23 > 0 ) goto LABEL_5; goto LABEL_13; } LABEL_30: v23 = *((_DWORD *)v21 - 2); *((_DWORD *)v21 - 2) = v23 - 1; goto LABEL_12; } v12 = sub_D1798C(&v32, "Save size is within limits.", 27, v9).n128_u64[0]; if ( a2 == BackupOrSyncFailed ) goto LABEL_8; LABEL_3: if ( a2 == LoginFailed ) { v24 = a1->m_textArea; sub_D153B8((int)&v33, "Login failed. Please login to verify your account."); TextArea::setString((__int64)v24, (const void **)&v33); v21 = v33; v16 = v33 - 24; if ( v33 - 24 == (char *)&qword_124B6B0 ) goto LABEL_5; if ( &pthread_create ) { v25 = (unsigned int *)(v33 - 8); do v23 = __ldaxr(v25); while ( __stlxr(v23 - 1, v25) ); goto LABEL_12; } goto LABEL_30; } v13 = a1->m_textArea; v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Backup failed. Please try again later.\n%s", v32, *(double *)&v12); v15 = (char *)cocos2d::CCString::getCString(v14); sub_D153B8((int)&v35, v15); TextArea::setString((__int64)v13, (const void **)&v35); v16 = (char *)(v35 - 6); if ( v35 - 6 != (_DWORD *)&qword_124B6B0 ) { if ( &pthread_create ) { v28 = v35 - 2; do v29 = __ldaxr(v28); while ( __stlxr(v29 - 1, v28) ); } else { v29 = *(v35 - 2); *(v35 - 2) = v29 - 1; } if ( v29 <= 0 ) LABEL_13: operator delete(v16); } LABEL_5: v31.r = -1; *(_WORD *)&v31.g = 75; TextArea::colorAllCharactersTo(a1->m_textArea, v31); v17 = v32 - 24; if ( v32 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v26 = (unsigned int *)(v32 - 8); do v27 = __ldaxr(v26); while ( __stlxr(v27 - 1, v26) ); } else { v27 = *((_DWORD *)v32 - 2); *((_DWORD *)v32 - 2) = v27 - 1; } if ( v27 <= 0 ) operator delete(v17); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source