// // LevelInfoLayer::onRate from 0x140423360 to 0x140423649 (745 bytes) // // 2 xrefs: // > LevelInfoLayer::FLAlert_Clicked @ 0x1404262b4 // > @ 0x1409268e8 // // 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:10 +0000 // // Hidden C++ exception states: #wind=4 void __fastcall LevelInfoLayer::onRate(__int64 a1) { __int64 v2; // rax __int64 v3; // rax cocos2d::CCObject *v4; // rbx __int64 (__fastcall *v5)(__int64); // rdx cocos2d::CCObject *v6; // rcx unsigned int v7; // ebx cocos2d::CCObject *v8; // rdi __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 ( !*(_BYTE *)(a1 + 488) ) { v2 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v13 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v13); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v2 = qword_14090BFD0; } if ( *(_BYTE *)(v2 + 964) ) { v7 = *(_DWORD *)(*(_QWORD *)(a1 + 504) + 328LL) - *(_DWORD *)(*(_QWORD *)(a1 + 504) + 332LL); v8 = (cocos2d::CCObject *)operator new(0x2B8u); FLAlertLayer::FLAlertLayer((__int64)v8); *(_QWORD *)v8 = &RateLevelLayer::`vftable'; *((_QWORD *)v8 + 40) = &RateLevelLayer::`vftable'; *((_QWORD *)v8 + 41) = &RateLevelLayer::`vftable'; *((_QWORD *)v8 + 42) = &RateLevelLayer::`vftable'; *((_QWORD *)v8 + 43) = &RateLevelLayer::`vftable'; *((_QWORD *)v8 + 44) = &RateLevelLayer::`vftable'; *((_QWORD *)v8 + 51) = &RateLevelLayer::`vftable'; *((_QWORD *)v8 + 54) = &RateLevelLayer::`vftable'; *((_QWORD *)v8 + 68) = &RateLevelLayer::`vftable'; *((_QWORD *)v8 + 83) = 0; *((_QWORD *)v8 + 84) = 0; *((_QWORD *)v8 + 85) = 0; *((_QWORD *)v8 + 86) = 0; if ( (unsigned __int8)RateLevelLayer::init(v8, v7) ) { cocos2d::CCObject::autorelease(v8); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v8 + 8LL))(v8, 1); v8 = nullptr; } *((_QWORD *)v8 + 86) = a1 + 424; v5 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 1064LL); v6 = v8; if ( v5 == FLAlertLayer::show ) { FLAlertLayer::show((__int64)v8); return; } } else { *(_BYTE *)(v2 + 964) = 1; v9 = 0; *(_QWORD *)&v9 = sub_14003D460(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)"); v3 = sub_14003F4F0((__int64)v12, (__int64)&v9); v4 = FLAlertLayer::create( (int)a1 + 440, (int)"Rate Difficulty", v3, (__int64)"OK", 0, 1133903872, 0, 0, 1065353216); sub_14003D310((__int64)&v9); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v4 + 64LL))(v4, 7); v5 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1064LL); v6 = v4; } v5((__int64)v6); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source