{"type": "func", "start": 6443354368, "end": 6443355507, "name": "sub_1800DC900", "pseudocode": "// \n// sub_1800DC900 from 0x1800dc900 to 0x1800dcd73 (1139 bytes)\n// \n// 2 xrefs:\n// > sub_1800D6480 @ 0x1800d64d9\n// > <???> @ 0x1801badc4\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_1800DC900(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 v3; // rax\n  __int64 v4; // rbp\n  HDC DC; // rax\n  int v9; // eax\n  int v10; // esi\n  int v11; // edx\n  int v12; // eax\n  int v13; // ecx\n  int v14; // r9d\n  int v15; // ecx\n  int v16; // eax\n  int v17; // r8d\n  int v18; // eax\n  __int64 v19; // rcx\n  __int64 v20; // rax\n  __int64 v21; // rcx\n  int v22; // ecx\n  __int64 v23; // rax\n  int v24; // edx\n  __int64 v25; // rax\n  __int64 v26; // rax\n  __int64 v27; // rcx\n  __int64 v28; // rax\n  int v29; // edx\n  __int64 v30; // rax\n  __int64 v31; // rax\n  int v32; // edx\n  __int64 v33; // rax\n  __int64 v34; // rcx\n  __int64 v35; // rax\n  DWORD LastError; // eax\n  const char *v37; // rdx\n  __int64 v38; // rax\n  struct tagPIXELFORMATDESCRIPTOR ppfd; // [rsp+20h] [rbp-F8h] BYREF\n  int v41[40]; // [rsp+50h] [rbp-C8h] BYREF\n  int v42; // [rsp+54h] [rbp-C4h]\n\n  v3 = *(_QWORD *)(a2 + 40);\n  v4 = 0;\n  if ( v3 )\n    v4 = *(_QWORD *)(v3 + 640);\n  DC = GetDC(*(HWND *)(a1 + 880));\n  *(_QWORD *)(a1 + 632) = DC;\n  if ( DC )\n  {\n    v9 = sub_1800DD150(a1, a2, a3);\n    v10 = v9;\n    if ( !v9 )\n      return 0;\n    if ( !DescribePixelFormat(*(HDC *)(a1 + 632), v9, 0x28u, &ppfd) )\n    {\n      sub_1800D9BA0(0x10008u, \"WGL: Failed to retrieve PFD for selected pixel format\");\n      return 0;\n    }\n    if ( !SetPixelFormat(*(HDC *)(a1 + 632), v10, &ppfd) )\n    {\n      sub_1800D9BA0(0x10008u, \"WGL: Failed to set selected pixel format\");\n      return 0;\n    }\n    if ( *(_DWORD *)a2 == 196609 )\n    {\n      if ( *(_DWORD *)(a2 + 16) && !dword_1801AC148 )\n      {\n        sub_1800D3530(\n          0x10007u,\n          \"WGL: A forward compatible OpenGL context requested but WGL_ARB_create_context is unavailable\");\n        return 0;\n      }\n      if ( *(_DWORD *)(a2 + 28) && !dword_1801AC14C )\n      {\n        sub_1800D3530(0x10007u, \"WGL: OpenGL profile requested but WGL_ARB_create_context_profile is unavailable\");\n        return 0;\n      }\n    }\n    else if ( !dword_1801AC148 || !dword_1801AC14C || !dword_1801AC150 )\n    {\n      sub_1800D3530(0x10006u, \"WGL: OpenGL ES requested but WGL_ARB_create_context_es2_profile is unavailable\");\n      return 0;\n    }\n    if ( !dword_1801AC148 )\n    {\n      v38 = qword_1801AC0D0(*(_QWORD *)(a1 + 632));\n      *(_QWORD *)(a1 + 640) = v38;\n      if ( !v38 )\n      {\n        sub_1800D9BA0(0x10007u, \"WGL: Failed to create OpenGL context\");\n        return 0;\n      }\n      if ( v4 && !(unsigned int)qword_1801AC100(v4, v38) )\n      {\n        sub_1800D9BA0(0x10008u, \"WGL: Failed to enable sharing with specified OpenGL context\");\n        return 0;\n      }\nLABEL_72:\n      *(_QWORD *)(a1 + 584) = sub_1800DDA90;\n      *(_QWORD *)(a1 + 592) = sub_1800DDB00;\n      *(_QWORD *)(a1 + 600) = sub_1800DDB90;\n      *(_QWORD *)(a1 + 608) = sub_1800DDA10;\n      *(_QWORD *)(a1 + 616) = sub_1800DDA60;\n      *(_QWORD *)(a1 + 624) = sub_1800DD9E0;\n      return 1;\n    }\n    v11 = 0;\n    v12 = 0;\n    if ( *(_DWORD *)a2 == 196609 )\n    {\n      v13 = *(_DWORD *)(a2 + 28);\n      v12 = *(_DWORD *)(a2 + 16) != 0 ? 2 : 0;\n      if ( v13 == 204801 )\n      {\n        v14 = 1;\n      }\n      else\n      {\n        v14 = 0;\n        if ( v13 == 204802 )\n          v14 = 2;\n      }\n    }\n    else\n    {\n      v14 = 4;\n    }\n    v15 = v12 | 1;\n    if ( !*(_DWORD *)(a2 + 20) )\n      v15 = v12;\n    v16 = *(_DWORD *)(a2 + 32);\n    v17 = v15;\n    if ( !v16 || !dword_1801AC154 )\n    {\nLABEL_38:\n      v18 = *(_DWORD *)(a2 + 36);\n      if ( v18 && dword_1801AC15C )\n      {\n        if ( v18 == 217090 )\n        {\n          v19 = (unsigned int)(v11 + 1);\n          v41[v11] = 8343;\n          v41[v19] = 0;\nLABEL_44:\n          v11 = v19 + 1;\n          goto LABEL_45;\n        }\n        if ( v18 == 217089 )\n        {\n          v19 = (unsigned int)(v11 + 1);\n          v41[v11] = 8343;\n          v41[v19] = 8344;\n          goto LABEL_44;\n        }\n      }\nLABEL_45:\n      if ( *(_DWORD *)(a2 + 24) && dword_1801AC158 )\n      {\n        v20 = (unsigned int)v11;\n        v21 = (unsigned int)(v11 + 1);\n        v11 += 2;\n        v41[v20] = 12723;\n        v41[v21] = 1;\n      }\n      v22 = *(_DWORD *)(a2 + 8);\n      if ( v22 != 1 || *(_DWORD *)(a2 + 12) )\n      {\n        v23 = (unsigned int)v11;\n        v24 = v11 + 1;\n        v41[v23] = 8337;\n        v25 = v24++;\n        v41[v25] = v22;\n        v26 = v24++;\n        v27 = v24;\n        v11 = v24 + 1;\n        v41[v26] = 8338;\n        v41[v27] = *(_DWORD *)(a2 + 12);\n      }\n      if ( v17 )\n      {\n        v28 = v11;\n        v29 = v11 + 1;\n        v41[v28] = 8340;\n        v30 = v29;\n        v11 = v29 + 1;\n        v41[v30] = v17;\n      }\n      if ( v14 )\n      {\n        v31 = v11;\n        v32 = v11 + 1;\n        v41[v31] = 37158;\n        v33 = v32;\n        v11 = v32 + 1;\n        v41[v33] = v14;\n      }\n      v34 = *(_QWORD *)(a1 + 632);\n      *(_QWORD *)&v41[v11] = 0;\n      v35 = qword_1801AC128(v34, v4, v41);\n      *(_QWORD *)(a1 + 640) = v35;\n      if ( !v35 )\n      {\n        LastError = GetLastError();\n        switch ( LastError )\n        {\n          case 0xC0072095:\n            v37 = \"WGL: Driver does not support OpenGL version %i.%i\";\n            if ( *(_DWORD *)a2 != 196609 )\n              v37 = \"WGL: Driver does not support OpenGL ES version %i.%i\";\n            sub_1800D3530(0x10007u, v37, *(unsigned int *)(a2 + 8), *(unsigned int *)(a2 + 12));\n            break;\n          case 0xC0072096:\n            sub_1800D3530(0x10007u, \"WGL: Driver does not support the requested OpenGL profile\");\n            break;\n          case 0xC0072054:\n            sub_1800D3530(0x10004u, \"WGL: The share context is not compatible with the requested context\");\n            break;\n          default:\n            if ( *(_DWORD *)a2 == 196609 )\n              sub_1800D3530(0x10007u, \"WGL: Failed to create OpenGL context\");\n            else\n              sub_1800D3530(0x10007u, \"WGL: Failed to create OpenGL ES context\");\n            break;\n        }\n        return 0;\n      }\n      goto LABEL_72;\n    }\n    if ( v16 == 200705 )\n    {\n      v42 = 33377;\n    }\n    else\n    {\n      if ( v16 != 200706 )\n      {\nLABEL_37:\n        v17 = v15 | 4;\n        goto LABEL_38;\n      }\n      v42 = 33362;\n    }\n    v11 = 2;\n    v41[0] = 33366;\n    goto LABEL_37;\n  }\n  sub_1800D3530(0x10008u, \"WGL: Failed to retrieve DC for window\");\n  return 0;\n}", "assembly": "; \n; sub_1800DC900 from 0x1800dc900 to 0x1800dcd73 (1139 bytes)\n; \n; 2 xrefs:\n; > sub_1800D6480 @ 0x1800d64d9\n; > <???> @ 0x1801badc4\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_18], rbx                                              ; +0x0, 0x1800dc900\npush    rbp                                                            ; +0x5, 0x1800dc905\npush    rsi                                                            ; +0x6, 0x1800dc906\npush    rdi                                                            ; +0x7, 0x1800dc907\nsub     rsp, 100h                                                      ; +0x8, 0x1800dc908\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x1800dc90f\nxor     rax, rsp                                                       ; +0x16, 0x1800dc916\nmov     [rsp+118h+var_28], rax                                         ; +0x19, 0x1800dc919\nmov     rax, [rdx+28h]                                                 ; +0x21, 0x1800dc921\nxor     ebp, ebp                                                       ; +0x25, 0x1800dc925\nmov     rsi, r8                                                        ; +0x27, 0x1800dc927\nmov     rbx, rdx                                                       ; +0x2a, 0x1800dc92a\nmov     rdi, rcx                                                       ; +0x2d, 0x1800dc92d\ntest    rax, rax                                                       ; +0x30, 0x1800dc930\njz      short loc_1800DC93C                                            ; +0x33, 0x1800dc933\nmov     rbp, [rax+280h]                                                ; +0x35, 0x1800dc935\nmov     rcx, [rcx+370h]; hWnd                                          ; +0x3c, 0x1800dc93c\ncall    cs:GetDC                                                       ; +0x43, 0x1800dc943\nmov     [rdi+278h], rax                                                ; +0x49, 0x1800dc949\ntest    rax, rax                                                       ; +0x50, 0x1800dc950\njnz     short loc_1800DC966                                            ; +0x53, 0x1800dc953\nlea     rdx, aWglFailedToRet; \"WGL: Failed to retrieve DC for window\"  ; +0x55, 0x1800dc955\nmov     ecx, 10008h                                                    ; +0x5c, 0x1800dc95c\njmp     loc_1800DCD49                                                  ; +0x61, 0x1800dc961\nmov     r8, rsi                                                        ; +0x66, 0x1800dc966\nmov     rdx, rbx                                                       ; +0x69, 0x1800dc969\nmov     rcx, rdi                                                       ; +0x6c, 0x1800dc96c\ncall    sub_1800DD150                                                  ; +0x6f, 0x1800dc96f\nmov     esi, eax                                                       ; +0x74, 0x1800dc974\ntest    eax, eax                                                       ; +0x76, 0x1800dc976\njz      loc_1800DCD4E                                                  ; +0x78, 0x1800dc978\nmov     rcx, [rdi+278h]; hdc                                           ; +0x7e, 0x1800dc97e\nlea     r9, [rsp+118h+ppfd]; ppfd                                      ; +0x85, 0x1800dc985\nmov     r8d, 28h ; '('; nBytes                                         ; +0x8a, 0x1800dc98a\nmov     edx, eax; iPixelFormat                                         ; +0x90, 0x1800dc990\ncall    cs:DescribePixelFormat                                         ; +0x92, 0x1800dc992\ntest    eax, eax                                                       ; +0x98, 0x1800dc998\njnz     short loc_1800DC9B2                                            ; +0x9a, 0x1800dc99a\nlea     rdx, aWglFailedToRet_0; \"WGL: Failed to retrieve PFD for selecte\"... ; +0x9c, 0x1800dc99c\nmov     ecx, 10008h                                                    ; +0xa3, 0x1800dc9a3\ncall    sub_1800D9BA0                                                  ; +0xa8, 0x1800dc9a8\njmp     loc_1800DCD4E                                                  ; +0xad, 0x1800dc9ad\nmov     rcx, [rdi+278h]; hdc                                           ; +0xb2, 0x1800dc9b2\nlea     r8, [rsp+118h+ppfd]; ppfd                                      ; +0xb9, 0x1800dc9b9\nmov     edx, esi; format                                               ; +0xbe, 0x1800dc9be\ncall    cs:SetPixelFormat                                              ; +0xc0, 0x1800dc9c0\ntest    eax, eax                                                       ; +0xc6, 0x1800dc9c6\njnz     short loc_1800DC9E0                                            ; +0xc8, 0x1800dc9c8\nlea     rdx, aWglFailedToSet; \"WGL: Failed to set selected pixel forma\"... ; +0xca, 0x1800dc9ca\nmov     ecx, 10008h                                                    ; +0xd1, 0x1800dc9d1\ncall    sub_1800D9BA0                                                  ; +0xd6, 0x1800dc9d6\njmp     loc_1800DCD4E                                                  ; +0xdb, 0x1800dc9db\nmov     ecx, [rbx]                                                     ; +0xe0, 0x1800dc9e0\nmov     eax, cs:dword_1801AC148                                        ; +0xe2, 0x1800dc9e2\ncmp     ecx, 30001h                                                    ; +0xe8, 0x1800dc9e8\njnz     short loc_1800DCA2B                                            ; +0xee, 0x1800dc9ee\ncmp     dword ptr [rbx+10h], 0                                         ; +0xf0, 0x1800dc9f0\njz      short loc_1800DCA0B                                            ; +0xf4, 0x1800dc9f4\ntest    eax, eax                                                       ; +0xf6, 0x1800dc9f6\njnz     short loc_1800DCA0B                                            ; +0xf8, 0x1800dc9f8\nlea     rdx, aWglAForwardCom; \"WGL: A forward compatible OpenGL contex\"... ; +0xfa, 0x1800dc9fa\nmov     ecx, 10007h                                                    ; +0x101, 0x1800dca01\njmp     loc_1800DCD49                                                  ; +0x106, 0x1800dca06\ncmp     dword ptr [rbx+1Ch], 0                                         ; +0x10b, 0x1800dca0b\njz      short loc_1800DCA4D                                            ; +0x10f, 0x1800dca0f\ncmp     cs:dword_1801AC14C, 0                                          ; +0x111, 0x1800dca11\njnz     short loc_1800DCA4D                                            ; +0x118, 0x1800dca18\nlea     rdx, aWglOpenglProfi; \"WGL: OpenGL profile requested but WGL_A\"... ; +0x11a, 0x1800dca1a\nmov     ecx, 10007h                                                    ; +0x121, 0x1800dca21\njmp     loc_1800DCD49                                                  ; +0x126, 0x1800dca26\ntest    eax, eax                                                       ; +0x12b, 0x1800dca2b\njz      loc_1800DCD3D                                                  ; +0x12d, 0x1800dca2d\ncmp     cs:dword_1801AC14C, 0                                          ; +0x133, 0x1800dca33\njz      loc_1800DCD3D                                                  ; +0x13a, 0x1800dca3a\ncmp     cs:dword_1801AC150, 0                                          ; +0x140, 0x1800dca40\njz      loc_1800DCD3D                                                  ; +0x147, 0x1800dca47\ntest    eax, eax                                                       ; +0x14d, 0x1800dca4d\njz      loc_1800DCC8B                                                  ; +0x14f, 0x1800dca4f\nxor     edx, edx                                                       ; +0x155, 0x1800dca55\nxor     eax, eax                                                       ; +0x157, 0x1800dca57\nlea     r10d, [rdx+2]                                                  ; +0x159, 0x1800dca59\ncmp     ecx, 30001h                                                    ; +0x15d, 0x1800dca5d\njnz     short loc_1800DCA8F                                            ; +0x163, 0x1800dca63\nmov     eax, [rbx+10h]                                                 ; +0x165, 0x1800dca65\nmov     ecx, [rbx+1Ch]                                                 ; +0x168, 0x1800dca68\nneg     eax                                                            ; +0x16b, 0x1800dca6b\nsbb     eax, eax                                                       ; +0x16d, 0x1800dca6d\nand     eax, r10d                                                      ; +0x16f, 0x1800dca6f\ncmp     ecx, 32001h                                                    ; +0x172, 0x1800dca72\njnz     short loc_1800DCA80                                            ; +0x178, 0x1800dca78\nlea     r9d, [rdx+1]                                                   ; +0x17a, 0x1800dca7a\njmp     short loc_1800DCA95                                            ; +0x17e, 0x1800dca7e\nxor     r9d, r9d                                                       ; +0x180, 0x1800dca80\ncmp     ecx, 32002h                                                    ; +0x183, 0x1800dca83\ncmovz   r9d, r10d                                                      ; +0x189, 0x1800dca89\njmp     short loc_1800DCA95                                            ; +0x18d, 0x1800dca8d\nmov     r9d, 4                                                         ; +0x18f, 0x1800dca8f\nmov     ecx, eax                                                       ; +0x195, 0x1800dca95\nor      ecx, 1                                                         ; +0x197, 0x1800dca97\ncmp     [rbx+14h], edx                                                 ; +0x19a, 0x1800dca9a\ncmovz   ecx, eax                                                       ; +0x19d, 0x1800dca9d\nmov     eax, [rbx+20h]                                                 ; +0x1a0, 0x1800dcaa0\nmov     r8d, ecx                                                       ; +0x1a3, 0x1800dcaa3\ntest    eax, eax                                                       ; +0x1a6, 0x1800dcaa6\njz      short loc_1800DCAE1                                            ; +0x1a8, 0x1800dcaa8\ncmp     cs:dword_1801AC154, edx                                        ; +0x1aa, 0x1800dcaaa\njz      short loc_1800DCAE1                                            ; +0x1b0, 0x1800dcab0\ncmp     eax, 31001h                                                    ; +0x1b2, 0x1800dcab2\njnz     short loc_1800DCAC3                                            ; +0x1b7, 0x1800dcab7\nmov     [rsp+118h+var_C8+4], 8261h                                     ; +0x1b9, 0x1800dcab9\njmp     short loc_1800DCAD2                                            ; +0x1c1, 0x1800dcac1\ncmp     eax, 31002h                                                    ; +0x1c3, 0x1800dcac3\njnz     short loc_1800DCADD                                            ; +0x1c8, 0x1800dcac8\nmov     [rsp+118h+var_C8+4], 8252h                                     ; +0x1ca, 0x1800dcaca\nmov     edx, r10d                                                      ; +0x1d2, 0x1800dcad2\nmov     [rsp+118h+var_C8], 8256h                                       ; +0x1d5, 0x1800dcad5\nor      r8d, 4                                                         ; +0x1dd, 0x1800dcadd\nmov     eax, [rbx+24h]                                                 ; +0x1e1, 0x1800dcae1\ntest    eax, eax                                                       ; +0x1e4, 0x1800dcae4\njz      short loc_1800DCB2E                                            ; +0x1e6, 0x1800dcae6\ncmp     cs:dword_1801AC15C, 0                                          ; +0x1e8, 0x1800dcae8\njz      short loc_1800DCB2E                                            ; +0x1ef, 0x1800dcaef\ncmp     eax, 35002h                                                    ; +0x1f1, 0x1800dcaf1\njnz     short loc_1800DCB0F                                            ; +0x1f6, 0x1800dcaf6\nmov     eax, edx                                                       ; +0x1f8, 0x1800dcaf8\nlea     ecx, [rdx+1]                                                   ; +0x1fa, 0x1800dcafa\nmov     [rsp+rax*4+118h+var_C8], 2097h                                 ; +0x1fd, 0x1800dcafd\nmov     [rsp+rcx*4+118h+var_C8], 0                                     ; +0x205, 0x1800dcb05\njmp     short loc_1800DCB2B                                            ; +0x20d, 0x1800dcb0d\ncmp     eax, 35001h                                                    ; +0x20f, 0x1800dcb0f\njnz     short loc_1800DCB2E                                            ; +0x214, 0x1800dcb14\nmov     eax, edx                                                       ; +0x216, 0x1800dcb16\nlea     ecx, [rdx+1]                                                   ; +0x218, 0x1800dcb18\nmov     [rsp+rax*4+118h+var_C8], 2097h                                 ; +0x21b, 0x1800dcb1b\nmov     [rsp+rcx*4+118h+var_C8], 2098h                                 ; +0x223, 0x1800dcb23\nlea     edx, [rcx+1]                                                   ; +0x22b, 0x1800dcb2b\ncmp     dword ptr [rbx+18h], 0                                         ; +0x22e, 0x1800dcb2e\njz      short loc_1800DCB55                                            ; +0x232, 0x1800dcb32\ncmp     cs:dword_1801AC158, 0                                          ; +0x234, 0x1800dcb34\njz      short loc_1800DCB55                                            ; +0x23b, 0x1800dcb3b\nmov     eax, edx                                                       ; +0x23d, 0x1800dcb3d\nlea     ecx, [rdx+1]                                                   ; +0x23f, 0x1800dcb3f\nlea     edx, [rcx+1]                                                   ; +0x242, 0x1800dcb42\nmov     [rsp+rax*4+118h+var_C8], 31B3h                                 ; +0x245, 0x1800dcb45\nmov     [rsp+rcx*4+118h+var_C8], 1                                     ; +0x24d, 0x1800dcb4d\nmov     ecx, [rbx+8]                                                   ; +0x255, 0x1800dcb55\ncmp     ecx, 1                                                         ; +0x258, 0x1800dcb58\njnz     short loc_1800DCB63                                            ; +0x25b, 0x1800dcb5b\ncmp     dword ptr [rbx+0Ch], 0                                         ; +0x25d, 0x1800dcb5d\njz      short loc_1800DCB91                                            ; +0x261, 0x1800dcb61\nmov     eax, edx                                                       ; +0x263, 0x1800dcb63\ninc     edx                                                            ; +0x265, 0x1800dcb65\nmov     [rsp+rax*4+118h+var_C8], 2091h                                 ; +0x267, 0x1800dcb67\nmovsxd  rax, edx                                                       ; +0x26f, 0x1800dcb6f\ninc     edx                                                            ; +0x272, 0x1800dcb72\nmov     [rsp+rax*4+118h+var_C8], ecx                                   ; +0x274, 0x1800dcb74\nmovsxd  rax, edx                                                       ; +0x278, 0x1800dcb78\ninc     edx                                                            ; +0x27b, 0x1800dcb7b\nmovsxd  rcx, edx                                                       ; +0x27d, 0x1800dcb7d\ninc     edx                                                            ; +0x280, 0x1800dcb80\nmov     [rsp+rax*4+118h+var_C8], 2092h                                 ; +0x282, 0x1800dcb82\nmov     eax, [rbx+0Ch]                                                 ; +0x28a, 0x1800dcb8a\nmov     [rsp+rcx*4+118h+var_C8], eax                                   ; +0x28d, 0x1800dcb8d\ntest    r8d, r8d                                                       ; +0x291, 0x1800dcb91\njz      short loc_1800DCBAD                                            ; +0x294, 0x1800dcb94\nmovsxd  rax, edx                                                       ; +0x296, 0x1800dcb96\ninc     edx                                                            ; +0x299, 0x1800dcb99\nmov     [rsp+rax*4+118h+var_C8], 2094h                                 ; +0x29b, 0x1800dcb9b\nmovsxd  rax, edx                                                       ; +0x2a3, 0x1800dcba3\ninc     edx                                                            ; +0x2a6, 0x1800dcba6\nmov     [rsp+rax*4+118h+var_C8], r8d                                   ; +0x2a8, 0x1800dcba8\ntest    r9d, r9d                                                       ; +0x2ad, 0x1800dcbad\njz      short loc_1800DCBC9                                            ; +0x2b0, 0x1800dcbb0\nmovsxd  rax, edx                                                       ; +0x2b2, 0x1800dcbb2\ninc     edx                                                            ; +0x2b5, 0x1800dcbb5\nmov     [rsp+rax*4+118h+var_C8], 9126h                                 ; +0x2b7, 0x1800dcbb7\nmovsxd  rax, edx                                                       ; +0x2bf, 0x1800dcbbf\ninc     edx                                                            ; +0x2c2, 0x1800dcbc2\nmov     [rsp+rax*4+118h+var_C8], r9d                                   ; +0x2c4, 0x1800dcbc4\nmov     rcx, [rdi+278h]                                                ; +0x2c9, 0x1800dcbc9\nlea     r8, [rsp+118h+var_C8]                                          ; +0x2d0, 0x1800dcbd0\nmovsxd  rax, edx                                                       ; +0x2d5, 0x1800dcbd5\nmov     rdx, rbp                                                       ; +0x2d8, 0x1800dcbd8\nmov     qword ptr [rsp+rax*4+118h+var_C8], 0                           ; +0x2db, 0x1800dcbdb\ncall    cs:qword_1801AC128                                             ; +0x2e4, 0x1800dcbe4\nmov     [rdi+280h], rax                                                ; +0x2ea, 0x1800dcbea\ntest    rax, rax                                                       ; +0x2f1, 0x1800dcbf1\njnz     loc_1800DCCE2                                                  ; +0x2f4, 0x1800dcbf4\ncall    cs:GetLastError                                                ; +0x2fa, 0x1800dcbfa\ncmp     eax, 0C0072095h                                                ; +0x300, 0x1800dcc00\njnz     short loc_1800DCC36                                            ; +0x305, 0x1800dcc05\ncmp     dword ptr [rbx], 30001h                                        ; +0x307, 0x1800dcc07\nlea     rax, aWglDriverDoesN; \"WGL: Driver does not support OpenGL ES \"... ; +0x30d, 0x1800dcc0d\nmov     r9d, [rbx+0Ch]                                                 ; +0x314, 0x1800dcc14\nlea     rdx, aWglDriverDoesN_0; \"WGL: Driver does not support OpenGL ver\"... ; +0x318, 0x1800dcc18\nmov     r8d, [rbx+8]                                                   ; +0x31f, 0x1800dcc1f\ncmovnz  rdx, rax                                                       ; +0x323, 0x1800dcc23\nmov     ecx, 10007h                                                    ; +0x327, 0x1800dcc27\ncall    sub_1800D3530                                                  ; +0x32c, 0x1800dcc2c\njmp     loc_1800DCD4E                                                  ; +0x331, 0x1800dcc31\ncmp     eax, 0C0072096h                                                ; +0x336, 0x1800dcc36\njnz     short loc_1800DCC4E                                            ; +0x33b, 0x1800dcc3b\nlea     rdx, aWglDriverDoesN_1; \"WGL: Driver does not support the reques\"... ; +0x33d, 0x1800dcc3d\nmov     ecx, 10007h                                                    ; +0x344, 0x1800dcc44\njmp     loc_1800DCD49                                                  ; +0x349, 0x1800dcc49\ncmp     eax, 0C0072054h                                                ; +0x34e, 0x1800dcc4e\njnz     short loc_1800DCC66                                            ; +0x353, 0x1800dcc53\nlea     rdx, aWglTheShareCon; \"WGL: The share context is not compatibl\"... ; +0x355, 0x1800dcc55\nmov     ecx, 10004h                                                    ; +0x35c, 0x1800dcc5c\njmp     loc_1800DCD49                                                  ; +0x361, 0x1800dcc61\ncmp     dword ptr [rbx], 30001h                                        ; +0x366, 0x1800dcc66\nmov     ecx, 10007h                                                    ; +0x36c, 0x1800dcc6c\njnz     short loc_1800DCC7F                                            ; +0x371, 0x1800dcc71\nlea     rdx, aWglFailedToCre; \"WGL: Failed to create OpenGL context\"   ; +0x373, 0x1800dcc73\njmp     loc_1800DCD49                                                  ; +0x37a, 0x1800dcc7a\nlea     rdx, aWglFailedToCre_0; \"WGL: Failed to create OpenGL ES context\" ; +0x37f, 0x1800dcc7f\njmp     loc_1800DCD49                                                  ; +0x386, 0x1800dcc86\nmov     rcx, [rdi+278h]                                                ; +0x38b, 0x1800dcc8b\ncall    cs:qword_1801AC0D0                                             ; +0x392, 0x1800dcc92\nmov     [rdi+280h], rax                                                ; +0x398, 0x1800dcc98\ntest    rax, rax                                                       ; +0x39f, 0x1800dcc9f\njnz     short loc_1800DCCBA                                            ; +0x3a2, 0x1800dcca2\nlea     rdx, aWglFailedToCre; \"WGL: Failed to create OpenGL context\"   ; +0x3a4, 0x1800dcca4\nmov     ecx, 10007h                                                    ; +0x3ab, 0x1800dccab\ncall    sub_1800D9BA0                                                  ; +0x3b0, 0x1800dccb0\njmp     loc_1800DCD4E                                                  ; +0x3b5, 0x1800dccb5\ntest    rbp, rbp                                                       ; +0x3ba, 0x1800dccba\njz      short loc_1800DCCE2                                            ; +0x3bd, 0x1800dccbd\nmov     rdx, rax                                                       ; +0x3bf, 0x1800dccbf\nmov     rcx, rbp                                                       ; +0x3c2, 0x1800dccc2\ncall    cs:qword_1801AC100                                             ; +0x3c5, 0x1800dccc5\ntest    eax, eax                                                       ; +0x3cb, 0x1800dcccb\njnz     short loc_1800DCCE2                                            ; +0x3cd, 0x1800dcccd\nlea     rdx, aWglFailedToEna; \"WGL: Failed to enable sharing with spec\"... ; +0x3cf, 0x1800dcccf\nmov     ecx, 10008h                                                    ; +0x3d6, 0x1800dccd6\ncall    sub_1800D9BA0                                                  ; +0x3db, 0x1800dccdb\njmp     short loc_1800DCD4E                                            ; +0x3e0, 0x1800dcce0\nlea     rcx, sub_1800DDA90                                             ; +0x3e2, 0x1800dcce2\nmov     eax, 1                                                         ; +0x3e9, 0x1800dcce9\nmov     [rdi+248h], rcx                                                ; +0x3ee, 0x1800dccee\nlea     rcx, sub_1800DDB00                                             ; +0x3f5, 0x1800dccf5\nmov     [rdi+250h], rcx                                                ; +0x3fc, 0x1800dccfc\nlea     rcx, sub_1800DDB90                                             ; +0x403, 0x1800dcd03\nmov     [rdi+258h], rcx                                                ; +0x40a, 0x1800dcd0a\nlea     rcx, sub_1800DDA10                                             ; +0x411, 0x1800dcd11\nmov     [rdi+260h], rcx                                                ; +0x418, 0x1800dcd18\nlea     rcx, sub_1800DDA60                                             ; +0x41f, 0x1800dcd1f\nmov     [rdi+268h], rcx                                                ; +0x426, 0x1800dcd26\nlea     rcx, sub_1800DD9E0                                             ; +0x42d, 0x1800dcd2d\nmov     [rdi+270h], rcx                                                ; +0x434, 0x1800dcd34\njmp     short loc_1800DCD50                                            ; +0x43b, 0x1800dcd3b\nlea     rdx, aWglOpenglEsReq; \"WGL: OpenGL ES requested but WGL_ARB_cr\"... ; +0x43d, 0x1800dcd3d\nmov     ecx, 10006h                                                    ; +0x444, 0x1800dcd44\ncall    sub_1800D3530                                                  ; +0x449, 0x1800dcd49\nxor     eax, eax                                                       ; +0x44e, 0x1800dcd4e\nmov     rcx, [rsp+118h+var_28]                                         ; +0x450, 0x1800dcd50\nxor     rcx, rsp; StackCookie                                          ; +0x458, 0x1800dcd58\ncall    __security_check_cookie                                        ; +0x45b, 0x1800dcd5b\nmov     rbx, [rsp+118h+arg_18]                                         ; +0x460, 0x1800dcd60\nadd     rsp, 100h                                                      ; +0x468, 0x1800dcd68\npop     rdi                                                            ; +0x46f, 0x1800dcd6f\npop     rsi                                                            ; +0x470, 0x1800dcd70\npop     rbp                                                            ; +0x471, 0x1800dcd71\nretn                                                                   ; +0x472, 0x1800dcd72", "xrefs": ["sub_1800D6480 @ 0x1800d64d9", "<???> @ 0x1801badc4"], "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"}