// // sub_B70A58 from 0xb70a58 to 0xb70b94 (316 bytes) // // 1 xrefs: // > @ 0x111c248 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall sub_B70A58(__int64 *a1, _BYTE *a2) { __int64 v2; // x20 __int64 v3; // x22 __int64 v6; // x25 unsigned int v7; // w19 int v9; // w0 unsigned int v10; // w3 __int64 v11; // x20 int v12; // w0 const char *v13; // [xsp+50h] [xbp+50h] size_t v14; // [xsp+58h] [xbp+58h] v2 = *a1; v3 = *a1 + 0x8000; v6 = *(_QWORD *)(*a1 + 536); v7 = sub_B8B660(*a1, *(char **)(*a1 + 36032)); if ( !v7 ) { if ( memchr(v13, 0, v14) ) { v7 = 3; ((void (__fastcall *)())off_1231008)(); } else { v9 = open(v13, 0); v10 = *(unsigned __int8 *)(v2 + 1569); *(_QWORD *)v6 = v13; *(_QWORD *)(v6 + 8) = v13; *(_DWORD *)(v6 + 16) = v9; if ( v10 < (v9 == -1) ) { sub_B7B690(v2, "Couldn't open file %s", *(const char **)(v3 + 3264)); v11 = *(_QWORD *)(*a1 + 536); if ( v11 ) { off_1231008(*(void **)(v11 + 8)); *(_QWORD *)(v11 + 8) = 0; v12 = *(_DWORD *)(v11 + 16); *(_QWORD *)v11 = 0; if ( v12 != -1 ) close(v12); v7 = 37; *(_DWORD *)(v11 + 16) = -1; } else { return 37; } } else { *a2 = 1; } } } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source