// // sub_100737960 from 0x100737960 to 0x100737a38 (216 bytes) // // 3 xrefs: // > sub_100737578 @ 0x100737598 // > sub_100737618 @ 0x100737650 // > sub_100738840 @ 0x100738b20 // // 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 11:13:15 +0000 // char *__fastcall sub_100737960(__int64 a1, const char *a2, char *a3) { __int64 *v5; // x20 __int64 v6; // x0 char *result; // x0 const char *v8; // [xsp+28h] [xbp-38h] BYREF char *v9; // [xsp+30h] [xbp-30h] if ( !a3 ) return nullptr; if ( !a1 ) return getenv(a3); if ( !a2 ) { v5 = (__int64 *)(a1 + 16); LABEL_11: v8 = "default"; v9 = a3; v6 = sub_100705320(*v5, (__int64)&v8); if ( v6 ) return *(char **)(v6 + 16); return nullptr; } v8 = a2; v9 = a3; v5 = (__int64 *)(a1 + 16); v6 = sub_100705320(*(_QWORD *)(a1 + 16), (__int64)&v8); if ( v6 ) return *(char **)(v6 + 16); if ( strcmp(a2, "ENV") ) goto LABEL_11; result = getenv(a3); if ( !result ) goto LABEL_11; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source