{"type": "func", "start": 785086, "end": 785142, "name": "sub_BFABE", "pseudocode": "// \n// sub_BFABE from 0xbfabe to 0xbfaf6 (56 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0xbfb12\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_BFABE(int a1, void *ptr, size_t a3, size_t *a4)\n{\n  size_t v7; // r0\n  int result; // r0\n  int v9; // r1\n\n  v7 = fread(ptr, 1u, a3, *(FILE **)(a1 + 4));\n  *a4 = v7;\n  if ( v7 == a3 )\n    return 0;\n  v9 = feof(*(FILE **)(a1 + 4));\n  result = 16;\n  if ( !v9 )\n    return 13;\n  return result;\n}", "assembly": "; \n; sub_BFABE from 0xbfabe to 0xbfaf6 (56 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0xbfb12\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, 0xbfabe\nADD             R7, SP, #0xC                                           ; +0x2, 0xbfac0\nPUSH.W          {R11}                                                  ; +0x4, 0xbfac2\nMOV             R5, R3                                                 ; +0x8, 0xbfac6\nLDR             R3, [R0,#4]; stream                                    ; +0xa, 0xbfac8\nMOV             R4, R0                                                 ; +0xc, 0xbfaca\nMOV             R0, R1; ptr                                            ; +0xe, 0xbfacc\nMOVS            R1, #1; size                                           ; +0x10, 0xbface\nMOV             R6, R2                                                 ; +0x12, 0xbfad0\nBLX             fread                                                  ; +0x14, 0xbfad2\nCMP             R0, R6                                                 ; +0x18, 0xbfad6\nSTR             R0, [R5]                                               ; +0x1a, 0xbfad8\nBNE             loc_BFAE0                                              ; +0x1c, 0xbfada\nMOVS            R0, #0                                                 ; +0x1e, 0xbfadc\nB               loc_BFAF0                                              ; +0x20, 0xbfade\nLDR             R0, [R4,#4]; stream                                    ; +0x22, 0xbfae0\nBLX             feof                                                   ; +0x24, 0xbfae2\nMOV             R1, R0                                                 ; +0x28, 0xbfae6\nMOVS            R0, #0x10                                              ; +0x2a, 0xbfae8\nCMP             R1, #0                                                 ; +0x2c, 0xbfaea\nIT EQ                                                                  ; +0x2e, 0xbfaec\nMOVEQ           R0, #0xD                                               ; +0x30, 0xbfaee\nPOP.W           {R11}                                                  ; +0x32, 0xbfaf0\nPOP             {R4-R7,PC}                                             ; +0x36, 0xbfaf4", "xrefs": ["<???> @ 0xbfb12"], "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"}