// // GJAccountManager::onGetAccountSyncURLCompleted from 0x1000d18d0 to 0x1000d1a9c (460 bytes) // // 1 xrefs: // > GJAccountManager::handleIt @ 0x1000cf90d // // 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 __fastcall GJAccountManager::onGetAccountSyncURLCompleted(GJAccountManager *a1, unsigned __int8 *a2, double a3) { const void *v3; // r15 unsigned __int64 v4; // rcx char *v5; // r14 size_t v6; // rdx cocos2d::CCString *v7; // rax const char *CString; // r12 size_t v9; // rax size_t v10; // r15 char v11; // r15 size_t v12; // r13 char v13; // r14 GJAccountSyncDelegate *m_syncDelegate; // rdi __int128 v15; // [rsp+0h] [rbp-60h] BYREF void *__p; // [rsp+10h] [rbp-50h] __int128 __s2; // [rsp+20h] [rbp-40h] BYREF void *v18; // [rsp+30h] [rbp-30h] GJAccountManager::removeDLFromActive(a1, "surl_account"); *(_WORD *)((char *)&__s2 + 1) = 12589; BYTE3(__s2) = 0; v3 = a2 + 1; v4 = *a2 >> 1; if ( (*a2 & 1) != 0 ) v3 = *((const void **)a2 + 2); v5 = (char *)&__s2 + 1; if ( (*a2 & 1) != 0 ) v4 = *((_QWORD *)a2 + 1); v6 = 2; if ( v4 < 2 ) v6 = v4; if ( !((v4 != 2) | (memcmp(v3, (char *)&__s2 + 1, v6) != 0)) ) { if ( a1->m_backupDelegate ) ((void (__fastcall *)(GJAccountSyncDelegate *, __int64, _QWORD))a1->m_syncDelegate->syncAccountFailed)( a1->m_syncDelegate, 0xFFFFFFFFLL, 0); return; } v7 = (cocos2d::CCString *)sub_1007AB580("%s/database/accounts/syncGJAccountNew.php", v15); CString = cocos2d::CCString::getCString(v7); v9 = strlen(CString); if ( v9 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(a3); v10 = v9; if ( v9 >= 0x17 ) { v12 = 26; if ( (v9 | 7) != 0x17 ) v12 = (v9 | 7) + 1; v5 = (char *)operator new(v12); v18 = v5; *(_QWORD *)&__s2 = v12 + 1; *((_QWORD *)&__s2 + 1) = v10; LABEL_18: memmove(v5, CString, v10); v5[v10] = 0; v11 = __s2; if ( (__s2 & 1) == 0 ) goto LABEL_14; LABEL_19: sub_100006B70(&v15, v18, *((unsigned __int64 *)&__s2 + 1), a3); goto LABEL_20; } LOBYTE(__s2) = 2 * v9; if ( v9 ) goto LABEL_18; BYTE1(__s2) = 0; v11 = __s2; if ( (__s2 & 1) != 0 ) goto LABEL_19; LABEL_14: __p = v18; v15 = __s2; LABEL_20: v13 = GJAccountManager::syncAccount(a1, &v15); if ( (v15 & 1) != 0 ) operator delete(__p); if ( !v13 ) { m_syncDelegate = a1->m_syncDelegate; if ( m_syncDelegate ) ((void (__fastcall *)(GJAccountSyncDelegate *, __int64, _QWORD))m_syncDelegate->syncAccountFailed)( m_syncDelegate, 0xFFFFFFFFLL, 0); } if ( (v11 & 1) != 0 ) operator delete(v18); }
GD Web Decomp Icon

GD Web Decomp

Raw Source