{"type": "func", "start": 6442951904, "end": 6442952003, "name": "sub_18007A4E0", "pseudocode": "// \n// sub_18007A4E0 from 0x18007a4e0 to 0x18007a543 (99 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCEGLView::CCEGLView @ 0x1800782fd\n// > <???> @ 0x180144e34\n// > <???> @ 0x180144e44\n// > <???> @ 0x1801becc8\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\nvoid __fastcall sub_18007A4E0(int a1, const char *a2)\n{\n  cocos2d::CCEGLView *v2; // rbx\n  cocos2d::CCString *v3; // rax\n  __int64 v4; // rbx\n  const WCHAR *CString; // rdi\n  HWND v6; // rax\n\n  v2 = qword_1801B2540;\n  if ( qword_1801B2540 )\n  {\n    v3 = cocos2d::CCString::createWithFormat(\"GLFWError #%d Happen, %s\\n\", a1, a2);\n    v4 = *((_QWORD *)v2 + 25);\n    CString = (const WCHAR *)cocos2d::CCString::getCString(v3);\n    v6 = (HWND)sub_1800D9CB0(v4);\n    MessageBoxW(v6, CString, L\"OpenGL error\", 0);\n  }\n}", "assembly": "; \n; sub_18007A4E0 from 0x18007a4e0 to 0x18007a543 (99 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCEGLView::CCEGLView @ 0x1800782fd\n; > <???> @ 0x180144e34\n; > <???> @ 0x180144e44\n; > <???> @ 0x1801becc8\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, 0x18007a4e0\nsub     rsp, 20h                                                       ; +0x2, 0x18007a4e2\nmov     rbx, cs:qword_1801B2540                                        ; +0x6, 0x18007a4e6\ntest    rbx, rbx                                                       ; +0xd, 0x18007a4ed\njz      short loc_18007A53D                                            ; +0x10, 0x18007a4f0\nmov     r8, rdx                                                        ; +0x12, 0x18007a4f2\nmov     [rsp+28h+arg_0], rdi                                           ; +0x15, 0x18007a4f5\nmov     edx, ecx                                                       ; +0x1a, 0x18007a4fa\nlea     rcx, aGlfwerrorDHapp; \"GLFWError #%d Happen, %s\\n\"             ; +0x1c, 0x18007a4fc\ncall    ?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x23, 0x18007a503\nmov     rbx, [rbx+0C8h]                                                ; +0x28, 0x18007a508\nmov     rcx, rax; this                                                 ; +0x2f, 0x18007a50f\ncall    ?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x32, 0x18007a512\nmov     rcx, rbx                                                       ; +0x37, 0x18007a517\nmov     rdi, rax                                                       ; +0x3a, 0x18007a51a\ncall    sub_1800D9CB0                                                  ; +0x3d, 0x18007a51d\nmov     rcx, rax; hWnd                                                 ; +0x42, 0x18007a522\nlea     r8, Caption; \"OpenGL error\"                                    ; +0x45, 0x18007a525\nxor     r9d, r9d; uType                                                ; +0x4c, 0x18007a52c\nmov     rdx, rdi; lpText                                               ; +0x4f, 0x18007a52f\ncall    cs:MessageBoxW                                                 ; +0x52, 0x18007a532\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x58, 0x18007a538\nadd     rsp, 20h                                                       ; +0x5d, 0x18007a53d\npop     rbx                                                            ; +0x61, 0x18007a541\nretn                                                                   ; +0x62, 0x18007a542", "xrefs": ["cocos2d::CCEGLView::CCEGLView @ 0x1800782fd", "<???> @ 0x180144e34", "<???> @ 0x180144e44", "<???> @ 0x1801becc8"], "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"}