{"type": "func", "start": 785062, "end": 785086, "name": "sub_BFAA6", "pseudocode": "// \n// sub_BFAA6 from 0xbfaa6 to 0xbfabe (24 bytes)\n// \n// 0 xrefs:\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_BFAA6(int a1)\n{\n  int result; // r0\n\n  result = fclose(*(FILE **)(a1 + 4));\n  *(_DWORD *)(a1 + 4) = 0;\n  if ( result )\n    return 13;\n  return result;\n}", "assembly": "; \n; sub_BFAA6 from 0xbfaa6 to 0xbfabe (24 bytes)\n; \n; 0 xrefs:\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            {R4,R6,R7,LR}                                          ; +0x0, 0xbfaa6\nADD             R7, SP, #8                                             ; +0x2, 0xbfaa8\nMOV             R4, R0                                                 ; +0x4, 0xbfaaa\nLDR             R0, [R0,#4]; stream                                    ; +0x6, 0xbfaac\nBLX             fclose                                                 ; +0x8, 0xbfaae\nMOVS            R1, #0                                                 ; +0xc, 0xbfab2\nCMP             R0, #0                                                 ; +0xe, 0xbfab4\nSTR             R1, [R4,#4]                                            ; +0x10, 0xbfab6\nIT NE                                                                  ; +0x12, 0xbfab8\nMOVNE           R0, #0xD                                               ; +0x14, 0xbfaba\nPOP             {R4,R6,R7,PC}                                          ; +0x16, 0xbfabc", "xrefs": [], "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"}