// // LevelInfoLayer::onRate from 0x1402fdf40 to 0x1402fe214 (724 bytes) // // 2 xrefs: // > LevelInfoLayer::FLAlert_Clicked @ 0x14030053e // > @ 0x1406d4268 // // 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 // // Hidden C++ exception states: #wind=4 void LevelInfoLayer::onRate(LevelInfoLayer *a1, cocos2d::CCObject *a2) { __int64 v3; // rax __int64 v4; // rax FLAlertLayer *v5; // rbx int v6; // ebx RateLevelLayer *v7; // rdi void (*show)(FLAlertLayer *); // rdx __int128 v9; // [rsp+50h] [rbp-58h] BYREF __int64 v10; // [rsp+60h] [rbp-48h] __int64 v11; // [rsp+68h] [rbp-40h] _BYTE v12[56]; // [rsp+70h] [rbp-38h] BYREF void *v13; // [rsp+B8h] [rbp+10h] if ( !a1->m_isBusy ) { v3 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v13 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v13); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v3 = qword_1406C2ED8; } if ( *(_BYTE *)(v3 + 924) ) { v6 = a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed; v7 = (RateLevelLayer *)operator new(0x298u); FLAlertLayer::FLAlertLayer(v7); v7->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (RateLevelLayer_vtbl *)&RateLevelLayer::`vftable'; v7->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&RateLevelLayer::`vftable'; v7->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&RateLevelLayer::`vftable'; v7->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&RateLevelLayer::`vftable'; v7->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&RateLevelLayer::`vftable'; v7->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&RateLevelLayer::`vftable'; v7->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&RateLevelLayer::`vftable'; v7->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&RateLevelLayer::`vftable'; v7->m_submitButton = nullptr; v7->m_difficulties = nullptr; *(_QWORD *)&v7->m_levelID = 0; v7->m_delegate = nullptr; if ( RateLevelLayer::init(v7, v6) ) { cocos2d::CCObject::autorelease(v7); } else { ((void (__fastcall *)(RateLevelLayer *, __int64))v7->~RateLevelLayer)(v7, 1); v7 = nullptr; } v7->m_delegate = &a1->RateLevelDelegate; show = (void (*)(FLAlertLayer *))v7->show; if ( show == FLAlertLayer::show ) FLAlertLayer::show(v7); else show(v7); } else { *(_BYTE *)(v3 + 924) = 1; v9 = 0; *(_QWORD *)&v9 = sub_14003AA10(0x90u); v10 = 136; v11 = 143; strcpy( (char *)v9, "Please rate the difficulty as fairly as possible. \n" "(Demon and Auto levels are manually verified before accepted)"); v4 = sub_14003BDB0((__int64)v12, (__int64)&v9); v5 = FLAlertLayer::create( (int)a1 + 440, (int)"Rate Difficulty", v4, (__int64)"OK", 0, 1133903872, 0, 0, 1065353216); sub_14003A830((__int64)&v9); v5->setTag(v5, 7); v5->show(v5); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source