{"type": "func", "start": 6442588864, "end": 6442588936, "name": "sub_180021AC0", "pseudocode": "// \n// sub_180021AC0 from 0x180021ac0 to 0x180021b08 (72 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800ed0d8\n// > <???> @ 0x1801b8f14\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:21:28 +0000\n// \n\n__int64 __fastcall sub_180021AC0(FILE **a1)\n{\n  if ( !a1[16] || (*(unsigned int (__fastcall **)(FILE **, __int64))&(*a1)->_flag)(a1, 0xFFFFFFFFLL) == -1 )\n    return 0;\n  else\n    return (unsigned int)(fflush(a1[16]) >= 0) - 1;\n}", "assembly": "; \n; sub_180021AC0 from 0x180021ac0 to 0x180021b08 (72 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800ed0d8\n; > <???> @ 0x1801b8f14\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:21:28 +0000\n; \npush    rbx                                                            ; +0x0, 0x180021ac0\nsub     rsp, 20h                                                       ; +0x2, 0x180021ac2\ncmp     qword ptr [rcx+80h], 0                                         ; +0x6, 0x180021ac6\nmov     rbx, rcx                                                       ; +0xe, 0x180021ace\njz      short loc_180021B00                                            ; +0x11, 0x180021ad1\nmov     rax, [rcx]                                                     ; +0x13, 0x180021ad3\nmov     edx, 0FFFFFFFFh                                                ; +0x16, 0x180021ad6\ncall    qword ptr [rax+18h]                                            ; +0x1b, 0x180021adb\ncmp     eax, 0FFFFFFFFh                                                ; +0x1e, 0x180021ade\njz      short loc_180021B00                                            ; +0x21, 0x180021ae1\nmov     rcx, [rbx+80h]; Stream                                         ; +0x23, 0x180021ae3\ncall    cs:fflush                                                      ; +0x2a, 0x180021aea\nxor     ecx, ecx                                                       ; +0x30, 0x180021af0\ntest    eax, eax                                                       ; +0x32, 0x180021af2\nsetns   cl                                                             ; +0x34, 0x180021af4\nlea     eax, [rcx-1]                                                   ; +0x37, 0x180021af7\nadd     rsp, 20h                                                       ; +0x3a, 0x180021afa\npop     rbx                                                            ; +0x3e, 0x180021afe\nretn                                                                   ; +0x3f, 0x180021aff\nxor     eax, eax                                                       ; +0x40, 0x180021b00\nadd     rsp, 20h                                                       ; +0x42, 0x180021b02\npop     rbx                                                            ; +0x46, 0x180021b06\nretn                                                                   ; +0x47, 0x180021b07", "xrefs": ["<???> @ 0x1800ed0d8", "<???> @ 0x1801b8f14"], "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"}