{"type": "func", "start": 6443362848, "end": 6443362964, "name": "sub_1800DEA20", "pseudocode": "// \n// sub_1800DEA20 from 0x1800dea20 to 0x1800dea94 (116 bytes)\n// \n// 3 xrefs:\n// > sub_1800DDC10 @ 0x1800de0b1\n// > <???> @ 0x1801baef0\n// > <???> @ 0x1801baefc\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\nint __fastcall sub_1800DEA20(_QWORD *a1)\n{\n  HMODULE v2; // rcx\n  int result; // eax\n\n  v2 = (HMODULE)a1[85];\n  if ( v2 )\n  {\n    result = FreeLibrary(v2);\n    a1[85] = 0;\n  }\n  if ( a1[84] )\n  {\n    result = eglDestroySurface(qword_1801AC168);\n    a1[84] = 0;\n  }\n  if ( a1[83] )\n  {\n    result = eglDestroyContext(qword_1801AC168);\n    a1[83] = 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800DEA20 from 0x1800dea20 to 0x1800dea94 (116 bytes)\n; \n; 3 xrefs:\n; > sub_1800DDC10 @ 0x1800de0b1\n; > <???> @ 0x1801baef0\n; > <???> @ 0x1801baefc\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, 0x1800dea20\nsub     rsp, 20h                                                       ; +0x2, 0x1800dea22\nmov     rbx, rcx                                                       ; +0x6, 0x1800dea26\nmov     rcx, [rcx+2A8h]; hLibModule                                    ; +0x9, 0x1800dea29\ntest    rcx, rcx                                                       ; +0x10, 0x1800dea30\njz      short loc_1800DEA46                                            ; +0x13, 0x1800dea33\ncall    cs:FreeLibrary                                                 ; +0x15, 0x1800dea35\nmov     qword ptr [rbx+2A8h], 0                                        ; +0x1b, 0x1800dea3b\nmov     rdx, [rbx+2A0h]                                                ; +0x26, 0x1800dea46\ntest    rdx, rdx                                                       ; +0x2d, 0x1800dea4d\njz      short loc_1800DEA6A                                            ; +0x30, 0x1800dea50\nmov     rcx, cs:qword_1801AC168                                        ; +0x32, 0x1800dea52\ncall    cs:eglDestroySurface                                           ; +0x39, 0x1800dea59\nmov     qword ptr [rbx+2A0h], 0                                        ; +0x3f, 0x1800dea5f\nmov     rdx, [rbx+298h]                                                ; +0x4a, 0x1800dea6a\ntest    rdx, rdx                                                       ; +0x51, 0x1800dea71\njz      short loc_1800DEA8E                                            ; +0x54, 0x1800dea74\nmov     rcx, cs:qword_1801AC168                                        ; +0x56, 0x1800dea76\ncall    cs:eglDestroyContext                                           ; +0x5d, 0x1800dea7d\nmov     qword ptr [rbx+298h], 0                                        ; +0x63, 0x1800dea83\nadd     rsp, 20h                                                       ; +0x6e, 0x1800dea8e\npop     rbx                                                            ; +0x72, 0x1800dea92\nretn                                                                   ; +0x73, 0x1800dea93", "xrefs": ["sub_1800DDC10 @ 0x1800de0b1", "<???> @ 0x1801baef0", "<???> @ 0x1801baefc"], "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"}