{"type": "func", "start": 6442587744, "end": 6442587816, "name": "sub_180021660", "pseudocode": "// \n// sub_180021660 from 0x180021660 to 0x1800216a8 (72 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800e7078\n// > <???> @ 0x1801aee30\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\n__int64 __fastcall sub_180021660(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_180021660 from 0x180021660 to 0x1800216a8 (72 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800e7078\n; > <???> @ 0x1801aee30\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, 0x180021660\nsub     rsp, 20h                                                       ; +0x2, 0x180021662\ncmp     qword ptr [rcx+80h], 0                                         ; +0x6, 0x180021666\nmov     rbx, rcx                                                       ; +0xe, 0x18002166e\njz      short loc_1800216A0                                            ; +0x11, 0x180021671\nmov     rax, [rcx]                                                     ; +0x13, 0x180021673\nmov     edx, 0FFFFFFFFh                                                ; +0x16, 0x180021676\ncall    qword ptr [rax+18h]                                            ; +0x1b, 0x18002167b\ncmp     eax, 0FFFFFFFFh                                                ; +0x1e, 0x18002167e\njz      short loc_1800216A0                                            ; +0x21, 0x180021681\nmov     rcx, [rbx+80h]; Stream                                         ; +0x23, 0x180021683\ncall    cs:fflush                                                      ; +0x2a, 0x18002168a\nxor     ecx, ecx                                                       ; +0x30, 0x180021690\ntest    eax, eax                                                       ; +0x32, 0x180021692\nsetns   cl                                                             ; +0x34, 0x180021694\nlea     eax, [rcx-1]                                                   ; +0x37, 0x180021697\nadd     rsp, 20h                                                       ; +0x3a, 0x18002169a\npop     rbx                                                            ; +0x3e, 0x18002169e\nretn                                                                   ; +0x3f, 0x18002169f\nxor     eax, eax                                                       ; +0x40, 0x1800216a0\nadd     rsp, 20h                                                       ; +0x42, 0x1800216a2\npop     rbx                                                            ; +0x46, 0x1800216a6\nretn                                                                   ; +0x47, 0x1800216a7", "xrefs": ["<???> @ 0x1800e7078", "<???> @ 0x1801aee30"], "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"}