//
// common_getenv from 0x180128cc4 to 0x180128d21 (93 bytes)
//
// 2 xrefs:
// > common_getenv @ 0x180128f48
// > ??> @ 0x180202a2c
//
// 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 10:54:56 +0000
//
__int64 __fastcall common_getenv(char *String2)
{
__int64 v3; // rbx
if ( String2 && strnlen(String2, 0x7FFFu) < 0x7FFF )
{
sub_1801346AC(11);
v3 = common_getenv_nolock(String2);
sub_180134700(11);
return v3;
}
else
{
*errno() = 22;
invalid_parameter_noinfo();
return 0;
}
}