// // MenuGameLayer::updateColor from 0x1004f9010 to 0x1004f91f0 (480 bytes) // // 2 xrefs: // > MenuGameLayer::init @ 0x1004f8cba // > MenuGameLayer::init @ 0x1004f8c9e // // 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:31:27 +0000 // __int64 __fastcall MenuGameLayer::updateColor(__int64 a1) { unsigned int v2; // eax int v3; // ecx __int64 v4; // kr00_8 int v5; // edx int v6; // r15d int v7; // r14d __int64 v8; // rax signed int v9; // r14d char *v10; // rax __int64 v11; // rax char *v12; // rax __int64 result; // rax __int64 v14; // rdi char *v15; // rax float v16; // [rsp+Ch] [rbp-24h] v2 = *(_DWORD *)(a1 + 416); v3 = v2; v4 = v2; if ( v2 > 7 ) { LABEL_2: v5 = v3 + 7; if ( v3 >= 0 ) v5 = v3; v3 -= v5 & 0xFFFFFFF8; v4 = (unsigned int)v3; } switch ( v4 ) { case 0LL: v6 = 16737792; goto LABEL_15; case 1LL: v7 = 7; goto LABEL_14; case 2LL: v7 = 8; goto LABEL_14; case 3LL: v7 = 9; goto LABEL_14; case 4LL: v7 = 10; goto LABEL_14; case 5LL: v7 = 11; goto LABEL_14; case 6LL: v7 = 1; goto LABEL_14; case 7LL: v7 = 3; LABEL_14: v8 = GameManager::sharedState(); v6 = GameManager::colorForIdx(v8, v7); v2 = *(_DWORD *)(a1 + 416); LABEL_15: v9 = (v6 & 0xFFFFFFu) >> 16; *(_DWORD *)(a1 + 416) = v2 + 1; cocos2d::CCNode::stopAllActions(*(_QWORD *)(a1 + 440)); v10 = cocos2d::CCTintTo::create(v6, BYTE1(v6), v9, (__m128)0x40800000u); cocos2d::CCNode::runAction(*(_QWORD *)(a1 + 440), (__int64)v10); v11 = *(_QWORD *)(a1 + 448); v16 = flt_100A0C4E8[*(_QWORD *)(v11 + 416) == 0]; cocos2d::CCNode::stopAllActions(*(_QWORD *)(v11 + 408)); v12 = cocos2d::CCTintTo::create( (int)(float)((float)(unsigned __int8)v6 * v16), (int)(float)((float)BYTE1(v6) * v16), (int)(float)((float)v9 * v16), (__m128)0x40800000u); cocos2d::CCNode::runAction(*(_QWORD *)(*(_QWORD *)(a1 + 448) + 408LL), (__int64)v12); result = *(_QWORD *)(a1 + 448); v14 = *(_QWORD *)(result + 416); if ( v14 ) { cocos2d::CCNode::stopAllActions(v14); v15 = cocos2d::CCTintTo::create(v6, BYTE1(v6), v9, (__m128)0x40800000u); return cocos2d::CCNode::runAction(*(_QWORD *)(*(_QWORD *)(a1 + 448) + 416LL), (__int64)v15); } return result; default: goto LABEL_2; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source