{"type": "func", "start": 6442940256, "end": 6442940352, "name": "sub_180077760", "pseudocode": "// \n// sub_180077760 from 0x180077760 to 0x1800777c0 (96 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCEGLView::CCEGLView @ 0x18007587d\n// > <???> @ 0x18013b9e0\n// > <???> @ 0x18013b9f0\n// > <???> @ 0x1801b49bc\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall sub_180077760(int a1, const char *a2)\n{\n  cocos2d::CCEGLView *v2; // rdi\n  cocos2d::CCString *v3; // rax\n  std::string *CString; // rbx\n  HWND v5; // rax\n\n  v2 = qword_1801A8500;\n  if ( qword_1801A8500 )\n  {\n    v3 = cocos2d::CCString::createWithFormat(\"GLFWError #%d Happen, %s\\n\", a1, a2);\n    CString = cocos2d::CCString::getCString(v3);\n    v5 = (HWND)sub_1800D8320(*(_QWORD *)&v2[1].m_szViewName[24]);\n    MessageBoxW(v5, (LPCWSTR)CString, L\"OpenGL error\", 0);\n  }\n}", "assembly": "; \n; sub_180077760 from 0x180077760 to 0x1800777c0 (96 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCEGLView::CCEGLView @ 0x18007587d\n; > <???> @ 0x18013b9e0\n; > <???> @ 0x18013b9f0\n; > <???> @ 0x1801b49bc\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rdi                                                            ; +0x0, 0x180077760\nsub     rsp, 20h                                                       ; +0x2, 0x180077762\nmov     rdi, cs:qword_1801A8500                                        ; +0x6, 0x180077766\ntest    rdi, rdi                                                       ; +0xd, 0x18007776d\njz      short loc_1800777BA                                            ; +0x10, 0x180077770\nmov     r8, rdx                                                        ; +0x12, 0x180077772\nmov     [rsp+28h+arg_0], rbx                                           ; +0x15, 0x180077775\nmov     edx, ecx                                                       ; +0x1a, 0x18007777a\nlea     rcx, aGlfwerrorDHapp; \"GLFWError #%d Happen, %s\\n\"             ; +0x1c, 0x18007777c\ncall    ?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x23, 0x180077783\nmov     rcx, rax; this                                                 ; +0x28, 0x180077788\ncall    ?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x2b, 0x18007778b\nmov     rcx, [rdi+0C8h]                                                ; +0x30, 0x180077790\nmov     rbx, rax                                                       ; +0x37, 0x180077797\ncall    sub_1800D8320                                                  ; +0x3a, 0x18007779a\nmov     rcx, rax; hWnd                                                 ; +0x3f, 0x18007779f\nlea     r8, Caption; \"OpenGL error\"                                    ; +0x42, 0x1800777a2\nxor     r9d, r9d; uType                                                ; +0x49, 0x1800777a9\nmov     rdx, rbx; lpText                                               ; +0x4c, 0x1800777ac\ncall    cs:MessageBoxW                                                 ; +0x4f, 0x1800777af\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x55, 0x1800777b5\nadd     rsp, 20h                                                       ; +0x5a, 0x1800777ba\npop     rdi                                                            ; +0x5e, 0x1800777be\nretn                                                                   ; +0x5f, 0x1800777bf", "xrefs": ["cocos2d::CCEGLView::CCEGLView @ 0x18007587d", "<???> @ 0x18013b9e0", "<???> @ 0x18013b9f0", "<???> @ 0x1801b49bc"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}