{"type": "func", "start": 6442945824, "end": 6442945980, "name": "cocos2d::CCEGLView::showMessage", "pseudocode": "// \n// cocos2d::CCEGLView::showMessage from 0x180078d20 to 0x180078dbc (156 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b4af4\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 cocos2d::CCEGLView::showMessage(__int64 a1, __int64 a2)\n{\n  const CHAR *v3; // rdi\n  HWND v4; // rax\n  unsigned __int64 v5; // rdx\n  _QWORD *v6; // rcx\n\n  v3 = (const CHAR *)a2;\n  if ( *(_QWORD *)(a2 + 24) > 0xFu )\n    v3 = *(const CHAR **)a2;\n  v4 = (HWND)sub_1800D8320(*(_QWORD *)(a1 + 200));\n  MessageBoxA(v4, v3, \"Message\", 0);\n  v5 = *(_QWORD *)(a2 + 24);\n  if ( v5 > 0xF )\n  {\n    v6 = *(_QWORD **)a2;\n    if ( v5 + 1 >= 0x1000 )\n    {\n      if ( (unsigned __int64)v6 - *(v6 - 1) - 8 > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n      v6 = (_QWORD *)*(v6 - 1);\n    }\n    j_j_free_0(v6);\n  }\n  *(_QWORD *)(a2 + 16) = 0;\n  *(_QWORD *)(a2 + 24) = 15;\n  *(_BYTE *)a2 = 0;\n}", "assembly": "; \n; cocos2d::CCEGLView::showMessage from 0x180078d20 to 0x180078dbc (156 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b4af4\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\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x180078d20\npush    rdi                                                            ; +0x5, 0x180078d25\nsub     rsp, 30h                                                       ; +0x6, 0x180078d26\ncmp     qword ptr [rdx+18h], 0Fh                                       ; +0xa, 0x180078d2a\nmov     rbx, rdx                                                       ; +0xf, 0x180078d2f\nmov     [rsp+38h+var_18], rdx                                          ; +0x12, 0x180078d32\nmov     rdi, rdx                                                       ; +0x17, 0x180078d37\njbe     short loc_180078D3F                                            ; +0x1a, 0x180078d3a\nmov     rdi, [rdx]                                                     ; +0x1c, 0x180078d3c\nmov     rcx, [rcx+0C8h]                                                ; +0x1f, 0x180078d3f\ncall    sub_1800D8320                                                  ; +0x26, 0x180078d46\nmov     rcx, rax; hWnd                                                 ; +0x2b, 0x180078d4b\nlea     r8, aMessage; \"Message\"                                        ; +0x2e, 0x180078d4e\nxor     r9d, r9d; uType                                                ; +0x35, 0x180078d55\nmov     rdx, rdi; lpText                                               ; +0x38, 0x180078d58\ncall    cs:MessageBoxA                                                 ; +0x3b, 0x180078d5b\nmov     rdx, [rbx+18h]                                                 ; +0x41, 0x180078d61\ncmp     rdx, 0Fh                                                       ; +0x45, 0x180078d65\njbe     short loc_180078D97                                            ; +0x49, 0x180078d69\nmov     rcx, [rbx]                                                     ; +0x4b, 0x180078d6b\ninc     rdx                                                            ; +0x4e, 0x180078d6e\ncmp     rdx, 1000h                                                     ; +0x51, 0x180078d71\njb      short loc_180078D92                                            ; +0x58, 0x180078d78\nmov     r8, [rcx-8]                                                    ; +0x5a, 0x180078d7a\nadd     rdx, 27h ; '''                                                 ; +0x5e, 0x180078d7e\nsub     rcx, r8                                                        ; +0x62, 0x180078d82\nlea     rax, [rcx-8]                                                   ; +0x65, 0x180078d85\ncmp     rax, 1Fh                                                       ; +0x69, 0x180078d89\nja      short loc_180078DB5                                            ; +0x6d, 0x180078d8d\nmov     rcx, r8; Block                                                 ; +0x6f, 0x180078d8f\ncall    j_j_free_0                                                     ; +0x72, 0x180078d92\nmov     qword ptr [rbx+10h], 0                                         ; +0x77, 0x180078d97\nmov     qword ptr [rbx+18h], 0Fh                                       ; +0x7f, 0x180078d9f\nmov     byte ptr [rbx], 0                                              ; +0x87, 0x180078da7\nmov     rbx, [rsp+38h+arg_10]                                          ; +0x8a, 0x180078daa\nadd     rsp, 30h                                                       ; +0x8f, 0x180078daf\npop     rdi                                                            ; +0x93, 0x180078db3\nretn                                                                   ; +0x94, 0x180078db4\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x95, 0x180078db5\ndb 0CCh                                                                ; +0x9b, 0x180078dbb", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b4af4"], "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"}