// // GJAccountManager::onLoginAccountCompleted from 0x10039f2b0 to 0x10039f498 (488 bytes) // // 1 xrefs: // > GJAccountManager::handleIt @ 0x10039eec0 // // 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 // __int64 __fastcall GJAccountManager::onLoginAccountCompleted(GJAccountManager *a1, _QWORD *a2) { cocos2d::CCString *v4; // x0 char *CString; // x0 _BOOL4 v6; // w0 _BOOL4 v7; // w21 __int64 result; // x0 __int64 (*v9)(void); // x8 cocos2d::CCString *v10; // x0 char *v11; // x0 _BOOL4 v12; // w0 _BOOL4 v13; // w21 _BOOL4 v14; // w0 _BOOL4 v15; // w21 cocos2d::CCArray *v16; // x21 cocos2d::CCString *v17; // x0 __int64 v18; // x20 cocos2d::CCString *v19; // x0 __int64 v20; // x0 __int64 v21; // x2 int m_accountID; // w8 void *__p[2]; // [xsp+8h] [xbp-38h] BYREF char v24; // [xsp+1Fh] [xbp-21h] GJAccountManager::removeDLFromActive(a1, "login_account"); v4 = (cocos2d::CCString *)sub_100268F4C("%i", -12); CString = (char *)cocos2d::CCString::getCString(v4); sub_100009900(__p, CString); v6 = sub_1000045BC(a2, __p); v7 = v6; if ( v24 < 0 ) { operator delete(__p[0]); if ( v7 ) goto LABEL_3; } else if ( v6 ) { LABEL_3: result = (__int64)a1->m_accountLoginDelegate; if ( !result ) return result; v9 = *(__int64 (**)(void))(*(_QWORD *)result + 8LL); return v9(); } v10 = (cocos2d::CCString *)sub_100268F4C("%i", -13); v11 = (char *)cocos2d::CCString::getCString(v10); sub_100009900(__p, v11); v12 = sub_1000045BC(a2, __p); v13 = v12; if ( v24 < 0 ) { operator delete(__p[0]); if ( v13 ) goto LABEL_8; } else if ( v12 ) { LABEL_8: result = (__int64)a1->m_accountLoginDelegate; if ( !result ) return result; v9 = *(__int64 (**)(void))(*(_QWORD *)result + 8LL); return v9(); } sub_100009900(__p, "-1"); v14 = sub_1000045BC(a2, __p); v15 = v14; if ( v24 < 0 ) { operator delete(__p[0]); if ( v15 ) { LABEL_21: result = (__int64)a1->m_accountLoginDelegate; if ( !result ) return result; v9 = *(__int64 (**)(void))(*(_QWORD *)result + 8LL); return v9(); } } else if ( v14 ) { goto LABEL_21; } v16 = (cocos2d::CCArray *)sub_1003A07C0(a2, ","); if ( (unsigned int)sub_10024A36C((__int64)v16) <= 1 ) goto LABEL_21; v17 = cocos2d::CCArray::stringAtIndex(v16, 0); v18 = cocos2d::CCString::intValue(v17); v19 = cocos2d::CCArray::stringAtIndex(v16, 1u); v20 = cocos2d::CCString::intValue(v19); if ( (int)v18 <= 0 ) goto LABEL_21; v21 = v20; m_accountID = a1->m_accountID; result = (__int64)a1->m_accountLoginDelegate; if ( m_accountID && m_accountID != (_DWORD)v18 ) { if ( !result ) return result; v9 = *(__int64 (**)(void))(*(_QWORD *)result + 8LL); return v9(); } if ( result ) return (**(__int64 (__fastcall ***)(__int64, __int64, __int64))result)(result, v18, v21); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source