{"type": "func", "start": 6442949872, "end": 6442950033, "name": "cocos2d::CCEGLView::initGlew", "pseudocode": "// \n// cocos2d::CCEGLView::initGlew from 0x180079cf0 to 0x180079d91 (161 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCEGLView::initWithRect @ 0x18007a137\n// > <???> @ 0x180144a48\n// > <???> @ 0x180144a58\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bec14\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:59 +0000\n// \n\nchar __fastcall cocos2d::CCEGLView::initGlew(cocos2d::CCEGLView *this)\n{\n  unsigned int v2; // eax\n  __int64 v3; // rbx\n  const WCHAR *ErrorString; // rdi\n  HWND v5; // rax\n  HWND v7; // rax\n\n  v2 = glewInit();\n  if ( v2 )\n  {\n    v3 = *((_QWORD *)this + 25);\n    ErrorString = (const WCHAR *)glewGetErrorString(v2);\n    v5 = (HWND)sub_1800D9CB0(v3);\n    MessageBoxW(v5, ErrorString, L\"OpenGL error\", 0);\n    return 0;\n  }\n  else\n  {\n    glewIsSupported(\"GL_VERSION_2_0\");\n    if ( sub_180079970() )\n    {\n      return 1;\n    }\n    else\n    {\n      v7 = (HWND)sub_1800D9CB0(*((_QWORD *)this + 25));\n      MessageBoxW(\n        v7,\n        L\"No OpenGL framebuffer support. Please upgrade the driver of your video card.\",\n        L\"OpenGL error\",\n        0);\n      return 0;\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCEGLView::initGlew from 0x180079cf0 to 0x180079d91 (161 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCEGLView::initWithRect @ 0x18007a137\n; > <???> @ 0x180144a48\n; > <???> @ 0x180144a58\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bec14\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:59 +0000\n; \npush    rbx                                                            ; +0x0, 0x180079cf0\nsub     rsp, 20h                                                       ; +0x2, 0x180079cf2\nmov     rbx, rcx                                                       ; +0x6, 0x180079cf6\ncall    cs:glewInit                                                    ; +0x9, 0x180079cf9\ntest    eax, eax                                                       ; +0xf, 0x180079cff\njz      short loc_180079D45                                            ; +0x11, 0x180079d01\nmov     rbx, [rbx+0C8h]                                                ; +0x13, 0x180079d03\nmov     ecx, eax                                                       ; +0x1a, 0x180079d0a\nmov     [rsp+28h+arg_0], rdi                                           ; +0x1c, 0x180079d0c\ncall    cs:glewGetErrorString                                          ; +0x21, 0x180079d11\nmov     rcx, rbx                                                       ; +0x27, 0x180079d17\nmov     rdi, rax                                                       ; +0x2a, 0x180079d1a\ncall    sub_1800D9CB0                                                  ; +0x2d, 0x180079d1d\nmov     rcx, rax; hWnd                                                 ; +0x32, 0x180079d22\nlea     r8, Caption; \"OpenGL error\"                                    ; +0x35, 0x180079d25\nxor     r9d, r9d; uType                                                ; +0x3c, 0x180079d2c\nmov     rdx, rdi; lpText                                               ; +0x3f, 0x180079d2f\ncall    cs:MessageBoxW                                                 ; +0x42, 0x180079d32\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x48, 0x180079d38\nxor     al, al                                                         ; +0x4d, 0x180079d3d\nadd     rsp, 20h                                                       ; +0x4f, 0x180079d3f\npop     rbx                                                            ; +0x53, 0x180079d43\nretn                                                                   ; +0x54, 0x180079d44\nlea     rcx, aGlVersion20; \"GL_VERSION_2_0\"                            ; +0x55, 0x180079d45\ncall    cs:glewIsSupported                                             ; +0x5c, 0x180079d4c\ncall    sub_180079970                                                  ; +0x62, 0x180079d52\ntest    al, al                                                         ; +0x67, 0x180079d57\njnz     short loc_180079D89                                            ; +0x69, 0x180079d59\nmov     rcx, [rbx+0C8h]                                                ; +0x6b, 0x180079d5b\ncall    sub_1800D9CB0                                                  ; +0x72, 0x180079d62\nmov     rcx, rax; hWnd                                                 ; +0x77, 0x180079d67\nlea     r8, Caption; \"OpenGL error\"                                    ; +0x7a, 0x180079d6a\nxor     r9d, r9d; uType                                                ; +0x81, 0x180079d71\nlea     rdx, aNoOpenglFrameb; \"No OpenGL framebuffer support. Please u\"... ; +0x84, 0x180079d74\ncall    cs:MessageBoxW                                                 ; +0x8b, 0x180079d7b\nxor     al, al                                                         ; +0x91, 0x180079d81\nadd     rsp, 20h                                                       ; +0x93, 0x180079d83\npop     rbx                                                            ; +0x97, 0x180079d87\nretn                                                                   ; +0x98, 0x180079d88\nmov     al, 1                                                          ; +0x99, 0x180079d89\nadd     rsp, 20h                                                       ; +0x9b, 0x180079d8b\npop     rbx                                                            ; +0x9f, 0x180079d8f\nretn                                                                   ; +0xa0, 0x180079d90", "xrefs": ["cocos2d::CCEGLView::initWithRect @ 0x18007a137", "<???> @ 0x180144a48", "<???> @ 0x180144a58", "<???> @ 0x18014cf68", "<???> @ 0x1801bec14"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}