// // AppDelegate::setupGLView from 0x140097cc0 to 0x1400981ec (1324 bytes) // // 2 xrefs: // > @ 0x140719ff8 // > @ 0x140912d10 // // 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:26:03 +0000 // // Hidden C++ exception states: #wind=12 void __fastcall AppDelegate::setupGLView(__int64 a1) { __int64 v2; // rax __int64 v3; // rcx __int64 v4; // rsi __int64 (__fastcall *v5)(__int64); // rbx struct cocos2d::CCKeyboardActionManager *v6; // rdi cocos2d::CCKeyboardDispatcher *v7; // rax __int64 v8; // rax __int64 v9; // r8 __int64 v10; // rcx __int64 v11; // rcx __int64 v12; // rdi __int64 v13; // rbx unsigned __int8 GameVariable; // bl unsigned __int8 v15; // al __int64 v16; // rcx __int64 v17; // rbx void *v18; // r8 __int64 v19; // rbx __int64 v20; // rax void *v21; // rcx cocos2d::CCDirector *v22; // rax __int64 v23; // rdi unsigned int v24; // edi __int64 v25; // rax __int64 v26; // rbx __int64 v27; // rcx __int64 v28; // rax void *v29; // [rsp+30h] [rbp-29h] BYREF float v30[2]; // [rsp+38h] [rbp-21h] BYREF _BYTE v31[8]; // [rsp+40h] [rbp-19h] BYREF void *v32; // [rsp+48h] [rbp-11h] _BYTE v33[8]; // [rsp+50h] [rbp-9h] BYREF _BYTE v34[16]; // [rsp+58h] [rbp-1h] BYREF void *Block[2]; // [rsp+68h] [rbp+Fh] BYREF __int64 v36; // [rsp+78h] [rbp+1Fh] unsigned __int64 v37; // [rsp+80h] [rbp+27h] void *v38[2]; // [rsp+88h] [rbp+2Fh] BYREF __int64 v39; // [rsp+98h] [rbp+3Fh] unsigned __int64 v40; // [rsp+A0h] [rbp+47h] if ( !*(_BYTE *)(a1 + 224) ) { cocos2d::CCSize::CCSize((cocos2d::CCSize *)v31, 480.0, 320.0); *(_BYTE *)(a1 + 224) = 1; v2 = cocos2d::CCFileUtils::sharedFileUtils(); (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v2 + 112LL))(v2, "Resources"); v4 = cocos2d::CCDirector::sharedDirector(v3); v5 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 176LL); v6 = (struct cocos2d::CCKeyboardActionManager *)GJKeybindManager::sharedState(); v7 = (cocos2d::CCKeyboardDispatcher *)v5(v4); cocos2d::CCKeyboardDispatcher::setActionManager(v7, v6); if ( !qword_14090BFD0 ) { v29 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v29); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); } LocalLevelManager::sharedState(); v8 = sub_14008AFE0(); v10 = qword_14090BFD0; if ( *(_BYTE *)(v8 + 320) ) { if ( !qword_14090BFD0 ) { v29 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v29); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v10 = qword_14090BFD0; } LOBYTE(v9) = 1; GameManager::setGameVariable(v10, "0025", v9); v10 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v29 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v29); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v10 = qword_14090BFD0; } if ( *(int *)(v10 + 1088) <= 0 ) *(_DWORD *)(v10 + 1088) = 1; } if ( !v10 ) { v29 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v29); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v10 = qword_14090BFD0; } if ( (unsigned __int8)GameManager::getGameVariable(v10, "0025") ) { v19 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v29 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v29); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v19 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v29 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v29); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); } } GameManager::resolutionForKey(v11, v30, *(unsigned int *)(v19 + 1088)); v39 = 13; v40 = 15; strcpy((char *)v38, "Geometry Dash"); HIWORD(v38[1]) = 0; v20 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v34, 0.0, 0.0, v30[0], v30[1]); v17 = cocos2d::CCEGLView::createWithRect(v38, v20); if ( v40 > 0xF ) { v21 = v38[0]; if ( v40 + 1 >= 0x1000 ) { v21 = *((void **)v38[0] - 1); if ( (unsigned __int64)((char *)v38[0] - (char *)v21 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v21); } v39 = 0; v40 = 15; LOBYTE(v38[0]) = 0; } else { v36 = 13; v37 = 15; strcpy((char *)Block, "Geometry Dash"); HIWORD(Block[1]) = 0; v12 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v29 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v29); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v12 = qword_14090BFD0; } v13 = v12; if ( !v12 ) { v29 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v29); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v12 = qword_14090BFD0; } GameVariable = GameManager::getGameVariable(v13, "0175"); v15 = GameManager::getGameVariable(v12, "0170"); v17 = cocos2d::CCEGLView::createWithFullScreen(Block, v15, GameVariable); if ( v37 > 0xF ) { v18 = Block[0]; if ( v37 + 1 >= 0x1000 ) { v18 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v18 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v18); } v36 = 0; v37 = 15; LOBYTE(Block[0]) = 0; } v22 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v16); cocos2d::CCDirector::setOpenGLView(v22, (struct cocos2d::CCEGLView *)v17); v23 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v32 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v32); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v23 = qword_14090BFD0; } cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v29, (const struct cocos2d::CCSize *)(v17 + 216)); v24 = *(_DWORD *)(v23 + 1092); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v33, (const struct cocos2d::CCSize *)v31); v26 = v25; v28 = cocos2d::CCDirector::sharedDirector(v27); cocos2d::CCDirector::setupScreenScale(v28, v26, &v29, v24); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source