// // GameLevelManager::onGetGJUserInfoCompleted from 0x100522e20 to 0x100522fbd (413 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x10051cfe6 // // 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 GameLevelManager::onGetGJUserInfoCompleted( GameLevelManager *a1, unsigned __int8 *a2, __int64 a3, double a4) { const char *v5; // r14 char v6; // r14 const void *v7; // rdi unsigned __int64 v8; // rax unsigned __int64 v9; // rcx const void *v10; // r13 size_t v11; // rdx UserInfoDelegate *v12; // rdi GameLevelManager *v13; // rbx cocos2d::CCDictionary *v14; // r12 GJUserScore *v15; // rax GJUserScore *v16; // r15 intptr_t m_accountID; // rdx GJFriendRequest *v18; // rax int v19; // ecx UserInfoDelegate *m_userInfoDelegate; // rdi UserInfoDelegate *v21; // rdi _WORD __s2[11]; // [rsp+1h] [rbp-6Fh] BYREF unsigned __int64 v23; // [rsp+18h] [rbp-58h] __int128 v24; // [rsp+20h] [rbp-50h] BYREF void *__p; // [rsp+30h] [rbp-40h] unsigned int SplitIntFromKey; // [rsp+44h] [rbp-2Ch] if ( (*(_BYTE *)a3 & 1) != 0 ) v5 = *(const char **)(a3 + 16); else v5 = (const char *)(a3 + 1); GameLevelManager::removeDLFromActive(a1, v5); SplitIntFromKey = GameLevelManager::getSplitIntFromKey(a1, v5, 1); strcpy((char *)__s2, "-1"); v6 = *a2; v7 = a2 + 1; v8 = *a2 >> 1; v9 = *((_QWORD *)a2 + 1); v10 = *((const void **)a2 + 2); if ( (*a2 & 1) != 0 ) v7 = *((const void **)a2 + 2); v23 = *((_QWORD *)a2 + 1); if ( (v6 & 1) != 0 ) v8 = v9; v11 = 2; if ( v8 < 2 ) v11 = v8; if ( (v8 != 2) | (memcmp(v7, __s2, v11) != 0) ) { if ( (v6 & 1) != 0 ) { sub_100006B70(&v24, v10, v23, a4); } else { __p = *((void **)a2 + 2); v24 = *(_OWORD *)a2; } v13 = a1; v14 = (cocos2d::CCDictionary *)GameLevelManager::responseToDict(&v24, 0); if ( (v24 & 1) != 0 ) operator delete(__p); v15 = GJUserScore::create(v14); if ( v15 ) { v16 = v15; m_accountID = v15->m_accountID; if ( m_accountID > 0 ) cocos2d::CCDictionary::setObject(v13->m_storedUserInfo, v15, m_accountID); if ( v16->m_friendReqStatus == 3 ) { v18 = GJFriendRequest::create(v14); v19 = SplitIntFromKey; v18->m_accountID = SplitIntFromKey; if ( v19 > 0 ) cocos2d::CCDictionary::setObject(v13->m_friendRequests, v18, SplitIntFromKey); } m_userInfoDelegate = v13->m_userInfoDelegate; if ( m_userInfoDelegate ) ((void (__fastcall *)(UserInfoDelegate *, GJUserScore *))m_userInfoDelegate->getUserInfoFinished)( m_userInfoDelegate, v16); } else { v21 = v13->m_userInfoDelegate; if ( v21 ) ((void (__fastcall *)(UserInfoDelegate *, _QWORD))v21->getUserInfoFailed)(v21, SplitIntFromKey); } } else { v12 = a1->m_userInfoDelegate; if ( v12 ) ((void (__fastcall *)(UserInfoDelegate *, _QWORD))v12->getUserInfoFailed)(v12, SplitIntFromKey); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source