// // sub_1005DB750 from 0x1005db750 to 0x1005db80c (188 bytes) // // 4 xrefs: // > sub_1005743F8 @ 0x100574460 // > sub_1005D0DC0 @ 0x1005d0dcc // > sub_1005DFAD8 @ 0x1005dfc0c // > sub_1005E0FFC @ 0x1005e1104 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:09:37 +0000 // __int64 __fastcall sub_1005DB750(const char *a1, int a2, _DWORD *a3, FILE **a4) { FILE *v6; // x0 FILE *v7; // x21 FILE *v9; // x0 int v10; // w22 off_t v11; // x0 if ( a2 == 1 ) { v9 = fopen(a1, "wb"); if ( !v9 ) return 18; v7 = v9; LABEL_9: v10 = 0; LABEL_10: *a4 = v7; *a3 = v10; return 0; } if ( a2 ) { v7 = nullptr; goto LABEL_9; } v6 = fopen(a1, "rb"); if ( v6 ) { v7 = v6; if ( fseeko(v6, 0, 2) ) return 13; v11 = ftello(v7); if ( v11 < 0 ) return 13; v10 = v11; if ( fseeko(v7, 0, 0) ) return 13; goto LABEL_10; } return 18; }
GD Web Decomp Icon

GD Web Decomp

Raw Source