{"name": "putenv", "code": "int __fastcall putenv ( const char * @@a1@@ ) { return _putenv ( @@a1@@ , Number ) ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "const char"}, "location": "r56"}]}
{"name": "__putenv", "code": "int __fastcall _putenv ( const char * @@a1@@ , int @@a2@@ ) { void * @@v3@@ ; void * @@dest@@ ; char * @@v5@@ ; int @@v6@@ ; int @@v7@@ ; @@v7@@ = Number ; @@v6@@ = Number ; @@v5@@ = strchr ( @@a1@@ , Number ) ; if ( ! @@v5@@ ) return unsetenv ( @@a1@@ ) ; if ( @@v5@@ == @@a1@@ ) return Number ; while ( _environ [ @@v7@@ ] && memcmp ( @@a1@@ , _environ [ @@v7@@ ] , @@v5@@ - @@a1@@ + Number ) ) ++ @@v7@@ ; if ( @@a2@@ ) { if ( _env_map ) { while ( * ( ( _QWORD * ) _env_map + @@v6@@ ) && * ( ( char * * ) _env_map + @@v6@@ ) != _environ [ @@v7@@ ] ) ++ @@v6@@ ; if ( * ( ( _QWORD * ) _env_map + @@v6@@ ) ) { free ( * ( ( void * * ) _env_map + @@v6@@ ) ) ; } else { @@v3@@ = realloc ( _env_map , Number L * ( @@v6@@ + Number ) ) ; if ( @@v3@@ ) { _env_map = @@v3@@ ; * ( ( _QWORD * ) @@v3@@ + @@v6@@ ) = @@a1@@ ; * ( ( _QWORD * ) _env_map + @@v6@@ + Number ) = Number L ; } } } else { _env_map = calloc ( Number , Number ) ; if ( _env_map ) * ( _QWORD * ) _env_map = @@a1@@ ; } } if ( _environ [ @@v7@@ ] ) goto LABEL_26 ; @@dest@@ = malloc ( Number L * ( @@v7@@ + Number ) ) ; if ( @@dest@@ ) { memcpy ( @@dest@@ , _environ , Number L * @@v7@@ ) ; * ( ( _QWORD * ) @@dest@@ + @@v7@@ ) = @@a1@@ ; * ( ( _QWORD * ) @@dest@@ + @@v7@@ + Number ) = Number L ; _environ = ( char * * ) @@dest@@ ; free ( oldenv_1709 ) ; oldenv_1709 = _environ ; LABEL_26 : _environ [ @@v7@@ ] = ( char * ) @@a1@@ ; return Number ; } if ( @@a2@@ ) { if ( _env_map ) * ( ( _QWORD * ) _env_map + @@v6@@ ) = Number L ; } return Number ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "const char"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "v7", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v6", "t": {"T": 1, "n": "int", "s": 4}, "location": "s16"}, {"n": "v5", "t": {"T": 3, "t": "char"}, "location": "s24"}, {"n": "dest", "t": {"T": 3, "t": "void"}, "location": "s32"}, {"n": "v3", "t": {"T": 3, "t": "void"}, "location": "s40"}]}