{"type": "func", "start": 6276500, "end": 6276586, "name": "FileOperation::readFile", "pseudocode": "// \n// FileOperation::readFile from 0x5fc594 to 0x5fc5ea (86 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\nvoid FileOperation::readFile()\n{\n  int v0; // r1\n  FILE *v1; // r6\n  char *filename; // [sp+4h] [bp-4h] BYREF\n  char v3[52]; // [sp+8h] [bp+0h] BYREF\n\n  FileOperation::getFilePath((FileOperation *)&filename, v0);\n  v1 = fopen(filename, (const char *)&aO1i2r3e45s7t89[4]);\n  memset(v3, 0, 0x32u);\n  if ( v1 )\n  {\n    fgets(v3, 50, v1);\n    fclose(v1);\n  }\n  sub_774008(&filename);\n}", "assembly": "; \n; FileOperation::readFile from 0x5fc594 to 0x5fc5ea (86 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, 0x5fc594\nSUB             SP, SP, #0x44                                          ; +0x2, 0x5fc596\nLDR             R4, =(__stack_chk_guard_ptr - 0x5FC5A2)                ; +0x4, 0x5fc598\nADD             R5, SP, #0x44+filename                                 ; +0x6, 0x5fc59a\nADD             R7, SP, #8                                             ; +0x8, 0x5fc59c\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xa, 0x5fc59e\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xc, 0x5fc5a0\nMOV             R0, R5; this                                           ; +0xe, 0x5fc5a2\nLDR             R3, [R4]                                               ; +0x10, 0x5fc5a4\nSTR             R3, [SP,#0x44+var_8]                                   ; +0x12, 0x5fc5a6\nBL              _ZN13FileOperation11getFilePathEv; FileOperation::getFilePath(void) ; +0x14, 0x5fc5a8\nLDR             R1, =(aO1i2r3e45s7t89+8 - 0x5FC5B4); \"r3e45s7t89g\"     ; +0x18, 0x5fc5ac\nLDR             R0, [SP,#0x44+filename]; filename                      ; +0x1a, 0x5fc5ae\nADD             R1, PC; \"r3e45s7t89g\" ; modes                          ; +0x1c, 0x5fc5b0\nBLX             fopen                                                  ; +0x1e, 0x5fc5b2\nMOVS            R1, #0; int                                            ; +0x22, 0x5fc5b6\nMOVS            R2, #0x32 ; '2'; size_t                                ; +0x24, 0x5fc5b8\nMOV             R6, R0                                                 ; +0x26, 0x5fc5ba\nMOV             R0, R7; void *                                         ; +0x28, 0x5fc5bc\nBLX             memset                                                 ; +0x2a, 0x5fc5be\nCBZ             R6, loc_5FC5D4                                         ; +0x2e, 0x5fc5c2\nMOV             R0, R7; s                                              ; +0x30, 0x5fc5c4\nMOVS            R1, #0x32 ; '2'; n                                     ; +0x32, 0x5fc5c6\nMOV             R2, R6; stream                                         ; +0x34, 0x5fc5c8\nBLX             fgets                                                  ; +0x36, 0x5fc5ca\nMOV             R0, R6; stream                                         ; +0x3a, 0x5fc5ce\nBLX             fclose                                                 ; +0x3c, 0x5fc5d0\nMOV             R0, R5                                                 ; +0x40, 0x5fc5d4\nBL              sub_774008                                             ; +0x42, 0x5fc5d6\nLDR             R2, [SP,#0x44+var_8]                                   ; +0x46, 0x5fc5da\nLDR             R3, [R4]                                               ; +0x48, 0x5fc5dc\nCMP             R2, R3                                                 ; +0x4a, 0x5fc5de\nBEQ             loc_5FC5E6                                             ; +0x4c, 0x5fc5e0\nBLX             __stack_chk_fail                                       ; +0x4e, 0x5fc5e2\nADD             SP, SP, #0x44 ; 'D'                                    ; +0x52, 0x5fc5e6\nPOP             {R4-R7,PC}                                             ; +0x54, 0x5fc5e8", "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"}