{"type": "func", "start": 6443361888, "end": 6443361955, "name": "sub_1800DE660", "pseudocode": "// \n// sub_1800DE660 from 0x1800de660 to 0x1800de6a3 (67 bytes)\n// \n// 4 xrefs:\n// > sub_1800DA2E0 @ 0x1800da344\n// > sub_1800DE0E0 @ 0x1800de461\n// > sub_1800DE0E0 @ 0x1800de4a7\n// > <???> @ 0x1801baeb4\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_1800DE660(__int64 a1, __int64 a2, __int64 a3)\n{\n  int result; // eax\n\n  if ( qword_1801AC168 )\n  {\n    result = eglTerminate(qword_1801AC168, a2, a3);\n    qword_1801AC168 = 0;\n  }\n  if ( qword_1801AC198 )\n  {\n    result = FreeLibrary(qword_1801AC198);\n    qword_1801AC198 = nullptr;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800DE660 from 0x1800de660 to 0x1800de6a3 (67 bytes)\n; \n; 4 xrefs:\n; > sub_1800DA2E0 @ 0x1800da344\n; > sub_1800DE0E0 @ 0x1800de461\n; > sub_1800DE0E0 @ 0x1800de4a7\n; > <???> @ 0x1801baeb4\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\nsub     rsp, 28h                                                       ; +0x0, 0x1800de660\nmov     rcx, cs:qword_1801AC168                                        ; +0x4, 0x1800de664\ntest    rcx, rcx                                                       ; +0xb, 0x1800de66b\njz      short loc_1800DE681                                            ; +0xe, 0x1800de66e\ncall    cs:eglTerminate                                                ; +0x10, 0x1800de670\nmov     cs:qword_1801AC168, 0                                          ; +0x16, 0x1800de676\nmov     rcx, cs:qword_1801AC198; hLibModule                            ; +0x21, 0x1800de681\ntest    rcx, rcx                                                       ; +0x28, 0x1800de688\njz      short loc_1800DE69E                                            ; +0x2b, 0x1800de68b\ncall    cs:FreeLibrary                                                 ; +0x2d, 0x1800de68d\nmov     cs:qword_1801AC198, 0                                          ; +0x33, 0x1800de693\nadd     rsp, 28h                                                       ; +0x3e, 0x1800de69e\nretn                                                                   ; +0x42, 0x1800de6a2", "xrefs": ["sub_1800DA2E0 @ 0x1800da344", "sub_1800DE0E0 @ 0x1800de461", "sub_1800DE0E0 @ 0x1800de4a7", "<???> @ 0x1801baeb4"], "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"}