// // GJPathRewardPopup::init from 0x1002edc60 to 0x1002ee0e3 (1155 bytes) // // 1 xrefs: // > sub_1002E98F0 @ 0x1002e9a88 // // 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:28:24 +0000 // __int64 __fastcall GJPathRewardPopup::init(__int64 a1, int a2) { __int64 result; // rax __int64 v3; // rcx __int64 v4; // rax __int64 v5; // rax void *v6; // r15 unsigned int v7; // eax int v8; // edx int v9; // ecx int v10; // r8d int v11; // r9d __int64 v12; // r14 void *v13; // rbx __int64 v14; // r12 __int64 v15; // r14 unsigned __int64 *v16; // rax _QWORD *v17; // r13 _QWORD *v18; // r14 unsigned __int64 *v19; // rax __int64 v20; // rax __int64 v21; // rax __int64 v22; // rax __int64 v23; // rax __int64 v24; // rax __int64 v25; // rax int v26; // eax int v27; // ecx int v28; // r8d int v29; // r9d __int64 v30; // rax __int64 v31; // rax unsigned __int64 v32; // [rsp+Ch] [rbp-54h] BYREF unsigned __int64 v33; // [rsp+14h] [rbp-4Ch] BYREF float v34[2]; // [rsp+1Ch] [rbp-44h] BYREF unsigned __int64 v35; // [rsp+24h] [rbp-3Ch] BYREF unsigned __int64 v36; // [rsp+2Ch] [rbp-34h] BYREF unsigned __int8 v37; // [rsp+37h] [rbp-29h] *(_DWORD *)(a1 + 660) = a2; FLAlertLayer::incrementForcePrio(a1); v34[0] = 1.0633824e37; result = cocos2d::CCLayerColor::initWithColor(a1, v34); if ( (_BYTE)result ) { *(_BYTE *)(a1 + 596) = 1; v3 = *(_QWORD *)a1; v37 = result; (*(void (__fastcall **)(__int64, __int64))(v3 + 1000))(a1, 1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1); v4 = cocos2d::CCDirector::sharedDirector(a1, 1); cocos2d::CCDirector::getWinSize(v34, v4); v5 = cocos2d::CCLayer::create(); *(_QWORD *)(a1 + 584) = v5; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v5); v6 = cocos2d::CCNode::create(); sub_100278260((float *)&v35, 100.0, 100.0); (*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v6 + 320LL))(v6, &v35); v7 = (unsigned int)CCMenuItemSpriteExtra::create((__int64)v6, 0, a1, (__int64)GJPathRewardPopup::onClaim, 0); v12 = sub_1008735E0(v7, 0, v8, v9, v10, v11); *(_QWORD *)(a1 + 552) = v12; sub_100278250((float *)&v35, v34[0] * 0.5, 0.5 * v34[1]); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v12 + 184LL))(v12, &v35); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 552), 10); sub_100278250((float *)&v35, 0.0, 10.0); v13 = cocos2d::CCNode::create(); (*(void (__fastcall **)(void *, void *))(*(_QWORD *)v13 + 320LL))(v13, &unk_100BE2748); (*(void (__fastcall **)(void *, void *))(*(_QWORD *)v6 + 456LL))(v6, v13); sub_100278250((float *)&v33, 50.0, 50.0); (*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v13 + 184LL))(v13, &v33); v14 = cocos2d::CCLabelBMFont::create_3("Reward!", "goldFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v14 + 160LL))(v14, 0.64999998); (*(void (__fastcall **)(void *, __int64, __int64))(*(_QWORD *)v13 + 464LL))(v13, v14, 22); sub_100278250((float *)&v36, 0.0, 40.0); sub_100278350((double *)&v33, &v35, &v36); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v14 + 184LL))(v14, &v33); sub_100278250((float *)&v33, 0.0, -5.0); v15 = cocos2d::CCLabelBMFont::create_3("Reward!", "goldFont.fnt"); (*(void (__fastcall **)(__int64))(*(_QWORD *)v14 + 168LL))(v14); (*(void (__fastcall **)(__int64))(*(_QWORD *)v15 + 160LL))(v15); (*(void (__fastcall **)(void *, __int64, __int64))(*(_QWORD *)v13 + 464LL))(v13, v15, 21); v16 = (unsigned __int64 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v14 + 192LL))(v14); sub_100278350((double *)&v36, v16, &v33); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v15 + 184LL))(v15, &v36); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v15 + 1072LL))(v15, &unk_100A07B10); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v15 + 1024LL))(v15, 50); v17 = GJChestSprite::create(6); (*(void (__fastcall **)(void *, _QWORD *, __int64))(*(_QWORD *)v13 + 464LL))(v13, v17, 22); (*(void (__fastcall **)(_QWORD *, float))(*v17 + 160LL))(v17, 0.60000002); sub_100278250((float *)&v32, 0.0, -6.0); sub_100278350((double *)&v36, &v35, &v32); (*(void (__fastcall **)(_QWORD *, unsigned __int64 *))(*v17 + 184LL))(v17, &v36); v18 = GJChestSprite::create(6); (*(void (__fastcall **)(void *, _QWORD *, __int64))(*(_QWORD *)v13 + 464LL))(v13, v18, 21); (*(void (__fastcall **)(_QWORD *))(*v17 + 168LL))(v17); (*(void (__fastcall **)(_QWORD *))(*v18 + 160LL))(v18); v19 = (unsigned __int64 *)(*(__int64 (__fastcall **)(_QWORD *))(*v17 + 192LL))(v17); sub_100278350((double *)&v36, v19, &v33); (*(void (__fastcall **)(_QWORD *, unsigned __int64 *))(*v18 + 184LL))(v18, &v36); v20 = (*(__int64 (__fastcall **)(_QWORD *))(*v18 + 488LL))(v18); v21 = sub_1007FEFE0(v20, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v21 + 960LL))(v21, &unk_100A07B10); v22 = (*(__int64 (__fastcall **)(_QWORD *))(*v18 + 488LL))(v18); v23 = sub_1007FEFE0(v22, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v23 + 912LL))(v23, 50); sub_100278250((float *)&v36, 0.0, 5.0); v24 = cocos2d::CCMoveBy::create(&v36, 1.0); LODWORD(v18) = cocos2d::CCEaseInOut::create(v24, 2.0); sub_100278250((float *)&v36, 0.0, -5.0); v25 = cocos2d::CCMoveBy::create(&v36, 1.0); v26 = cocos2d::CCEaseInOut::create(v25, 2.0); v30 = sub_10039EB60((_DWORD)v18, v26, 0, v27, v28, v29); v31 = cocos2d::CCRepeatForever::create(v30); cocos2d::CCNode::runAction((__int64)v13, v31); return v37; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source