// // GameSettingsLayer::create from 0x1402c2640 to 0x1402c291c (732 bytes) // // 4 xrefs: // > EditorPauseLayer::onOptions @ 0x1401822d0 // > OptionsLayer::onOptions @ 0x1404cbc38 // > PauseLayer::onSideButtonPressed @ 0x1404d95a2 // > @ 0x14091db88 // // 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:29:20 +0000 // // Hidden C++ exception states: #wind=4 unsigned __int64 *__fastcall GameSettingsLayer::create(unsigned __int64 a1, unsigned int a2) { unsigned __int64 *v4; // rdi _QWORD *v5; // rax int v6; // r9d __int64 v7; // rax unsigned __int64 v8; // r9 char *v10; // [rsp+78h] [rbp+20h] BYREF v4 = (unsigned __int64 *)operator new(0x4A8u); memset(v4, 0, 0x4A8u); sub_14019CC00((__int64)v4); *v4 = (unsigned __int64)&GameSettingsLayer::`vftable'; v4[40] = (unsigned __int64)&GameSettingsLayer::`vftable'; v4[41] = (unsigned __int64)&GameSettingsLayer::`vftable'; v4[42] = (unsigned __int64)&GameSettingsLayer::`vftable'; v4[43] = (unsigned __int64)&GameSettingsLayer::`vftable'; v4[44] = (unsigned __int64)&GameSettingsLayer::`vftable'; v4[51] = (unsigned __int64)&GameSettingsLayer::`vftable'; v4[54] = (unsigned __int64)&GameSettingsLayer::`vftable'; v4[68] = (unsigned __int64)&GameSettingsLayer::`vftable'; v4[83] = (unsigned __int64)&GameSettingsLayer::`vftable'; v4[84] = (unsigned __int64)&GameSettingsLayer::`vftable'; v4[134] = (unsigned __int64)&GameSettingsLayer::`vftable'; v4[135] = 0; v10 = (char *)(v4 + 136); *((_DWORD *)v4 + 272) = 0; v4[137] = 0; v4[138] = 0; v5 = operator new(0x20u); *v5 = v5; v5[1] = v5; v4[137] = (unsigned __int64)v5; v4[139] = 0; v4[140] = 0; v4[141] = 0; v4[142] = 7; v4[143] = 8; *((_DWORD *)v4 + 272) = 1065353216; sub_14003F200((__int64)(v4 + 139), 0x10u, v4[137]); v4[144] = 0; *((_DWORD *)v4 + 290) = 0; v4[146] = 0; v4[147] = 0; *((_WORD *)v4 + 592) = 0; if ( (unsigned __int8)SetupTriggerPopup::init((_DWORD)v4, 0, 0, v6, 1133248512, 7, 0) ) { v4[135] = a1; *((_BYTE *)v4 + 744) = 1; (*(void (__fastcall **)(unsigned __int64 *))(*v4 + 1096))(v4); qmemcpy(&v10, "PWi", 3); v7 = (*(__int64 (__fastcall **)(unsigned __int64, __int64))(*(_QWORD *)v4[73] + 472LL))(v4[73], 3); if ( v7 ) (**(void (__fastcall ***)(__int64, char **))(v7 + 320))(v7 + 320, &v10); *((_BYTE *)v4 + 596) = 1; TabbedPopupLayer::addCloseButton(v4); GameSettingsLayer::setupTabs(v4); GameSettingsLayer::buildTabContent(v4); GameSettingsLayer::addSpecialContent(v4); (*(void (__fastcall **)(unsigned __int64 *))(*v4 + 1136))(v4); *((_BYTE *)v4 + 744) = 0; if ( dword_1408FE478 >= 0 ) { v8 = v4[125]; if ( dword_1408FE478 < (int)((__int64)(v4[126] - v8) / 88) ) { a2 = dword_1408FE478; *(_DWORD *)(88LL * dword_1408FE478 + v8 + 68) = dword_14090BFC4; } } (*(void (__fastcall **)(unsigned __int64 *, _QWORD))(*v4 + 1200))(v4, a2); cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4); return v4; } else { (*(void (__fastcall **)(unsigned __int64 *, __int64))(*v4 + 8))(v4, 1); return nullptr; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source