{"type": "func", "start": 6443357472, "end": 6443357523, "name": "sub_1800DD520", "pseudocode": "// \n// sub_1800DD520 from 0x1800dd520 to 0x1800dd553 (51 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCEGLView::setupWindow @ 0x18007ba7f\n// > <???> @ 0x1801c4ee4\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:22:35 +0000\n// \n\n__int64 __fastcall sub_1800DD520(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n\n  if ( *(_DWORD *)&ModuleName )\n  {\n    result = *(_QWORD *)(a1 + 824);\n    *(_QWORD *)(a1 + 824) = a2;\n  }\n  else\n  {\n    sub_1800DB260(0x10001u, nullptr);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800DD520 from 0x1800dd520 to 0x1800dd553 (51 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCEGLView::setupWindow @ 0x18007ba7f\n; > <???> @ 0x1801c4ee4\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:22:35 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x1800dd520\ncmp     dword ptr cs:ModuleName, 0                                     ; +0x4, 0x1800dd524\njnz     short loc_1800DD540                                            ; +0xb, 0x1800dd52b\nxor     edx, edx                                                       ; +0xd, 0x1800dd52d\nmov     ecx, 10001h                                                    ; +0xf, 0x1800dd52f\ncall    sub_1800DB260                                                  ; +0x14, 0x1800dd534\nxor     eax, eax                                                       ; +0x19, 0x1800dd539\nadd     rsp, 28h                                                       ; +0x1b, 0x1800dd53b\nretn                                                                   ; +0x1f, 0x1800dd53f\nmov     rax, [rcx+338h]                                                ; +0x20, 0x1800dd540\nmov     [rcx+338h], rdx                                                ; +0x27, 0x1800dd547\nadd     rsp, 28h                                                       ; +0x2e, 0x1800dd54e\nretn                                                                   ; +0x32, 0x1800dd552", "xrefs": ["cocos2d::CCEGLView::setupWindow @ 0x18007ba7f", "<???> @ 0x1801c4ee4"], "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"}