// // sub_1001587D0 from 0x1001587d0 to 0x100158829 (89 bytes) // // 1 xrefs: // > sub_100158770 @ 0x100158774 // // This function is hookable on this platform (idp: pc, 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 12:25:05 +0000 // FILE *__fastcall sub_1001587D0(__int64 a1, const char *a2, unsigned int a3) { char v3; // cl const char *v4; // rax int v5; // edx v3 = 1; if ( (a3 & 3) == 1 ) { v4 = "rb"; } else if ( (a3 & 4) != 0 ) { v4 = "r+b"; } else { v4 = nullptr; v5 = (a3 >> 3) & 1; if ( v5 ) v4 = "wb"; v3 = v5; } if ( (a2 == nullptr) | (unsigned __int8)v3 ^ 1 ) return nullptr; else return fopen(a2, v4); }
GD Web Decomp Icon

GD Web Decomp

Raw Source