// // GameSettingsLayer::getValue from 0x1402c6d70 to 0x1402c70ae (830 bytes) // // 2 xrefs: // > @ 0x140766278 // > @ 0x14091dbdc // // 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 11:29:22 +0000 // // Hidden C++ exception states: #wind=6 float __fastcall GameSettingsLayer::getValue(_QWORD *a1, int a2) { unsigned __int64 v3; // r8 __int64 v4; // rcx __int64 v5; // rbx __int64 v6; // r10 __int64 v7; // rcx float result; // xmm0_4 __int64 v9; // rax __int64 v10; // rbx __int64 v11; // rcx cocos2d::CCString *v12; // rax bool v13; // bl __int64 v14; // rax __int64 v15; // rax void *v16; // [rsp+20h] [rbp-38h] void *v17; // [rsp+20h] [rbp-38h] void *v18; // [rsp+20h] [rbp-38h] void *v19; // [rsp+20h] [rbp-38h] void *v20; // [rsp+20h] [rbp-38h] _BYTE v21[32]; // [rsp+28h] [rbp-30h] BYREF switch ( a2 ) { case -4: v15 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v20 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v20); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v15 = qword_14090BFD0; } return *(float *)(v15 + 1140); case -3: v14 = qword_14090BF60; if ( !qword_14090BF60 ) { v19 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v19); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v14 = qword_14090BF60; } return (float)*(int *)(v14 + 620); case -2: v10 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v16 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v16); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v10 = qword_14090BFE0; } if ( (unsigned __int8)GameStatsManager::isItemUnlocked(a1, 12, 17) ) { GameStatsManager::getItemKey(v11, v21, 17, 12, v16); v12 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v10 + 896), v21); v13 = cocos2d::CCString::boolValue(v12); sub_14003D310((__int64)v21); return (float)v13; } else { return (float)0; } case -1: v9 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v18 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v18); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v9 = qword_14090BFD0; } return (float)*(unsigned __int8 *)(v9 + 956); default: v3 = a1[142] & (0x100000001B3LL * (HIBYTE(a2) ^ (0x100000001B3LL * (BYTE2(a2) ^ (0x100000001B3LL * ((0x100000001B3LL * ((unsigned __int8)a2 ^ 0xCBF29CE484222325uLL)) ^ BYTE1(a2))))))); v4 = a1[139]; v5 = *(_QWORD *)(v4 + 16 * (a1[142] & (0x100000001B3LL * (HIBYTE(a2) ^ (0x100000001B3LL * (BYTE2(a2) ^ (0x100000001B3LL * ((0x100000001B3LL * ((unsigned __int8)a2 ^ 0xCBF29CE484222325uLL)) ^ BYTE1(a2)))))))) + 8); v6 = a1[137]; if ( v5 != v6 ) { if ( a2 == *(_DWORD *)(v5 + 16) ) { LABEL_11: if ( !v5 ) v5 = a1[137]; if ( v5 == v6 ) { SetupTriggerPopup::getValue(a1); } else { v7 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v17 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v17); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v7 = qword_14090BFD0; } return (float)GameManager::getGameVariable(v7, *(_BYTE **)(v5 + 24)); } return result; } while ( v5 != *(_QWORD *)(v4 + 16 * v3) ) { v5 = *(_QWORD *)(v5 + 8); if ( a2 == *(_DWORD *)(v5 + 16) ) goto LABEL_11; } } v5 = 0; goto LABEL_11; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source