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

void __regparm3 expr_bind_variable(char *lhs,char *rhs)

{
  SHELL_VAR *pSVar1;
  int flags;
  
  if ((lhs != (char *)0x0) && (*lhs != '\0')) {
    flags = assoc_expand_once;
    if ((assoc_expand_once != 0) && (flags = already_expanded, already_expanded != 0)) {
      flags = 0x80;
    }
    pSVar1 = bind_int_variable(lhs,rhs,flags);
    if ((pSVar1 != (SHELL_VAR *)0x0) && ((pSVar1->attributes & 0x4002U) != 0)) {
                    /* WARNING: Subroutine does not return */
      __longjmp_chk(evalbuf,1,pSVar1,pSVar1);
    }
    stupidly_hack_special_variables(lhs);
  }
  return;
}



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

void __regparm3 FUN_00059d70(char *param_1,undefined4 param_2)

{
  int iVar1;
  
  if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {
    iVar1 = assoc_expand_once;
    if ((assoc_expand_once != 0) && (iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0)) {
      iVar1 = 0x80;
    }
    iVar1 = bind_int_variable(param_1,param_2,iVar1);
    if ((iVar1 != 0) && ((*(uint *)(iVar1 + 0x14) & 0x4002) != 0)) {
                    /* WARNING: Subroutine does not return */
      __longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1);
    }
    stupidly_hack_special_variables(param_1);
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00031ed0
ADD EBX,0xf0289
SUB ESP,0x4
TEST EAX,EAX
JZ 0x00059dce
CMP byte ptr [EAX],0x0
JZ 0x00059dce
LEA ECX,[EBX + 0x73d0]
MOV ECX,dword ptr [ECX]
TEST ECX,ECX
JZ 0x00059da5
MOV ECX,dword ptr [EBX + 0x5d8c]
MOV ESI,0x80
TEST ECX,ECX
CMOVNZ ECX,ESI
SUB ESP,0x4
MOV ESI,EAX
PUSH ECX
PUSH EDX
PUSH EAX
CALL 0x00055e30
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00059dc2
TEST dword ptr [EAX + 0x14],0x4002
JNZ 0x00059dd4
SUB ESP,0xc
PUSH ESI
CALL 0x00056a70
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
PUSH EAX
PUSH EAX
LEA EAX,[EBX + 0x5da0]
PUSH 0x1
PUSH EAX
CALL 0x0002fa00
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00059d70(char *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {\n    iVar1 = assoc_expand_once;\n    if ((assoc_expand_once != 0) && (iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0)) {\n      iVar1 = 0x80;\n    }\n    iVar1 = bind_int_variable(param_1,param_2,iVar1);\n    if ((iVar1 != 0) && ((*(uint *)(iVar1 + 0x14) & 0x4002) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      __longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1);\n    }\n    stupidly_hack_special_variables(param_1);\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00059d70(char *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {\n    iVar1 = assoc_expand_once;\n    if ((assoc_expand_once != 0) && (iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0)) {\n      iVar1 = 0x80;\n    }\n    iVar1 = bind_int_variable(param_1,param_2,iVar1);\n    if ((iVar1 != 0) && ((*(uint *)(iVar1 + 0x14) & 0x4002) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      __longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1);\n    }\n    stupidly_hack_special_variables(param_1);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00059d70(char *param_1,undefined4 param_2)" identifier (parameter_list "(char *param_1,undefined4 param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {\n    iVar1 = assoc_expand_once;\n    if ((assoc_expand_once != 0) && (iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0)) {\n      iVar1 = 0x80;\n    }\n    iVar1 = bind_int_variable(param_1,param_2,iVar1);\n    if ((iVar1 != 0) && ((*(uint *)(iVar1 + 0x14) & 0x4002) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      __longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1);\n    }\n    stupidly_hack_special_variables(param_1);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {\n    iVar1 = assoc_expand_once;\n    if ((assoc_expand_once != 0) && (iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0)) {\n      iVar1 = 0x80;\n    }\n    iVar1 = bind_int_variable(param_1,param_2,iVar1);\n    if ((iVar1 != 0) && ((*(uint *)(iVar1 + 0x14) & 0x4002) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      __longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1);\n    }\n    stupidly_hack_special_variables(param_1);\n  }" if (parenthesized_expression "((param_1 != (char *)0x0) && (*param_1 != '\0'))" ( (binary_expression "(param_1 != (char *)0x0) && (*param_1 != '\0')" (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*param_1 != '\0')" ( (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    iVar1 = assoc_expand_once;\n    if ((assoc_expand_once != 0) && (iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0)) {\n      iVar1 = 0x80;\n    }\n    iVar1 = bind_int_variable(param_1,param_2,iVar1);\n    if ((iVar1 != 0) && ((*(uint *)(iVar1 + 0x14) & 0x4002) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      __longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1);\n    }\n    stupidly_hack_special_variables(param_1);\n  }" { (expression_statement "iVar1 = assoc_expand_once;" (assignment_expression "iVar1 = assoc_expand_once" identifier = identifier) ;) (if_statement "if ((assoc_expand_once != 0) && (iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0)) {\n      iVar1 = 0x80;\n    }" if (parenthesized_expression "((assoc_expand_once != 0) && (iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0))" ( (binary_expression "(assoc_expand_once != 0) && (iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0)" (parenthesized_expression "(assoc_expand_once != 0)" ( (binary_expression "assoc_expand_once != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0)" ( (comma_expression "iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0" (assignment_expression "iVar1 = DAT_0014fd8c" identifier = identifier) , (binary_expression "DAT_0014fd8c != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      iVar1 = 0x80;\n    }" { (expression_statement "iVar1 = 0x80;" (assignment_expression "iVar1 = 0x80" identifier = number_literal) ;) })) (expression_statement "iVar1 = bind_int_variable(param_1,param_2,iVar1);" (assignment_expression "iVar1 = bind_int_variable(param_1,param_2,iVar1)" identifier = (call_expression "bind_int_variable(param_1,param_2,iVar1)" identifier (argument_list "(param_1,param_2,iVar1)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((iVar1 != 0) && ((*(uint *)(iVar1 + 0x14) & 0x4002) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      __longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1);\n    }" if (parenthesized_expression "((iVar1 != 0) && ((*(uint *)(iVar1 + 0x14) & 0x4002) != 0))" ( (binary_expression "(iVar1 != 0) && ((*(uint *)(iVar1 + 0x14) & 0x4002) != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "((*(uint *)(iVar1 + 0x14) & 0x4002) != 0)" ( (binary_expression "(*(uint *)(iVar1 + 0x14) & 0x4002) != 0" (parenthesized_expression "(*(uint *)(iVar1 + 0x14) & 0x4002)" ( (binary_expression "*(uint *)(iVar1 + 0x14) & 0x4002" (pointer_expression "*(uint *)(iVar1 + 0x14)" * (cast_expression "(uint *)(iVar1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1);\n    }" { comment (expression_statement "__longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1);" (call_expression "__longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1)" identifier (argument_list "(&DAT_0014fda0,1,iVar1,iVar1)" ( (pointer_expression "&DAT_0014fda0" & identifier) , number_literal , identifier , identifier ))) ;) })) (expression_statement "stupidly_hack_special_variables(param_1);" (call_expression "stupidly_hack_special_variables(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 expr_bind_variable(char *lhs,char *rhs)\n\n{\n  SHELL_VAR *pSVar1;\n  int flags;\n  \n  if ((lhs != (char *)0x0) && (*lhs != '\0')) {\n    flags = assoc_expand_once;\n    if ((assoc_expand_once != 0) && (flags = already_expanded, already_expanded != 0)) {\n      flags = 0x80;\n    }\n    pSVar1 = bind_int_variable(lhs,rhs,flags);\n    if ((pSVar1 != (SHELL_VAR *)0x0) && ((pSVar1->attributes & 0x4002U) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      __longjmp_chk(evalbuf,1,pSVar1,pSVar1);\n    }\n    stupidly_hack_special_variables(lhs);\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 expr_bind_variable(char *lhs,char *rhs)\n\n{\n  SHELL_VAR *pSVar1;\n  int flags;\n  \n  if ((lhs != (char *)0x0) && (*lhs != '\0')) {\n    flags = assoc_expand_once;\n    if ((assoc_expand_once != 0) && (flags = already_expanded, already_expanded != 0)) {\n      flags = 0x80;\n    }\n    pSVar1 = bind_int_variable(lhs,rhs,flags);\n    if ((pSVar1 != (SHELL_VAR *)0x0) && ((pSVar1->attributes & 0x4002U) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      __longjmp_chk(evalbuf,1,pSVar1,pSVar1);\n    }\n    stupidly_hack_special_variables(lhs);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "expr_bind_variable(char *lhs,char *rhs)" identifier (parameter_list "(char *lhs,char *rhs)" ( (parameter_declaration "char *lhs" primitive_type (pointer_declarator "*lhs" * identifier)) , (parameter_declaration "char *rhs" primitive_type (pointer_declarator "*rhs" * identifier)) ))) (compound_statement "{\n  SHELL_VAR *pSVar1;\n  int flags;\n  \n  if ((lhs != (char *)0x0) && (*lhs != '\0')) {\n    flags = assoc_expand_once;\n    if ((assoc_expand_once != 0) && (flags = already_expanded, already_expanded != 0)) {\n      flags = 0x80;\n    }\n    pSVar1 = bind_int_variable(lhs,rhs,flags);\n    if ((pSVar1 != (SHELL_VAR *)0x0) && ((pSVar1->attributes & 0x4002U) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      __longjmp_chk(evalbuf,1,pSVar1,pSVar1);\n    }\n    stupidly_hack_special_variables(lhs);\n  }\n  return;\n}" { (declaration "SHELL_VAR *pSVar1;" type_identifier (pointer_declarator "*pSVar1" * identifier) ;) (declaration "int flags;" primitive_type identifier ;) (if_statement "if ((lhs != (char *)0x0) && (*lhs != '\0')) {\n    flags = assoc_expand_once;\n    if ((assoc_expand_once != 0) && (flags = already_expanded, already_expanded != 0)) {\n      flags = 0x80;\n    }\n    pSVar1 = bind_int_variable(lhs,rhs,flags);\n    if ((pSVar1 != (SHELL_VAR *)0x0) && ((pSVar1->attributes & 0x4002U) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      __longjmp_chk(evalbuf,1,pSVar1,pSVar1);\n    }\n    stupidly_hack_special_variables(lhs);\n  }" if (parenthesized_expression "((lhs != (char *)0x0) && (*lhs != '\0'))" ( (binary_expression "(lhs != (char *)0x0) && (*lhs != '\0')" (parenthesized_expression "(lhs != (char *)0x0)" ( (binary_expression "lhs != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*lhs != '\0')" ( (binary_expression "*lhs != '\0'" (pointer_expression "*lhs" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    flags = assoc_expand_once;\n    if ((assoc_expand_once != 0) && (flags = already_expanded, already_expanded != 0)) {\n      flags = 0x80;\n    }\n    pSVar1 = bind_int_variable(lhs,rhs,flags);\n    if ((pSVar1 != (SHELL_VAR *)0x0) && ((pSVar1->attributes & 0x4002U) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      __longjmp_chk(evalbuf,1,pSVar1,pSVar1);\n    }\n    stupidly_hack_special_variables(lhs);\n  }" { (expression_statement "flags = assoc_expand_once;" (assignment_expression "flags = assoc_expand_once" identifier = identifier) ;) (if_statement "if ((assoc_expand_once != 0) && (flags = already_expanded, already_expanded != 0)) {\n      flags = 0x80;\n    }" if (parenthesized_expression "((assoc_expand_once != 0) && (flags = already_expanded, already_expanded != 0))" ( (binary_expression "(assoc_expand_once != 0) && (flags = already_expanded, already_expanded != 0)" (parenthesized_expression "(assoc_expand_once != 0)" ( (binary_expression "assoc_expand_once != 0" identifier != number_literal) )) && (parenthesized_expression "(flags = already_expanded, already_expanded != 0)" ( (comma_expression "flags = already_expanded, already_expanded != 0" (assignment_expression "flags = already_expanded" identifier = identifier) , (binary_expression "already_expanded != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      flags = 0x80;\n    }" { (expression_statement "flags = 0x80;" (assignment_expression "flags = 0x80" identifier = number_literal) ;) })) (expression_statement "pSVar1 = bind_int_variable(lhs,rhs,flags);" (assignment_expression "pSVar1 = bind_int_variable(lhs,rhs,flags)" identifier = (call_expression "bind_int_variable(lhs,rhs,flags)" identifier (argument_list "(lhs,rhs,flags)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((pSVar1 != (SHELL_VAR *)0x0) && ((pSVar1->attributes & 0x4002U) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      __longjmp_chk(evalbuf,1,pSVar1,pSVar1);\n    }" if (parenthesized_expression "((pSVar1 != (SHELL_VAR *)0x0) && ((pSVar1->attributes & 0x4002U) != 0))" ( (binary_expression "(pSVar1 != (SHELL_VAR *)0x0) && ((pSVar1->attributes & 0x4002U) != 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 & 0x4002U) != 0)" ( (binary_expression "(pSVar1->attributes & 0x4002U) != 0" (parenthesized_expression "(pSVar1->attributes & 0x4002U)" ( (binary_expression "pSVar1->attributes & 0x4002U" (field_expression "pSVar1->attributes" identifier -> field_identifier) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __longjmp_chk(evalbuf,1,pSVar1,pSVar1);\n    }" { comment (expression_statement "__longjmp_chk(evalbuf,1,pSVar1,pSVar1);" (call_expression "__longjmp_chk(evalbuf,1,pSVar1,pSVar1)" identifier (argument_list "(evalbuf,1,pSVar1,pSVar1)" ( identifier , number_literal , identifier , identifier ))) ;) })) (expression_statement "stupidly_hack_special_variables(lhs);" (call_expression "stupidly_hack_special_variables(lhs)" identifier (argument_list "(lhs)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00059d70(char *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {\n    iVar1 = assoc_expand_once;\n    if ((assoc_expand_once != 0) && (iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0)) {\n      iVar1 = 0x80;\n    }\n    iVar1 = bind_int_variable(param_1,param_2,iVar1);\n    if ((iVar1 != 0) && ((*(uint *)(iVar1 + 0x14) & 0x4002) != 0)) {\n                    \n      __longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1);\n    }\n    stupidly_hack_special_variables(param_1);\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00059d70(char *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {\n    iVar1 = assoc_expand_once;\n    if ((assoc_expand_once != 0) && (iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0)) {\n      iVar1 = 0x80;\n    }\n    iVar1 = bind_int_variable(param_1,param_2,iVar1);\n    if ((iVar1 != 0) && ((*(uint *)(iVar1 + 0x14) & 0x4002) != 0)) {\n                    \n      __longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1);\n    }\n    stupidly_hack_special_variables(param_1);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00059d70(char *param_1,undefined4 param_2)" identifier (parameter_list "(char *param_1,undefined4 param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {\n    iVar1 = assoc_expand_once;\n    if ((assoc_expand_once != 0) && (iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0)) {\n      iVar1 = 0x80;\n    }\n    iVar1 = bind_int_variable(param_1,param_2,iVar1);\n    if ((iVar1 != 0) && ((*(uint *)(iVar1 + 0x14) & 0x4002) != 0)) {\n                    \n      __longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1);\n    }\n    stupidly_hack_special_variables(param_1);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {\n    iVar1 = assoc_expand_once;\n    if ((assoc_expand_once != 0) && (iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0)) {\n      iVar1 = 0x80;\n    }\n    iVar1 = bind_int_variable(param_1,param_2,iVar1);\n    if ((iVar1 != 0) && ((*(uint *)(iVar1 + 0x14) & 0x4002) != 0)) {\n                    \n      __longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1);\n    }\n    stupidly_hack_special_variables(param_1);\n  }" if (parenthesized_expression "((param_1 != (char *)0x0) && (*param_1 != '\0'))" ( (binary_expression "(param_1 != (char *)0x0) && (*param_1 != '\0')" (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*param_1 != '\0')" ( (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    iVar1 = assoc_expand_once;\n    if ((assoc_expand_once != 0) && (iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0)) {\n      iVar1 = 0x80;\n    }\n    iVar1 = bind_int_variable(param_1,param_2,iVar1);\n    if ((iVar1 != 0) && ((*(uint *)(iVar1 + 0x14) & 0x4002) != 0)) {\n                    \n      __longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1);\n    }\n    stupidly_hack_special_variables(param_1);\n  }" { (expression_statement "iVar1 = assoc_expand_once;" (assignment_expression "iVar1 = assoc_expand_once" identifier = identifier) ;) (if_statement "if ((assoc_expand_once != 0) && (iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0)) {\n      iVar1 = 0x80;\n    }" if (parenthesized_expression "((assoc_expand_once != 0) && (iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0))" ( (binary_expression "(assoc_expand_once != 0) && (iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0)" (parenthesized_expression "(assoc_expand_once != 0)" ( (binary_expression "assoc_expand_once != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0)" ( (comma_expression "iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0" (assignment_expression "iVar1 = DAT_0014fd8c" identifier = identifier) , (binary_expression "DAT_0014fd8c != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      iVar1 = 0x80;\n    }" { (expression_statement "iVar1 = 0x80;" (assignment_expression "iVar1 = 0x80" identifier = number_literal) ;) })) (expression_statement "iVar1 = bind_int_variable(param_1,param_2,iVar1);" (assignment_expression "iVar1 = bind_int_variable(param_1,param_2,iVar1)" identifier = (call_expression "bind_int_variable(param_1,param_2,iVar1)" identifier (argument_list "(param_1,param_2,iVar1)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((iVar1 != 0) && ((*(uint *)(iVar1 + 0x14) & 0x4002) != 0)) {\n                    \n      __longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1);\n    }" if (parenthesized_expression "((iVar1 != 0) && ((*(uint *)(iVar1 + 0x14) & 0x4002) != 0))" ( (binary_expression "(iVar1 != 0) && ((*(uint *)(iVar1 + 0x14) & 0x4002) != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "((*(uint *)(iVar1 + 0x14) & 0x4002) != 0)" ( (binary_expression "(*(uint *)(iVar1 + 0x14) & 0x4002) != 0" (parenthesized_expression "(*(uint *)(iVar1 + 0x14) & 0x4002)" ( (binary_expression "*(uint *)(iVar1 + 0x14) & 0x4002" (pointer_expression "*(uint *)(iVar1 + 0x14)" * (cast_expression "(uint *)(iVar1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n                    \n      __longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1);\n    }" { (expression_statement "__longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1);" (call_expression "__longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1)" identifier (argument_list "(&DAT_0014fda0,1,iVar1,iVar1)" ( (pointer_expression "&DAT_0014fda0" & identifier) , number_literal , identifier , identifier ))) ;) })) (expression_statement "stupidly_hack_special_variables(param_1);" (call_expression "stupidly_hack_special_variables(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , 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 (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , IDENT , IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00059d70(char *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {\n    iVar1 = assoc_expand_once;\n    if ((assoc_expand_once != 0) && (iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0)) {\n      iVar1 = 0x80;\n    }\n    iVar1 = bind_int_variable(param_1,param_2,iVar1);\n    if ((iVar1 != 0) && ((*(uint *)(iVar1 + 0x14) & 0x4002) != 0)) {\n                    \n      __longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1);\n    }\n    stupidly_hack_special_variables(param_1);\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00059d70(char *param_1,undefined4 param_2)" (identifier "FUN_00059d70") (parameter_list "(char *param_1,undefined4 param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {\n    iVar1 = assoc_expand_once;\n    if ((assoc_expand_once != 0) && (iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0)) {\n      iVar1 = 0x80;\n    }\n    iVar1 = bind_int_variable(param_1,param_2,iVar1);\n    if ((iVar1 != 0) && ((*(uint *)(iVar1 + 0x14) & 0x4002) != 0)) {\n                    \n      __longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1);\n    }\n    stupidly_hack_special_variables(param_1);\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {\n    iVar1 = assoc_expand_once;\n    if ((assoc_expand_once != 0) && (iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0)) {\n      iVar1 = 0x80;\n    }\n    iVar1 = bind_int_variable(param_1,param_2,iVar1);\n    if ((iVar1 != 0) && ((*(uint *)(iVar1 + 0x14) & 0x4002) != 0)) {\n                    \n      __longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1);\n    }\n    stupidly_hack_special_variables(param_1);\n  }" (if "if") (parenthesized_expression "((param_1 != (char *)0x0) && (*param_1 != '\0'))" (( "(") (binary_expression "(param_1 != (char *)0x0) && (*param_1 != '\0')" (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*param_1 != '\0')" (( "(") (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    iVar1 = assoc_expand_once;\n    if ((assoc_expand_once != 0) && (iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0)) {\n      iVar1 = 0x80;\n    }\n    iVar1 = bind_int_variable(param_1,param_2,iVar1);\n    if ((iVar1 != 0) && ((*(uint *)(iVar1 + 0x14) & 0x4002) != 0)) {\n                    \n      __longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1);\n    }\n    stupidly_hack_special_variables(param_1);\n  }" ({ "{") (expression_statement "iVar1 = assoc_expand_once;" (assignment_expression "iVar1 = assoc_expand_once" (identifier "iVar1") (= "=") (identifier "assoc_expand_once")) (; ";")) (if_statement "if ((assoc_expand_once != 0) && (iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0)) {\n      iVar1 = 0x80;\n    }" (if "if") (parenthesized_expression "((assoc_expand_once != 0) && (iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0))" (( "(") (binary_expression "(assoc_expand_once != 0) && (iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0)" (parenthesized_expression "(assoc_expand_once != 0)" (( "(") (binary_expression "assoc_expand_once != 0" (identifier "assoc_expand_once") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0)" (( "(") (comma_expression "iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0" (assignment_expression "iVar1 = DAT_0014fd8c" (identifier "iVar1") (= "=") (identifier "DAT_0014fd8c")) (, ",") (binary_expression "DAT_0014fd8c != 0" (identifier "DAT_0014fd8c") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      iVar1 = 0x80;\n    }" ({ "{") (expression_statement "iVar1 = 0x80;" (assignment_expression "iVar1 = 0x80" (identifier "iVar1") (= "=") (number_literal "0x80")) (; ";")) (} "}"))) (expression_statement "iVar1 = bind_int_variable(param_1,param_2,iVar1);" (assignment_expression "iVar1 = bind_int_variable(param_1,param_2,iVar1)" (identifier "iVar1") (= "=") (call_expression "bind_int_variable(param_1,param_2,iVar1)" (identifier "bind_int_variable") (argument_list "(param_1,param_2,iVar1)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "iVar1") () ")")))) (; ";")) (if_statement "if ((iVar1 != 0) && ((*(uint *)(iVar1 + 0x14) & 0x4002) != 0)) {\n                    \n      __longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1);\n    }" (if "if") (parenthesized_expression "((iVar1 != 0) && ((*(uint *)(iVar1 + 0x14) & 0x4002) != 0))" (( "(") (binary_expression "(iVar1 != 0) && ((*(uint *)(iVar1 + 0x14) & 0x4002) != 0)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*(uint *)(iVar1 + 0x14) & 0x4002) != 0)" (( "(") (binary_expression "(*(uint *)(iVar1 + 0x14) & 0x4002) != 0" (parenthesized_expression "(*(uint *)(iVar1 + 0x14) & 0x4002)" (( "(") (binary_expression "*(uint *)(iVar1 + 0x14) & 0x4002" (pointer_expression "*(uint *)(iVar1 + 0x14)" (* "*") (cast_expression "(uint *)(iVar1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")")))) (& "&") (number_literal "0x4002")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n                    \n      __longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1);\n    }" ({ "{") (expression_statement "__longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1);" (call_expression "__longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1)" (identifier "__longjmp_chk") (argument_list "(&DAT_0014fda0,1,iVar1,iVar1)" (( "(") (pointer_expression "&DAT_0014fda0" (& "&") (identifier "DAT_0014fda0")) (, ",") (number_literal "1") (, ",") (identifier "iVar1") (, ",") (identifier "iVar1") () ")"))) (; ";")) (} "}"))) (expression_statement "stupidly_hack_special_variables(param_1);" (call_expression "stupidly_hack_special_variables(param_1)" (identifier "stupidly_hack_special_variables") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(char *var_1,char *rhs)

{
  type_1 *var_5;
  int flags;
  
  if ((var_1 != (char *)0x0) && (*var_1 != '\0')) {
    flags = var_2;
    if ((var_2 != 0) && (flags = var_3, var_3 != 0)) {
      flags = 0x80;
    }
    var_5 = var_4(var_1,rhs,flags);
    if ((var_5 != (type_1 *)0x0) && ((var_5->attributes & 0x4002U) != 0)) {
                    /* WARNING: Subroutine does not return */
      var_6(evalbuf,1,var_5,var_5);
    }
    var_7(var_1);
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (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 (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal) (identifier) (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (return_statement))))

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

void __regparm3 MASKED(char *param_1,undefined4 param_2)

{
  int iVar1;
  
  if ((param_1 != (char *)0x0) && (*param_1 != '\0')) {
    iVar1 = assoc_expand_once;
    if ((assoc_expand_once != 0) && (iVar1 = DAT_0014fd8c, DAT_0014fd8c != 0)) {
      iVar1 = 0x80;
    }
    iVar1 = bind_int_variable(param_1,param_2,iVar1);
    if ((iVar1 != 0) && ((*(uint *)(iVar1 + 0x14) & 0x4002) != 0)) {
                    /* WARNING: Subroutine does not return */
      __longjmp_chk(&DAT_0014fda0,1,iVar1,iVar1);
    }
    stupidly_hack_special_variables(param_1);
  }
  return;
}

