// // SetFolderPopup::create from 0x8d3154 to 0x8d3374 (544 bytes) // // 4 xrefs: // > LevelInfoLayer::onSetFolder @ 0x6d5b34 // > EditLevelLayer::onSetFolder @ 0x6deb98 // > LevelBrowserLayer::onGoToFolder @ 0x6e6ee4 // > @ 0xc0018 // // 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 // __int64 __fastcall SetFolderPopup::create(int a1, char a2) { __int64 v4; // x19 int v5; // w21 void *v6; // x0 __int64 v7; // x1 __int64 v8; // x0 unsigned int *v10; // x2 int v11; // w1 __int64 v12; // [xsp+60h] [xbp+60h] BYREF v4 = operator new(0x2C0u); cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v4); *(_QWORD *)(v4 + 544) = 0; *(_DWORD *)(v4 + 616) = -1; *(_DWORD *)(v4 + 624) = -1; *(_DWORD *)(v4 + 660) = 1000; *(_QWORD *)(v4 + 552) = 0; *(_QWORD *)(v4 + 560) = 0; *(_BYTE *)(v4 + 568) = 0; *(_QWORD *)(v4 + 576) = 0; *(_DWORD *)(v4 + 584) = 0; *(_BYTE *)(v4 + 588) = 0; *(_QWORD *)(v4 + 592) = 0; *(_QWORD *)(v4 + 600) = 0; *(_QWORD *)(v4 + 608) = 0; *(_BYTE *)(v4 + 620) = 0; *(_BYTE *)(v4 + 621) = 0; *(_BYTE *)(v4 + 628) = 0; *(_QWORD *)(v4 + 640) = 0; *(_DWORD *)(v4 + 648) = 0; *(_BYTE *)(v4 + 652) = 0; *(_BYTE *)(v4 + 653) = 0; *(_DWORD *)(v4 + 656) = 0; *(_DWORD *)(v4 + 664) = 0; *(_QWORD *)(v4 + 672) = 0; *(_QWORD *)v4 = &off_119BA50; *(_QWORD *)(v4 + 320) = off_119BF90; *(_QWORD *)(v4 + 328) = &off_119C000; *(_QWORD *)(v4 + 336) = &off_119C018; *(_QWORD *)(v4 + 344) = &off_119C038; *(_QWORD *)(v4 + 352) = off_119C058; *(_QWORD *)(v4 + 408) = &off_119C080; *(_QWORD *)(v4 + 432) = &off_119C100; *(_QWORD *)(v4 + 632) = &off_119C120; *(_QWORD *)(v4 + 680) = &off_119C168; *(_BYTE *)(v4 + 688) = 0; *(_QWORD *)(v4 + 696) = 0; sub_D18D28(&v12); v5 = (unsigned __int8)SetFolderPopup::init(v4, a1, a2); v6 = (void *)(v12 - 24); if ( (__int64 *)(v12 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v10 = (unsigned int *)(v12 - 8); do v11 = __ldaxr(v10); while ( __stlxr(v11 - 1, v10) ); } else { v11 = *(_DWORD *)(v12 - 8); *(_DWORD *)(v12 - 8) = v11 - 1; } if ( v11 <= 0 ) operator delete(v6); } if ( v5 ) { cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4); } else { v7 = *(_QWORD *)v4; v8 = v4; v4 = 0; (*(void (__fastcall **)(__int64))(v7 + 16))(v8); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source