// // ProfilePage::onComment from 0x1008a4650 to 0x1008a47d8 (392 bytes) // // 1 xrefs: // > ProfilePage::loadPageFromUserInfo @ 0x1008a1a84 // // 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:15 +0000 // __int64 __fastcall ProfilePage::onComment(double a1, __m128d a2) { __int64 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 v12; // r12 __int128 v13; // [rsp+0h] [rbp-70h] BYREF void *__p; // [rsp+10h] [rbp-60h] __int128 v15; // [rsp+18h] [rbp-58h] BYREF __int64 v16; // [rsp+28h] [rbp-48h] BYREF _QWORD __dst[2]; // [rsp+30h] [rbp-40h] BYREF char *v18; // [rsp+40h] [rbp-30h] BYREF v2 = GameLevelManager::sharedState(); TimeLeft = GameLevelManager::getTimeLeft(v2, "acc_comment", COERCE_DOUBLE(1097859072), a2); if ( (unsigned int)(TimeLeft - 1) <= 0xE ) { v4 = sub_10088E820("Please wait %i seconds before posting a new update!", TimeLeft); CString = (const char *)cocos2d::CCString::getCString((__int64)v4); v6 = strlen(CString); if ( v6 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v7 = v6; v8 = (void **)&v18; if ( v6 >= 0x17 ) { v12 = 26; if ( (v6 | 7) != 0x17 ) v12 = (v6 | 7) + 1; v9 = (char *)operator new(v12); v18 = v9; __dst[0] = v12 + 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, 300.0); if ( (__dst[0] & 1) == 0 ) return (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v10 + 1312LL))(v10); goto LABEL_9; } } memmove(v9, CString, v7); goto LABEL_15; } v8 = (void **)&v16; LOBYTE(v15) = 22; strcpy((char *)&v15 + 1, "Post Update"); LOWORD(v13) = 0; v10 = ShareCommentLayer::create(&v15, 0x8Cu, 1u, 0, &v13); if ( (v13 & 1) != 0 ) operator delete(__p); if ( (v15 & 1) != 0 ) LABEL_9: operator delete(*v8); return (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v10 + 1312LL))(v10); }
GD Web Decomp Icon

GD Web Decomp

Raw Source