// // GameStatsManager::registerRewardsFromItem from 0x1000381c0 to 0x100038280 (192 bytes) // // 5 xrefs: // > GameStatsManager::collectReward @ 0x100038153 // > GameStatsManager::completedDailyLevel @ 0x100039e61 // > GameStatsManager::unlockSpecialChest @ 0x10003e5d6 // > GameStatsManager::unlockSecretChest @ 0x100052c2a // > GameStatsManager::unlockGoldChest @ 0x100052db6 // // 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:19:32 +0000 // __int64 __fastcall GameStatsManager::registerRewardsFromItem(__int64 a1, __int64 a2, __m128 a3) { __int64 v3; // r14 unsigned int v4; // r15d int v5; // r12d __int64 v6; // rax unsigned int v7; // ecx const char *v8; // r12 __int64 v9; // r13 __int64 v10; // rax const char *v11; // rsi char v13; // [rsp+17h] [rbp-29h] v13 = *(_BYTE *)(a1 + 808); *(_BYTE *)(a1 + 808) = 1; v3 = *(_QWORD *)(a2 + 72); if ( v3 && (unsigned int)sub_1007FEF90(*(_QWORD *)(a2 + 72)) ) { v4 = 0; v5 = 32511; do { v6 = sub_1007FEFE0(v3, v4); v7 = *(_DWORD *)(v6 + 56) - 1; if ( v7 <= 0xE && _bittest(&v5, v7) ) { v8 = (char *)dword_100A03CC8 + dword_100A03CC8[v7]; v9 = v6; v10 = GameStatsManager::sharedState(); v11 = v8; v5 = 32511; GameStatsManager::incrementStat(v10, v11, *(_DWORD *)(v9 + 68), a3); } ++v4; } while ( v4 < (unsigned int)sub_1007FEF90(v3) ); } *(_BYTE *)(a1 + 808) = v13; return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source