{"type": "func", "start": 6443317456, "end": 6443317646, "name": "sub_1800D38D0", "pseudocode": "// \n// sub_1800D38D0 from 0x1800d38d0 to 0x1800d398e (190 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCEGLView::CCEGLView @ 0x180075889\n// > <???> @ 0x1801ba590\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 sub_1800D38D0()\n{\n  if ( *(_DWORD *)&ModuleName )\n    return 1;\n  *(_QWORD *)&ModuleName = 0;\n  memset(&xmmword_1801A9B88, 0, 0x26D8u);\n  xmmword_1801A9B78 = xmmword_1801A3328;\n  if ( (unsigned int)sub_1800D9E40()\n    && (unsigned int)sub_1800D98D0(&unk_1801AB198)\n    && (unsigned int)sub_1800D9900(&unk_1801AB184)\n    && (unsigned int)sub_1800D9900(&unk_1801AB18C) )\n  {\n    sub_1800D99D0(&unk_1801AB184, &unk_1801AC260);\n    sub_1800D52C0();\n    wcscpy(&ModuleName, L\"\\x01\");\n    qword_1801AB1C8 = sub_1800DBAA0();\n    sub_1800D4850();\n    return 1;\n  }\n  sub_1800D39B0();\n  return 0;\n}", "assembly": "; \n; sub_1800D38D0 from 0x1800d38d0 to 0x1800d398e (190 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCEGLView::CCEGLView @ 0x180075889\n; > <???> @ 0x1801ba590\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, 0x1800d38d0\ncmp     dword ptr cs:ModuleName, 0                                     ; +0x4, 0x1800d38d4\njnz     loc_1800D3978                                                  ; +0xb, 0x1800d38db\nxor     eax, eax                                                       ; +0x11, 0x1800d38e1\nlea     rcx, xmmword_1801A9B88; void *                                 ; +0x13, 0x1800d38e3\nxor     edx, edx; Val                                                  ; +0x1a, 0x1800d38ea\nmov     cs:ModuleName, rax                                             ; +0x1c, 0x1800d38ec\nmov     r8d, 26D8h; Size                                               ; +0x23, 0x1800d38f3\ncall    memset                                                         ; +0x29, 0x1800d38f9\nmovups  xmm0, cs:xmmword_1801A3328                                     ; +0x2e, 0x1800d38fe\nmovups  cs:xmmword_1801A9B78, xmm0                                     ; +0x35, 0x1800d3905\ncall    sub_1800D9E40                                                  ; +0x3c, 0x1800d390c\ntest    eax, eax                                                       ; +0x41, 0x1800d3911\njz      short loc_1800D3982                                            ; +0x43, 0x1800d3913\nlea     rcx, unk_1801AB198                                             ; +0x45, 0x1800d3915\ncall    sub_1800D98D0                                                  ; +0x4c, 0x1800d391c\ntest    eax, eax                                                       ; +0x51, 0x1800d3921\njz      short loc_1800D3982                                            ; +0x53, 0x1800d3923\nlea     rcx, unk_1801AB184                                             ; +0x55, 0x1800d3925\ncall    sub_1800D9900                                                  ; +0x5c, 0x1800d392c\ntest    eax, eax                                                       ; +0x61, 0x1800d3931\njz      short loc_1800D3982                                            ; +0x63, 0x1800d3933\nlea     rcx, unk_1801AB18C                                             ; +0x65, 0x1800d3935\ncall    sub_1800D9900                                                  ; +0x6c, 0x1800d393c\ntest    eax, eax                                                       ; +0x71, 0x1800d3941\njz      short loc_1800D3982                                            ; +0x73, 0x1800d3943\nlea     rdx, unk_1801AC260                                             ; +0x75, 0x1800d3945\nlea     rcx, unk_1801AB184                                             ; +0x7c, 0x1800d394c\ncall    sub_1800D99D0                                                  ; +0x83, 0x1800d3953\ncall    sub_1800D52C0                                                  ; +0x88, 0x1800d3958\nmov     dword ptr cs:ModuleName, 1                                     ; +0x8d, 0x1800d395d\ncall    sub_1800DBAA0                                                  ; +0x97, 0x1800d3967\nmov     cs:qword_1801AB1C8, rax                                        ; +0x9c, 0x1800d396c\ncall    sub_1800D4850                                                  ; +0xa3, 0x1800d3973\nmov     eax, 1                                                         ; +0xa8, 0x1800d3978\nadd     rsp, 28h                                                       ; +0xad, 0x1800d397d\nretn                                                                   ; +0xb1, 0x1800d3981\ncall    sub_1800D39B0                                                  ; +0xb2, 0x1800d3982\nxor     eax, eax                                                       ; +0xb7, 0x1800d3987\nadd     rsp, 28h                                                       ; +0xb9, 0x1800d3989\nretn                                                                   ; +0xbd, 0x1800d398d", "xrefs": ["cocos2d::CCEGLView::CCEGLView @ 0x180075889", "<???> @ 0x1801ba590"], "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"}