// // sub_14045AC40 from 0x14045ac40 to 0x14045ae8c (588 bytes) // // 4 xrefs: // > BrowseSmartTemplateLayer::goToPage @ 0x14045aff3 // > @ 0x1406a3b38 // > @ 0x1406a3b48 // > @ 0x1406dab2c // // 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 // unsigned int __fastcall sub_14045AC40(__int64 a1) { unsigned int v1; // esi struct cocos2d::CCSpriteBatchNode *v3; // r14 __int64 v4; // rcx cocos2d::CCObject *v5; // rax unsigned int i; // edi struct cocos2d::CCSprite *v7; // rbx cocos2d::CCDirector *v8; // rax float v9; // xmm7_4 unsigned int result; // eax float v11; // xmm7_4 float v12; // xmm0_4 float v13; // xmm6_4 struct cocos2d::CCObject *v14; // rdi cocos2d::CCObject_vtbl *v15; // rbx DS_Dictionary *v16; // rax void (__fastcall **v17)(int *, _BYTE *); // rax _BYTE *v18; // rdx _BYTE v19[3]; // [rsp+A0h] [rbp+8h] BYREF float v20; // [rsp+A8h] [rbp+10h] v1 = 0; if ( !*(_QWORD *)(a1 + 672) ) { v3 = cocos2d::CCSpriteBatchNode::create("smallDot.png"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSpriteBatchNode *, __int64))(**(_QWORD **)(a1 + 576) + 440LL))( *(_QWORD *)(a1 + 576), v3, 5); v5 = (cocos2d::CCObject *)cocos2d::CCArray::create(v4); *(_QWORD *)(a1 + 672) = v5; cocos2d::CCObject::retain(v5); for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 640)); ++i ) { v7 = cocos2d::CCSprite::create("smallDot.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v7->setScale_0)(v7); v3->addChild_1(v3, v7); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 672), v7); } } v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v8); v9 = (float)(int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 640)); result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 640)); if ( result ) { v11 = (float)(v9 - 1.0) * 0.5; do { v12 = v20 * 0.5; v13 = (float)((float)((float)(int)v1 - v11) * 16.0) + (float)(v20 * 0.5); if ( v1 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 672)) ) { v14 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 672), v1); v15 = v14->__vftable; cocos2d::CCPoint::CCPoint(v12, v13); v15[2].encodeWithCoder(v14, v16); v17 = *(void (__fastcall ***)(int *, _BYTE *))&v14[5].m_unknown2; if ( v1 == *(_DWORD *)(a1 + 648) ) { v18 = &unk_140529C4C; } else { memset(v19, 125, sizeof(v19)); v18 = v19; } (*v17)(&v14[5].m_unknown2, v18); } ++v1; result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 640)); } while ( v1 < result ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source