// // GameStatsManager::isSecretCoinValid from 0x4133d0 to 0x4134e4 (276 bytes) // // 1 xrefs: // > GameStatsManager::dataLoaded @ 0x41decc // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool __fastcall GameStatsManager::isSecretCoinValid(int a1, _DWORD *a2) { void *v2; // r6 int v3; // r3 char *v4; // r6 char *v5; // r4 char *v6; // r4 _BOOL4 v7; // r4 int v8; // r4 int v9; // r0 _BYTE v11[4]; // [sp+Ch] [bp-Ch] BYREF _BYTE v12[4]; // [sp+10h] [bp-8h] BYREF _BYTE v13[4]; // [sp+14h] [bp-4h] BYREF char *v14; // [sp+18h] [bp+0h] BYREF int v15; // [sp+1Ch] [bp+4h] int v16; // [sp+20h] [bp+8h] v14 = nullptr; v15 = 0; v16 = 0; sub_41324C(a2, "_", (int)&v14); v2 = v14; v3 = (v15 - (int)v14) >> 2; if ( v3 != 2 ) { if ( v3 == 3 ) { v8 = atoi(*(const char **)&byte_4[(_DWORD)v14]); v9 = atoi(*(const char **)&byte_8[(_DWORD)v2]); if ( v8 <= 22 ) { if ( v8 > 0 ) goto LABEL_12; } else if ( (unsigned int)(v8 - 5001) <= 3 ) { LABEL_12: v7 = (unsigned int)(v9 - 1) <= 2; goto LABEL_15; } } v7 = 0; goto LABEL_15; } v4 = v14 + 4; sub_776584((int)v11, "secret04"); if ( sub_774DBC(v4, v11) ) { v5 = v14 + 4; sub_776584((int)v12, "secret06"); if ( sub_774DBC(v5, v12) ) { v6 = v14 + 4; sub_776584((int)v13, "secretB03"); v7 = sub_774DBC(v6, v13) == 0; sub_774008(v13); } else { v7 = 1; } sub_774008(v12); } else { v7 = 1; } sub_774008(v11); LABEL_15: std::vector::~vector((void **)&v14); return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source