//
// common_getenv_nolock from 0x180128d24 to 0x180128dad (137 bytes)
//
// 2 xrefs:
// > common_getenv @ 0x180128d0a
// > ??> @ 0x180202a38
//
// 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
//
const char *__fastcall common_getenv_nolock(char *String2)
{
const char **v2; // rax
const char **v3; // rdi
size_t v4; // rbx
const char *i; // rax
unsigned __int64 v6; // rcx
v2 = (const char **)unknown_libname_64();
v3 = v2;
if ( v2 && String2 )
{
v4 = -1;
do
++v4;
while ( String2[v4] );
for ( i = *v2; i; i = *v3 )
{
v6 = -1;
do
++v6;
while ( i[v6] );
if ( v6 > v4 && i[v4] == 61 && !strnicoll(i, String2, v4) )
return &(*v3)[v4 + 1];
++v3;
}
}
return nullptr;
}