// // EditorUI::createOutlines from 0x14012ecf0 to 0x14012f5e8 (2296 bytes) // // 5 xrefs: // > EditorUI::createSmartObjectsFromType @ 0x14011822d // > @ 0x140670e50 // > @ 0x140670ea4 // > @ 0x140670eb4 // > @ 0x1406c9dc8 // // 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 // cocos2d::CCArray *EditorUI::createOutlines(EditorUI *a1, cocos2d::CCArray *a2) { EditorUI *v3; // rdi __int64 v4; // rcx cocos2d::CCArray *v5; // r12 __int64 v6; // rcx cocos2d::CCArray *v7; // r14 unsigned int v8; // r15d struct cocos2d::CCObject *v9; // rsi int m_eObjType; // ecx int v11; // r13d char v12; // r14 int v13; // ebx cocos2d::CCPoint v14; // rax EditorUI *v15; // rcx cocos2d::CCPoint v16; // rax EditorUI *v17; // rcx cocos2d::CCPoint v18; // rax EditorUI *v19; // rcx cocos2d::CCPoint v20; // rax EditorUI *v21; // rcx cocos2d::CCPoint v22; // rax EditorUI *v23; // rcx cocos2d::CCPoint v24; // rax EditorUI *v25; // rcx cocos2d::CCPoint v26; // rax EditorUI *v27; // rcx cocos2d::CCPoint v28; // rax EditorUI *v29; // rcx cocos2d::CCPoint v30; // rax GameObject *Object; // rdi GameObject_vtbl *v32; // rbx char v33; // al char v34; // al cocos2d::CCArray *v35; // rcx cocos2d::CCPoint v36; // rax GameObject *v37; // rdi GameObject_vtbl *v38; // rbx GameObject_vtbl *v39; // rbx char v40; // al GameObject_vtbl *v41; // rbx char v42; // al cocos2d::CCPoint v44; // [rsp+30h] [rbp-98h] BYREF cocos2d::CCPoint v45; // [rsp+38h] [rbp-90h] BYREF cocos2d::CCPoint v46; // [rsp+40h] [rbp-88h] BYREF cocos2d::CCPoint v47; // [rsp+48h] [rbp-80h] BYREF cocos2d::CCPoint v48; // [rsp+50h] [rbp-78h] BYREF cocos2d::CCPoint v49; // [rsp+58h] [rbp-70h] BYREF cocos2d::CCPoint v50; // [rsp+60h] [rbp-68h] BYREF char v51[8]; // [rsp+68h] [rbp-60h] BYREF char v52[24]; // [rsp+70h] [rbp-58h] BYREF cocos2d::CCPoint v54; // [rsp+D8h] [rbp+10h] BYREF cocos2d::CCArray *v55; // [rsp+E0h] [rbp+18h] cocos2d::CCPoint v56; // [rsp+E8h] [rbp+20h] BYREF v3 = a1; if ( !a2 || !cocos2d::CCArray::count(a2) ) return nullptr; v5 = (cocos2d::CCArray *)cocos2d::CCArray::create(v4); v7 = (cocos2d::CCArray *)cocos2d::CCArray::create(v6); v55 = v7; cocos2d::CCArray::addObjectsFromArray(v5, a2); v8 = 0; if ( cocos2d::CCArray::count(v5) ) { while ( 1 ) { v9 = cocos2d::CCArray::objectAtIndex(v5, v8); v9->__vftable[2].getTag(v9); cocos2d::CCPoint::CCPoint(&v54); m_eObjType = v9[18].m_eObjType; v11 = 0; v12 = 0; if ( m_eObjType <= 1621 ) { if ( m_eObjType != 1621 ) { switch ( m_eObjType ) { case 1348: v13 = 1386; v11 = 1382; goto LABEL_88; case 1349: v13 = 1385; v11 = 1380; goto LABEL_88; case 1350: v13 = 1384; v11 = 1381; goto LABEL_88; case 1351: v13 = 1383; v11 = 1379; goto LABEL_88; case 1356: v13 = 1368; goto LABEL_88; case 1357: v13 = 1369; goto LABEL_88; case 1358: v13 = 1370; goto LABEL_88; case 1359: v13 = 1371; goto LABEL_88; case 1360: v13 = 1372; goto LABEL_88; case 1361: v13 = 1373; goto LABEL_88; case 1362: v13 = 1374; goto LABEL_88; case 1363: v13 = 1375; goto LABEL_88; case 1364: v13 = 1376; goto LABEL_88; case 1365: v13 = 1377; goto LABEL_88; case 1366: v13 = 1378; goto LABEL_88; case 1395: v13 = 1367; goto LABEL_88; case 1434: v13 = 1453; goto LABEL_88; case 1435: v13 = 1454; goto LABEL_88; case 1436: v13 = 1455; goto LABEL_88; case 1437: v13 = 1456; goto LABEL_88; case 1438: v13 = 1457; goto LABEL_88; case 1439: v13 = 1458; goto LABEL_88; case 1440: v13 = 1459; goto LABEL_88; case 1441: v13 = 1460; goto LABEL_88; default: goto LABEL_95; } } v13 = 1653; goto LABEL_88; } if ( m_eObjType > 2838 ) { switch ( m_eObjType ) { case 2839: case 2840: case 2841: goto LABEL_67; case 2842: case 2844: v13 = 2852; goto LABEL_88; case 2843: case 2845: v13 = 2852; goto LABEL_87; case 2846: case 2848: v13 = 2855; goto LABEL_88; case 2847: case 2849: v13 = 2855; goto LABEL_87; default: goto LABEL_95; } } if ( m_eObjType != 2838 ) { switch ( m_eObjType ) { case 1622: v13 = 1654; goto LABEL_88; case 1623: v13 = 1655; goto LABEL_88; case 1624: v13 = 1656; goto LABEL_88; case 1625: v13 = 1657; goto LABEL_88; case 1626: v13 = 1658; goto LABEL_88; case 1627: v13 = 1659; goto LABEL_88; case 1628: v13 = 1660; goto LABEL_88; case 1629: v13 = 1661; goto LABEL_88; case 1630: v13 = 1662; goto LABEL_88; case 1631: v13 = 1663; goto LABEL_88; case 1632: v13 = 1664; goto LABEL_88; case 1633: v13 = 1665; goto LABEL_88; case 1634: v13 = 1666; goto LABEL_88; case 1635: v13 = 1667; goto LABEL_88; case 1636: v13 = 1668; goto LABEL_88; case 1637: v13 = 1669; goto LABEL_88; case 1638: v13 = 1670; goto LABEL_88; case 1639: v13 = 1671; goto LABEL_88; case 1640: v13 = 1672; goto LABEL_88; case 1641: v13 = 1673; goto LABEL_88; case 1642: v13 = 1674; goto LABEL_88; case 1643: v13 = 1675; goto LABEL_88; case 1644: v13 = 1676; goto LABEL_88; case 1645: v13 = 1677; goto LABEL_88; case 1646: v13 = 1678; goto LABEL_88; case 1647: v13 = 1679; goto LABEL_88; case 1648: v13 = 1680; goto LABEL_88; case 1649: v13 = 1681; goto LABEL_88; case 1650: v13 = 1682; goto LABEL_88; case 1651: v13 = 1683; goto LABEL_88; case 1652: v13 = 1684; goto LABEL_88; default: goto LABEL_95; } } LABEL_67: cocos2d::CCPoint::CCPoint(&v56); if ( !EditorUI::getNeighbor(v15, 2838, v14, (GJSmartDirection)1, a2) ) break; cocos2d::CCPoint::CCPoint(&v44); if ( !EditorUI::getNeighbor(v17, 2838, v16, (GJSmartDirection)2, a2) ) { v13 = 2856; goto LABEL_88; } cocos2d::CCPoint::CCPoint(&v45); if ( !EditorUI::getNeighbor(v19, 2838, v18, (GJSmartDirection)3, a2) ) { v13 = 2854; goto LABEL_88; } cocos2d::CCPoint::CCPoint(&v46); if ( !EditorUI::getNeighbor(v21, 2838, v20, (GJSmartDirection)4, a2) ) { v13 = 2854; goto LABEL_87; } cocos2d::CCPoint::CCPoint(&v47); if ( !EditorUI::getNeighbor(v23, 2838, v22, TopLeft, a2) ) { v13 = 2861; goto LABEL_87; } cocos2d::CCPoint::CCPoint(&v48); if ( !EditorUI::getNeighbor(v25, 2838, v24, TopRight, a2) ) { v13 = 2861; goto LABEL_88; } cocos2d::CCPoint::CCPoint(&v49); if ( !EditorUI::getNeighbor(v27, 2838, v26, BottomLeft, a2) ) { v13 = 2863; goto LABEL_88; } cocos2d::CCPoint::CCPoint(&v50); if ( !EditorUI::getNeighbor(v29, 2838, v28, BottomRight, a2) ) { v13 = 2863; LABEL_87: v12 = 1; LABEL_88: v30 = (cocos2d::CCPoint)((__int64 (__fastcall *)(struct cocos2d::CCObject *, char *))v9->__vftable[16].encodeWithCoder)( v9, v51); Object = EditorUI::createObject(v3, v13, v30); v32 = Object->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v9->__vftable[4].getTag(v9); ((void (__fastcall *)(GameObject *))v32->setRotation)(Object); v33 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v9->__vftable[17].update)(v9); if ( v12 ) v33 = v33 == 0; Object->setFlipX(Object, v33); v34 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v9->__vftable[17].encodeWithCoder)(v9); Object->setFlipY(Object, v34); GameObject::updateCustomScaleX(Object, *(float *)&v9[20].m_unknown2); GameObject::updateCustomScaleY(Object, *(float *)&v9[20].m_nZOrder); v7 = v55; v35 = v55; Object->m_editorLayer2 = HIWORD(v9[21].m_uIndexInArray) + 3; cocos2d::CCArray::addObject(v35, Object); if ( v11 > 0 ) { v36 = (cocos2d::CCPoint)((__int64 (__fastcall *)(struct cocos2d::CCObject *, char *))v9->__vftable[16].encodeWithCoder)( v9, v52); v37 = EditorUI::createObject(a1, v11, v36); v38 = v37->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v9->__vftable[4].getTag(v9); ((void (__fastcall *)(GameObject *))v38->setRotation)(v37); v39 = v37->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v40 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v9->__vftable[17].update)(v9); v39->setFlipX(v37, v40); v41 = v37->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v42 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v9->__vftable[17].encodeWithCoder)(v9); v41->setFlipY(v37, v42); GameObject::updateCustomScaleX(v37, *(float *)&v9[20].m_unknown2); GameObject::updateCustomScaleY(v37, *(float *)&v9[20].m_nZOrder); v37->m_editorLayer2 = HIWORD(v9[21].m_uIndexInArray) + 3; cocos2d::CCArray::addObject(v7, v37); } v3 = a1; goto LABEL_93; } LABEL_95: v7 = v55; LABEL_93: if ( ++v8 >= cocos2d::CCArray::count(v5) ) return v7; } v13 = 2853; goto LABEL_88; } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source