// // CreateParticlePopup::applyTexturePage from 0x1405c7c90 to 0x1405c7e48 (440 bytes) // // 4 xrefs: // > CreateParticlePopup::onSelectParticleTexture @ 0x1405c7976 // > CreateParticlePopup::onPage @ 0x1405c7c5f // > CreateParticlePopup::onTexturePage @ 0x1405c7e96 // > @ 0x14092e310 // // 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:34:51 +0000 // __int64 __fastcall CreateParticlePopup::applyTexturePage(__int64 a1) { int v1; // ebx __int64 v3; // rcx __int64 v4; // rdi __int64 v5; // rdx __int64 v6; // rax int v7; // ebx __int64 v8; // rdx __int64 v9; // rax __int64 result; // rax __int64 v11; // rdi __int64 (__fastcall **v12)(__int64, const char *); // rbx cocos2d::CCString *v13; // rax const char *CString; // rax float v15; // [rsp+40h] [rbp+8h] BYREF float v16; // [rsp+44h] [rbp+Ch] char v17; // [rsp+48h] [rbp+10h] BYREF char v18; // [rsp+50h] [rbp+18h] BYREF char v19; // [rsp+58h] [rbp+20h] BYREF v1 = 0; if ( *(_DWORD *)(a1 + 928) > 4u ) *(_DWORD *)(a1 + 928) = 0; v3 = *(_QWORD *)(a1 + 896); if ( (int)((*(_QWORD *)(a1 + 904) - v3) >> 3) > 0 ) { v4 = 0; do { v5 = (unsigned int)(v1 / 88); LOBYTE(v5) = (_DWORD)v5 == *(_DWORD *)(a1 + 928); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v4 + v3) + 336LL))(*(_QWORD *)(v4 + v3), v5); v3 = *(_QWORD *)(a1 + 896); v4 += 8; ++v1; } while ( v1 < (int)((*(_QWORD *)(a1 + 904) - v3) >> 3) ); } v6 = cocos2d::CCDirector::sharedDirector(v3); cocos2d::CCDirector::getWinSize(v6, &v15); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17, (float)(v15 * 0.5) - 56.0, (float)(v16 * 0.5) + 75.0); v7 = *(_DWORD *)(a1 + 992); v8 = (unsigned int)(v7 / 88); LOBYTE(v8) = (_DWORD)v8 == *(_DWORD *)(a1 + 928); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 888) + 336LL))(*(_QWORD *)(a1 + 888), v8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v19, (float)(v7 % 88 % 11) * 24.0, (float)(v7 % 88 / 11) * -24.0); cocos2d::CCPoint::operator+(&v17, &v18, v9); result = (*(__int64 (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 888) + 184LL))(*(_QWORD *)(a1 + 888), &v18); v11 = *(_QWORD *)(a1 + 920); if ( v11 ) { v12 = *(__int64 (__fastcall ***)(__int64, const char *))(v11 + 360); v13 = cocos2d::CCString::createWithFormat("%i/%i", *(_DWORD *)(a1 + 928) + 1, 5); CString = cocos2d::CCString::getCString(v13); return (*v12)(v11 + 360, CString); } return result; }