// // GJAccountManager::onBackupAccountCompleted from 0x10009ea10 to 0x10009ecd3 (707 bytes) // // 1 xrefs: // > GJAccountManager::handleIt @ 0x10009df41 // // 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:13 +0000 // char __fastcall GJAccountManager::onBackupAccountCompleted(__int64 a1, unsigned __int8 *a2) { unsigned __int64 v3; // rcx const void *v4; // rdi char *v5; // rbx size_t v6; // rdx int v7; // eax __int64 v8; // rdi __int64 v9; // rax const char *CString; // r14 size_t v11; // rax size_t v12; // r13 char *v13; // r12 size_t v14; // r14 void *v15; // r14 unsigned int v16; // eax size_t v17; // rax const void *v18; // rdi size_t v19; // rdx bool v20; // zf char v21; // bl __int64 (__fastcall ***v22)(_QWORD); // rdi __int64 v23; // rdi unsigned int v24; // ebx __int64 v25; // rbx const char *v26; // r15 __int64 v27; // rax __int64 v28; // rax __int64 (__fastcall ***v29)(_QWORD); // rdi __int64 v30; // rbx unsigned int v31; // eax char v33; // [rsp+0h] [rbp-60h] __int64 v34; // [rsp+8h] [rbp-58h] const char *v35; // [rsp+10h] [rbp-50h] size_t __s2; // [rsp+20h] [rbp-40h] BYREF size_t v37; // [rsp+28h] [rbp-38h] void *__p; // [rsp+30h] [rbp-30h] GJAccountManager::removeDLFromActive(a1, "bak_account"); *(_WORD *)((char *)&__s2 + 1) = 12589; BYTE3(__s2) = 0; v3 = *a2 >> 1; v4 = *((const void **)a2 + 2); if ( (*a2 & 1) == 0 ) v4 = a2 + 1; v5 = (char *)&__s2 + 1; if ( (*a2 & 1) != 0 ) v3 = *((_QWORD *)a2 + 1); v6 = 2; if ( v3 < 2 ) v6 = v3; LOBYTE(v7) = (v3 != 2) | (memcmp(v4, (char *)&__s2 + 1, v6) != 0); if ( !(_BYTE)v7 ) { v8 = *(_QWORD *)(a1 + 416); if ( v8 ) LOBYTE(v7) = (*(__int64 (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v8 + 8LL))(v8, 0xFFFFFFFFLL, 0); return v7; } v9 = sub_10088E820("%i", v33); CString = (const char *)cocos2d::CCString::getCString(v9); v11 = strlen(CString); if ( v11 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v12 = v11; v34 = a1; if ( v11 >= 0x17 ) { v35 = CString; v14 = 26; if ( (v11 | 7) != 0x17 ) v14 = (v11 | 7) + 1; v13 = (char *)operator new(v14); __p = v13; __s2 = v14 + 1; CString = v35; v37 = v12; } else { LOBYTE(__s2) = 2 * v11; v13 = (char *)&__s2 + 1; if ( !v11 ) goto LABEL_18; } memmove(v13, CString, v12); LABEL_18: v13[v12] = 0; v15 = __p; v16 = *a2; if ( (v16 & 1) != 0 ) { v17 = *((_QWORD *)a2 + 1); v18 = *((const void **)a2 + 2); } else { v17 = v16 >> 1; v18 = a2 + 1; } v19 = (unsigned __int8)__s2 >> 1; if ( (__s2 & 1) != 0 ) { v19 = v37; v5 = (char *)__p; } v20 = v19 == v17; if ( v19 >= v17 ) v19 = v17; v21 = v20 & (memcmp(v18, v5, v19) == 0); if ( (__s2 & 1) != 0 ) operator delete(v15); if ( v21 ) { LOBYTE(v7) = (unsigned __int8)std::string::assign((std::string *)(v34 + 448), ""); v22 = *(__int64 (__fastcall ****)(_QWORD))(v34 + 408); if ( v22 ) LOBYTE(v7) = (**v22)(v22); v23 = *(_QWORD *)(v34 + 416); if ( v23 ) LOBYTE(v7) = (*(__int64 (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v23 + 8LL))(v23, 4294967294LL, 0); } else { *(_WORD *)((char *)&__s2 + 1) = 49; v24 = *a2; if ( (v24 & 1) != 0 ) { v25 = *((_QWORD *)a2 + 1); v26 = *((const char **)a2 + 2); } else { v25 = v24 >> 1; v26 = (const char *)(a2 + 1); } if ( ((v25 == 1) & (memcmp(v26, (char *)&__s2 + 1, v25 != 0) == 0)) != 0 || (v7 = atoi(v26), v7 >= 0) ) { v27 = GameLevelManager::sharedState(); GameLevelManager::makeTimeStamp(v27, "bak_account"); v28 = LocalLevelManager::sharedState(); LOBYTE(v7) = LocalLevelManager::markLevelsAsUnmodified(v28); v29 = *(__int64 (__fastcall ****)(_QWORD))(v34 + 416); if ( v29 ) LOBYTE(v7) = (**v29)(v29); } else { v30 = *(_QWORD *)(v34 + 416); if ( v30 ) { v31 = atoi(v26); LOBYTE(v7) = (*(__int64 (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v30 + 8LL))( v30, 4294967293LL, v31); } } } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source