// // GJBaseGameLayer::processItems from 0x100106f80 to 0x1001071c4 (580 bytes) // // 1 xrefs: // > PlayLayer::levelComplete @ 0x10008148b // // 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:21:32 +0000 // __int64 __fastcall GJBaseGameLayer::processItems(__int64 a1) { __int64 v1; // r15 __int64 v2; // rbx __int64 result; // rax unsigned int v4; // r12d __int64 v5; // rax const char *CString; // rbx __int64 v7; // r13 size_t v8; // rax size_t v9; // r12 char *v10; // r14 size_t v11; // r15 unsigned int *v12; // rbx unsigned int v13; // r12d int v14; // eax const char *CoinKey_1; // rbx __int64 v16; // rax int v17; // r14d int v18; // r15d __int64 v19; // rdi bool hasPendingUserCoin; // al __int64 v21; // rax __int64 v22; // rax __int64 v23; // rax __int64 v24; // rax bool hasUserCoin; // al __int64 v26; // rax __int64 v27; // rax __int64 v28; // [rsp+8h] [rbp-58h] _QWORD __dst[2]; // [rsp+10h] [rbp-50h] BYREF void *__p; // [rsp+20h] [rbp-40h] unsigned int v31; // [rsp+2Ch] [rbp-34h] __int64 v32; // [rsp+30h] [rbp-30h] v1 = a1; v2 = cocos2d::CCDictionary::allKeys(*(_QWORD *)(a1 + 12584)); result = sub_1007FEF90(v2); if ( (_DWORD)result ) { v4 = 0; v32 = a1; v28 = v2; do { v31 = v4; v5 = sub_1007FEFE0(v2, v4); CString = (const char *)cocos2d::CCString::getCString(v5); v7 = *(_QWORD *)(v1 + 12584); v8 = strlen(CString); if ( v8 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v9 = v8; if ( v8 >= 0x17 ) { v11 = (v8 | 7) + 1; if ( (v8 | 7) == 0x17 ) v11 = 26; v10 = (char *)operator new(v11); __p = v10; __dst[0] = v11 + 1; v1 = v32; __dst[1] = v9; } else { LOBYTE(__dst[0]) = 2 * v8; v10 = (char *)__dst + 1; if ( !v8 ) goto LABEL_12; } memmove(v10, CString, v9); LABEL_12: v10[v9] = 0; v12 = (unsigned int *)cocos2d::CCDictionary::objectForKey(v7, __dst); v13 = v31; if ( (__dst[0] & 1) != 0 ) operator delete(__p); v14 = (*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)v12 + 1800LL))(v12); if ( v14 == 22 ) { GJGameLevel::getCoinKey_1(*(_QWORD *)(v1 + 1936), v12[448]); v22 = GameStatsManager::sharedState(); if ( !GameStatsManager::hasSecretCoin(v22) ) { v23 = GameStatsManager::sharedState(); GameStatsManager::storeSecretCoin(v23); v24 = GameStatsManager::sharedState(); GameStatsManager::incrementStat_1(v24, (__int64)"8"); } } else if ( v14 == 31 ) { CoinKey_1 = (const char *)GJGameLevel::getCoinKey_1(*(_QWORD *)(v1 + 1936), v12[448]); v16 = *(_QWORD *)(v1 + 1936); v17 = *(_DWORD *)(v16 + 968); v18 = *(_DWORD *)(v16 + 972); v19 = GameStatsManager::sharedState(); if ( v17 == v18 ) { hasPendingUserCoin = GameStatsManager::hasPendingUserCoin(v19, CoinKey_1); v1 = v32; if ( !hasPendingUserCoin ) { v21 = GameStatsManager::sharedState(); GameStatsManager::storePendingUserCoin(v21, CoinKey_1); } } else { hasUserCoin = GameStatsManager::hasUserCoin(v19, CoinKey_1); v1 = v32; if ( !hasUserCoin ) { v26 = GameStatsManager::sharedState(); GameStatsManager::storeUserCoin(v26, CoinKey_1); v27 = GameStatsManager::sharedState(); GameStatsManager::incrementStat_1(v27, (__int64)"12"); } } } v4 = v13 + 1; v2 = v28; result = sub_1007FEF90(v28); } while ( v4 < (unsigned int)result ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source