// // ProfilePage::onComment from 0x1007be7d0 to 0x1007be958 (392 bytes) // // 1 xrefs: // > ProfilePage::loadPageFromUserInfo @ 0x1007bbcc0 // // 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 ProfilePage::onComment(ProfilePage *a1, cocos2d::CCObject *a2) { GameLevelManager *v2; // rax int TimeLeft; // eax char *v4; // rax const char *CString; // r14 size_t v6; // rax size_t v7; // rbx void **v8; // r13 char *v9; // r15 void *v10; // rbx size_t v11; // r12 __int128 v12; // [rsp+0h] [rbp-70h] BYREF void *__p; // [rsp+10h] [rbp-60h] __int128 v14; // [rsp+18h] [rbp-58h] BYREF __int64 v15; // [rsp+28h] [rbp-48h] BYREF _QWORD __dst[2]; // [rsp+30h] [rbp-40h] BYREF char *v17; // [rsp+40h] [rbp-30h] BYREF v2 = GameLevelManager::sharedState(); TimeLeft = GameLevelManager::getTimeLeft(v2, "acc_comment", 15.0); if ( (unsigned int)(TimeLeft - 1) <= 0xE ) { v4 = sub_1007AB580("Please wait %i seconds before posting a new update!", TimeLeft); CString = cocos2d::CCString::getCString((cocos2d::CCString *)v4); v6 = strlen(CString); if ( v6 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(COERCE_DOUBLE(1097859072)); v7 = v6; v8 = (void **)&v17; if ( v6 >= 0x17 ) { v11 = 26; if ( (v6 | 7) != 0x17 ) v11 = (v6 | 7) + 1; v9 = (char *)operator new(v11); v17 = v9; __dst[0] = v11 + 1; __dst[1] = v7; } else { LOBYTE(__dst[0]) = 2 * v6; v9 = (char *)__dst + 1; if ( !v6 ) { LABEL_15: v9[v7] = 0; v10 = FLAlertLayer::create_1(0, (int)"Too fast", (__int64)__dst, (int)"OK", 0, COERCE_DOUBLE(1133903872)); if ( (__dst[0] & 1) == 0 ) goto LABEL_10; goto LABEL_9; } } memmove(v9, CString, v7); goto LABEL_15; } v8 = (void **)&v15; LOBYTE(v14) = 22; strcpy((char *)&v14 + 1, "Post Update"); LOWORD(v12) = 0; v10 = ShareCommentLayer::create(&v14, 0x8Cu, 1u, 0, &v12); if ( (v12 & 1) != 0 ) operator delete(__p); if ( (v14 & 1) != 0 ) LABEL_9: operator delete(*v8); LABEL_10: (*(void (__fastcall **)(void *))(*(_QWORD *)v10 + 1288LL))(v10); }
GD Web Decomp Icon

GD Web Decomp

Raw Source