{"type": "func", "start": 6443364208, "end": 6443365347, "name": "sub_1800DEF70", "pseudocode": "// \n// sub_1800DEF70 from 0x1800def70 to 0x1800df3e3 (1139 bytes)\n// \n// 2 xrefs:\n// > sub_1800D7E10 @ 0x1800d7e69\n// > <???> @ 0x1801c5028\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:36 +0000\n// \n\n__int64 __fastcall sub_1800DEF70(__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_1800DF7C0(a1, a2, a3);\n    v10 = v9;\n    if ( !v9 )\n      return 0;\n    if ( !DescribePixelFormat(*(HDC *)(a1 + 632), v9, 0x28u, &ppfd) )\n    {\n      sub_1800E1AF0(65544, \"WGL: Failed to retrieve PFD for selected pixel format\");\n      return 0;\n    }\n    if ( !SetPixelFormat(*(HDC *)(a1 + 632), v10, &ppfd) )\n    {\n      sub_1800E1AF0(65544, \"WGL: Failed to set selected pixel format\");\n      return 0;\n    }\n    if ( *(_DWORD *)a2 == 196609 )\n    {\n      if ( *(_DWORD *)(a2 + 16) && !dword_1801B61C8 )\n      {\n        sub_1800DB260(\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_1801B61CC )\n      {\n        sub_1800DB260(0x10007u, \"WGL: OpenGL profile requested but WGL_ARB_create_context_profile is unavailable\");\n        return 0;\n      }\n    }\n    else if ( !dword_1801B61C8 || !dword_1801B61CC || !dword_1801B61D0 )\n    {\n      sub_1800DB260(0x10006u, \"WGL: OpenGL ES requested but WGL_ARB_create_context_es2_profile is unavailable\");\n      return 0;\n    }\n    if ( !dword_1801B61C8 )\n    {\n      v38 = qword_1801B6150(*(_QWORD *)(a1 + 632));\n      *(_QWORD *)(a1 + 640) = v38;\n      if ( !v38 )\n      {\n        sub_1800E1AF0(65543, \"WGL: Failed to create OpenGL context\");\n        return 0;\n      }\n      if ( v4 && !(unsigned int)qword_1801B6180(v4, v38) )\n      {\n        sub_1800E1AF0(65544, \"WGL: Failed to enable sharing with specified OpenGL context\");\n        return 0;\n      }\nLABEL_72:\n      *(_QWORD *)(a1 + 584) = sub_1800E0100;\n      *(_QWORD *)(a1 + 592) = sub_1800E0170;\n      *(_QWORD *)(a1 + 600) = sub_1800E0200;\n      *(_QWORD *)(a1 + 608) = sub_1800E0080;\n      *(_QWORD *)(a1 + 616) = sub_1800E00D0;\n      *(_QWORD *)(a1 + 624) = sub_1800E0050;\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_1801B61D4 )\n    {\nLABEL_38:\n      v18 = *(_DWORD *)(a2 + 36);\n      if ( v18 && dword_1801B61DC )\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_1801B61D8 )\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_1801B61A8(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_1800DB260(0x10007u, v37, *(unsigned int *)(a2 + 8), *(unsigned int *)(a2 + 12));\n            break;\n          case 0xC0072096:\n            sub_1800DB260(0x10007u, \"WGL: Driver does not support the requested OpenGL profile\");\n            break;\n          case 0xC0072054:\n            sub_1800DB260(0x10004u, \"WGL: The share context is not compatible with the requested context\");\n            break;\n          default:\n            if ( *(_DWORD *)a2 == 196609 )\n              sub_1800DB260(0x10007u, \"WGL: Failed to create OpenGL context\");\n            else\n              sub_1800DB260(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_1800DB260(0x10008u, \"WGL: Failed to retrieve DC for window\");\n  return 0;\n}", "assembly": "; \n; sub_1800DEF70 from 0x1800def70 to 0x1800df3e3 (1139 bytes)\n; \n; 2 xrefs:\n; > sub_1800D7E10 @ 0x1800d7e69\n; > <???> @ 0x1801c5028\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:36 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x1800def70\npush    rbp                                                            ; +0x5, 0x1800def75\npush    rsi                                                            ; +0x6, 0x1800def76\npush    rdi                                                            ; +0x7, 0x1800def77\nsub     rsp, 100h                                                      ; +0x8, 0x1800def78\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x1800def7f\nxor     rax, rsp                                                       ; +0x16, 0x1800def86\nmov     [rsp+118h+var_28], rax                                         ; +0x19, 0x1800def89\nmov     rax, [rdx+28h]                                                 ; +0x21, 0x1800def91\nxor     ebp, ebp                                                       ; +0x25, 0x1800def95\nmov     rsi, r8                                                        ; +0x27, 0x1800def97\nmov     rbx, rdx                                                       ; +0x2a, 0x1800def9a\nmov     rdi, rcx                                                       ; +0x2d, 0x1800def9d\ntest    rax, rax                                                       ; +0x30, 0x1800defa0\njz      short loc_1800DEFAC                                            ; +0x33, 0x1800defa3\nmov     rbp, [rax+280h]                                                ; +0x35, 0x1800defa5\nmov     rcx, [rcx+370h]; hWnd                                          ; +0x3c, 0x1800defac\ncall    cs:GetDC                                                       ; +0x43, 0x1800defb3\nmov     [rdi+278h], rax                                                ; +0x49, 0x1800defb9\ntest    rax, rax                                                       ; +0x50, 0x1800defc0\njnz     short loc_1800DEFD6                                            ; +0x53, 0x1800defc3\nlea     rdx, aWglFailedToRet; \"WGL: Failed to retrieve DC for window\"  ; +0x55, 0x1800defc5\nmov     ecx, 10008h                                                    ; +0x5c, 0x1800defcc\njmp     loc_1800DF3B9                                                  ; +0x61, 0x1800defd1\nmov     r8, rsi                                                        ; +0x66, 0x1800defd6\nmov     rdx, rbx                                                       ; +0x69, 0x1800defd9\nmov     rcx, rdi                                                       ; +0x6c, 0x1800defdc\ncall    sub_1800DF7C0                                                  ; +0x6f, 0x1800defdf\nmov     esi, eax                                                       ; +0x74, 0x1800defe4\ntest    eax, eax                                                       ; +0x76, 0x1800defe6\njz      loc_1800DF3BE                                                  ; +0x78, 0x1800defe8\nmov     rcx, [rdi+278h]; hdc                                           ; +0x7e, 0x1800defee\nlea     r9, [rsp+118h+ppfd]; ppfd                                      ; +0x85, 0x1800deff5\nmov     r8d, 28h ; '('; nBytes                                         ; +0x8a, 0x1800deffa\nmov     edx, eax; iPixelFormat                                         ; +0x90, 0x1800df000\ncall    cs:DescribePixelFormat                                         ; +0x92, 0x1800df002\ntest    eax, eax                                                       ; +0x98, 0x1800df008\njnz     short loc_1800DF022                                            ; +0x9a, 0x1800df00a\nlea     rdx, aWglFailedToRet_0; \"WGL: Failed to retrieve PFD for selecte\"... ; +0x9c, 0x1800df00c\nmov     ecx, 10008h                                                    ; +0xa3, 0x1800df013\ncall    sub_1800E1AF0                                                  ; +0xa8, 0x1800df018\njmp     loc_1800DF3BE                                                  ; +0xad, 0x1800df01d\nmov     rcx, [rdi+278h]; hdc                                           ; +0xb2, 0x1800df022\nlea     r8, [rsp+118h+ppfd]; ppfd                                      ; +0xb9, 0x1800df029\nmov     edx, esi; format                                               ; +0xbe, 0x1800df02e\ncall    cs:SetPixelFormat                                              ; +0xc0, 0x1800df030\ntest    eax, eax                                                       ; +0xc6, 0x1800df036\njnz     short loc_1800DF050                                            ; +0xc8, 0x1800df038\nlea     rdx, aWglFailedToSet; \"WGL: Failed to set selected pixel forma\"... ; +0xca, 0x1800df03a\nmov     ecx, 10008h                                                    ; +0xd1, 0x1800df041\ncall    sub_1800E1AF0                                                  ; +0xd6, 0x1800df046\njmp     loc_1800DF3BE                                                  ; +0xdb, 0x1800df04b\nmov     ecx, [rbx]                                                     ; +0xe0, 0x1800df050\nmov     eax, cs:dword_1801B61C8                                        ; +0xe2, 0x1800df052\ncmp     ecx, 30001h                                                    ; +0xe8, 0x1800df058\njnz     short loc_1800DF09B                                            ; +0xee, 0x1800df05e\ncmp     dword ptr [rbx+10h], 0                                         ; +0xf0, 0x1800df060\njz      short loc_1800DF07B                                            ; +0xf4, 0x1800df064\ntest    eax, eax                                                       ; +0xf6, 0x1800df066\njnz     short loc_1800DF07B                                            ; +0xf8, 0x1800df068\nlea     rdx, aWglAForwardCom; \"WGL: A forward compatible OpenGL contex\"... ; +0xfa, 0x1800df06a\nmov     ecx, 10007h                                                    ; +0x101, 0x1800df071\njmp     loc_1800DF3B9                                                  ; +0x106, 0x1800df076\ncmp     dword ptr [rbx+1Ch], 0                                         ; +0x10b, 0x1800df07b\njz      short loc_1800DF0BD                                            ; +0x10f, 0x1800df07f\ncmp     cs:dword_1801B61CC, 0                                          ; +0x111, 0x1800df081\njnz     short loc_1800DF0BD                                            ; +0x118, 0x1800df088\nlea     rdx, aWglOpenglProfi; \"WGL: OpenGL profile requested but WGL_A\"... ; +0x11a, 0x1800df08a\nmov     ecx, 10007h                                                    ; +0x121, 0x1800df091\njmp     loc_1800DF3B9                                                  ; +0x126, 0x1800df096\ntest    eax, eax                                                       ; +0x12b, 0x1800df09b\njz      loc_1800DF3AD                                                  ; +0x12d, 0x1800df09d\ncmp     cs:dword_1801B61CC, 0                                          ; +0x133, 0x1800df0a3\njz      loc_1800DF3AD                                                  ; +0x13a, 0x1800df0aa\ncmp     cs:dword_1801B61D0, 0                                          ; +0x140, 0x1800df0b0\njz      loc_1800DF3AD                                                  ; +0x147, 0x1800df0b7\ntest    eax, eax                                                       ; +0x14d, 0x1800df0bd\njz      loc_1800DF2FB                                                  ; +0x14f, 0x1800df0bf\nxor     edx, edx                                                       ; +0x155, 0x1800df0c5\nxor     eax, eax                                                       ; +0x157, 0x1800df0c7\nlea     r10d, [rdx+2]                                                  ; +0x159, 0x1800df0c9\ncmp     ecx, 30001h                                                    ; +0x15d, 0x1800df0cd\njnz     short loc_1800DF0FF                                            ; +0x163, 0x1800df0d3\nmov     eax, [rbx+10h]                                                 ; +0x165, 0x1800df0d5\nmov     ecx, [rbx+1Ch]                                                 ; +0x168, 0x1800df0d8\nneg     eax                                                            ; +0x16b, 0x1800df0db\nsbb     eax, eax                                                       ; +0x16d, 0x1800df0dd\nand     eax, r10d                                                      ; +0x16f, 0x1800df0df\ncmp     ecx, 32001h                                                    ; +0x172, 0x1800df0e2\njnz     short loc_1800DF0F0                                            ; +0x178, 0x1800df0e8\nlea     r9d, [rdx+1]                                                   ; +0x17a, 0x1800df0ea\njmp     short loc_1800DF105                                            ; +0x17e, 0x1800df0ee\nxor     r9d, r9d                                                       ; +0x180, 0x1800df0f0\ncmp     ecx, 32002h                                                    ; +0x183, 0x1800df0f3\ncmovz   r9d, r10d                                                      ; +0x189, 0x1800df0f9\njmp     short loc_1800DF105                                            ; +0x18d, 0x1800df0fd\nmov     r9d, 4                                                         ; +0x18f, 0x1800df0ff\nmov     ecx, eax                                                       ; +0x195, 0x1800df105\nor      ecx, 1                                                         ; +0x197, 0x1800df107\ncmp     [rbx+14h], edx                                                 ; +0x19a, 0x1800df10a\ncmovz   ecx, eax                                                       ; +0x19d, 0x1800df10d\nmov     eax, [rbx+20h]                                                 ; +0x1a0, 0x1800df110\nmov     r8d, ecx                                                       ; +0x1a3, 0x1800df113\ntest    eax, eax                                                       ; +0x1a6, 0x1800df116\njz      short loc_1800DF151                                            ; +0x1a8, 0x1800df118\ncmp     cs:dword_1801B61D4, edx                                        ; +0x1aa, 0x1800df11a\njz      short loc_1800DF151                                            ; +0x1b0, 0x1800df120\ncmp     eax, 31001h                                                    ; +0x1b2, 0x1800df122\njnz     short loc_1800DF133                                            ; +0x1b7, 0x1800df127\nmov     [rsp+118h+var_C8+4], 8261h                                     ; +0x1b9, 0x1800df129\njmp     short loc_1800DF142                                            ; +0x1c1, 0x1800df131\ncmp     eax, 31002h                                                    ; +0x1c3, 0x1800df133\njnz     short loc_1800DF14D                                            ; +0x1c8, 0x1800df138\nmov     [rsp+118h+var_C8+4], 8252h                                     ; +0x1ca, 0x1800df13a\nmov     edx, r10d                                                      ; +0x1d2, 0x1800df142\nmov     [rsp+118h+var_C8], 8256h                                       ; +0x1d5, 0x1800df145\nor      r8d, 4                                                         ; +0x1dd, 0x1800df14d\nmov     eax, [rbx+24h]                                                 ; +0x1e1, 0x1800df151\ntest    eax, eax                                                       ; +0x1e4, 0x1800df154\njz      short loc_1800DF19E                                            ; +0x1e6, 0x1800df156\ncmp     cs:dword_1801B61DC, 0                                          ; +0x1e8, 0x1800df158\njz      short loc_1800DF19E                                            ; +0x1ef, 0x1800df15f\ncmp     eax, 35002h                                                    ; +0x1f1, 0x1800df161\njnz     short loc_1800DF17F                                            ; +0x1f6, 0x1800df166\nmov     eax, edx                                                       ; +0x1f8, 0x1800df168\nlea     ecx, [rdx+1]                                                   ; +0x1fa, 0x1800df16a\nmov     [rsp+rax*4+118h+var_C8], 2097h                                 ; +0x1fd, 0x1800df16d\nmov     [rsp+rcx*4+118h+var_C8], 0                                     ; +0x205, 0x1800df175\njmp     short loc_1800DF19B                                            ; +0x20d, 0x1800df17d\ncmp     eax, 35001h                                                    ; +0x20f, 0x1800df17f\njnz     short loc_1800DF19E                                            ; +0x214, 0x1800df184\nmov     eax, edx                                                       ; +0x216, 0x1800df186\nlea     ecx, [rdx+1]                                                   ; +0x218, 0x1800df188\nmov     [rsp+rax*4+118h+var_C8], 2097h                                 ; +0x21b, 0x1800df18b\nmov     [rsp+rcx*4+118h+var_C8], 2098h                                 ; +0x223, 0x1800df193\nlea     edx, [rcx+1]                                                   ; +0x22b, 0x1800df19b\ncmp     dword ptr [rbx+18h], 0                                         ; +0x22e, 0x1800df19e\njz      short loc_1800DF1C5                                            ; +0x232, 0x1800df1a2\ncmp     cs:dword_1801B61D8, 0                                          ; +0x234, 0x1800df1a4\njz      short loc_1800DF1C5                                            ; +0x23b, 0x1800df1ab\nmov     eax, edx                                                       ; +0x23d, 0x1800df1ad\nlea     ecx, [rdx+1]                                                   ; +0x23f, 0x1800df1af\nlea     edx, [rcx+1]                                                   ; +0x242, 0x1800df1b2\nmov     [rsp+rax*4+118h+var_C8], 31B3h                                 ; +0x245, 0x1800df1b5\nmov     [rsp+rcx*4+118h+var_C8], 1                                     ; +0x24d, 0x1800df1bd\nmov     ecx, [rbx+8]                                                   ; +0x255, 0x1800df1c5\ncmp     ecx, 1                                                         ; +0x258, 0x1800df1c8\njnz     short loc_1800DF1D3                                            ; +0x25b, 0x1800df1cb\ncmp     dword ptr [rbx+0Ch], 0                                         ; +0x25d, 0x1800df1cd\njz      short loc_1800DF201                                            ; +0x261, 0x1800df1d1\nmov     eax, edx                                                       ; +0x263, 0x1800df1d3\ninc     edx                                                            ; +0x265, 0x1800df1d5\nmov     [rsp+rax*4+118h+var_C8], 2091h                                 ; +0x267, 0x1800df1d7\nmovsxd  rax, edx                                                       ; +0x26f, 0x1800df1df\ninc     edx                                                            ; +0x272, 0x1800df1e2\nmov     [rsp+rax*4+118h+var_C8], ecx                                   ; +0x274, 0x1800df1e4\nmovsxd  rax, edx                                                       ; +0x278, 0x1800df1e8\ninc     edx                                                            ; +0x27b, 0x1800df1eb\nmovsxd  rcx, edx                                                       ; +0x27d, 0x1800df1ed\ninc     edx                                                            ; +0x280, 0x1800df1f0\nmov     [rsp+rax*4+118h+var_C8], 2092h                                 ; +0x282, 0x1800df1f2\nmov     eax, [rbx+0Ch]                                                 ; +0x28a, 0x1800df1fa\nmov     [rsp+rcx*4+118h+var_C8], eax                                   ; +0x28d, 0x1800df1fd\ntest    r8d, r8d                                                       ; +0x291, 0x1800df201\njz      short loc_1800DF21D                                            ; +0x294, 0x1800df204\nmovsxd  rax, edx                                                       ; +0x296, 0x1800df206\ninc     edx                                                            ; +0x299, 0x1800df209\nmov     [rsp+rax*4+118h+var_C8], 2094h                                 ; +0x29b, 0x1800df20b\nmovsxd  rax, edx                                                       ; +0x2a3, 0x1800df213\ninc     edx                                                            ; +0x2a6, 0x1800df216\nmov     [rsp+rax*4+118h+var_C8], r8d                                   ; +0x2a8, 0x1800df218\ntest    r9d, r9d                                                       ; +0x2ad, 0x1800df21d\njz      short loc_1800DF239                                            ; +0x2b0, 0x1800df220\nmovsxd  rax, edx                                                       ; +0x2b2, 0x1800df222\ninc     edx                                                            ; +0x2b5, 0x1800df225\nmov     [rsp+rax*4+118h+var_C8], 9126h                                 ; +0x2b7, 0x1800df227\nmovsxd  rax, edx                                                       ; +0x2bf, 0x1800df22f\ninc     edx                                                            ; +0x2c2, 0x1800df232\nmov     [rsp+rax*4+118h+var_C8], r9d                                   ; +0x2c4, 0x1800df234\nmov     rcx, [rdi+278h]                                                ; +0x2c9, 0x1800df239\nlea     r8, [rsp+118h+var_C8]                                          ; +0x2d0, 0x1800df240\nmovsxd  rax, edx                                                       ; +0x2d5, 0x1800df245\nmov     rdx, rbp                                                       ; +0x2d8, 0x1800df248\nmov     qword ptr [rsp+rax*4+118h+var_C8], 0                           ; +0x2db, 0x1800df24b\ncall    cs:qword_1801B61A8                                             ; +0x2e4, 0x1800df254\nmov     [rdi+280h], rax                                                ; +0x2ea, 0x1800df25a\ntest    rax, rax                                                       ; +0x2f1, 0x1800df261\njnz     loc_1800DF352                                                  ; +0x2f4, 0x1800df264\ncall    cs:GetLastError                                                ; +0x2fa, 0x1800df26a\ncmp     eax, 0C0072095h                                                ; +0x300, 0x1800df270\njnz     short loc_1800DF2A6                                            ; +0x305, 0x1800df275\ncmp     dword ptr [rbx], 30001h                                        ; +0x307, 0x1800df277\nlea     rax, aWglDriverDoesN; \"WGL: Driver does not support OpenGL ES \"... ; +0x30d, 0x1800df27d\nmov     r9d, [rbx+0Ch]                                                 ; +0x314, 0x1800df284\nlea     rdx, aWglDriverDoesN_0; \"WGL: Driver does not support OpenGL ver\"... ; +0x318, 0x1800df288\nmov     r8d, [rbx+8]                                                   ; +0x31f, 0x1800df28f\ncmovnz  rdx, rax                                                       ; +0x323, 0x1800df293\nmov     ecx, 10007h                                                    ; +0x327, 0x1800df297\ncall    sub_1800DB260                                                  ; +0x32c, 0x1800df29c\njmp     loc_1800DF3BE                                                  ; +0x331, 0x1800df2a1\ncmp     eax, 0C0072096h                                                ; +0x336, 0x1800df2a6\njnz     short loc_1800DF2BE                                            ; +0x33b, 0x1800df2ab\nlea     rdx, aWglDriverDoesN_1; \"WGL: Driver does not support the reques\"... ; +0x33d, 0x1800df2ad\nmov     ecx, 10007h                                                    ; +0x344, 0x1800df2b4\njmp     loc_1800DF3B9                                                  ; +0x349, 0x1800df2b9\ncmp     eax, 0C0072054h                                                ; +0x34e, 0x1800df2be\njnz     short loc_1800DF2D6                                            ; +0x353, 0x1800df2c3\nlea     rdx, aWglTheShareCon; \"WGL: The share context is not compatibl\"... ; +0x355, 0x1800df2c5\nmov     ecx, 10004h                                                    ; +0x35c, 0x1800df2cc\njmp     loc_1800DF3B9                                                  ; +0x361, 0x1800df2d1\ncmp     dword ptr [rbx], 30001h                                        ; +0x366, 0x1800df2d6\nmov     ecx, 10007h                                                    ; +0x36c, 0x1800df2dc\njnz     short loc_1800DF2EF                                            ; +0x371, 0x1800df2e1\nlea     rdx, aWglFailedToCre; \"WGL: Failed to create OpenGL context\"   ; +0x373, 0x1800df2e3\njmp     loc_1800DF3B9                                                  ; +0x37a, 0x1800df2ea\nlea     rdx, aWglFailedToCre_0; \"WGL: Failed to create OpenGL ES context\" ; +0x37f, 0x1800df2ef\njmp     loc_1800DF3B9                                                  ; +0x386, 0x1800df2f6\nmov     rcx, [rdi+278h]                                                ; +0x38b, 0x1800df2fb\ncall    cs:qword_1801B6150                                             ; +0x392, 0x1800df302\nmov     [rdi+280h], rax                                                ; +0x398, 0x1800df308\ntest    rax, rax                                                       ; +0x39f, 0x1800df30f\njnz     short loc_1800DF32A                                            ; +0x3a2, 0x1800df312\nlea     rdx, aWglFailedToCre; \"WGL: Failed to create OpenGL context\"   ; +0x3a4, 0x1800df314\nmov     ecx, 10007h                                                    ; +0x3ab, 0x1800df31b\ncall    sub_1800E1AF0                                                  ; +0x3b0, 0x1800df320\njmp     loc_1800DF3BE                                                  ; +0x3b5, 0x1800df325\ntest    rbp, rbp                                                       ; +0x3ba, 0x1800df32a\njz      short loc_1800DF352                                            ; +0x3bd, 0x1800df32d\nmov     rdx, rax                                                       ; +0x3bf, 0x1800df32f\nmov     rcx, rbp                                                       ; +0x3c2, 0x1800df332\ncall    cs:qword_1801B6180                                             ; +0x3c5, 0x1800df335\ntest    eax, eax                                                       ; +0x3cb, 0x1800df33b\njnz     short loc_1800DF352                                            ; +0x3cd, 0x1800df33d\nlea     rdx, aWglFailedToEna; \"WGL: Failed to enable sharing with spec\"... ; +0x3cf, 0x1800df33f\nmov     ecx, 10008h                                                    ; +0x3d6, 0x1800df346\ncall    sub_1800E1AF0                                                  ; +0x3db, 0x1800df34b\njmp     short loc_1800DF3BE                                            ; +0x3e0, 0x1800df350\nlea     rcx, sub_1800E0100                                             ; +0x3e2, 0x1800df352\nmov     eax, 1                                                         ; +0x3e9, 0x1800df359\nmov     [rdi+248h], rcx                                                ; +0x3ee, 0x1800df35e\nlea     rcx, sub_1800E0170                                             ; +0x3f5, 0x1800df365\nmov     [rdi+250h], rcx                                                ; +0x3fc, 0x1800df36c\nlea     rcx, sub_1800E0200                                             ; +0x403, 0x1800df373\nmov     [rdi+258h], rcx                                                ; +0x40a, 0x1800df37a\nlea     rcx, sub_1800E0080                                             ; +0x411, 0x1800df381\nmov     [rdi+260h], rcx                                                ; +0x418, 0x1800df388\nlea     rcx, sub_1800E00D0                                             ; +0x41f, 0x1800df38f\nmov     [rdi+268h], rcx                                                ; +0x426, 0x1800df396\nlea     rcx, sub_1800E0050                                             ; +0x42d, 0x1800df39d\nmov     [rdi+270h], rcx                                                ; +0x434, 0x1800df3a4\njmp     short loc_1800DF3C0                                            ; +0x43b, 0x1800df3ab\nlea     rdx, aWglOpenglEsReq; \"WGL: OpenGL ES requested but WGL_ARB_cr\"... ; +0x43d, 0x1800df3ad\nmov     ecx, 10006h                                                    ; +0x444, 0x1800df3b4\ncall    sub_1800DB260                                                  ; +0x449, 0x1800df3b9\nxor     eax, eax                                                       ; +0x44e, 0x1800df3be\nmov     rcx, [rsp+118h+var_28]                                         ; +0x450, 0x1800df3c0\nxor     rcx, rsp; StackCookie                                          ; +0x458, 0x1800df3c8\ncall    __security_check_cookie                                        ; +0x45b, 0x1800df3cb\nmov     rbx, [rsp+118h+arg_18]                                         ; +0x460, 0x1800df3d0\nadd     rsp, 100h                                                      ; +0x468, 0x1800df3d8\npop     rdi                                                            ; +0x46f, 0x1800df3df\npop     rsi                                                            ; +0x470, 0x1800df3e0\npop     rbp                                                            ; +0x471, 0x1800df3e1\nretn                                                                   ; +0x472, 0x1800df3e2", "xrefs": ["sub_1800D7E10 @ 0x1800d7e69", "<???> @ 0x1801c5028"], "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"}