// // GauntletSelectLayer::playUnlockAnimation from 0x1005a0680 to 0x1005a09bb (827 bytes) // // 2 xrefs: // > GauntletSelectLayer::rewardedVideoFinished @ 0x1005a0651 // > sub_1005A09F0 @ 0x1005a0a1f // // 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:32:33 +0000 // void __fastcall GauntletSelectLayer::playUnlockAnimation(__int64 a1) { __int64 v1; // r14 _QWORD *v2; // rax __int64 v3; // rax __m128 v4; // xmm2 __m128 v5; // xmm1 __int64 v6; // rax __int64 v7; // r15 float v8; // xmm0_4 float v9; // xmm0_4 __int64 v10; // r12 unsigned int *v11; // rax __m128 v12; // xmm0 __m128 v13; // xmm0 __m128 v14; // xmm1 __m128 v15; // xmm2 _OWORD *v16; // r14 __int64 v17; // rax __int64 v18; // rax _OWORD *v19; // r14 __int64 v20; // rax __int64 v21; // rax __int64 v22; // [rsp+0h] [rbp-70h] BYREF double v23; // [rsp+8h] [rbp-68h] BYREF _QWORD v24[2]; // [rsp+10h] [rbp-60h] BYREF void *v25; // [rsp+20h] [rbp-50h] void *v26[3]; // [rsp+28h] [rbp-48h] BYREF _OWORD v27[3]; // [rsp+40h] [rbp-30h] BYREF v1 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 496), *(unsigned int *)(a1 + 508)); GauntletNode::showUnlockAnimation(v1); v2 = (_QWORD *)FMODAudioEngine::sharedEngine(); FMODAudioEngine::stopAllMusic(v2, 1); v3 = FMODAudioEngine::sharedEngine(); strcpy((char *)v26, "$unlockGauntlet.ogg"); v4 = (__m128)0x3F000000u; v5 = 0; FMODAudioEngine::playEffect(v3, (__int64)v26, (__m128)0LL, 0.0, 0.5); if ( ((__int64)v26[0] & 1) != 0 ) operator delete(v26[2]); v6 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v22, v6); v25 = operator new(0xB0u); v24[0] = 177; v24[1] = 171; strcpy( (char *)v25, "84a1.05a1.25a0.16a50a180a180a29a0a11a0a0a0a0a0a0a0a2a1a0a0a1a0a0a0a0.360784a0a1a0a1a1a0a0a1a0a0a0a0a0a1a0a0.8a0a0a0a" "110a0a0a0a0a0a1a2a1a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0"); v7 = GameToolbox::particleFromString((unsigned __int8 *)v24, 0, 0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 1208LL))(v7, 10.0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 1224LL))(v7, 5.0); v8 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v7 + 968LL))(v7); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 976LL))(v7, v8 * 0.69999999); v9 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v7 + 920LL))(v7); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 928LL))(v7, v9 * 0.69999999); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 1584LL))(v7, 1); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v7, 11); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 160LL))(v7, 2.0); cocos2d::CCParticleSystem::resetSystem(v7); v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 512LL))(v1); v11 = (unsigned int *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 192LL))(v1); cocos2d::CCNode::convertToWorldSpace(&v23, v10, v11); cocos2d::CCNode::convertToNodeSpace((double *)v27, a1, (unsigned int *)&v23); (*(void (__fastcall **)(__int64, _OWORD *))(*(_QWORD *)v7 + 184LL))(v7, v27); v12 = 0; v5.f32[0] = (float)(unsigned __int8)*(_WORD *)(v1 + 336) / 255.0; v4.f32[0] = (float)HIBYTE(*(unsigned __int16 *)(v1 + 336)) / 255.0; v12.f32[0] = (float)*(unsigned __int8 *)(v1 + 338) / 255.0; v27[0] = _mm_movelh_ps(_mm_insert_ps(v5, v4, 16), _mm_blend_ps(v12, (__m128)xmmword_100A03610, 14)); (*(void (__fastcall **)(__int64, _OWORD *))(*(_QWORD *)v7 + 1360LL))(v7, v27); v13 = 0; v14 = 0; v14.f32[0] = (float)(unsigned __int8)*(_WORD *)(v1 + 336) / 255.0; v15 = 0; v15.f32[0] = (float)HIBYTE(*(unsigned __int16 *)(v1 + 336)) / 255.0; v13.f32[0] = (float)*(unsigned __int8 *)(v1 + 338) / 255.0; v27[0] = _mm_movelh_ps(_mm_insert_ps(v14, v15, 16), _mm_blend_ps(v13, (__m128)xmmword_100A03610, 14)); (*(void (__fastcall **)(__int64, _OWORD *))(*(_QWORD *)v7 + 1392LL))(v7, v27); v16 = cocos2d::CCDelayTime::create((__m128)0x3E800000u); v17 = cocos2d::CCCallFunc::create(a1, GauntletSelectLayer::unlockAnimationStep2, 0); v18 = sub_10039EB60((__int64)v16, v17, 0); cocos2d::CCNode::runAction(a1, v18); v19 = cocos2d::CCDelayTime::create((__m128)0x3FD33333u); v20 = cocos2d::CCCallFunc::create(a1, GauntletSelectLayer::unlockAnimationFinished, 0); v21 = sub_10039EB60((__int64)v19, v20, 0); cocos2d::CCNode::runAction(a1, v21); if ( (v24[0] & 1) != 0 ) operator delete(v25); }
GD Web Decomp Icon

GD Web Decomp

Raw Source