// // SetupCoinLayer::init from 0x140605de0 to 0x1406061af (975 bytes) // // 2 xrefs: // > EditorUI::editObject @ 0x1401bb797 // > @ 0x14092f978 // // 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 11:35:12 +0000 // // Hidden C++ exception states: #wind=3 char __fastcall SetupCoinLayer::init(_BYTE *a1, __int64 a2, int a3, int a4) { char result; // al __int64 v7; // rcx __int64 v8; // rax __int64 v9; // rax __int64 v10; // rdx void *v11; // rcx __int64 v12; // rax void **v13; // [rsp+88h] [rbp-80h] BYREF float v14[2]; // [rsp+90h] [rbp-78h] BYREF _BYTE v15[8]; // [rsp+98h] [rbp-70h] BYREF void **v16; // [rsp+A0h] [rbp-68h] BYREF __int128 v17; // [rsp+A8h] [rbp-60h] BYREF __int64 v18; // [rsp+B8h] [rbp-50h] __int64 v19; // [rsp+C0h] [rbp-48h] _BYTE v20[8]; // [rsp+C8h] [rbp-40h] BYREF void *Block[2]; // [rsp+D0h] [rbp-38h] BYREF __m128i si128; // [rsp+E0h] [rbp-28h] result = SetupTriggerPopup::init((_DWORD)a1, a2, a3, a4, 1130102784, 1, 0); if ( result ) { a1[744] = 1; (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1096LL))(a1); Block[1] = (void *)28265; si128.m128i_i64[0] = 10; si128.m128i_i64[1] = 15; Block[0] = (void *)0x6F43207075746553LL; SetupTriggerPopup::addTitle(a1, Block); *(_OWORD *)Block = 0; si128.m128i_i64[0] = 2; si128.m128i_i64[1] = 15; strcpy((char *)Block, "OK"); SetupTriggerPopup::addCloseButton(a1, Block); v13 = Block; *(_OWORD *)Block = 0; si128 = 0u; Block[0] = sub_14003D460(0x40u); si128.m128i_i64[0] = 49; si128.m128i_i64[1] = 63; strcpy((char *)Block[0], "Target ID will be spawn triggered when collected."); v17 = 0; v18 = 4; v19 = 15; strcpy((char *)&v17, "Help"); SetupTriggerPopup::addHelpButton(a1, &v17, Block); v8 = cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(v8, v14); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, v14[0] * 0.5, v14[1] * 0.5); Block[1] = (void *)14916; si128 = _mm_load_si128((const __m128i *)&xmmword_1408365B0); Block[0] = (void *)0x4920746567726154LL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v16, 0.0, 30.0); cocos2d::CCPoint::operator+(v15, &v13, v9); v10 = (__int64)(a1 + 544); if ( !a1 ) v10 = 0; IDNameInput::create( (__int64)a1, v10, 1, 51, (__int64)Block, (const struct cocos2d::CCPoint *)&v13, 1061997773, 6, 0, 0, 0); if ( si128.m128i_i64[1] > 0xFuLL ) { v11 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v11 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v11 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v11); } if ( a2 ) { if ( *(_DWORD *)(a2 + 1036) == 142 ) { v16 = Block; Block[1] = (void *)14916; si128.m128i_i64[0] = 10; si128.m128i_i64[1] = 15; Block[0] = (void *)0x4920657571696E55LL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, 0.0, -30.0); cocos2d::CCPoint::operator+(v15, &v13, v12); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 12, (unsigned int)Block, (unsigned int)&v13, 1061997773, 1, 2, 10, 1, 0, 1176255488, 0, 0, 0, 0, 0, v13); } } (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1136LL))(a1); a1[744] = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source