// // TutorialPopup::init from 0x1006a5cc0 to 0x1006a5ebd (509 bytes) // // 1 xrefs: // > sub_1006A5A70 @ 0x1006a5c4c // // 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:35:19 +0000 // char __fastcall TutorialPopup::init(__int64 a1, const std::string *a2) { char result; // al __int64 v3; // rax _QWORD *v4; // rax __int64 data; // r14 float *v6; // r14 double v7; // xmm0_8 char *v8; // rax void *v9; // rax int v10; // edx int v11; // ecx int v12; // r8d int v13; // r9d __int64 v14; // rax __int64 v15; // r15 unsigned __int64 *v16; // r12 unsigned __int64 v17; // [rsp+Ch] [rbp-44h] BYREF double v18; // [rsp+14h] [rbp-3Ch] BYREF __int64 v19; // [rsp+1Ch] [rbp-34h] BYREF char v20; // [rsp+27h] [rbp-29h] LODWORD(v19) = -1778384896; result = cocos2d::CCLayerColor::initWithColor(a1, (__int64)&v19); if ( result ) { v20 = result; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1000LL))(a1, 1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1); std::string::operator=((std::string *)(a1 + 664), a2); v3 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v19, v3); v4 = cocos2d::CCLayer::create(); *(_QWORD *)(a1 + 584) = v4; (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)a1 + 456LL))(a1, v4); if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 ) data = (__int64)a2->__r_.__value_.__l.__data_; else data = (__int64)a2->__r_.__value_.__r.__words + 1; v6 = (float *)cocos2d::CCSprite::create_1(data); sub_100278250((float *)&v18, *(float *)&v19 * 0.5, (float)(*((float *)&v19 + 1) * 0.5) + 30.0); (*(void (__fastcall **)(float *, double *))(*(_QWORD *)v6 + 184LL))(v6, &v18); v7 = (*(double (__fastcall **)(_QWORD, float *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v6, 1); v8 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"NextBtn_001.png", v7); v9 = CCMenuItemSpriteExtra::create((__int64)v8, 0, a1, (__int64)TutorialPopup::closeTutorial, 0); *(_QWORD *)(a1 + 712) = v9; v14 = sub_1008735E0((_DWORD)v9, 0, v10, v11, v12, v13); *(_QWORD *)(a1 + 552) = v14; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v14, 10); v15 = *(_QWORD *)(a1 + 552); v16 = (unsigned __int64 *)(*(__int64 (__fastcall **)(float *))(*(_QWORD *)v6 + 192LL))(v6); sub_100278250((float *)&v17, 0.0, -35.0 - (float)(0.5 * v6[109])); sub_100278350(&v18, v16, &v17); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v15 + 184LL))(v15, &v18); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 712) + 160LL))(*(_QWORD *)(a1 + 712), 0.80000001); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 712) + 344LL))(*(_QWORD *)(a1 + 712), 0); *(_DWORD *)(a1 + 640) = -1; return v20; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source