{"type": "func", "start": 6443731652, "end": 6443731716, "name": "__acrt_stdio_free_buffer_nolock", "pseudocode": "// \n// __acrt_stdio_free_buffer_nolock from 0x180138ac4 to 0x180138b04 (64 bytes)\n// \n// 4 xrefs:\n// > __acrt_uninitialize_stdio @ 0x18012f9a5\n// > _fclose_nolock @ 0x18012fa3a\n// > _lambda_b4f66040be5f354a654fb75160c27bfc_::operator @ 0x18013944b\n// > <???> @ 0x1802036ec\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 _acrt_stdio_free_buffer_nolock(__int64 a1)\n{\n  __int64 result; // rax\n\n  result = *(_DWORD *)(a1 + 20) >> 13;\n  if ( (*(_DWORD *)(a1 + 20) & 0x2000) != 0 )\n  {\n    result = *(_DWORD *)(a1 + 20) >> 6;\n    if ( (*(_DWORD *)(a1 + 20) & 0x40) != 0 )\n    {\n      free_base(*(void **)(a1 + 8));\n      _InterlockedAnd((volatile signed __int32 *)(a1 + 20), 0xFFFFFEBF);\n      *(_QWORD *)(a1 + 8) = 0;\n      *(_QWORD *)a1 = 0;\n      *(_DWORD *)(a1 + 16) = 0;\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; __acrt_stdio_free_buffer_nolock from 0x180138ac4 to 0x180138b04 (64 bytes)\n; \n; 4 xrefs:\n; > __acrt_uninitialize_stdio @ 0x18012f9a5\n; > _fclose_nolock @ 0x18012fa3a\n; > _lambda_b4f66040be5f354a654fb75160c27bfc_::operator @ 0x18013944b\n; > <???> @ 0x1802036ec\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, 0x180138ac4\nsub     rsp, 20h                                                       ; +0x2, 0x180138ac6\nmov     eax, [rcx+14h]                                                 ; +0x6, 0x180138aca\nmov     rbx, rcx                                                       ; +0x9, 0x180138acd\nshr     eax, 0Dh                                                       ; +0xc, 0x180138ad0\ntest    al, 1                                                          ; +0xf, 0x180138ad3\njz      short loc_180138AFE                                            ; +0x11, 0x180138ad5\nmov     eax, [rcx+14h]                                                 ; +0x13, 0x180138ad7\nshr     eax, 6                                                         ; +0x16, 0x180138ada\ntest    al, 1                                                          ; +0x19, 0x180138add\njz      short loc_180138AFE                                            ; +0x1b, 0x180138adf\nmov     rcx, [rcx+8]; Block                                            ; +0x1d, 0x180138ae1\ncall    _free_base                                                     ; +0x21, 0x180138ae5\nlock and dword ptr [rbx+14h], 0FFFFFEBFh                               ; +0x26, 0x180138aea\nxor     eax, eax                                                       ; +0x2e, 0x180138af2\nmov     [rbx+8], rax                                                   ; +0x30, 0x180138af4\nmov     [rbx], rax                                                     ; +0x34, 0x180138af8\nmov     [rbx+10h], eax                                                 ; +0x37, 0x180138afb\nadd     rsp, 20h                                                       ; +0x3a, 0x180138afe\npop     rbx                                                            ; +0x3e, 0x180138b02\nretn                                                                   ; +0x3f, 0x180138b03", "xrefs": ["__acrt_uninitialize_stdio @ 0x18012f9a5", "_fclose_nolock @ 0x18012fa3a", "_lambda_b4f66040be5f354a654fb75160c27bfc_::operator @ 0x18013944b", "<???> @ 0x1802036ec"], "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"}