// // ProfilePage::onFollow from 0x10089ec50 to 0x10089eda2 (338 bytes) // // 1 xrefs: // > ProfilePage::init @ 0x10089e34f // // 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:37:10 +0000 // void __fastcall ProfilePage::onFollow(__int64 a1, __int64 a2) { __int64 v2; // rax __int64 v3; // rax bool isFollowingUser; // r14 __int64 v5; // rax __int64 v6; // rdi __int64 v7; // rbx __int64 v8; // rax const char *v9; // rsi __int64 v10; // rax __int64 v11; // rax __int128 v12; // [rsp+0h] [rbp-30h] BYREF void *__p; // [rsp+10h] [rbp-20h] v2 = GJAccountManager::sharedState(a1, a2); if ( *(_DWORD *)(v2 + 352) <= *(_DWORD *)(v2 + 356) ) { __p = operator new(0x38u); *(_QWORD *)&v12 = 57; *((_QWORD *)&v12 + 1) = 48; strcpy((char *)__p, "You need an account to follow this user."); v11 = sub_100493AB0(0, (__int64)"Follow", &v12, (__int64)"OK", 0); (*(void (__fastcall **)(__int64))(*(_QWORD *)v11 + 1312LL))(v11); if ( (v12 & 1) != 0 ) operator delete(__p); } else { v3 = GameLevelManager::sharedState(); isFollowingUser = GameLevelManager::isFollowingUser(v3); *(_QWORD *)(GameLevelManager::sharedState() + 464) = a1 + 720; v5 = GameLevelManager::sharedState(); if ( sub_100576170(v5, *(unsigned int *)(a1 + 736), !isFollowingUser) ) { v6 = *(_QWORD *)(a1 + 808); if ( v6 ) { v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1072LL))(v6); v8 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v9 = "followBtnOn_001.png"; if ( isFollowingUser ) v9 = "followBtnOff_001.png"; v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, v9); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 1160LL))(v7, v10); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source