// // cocos2d::extension::CCControlButton::initWithTitleAndFontNameAndFontSize from 0x1800058d0 to 0x18000598c (188 bytes) // // 4 xrefs: // > @ 0x1800266d0 // > @ 0x18002a648 // > @ 0x180032408 // > @ 0x18004b4b0 // // 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 12:15:35 +0000 // // Hidden C++ exception states: #wind=2 __int64 __fastcall cocos2d::extension::CCControlButton::initWithTitleAndFontNameAndFontSize( __int64 a1, const char *a2, const char *a3, float a4) { const char *v6; // rcx struct cocos2d::CCLabelTTF *v7; // rbp __int64 v8; // rax cocos2d::CCObject *v9; // rbx unsigned __int8 v10; // bl cocos2d::extension::CCScale9Sprite *v12; // [rsp+20h] [rbp-48h] v6 = a2; if ( *((_QWORD *)a2 + 3) > 0xFu ) v6 = *(const char **)a2; v7 = cocos2d::CCLabelTTF::create(v6, a3, a4); v12 = (cocos2d::extension::CCScale9Sprite *)sub_18001F040(0x210u); v8 = cocos2d::extension::CCScale9Sprite::CCScale9Sprite(v12); v9 = (cocos2d::CCObject *)v8; if ( !v8 ) goto LABEL_7; if ( !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v8 + 72LL))(v8) ) { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v9 + 8LL))(v9, 1); LABEL_7: v9 = nullptr; goto LABEL_8; } cocos2d::CCObject::autorelease(v9); LABEL_8: v10 = (*(__int64 (__fastcall **)(__int64, struct cocos2d::CCLabelTTF *, cocos2d::CCObject *))(*(_QWORD *)a1 + 1184LL))( a1, v7, v9); sub_180003700((__int64)a2); return v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source