// // cocos2d::CCMenuItemImage::create from 0x18005c870 to 0x18005c91a (170 bytes) // // 2 xrefs: // > @ 0x18014cf68 // > @ 0x1801bcf94 // // 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:21:49 +0000 // // Hidden C++ exception states: #wind=1 struct cocos2d::CCMenuItemImage *__fastcall cocos2d::CCMenuItemImage::create() { cocos2d::CCMenuItemSprite *v0; // rax cocos2d::CCMenuItemImage *v1; // rbx bool (__fastcall *v2)(cocos2d::CCMenuItemImage *__hidden); // rdx bool v3; // al cocos2d::CCNodeRGBA *(__fastcall *v5)(cocos2d::CCNodeRGBA *, char); // r8 v0 = (cocos2d::CCMenuItemSprite *)sub_1800E4AC0(0x190u); v1 = v0; if ( v0 ) { cocos2d::CCMenuItemSprite::CCMenuItemSprite(v0); *(_QWORD *)v1 = &cocos2d::CCMenuItemImage::`vftable'{for `cocos2d::CCNode'}; *((_QWORD *)v1 + 40) = &cocos2d::CCMenuItemImage::`vftable'{for `cocos2d::CCRGBAProtocol'}; } else { v1 = nullptr; } if ( v1 ) { v2 = *(bool (__fastcall **)(cocos2d::CCMenuItemImage *__hidden))(*(_QWORD *)v1 + 72LL); if ( v2 == cocos2d::CCMenuItemImage::init ) v3 = cocos2d::CCMenuItemImage::init(v1); else v3 = v2(v1); if ( v3 ) { cocos2d::CCObject::autorelease(v1); return v1; } v5 = *(cocos2d::CCNodeRGBA *(__fastcall **)(cocos2d::CCNodeRGBA *, char))(*(_QWORD *)v1 + 8LL); if ( v5 == sub_18005BF40 ) { sub_18005BF40(v1, 1); return nullptr; } v5(v1, 1); } return nullptr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source