// // sub_1003EFD70 from 0x1003efd70 to 0x1003f0048 (728 bytes) // // 4 xrefs: // > InfoLayer::FLAlert_Clicked @ 0x1003f1508 // > sub_1003F1518 @ 0x1003f154c // > InfoLayer::init @ 0x1003eea60 // > InfoLayer::init @ 0x1003ef128 // // This function is hookable on this platform (idp: arm, 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:04:30 +0000 // __int64 __fastcall sub_1003EFD70(__int64 a1) { __int64 v2; // x0 __int64 v3; // x0 __int64 v4; // x20 __int64 v5; // x21 __int64 v6; // x8 int v7; // w1 __int64 v8; // x0 __int64 v10; // x0 void *v11; // x19 char *v12; // x0 int v13; // w0 void *v14; // x0 char *CString; // x0 __int64 v16; // x20 __int64 v17; // x21 char *v18; // x1 __int64 v19; // x0 __int64 v20; // x8 __int64 v21; // x22 _DWORD *v22; // x20 __int64 v23; // x8 void *v24[2]; // [xsp+10h] [xbp-80h] BYREF char v25; // [xsp+27h] [xbp-69h] void *v26[2]; // [xsp+28h] [xbp-68h] BYREF char v27; // [xsp+3Fh] [xbp-51h] void *__p[2]; // [xsp+40h] [xbp-50h] BYREF char v29; // [xsp+57h] [xbp-39h] void *v30[2]; // [xsp+58h] [xbp-38h] BYREF char v31; // [xsp+6Fh] [xbp-21h] v2 = GJAccountManager::sharedState(a1); if ( *(_DWORD *)(v2 + 352) <= *(_DWORD *)(v2 + 356) ) { v8 = GJAccountManager::sharedState(v2); return GJAccountManager::showAccountNeededAlert(v8, "post comments"); } v3 = GameManager::sharedState(); if ( !GameManager::getGameVariable(v3, "0012") ) { v10 = GameManager::sharedState(); GameManager::setGameVariable(v10, "0012", 1); sub_100009900( 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."); v11 = FLAlertLayer::create_1(a1 + 680, (__int64)"Comment Rules", (__int64)v30, (__int64)"Next", 0, 380.0); if ( v31 < 0 ) operator delete(v30[0]); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v11 + 72LL))(v11, 3); return (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v11 + 1312LL))(v11); } v4 = GameLevelManager::sharedState(); v5 = GameLevelManager::sharedState(); v6 = *(_QWORD *)(a1 + 704); if ( v6 && *(_BYTE *)(a1 + 880) == 1 ) v7 = *(_DWORD *)(v6 + 376); else v7 = sub_1003F055C(a1); v12 = (char *)sub_1000C11F8(v5, v7); v13 = sub_1000ADD00(v4, v12, 15.0); if ( (unsigned int)(v13 - 1) <= 0xE ) { v14 = sub_1003065B0("Please wait %i seconds before posting a new comment!", v13); CString = (char *)cocos2d::CCString::getCString((__int64)v14); sub_100009900(__p, CString); v11 = FLAlertLayer::create_1(0, (__int64)"Too fast", (__int64)__p, (__int64)"OK", 0, 300.0); if ( v29 < 0 ) operator delete(__p[0]); return (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v11 + 1312LL))(v11); } if ( *(_QWORD *)(a1 + 720) ) { v16 = 6; if ( (*(_BYTE *)(a1 + 880) & 1) == 0 ) { v17 = 100; LABEL_29: v18 = "Add Comment"; goto LABEL_30; } } else { if ( (*(_BYTE *)(a1 + 880) & 1) == 0 ) { v19 = GameManager::sharedState(); v16 = 0; if ( *(_DWORD *)(v19 + 1032) - *(_DWORD *)(v19 + 1036) == 2 ) v17 = 140; else v17 = 100; goto LABEL_29; } if ( *(_QWORD *)(a1 + 704) ) v16 = 8; else v16 = 7; } if ( *(_QWORD *)(a1 + 704) ) v18 = "Add Note"; else v18 = "Mod Comment"; v17 = 100; LABEL_30: sub_100009900(v26, v18); v20 = *(_QWORD *)(a1 + 704); if ( v20 && *(_BYTE *)(a1 + 880) == 1 ) v21 = *(unsigned int *)(v20 + 376); else v21 = sub_1003F055C(a1); sub_100009900(v24, ""); v22 = ShareCommentLayer::create((__int64)v26, v17, v16, v21, (__int64)v24); if ( v25 < 0 ) operator delete(v24[0]); if ( v27 < 0 ) operator delete(v26[0]); v23 = *(_QWORD *)(a1 + 696); if ( v23 ) v22[201] = *(_DWORD *)(v23 + 864) - *(_DWORD *)(v23 + 868); return (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)v22 + 1312LL))(v22); }
GD Web Decomp Icon

GD Web Decomp

Raw Source