
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int unbind_variable(char *name)

{
  SHELL_VAR *pSVar1;
  int iVar2;
  
  pSVar1 = var_lookup(name,shell_variables);
  if ((pSVar1 != (SHELL_VAR *)0x0) && ((pSVar1->attributes & 0x800) != 0)) {
    pSVar1 = find_variable_nameref(pSVar1);
    if (pSVar1 != (SHELL_VAR *)0x0) {
      iVar2 = makunbound(pSVar1->name,shell_variables);
      return iVar2;
    }
  }
  iVar2 = makunbound(name,shell_variables);
  return iVar2;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void unbind_variable(undefined4 param_1)

{
  int iVar1;
  undefined4 *puVar2;
  
  iVar1 = var_lookup(param_1,shell_variables);
  if ((iVar1 != 0) && ((*(byte *)(iVar1 + 0x15) & 8) != 0)) {
    puVar2 = (undefined4 *)find_variable_nameref(iVar1);
    if (puVar2 != (undefined4 *)0x0) {
      makunbound(*puVar2,shell_variables);
      return;
    }
  }
  makunbound(param_1,shell_variables);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00031ed0
ADD EBX,0xf2e79
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x18]
PUSH dword ptr [EBX + 0x5d10]
PUSH ESI
CALL 0x00051b30
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000571ad
TEST byte ptr [EAX + 0x15],0x8
JNZ 0x000571c8
SUB ESP,0x8
PUSH dword ptr [EBX + 0x5d10]
PUSH ESI
CALL 0x00056f60
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0xc
PUSH EAX
CALL 0x00051ce0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000571ad
SUB ESP,0x8
PUSH dword ptr [EBX + 0x5d10]
PUSH dword ptr [EAX]
CALL 0x00056f60
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid unbind_variable(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = var_lookup(param_1,shell_variables);\n  if ((iVar1 != 0) && ((*(byte *)(iVar1 + 0x15) & 8) != 0)) {\n    puVar2 = (undefined4 *)find_variable_nameref(iVar1);\n    if (puVar2 != (undefined4 *)0x0) {\n      makunbound(*puVar2,shell_variables);\n      return;\n    }\n  }\n  makunbound(param_1,shell_variables);\n  return;\n}\n\n" comment (function_definition "void unbind_variable(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = var_lookup(param_1,shell_variables);\n  if ((iVar1 != 0) && ((*(byte *)(iVar1 + 0x15) & 8) != 0)) {\n    puVar2 = (undefined4 *)find_variable_nameref(iVar1);\n    if (puVar2 != (undefined4 *)0x0) {\n      makunbound(*puVar2,shell_variables);\n      return;\n    }\n  }\n  makunbound(param_1,shell_variables);\n  return;\n}" primitive_type (function_declarator "unbind_variable(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = var_lookup(param_1,shell_variables);\n  if ((iVar1 != 0) && ((*(byte *)(iVar1 + 0x15) & 8) != 0)) {\n    puVar2 = (undefined4 *)find_variable_nameref(iVar1);\n    if (puVar2 != (undefined4 *)0x0) {\n      makunbound(*puVar2,shell_variables);\n      return;\n    }\n  }\n  makunbound(param_1,shell_variables);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "iVar1 = var_lookup(param_1,shell_variables);" (assignment_expression "iVar1 = var_lookup(param_1,shell_variables)" identifier = (call_expression "var_lookup(param_1,shell_variables)" identifier (argument_list "(param_1,shell_variables)" ( identifier , identifier )))) ;) (if_statement "if ((iVar1 != 0) && ((*(byte *)(iVar1 + 0x15) & 8) != 0)) {\n    puVar2 = (undefined4 *)find_variable_nameref(iVar1);\n    if (puVar2 != (undefined4 *)0x0) {\n      makunbound(*puVar2,shell_variables);\n      return;\n    }\n  }" if (parenthesized_expression "((iVar1 != 0) && ((*(byte *)(iVar1 + 0x15) & 8) != 0))" ( (binary_expression "(iVar1 != 0) && ((*(byte *)(iVar1 + 0x15) & 8) != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "((*(byte *)(iVar1 + 0x15) & 8) != 0)" ( (binary_expression "(*(byte *)(iVar1 + 0x15) & 8) != 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x15) & 8)" ( (binary_expression "*(byte *)(iVar1 + 0x15) & 8" (pointer_expression "*(byte *)(iVar1 + 0x15)" * (cast_expression "(byte *)(iVar1 + 0x15)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x15)" ( (binary_expression "iVar1 + 0x15" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    puVar2 = (undefined4 *)find_variable_nameref(iVar1);\n    if (puVar2 != (undefined4 *)0x0) {\n      makunbound(*puVar2,shell_variables);\n      return;\n    }\n  }" { (expression_statement "puVar2 = (undefined4 *)find_variable_nameref(iVar1);" (assignment_expression "puVar2 = (undefined4 *)find_variable_nameref(iVar1)" identifier = (cast_expression "(undefined4 *)find_variable_nameref(iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "find_variable_nameref(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))))) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n      makunbound(*puVar2,shell_variables);\n      return;\n    }" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      makunbound(*puVar2,shell_variables);\n      return;\n    }" { (expression_statement "makunbound(*puVar2,shell_variables);" (call_expression "makunbound(*puVar2,shell_variables)" identifier (argument_list "(*puVar2,shell_variables)" ( (pointer_expression "*puVar2" * identifier) , identifier ))) ;) (return_statement "return;" return ;) })) })) (expression_statement "makunbound(param_1,shell_variables);" (call_expression "makunbound(param_1,shell_variables)" identifier (argument_list "(param_1,shell_variables)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint unbind_variable(char *name)\n\n{\n  SHELL_VAR *pSVar1;\n  int iVar2;\n  \n  pSVar1 = var_lookup(name,shell_variables);\n  if ((pSVar1 != (SHELL_VAR *)0x0) && ((pSVar1->attributes & 0x800) != 0)) {\n    pSVar1 = find_variable_nameref(pSVar1);\n    if (pSVar1 != (SHELL_VAR *)0x0) {\n      iVar2 = makunbound(pSVar1->name,shell_variables);\n      return iVar2;\n    }\n  }\n  iVar2 = makunbound(name,shell_variables);\n  return iVar2;\n}\n\n" comment comment (function_definition "int unbind_variable(char *name)\n\n{\n  SHELL_VAR *pSVar1;\n  int iVar2;\n  \n  pSVar1 = var_lookup(name,shell_variables);\n  if ((pSVar1 != (SHELL_VAR *)0x0) && ((pSVar1->attributes & 0x800) != 0)) {\n    pSVar1 = find_variable_nameref(pSVar1);\n    if (pSVar1 != (SHELL_VAR *)0x0) {\n      iVar2 = makunbound(pSVar1->name,shell_variables);\n      return iVar2;\n    }\n  }\n  iVar2 = makunbound(name,shell_variables);\n  return iVar2;\n}" primitive_type (function_declarator "unbind_variable(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  SHELL_VAR *pSVar1;\n  int iVar2;\n  \n  pSVar1 = var_lookup(name,shell_variables);\n  if ((pSVar1 != (SHELL_VAR *)0x0) && ((pSVar1->attributes & 0x800) != 0)) {\n    pSVar1 = find_variable_nameref(pSVar1);\n    if (pSVar1 != (SHELL_VAR *)0x0) {\n      iVar2 = makunbound(pSVar1->name,shell_variables);\n      return iVar2;\n    }\n  }\n  iVar2 = makunbound(name,shell_variables);\n  return iVar2;\n}" { (declaration "SHELL_VAR *pSVar1;" type_identifier (pointer_declarator "*pSVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "pSVar1 = var_lookup(name,shell_variables);" (assignment_expression "pSVar1 = var_lookup(name,shell_variables)" identifier = (call_expression "var_lookup(name,shell_variables)" identifier (argument_list "(name,shell_variables)" ( identifier , identifier )))) ;) (if_statement "if ((pSVar1 != (SHELL_VAR *)0x0) && ((pSVar1->attributes & 0x800) != 0)) {\n    pSVar1 = find_variable_nameref(pSVar1);\n    if (pSVar1 != (SHELL_VAR *)0x0) {\n      iVar2 = makunbound(pSVar1->name,shell_variables);\n      return iVar2;\n    }\n  }" if (parenthesized_expression "((pSVar1 != (SHELL_VAR *)0x0) && ((pSVar1->attributes & 0x800) != 0))" ( (binary_expression "(pSVar1 != (SHELL_VAR *)0x0) && ((pSVar1->attributes & 0x800) != 0)" (parenthesized_expression "(pSVar1 != (SHELL_VAR *)0x0)" ( (binary_expression "pSVar1 != (SHELL_VAR *)0x0" identifier != (cast_expression "(SHELL_VAR *)0x0" ( (type_descriptor "SHELL_VAR *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((pSVar1->attributes & 0x800) != 0)" ( (binary_expression "(pSVar1->attributes & 0x800) != 0" (parenthesized_expression "(pSVar1->attributes & 0x800)" ( (binary_expression "pSVar1->attributes & 0x800" (field_expression "pSVar1->attributes" identifier -> field_identifier) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    pSVar1 = find_variable_nameref(pSVar1);\n    if (pSVar1 != (SHELL_VAR *)0x0) {\n      iVar2 = makunbound(pSVar1->name,shell_variables);\n      return iVar2;\n    }\n  }" { (expression_statement "pSVar1 = find_variable_nameref(pSVar1);" (assignment_expression "pSVar1 = find_variable_nameref(pSVar1)" identifier = (call_expression "find_variable_nameref(pSVar1)" identifier (argument_list "(pSVar1)" ( identifier )))) ;) (if_statement "if (pSVar1 != (SHELL_VAR *)0x0) {\n      iVar2 = makunbound(pSVar1->name,shell_variables);\n      return iVar2;\n    }" if (parenthesized_expression "(pSVar1 != (SHELL_VAR *)0x0)" ( (binary_expression "pSVar1 != (SHELL_VAR *)0x0" identifier != (cast_expression "(SHELL_VAR *)0x0" ( (type_descriptor "SHELL_VAR *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar2 = makunbound(pSVar1->name,shell_variables);\n      return iVar2;\n    }" { (expression_statement "iVar2 = makunbound(pSVar1->name,shell_variables);" (assignment_expression "iVar2 = makunbound(pSVar1->name,shell_variables)" identifier = (call_expression "makunbound(pSVar1->name,shell_variables)" identifier (argument_list "(pSVar1->name,shell_variables)" ( (field_expression "pSVar1->name" identifier -> field_identifier) , identifier )))) ;) (return_statement "return iVar2;" return identifier ;) })) })) (expression_statement "iVar2 = makunbound(name,shell_variables);" (assignment_expression "iVar2 = makunbound(name,shell_variables)" identifier = (call_expression "makunbound(name,shell_variables)" identifier (argument_list "(name,shell_variables)" ( identifier , identifier )))) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "void unbind_variable(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = var_lookup(param_1,shell_variables);\n  if ((iVar1 != 0) && ((*(byte *)(iVar1 + 0x15) & 8) != 0)) {\n    puVar2 = (undefined4 *)find_variable_nameref(iVar1);\n    if (puVar2 != (undefined4 *)0x0) {\n      makunbound(*puVar2,shell_variables);\n      return;\n    }\n  }\n  makunbound(param_1,shell_variables);\n  return;\n}\n\n" (function_definition "void unbind_variable(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = var_lookup(param_1,shell_variables);\n  if ((iVar1 != 0) && ((*(byte *)(iVar1 + 0x15) & 8) != 0)) {\n    puVar2 = (undefined4 *)find_variable_nameref(iVar1);\n    if (puVar2 != (undefined4 *)0x0) {\n      makunbound(*puVar2,shell_variables);\n      return;\n    }\n  }\n  makunbound(param_1,shell_variables);\n  return;\n}" primitive_type (function_declarator "unbind_variable(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = var_lookup(param_1,shell_variables);\n  if ((iVar1 != 0) && ((*(byte *)(iVar1 + 0x15) & 8) != 0)) {\n    puVar2 = (undefined4 *)find_variable_nameref(iVar1);\n    if (puVar2 != (undefined4 *)0x0) {\n      makunbound(*puVar2,shell_variables);\n      return;\n    }\n  }\n  makunbound(param_1,shell_variables);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "iVar1 = var_lookup(param_1,shell_variables);" (assignment_expression "iVar1 = var_lookup(param_1,shell_variables)" identifier = (call_expression "var_lookup(param_1,shell_variables)" identifier (argument_list "(param_1,shell_variables)" ( identifier , identifier )))) ;) (if_statement "if ((iVar1 != 0) && ((*(byte *)(iVar1 + 0x15) & 8) != 0)) {\n    puVar2 = (undefined4 *)find_variable_nameref(iVar1);\n    if (puVar2 != (undefined4 *)0x0) {\n      makunbound(*puVar2,shell_variables);\n      return;\n    }\n  }" if (parenthesized_expression "((iVar1 != 0) && ((*(byte *)(iVar1 + 0x15) & 8) != 0))" ( (binary_expression "(iVar1 != 0) && ((*(byte *)(iVar1 + 0x15) & 8) != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "((*(byte *)(iVar1 + 0x15) & 8) != 0)" ( (binary_expression "(*(byte *)(iVar1 + 0x15) & 8) != 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x15) & 8)" ( (binary_expression "*(byte *)(iVar1 + 0x15) & 8" (pointer_expression "*(byte *)(iVar1 + 0x15)" * (cast_expression "(byte *)(iVar1 + 0x15)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x15)" ( (binary_expression "iVar1 + 0x15" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    puVar2 = (undefined4 *)find_variable_nameref(iVar1);\n    if (puVar2 != (undefined4 *)0x0) {\n      makunbound(*puVar2,shell_variables);\n      return;\n    }\n  }" { (expression_statement "puVar2 = (undefined4 *)find_variable_nameref(iVar1);" (assignment_expression "puVar2 = (undefined4 *)find_variable_nameref(iVar1)" identifier = (cast_expression "(undefined4 *)find_variable_nameref(iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "find_variable_nameref(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))))) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n      makunbound(*puVar2,shell_variables);\n      return;\n    }" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      makunbound(*puVar2,shell_variables);\n      return;\n    }" { (expression_statement "makunbound(*puVar2,shell_variables);" (call_expression "makunbound(*puVar2,shell_variables)" identifier (argument_list "(*puVar2,shell_variables)" ( (pointer_expression "*puVar2" * identifier) , identifier ))) ;) (return_statement "return;" return ;) })) })) (expression_statement "makunbound(param_1,shell_variables);" (call_expression "makunbound(param_1,shell_variables)" identifier (argument_list "(param_1,shell_variables)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT ))) ;) (return_statement return ;) })) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void unbind_variable(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = var_lookup(param_1,shell_variables);\n  if ((iVar1 != 0) && ((*(byte *)(iVar1 + 0x15) & 8) != 0)) {\n    puVar2 = (undefined4 *)find_variable_nameref(iVar1);\n    if (puVar2 != (undefined4 *)0x0) {\n      makunbound(*puVar2,shell_variables);\n      return;\n    }\n  }\n  makunbound(param_1,shell_variables);\n  return;\n}" (primitive_type "void") (function_declarator "unbind_variable(undefined4 param_1)" (identifier "unbind_variable") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  \n  iVar1 = var_lookup(param_1,shell_variables);\n  if ((iVar1 != 0) && ((*(byte *)(iVar1 + 0x15) & 8) != 0)) {\n    puVar2 = (undefined4 *)find_variable_nameref(iVar1);\n    if (puVar2 != (undefined4 *)0x0) {\n      makunbound(*puVar2,shell_variables);\n      return;\n    }\n  }\n  makunbound(param_1,shell_variables);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (expression_statement "iVar1 = var_lookup(param_1,shell_variables);" (assignment_expression "iVar1 = var_lookup(param_1,shell_variables)" (identifier "iVar1") (= "=") (call_expression "var_lookup(param_1,shell_variables)" (identifier "var_lookup") (argument_list "(param_1,shell_variables)" (( "(") (identifier "param_1") (, ",") (identifier "shell_variables") () ")")))) (; ";")) (if_statement "if ((iVar1 != 0) && ((*(byte *)(iVar1 + 0x15) & 8) != 0)) {\n    puVar2 = (undefined4 *)find_variable_nameref(iVar1);\n    if (puVar2 != (undefined4 *)0x0) {\n      makunbound(*puVar2,shell_variables);\n      return;\n    }\n  }" (if "if") (parenthesized_expression "((iVar1 != 0) && ((*(byte *)(iVar1 + 0x15) & 8) != 0))" (( "(") (binary_expression "(iVar1 != 0) && ((*(byte *)(iVar1 + 0x15) & 8) != 0)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)(iVar1 + 0x15) & 8) != 0)" (( "(") (binary_expression "(*(byte *)(iVar1 + 0x15) & 8) != 0" (parenthesized_expression "(*(byte *)(iVar1 + 0x15) & 8)" (( "(") (binary_expression "*(byte *)(iVar1 + 0x15) & 8" (pointer_expression "*(byte *)(iVar1 + 0x15)" (* "*") (cast_expression "(byte *)(iVar1 + 0x15)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x15)" (( "(") (binary_expression "iVar1 + 0x15" (identifier "iVar1") (+ "+") (number_literal "0x15")) () ")")))) (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    puVar2 = (undefined4 *)find_variable_nameref(iVar1);\n    if (puVar2 != (undefined4 *)0x0) {\n      makunbound(*puVar2,shell_variables);\n      return;\n    }\n  }" ({ "{") (expression_statement "puVar2 = (undefined4 *)find_variable_nameref(iVar1);" (assignment_expression "puVar2 = (undefined4 *)find_variable_nameref(iVar1)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)find_variable_nameref(iVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "find_variable_nameref(iVar1)" (identifier "find_variable_nameref") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))))) (; ";")) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n      makunbound(*puVar2,shell_variables);\n      return;\n    }" (if "if") (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 != (undefined4 *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      makunbound(*puVar2,shell_variables);\n      return;\n    }" ({ "{") (expression_statement "makunbound(*puVar2,shell_variables);" (call_expression "makunbound(*puVar2,shell_variables)" (identifier "makunbound") (argument_list "(*puVar2,shell_variables)" (( "(") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (, ",") (identifier "shell_variables") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "makunbound(param_1,shell_variables);" (call_expression "makunbound(param_1,shell_variables)" (identifier "makunbound") (argument_list "(param_1,shell_variables)" (( "(") (identifier "param_1") (, ",") (identifier "shell_variables") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int function_1(char *name)

{
  type_1 *var_2;
  int iVar2;
  
  var_2 = var_1(name,shell_variables);
  if ((var_2 != (type_1 *)0x0) && ((var_2->attributes & 0x800) != 0)) {
    var_2 = var_3(var_2);
    if (var_2 != (type_1 *)0x0) {
      iVar2 = var_4(var_2->name,shell_variables);
      return iVar2;
    }
  }
  iVar2 = var_4(name,shell_variables);
  return iVar2;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier)))) (return_statement))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(undefined4 param_1)

{
  int iVar1;
  undefined4 *puVar2;
  
  iVar1 = var_lookup(param_1,shell_variables);
  if ((iVar1 != 0) && ((*(byte *)(iVar1 + 0x15) & 8) != 0)) {
    puVar2 = (undefined4 *)find_variable_nameref(iVar1);
    if (puVar2 != (undefined4 *)0x0) {
      makunbound(*puVar2,shell_variables);
      return;
    }
  }
  makunbound(param_1,shell_variables);
  return;
}

