// // RewardUnlockLayer::playLabelEffect from 0x100202760 to 0x100202d93 (1587 bytes) // // 2 xrefs: // > RewardUnlockLayer::playRewardEffect @ 0x100201379 // > RewardUnlockLayer::playRewardEffect @ 0x100201526 // // 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:26:52 +0000 // void __fastcall RewardUnlockLayer::playLabelEffect(__int64 a1, int a2, int a3, __int64 a4, __int64 a5, float a6) { std::string *v9; // rdi const std::string::value_type *v10; // rsi int v11; // xmm0_4 char v12; // bl __int64 v13; // r13 __int64 v14; // r12 const char *v15; // rdi std::string::pointer data; // rdi _DWORD *v17; // r14 __int64 v18; // rax __int64 CString; // rax __int64 v20; // rbx __int64 v21; // rax int v22; // ebx __int64 v23; // rax int v24; // r15d int v25; // eax int v26; // ecx int v27; // r8d int v28; // r9d __int64 v29; // rax int v30; // eax int v31; // ecx int v32; // r8d int v33; // r9d __int64 v34; // rax int v35; // ebx int v36; // eax int v37; // ecx int v38; // r8d int v39; // r9d __int64 v40; // rbx int v41; // r15d int v42; // eax int v43; // ecx int v44; // r8d int v45; // r9d __int64 v46; // r13 int v47; // ebx int v48; // eax int v49; // ecx int v50; // r8d int v51; // r9d __int64 v52; // rax char v53; // [rsp+0h] [rbp-A0h] __int64 v55; // [rsp+10h] [rbp-90h] _BYTE v56[8]; // [rsp+1Ch] [rbp-84h] BYREF _BYTE v57[8]; // [rsp+24h] [rbp-7Ch] BYREF _BYTE v58[8]; // [rsp+2Ch] [rbp-74h] BYREF _BYTE v59[8]; // [rsp+34h] [rbp-6Ch] BYREF int v60; // [rsp+3Ch] [rbp-64h] std::string v61; // [rsp+40h] [rbp-60h] BYREF __int64 v62; // [rsp+60h] [rbp-40h] float v63; // [rsp+68h] [rbp-38h] float v64; // [rsp+6Ch] [rbp-34h] _BYTE v65[48]; // [rsp+70h] [rbp-30h] BYREF v63 = a6; v60 = a2; memset(&v61, 0, sizeof(v61)); sub_1002782D0(v56, &unk_100BE1668); v9 = (std::string *)v57; sub_1002782D0(v57, &unk_100BE1668); switch ( a3 ) { case 1: v9 = &v61; std::string::assign(&v61, "currencyOrbIcon_001.png"); goto LABEL_19; case 3: v9 = &v61; std::string::assign(&v61, "GJ_bigDiamond_001.png"); v11 = 1059481190; goto LABEL_20; case 4: v10 = "fireShardBig_001.png"; goto LABEL_17; case 5: v10 = "iceShardBig_001.png"; goto LABEL_17; case 6: v10 = "poisonShardBig_001.png"; goto LABEL_17; case 7: v10 = "shadowShardBig_001.png"; goto LABEL_17; case 8: v10 = "lavaShardBig_001.png"; goto LABEL_17; case 9: std::string::assign(&v61, "GJ_bigKey_001.png"); sub_100278250(v65, -7.0, 0.0); sub_100278300(v56, v65); sub_100278250(v65, 0.0, -0.5); v9 = (std::string *)v57; sub_100278300(v57, v65); goto LABEL_14; case 10: v10 = "shard0201ShardBig_001.png"; goto LABEL_17; case 11: v10 = "shard0202ShardBig_001.png"; goto LABEL_17; case 12: v10 = "shard0203ShardBig_001.png"; goto LABEL_17; case 13: v10 = "shard0204ShardBig_001.png"; goto LABEL_17; case 14: v10 = "shard0205ShardBig_001.png"; LABEL_17: v9 = &v61; std::string::assign(&v61, v10); v64 = 0.69999999; v12 = 1; goto LABEL_21; case 16: std::string::assign(&v61, "GJ_bigGoldKey_001.png"); sub_100278250(v65, -7.0, 0.0); sub_100278300(v56, v65); sub_100278250(v65, 0.0, -0.5); v9 = (std::string *)v57; sub_100278300(v57, v65); LABEL_14: v11 = 1063675494; goto LABEL_20; default: if ( !a4 ) goto LABEL_40; LABEL_19: v11 = 1067030938; LABEL_20: v64 = *(float *)&v11; v12 = 0; LABEL_21: v13 = cocos2d::CCNode::create(v9); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v13, 10); v55 = a1; v14 = a4; if ( !a4 ) { if ( (*(_BYTE *)&v61.__r_.__value_.__s.0 & 1) != 0 ) data = v61.__r_.__value_.__l.__data_; else data = v61.__r_.__value_.__s.__data_; v14 = cocos2d::CCSprite::createWithSpriteFrameName(data); if ( v12 ) goto LABEL_23; LABEL_30: v62 = 0; goto LABEL_31; } if ( !v12 ) goto LABEL_30; LABEL_23: v15 = "shard2Shadow_001.png"; if ( a3 < 9 ) v15 = "shardShadow_001.png"; v62 = cocos2d::CCSprite::createWithSpriteFrameName(v15); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v14 + 464LL))(v14, v62, 0xFFFFFFFFLL); cocos2d::CCNode::convertToNodeSpace(v58, v14, &unk_100BE1668); sub_100278250(v59, 0.0, 1.0); sub_100278350(v65, v58, v59); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v62 + 184LL))(v62, v65); LABEL_31: (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 456LL))(v13, v14); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v14 + 160LL))(v14, v64); if ( a4 ) { v17 = nullptr; } else { sub_100278250(v65, 15.0, 0.0); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v14 + 184LL))(v14, v65); v18 = sub_10088E820("+%i", v53); CString = cocos2d::CCString::getCString(v18); v17 = (_DWORD *)cocos2d::CCLabelBMFont::create_3(CString, "bigFont.fnt"); sub_100278250(v65, 1.0, 0.5); (*(void (__fastcall **)(_DWORD *, _BYTE *))(*(_QWORD *)v17 + 296LL))(v17, v65); (*(void (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)v13 + 456LL))(v13, v17); sub_100278250(v65, -2.0, -16.0); (*(void (__fastcall **)(_DWORD *, _BYTE *))(*(_QWORD *)v17 + 184LL))(v17, v65); v20 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v14 + 192LL))(v14); sub_100278250(v59, -15.0, 0.0); sub_100278350(v58, v20, v59); sub_100278350(v65, v58, v56); (*(void (__fastcall **)(_DWORD *, _BYTE *))(*(_QWORD *)v17 + 184LL))(v17, v65); (*(void (__fastcall **)(_DWORD *, float))(*(_QWORD *)v17 + 160LL))(v17, 0.69999999); v17[7] = 4; cocos2d::CCLabelBMFont::limitLabelWidth(v17, 40.0, 0.69999999, 0.0); } v21 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v14 + 192LL))(v14); sub_100278350(v65, v21, v57); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v14 + 184LL))(v14, v65); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 184LL))(v13, a5); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 160LL))(v13, 3.0); v22 = cocos2d::CCCallFuncO::create(v55, RewardUnlockLayer::labelEnterFinishedO, 0, v13); v23 = cocos2d::CCScaleTo::create_1(0.30000001, 1.0); v24 = cocos2d::CCEaseBounceOut::create(v23); v25 = cocos2d::CCDelayTime::create(v63); v29 = sub_10039EB60(v25, v24, 0, v26, v27, v28); cocos2d::CCNode::runAction(v13, v29); v30 = cocos2d::CCDelayTime::create(v63 + 0.2); v34 = sub_10039EB60(v30, v22, 0, v31, v32, v33); cocos2d::CCNode::runAction(v13, v34); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v14 + 912LL))(v14, 0); if ( v17 ) (*(void (__fastcall **)(_DWORD *, _QWORD))(*(_QWORD *)v17 + 1024LL))(v17, 0); v35 = cocos2d::CCDelayTime::create(v63); v36 = cocos2d::CCFadeIn::create(0.30000001); v40 = sub_10039EB60(v35, v36, 0, v37, v38, v39); v41 = cocos2d::CCDelayTime::create(v63); v42 = cocos2d::CCFadeIn::create(0.30000001); v46 = sub_10039EB60(v41, v42, 0, v43, v44, v45); cocos2d::CCNode::runAction(v14, v40); if ( v17 ) cocos2d::CCNode::runAction(v17, v46); if ( v62 ) { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v62 + 912LL))(v62, 0); v47 = cocos2d::CCDelayTime::create(v63); v48 = cocos2d::CCFadeIn::create(0.30000001); v52 = sub_10039EB60(v47, v48, 0, v49, v50, v51); cocos2d::CCNode::runAction(v62, v52); } LABEL_40: if ( (*(_BYTE *)&v61.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v61.__r_.__value_.__l.__data_); return; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source