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

_Bool cmd_use_askpass(char *com,char *val,void *place)

{
  undefined4 uVar1;
  char *pcVar2;
  
  if ((val == (char *)0x0) || (*val == '\0')) {
    val = getenv("WGET_ASKPASS");
    if ((val == (char *)0x0) || (*val == '\0')) {
      val = getenv("SSH_ASKPASS");
      if ((val == (char *)0x0) || (*val == '\0')) {
        uVar1 = dcgettext(0,
                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"
                          ,5);
        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);
        return false;
      }
    }
  }
                    /* WARNING: Load size is inaccurate */
  free(*place);
  *(undefined4 *)place = 0;
  pcVar2 = xstrdup(val);
  *(char **)place = pcVar2;
  return true;
}



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

undefined4 FUN_00037450(undefined4 param_1,char *param_2,undefined4 *param_3)

{
  undefined4 uVar1;
  
  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {
    param_2 = getenv("WGET_ASKPASS");
    if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {
      param_2 = getenv("SSH_ASKPASS");
      if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {
        uVar1 = dcgettext(0,
                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"
                          ,5);
        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);
        return 0;
      }
    }
  }
  free((void *)*param_3);
  *param_3 = 0;
  uVar1 = FUN_0005af70(param_2);
  *param_3 = uVar1;
  return 1;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x14]
CALL 0x00019070
ADD EBX,0x69774
MOV EDI,dword ptr [ESP + 0x18]
TEST ESI,ESI
JZ 0x0003746f
CMP byte ptr [ESI],0x0
JNZ 0x000374e0
SUB ESP,0xc
LEA EAX,[EBX + 0xfffda238]
PUSH EAX
CALL 0x00016390
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x0003748c
CMP byte ptr [EAX],0x0
JNZ 0x000374e0
SUB ESP,0xc
LEA EAX,[EBX + 0xfffda245]
PUSH EAX
CALL 0x00016390
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x000374a9
CMP byte ptr [EAX],0x0
JNZ 0x000374e0
SUB ESP,0x4
LEA EAX,[EBX + 0xfffdaa7c]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000166c0
ADD ESP,0xc
PUSH EAX
MOV EAX,dword ptr [EBX + 0x3f0]
PUSH 0x1
PUSH dword ptr [EAX]
CALL 0x00016270
ADD ESP,0x10
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0xc
PUSH dword ptr [EDI]
CALL 0x00016670
MOV dword ptr [EDI],0x0
MOV dword ptr [ESP],ESI
CALL 0x0005af70
ADD ESP,0x10
MOV dword ptr [EDI],EAX
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00037450(undefined4 param_1,char *param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  \n  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    param_2 = getenv("WGET_ASKPASS");\n    if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n      param_2 = getenv("SSH_ASKPASS");\n      if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }\n    }\n  }\n  free((void *)*param_3);\n  *param_3 = 0;\n  uVar1 = FUN_0005af70(param_2);\n  *param_3 = uVar1;\n  return 1;\n}\n\n" comment (function_definition "undefined4 FUN_00037450(undefined4 param_1,char *param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  \n  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    param_2 = getenv("WGET_ASKPASS");\n    if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n      param_2 = getenv("SSH_ASKPASS");\n      if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }\n    }\n  }\n  free((void *)*param_3);\n  *param_3 = 0;\n  uVar1 = FUN_0005af70(param_2);\n  *param_3 = uVar1;\n  return 1;\n}" type_identifier (function_declarator "FUN_00037450(undefined4 param_1,char *param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,char *param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    param_2 = getenv("WGET_ASKPASS");\n    if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n      param_2 = getenv("SSH_ASKPASS");\n      if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }\n    }\n  }\n  free((void *)*param_3);\n  *param_3 = 0;\n  uVar1 = FUN_0005af70(param_2);\n  *param_3 = uVar1;\n  return 1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    param_2 = getenv("WGET_ASKPASS");\n    if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n      param_2 = getenv("SSH_ASKPASS");\n      if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }\n    }\n  }" if (parenthesized_expression "((param_2 == (char *)0x0) || (*param_2 == '\0'))" ( (binary_expression "(param_2 == (char *)0x0) || (*param_2 == '\0')" (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*param_2 == '\0')" ( (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    param_2 = getenv("WGET_ASKPASS");\n    if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n      param_2 = getenv("SSH_ASKPASS");\n      if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }\n    }\n  }" { (expression_statement "param_2 = getenv("WGET_ASKPASS");" (assignment_expression "param_2 = getenv("WGET_ASKPASS")" identifier = (call_expression "getenv("WGET_ASKPASS")" identifier (argument_list "("WGET_ASKPASS")" ( (string_literal ""WGET_ASKPASS"" " string_content ") )))) ;) (if_statement "if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n      param_2 = getenv("SSH_ASKPASS");\n      if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }\n    }" if (parenthesized_expression "((param_2 == (char *)0x0) || (*param_2 == '\0'))" ( (binary_expression "(param_2 == (char *)0x0) || (*param_2 == '\0')" (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*param_2 == '\0')" ( (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n      param_2 = getenv("SSH_ASKPASS");\n      if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }\n    }" { (expression_statement "param_2 = getenv("SSH_ASKPASS");" (assignment_expression "param_2 = getenv("SSH_ASKPASS")" identifier = (call_expression "getenv("SSH_ASKPASS")" identifier (argument_list "("SSH_ASKPASS")" ( (string_literal ""SSH_ASKPASS"" " string_content ") )))) ;) (if_statement "if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }" if (parenthesized_expression "((param_2 == (char *)0x0) || (*param_2 == '\0'))" ( (binary_expression "(param_2 == (char *)0x0) || (*param_2 == '\0')" (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*param_2 == '\0')" ( (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }" { (expression_statement "uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);" (assignment_expression "uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5)" identifier = (call_expression "dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5)" identifier (argument_list "(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5)" ( number_literal , (string_literal ""use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1)" identifier (argument_list "(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1)" ( (pointer_expression "*(undefined4 *)PTR_stderr_000a0fc0" * (cast_expression "(undefined4 *)PTR_stderr_000a0fc0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) })) })) (expression_statement "free((void *)*param_3);" (call_expression "free((void *)*param_3)" identifier (argument_list "((void *)*param_3)" ( (cast_expression "(void *)*param_3" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_3" * identifier)) ))) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "uVar1 = FUN_0005af70(param_2);" (assignment_expression "uVar1 = FUN_0005af70(param_2)" identifier = (call_expression "FUN_0005af70(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*param_3 = uVar1;" (assignment_expression "*param_3 = uVar1" (pointer_expression "*param_3" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\n_Bool cmd_use_askpass(char *com,char *val,void *place)\n\n{\n  undefined4 uVar1;\n  char *pcVar2;\n  \n  if ((val == (char *)0x0) || (*val == '\0')) {\n    val = getenv("WGET_ASKPASS");\n    if ((val == (char *)0x0) || (*val == '\0')) {\n      val = getenv("SSH_ASKPASS");\n      if ((val == (char *)0x0) || (*val == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return false;\n      }\n    }\n  }\n                    /* WARNING: Load size is inaccurate */\n  free(*place);\n  *(undefined4 *)place = 0;\n  pcVar2 = xstrdup(val);\n  *(char **)place = pcVar2;\n  return true;\n}\n\n" comment comment (function_definition "_Bool cmd_use_askpass(char *com,char *val,void *place)\n\n{\n  undefined4 uVar1;\n  char *pcVar2;\n  \n  if ((val == (char *)0x0) || (*val == '\0')) {\n    val = getenv("WGET_ASKPASS");\n    if ((val == (char *)0x0) || (*val == '\0')) {\n      val = getenv("SSH_ASKPASS");\n      if ((val == (char *)0x0) || (*val == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return false;\n      }\n    }\n  }\n                    /* WARNING: Load size is inaccurate */\n  free(*place);\n  *(undefined4 *)place = 0;\n  pcVar2 = xstrdup(val);\n  *(char **)place = pcVar2;\n  return true;\n}" type_identifier (function_declarator "cmd_use_askpass(char *com,char *val,void *place)" identifier (parameter_list "(char *com,char *val,void *place)" ( (parameter_declaration "char *com" primitive_type (pointer_declarator "*com" * identifier)) , (parameter_declaration "char *val" primitive_type (pointer_declarator "*val" * identifier)) , (parameter_declaration "void *place" primitive_type (pointer_declarator "*place" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  char *pcVar2;\n  \n  if ((val == (char *)0x0) || (*val == '\0')) {\n    val = getenv("WGET_ASKPASS");\n    if ((val == (char *)0x0) || (*val == '\0')) {\n      val = getenv("SSH_ASKPASS");\n      if ((val == (char *)0x0) || (*val == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return false;\n      }\n    }\n  }\n                    /* WARNING: Load size is inaccurate */\n  free(*place);\n  *(undefined4 *)place = 0;\n  pcVar2 = xstrdup(val);\n  *(char **)place = pcVar2;\n  return true;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (if_statement "if ((val == (char *)0x0) || (*val == '\0')) {\n    val = getenv("WGET_ASKPASS");\n    if ((val == (char *)0x0) || (*val == '\0')) {\n      val = getenv("SSH_ASKPASS");\n      if ((val == (char *)0x0) || (*val == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return false;\n      }\n    }\n  }" if (parenthesized_expression "((val == (char *)0x0) || (*val == '\0'))" ( (binary_expression "(val == (char *)0x0) || (*val == '\0')" (parenthesized_expression "(val == (char *)0x0)" ( (binary_expression "val == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*val == '\0')" ( (binary_expression "*val == '\0'" (pointer_expression "*val" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    val = getenv("WGET_ASKPASS");\n    if ((val == (char *)0x0) || (*val == '\0')) {\n      val = getenv("SSH_ASKPASS");\n      if ((val == (char *)0x0) || (*val == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return false;\n      }\n    }\n  }" { (expression_statement "val = getenv("WGET_ASKPASS");" (assignment_expression "val = getenv("WGET_ASKPASS")" identifier = (call_expression "getenv("WGET_ASKPASS")" identifier (argument_list "("WGET_ASKPASS")" ( (string_literal ""WGET_ASKPASS"" " string_content ") )))) ;) (if_statement "if ((val == (char *)0x0) || (*val == '\0')) {\n      val = getenv("SSH_ASKPASS");\n      if ((val == (char *)0x0) || (*val == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return false;\n      }\n    }" if (parenthesized_expression "((val == (char *)0x0) || (*val == '\0'))" ( (binary_expression "(val == (char *)0x0) || (*val == '\0')" (parenthesized_expression "(val == (char *)0x0)" ( (binary_expression "val == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*val == '\0')" ( (binary_expression "*val == '\0'" (pointer_expression "*val" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n      val = getenv("SSH_ASKPASS");\n      if ((val == (char *)0x0) || (*val == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return false;\n      }\n    }" { (expression_statement "val = getenv("SSH_ASKPASS");" (assignment_expression "val = getenv("SSH_ASKPASS")" identifier = (call_expression "getenv("SSH_ASKPASS")" identifier (argument_list "("SSH_ASKPASS")" ( (string_literal ""SSH_ASKPASS"" " string_content ") )))) ;) (if_statement "if ((val == (char *)0x0) || (*val == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return false;\n      }" if (parenthesized_expression "((val == (char *)0x0) || (*val == '\0'))" ( (binary_expression "(val == (char *)0x0) || (*val == '\0')" (parenthesized_expression "(val == (char *)0x0)" ( (binary_expression "val == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*val == '\0')" ( (binary_expression "*val == '\0'" (pointer_expression "*val" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return false;\n      }" { (expression_statement "uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);" (assignment_expression "uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5)" identifier = (call_expression "dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5)" identifier (argument_list "(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5)" ( number_literal , (string_literal ""use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1)" identifier (argument_list "(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1)" ( (pointer_expression "*(undefined4 *)PTR_stderr_000a0fc0" * (cast_expression "(undefined4 *)PTR_stderr_000a0fc0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , identifier ))) ;) (return_statement "return false;" return false ;) })) })) })) comment (expression_statement "free(*place);" (call_expression "free(*place)" identifier (argument_list "(*place)" ( (pointer_expression "*place" * identifier) ))) ;) (expression_statement "*(undefined4 *)place = 0;" (assignment_expression "*(undefined4 *)place = 0" (pointer_expression "*(undefined4 *)place" * (cast_expression "(undefined4 *)place" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "pcVar2 = xstrdup(val);" (assignment_expression "pcVar2 = xstrdup(val)" identifier = (call_expression "xstrdup(val)" identifier (argument_list "(val)" ( identifier )))) ;) (expression_statement "*(char **)place = pcVar2;" (assignment_expression "*(char **)place = pcVar2" (pointer_expression "*(char **)place" * (cast_expression "(char **)place" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (return_statement "return true;" return true ;) })))
(translation_unit "undefined4 FUN_00037450(undefined4 param_1,char *param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  \n  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    param_2 = getenv("WGET_ASKPASS");\n    if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n      param_2 = getenv("SSH_ASKPASS");\n      if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }\n    }\n  }\n  free((void *)*param_3);\n  *param_3 = 0;\n  uVar1 = FUN_0005af70(param_2);\n  *param_3 = uVar1;\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00037450(undefined4 param_1,char *param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  \n  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    param_2 = getenv("WGET_ASKPASS");\n    if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n      param_2 = getenv("SSH_ASKPASS");\n      if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }\n    }\n  }\n  free((void *)*param_3);\n  *param_3 = 0;\n  uVar1 = FUN_0005af70(param_2);\n  *param_3 = uVar1;\n  return 1;\n}" type_identifier (function_declarator "FUN_00037450(undefined4 param_1,char *param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,char *param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    param_2 = getenv("WGET_ASKPASS");\n    if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n      param_2 = getenv("SSH_ASKPASS");\n      if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }\n    }\n  }\n  free((void *)*param_3);\n  *param_3 = 0;\n  uVar1 = FUN_0005af70(param_2);\n  *param_3 = uVar1;\n  return 1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    param_2 = getenv("WGET_ASKPASS");\n    if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n      param_2 = getenv("SSH_ASKPASS");\n      if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }\n    }\n  }" if (parenthesized_expression "((param_2 == (char *)0x0) || (*param_2 == '\0'))" ( (binary_expression "(param_2 == (char *)0x0) || (*param_2 == '\0')" (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*param_2 == '\0')" ( (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    param_2 = getenv("WGET_ASKPASS");\n    if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n      param_2 = getenv("SSH_ASKPASS");\n      if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }\n    }\n  }" { (expression_statement "param_2 = getenv("WGET_ASKPASS");" (assignment_expression "param_2 = getenv("WGET_ASKPASS")" identifier = (call_expression "getenv("WGET_ASKPASS")" identifier (argument_list "("WGET_ASKPASS")" ( (string_literal ""WGET_ASKPASS"" " string_content ") )))) ;) (if_statement "if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n      param_2 = getenv("SSH_ASKPASS");\n      if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }\n    }" if (parenthesized_expression "((param_2 == (char *)0x0) || (*param_2 == '\0'))" ( (binary_expression "(param_2 == (char *)0x0) || (*param_2 == '\0')" (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*param_2 == '\0')" ( (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n      param_2 = getenv("SSH_ASKPASS");\n      if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }\n    }" { (expression_statement "param_2 = getenv("SSH_ASKPASS");" (assignment_expression "param_2 = getenv("SSH_ASKPASS")" identifier = (call_expression "getenv("SSH_ASKPASS")" identifier (argument_list "("SSH_ASKPASS")" ( (string_literal ""SSH_ASKPASS"" " string_content ") )))) ;) (if_statement "if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }" if (parenthesized_expression "((param_2 == (char *)0x0) || (*param_2 == '\0'))" ( (binary_expression "(param_2 == (char *)0x0) || (*param_2 == '\0')" (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*param_2 == '\0')" ( (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }" { (expression_statement "uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);" (assignment_expression "uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5)" identifier = (call_expression "dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5)" identifier (argument_list "(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5)" ( number_literal , (string_literal ""use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1)" identifier (argument_list "(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1)" ( (pointer_expression "*(undefined4 *)PTR_stderr_000a0fc0" * (cast_expression "(undefined4 *)PTR_stderr_000a0fc0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) })) })) (expression_statement "free((void *)*param_3);" (call_expression "free((void *)*param_3)" identifier (argument_list "((void *)*param_3)" ( (cast_expression "(void *)*param_3" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_3" * identifier)) ))) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "uVar1 = FUN_0005af70(param_2);" (assignment_expression "uVar1 = FUN_0005af70(param_2)" identifier = (call_expression "FUN_0005af70(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*param_3 = uVar1;" (assignment_expression "*param_3 = uVar1" (pointer_expression "*param_3" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * 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 = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (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 = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (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 = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , LIT , IDENT ))) ;) (return_statement return LIT ;) })) })) })) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00037450(undefined4 param_1,char *param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  \n  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    param_2 = getenv("WGET_ASKPASS");\n    if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n      param_2 = getenv("SSH_ASKPASS");\n      if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }\n    }\n  }\n  free((void *)*param_3);\n  *param_3 = 0;\n  uVar1 = FUN_0005af70(param_2);\n  *param_3 = uVar1;\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00037450(undefined4 param_1,char *param_2,undefined4 *param_3)" (identifier "FUN_00037450") (parameter_list "(undefined4 param_1,char *param_2,undefined4 *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    param_2 = getenv("WGET_ASKPASS");\n    if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n      param_2 = getenv("SSH_ASKPASS");\n      if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }\n    }\n  }\n  free((void *)*param_3);\n  *param_3 = 0;\n  uVar1 = FUN_0005af70(param_2);\n  *param_3 = uVar1;\n  return 1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    param_2 = getenv("WGET_ASKPASS");\n    if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n      param_2 = getenv("SSH_ASKPASS");\n      if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }\n    }\n  }" (if "if") (parenthesized_expression "((param_2 == (char *)0x0) || (*param_2 == '\0'))" (( "(") (binary_expression "(param_2 == (char *)0x0) || (*param_2 == '\0')" (parenthesized_expression "(param_2 == (char *)0x0)" (( "(") (binary_expression "param_2 == (char *)0x0" (identifier "param_2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(*param_2 == '\0')" (( "(") (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    param_2 = getenv("WGET_ASKPASS");\n    if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n      param_2 = getenv("SSH_ASKPASS");\n      if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }\n    }\n  }" ({ "{") (expression_statement "param_2 = getenv("WGET_ASKPASS");" (assignment_expression "param_2 = getenv("WGET_ASKPASS")" (identifier "param_2") (= "=") (call_expression "getenv("WGET_ASKPASS")" (identifier "getenv") (argument_list "("WGET_ASKPASS")" (( "(") (string_literal ""WGET_ASKPASS"" (" """) (string_content "WGET_ASKPASS") (" """)) () ")")))) (; ";")) (if_statement "if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n      param_2 = getenv("SSH_ASKPASS");\n      if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }\n    }" (if "if") (parenthesized_expression "((param_2 == (char *)0x0) || (*param_2 == '\0'))" (( "(") (binary_expression "(param_2 == (char *)0x0) || (*param_2 == '\0')" (parenthesized_expression "(param_2 == (char *)0x0)" (( "(") (binary_expression "param_2 == (char *)0x0" (identifier "param_2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(*param_2 == '\0')" (( "(") (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n      param_2 = getenv("SSH_ASKPASS");\n      if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }\n    }" ({ "{") (expression_statement "param_2 = getenv("SSH_ASKPASS");" (assignment_expression "param_2 = getenv("SSH_ASKPASS")" (identifier "param_2") (= "=") (call_expression "getenv("SSH_ASKPASS")" (identifier "getenv") (argument_list "("SSH_ASKPASS")" (( "(") (string_literal ""SSH_ASKPASS"" (" """) (string_content "SSH_ASKPASS") (" """)) () ")")))) (; ";")) (if_statement "if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }" (if "if") (parenthesized_expression "((param_2 == (char *)0x0) || (*param_2 == '\0'))" (( "(") (binary_expression "(param_2 == (char *)0x0) || (*param_2 == '\0')" (parenthesized_expression "(param_2 == (char *)0x0)" (( "(") (binary_expression "param_2 == (char *)0x0" (identifier "param_2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(*param_2 == '\0')" (( "(") (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n        uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);\n        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);\n        return 0;\n      }" ({ "{") (expression_statement "uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5);" (assignment_expression "uVar1 = dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5)" (identifier "uVar1") (= "=") (call_expression "dcgettext(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5)" (identifier "dcgettext") (argument_list "(0,\n                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"\n                          ,5)" (( "(") (number_literal "0") (, ",") (string_literal ""use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"" (" """) (string_content "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1)" (identifier "__fprintf_chk") (argument_list "(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1)" (( "(") (pointer_expression "*(undefined4 *)PTR_stderr_000a0fc0" (* "*") (cast_expression "(undefined4 *)PTR_stderr_000a0fc0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stderr_000a0fc0"))) (, ",") (number_literal "1") (, ",") (identifier "uVar1") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (} "}"))) (expression_statement "free((void *)*param_3);" (call_expression "free((void *)*param_3)" (identifier "free") (argument_list "((void *)*param_3)" (( "(") (cast_expression "(void *)*param_3" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) () ")"))) (; ";")) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar1 = FUN_0005af70(param_2);" (assignment_expression "uVar1 = FUN_0005af70(param_2)" (identifier "uVar1") (= "=") (call_expression "FUN_0005af70(param_2)" (identifier "FUN_0005af70") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "*param_3 = uVar1;" (assignment_expression "*param_3 = uVar1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "uVar1")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

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

type_1 function_1(char *com,char *var_1,void *place)

{
  type_2 uVar1;
  char *pcVar2;
  
  if ((var_1 == (char *)0x0) || (*var_1 == '\0')) {
    var_1 = var_2("WGET_ASKPASS");
    if ((var_1 == (char *)0x0) || (*var_1 == '\0')) {
      var_1 = var_2("SSH_ASKPASS");
      if ((var_1 == (char *)0x0) || (*var_1 == '\0')) {
        uVar1 = var_3(0,
                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"
                          ,5);
        var_4(*(type_2 *)PTR_stderr_000a0fc0,1,uVar1);
        return false;
      }
    }
  }
                    /* WARNING: Load size is inaccurate */
  var_5(*place);
  *(type_2 *)place = 0;
  pcVar2 = var_6(var_1);
  *(char **)place = pcVar2;
  return true;
}


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

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

undefined4 MASKED(undefined4 param_1,char *param_2,undefined4 *param_3)

{
  undefined4 uVar1;
  
  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {
    param_2 = getenv("WGET_ASKPASS");
    if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {
      param_2 = getenv("SSH_ASKPASS");
      if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {
        uVar1 = dcgettext(0,
                          "use-askpass requires a string or either environment variable WGET_ASKPASS or SSH_ASKPASS to be set.\n"
                          ,5);
        __fprintf_chk(*(undefined4 *)PTR_stderr_000a0fc0,1,uVar1);
        return 0;
      }
    }
  }
  free((void *)*param_3);
  *param_3 = 0;
  uVar1 = FUN_0005af70(param_2);
  *param_3 = uVar1;
  return 1;
}

