// // CurrencySprite::init from 0x10088d000 to 0x10088d8b1 (2225 bytes) // // 1 xrefs: // > CurrencySprite::create @ 0x10088af89 // // 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:37:02 +0000 // __int64 __fastcall CurrencySprite::init(__int64 a1, unsigned int a2, unsigned __int8 a3) { __int64 v4; // rbx __int64 v6; // xmm0_8 std::string::pointer data; // rsi unsigned int v8; // r12d std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v9; // al std::string::pointer v10; // rdi char *v11; // rax __int64 v12; // r15 float v13; // xmm0_4 double v14; // xmm1_8 double v15; // xmm0_8 char *v16; // r15 int v17; // eax _OWORD *v18; // rax _DWORD *v19; // rsi int v20; // eax int v21; // eax double v22; // xmm0_8 char *v23; // rax __int64 v24; // r13 int v25; // eax _OWORD *v26; // rax _DWORD *v27; // rax std::string::pointer v28; // rdi char *v29; // r15 _OWORD *v30; // rax _OWORD *v31; // rax float v33; // [rsp+4h] [rbp-8Ch] double v34; // [rsp+8h] [rbp-88h] BYREF std::string v35; // [rsp+10h] [rbp-80h] BYREF std::string v36; // [rsp+30h] [rbp-60h] BYREF float v37[3]; // [rsp+50h] [rbp-40h] __int16 v38; // [rsp+5Ch] [rbp-34h] BYREF char v39; // [rsp+5Eh] [rbp-32h] __int16 v40; // [rsp+60h] [rbp-30h] BYREF char v41; // [rsp+62h] [rbp-2Eh] __int16 v42; // [rsp+64h] [rbp-2Ch] BYREF char v43; // [rsp+66h] [rbp-2Ah] v4 = a2; memset(&v35, 0, sizeof(v35)); memset(&v36, 0, sizeof(v36)); v39 = -1; v38 = -1; v41 = -1; v40 = -1; v43 = -1; v42 = -1; switch ( a2 ) { case 2u: std::string::assign(&v35, "GJ_bigStar_noShadow_001.png"); std::string::assign(&v36, "GJ_bigStar_glow_001.png"); v39 = 0; v38 = -26881; v41 = 0; v40 = -26881; v43 = 0; v42 = -14081; goto LABEL_21; case 3u: std::string::assign(&v35, "GJ_bigDiamond_noShadow_001.png"); std::string::assign(&v36, "GJ_bigDiamond_glow_001.png"); v38 = (int)(float)((float)((float)((float)rand() * 4.6566129e-10) * 125.0) + 130.0) | 0xFF00; v39 = -1; v40 = (int)(float)((float)((float)((float)rand() * 4.6566129e-10) * 125.0) + 130.0) | 0xFF00; v41 = -1; v42 = (int)(float)((float)((float)((float)rand() * 4.6566129e-10) * 175.0) + 80.0) | 0xFF00; v43 = -1; goto LABEL_21; case 4u: std::string::assign(&v35, "fireShardBig_001.png"); std::string::assign(&v36, "shard_glow_001.png"); v39 = 0; v38 = -26881; v41 = 0; v40 = -1; goto LABEL_18; case 5u: std::string::assign(&v35, "iceShardBig_001.png"); std::string::assign(&v36, "shard_glow_001.png"); v39 = -1; v38 = -56; v41 = -1; v40 = -256; v43 = -1; v42 = -27136; goto LABEL_21; case 6u: std::string::assign(&v35, "poisonShardBig_001.png"); std::string::assign(&v36, "shard_glow_001.png"); v39 = 0; v38 = -106; v41 = 0; v40 = -106; v43 = 0; v42 = -156; goto LABEL_21; case 7u: std::string::assign(&v35, "shadowShardBig_001.png"); std::string::assign(&v36, "shard_glow_001.png"); v39 = -1; v38 = 255; v41 = -1; v40 = 100; v43 = -1; v42 = 255; goto LABEL_21; case 8u: std::string::assign(&v35, "lavaShardBig_001.png"); std::string::assign(&v36, "shard_glow_001.png"); v39 = 0; v38 = -26881; v41 = 0; v40 = 13055; LABEL_18: v43 = 0; v42 = 25855; goto LABEL_21; case 9u: std::string::assign(&v35, "GJ_bigKey_001.png"); std::string::assign(&v36, "GJ_bigKey_glow_001.png"); v39 = -1; v38 = -1; v41 = -1; v40 = -1; v43 = -1; v42 = -1; v6 = 1069547520; v37[0] = 1.5; if ( (*(_BYTE *)&v35.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_13; goto LABEL_22; case 0xAu: std::string::assign(&v35, "shard0201ShardBig_001.png"); std::string::assign(&v36, "shard2_glow_001.png"); v39 = 0; v38 = -26881; v41 = 0; v40 = -14081; v43 = 0; v42 = -26881; goto LABEL_21; case 0xBu: std::string::assign(&v35, "shard0202ShardBig_001.png"); std::string::assign(&v36, "shard2_glow_001.png"); v39 = 0; v38 = 255; v41 = 0; v40 = 13055; v43 = 0; v42 = 255; goto LABEL_21; case 0xCu: std::string::assign(&v35, "shard0203ShardBig_001.png"); std::string::assign(&v36, "shard2_glow_001.png"); v39 = -1; v38 = -1; v41 = -1; v40 = -1; v43 = -1; v42 = -1; goto LABEL_21; case 0xDu: std::string::assign(&v35, "shard0204ShardBig_001.png"); std::string::assign(&v36, "shard2_glow_001.png"); v39 = 0; v38 = -1; v41 = 50; v40 = -1; v43 = 0; v42 = -1; goto LABEL_21; case 0xEu: std::string::assign(&v35, "shard0205ShardBig_001.png"); std::string::assign(&v36, "shard2_glow_001.png"); v39 = 50; v38 = -26881; v41 = -81; v40 = 255; v43 = -1; v42 = 175; goto LABEL_21; case 0xFu: std::string::assign(&v35, "GJ_bigMoon_noShadow_001.png"); std::string::assign(&v36, "GJ_bigMoon_glow_001.png"); v39 = -1; v38 = -27136; v41 = -1; v40 = -27136; v43 = -1; v42 = -14336; goto LABEL_21; case 0x10u: std::string::assign(&v35, "GJ_bigGoldKey_001.png"); std::string::assign(&v36, "GJ_bigGoldKey_glow_001.png"); v39 = 50; v38 = -26881; v41 = 50; v40 = -26881; v43 = 50; v42 = -14081; v6 = 1069547520; v37[0] = 1.5; if ( (*(_BYTE *)&v35.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_22; goto LABEL_13; default: std::string::assign(&v35, "currencyOrb_001.png"); LABEL_21: v6 = 1065353216; v37[0] = 1.0; if ( (*(_BYTE *)&v35.__r_.__value_.__s.0 & 1) != 0 ) LABEL_22: data = v35.__r_.__value_.__l.__data_; else LABEL_13: data = v35.__r_.__value_.__s.__data_; v8 = cocos2d::CCSprite::initWithSpriteFrameName(a1, (__int64)data, *(double *)&v6); v9 = v36.__r_.__value_.__s.0; if ( !(_BYTE)v8 ) goto LABEL_34; if ( (*(_BYTE *)&v36.__r_.__value_.__s.0 & 1) != 0 ) { if ( a3 | (v36.__r_.__value_.__l.__size_ == 0) ) goto LABEL_33; v10 = v36.__r_.__value_.__l.__data_; } else { if ( a3 | (*(_BYTE *)&v36.__r_.__value_.__s.0 == 0) ) goto LABEL_33; v10 = v36.__r_.__value_.__s.__data_; } v11 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v10, *(double *)&v6); *(_QWORD *)(a1 + 664) = v11; (*(void (__fastcall **)(char *, float))(*(_QWORD *)v11 + 160LL))(v11, flt_100A12E08[(_DWORD)v4 == 3]); v12 = *(_QWORD *)(a1 + 664); v13 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v12 + 168LL))(v12); *(_QWORD *)&v14 = LODWORD(v37[0]); *(float *)&v14 = v37[0] * v13; (*(void (__fastcall **)(__int64, double))(*(_QWORD *)v12 + 160LL))(v12, v14); cocos2d::CCObject::retain(*(_QWORD *)(a1 + 664)); v15 = (*(double (__fastcall **)(_QWORD, __int16 *))(**(_QWORD **)(a1 + 664) + 960LL))(*(_QWORD *)(a1 + 664), &v38); v16 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"shineBurst_001.png", v15); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 664) + 456LL))(*(_QWORD *)(a1 + 664), v16); cocos2d::CCNode::convertToNodeSpace(&v34, *(_QWORD *)(a1 + 664), (unsigned int *)&unk_100BE6C08); (*(void (__fastcall **)(char *, double *))(*(_QWORD *)v16 + 184LL))(v16, &v34); *(_QWORD *)v37 = v4; *(float *)&v15 = (float)rand() * 4.6566129e-10; v17 = rand(); v33 = flt_100A05F68[*(float *)&v15 > 0.5]; v18 = cocos2d::CCRotateBy::create_1( (__m128)0x3F800000u, (float)((float)((float)((float)((float)v17 * 4.6566129e-10) * 0.5) + 0.5) * 180.0) * v33); v19 = cocos2d::CCRepeatForever::create((__int64)v18); cocos2d::CCNode::runAction((__int64)v16, (__int64)v19); v20 = rand(); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v16 + 160LL))(v16, (float)((float)v20 * 4.6566129e-10) + 1.8); v21 = rand(); (*(void (__fastcall **)(char *, _QWORD))(*(_QWORD *)v16 + 912LL))( v16, (unsigned __int8)(int)(float)((float)((float)((float)((float)v21 * 4.6566129e-10) * 0.40000001) + 0.60000002) * 255.0)); v22 = (*(double (__fastcall **)(char *, __int16 *))(*(_QWORD *)v16 + 960LL))(v16, &v40); v23 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"shineBurst_001.png", v22); *(float *)&v4 = v37[0]; v24 = (__int64)v23; (*(void (__fastcall **)(char *, char *))(*(_QWORD *)v16 + 456LL))(v16, v23); cocos2d::CCNode::convertToNodeSpace(&v34, (__int64)v16, (unsigned int *)&unk_100BE6C08); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v24 + 184LL))(v24, &v34); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v24 + 160LL))(v24, 0.80000001); (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v24 + 960LL))(v24, &v42); v25 = rand(); v26 = cocos2d::CCRotateBy::create_1( (__m128)0x3F800000u, (float)((float)((float)((float)((float)v25 * 4.6566129e-10) * 0.5) + 0.5) * -180.0) * v33); v27 = cocos2d::CCRepeatForever::create((__int64)v26); cocos2d::CCNode::runAction(v24, (__int64)v27); if ( (*(_BYTE *)&v36.__r_.__value_.__s.0 & 1) != 0 ) v28 = v36.__r_.__value_.__l.__data_; else v28 = v36.__r_.__value_.__s.__data_; v29 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v28, COERCE_DOUBLE(1065353216)); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v29, 10); cocos2d::CCNode::convertToNodeSpace(&v34, a1, (unsigned int *)&unk_100BE6C08); (*(void (__fastcall **)(char *, double *))(*(_QWORD *)v29 + 184LL))(v29, &v34); v30 = cocos2d::CCFadeOut::create((__m128)0x3F000000u); v31 = cocos2d::CCEaseIn::create((__int64)v30, 1.3); cocos2d::CCNode::runAction((__int64)v29, (__int64)v31); v9 = v36.__r_.__value_.__s.0; LABEL_33: *(_DWORD *)(a1 + 648) = v4; LABEL_34: if ( (*(_BYTE *)&v9 & 1) != 0 ) operator delete(v36.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v35.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v35.__r_.__value_.__l.__data_); return v8; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source