// // GJShopLayer::onSelectItem from 0x1003101f0 to 0x1003102da (234 bytes) // // 1 xrefs: // > GJShopLayer::init @ 0x10030f69f // // 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 12:28:38 +0000 // void __fastcall GJShopLayer::onSelectItem(__int64 a1, __int64 a2, __m128 a3) { __int64 v3; // rax __int64 v4; // rax __int64 StoreItem_1; // r14 int v6; // r12d int v7; // r13d __int64 v8; // r15 const char *v9; // rsi int Stat; // r15d int v11; // r12d _QWORD *v12; // rax char v13; // [rsp+0h] [rbp-40h] BYREF char v14; // [rsp+1h] [rbp-3Fh] BYREF void *__p; // [rsp+10h] [rbp-30h] if ( !*(_BYTE *)(a1 + 432) ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2); v3 = GameStatsManager::sharedState(); if ( !GameStatsManager::isStoreItemUnlocked(v3) ) { v4 = GameStatsManager::sharedState(); StoreItem_1 = GameStatsManager::getStoreItem_1(v4); v6 = *(_DWORD *)(StoreItem_1 + 352); v7 = *(_DWORD *)(StoreItem_1 + 356); v8 = GameStatsManager::sharedState(); GJStoreItem::getCurrencyKey((__int64)&v13, StoreItem_1); if ( (v13 & 1) != 0 ) v9 = (const char *)__p; else v9 = &v14; Stat = GameStatsManager::getStat(v8, v9, a3); v11 = v6 - v7; if ( (v13 & 1) != 0 ) operator delete(__p); if ( v11 <= Stat ) { v12 = (_QWORD *)PurchaseItemPopup::create(StoreItem_1); v12[84] = a1 + 408; (*(void (__fastcall **)(_QWORD *))(*v12 + 1312LL))(v12); } else { sub_100310700(a1, StoreItem_1); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source