// // RAND_file_name from 0x104de24 to 0x104df2c (264 bytes) // // 3 xrefs: // > sub_E2DA90 @ 0xe2dc14 // > sub_E2FB90 @ 0xe2fc80 // > @ 0x102280 // // 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 13:16:37 +0000 // char *__fastcall RAND_file_name(char *a1, size_t a2) { char *v5; // x0 const char *v6; // x21 size_t v7; // x0 char *v8; // x0 if ( (unsigned int)OPENSSL_issetugid() ) goto LABEL_2; v5 = getenv("RANDFILE"); v6 = v5; if ( !v5 || !*v5 ) { v8 = getenv("HOME"); v6 = v8; if ( !v8 || !*v8 ) { LABEL_2: *a1 = 0; return nullptr; } v7 = strlen(v8); goto LABEL_7; } v7 = strlen(v5); if ( v7 + 1 >= a2 ) { LABEL_7: if ( a2 > v7 + 6 ) { OPENSSL_strlcpy(a1, v6, a2); OPENSSL_strlcat(a1, (const char *)&word_11BA098, a2); OPENSSL_strlcat(a1, ".rnd", a2); } goto LABEL_9; } if ( a2 <= OPENSSL_strlcpy(a1, v6, a2) ) return nullptr; LABEL_9: if ( !*a1 ) return nullptr; return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source