{"type": "func", "start": 785390, "end": 785440, "name": "sub_BFBEE", "pseudocode": "// \n// sub_BFBEE from 0xbfbee to 0xbfc20 (50 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_BFBEE(int a1, void *ptr, size_t a3, int a4)\n{\n  if ( fwrite(ptr, 1u, a3, *(FILE **)(a1 + 4)) != a3 || a4 && fflush(*(FILE **)(a1 + 4)) )\n    return 13;\n  else\n    return 0;\n}", "assembly": "; \n; sub_BFBEE from 0xbfbee to 0xbfc20 (50 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-R7,LR}                                             ; +0x0, 0xbfbee\nADD             R7, SP, #0xC                                           ; +0x2, 0xbfbf0\nPUSH.W          {R11}                                                  ; +0x4, 0xbfbf2\nMOV             R5, R3                                                 ; +0x8, 0xbfbf6\nLDR             R3, [R0,#4]; s                                         ; +0xa, 0xbfbf8\nMOV             R4, R0                                                 ; +0xc, 0xbfbfa\nMOV             R0, R1; ptr                                            ; +0xe, 0xbfbfc\nMOVS            R1, #1; size                                           ; +0x10, 0xbfbfe\nMOV             R6, R2                                                 ; +0x12, 0xbfc00\nBLX             fwrite                                                 ; +0x14, 0xbfc02\nCMP             R0, R6                                                 ; +0x18, 0xbfc06\nBNE             loc_BFC14                                              ; +0x1a, 0xbfc08\nCBZ             R5, loc_BFC18                                          ; +0x1c, 0xbfc0a\nLDR             R0, [R4,#4]; stream                                    ; +0x1e, 0xbfc0c\nBLX             fflush                                                 ; +0x20, 0xbfc0e\nCBZ             R0, loc_BFC18                                          ; +0x24, 0xbfc12\nMOVS            R0, #0xD                                               ; +0x26, 0xbfc14\nB               loc_BFC1A                                              ; +0x28, 0xbfc16\nMOVS            R0, #0                                                 ; +0x2a, 0xbfc18\nPOP.W           {R11}                                                  ; +0x2c, 0xbfc1a\nPOP             {R4-R7,PC}                                             ; +0x30, 0xbfc1e", "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"}