{"type": "func", "start": 6443368704, "end": 6443368804, "name": "sub_1800E0100", "pseudocode": "// \n// sub_1800E0100 from 0x1800e0100 to 0x1800e0164 (100 bytes)\n// \n// 3 xrefs:\n// > sub_1800DEF70 @ 0x1800df352\n// > <???> @ 0x1801c50a0\n// > <???> @ 0x1801c50ac\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\nBOOL __fastcall sub_1800E0100(__int64 a1)\n{\n  void *v1; // rbx\n  const char *v2; // rdx\n\n  v1 = (void *)a1;\n  if ( !a1 )\n  {\n    if ( wglMakeCurrent(nullptr, nullptr) )\n    {\nLABEL_7:\n      v1 = nullptr;\n      return sub_1800DE130((__int64)&unk_1801B520C, v1);\n    }\n    v2 = \"WGL: Failed to clear current context\";\nLABEL_6:\n    sub_1800E1AF0(65544, v2);\n    goto LABEL_7;\n  }\n  if ( !wglMakeCurrent(*(HDC *)(a1 + 632), *(HGLRC *)(a1 + 640)) )\n  {\n    v2 = \"WGL: Failed to make context current\";\n    goto LABEL_6;\n  }\n  return sub_1800DE130((__int64)&unk_1801B520C, v1);\n}", "assembly": "; \n; sub_1800E0100 from 0x1800e0100 to 0x1800e0164 (100 bytes)\n; \n; 3 xrefs:\n; > sub_1800DEF70 @ 0x1800df352\n; > <???> @ 0x1801c50a0\n; > <???> @ 0x1801c50ac\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; \npush    rbx                                                            ; +0x0, 0x1800e0100\nsub     rsp, 20h                                                       ; +0x2, 0x1800e0102\nmov     rbx, rcx                                                       ; +0x6, 0x1800e0106\ntest    rcx, rcx                                                       ; +0x9, 0x1800e0109\njz      short loc_1800E012F                                            ; +0xc, 0x1800e010c\nmov     rdx, [rcx+280h]                                                ; +0xe, 0x1800e010e\nmov     rcx, [rcx+278h]                                                ; +0x15, 0x1800e0115\ncall    cs:wglMakeCurrent                                              ; +0x1c, 0x1800e011c\ntest    eax, eax                                                       ; +0x22, 0x1800e0122\njnz     short loc_1800E0150                                            ; +0x24, 0x1800e0124\nlea     rdx, aWglFailedToMak_0; \"WGL: Failed to make context current\"  ; +0x26, 0x1800e0126\njmp     short loc_1800E0144                                            ; +0x2d, 0x1800e012d\nxor     edx, edx                                                       ; +0x2f, 0x1800e012f\nxor     ecx, ecx                                                       ; +0x31, 0x1800e0131\ncall    cs:wglMakeCurrent                                              ; +0x33, 0x1800e0133\ntest    eax, eax                                                       ; +0x39, 0x1800e0139\njnz     short loc_1800E014E                                            ; +0x3b, 0x1800e013b\nlea     rdx, aWglFailedToCle; \"WGL: Failed to clear current context\"   ; +0x3d, 0x1800e013d\nmov     ecx, 10008h                                                    ; +0x44, 0x1800e0144\ncall    sub_1800E1AF0                                                  ; +0x49, 0x1800e0149\nxor     ebx, ebx                                                       ; +0x4e, 0x1800e014e\nmov     rdx, rbx                                                       ; +0x50, 0x1800e0150\nlea     rcx, unk_1801B520C                                             ; +0x53, 0x1800e0153\nadd     rsp, 20h                                                       ; +0x5a, 0x1800e015a\npop     rbx                                                            ; +0x5e, 0x1800e015e\njmp     sub_1800DE130                                                  ; +0x5f, 0x1800e015f", "xrefs": ["sub_1800DEF70 @ 0x1800df352", "<???> @ 0x1801c50a0", "<???> @ 0x1801c50ac"], "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"}