{"type": "func", "start": 6443326208, "end": 6443326259, "name": "sub_1800D5B00", "pseudocode": "// \n// sub_1800D5B00 from 0x1800d5b00 to 0x1800d5b33 (51 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCEGLView::setupWindow @ 0x180078b0b\n// > <???> @ 0x1801ba878\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_1800D5B00(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n\n  if ( *(_DWORD *)&ModuleName )\n  {\n    result = *(_QWORD *)(a1 + 832);\n    *(_QWORD *)(a1 + 832) = a2;\n  }\n  else\n  {\n    sub_1800D3530(0x10001u, nullptr);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800D5B00 from 0x1800d5b00 to 0x1800d5b33 (51 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCEGLView::setupWindow @ 0x180078b0b\n; > <???> @ 0x1801ba878\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, 0x1800d5b00\ncmp     dword ptr cs:ModuleName, 0                                     ; +0x4, 0x1800d5b04\njnz     short loc_1800D5B20                                            ; +0xb, 0x1800d5b0b\nxor     edx, edx                                                       ; +0xd, 0x1800d5b0d\nmov     ecx, 10001h                                                    ; +0xf, 0x1800d5b0f\ncall    sub_1800D3530                                                  ; +0x14, 0x1800d5b14\nxor     eax, eax                                                       ; +0x19, 0x1800d5b19\nadd     rsp, 28h                                                       ; +0x1b, 0x1800d5b1b\nretn                                                                   ; +0x1f, 0x1800d5b1f\nmov     rax, [rcx+340h]                                                ; +0x20, 0x1800d5b20\nmov     [rcx+340h], rdx                                                ; +0x27, 0x1800d5b27\nadd     rsp, 28h                                                       ; +0x2e, 0x1800d5b2e\nretn                                                                   ; +0x32, 0x1800d5b32", "xrefs": ["cocos2d::CCEGLView::setupWindow @ 0x180078b0b", "<???> @ 0x1801ba878"], "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"}