
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

CURLcode Curl_auth_create_login_message(Curl_easy *data,char *valuep,char **outptr,size_t *outlen)

{
  size_t insize;
  char *pcVar1;
  CURLcode CVar2;
  
  insize = strlen(valuep);
  if (insize != 0) {
    CVar2 = Curl_base64_encode(data,valuep,insize,outptr,outlen);
    return CVar2;
  }
  pcVar1 = (*Curl_cstrdup)("=");
  *outptr = pcVar1;
  if (pcVar1 != (char *)0x0) {
    *outlen = 1;
    return CURLE_OK;
  }
  *outlen = 0;
  return CURLE_OUT_OF_MEMORY;
}



undefined4 __regparm2
FUN_00070f70(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,
            undefined4 *param_5)

{
  size_t sVar1;
  int iVar2;
  undefined4 uVar3;
  int unaff_EBX;
  int *__s;
  undefined4 unaff_retaddr;
  
  __s = param_4;
  entry(param_2,0x70f7c);
  sVar1 = strlen((char *)__s);
  if (sVar1 != 0) {
    uVar3 = FUN_0001b180(unaff_retaddr,__s,sVar1,param_4,param_5);
    return uVar3;
  }
  iVar2 = (**(code **)(unaff_EBX + 0x400e8))(unaff_EBX + 0x15748);
  *param_4 = iVar2;
  if (iVar2 != 0) {
    *param_5 = 1;
    return 0;
  }
  *param_5 = 0;
  return 0x1b;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x14]
CALL 0x00019ed0
ADD EBX,0x3f864
SUB ESP,0xc
PUSH EDI
CALL 0x00018850
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JNZ 0x00070fc8
SUB ESP,0xc
LEA EAX,[EBX + 0xfffd5ee4]
PUSH EAX
LEA EAX,[EBX + 0x884]
CALL dword ptr [EAX]
MOV EDX,dword ptr [ESP + 0x28]
ADD ESP,0x10
TEST EAX,EAX
MOV dword ptr [EDX],EAX
MOV EAX,dword ptr [ESP + 0x1c]
JZ 0x00070ff0
MOV dword ptr [EAX],0x1
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0xc
PUSH dword ptr [ESP + 0x28]
PUSH dword ptr [ESP + 0x28]
PUSH EAX
PUSH EDI
PUSH dword ptr [ESP + 0x2c]
CALL 0x0001b180
ADD ESP,0x20
MOV ESI,EAX
POP EBX
MOV EAX,ESI
POP ESI
POP EDI
RET
MOV ESI,0x1b
MOV dword ptr [EAX],0x0
POP EBX
MOV EAX,ESI
POP ESI
POP EDI
RET
(translation_unit "undefined4 __regparm2\nFUN_00070f70(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,\n            undefined4 *param_5)\n\n{\n  size_t sVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int unaff_EBX;\n  int *__s;\n  undefined4 unaff_retaddr;\n  \n  __s = param_4;\n  entry(param_2,0x70f7c);\n  sVar1 = strlen((char *)__s);\n  if (sVar1 != 0) {\n    uVar3 = FUN_0001b180(unaff_retaddr,__s,sVar1,param_4,param_5);\n    return uVar3;\n  }\n  iVar2 = (**(code **)(unaff_EBX + 0x400e8))(unaff_EBX + 0x15748);\n  *param_4 = iVar2;\n  if (iVar2 != 0) {\n    *param_5 = 1;\n    return 0;\n  }\n  *param_5 = 0;\n  return 0x1b;\n}\n\n" (function_definition "undefined4 __regparm2\nFUN_00070f70(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,\n            undefined4 *param_5)\n\n{\n  size_t sVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int unaff_EBX;\n  int *__s;\n  undefined4 unaff_retaddr;\n  \n  __s = param_4;\n  entry(param_2,0x70f7c);\n  sVar1 = strlen((char *)__s);\n  if (sVar1 != 0) {\n    uVar3 = FUN_0001b180(unaff_retaddr,__s,sVar1,param_4,param_5);\n    return uVar3;\n  }\n  iVar2 = (**(code **)(unaff_EBX + 0x400e8))(unaff_EBX + 0x15748);\n  *param_4 = iVar2;\n  if (iVar2 != 0) {\n    *param_5 = 1;\n    return 0;\n  }\n  *param_5 = 0;\n  return 0x1b;\n}" type_identifier (ERROR "__regparm2" identifier) (function_declarator "FUN_00070f70(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,\n            undefined4 *param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,\n            undefined4 *param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int unaff_EBX;\n  int *__s;\n  undefined4 unaff_retaddr;\n  \n  __s = param_4;\n  entry(param_2,0x70f7c);\n  sVar1 = strlen((char *)__s);\n  if (sVar1 != 0) {\n    uVar3 = FUN_0001b180(unaff_retaddr,__s,sVar1,param_4,param_5);\n    return uVar3;\n  }\n  iVar2 = (**(code **)(unaff_EBX + 0x400e8))(unaff_EBX + 0x15748);\n  *param_4 = iVar2;\n  if (iVar2 != 0) {\n    *param_5 = 1;\n    return 0;\n  }\n  *param_5 = 0;\n  return 0x1b;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "int *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "undefined4 unaff_retaddr;" type_identifier identifier ;) (expression_statement "__s = param_4;" (assignment_expression "__s = param_4" identifier = identifier) ;) (expression_statement "entry(param_2,0x70f7c);" (call_expression "entry(param_2,0x70f7c)" identifier (argument_list "(param_2,0x70f7c)" ( identifier , number_literal ))) ;) (expression_statement "sVar1 = strlen((char *)__s);" (assignment_expression "sVar1 = strlen((char *)__s)" identifier = (call_expression "strlen((char *)__s)" identifier (argument_list "((char *)__s)" ( (cast_expression "(char *)__s" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (sVar1 != 0) {\n    uVar3 = FUN_0001b180(unaff_retaddr,__s,sVar1,param_4,param_5);\n    return uVar3;\n  }" if (parenthesized_expression "(sVar1 != 0)" ( (binary_expression "sVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = FUN_0001b180(unaff_retaddr,__s,sVar1,param_4,param_5);\n    return uVar3;\n  }" { (expression_statement "uVar3 = FUN_0001b180(unaff_retaddr,__s,sVar1,param_4,param_5);" (assignment_expression "uVar3 = FUN_0001b180(unaff_retaddr,__s,sVar1,param_4,param_5)" identifier = (call_expression "FUN_0001b180(unaff_retaddr,__s,sVar1,param_4,param_5)" identifier (argument_list "(unaff_retaddr,__s,sVar1,param_4,param_5)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "iVar2 = (**(code **)(unaff_EBX + 0x400e8))(unaff_EBX + 0x15748);" (assignment_expression "iVar2 = (**(code **)(unaff_EBX + 0x400e8))(unaff_EBX + 0x15748)" identifier = (call_expression "(**(code **)(unaff_EBX + 0x400e8))(unaff_EBX + 0x15748)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x400e8))" ( (pointer_expression "**(code **)(unaff_EBX + 0x400e8)" * (pointer_expression "*(code **)(unaff_EBX + 0x400e8)" * (cast_expression "(code **)(unaff_EBX + 0x400e8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x400e8)" ( (binary_expression "unaff_EBX + 0x400e8" identifier + number_literal) ))))) )) (argument_list "(unaff_EBX + 0x15748)" ( (binary_expression "unaff_EBX + 0x15748" identifier + number_literal) )))) ;) (expression_statement "*param_4 = iVar2;" (assignment_expression "*param_4 = iVar2" (pointer_expression "*param_4" * identifier) = identifier) ;) (if_statement "if (iVar2 != 0) {\n    *param_5 = 1;\n    return 0;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    *param_5 = 1;\n    return 0;\n  }" { (expression_statement "*param_5 = 1;" (assignment_expression "*param_5 = 1" (pointer_expression "*param_5" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_5 = 0;" (assignment_expression "*param_5 = 0" (pointer_expression "*param_5" * identifier) = number_literal) ;) (return_statement "return 0x1b;" 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/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nCURLcode Curl_auth_create_login_message(Curl_easy *data,char *valuep,char **outptr,size_t *outlen)\n\n{\n  size_t insize;\n  char *pcVar1;\n  CURLcode CVar2;\n  \n  insize = strlen(valuep);\n  if (insize != 0) {\n    CVar2 = Curl_base64_encode(data,valuep,insize,outptr,outlen);\n    return CVar2;\n  }\n  pcVar1 = (*Curl_cstrdup)("=");\n  *outptr = pcVar1;\n  if (pcVar1 != (char *)0x0) {\n    *outlen = 1;\n    return CURLE_OK;\n  }\n  *outlen = 0;\n  return CURLE_OUT_OF_MEMORY;\n}\n\n" comment comment comment (function_definition "CURLcode Curl_auth_create_login_message(Curl_easy *data,char *valuep,char **outptr,size_t *outlen)\n\n{\n  size_t insize;\n  char *pcVar1;\n  CURLcode CVar2;\n  \n  insize = strlen(valuep);\n  if (insize != 0) {\n    CVar2 = Curl_base64_encode(data,valuep,insize,outptr,outlen);\n    return CVar2;\n  }\n  pcVar1 = (*Curl_cstrdup)("=");\n  *outptr = pcVar1;\n  if (pcVar1 != (char *)0x0) {\n    *outlen = 1;\n    return CURLE_OK;\n  }\n  *outlen = 0;\n  return CURLE_OUT_OF_MEMORY;\n}" type_identifier (function_declarator "Curl_auth_create_login_message(Curl_easy *data,char *valuep,char **outptr,size_t *outlen)" identifier (parameter_list "(Curl_easy *data,char *valuep,char **outptr,size_t *outlen)" ( (parameter_declaration "Curl_easy *data" type_identifier (pointer_declarator "*data" * identifier)) , (parameter_declaration "char *valuep" primitive_type (pointer_declarator "*valuep" * identifier)) , (parameter_declaration "char **outptr" primitive_type (pointer_declarator "**outptr" * (pointer_declarator "*outptr" * identifier))) , (parameter_declaration "size_t *outlen" primitive_type (pointer_declarator "*outlen" * identifier)) ))) (compound_statement "{\n  size_t insize;\n  char *pcVar1;\n  CURLcode CVar2;\n  \n  insize = strlen(valuep);\n  if (insize != 0) {\n    CVar2 = Curl_base64_encode(data,valuep,insize,outptr,outlen);\n    return CVar2;\n  }\n  pcVar1 = (*Curl_cstrdup)("=");\n  *outptr = pcVar1;\n  if (pcVar1 != (char *)0x0) {\n    *outlen = 1;\n    return CURLE_OK;\n  }\n  *outlen = 0;\n  return CURLE_OUT_OF_MEMORY;\n}" { (declaration "size_t insize;" primitive_type identifier ;) (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "CURLcode CVar2;" type_identifier identifier ;) (expression_statement "insize = strlen(valuep);" (assignment_expression "insize = strlen(valuep)" identifier = (call_expression "strlen(valuep)" identifier (argument_list "(valuep)" ( identifier )))) ;) (if_statement "if (insize != 0) {\n    CVar2 = Curl_base64_encode(data,valuep,insize,outptr,outlen);\n    return CVar2;\n  }" if (parenthesized_expression "(insize != 0)" ( (binary_expression "insize != 0" identifier != number_literal) )) (compound_statement "{\n    CVar2 = Curl_base64_encode(data,valuep,insize,outptr,outlen);\n    return CVar2;\n  }" { (expression_statement "CVar2 = Curl_base64_encode(data,valuep,insize,outptr,outlen);" (assignment_expression "CVar2 = Curl_base64_encode(data,valuep,insize,outptr,outlen)" identifier = (call_expression "Curl_base64_encode(data,valuep,insize,outptr,outlen)" identifier (argument_list "(data,valuep,insize,outptr,outlen)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (return_statement "return CVar2;" return identifier ;) })) (expression_statement "pcVar1 = (*Curl_cstrdup)("=");" (assignment_expression "pcVar1 = (*Curl_cstrdup)("=")" identifier = (call_expression "(*Curl_cstrdup)("=")" (parenthesized_expression "(*Curl_cstrdup)" ( (pointer_expression "*Curl_cstrdup" * identifier) )) (argument_list "("=")" ( (string_literal ""="" " string_content ") )))) ;) (expression_statement "*outptr = pcVar1;" (assignment_expression "*outptr = pcVar1" (pointer_expression "*outptr" * identifier) = identifier) ;) (if_statement "if (pcVar1 != (char *)0x0) {\n    *outlen = 1;\n    return CURLE_OK;\n  }" if (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *outlen = 1;\n    return CURLE_OK;\n  }" { (expression_statement "*outlen = 1;" (assignment_expression "*outlen = 1" (pointer_expression "*outlen" * identifier) = number_literal) ;) (return_statement "return CURLE_OK;" return identifier ;) })) (expression_statement "*outlen = 0;" (assignment_expression "*outlen = 0" (pointer_expression "*outlen" * identifier) = number_literal) ;) (return_statement "return CURLE_OUT_OF_MEMORY;" return identifier ;) })))
(translation_unit "undefined4 __regparm2\nFUN_00070f70(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,\n            undefined4 *param_5)\n\n{\n  size_t sVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int unaff_EBX;\n  int *__s;\n  undefined4 unaff_retaddr;\n  \n  __s = param_4;\n  entry(param_2,0x70f7c);\n  sVar1 = strlen((char *)__s);\n  if (sVar1 != 0) {\n    uVar3 = FUN_0001b180(unaff_retaddr,__s,sVar1,param_4,param_5);\n    return uVar3;\n  }\n  iVar2 = (**(code **)(unaff_EBX + 0x400e8))(unaff_EBX + 0x15748);\n  *param_4 = iVar2;\n  if (iVar2 != 0) {\n    *param_5 = 1;\n    return 0;\n  }\n  *param_5 = 0;\n  return 0x1b;\n}\n\n" (function_definition "undefined4 __regparm2\nFUN_00070f70(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,\n            undefined4 *param_5)\n\n{\n  size_t sVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int unaff_EBX;\n  int *__s;\n  undefined4 unaff_retaddr;\n  \n  __s = param_4;\n  entry(param_2,0x70f7c);\n  sVar1 = strlen((char *)__s);\n  if (sVar1 != 0) {\n    uVar3 = FUN_0001b180(unaff_retaddr,__s,sVar1,param_4,param_5);\n    return uVar3;\n  }\n  iVar2 = (**(code **)(unaff_EBX + 0x400e8))(unaff_EBX + 0x15748);\n  *param_4 = iVar2;\n  if (iVar2 != 0) {\n    *param_5 = 1;\n    return 0;\n  }\n  *param_5 = 0;\n  return 0x1b;\n}" type_identifier (ERROR "__regparm2" identifier) (function_declarator "FUN_00070f70(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,\n            undefined4 *param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,\n            undefined4 *param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int unaff_EBX;\n  int *__s;\n  undefined4 unaff_retaddr;\n  \n  __s = param_4;\n  entry(param_2,0x70f7c);\n  sVar1 = strlen((char *)__s);\n  if (sVar1 != 0) {\n    uVar3 = FUN_0001b180(unaff_retaddr,__s,sVar1,param_4,param_5);\n    return uVar3;\n  }\n  iVar2 = (**(code **)(unaff_EBX + 0x400e8))(unaff_EBX + 0x15748);\n  *param_4 = iVar2;\n  if (iVar2 != 0) {\n    *param_5 = 1;\n    return 0;\n  }\n  *param_5 = 0;\n  return 0x1b;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "int *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "undefined4 unaff_retaddr;" type_identifier identifier ;) (expression_statement "__s = param_4;" (assignment_expression "__s = param_4" identifier = identifier) ;) (expression_statement "entry(param_2,0x70f7c);" (call_expression "entry(param_2,0x70f7c)" identifier (argument_list "(param_2,0x70f7c)" ( identifier , number_literal ))) ;) (expression_statement "sVar1 = strlen((char *)__s);" (assignment_expression "sVar1 = strlen((char *)__s)" identifier = (call_expression "strlen((char *)__s)" identifier (argument_list "((char *)__s)" ( (cast_expression "(char *)__s" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (sVar1 != 0) {\n    uVar3 = FUN_0001b180(unaff_retaddr,__s,sVar1,param_4,param_5);\n    return uVar3;\n  }" if (parenthesized_expression "(sVar1 != 0)" ( (binary_expression "sVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = FUN_0001b180(unaff_retaddr,__s,sVar1,param_4,param_5);\n    return uVar3;\n  }" { (expression_statement "uVar3 = FUN_0001b180(unaff_retaddr,__s,sVar1,param_4,param_5);" (assignment_expression "uVar3 = FUN_0001b180(unaff_retaddr,__s,sVar1,param_4,param_5)" identifier = (call_expression "FUN_0001b180(unaff_retaddr,__s,sVar1,param_4,param_5)" identifier (argument_list "(unaff_retaddr,__s,sVar1,param_4,param_5)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "iVar2 = (**(code **)(unaff_EBX + 0x400e8))(unaff_EBX + 0x15748);" (assignment_expression "iVar2 = (**(code **)(unaff_EBX + 0x400e8))(unaff_EBX + 0x15748)" identifier = (call_expression "(**(code **)(unaff_EBX + 0x400e8))(unaff_EBX + 0x15748)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x400e8))" ( (pointer_expression "**(code **)(unaff_EBX + 0x400e8)" * (pointer_expression "*(code **)(unaff_EBX + 0x400e8)" * (cast_expression "(code **)(unaff_EBX + 0x400e8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x400e8)" ( (binary_expression "unaff_EBX + 0x400e8" identifier + number_literal) ))))) )) (argument_list "(unaff_EBX + 0x15748)" ( (binary_expression "unaff_EBX + 0x15748" identifier + number_literal) )))) ;) (expression_statement "*param_4 = iVar2;" (assignment_expression "*param_4 = iVar2" (pointer_expression "*param_4" * identifier) = identifier) ;) (if_statement "if (iVar2 != 0) {\n    *param_5 = 1;\n    return 0;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    *param_5 = 1;\n    return 0;\n  }" { (expression_statement "*param_5 = 1;" (assignment_expression "*param_5 = 1" (pointer_expression "*param_5" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_5 = 0;" (assignment_expression "*param_5 = 0" (pointer_expression "*param_5" * identifier) = number_literal) ;) (return_statement "return 0x1b;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm2\nFUN_00070f70(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,\n            undefined4 *param_5)\n\n{\n  size_t sVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int unaff_EBX;\n  int *__s;\n  undefined4 unaff_retaddr;\n  \n  __s = param_4;\n  entry(param_2,0x70f7c);\n  sVar1 = strlen((char *)__s);\n  if (sVar1 != 0) {\n    uVar3 = FUN_0001b180(unaff_retaddr,__s,sVar1,param_4,param_5);\n    return uVar3;\n  }\n  iVar2 = (**(code **)(unaff_EBX + 0x400e8))(unaff_EBX + 0x15748);\n  *param_4 = iVar2;\n  if (iVar2 != 0) {\n    *param_5 = 1;\n    return 0;\n  }\n  *param_5 = 0;\n  return 0x1b;\n}" (type_identifier "undefined4") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_00070f70(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,\n            undefined4 *param_5)" (identifier "FUN_00070f70") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,\n            undefined4 *param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "undefined4 *param_5" (type_identifier "undefined4") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  size_t sVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int unaff_EBX;\n  int *__s;\n  undefined4 unaff_retaddr;\n  \n  __s = param_4;\n  entry(param_2,0x70f7c);\n  sVar1 = strlen((char *)__s);\n  if (sVar1 != 0) {\n    uVar3 = FUN_0001b180(unaff_retaddr,__s,sVar1,param_4,param_5);\n    return uVar3;\n  }\n  iVar2 = (**(code **)(unaff_EBX + 0x400e8))(unaff_EBX + 0x15748);\n  *param_4 = iVar2;\n  if (iVar2 != 0) {\n    *param_5 = 1;\n    return 0;\n  }\n  *param_5 = 0;\n  return 0x1b;\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int unaff_EBX;" (primitive_type "int") (identifier "unaff_EBX") (; ";")) (declaration "int *__s;" (primitive_type "int") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "undefined4 unaff_retaddr;" (type_identifier "undefined4") (identifier "unaff_retaddr") (; ";")) (expression_statement "__s = param_4;" (assignment_expression "__s = param_4" (identifier "__s") (= "=") (identifier "param_4")) (; ";")) (expression_statement "entry(param_2,0x70f7c);" (call_expression "entry(param_2,0x70f7c)" (identifier "entry") (argument_list "(param_2,0x70f7c)" (( "(") (identifier "param_2") (, ",") (number_literal "0x70f7c") () ")"))) (; ";")) (expression_statement "sVar1 = strlen((char *)__s);" (assignment_expression "sVar1 = strlen((char *)__s)" (identifier "sVar1") (= "=") (call_expression "strlen((char *)__s)" (identifier "strlen") (argument_list "((char *)__s)" (( "(") (cast_expression "(char *)__s" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "__s")) () ")")))) (; ";")) (if_statement "if (sVar1 != 0) {\n    uVar3 = FUN_0001b180(unaff_retaddr,__s,sVar1,param_4,param_5);\n    return uVar3;\n  }" (if "if") (parenthesized_expression "(sVar1 != 0)" (( "(") (binary_expression "sVar1 != 0" (identifier "sVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = FUN_0001b180(unaff_retaddr,__s,sVar1,param_4,param_5);\n    return uVar3;\n  }" ({ "{") (expression_statement "uVar3 = FUN_0001b180(unaff_retaddr,__s,sVar1,param_4,param_5);" (assignment_expression "uVar3 = FUN_0001b180(unaff_retaddr,__s,sVar1,param_4,param_5)" (identifier "uVar3") (= "=") (call_expression "FUN_0001b180(unaff_retaddr,__s,sVar1,param_4,param_5)" (identifier "FUN_0001b180") (argument_list "(unaff_retaddr,__s,sVar1,param_4,param_5)" (( "(") (identifier "unaff_retaddr") (, ",") (identifier "__s") (, ",") (identifier "sVar1") (, ",") (identifier "param_4") (, ",") (identifier "param_5") () ")")))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (expression_statement "iVar2 = (**(code **)(unaff_EBX + 0x400e8))(unaff_EBX + 0x15748);" (assignment_expression "iVar2 = (**(code **)(unaff_EBX + 0x400e8))(unaff_EBX + 0x15748)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(unaff_EBX + 0x400e8))(unaff_EBX + 0x15748)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x400e8))" (( "(") (pointer_expression "**(code **)(unaff_EBX + 0x400e8)" (* "*") (pointer_expression "*(code **)(unaff_EBX + 0x400e8)" (* "*") (cast_expression "(code **)(unaff_EBX + 0x400e8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EBX + 0x400e8)" (( "(") (binary_expression "unaff_EBX + 0x400e8" (identifier "unaff_EBX") (+ "+") (number_literal "0x400e8")) () ")"))))) () ")")) (argument_list "(unaff_EBX + 0x15748)" (( "(") (binary_expression "unaff_EBX + 0x15748" (identifier "unaff_EBX") (+ "+") (number_literal "0x15748")) () ")")))) (; ";")) (expression_statement "*param_4 = iVar2;" (assignment_expression "*param_4 = iVar2" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (iVar2 != 0) {\n    *param_5 = 1;\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *param_5 = 1;\n    return 0;\n  }" ({ "{") (expression_statement "*param_5 = 1;" (assignment_expression "*param_5 = 1" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (number_literal "1")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*param_5 = 0;" (assignment_expression "*param_5 = 0" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 0x1b;" (return "return") (number_literal "0x1b") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

type_1 function_1(type_2 *data,char *valuep,char **outptr,size_t *outlen)

{
  size_t var_2;
  char *var_4;
  type_1 CVar2;
  
  var_2 = var_1(valuep);
  if (var_2 != 0) {
    CVar2 = var_3(data,valuep,var_2,outptr,outlen);
    return CVar2;
  }
  var_4 = (*Curl_cstrdup)("=");
  *outptr = var_4;
  if (var_4 != (char *)0x0) {
    *outlen = 1;
    return CURLE_OK;
  }
  *outlen = 0;
  return CURLE_OUT_OF_MEMORY;
}


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

undefined4 __regparm2
MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,int *param_4,
            undefined4 *param_5)

{
  size_t sVar1;
  int iVar2;
  undefined4 uVar3;
  int unaff_EBX;
  int *__s;
  undefined4 unaff_retaddr;
  
  __s = param_4;
  entry(param_2,0x70f7c);
  sVar1 = strlen((char *)__s);
  if (sVar1 != 0) {
    uVar3 = FUN_0001b180(unaff_retaddr,__s,sVar1,param_4,param_5);
    return uVar3;
  }
  iVar2 = (**(code **)(unaff_EBX + 0x400e8))(unaff_EBX + 0x15748);
  *param_4 = iVar2;
  if (iVar2 != 0) {
    *param_5 = 1;
    return 0;
  }
  *param_5 = 0;
  return 0x1b;
}

