// // BrowseSmartKeyLayer::addChanceToSelected from 0x1405f1e70 to 0x1405f1f51 (225 bytes) // // 3 xrefs: // > BrowseSmartKeyLayer::onButton @ 0x1405f19e3 // > @ 0x14092f2c4 // > @ 0x14092f2d0 // // 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:35:06 +0000 // // Hidden C++ exception states: #wind=1 __int64 __fastcall BrowseSmartKeyLayer::addChanceToSelected(__int64 a1, int a2, char a3) { cocos2d::CCArray *AllSelectedBlocks; // r14 unsigned int v7; // ebp __int64 v8; // rbx struct cocos2d::CCObject *v9; // rsi __int64 v10; // rdi __int64 v11; // rbx int v12; // eax struct cocos2d::CCObject *PrefabWithID; // rax _BYTE v15[72]; // [rsp+20h] [rbp-48h] BYREF AllSelectedBlocks = BrowseSmartKeyLayer::getAllSelectedBlocks(a1); v7 = 0; if ( cocos2d::CCArray::count(AllSelectedBlocks) ) { v8 = a1 + 712; do { v9 = cocos2d::CCArray::objectAtIndex(AllSelectedBlocks, v7); v10 = sub_14003F4F0((__int64)v15, v8); v11 = *(_QWORD *)(a1 + 664); v12 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v9 + 56LL))(v9); PrefabWithID = GJSmartTemplate::getPrefabWithID(v11, v10, v12); if ( PrefabWithID ) { if ( a3 ) *((_DWORD *)PrefabWithID + 31) = 0; else *((_DWORD *)PrefabWithID + 31) += a2; } ++v7; v8 = a1 + 712; } while ( v7 < cocos2d::CCArray::count(AllSelectedBlocks) ); } return BrowseSmartKeyLayer::updateChanceValues(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source