// // GJAccountManager::onBackupAccountCompleted from 0x140201ea0 to 0x1402022a1 (1025 bytes) // // 2 xrefs: // > GJAccountManager::handleIt @ 0x140200439 // > @ 0x1406ccb28 // // 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 // // Hidden C++ exception states: #wind=4 void __fastcall GJAccountManager::onBackupAccountCompleted(__int64 a1, const void **a2, __int64 a3) { unsigned int v5; // ebx void *v6; // rcx const void *v7; // rcx unsigned __int64 v8; // r12 size_t v9; // r8 int v10; // esi __int64 v11; // rcx cocos2d::CCString *v12; // rax const char *CString; // rax size_t v14; // r8 void **v15; // rdx char *v16; // r14 const void *v17; // rcx size_t v18; // r12 size_t v19; // r8 size_t v20; // r13 int v21; // esi char *v22; // rax void (__fastcall ***v23)(_QWORD); // rcx __int64 v24; // rcx const void *v25; // rcx unsigned __int64 v26; // r12 unsigned __int64 v27; // r14 size_t v28; // r8 const char *v29; // rcx char v30; // r14 __int64 *v31; // rbx const char *v32; // rcx __int64 v33; // rbx unsigned int v34; // eax GameLevelManager *v35; // rcx LocalLevelManager *v36; // rsi void (__fastcall ***v37)(_QWORD); // rcx void *v38; // [rsp+20h] [rbp-50h] void *Block[2]; // [rsp+40h] [rbp-30h] BYREF size_t Size; // [rsp+50h] [rbp-20h] unsigned __int64 v42; // [rsp+58h] [rbp-18h] v5 = 0; HIWORD(Block[1]) = 0; Size = 11; v42 = 15; qmemcpy(Block, "bak_accoun", 10); *(_DWORD *)((char *)&Block[1] + 2) = (unsigned __int8)aBakAccount[10]; cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 320), Block); if ( v42 > 0xF ) { v6 = Block[0]; if ( v42 + 1 >= 0x1000 ) { v6 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v6); } *(_OWORD *)Block = 0; Size = 2; v42 = 15; strcpy((char *)Block, "-1"); v7 = a2; if ( (unsigned __int64)a2[3] > 0xF ) v7 = *a2; v8 = (unsigned __int64)a2[2]; v9 = v8; if ( v8 > 2 ) v9 = 2; v10 = memcmp(v7, Block, v9); if ( !v10 ) { if ( v8 >= 2 ) v10 = v8 > 2; else v10 = -1; } if ( v10 ) { v12 = cocos2d::CCString::createWithFormat("%i", -2); CString = cocos2d::CCString::getCString(v12); *(_OWORD *)Block = 0; Size = 0; v42 = 0; v14 = -1; do ++v14; while ( CString[v14] ); sub_14003A930(Block, CString, v14); v15 = Block; v16 = (char *)Block[0]; if ( v42 > 0xF ) v15 = (void **)Block[0]; v17 = a2; if ( (unsigned __int64)a2[3] > 0xF ) v17 = *a2; v18 = (size_t)a2[2]; v19 = v18; v20 = Size; if ( Size < v18 ) v19 = Size; v21 = memcmp(v17, v15, v19); if ( !v21 ) { if ( v18 >= v20 ) v21 = v18 > v20; else v21 = -1; } if ( v42 > 0xF ) { v22 = v16; if ( v42 + 1 >= 0x1000 ) { v16 = *((char **)v16 - 1); if ( (unsigned __int64)(v22 - v16 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v16); } if ( v21 ) { *(_OWORD *)Block = 0; Size = 1; v42 = 15; LOWORD(Block[0]) = 49; v25 = a2; v26 = (unsigned __int64)a2[3]; if ( v26 > 0xF ) v25 = *a2; v27 = (unsigned __int64)a2[2]; v28 = v27; if ( v27 > 1 ) v28 = 1; if ( !memcmp(v25, Block, v28) && v27 == 1 ) goto LABEL_48; v29 = (const char *)a2; if ( v26 > 0xF ) v29 = (const char *)*a2; if ( atoi(v29) >= 0 ) LABEL_48: v30 = 0; else v30 = 1; if ( v30 ) { v31 = *(__int64 **)(a1 + 432); if ( v31 ) { v32 = (const char *)a2; if ( (unsigned __int64)a2[3] > 0xF ) v32 = (const char *)*a2; v33 = *v31; v34 = atoi(v32); (*(void (__fastcall **)(_QWORD, __int64, _QWORD))(v33 + 8))(*(_QWORD *)(a1 + 432), 4294967293LL, v34); } } else { v35 = (GameLevelManager *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v38 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v38); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v35 = (GameLevelManager *)qword_1406C2EC0; } GameLevelManager::makeTimeStamp(v35, "bak_account"); v36 = LocalLevelManager::sharedState(); if ( cocos2d::CCArray::count(v36->m_localLevels) ) { do BYTE2(cocos2d::CCArray::objectAtIndex(v36->m_localLevels, v5++)[13].m_nLuaID) = 0; while ( v5 < cocos2d::CCArray::count(v36->m_localLevels) ); } v37 = *(void (__fastcall ****)(_QWORD))(a1 + 432); if ( v37 ) (**v37)(v37); } } else { sub_14003CCE0((void **)(a1 + 464), byte_140518980, 0); v23 = *(void (__fastcall ****)(_QWORD))(a1 + 424); if ( v23 ) (**v23)(v23); v24 = *(_QWORD *)(a1 + 432); if ( v24 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v24 + 8LL))(v24, 4294967294LL); } } else { v11 = *(_QWORD *)(a1 + 432); if ( v11 ) (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v11 + 8LL))(v11, 0xFFFFFFFFLL, 0); } sub_14003A830((__int64)a2); sub_14003A830(a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source