// // sub_10039E030 from 0x10039e030 to 0x10039e441 (1041 bytes) // // 0 xrefs: // // 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:29:19 +0000 // __int64 __fastcall sub_10039E030(__int64 a1, __int64 a2) { __int64 v3; // rax __int64 v4; // rbx char *v5; // rbx __int64 v6; // rbx double v7; // xmm0_8 char *v8; // rbx __int64 v9; // r15 __int64 v10; // r13 __int64 v11; // rax const char *CString; // rax __int64 v13; // rax __int64 v14; // r13 __int64 v15; // rax const char *v16; // rax __int64 v17; // rax __int64 v18; // r13 __int64 v19; // rax const char *v20; // rax __int64 v21; // rax __int64 v22; // r13 __int64 v23; // rax const char *v24; // rax __int64 v25; // rax _QWORD *v26; // rax __int64 v27; // rax __int64 v28; // rax int v29; // eax int v30; // r14d int v31; // eax int v32; // ecx int v33; // r8d int v34; // r9d __int64 v35; // rax int v36; // r14d int v37; // eax int v38; // ecx int v39; // r8d int v40; // r9d __int64 v41; // rax char v43; // [rsp+0h] [rbp-70h] char v44; // [rsp+0h] [rbp-70h] char v45; // [rsp+0h] [rbp-70h] char v46; // [rsp+0h] [rbp-70h] __int64 v47; // [rsp+4h] [rbp-6Ch] BYREF __int64 v48; // [rsp+Ch] [rbp-64h] BYREF __int64 v49; // [rsp+14h] [rbp-5Ch] BYREF __int64 v50; // [rsp+1Ch] [rbp-54h] BYREF float v51[2]; // [rsp+24h] [rbp-4Ch] BYREF __int64 v52; // [rsp+2Ch] [rbp-44h] BYREF float v53[2]; // [rsp+34h] [rbp-3Ch] BYREF float v54; // [rsp+3Ch] [rbp-34h] __int64 v55; // [rsp+40h] [rbp-30h] BYREF v3 = cocos2d::CCDirector::sharedDirector(a1, a2); cocos2d::CCDirector::getWinSize(v51, v3); sub_100278250((float *)&v50, v51[0] * 0.5, (float)(v51[1] * 0.5) + 50.0); v4 = cocos2d::CCParticleSystemQuad::create("coinPickupEffect.plist", 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 1584LL))(v4, 1); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v4, 1); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v4 + 184LL))(v4, &v50); v5 = CCCircleWave::create(0, 0, 25.0, 5.0, 0.30000001); v5[342] = 0; *((_WORD *)v5 + 170) = -14081; (*(void (__fastcall **)(char *, __int64 *))(*(_QWORD *)v5 + 184LL))(v5, &v50); (*(void (__fastcall **)(__int64, char *, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, v5, 0); v6 = CCCircleWave::create_1(0, 5.0, 60.0, 0.30000001); *(_BYTE *)(v6 + 342) = 0; *(_WORD *)(v6 + 340) = -1; (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v6 + 184LL))(v6, &v50); v7 = (*(double (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, v6, 0); *(_QWORD *)(v6 + 352) = 0x400000001LL; v8 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"secretCoin_01_001.png", v7); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v8, 2); (*(void (__fastcall **)(char *, __int64 *))(*(_QWORD *)v8 + 184LL))(v8, &v50); v9 = sub_1007FE900(v8); v10 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v11 = sub_10088E820("%s_01_001.png", v43); CString = (const char *)cocos2d::CCString::getCString(v11); v13 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v10, CString); sub_1007FEBF0(v9, v13); v14 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v15 = sub_10088E820("%s_01_002.png", v44); v16 = (const char *)cocos2d::CCString::getCString(v15); v17 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v14, v16); sub_1007FEBF0(v9, v17); v18 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v19 = sub_10088E820("%s_01_003.png", v45); v20 = (const char *)cocos2d::CCString::getCString(v19); v21 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v18, v20); sub_1007FEBF0(v9, v21); v22 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v23 = sub_10088E820("%s_01_004.png", v46); v24 = (const char *)cocos2d::CCString::getCString(v23); v25 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v22, v24); sub_1007FEBF0(v9, v25); v26 = cocos2d::CCAnimation::createWithSpriteFrames(v9, 0.050000001); v27 = cocos2d::CCAnimate::create(v26); v28 = cocos2d::CCRepeatForever::create(v27); cocos2d::CCNode::runAction((__int64)v8, v28); sub_1002782D0(&v55, &v50); v54 = *(float *)&v50; v29 = rand(); sub_100278250( v53, (float)((float)((float)((float)((float)v29 * 4.6566129e-10) + (float)((float)v29 * 4.6566129e-10)) + -1.0) * 50.0) + v54, *((float *)&v55 + 1) + -60.0); sub_1002782A0(&v47); sub_1002782A0(&v48); sub_1002782A0(&v49); sub_100278250((float *)&v52, *(float *)&v55, *((float *)&v55 + 1) + 90.0); sub_100278300(&v48, &v52); sub_100278250((float *)&v52, v53[0], *((float *)&v55 + 1) + 180.0); sub_100278300(&v49, &v52); sub_100278250((float *)&v52, v53[0], v53[1] + -20.0); sub_100278300(&v47, &v52); v30 = cocos2d::CCBezierTo::create(&v47, 0.75); v31 = cocos2d::CCCallFunc::create(v8, 537, 0); v35 = sub_10039EB60(v30, v31, 0, v32, v33, v34); cocos2d::CCNode::runAction((__int64)v8, v35); v36 = cocos2d::CCDelayTime::create(0.5); v37 = cocos2d::CCFadeOut::create(0.30000001); v41 = sub_10039EB60(v36, v37, 0, v38, v39, v40); return cocos2d::CCNode::runAction((__int64)v8, v41); }
GD Web Decomp Icon

GD Web Decomp

Raw Source