{"type": "func", "start": 6443322128, "end": 6443322179, "name": "sub_1800D4B10", "pseudocode": "// \n// sub_1800D4B10 from 0x1800d4b10 to 0x1800d4b43 (51 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCEGLView::setupWindow @ 0x180078c1c\n// > <???> @ 0x1801ba728\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\n__int64 __fastcall sub_1800D4B10(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n\n  if ( *(_DWORD *)&ModuleName )\n  {\n    result = *(_QWORD *)(a1 + 752);\n    *(_QWORD *)(a1 + 752) = a2;\n  }\n  else\n  {\n    sub_1800D3530(0x10001u, nullptr);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800D4B10 from 0x1800d4b10 to 0x1800d4b43 (51 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCEGLView::setupWindow @ 0x180078c1c\n; > <???> @ 0x1801ba728\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\nsub     rsp, 28h                                                       ; +0x0, 0x1800d4b10\ncmp     dword ptr cs:ModuleName, 0                                     ; +0x4, 0x1800d4b14\njnz     short loc_1800D4B30                                            ; +0xb, 0x1800d4b1b\nxor     edx, edx                                                       ; +0xd, 0x1800d4b1d\nmov     ecx, 10001h                                                    ; +0xf, 0x1800d4b1f\ncall    sub_1800D3530                                                  ; +0x14, 0x1800d4b24\nxor     eax, eax                                                       ; +0x19, 0x1800d4b29\nadd     rsp, 28h                                                       ; +0x1b, 0x1800d4b2b\nretn                                                                   ; +0x1f, 0x1800d4b2f\nmov     rax, [rcx+2F0h]                                                ; +0x20, 0x1800d4b30\nmov     [rcx+2F0h], rdx                                                ; +0x27, 0x1800d4b37\nadd     rsp, 28h                                                       ; +0x2e, 0x1800d4b3e\nretn                                                                   ; +0x32, 0x1800d4b42", "xrefs": ["cocos2d::CCEGLView::setupWindow @ 0x180078c1c", "<???> @ 0x1801ba728"], "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"}