// // InfoLayer::onComment from 0x1403d0780 to 0x1403d0ceb (1387 bytes) // // 4 xrefs: // > InfoLayer::FLAlert_Clicked @ 0x1403d0645 // > InfoLayer::init @ 0x1403ceda6 // > InfoLayer::init @ 0x1403cf6ba // > @ 0x1409246d4 // // 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 11:31:35 +0000 // // Hidden C++ exception states: #wind=6 __int64 __fastcall InfoLayer::onComment(__int64 a1) { __int64 v2; // rax __int64 v3; // rcx __int64 v5; // rcx __int64 v6; // rcx int v7; // ebx __int64 v8; // rax cocos2d::CCObject *v9; // rbx __int64 v10; // rax int ID; // ebx cocos2d::CCString *v12; // rax char *CString; // rbx __int64 v14; // rcx int TimeLeft; // eax cocos2d::CCString *v16; // rax const char *v17; // rax size_t v18; // r8 __int64 v19; // rax cocos2d::CCObject *v20; // rbx int v21; // ebx const char *v22; // r14 __int64 v23; // rcx int v24; // r15d size_t v25; // r8 __int64 v26; // rax int v27; // eax _DWORD *v28; // rax __int64 v29; // rdx __int128 v30; // [rsp+50h] [rbp-9h] BYREF __int64 v31; // [rsp+60h] [rbp+7h] __int64 v32; // [rsp+68h] [rbp+Fh] __int128 v33; // [rsp+70h] [rbp+17h] BYREF __int64 v34; // [rsp+80h] [rbp+27h] __int64 v35; // [rsp+88h] [rbp+2Fh] void *v36; // [rsp+D0h] [rbp+77h] void *v37; // [rsp+D0h] [rbp+77h] void *v38; // [rsp+D0h] [rbp+77h] void *v39; // [rsp+D0h] [rbp+77h] void *v40; // [rsp+D0h] [rbp+77h] v2 = GJAccountManager::sharedState(); if ( *(_DWORD *)(v2 + 360) - *(_DWORD *)(v2 + 364) <= 0 ) { GJAccountManager::sharedState(); return GJAccountManager::showAccountNeededAlert(v3, "post comments"); } v5 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v36 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v36); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v5 = qword_14090BFD0; } if ( !GameManager::getGameVariable(v5, "0012") ) { v6 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v37 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v37); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v6 = qword_14090BFD0; } GameManager::setGameVariable(v6, "0012", 1u); v7 = a1 + 680; if ( !a1 ) v7 = 0; v30 = 0; v31 = 0; v32 = 0; *(_QWORD *)&v30 = sub_14003D460(0x100u); v31 = 253; v32 = 255; strcpy( (char *)v30, "1. Do not spam.\n" "2. Do not harass other players.\n" "3. Do not post inappropriate or controversial content.\n" "4. Do not try to bypass these rules.\n" "These rules and their enforcement are entirely at Moderators' discretion."); v8 = sub_14003F4F0((__int64)&v33, (__int64)&v30); v9 = FLAlertLayer::create(v7, (int)"Comment Rules", v8, (__int64)"Next", 0, 1136525312, 0, 0, 1065353216); sub_14003D310((__int64)&v30); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v9 + 64LL))(v9, 3); return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v9 + 1064LL))(v9); } v10 = *(_QWORD *)(a1 + 704); if ( v10 && *(_BYTE *)(a1 + 888) ) ID = *(_DWORD *)(v10 + 392); else ID = InfoLayer::getID((_QWORD *)a1); if ( !*(_QWORD *)&qword_14090BFB0 ) { v38 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v38); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); } v12 = cocos2d::CCString::createWithFormat("c_%i", ID); CString = (char *)cocos2d::CCString::getCString(v12); v14 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v39 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v39); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v14 = *(_QWORD *)&qword_14090BFB0; } TimeLeft = GameLevelManager::getTimeLeft(v14, CString, 15.0); if ( (unsigned int)(TimeLeft - 1) <= 0xE ) { v16 = cocos2d::CCString::createWithFormat("Please wait %i seconds before posting a new comment!", TimeLeft); v17 = cocos2d::CCString::getCString(v16); v30 = 0; v31 = 0; v32 = 0; v18 = -1; do ++v18; while ( v17[v18] ); sub_14003D230(&v30, v17, v18); v19 = sub_14003F4F0((__int64)&v33, (__int64)&v30); v20 = FLAlertLayer::create(0, (int)"Too fast", v19, (__int64)"OK", 0, 1133903872, 0, 0, 1065353216); sub_14003D310((__int64)&v30); return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v20 + 1064LL))(v20); } if ( *(_QWORD *)(a1 + 720) ) { v21 = 6; if ( *(_BYTE *)(a1 + 888) ) { LABEL_27: v22 = "Mod Comment"; if ( *(_QWORD *)(a1 + 704) ) v22 = "Add Note"; goto LABEL_31; } } else { v21 = 0; if ( *(_BYTE *)(a1 + 888) ) { LOBYTE(v21) = *(_QWORD *)(a1 + 704) != 0; v21 += 7; goto LABEL_27; } } v22 = "Add Comment"; LABEL_31: if ( v21 ) goto LABEL_35; v23 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v40 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v40); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v23 = qword_14090BFD0; } v24 = 140; if ( *(_DWORD *)(v23 + 1064) - *(_DWORD *)(v23 + 1068) != 2 ) LABEL_35: v24 = 100; v30 = 0; v31 = 0; v32 = 15; LOBYTE(v30) = 0; v33 = 0; v34 = 0; v35 = 0; v25 = -1; do ++v25; while ( v22[v25] ); sub_14003D230(&v33, v22, v25); v26 = *(_QWORD *)(a1 + 704); if ( v26 && *(_BYTE *)(a1 + 888) ) v27 = *(_DWORD *)(v26 + 392); else v27 = InfoLayer::getID((_QWORD *)a1); v28 = (_DWORD *)ShareCommentLayer::create((unsigned int)&v33, v24, v21, v27, (__int64)&v30); v29 = *(_QWORD *)(a1 + 696); if ( v29 ) v28[205] = *(_DWORD *)(v29 + 936) - *(_DWORD *)(v29 + 940); return (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)v28 + 1064LL))(v28); }
GD Web Decomp Icon

GD Web Decomp

Raw Source