// // sub_1003CDC5C from 0x1003cdc5c to 0x1003cdd80 (292 bytes) // // 3 xrefs: // > sub_1003CDAA8 @ 0x1003cdac4 // > GJPathsLayer::init @ 0x10045ed18 // > sub_10045F6C4 @ 0x10046082c // // This function is hookable on this platform (idp: arm, 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:04:09 +0000 // void __fastcall sub_1003CDC5C(__int64 a1) { int v2; // w8 __int64 v3; // x20 __int64 v4; // x0 char *v5; // x1 int Stat; // w20 __int64 v7; // x20 __int64 v8; // x0 char *v9; // x1 int v10; // w21 void *__p[2]; // [xsp+8h] [xbp-38h] BYREF char v12; // [xsp+1Fh] [xbp-21h] v2 = *(_DWORD *)(a1 + 916); if ( (unsigned int)(v2 - 40) < 0xFFFFFFF6 ) v2 = 0; *(_DWORD *)(a1 + 916) = v2; if ( v2 ) { v3 = (unsigned int)(v2 - 24); v4 = GameStatsManager::sharedState(); if ( !(unsigned int)GameStatsManager::isItemUnlocked(v4, 12, v3) ) goto LABEL_11; GameToolbox::intToString(*(unsigned int *)(a1 + 916), __p); if ( v12 >= 0 ) v5 = (char *)__p; else v5 = (char *)__p[0]; Stat = GameStatsManager::getStat(a1, v5); if ( v12 < 0 ) operator delete(__p[0]); if ( Stat <= 999 ) { if ( *(_DWORD *)(a1 + 916) ) return; } else { LABEL_11: *(_DWORD *)(a1 + 916) = 0; } } v7 = 30; while ( 1 ) { v8 = GameStatsManager::sharedState(); if ( (unsigned int)GameStatsManager::isItemUnlocked(v8, 12, (unsigned int)(v7 - 24)) ) { GameToolbox::intToString(v7, __p); v9 = v12 >= 0 ? (char *)__p : (char *)__p[0]; v10 = GameStatsManager::getStat(a1, v9); if ( v12 < 0 ) operator delete(__p[0]); if ( v10 <= 999 ) break; } v7 = (unsigned int)(v7 + 1); if ( (_DWORD)v7 == 40 ) return; } *(_DWORD *)(a1 + 916) = v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source