// // sub_1005DFF4C from 0x1005dff4c to 0x1005e004c (256 bytes) // // 1 xrefs: // > sub_100586300 @ 0x1005863d0 // // 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 // _BYTE *__fastcall sub_1005DFF4C(_BYTE *a1, unsigned __int64 a2) { char *v4; // x0 char *v5; // x21 if ( sub_10058A020() || (v4 = getenv("RANDFILE"), (v5 = v4) == nullptr) ) { v5 = nullptr; } else if ( *v4 && strlen(v4) + 1 < a2 ) { if ( sub_1005DA340(a1, v5, a2) >= a2 ) return nullptr; return a1; } if ( !sub_10058A020() ) v5 = getenv("HOME"); if ( v5 && *v5 && strlen(v5) + 6 < a2 ) { sub_1005DA340(a1, v5, a2); sub_1005DA3A8((__int64)a1, "/", a2); sub_1005DA3A8((__int64)a1, ".rnd", a2); } else { *a1 = 0; } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source