// // cocos2d::CCConfiguration::gatherGPUInfo from 0x1800bfd80 to 0x1800c07bc (2620 bytes) // // 3 xrefs: // > cocos2d::CCDirector::setOpenGLView @ 0x1800c30bd // > @ 0x18014cf68 // > @ 0x1801c3354 // // 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:22:25 +0000 // // Hidden C++ exception states: #wind=8 void __fastcall cocos2d::CCConfiguration::gatherGPUInfo(cocos2d::CCConfiguration *this) { char *String; // rax cocos2d::CCObject *v3; // rax void *v4; // rcx char *v5; // rcx char *v6; // rax __int64 v7; // rbx cocos2d::CCObject *v8; // rax char *v9; // rcx void *v10; // rcx char *v11; // rax __int64 v12; // rbx cocos2d::CCObject *v13; // rax char *v14; // rcx void *v15; // rcx int v16; // r14d cocos2d::CCObject *v17; // rax cocos2d::CCObject *v18; // rbx void *v19; // rcx int v20; // r14d cocos2d::CCObject *v21; // rax cocos2d::CCObject *v22; // rbx void *v23; // rcx char *v24; // rax bool v25; // bl const char *v26; // rcx char *v27; // rcx char v28; // r14 cocos2d::CCObject *v29; // rax cocos2d::CCObject *v30; // rbx void *v31; // rcx char v32; // r14 cocos2d::CCObject *v33; // rax cocos2d::CCObject *v34; // rbx void *v35; // rcx char *v36; // rdx bool v37; // bl const char *v38; // rcx char *v39; // rcx __int64 v40; // rbx cocos2d::CCObject *v41; // rax void *v42; // rcx bool v43; // bl const char *v44; // rdx const char *v45; // rcx __int64 v46; // rbx cocos2d::CCObject *v47; // rax bool v48; // bl const char *v49; // rdx const char *v50; // rcx __int64 v51; // rbx cocos2d::CCObject *v52; // rax void *Block[2]; // [rsp+38h] [rbp-21h] BYREF __m128i si128; // [rsp+48h] [rbp-11h] char *SubStr[2]; // [rsp+58h] [rbp-1h] BYREF __m128i v56; // [rsp+68h] [rbp+Fh] sub_180005A10(SubStr, "gl.vendor"); String = (char *)glGetString(0x1F00u); sub_180005A10(Block, String); v3 = cocos2d::CCString::create((__int64)Block); cocos2d::CCDictionary::setObject(*((_QWORD *)this + 11), v3, (__int64)SubStr); if ( si128.m128i_i64[1] > 0xFuLL ) { v4 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v4 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v4 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v4); } si128 = _mm_load_si128((const __m128i *)&xmmword_1800EC500); LOBYTE(Block[0]) = 0; if ( v56.m128i_i64[1] > 0xFuLL ) { v5 = SubStr[0]; if ( (unsigned __int64)(v56.m128i_i64[1] + 1) >= 0x1000 ) { v5 = *((char **)SubStr[0] - 1); if ( (unsigned __int64)(SubStr[0] - v5 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v5); } si128 = _mm_load_si128((const __m128i *)&xmmword_180106030); Block[0] = (void *)0x65646E65722E6C67LL; Block[1] = (void *)7497074; v6 = (char *)glGetString(0x1F01u); sub_180005A10(SubStr, v6); v7 = *((_QWORD *)this + 11); v8 = cocos2d::CCString::create((__int64)SubStr); cocos2d::CCDictionary::setObject(v7, v8, (__int64)Block); if ( v56.m128i_i64[1] > 0xFuLL ) { v9 = SubStr[0]; if ( (unsigned __int64)(v56.m128i_i64[1] + 1) >= 0x1000 ) { v9 = *((char **)SubStr[0] - 1); if ( (unsigned __int64)(SubStr[0] - v9 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v9); } v56 = _mm_load_si128((const __m128i *)&xmmword_1800EC500); LOBYTE(SubStr[0]) = 0; if ( si128.m128i_i64[1] > 0xFuLL ) { v10 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v10 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v10); } Block[1] = (void *)28271; si128 = _mm_load_si128((const __m128i *)&xmmword_1800F1940); Block[0] = (void *)0x69737265762E6C67LL; v11 = (char *)glGetString(0x1F02u); sub_180005A10(SubStr, v11); v12 = *((_QWORD *)this + 11); v13 = cocos2d::CCString::create((__int64)SubStr); cocos2d::CCDictionary::setObject(v12, v13, (__int64)Block); if ( v56.m128i_i64[1] > 0xFuLL ) { v14 = SubStr[0]; if ( (unsigned __int64)(v56.m128i_i64[1] + 1) >= 0x1000 ) { v14 = *((char **)SubStr[0] - 1); if ( (unsigned __int64)(SubStr[0] - v14 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v14); } v56 = _mm_load_si128((const __m128i *)&xmmword_1800EC500); LOBYTE(SubStr[0]) = 0; if ( si128.m128i_i64[1] > 0xFuLL ) { v15 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v15 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v15 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v15); } *((_QWORD *)this + 10) = glGetString(0x1F03u); glGetIntegerv(0xD33u, (GLint *)this + 14); *(_OWORD *)Block = 0; si128 = 0; Block[0] = (void *)sub_1800E4AC0(0x20u); si128 = _mm_load_si128((const __m128i *)&xmmword_180106BC0); strcpy((char *)Block[0], "gl.max_texture_size"); v16 = *((_DWORD *)this + 14); v17 = (cocos2d::CCObject *)sub_1800E4AC0(0x40u); v18 = v17; if ( v17 ) { cocos2d::CCObject::CCObject(v17); *(_QWORD *)v18 = &cocos2d::CCInteger::`vftable'; *((_DWORD *)v18 + 14) = v16; } else { v18 = nullptr; } cocos2d::CCObject::autorelease(v18); cocos2d::CCDictionary::setObject(*((_QWORD *)this + 11), v18, (__int64)Block); if ( si128.m128i_i64[1] > 0xFuLL ) { v19 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v19 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v19 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v19); } glGetIntegerv(0x8B4Du, (GLint *)this + 19); *(_OWORD *)Block = 0; si128 = 0; Block[0] = (void *)sub_1800E4AC0(0x20u); si128 = _mm_load_si128((const __m128i *)&xmmword_180106070); strcpy((char *)Block[0], "gl.max_texture_units"); v20 = *((_DWORD *)this + 19); v21 = (cocos2d::CCObject *)sub_1800E4AC0(0x40u); v22 = v21; if ( v21 ) { cocos2d::CCObject::CCObject(v21); *(_QWORD *)v22 = &cocos2d::CCInteger::`vftable'; *((_DWORD *)v22 + 14) = v20; } else { v22 = nullptr; } cocos2d::CCObject::autorelease(v22); cocos2d::CCDictionary::setObject(*((_QWORD *)this + 11), v22, (__int64)Block); if ( si128.m128i_i64[1] > 0xFuLL ) { v23 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v23 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v23 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v23); } *(_OWORD *)SubStr = 0; v56 = 0; v24 = (char *)sub_1800E4AC0(0x30u); SubStr[0] = v24; v56 = _mm_load_si128((const __m128i *)&xmmword_18010D9A0); strcpy(v24, "GL_IMG_texture_compression_pvrtc"); v25 = 0; v26 = *((const char **)this + 10); if ( v26 ) v25 = strstr(v26, v24) != nullptr; *((_BYTE *)this + 64) = v25; if ( v56.m128i_i64[1] > 0xFuLL ) { v27 = SubStr[0]; if ( (unsigned __int64)(v56.m128i_i64[1] + 1) >= 0x1000 ) { v27 = *((char **)SubStr[0] - 1); if ( (unsigned __int64)(SubStr[0] - v27 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v27); } *(_OWORD *)Block = 0; si128 = 0; Block[0] = (void *)sub_1800E4AC0(0x20u); si128 = _mm_load_si128((const __m128i *)&xmmword_18010D980); strcpy((char *)Block[0], "gl.supports_PVRTC"); v28 = *((_BYTE *)this + 64); v29 = (cocos2d::CCObject *)sub_1800E4AC0(0x40u); v30 = v29; if ( v29 ) { cocos2d::CCObject::CCObject(v29); *(_QWORD *)v30 = &cocos2d::CCBool::`vftable'; *((_BYTE *)v30 + 56) = v28; } else { v30 = nullptr; } if ( v30 ) cocos2d::CCObject::autorelease(v30); cocos2d::CCDictionary::setObject(*((_QWORD *)this + 11), v30, (__int64)Block); if ( si128.m128i_i64[1] > 0xFuLL ) { v31 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v31 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v31 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v31); } *((_BYTE *)this + 65) = 1; *(_OWORD *)Block = 0; si128 = 0; Block[0] = (void *)sub_1800E4AC0(0x20u); si128 = _mm_load_si128((const __m128i *)&xmmword_18010D970); strcpy((char *)Block[0], "gl.supports_NPOT"); v32 = *((_BYTE *)this + 65); v33 = (cocos2d::CCObject *)sub_1800E4AC0(0x40u); v34 = v33; if ( v33 ) { cocos2d::CCObject::CCObject(v33); *(_QWORD *)v34 = &cocos2d::CCBool::`vftable'; *((_BYTE *)v34 + 56) = v32; } else { v34 = nullptr; } if ( v34 ) cocos2d::CCObject::autorelease(v34); cocos2d::CCDictionary::setObject(*((_QWORD *)this + 11), v34, (__int64)Block); if ( si128.m128i_i64[1] > 0xFuLL ) { v35 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v35 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v35 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v35); } *(_OWORD *)SubStr = 0; v56 = 0; v36 = (char *)sub_1800E4AC0(0x20u); SubStr[0] = v36; v56 = _mm_load_si128((const __m128i *)&xmmword_18010D990); strcpy(v36, "GL_IMG_texture_format_BGRA888"); v37 = 0; v38 = *((const char **)this + 10); if ( v38 ) v37 = strstr(v38, v36) != nullptr; *((_BYTE *)this + 66) = v37; if ( v56.m128i_i64[1] > 0xFuLL ) { v39 = SubStr[0]; if ( (unsigned __int64)(v56.m128i_i64[1] + 1) >= 0x1000 ) { v39 = *((char **)SubStr[0] - 1); if ( (unsigned __int64)(SubStr[0] - v39 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v39); } *(_OWORD *)Block = 0; si128 = 0; Block[0] = (void *)sub_1800E4AC0(0x20u); si128 = _mm_load_si128((const __m128i *)&xmmword_180106070); strcpy((char *)Block[0], "gl.supports_BGRA8888"); v40 = *((_QWORD *)this + 11); v41 = cocos2d::CCBool::create(*((_BYTE *)this + 66)); cocos2d::CCDictionary::setObject(v40, v41, (__int64)Block); if ( si128.m128i_i64[1] > 0xFuLL ) { v42 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v42 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v42 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v42); } sub_180005A10(SubStr, "GL_EXT_discard_framebuffer"); v43 = 0; v44 = (const char *)SubStr; if ( v56.m128i_i64[1] > 0xFuLL ) v44 = SubStr[0]; v45 = *((const char **)this + 10); if ( v45 ) v43 = strstr(v45, v44) != nullptr; *((_BYTE *)this + 67) = v43; sub_180005C70((__int64)SubStr); sub_180005A10(SubStr, "gl.supports_discard_framebuffer"); v46 = *((_QWORD *)this + 11); v47 = cocos2d::CCBool::create(*((_BYTE *)this + 67)); cocos2d::CCDictionary::setObject(v46, v47, (__int64)SubStr); sub_180005C70((__int64)SubStr); sub_180005A10(SubStr, "vertex_array_object"); v48 = 0; v49 = (const char *)SubStr; if ( v56.m128i_i64[1] > 0xFuLL ) v49 = SubStr[0]; v50 = *((const char **)this + 10); if ( v50 ) v48 = strstr(v50, v49) != nullptr; *((_BYTE *)this + 68) = v48; sub_180005C70((__int64)SubStr); sub_180005A10(SubStr, "gl.supports_vertex_array_object"); v51 = *((_QWORD *)this + 11); v52 = cocos2d::CCBool::create(*((_BYTE *)this + 68)); cocos2d::CCDictionary::setObject(v51, v52, (__int64)SubStr); sub_180005C70((__int64)SubStr); }