// // UIPOptionsLayer::init from 0x1403ab900 to 0x1403abf18 (1560 bytes) // // 4 xrefs: // > UIPOptionsLayer::create @ 0x1403ab8bd // > UIPOptionsLayer::create @ 0x1403ab8ae // > @ 0x14077dc10 // > @ 0x140923a50 // // 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:31:20 +0000 // // Hidden C++ exception states: #wind=5 char __fastcall UIPOptionsLayer::init(__int64 a1, __int64 a2, __int64 a3, int a4) { char result; // al __int64 v6; // rdx __int64 v7; // rcx __int64 v8; // rax __int64 v9; // rcx __int64 v10; // rax cocos2d::CCObject *v11; // rbx cocos2d::CCObject *v12; // rsi __int64 v13; // rdi __int64 v14; // rbx __int64 v15; // rax __int64 v16; // rax cocos2d::CCObject *v17; // rbx cocos2d::CCObject *v18; // rdi __int64 v19; // rax __int64 v20; // rbx __int64 v21; // rax __int64 v22; // rax __int64 v23; // rdx __int64 v24; // rcx __int64 v25; // rax float v26; // xmm6_4 __int64 v27; // rax struct cocos2d::CCSprite *v28; // rsi struct cocos2d::CCSprite *v29; // rdi __int64 v30; // rcx cocos2d::CCArray *v31; // rbx __int64 v32; // rdx __int64 v33; // rcx cocos2d::CCDirector *v34; // rax float v35; // xmm0_4 __int64 v36; // rax __int64 v37; // rax _BYTE v38[8]; // [rsp+88h] [rbp-39h] BYREF __int128 *v39; // [rsp+90h] [rbp-31h] BYREF _BYTE v40[8]; // [rsp+98h] [rbp-29h] BYREF __int128 v41; // [rsp+A0h] [rbp-21h] BYREF __int64 v42; // [rsp+B0h] [rbp-11h] __int64 v43; // [rsp+B8h] [rbp-9h] void *v44; // [rsp+130h] [rbp+6Fh] BYREF float v45; // [rsp+138h] [rbp+77h] BYREF float v46; // [rsp+13Ch] [rbp+7Bh] float v47; // [rsp+140h] [rbp+7Fh] BYREF float v48; // [rsp+144h] [rbp+83h] result = SetupTriggerPopup::init(a1, 0, 0, a4, 1133248512, 1, 0); if ( result ) { *(_BYTE *)(a1 + 744) = 1; (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1096LL))(a1); LOWORD(v44) = 17459; BYTE2(v44) = -103; (**(void (__fastcall ***)(__int64, void **))(a1 + 408))(a1 + 408, &v44); LOBYTE(v6) = -1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(a1 + 408) + 40LL))(a1 + 408, v6); *(_BYTE *)(a1 + 596) = 1; v8 = cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(v8, &v45); v10 = cocos2d::CCMenu::create(v9); *(_QWORD *)(a1 + 552) = v10; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v10, 10); v44 = operator new(0x2C8u); v11 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v44); if ( v11 ) { if ( ButtonSprite::init_1( (__int64)v11, (__int64)"OK", 40, 0, 1061997773, 1, "goldFont.fnt", (__int64)"GJ_button_01.png", 1106247680) ) { cocos2d::CCObject::autorelease(v11); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v11 + 8LL))(v11, 1); LODWORD(v11) = 0; } } v12 = CCMenuItemSpriteExtra::create((int)v11, 0, a1, (__int64)sub_14009D628); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v12); v13 = *(_QWORD *)v12; v14 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v44, (float)(v45 * 0.5) - 40.0, v46 - 30.0); cocos2d::CCNode::convertToNodeSpace(v14, &v39, v15); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v13 + 184))(v12, v16); v44 = operator new(0x2C8u); v17 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v44); if ( v17 ) { if ( ButtonSprite::init_1( (__int64)v17, (__int64)"Reset", 40, 0, 1061997773, 1, "goldFont.fnt", (__int64)"GJ_button_05.png", 1106247680) ) { cocos2d::CCObject::autorelease(v17); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v17 + 8LL))(v17, 1); LODWORD(v17) = 0; } } v18 = CCMenuItemSpriteExtra::create((int)v17, 0, a1, (__int64)UIPOptionsLayer::onReset); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v18); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v39, 80.0, 0.0); v20 = v19; v21 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v12 + 200LL))(v12); cocos2d::CCPoint::operator+(v21, &v44, v20); (*(void (__fastcall **)(cocos2d::CCObject *, void **))(*(_QWORD *)v18 + 184LL))(v18, &v44); sub_14060B340(a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, v45 * 0.5, v46 - 70.0); v39 = &v41; v42 = 8; v43 = 15; v41 = 0x3A7974696361704FuLL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, 0.0, -75.0); cocos2d::CCPoint::operator+(v38, &v44, v22); SetupTriggerPopup::createValueControlAdvanced( a1, -29, (unsigned int)&v41, (unsigned int)&v44, 1061997773, 0, 1, 4, 0, 0, 1065353216, 0, 0, 1, 2, 0); v25 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v39 = (__int128 *)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v39); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v25 = qword_14090BFD0; } v26 = *(float *)(v25 + 1760) * 255.0; v27 = cocos2d::CCNode::create(v24, v23); *(_QWORD *)(a1 + 1008) = v27; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v27 + 312LL))(v27, &unk_14090ACA8); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 1008), 9); v28 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkpointBtn_001.png"); (*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v28 + 40) + 40LL))( (__int64)v28 + 320, (unsigned __int8)(int)v26); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *))(**(_QWORD **)(a1 + 1008) + 464LL))( *(_QWORD *)(a1 + 1008), v28); v29 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_removeCheckBtn_001.png"); (*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v29 + 40) + 40LL))( (__int64)v29 + 320, (unsigned __int8)(int)v26); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *))(**(_QWORD **)(a1 + 1008) + 464LL))( *(_QWORD *)(a1 + 1008), v29); v31 = (cocos2d::CCArray *)cocos2d::CCArray::create(v30); cocos2d::CCArray::addObject(v31, v28); cocos2d::CCArray::addObject(v31, v29); v32 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v44 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v44); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v32 = qword_14090BFD0; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v47, (const struct cocos2d::CCPoint *)(v32 + 1752)); if ( v47 == 0.0 && v48 == 0.0 ) { v34 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v33); v35 = cocos2d::CCDirector::getScreenBottom(v34) + 40.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v44, v45 * 0.5, v35); cocos2d::CCPoint::operator=(&v47, v36); } (*(void (__fastcall **)(_QWORD, float *))(**(_QWORD **)(a1 + 1008) + 184LL))(*(_QWORD *)(a1 + 1008), &v47); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v44, (const struct cocos2d::CCPoint *)&unk_14090AC90); GameToolbox::alignItemsHorisontally((__int64)v31, 10.0, v37, 0); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1136LL))(a1); *(_BYTE *)(a1 + 744) = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source