// // sub_1005302A4 from 0x1005302a4 to 0x100530450 (428 bytes) // // 1 xrefs: // > AutoBackupPopup::init @ 0x100530018 // // 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 11:07:20 +0000 // void __fastcall sub_1005302A4(__int64 a1) { int v1; // w21 __int64 v3; // x8 __int64 v4; // x22 unsigned __int64 v5; // x23 __int64 v6; // x20 __int64 v7; // x0 const char *v8; // x22 void **v9; // x8 void *v10; // x0 char *CString; // x0 void *v12; // x19 void *__dst[2]; // [xsp+20h] [xbp-80h] BYREF __int64 v14; // [xsp+30h] [xbp-70h] void *__p[2]; // [xsp+40h] [xbp-60h] BYREF char v16; // [xsp+57h] [xbp-49h] __int128 v17; // [xsp+58h] [xbp-48h] BYREF __int64 v18; // [xsp+68h] [xbp-38h] v1 = *(_DWORD *)(a1 + 960); if ( v1 ) { v3 = *(_QWORD *)(a1 + 848); if ( *(_QWORD *)(a1 + 856) == v3 ) { LODWORD(v6) = 0; } else { v4 = 0; v5 = 0; v6 = 0; do { v7 = sub_1000D9098(a1 + 944, (const void **)(v3 + v4)); v3 = *(_QWORD *)(a1 + 848); if ( v7 ) v6 += *(_QWORD *)(v3 + v4 + 120); ++v5; v4 += 128; } while ( v5 < (*(_QWORD *)(a1 + 856) - v3) >> 7 ); } if ( v1 == 1 ) v8 = ""; else v8 = "s"; sub_1001D1978(v6, __p); if ( v16 >= 0 ) v9 = __p; else v9 = (void **)__p[0]; v10 = sub_1003065B0( "Delete %i selected backup%s (%s)?\nThis cannot be undone.", v1, v8, (const char *)v9); CString = (char *)cocos2d::CCString::getCString((__int64)v10); sub_100009900(&v17, CString); if ( v16 < 0 ) operator delete(__p[0]); if ( SHIBYTE(v18) < 0 ) { sub_1000097D0(__dst, (void *)v17, *((unsigned __int64 *)&v17 + 1)); } else { *(_OWORD *)__dst = v17; v14 = v18; } v12 = FLAlertLayer::create( a1 + 776, (__int64)"Delete Backups", (__int64)__dst, (__int64)"Cancel", (__int64)"Delete", 0, 380.0, 0.0, 1.0); if ( SHIBYTE(v14) < 0 ) operator delete(__dst[0]); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v12 + 72LL))(v12, 3); (*(void (__fastcall **)(void *))(*(_QWORD *)v12 + 1312LL))(v12); if ( SHIBYTE(v18) < 0 ) operator delete((void *)v17); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source