// // AccountLayer::onSync from 0x10009ac50 to 0x10009ae05 (437 bytes) // // 1 xrefs: // > AccountLayer::customSetup @ 0x10009a480 // // This function is hookable on this platform (idp: pc, 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:20:11 +0000 // __int64 __fastcall AccountLayer::onSync(__int64 a1) { __int64 v1; // rax __int64 v2; // rax const char *CString; // r14 size_t v4; // rax size_t v5; // rbx char *v6; // r15 __int64 v7; // rbx size_t v8; // r12 _QWORD v10[2]; // [rsp+0h] [rbp-50h] BYREF void *__p; // [rsp+10h] [rbp-40h] _QWORD __dst[2]; // [rsp+18h] [rbp-38h] BYREF void *v13; // [rsp+28h] [rbp-28h] v1 = GameLevelManager::sharedState(); if ( (unsigned int)GameLevelManager::getTimeLeft(v1, "sync_account", 30.0) - 1 <= 0x1D ) { v2 = sub_10088E820("Please wait %i seconds before attempting to sync your account again.", v10[0]); CString = (const char *)cocos2d::CCString::getCString(v2); v4 = strlen(CString); if ( v4 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v5 = v4; if ( v4 >= 0x17 ) { v8 = 26; if ( (v4 | 7) != 0x17 ) v8 = (v4 | 7) + 1; v6 = (char *)operator new(v8); v13 = v6; __dst[0] = v8 + 1; __dst[1] = v5; } else { LOBYTE(__dst[0]) = 2 * v4; v6 = (char *)__dst + 1; if ( !v4 ) { LABEL_13: v6[v5] = 0; v7 = FLAlertLayer::create_1(0, "Too fast", __dst, "OK", 0, 300.0); if ( (__dst[0] & 1) != 0 ) operator delete(v13); return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 1312LL))(v7); } } memmove(v6, CString, v5); goto LABEL_13; } __p = operator new(0x88u); v10[0] = 137; v10[1] = 131; strcpy( (char *)__p, "Do you want to download your account data from the cloud?\n" "This will merge current data with the saved data."); v7 = FLAlertLayer::create_1(a1 + 632, "Load Data", v10, "Cancel", "Load", 300.0); if ( (v10[0] & 1) != 0 ) operator delete(__p); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 72LL))(v7, 2); return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 1312LL))(v7); }