{"type": "func", "start": 6443358864, "end": 6443358964, "name": "sub_1800DDA90", "pseudocode": "// \n// sub_1800DDA90 from 0x1800dda90 to 0x1800ddaf4 (100 bytes)\n// \n// 3 xrefs:\n// > sub_1800DC900 @ 0x1800dcce2\n// > <???> @ 0x1801bae3c\n// > <???> @ 0x1801bae48\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\nBOOL __fastcall sub_1800DDA90(__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_1800D99D0((__int64)&unk_1801AB18C, v1);\n    }\n    v2 = \"WGL: Failed to clear current context\";\nLABEL_6:\n    sub_1800D9BA0(0x10008u, 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_1800D99D0((__int64)&unk_1801AB18C, v1);\n}", "assembly": "; \n; sub_1800DDA90 from 0x1800dda90 to 0x1800ddaf4 (100 bytes)\n; \n; 3 xrefs:\n; > sub_1800DC900 @ 0x1800dcce2\n; > <???> @ 0x1801bae3c\n; > <???> @ 0x1801bae48\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\npush    rbx                                                            ; +0x0, 0x1800dda90\nsub     rsp, 20h                                                       ; +0x2, 0x1800dda92\nmov     rbx, rcx                                                       ; +0x6, 0x1800dda96\ntest    rcx, rcx                                                       ; +0x9, 0x1800dda99\njz      short loc_1800DDABF                                            ; +0xc, 0x1800dda9c\nmov     rdx, [rcx+280h]                                                ; +0xe, 0x1800dda9e\nmov     rcx, [rcx+278h]                                                ; +0x15, 0x1800ddaa5\ncall    cs:wglMakeCurrent                                              ; +0x1c, 0x1800ddaac\ntest    eax, eax                                                       ; +0x22, 0x1800ddab2\njnz     short loc_1800DDAE0                                            ; +0x24, 0x1800ddab4\nlea     rdx, aWglFailedToMak_0; \"WGL: Failed to make context current\"  ; +0x26, 0x1800ddab6\njmp     short loc_1800DDAD4                                            ; +0x2d, 0x1800ddabd\nxor     edx, edx                                                       ; +0x2f, 0x1800ddabf\nxor     ecx, ecx                                                       ; +0x31, 0x1800ddac1\ncall    cs:wglMakeCurrent                                              ; +0x33, 0x1800ddac3\ntest    eax, eax                                                       ; +0x39, 0x1800ddac9\njnz     short loc_1800DDADE                                            ; +0x3b, 0x1800ddacb\nlea     rdx, aWglFailedToCle; \"WGL: Failed to clear current context\"   ; +0x3d, 0x1800ddacd\nmov     ecx, 10008h                                                    ; +0x44, 0x1800ddad4\ncall    sub_1800D9BA0                                                  ; +0x49, 0x1800ddad9\nxor     ebx, ebx                                                       ; +0x4e, 0x1800ddade\nmov     rdx, rbx                                                       ; +0x50, 0x1800ddae0\nlea     rcx, unk_1801AB18C                                             ; +0x53, 0x1800ddae3\nadd     rsp, 20h                                                       ; +0x5a, 0x1800ddaea\npop     rbx                                                            ; +0x5e, 0x1800ddaee\njmp     sub_1800D99D0                                                  ; +0x5f, 0x1800ddaef", "xrefs": ["sub_1800DC900 @ 0x1800dcce2", "<???> @ 0x1801bae3c", "<???> @ 0x1801bae48"], "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"}