// // LevelListLayer::onShare from 0x14042fcf0 to 0x14042ff62 (626 bytes) // // 2 xrefs: // > LevelListLayer::init @ 0x14042cb5f // > @ 0x140926c24 // // 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:32:15 +0000 // // Hidden C++ exception states: #wind=3 void __fastcall LevelListLayer::onShare(__int64 a1) { __int64 v2; // rcx __int64 v3; // rbx __int64 v4; // rax __int64 v5; // rcx __int64 v6; // rbx cocos2d::CCObject *v7; // rdi __int64 (__fastcall *v8)(__int64); // rdx void *v9; // [rsp+30h] [rbp+8h] void *v10; // [rsp+30h] [rbp+8h] if ( !*(_BYTE *)(a1 + 968) ) { v2 = *(_QWORD *)(a1 + 976); if ( v2 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 1032LL))(v2, 0); v3 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v9 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v9); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v3 = qword_14090BFD0; } if ( GameManager::getGameVariable(v3, "0218") || GameManager::getGameVariable(v3, "0219") ) { if ( !qword_14090BFD0 ) { v10 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v10); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); } GameManager::showParentalRestrictedAlert(); } else { v4 = GJAccountManager::sharedState(); if ( *(_DWORD *)(v4 + 360) - *(_DWORD *)(v4 + 364) > 0 ) { v6 = *(_QWORD *)(a1 + 920); v7 = (cocos2d::CCObject *)operator new(0x2F0u); FLAlertLayer::FLAlertLayer((__int64)v7); *(_QWORD *)v7 = &ShareListLayer::`vftable'; *((_QWORD *)v7 + 40) = &ShareListLayer::`vftable'; *((_QWORD *)v7 + 41) = &ShareListLayer::`vftable'; *((_QWORD *)v7 + 42) = &ShareListLayer::`vftable'; *((_QWORD *)v7 + 43) = &ShareListLayer::`vftable'; *((_QWORD *)v7 + 44) = &ShareListLayer::`vftable'; *((_QWORD *)v7 + 51) = &ShareListLayer::`vftable'; *((_QWORD *)v7 + 54) = &ShareListLayer::`vftable'; *((_QWORD *)v7 + 68) = &ShareListLayer::`vftable'; *((_QWORD *)v7 + 83) = 0; *((_QWORD *)v7 + 84) = 0; *((_QWORD *)v7 + 85) = 0; *((_QWORD *)v7 + 86) = 0; *((_QWORD *)v7 + 87) = 0; *((_QWORD *)v7 + 88) = 0; *((_QWORD *)v7 + 89) = 0; *((_QWORD *)v7 + 90) = 0; *((_QWORD *)v7 + 91) = 0; *((_QWORD *)v7 + 92) = 0; *((_QWORD *)v7 + 93) = 0; if ( (unsigned __int8)ShareListLayer::init(v7, v6) ) { cocos2d::CCObject::autorelease(v7); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v7 + 8LL))(v7, 1); v7 = nullptr; } v8 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 1064LL); if ( v8 == FLAlertLayer::show ) FLAlertLayer::show((__int64)v7); else v8((__int64)v7); } else { GJAccountManager::sharedState(); GJAccountManager::showAccountNeededAlert(v5, "share lists"); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source