
/* 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 smb_connect(connectdata *conn,_Bool *done)

{
  curl_strdup_callback p_Var1;
  void *pvVar2;
  char *pcVar3;
  char *pcVar4;
  
  if ((conn->bits).user_passwd == false) {
    return CURLE_LOGIN_DENIED;
  }
  (conn->proto).smbc.state = SMB_CONNECTING;
  pvVar2 = (*Curl_cmalloc)(0x9000);
  (conn->proto).ftpc.pp.response.tv_sec = (time_t)pvVar2;
  if (pvVar2 != (void *)0x0) {
    Curl_conncontrol(conn,0);
    pcVar4 = conn->user;
    pcVar3 = strchr(pcVar4,0x2f);
    if ((pcVar3 == (char *)0x0) &&
       (pcVar3 = strchr(pcVar4,0x5c), p_Var1 = Curl_cstrdup, pcVar3 == (char *)0x0)) {
      (conn->proto).ftpc.pp.cache_size = (size_t)pcVar4;
      pcVar4 = (*p_Var1)((conn->host).name);
      (conn->proto).ftpc.pp.nread_resp = (size_t)pcVar4;
      if (pcVar4 == (char *)0x0) {
        return CURLE_OUT_OF_MEMORY;
      }
      return CURLE_OK;
    }
    (conn->proto).ftpc.pp.cache_size = (size_t)(pcVar3 + 1);
    pcVar4 = (*Curl_cstrdup)(pcVar4);
    (conn->proto).ftpc.pp.nread_resp = (size_t)pcVar4;
    if (pcVar4 != (char *)0x0) {
      pcVar3[(int)pcVar4 - (int)conn->user] = '\0';
      return CURLE_OK;
    }
  }
  return CURLE_OUT_OF_MEMORY;
}



undefined4 __regparm3 FUN_0006b180(undefined4 param_1,undefined4 param_2)

{
  char *__s;
  code *pcVar1;
  undefined4 uVar2;
  int iVar3;
  char *pcVar4;
  int unaff_EBX;
  int unaff_retaddr;
  
  uVar2 = entry(param_2,0x6b18e);
  if (*(char *)(unaff_retaddr + 0x250) == '\0') {
    return uVar2;
  }
  *(undefined4 *)(unaff_retaddr + 0x4a4) = 1;
  iVar3 = (**(code **)(unaff_EBX + 0x4bee2))(0x9000);
  *(int *)(unaff_retaddr + 0x4c4) = iVar3;
  if (iVar3 != 0) {
    FUN_00044880(unaff_retaddr,0);
    __s = *(char **)(unaff_retaddr + 0x168);
    pcVar4 = strchr(__s,0x2f);
    if (pcVar4 == (char *)0x0) {
      pcVar4 = strchr(__s,0x5c);
      pcVar1 = *(code **)(unaff_EBX + 0x4bed6);
      if (pcVar4 == (char *)0x0) {
        *(char **)(unaff_retaddr + 0x4a8) = __s;
        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));
        *(int *)(unaff_retaddr + 0x4ac) = iVar3;
        if (iVar3 == 0) {
          return 0x1b;
        }
        return 0;
      }
    }
    *(char **)(unaff_retaddr + 0x4a8) = pcVar4 + 1;
    iVar3 = (**(code **)(unaff_EBX + 0x4bed6))(__s);
    *(int *)(unaff_retaddr + 0x4ac) = iVar3;
    if (iVar3 != 0) {
      pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0';
      return 0;
    }
  }
  return 0x1b;
}


PUSH EBP
MOV EAX,0x43
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00019ed0
ADD EBX,0x4b652
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
CMP byte ptr [ESI + 0x250],0x0
JZ 0x0006b21d
SUB ESP,0xc
LEA EAX,[EBX + 0x890]
MOV dword ptr [ESI + 0x4a4],0x1
PUSH 0x9000
CALL dword ptr [EAX]
MOV dword ptr [ESI + 0x4c4],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0006b228
SUB ESP,0x8
PUSH 0x0
PUSH ESI
CALL 0x00044880
MOV EBP,dword ptr [ESI + 0x168]
POP EAX
POP EDX
PUSH 0x2f
PUSH EBP
CALL 0x00018ea0
ADD ESP,0x10
LEA EDX,[EBX + 0x884]
MOV EDI,EAX
TEST EAX,EAX
JZ 0x0006b238
SUB ESP,0xc
LEA EAX,[EDI + 0x1]
MOV dword ptr [ESI + 0x4a8],EAX
PUSH EBP
CALL dword ptr [EDX]
MOV dword ptr [ESI + 0x4ac],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0006b228
SUB EDI,dword ptr [ESI + 0x168]
MOV byte ptr [EAX + EDI*0x1],0x0
XOR EAX,EAX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0x1c
MOV EAX,0x1b
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0x8
PUSH 0x5c
PUSH EBP
CALL 0x00018ea0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
MOV EDI,EAX
MOV EAX,dword ptr [EDX]
TEST EDI,EDI
JNZ 0x0006b1f5
SUB ESP,0xc
MOV dword ptr [ESI + 0x4a8],EBP
PUSH dword ptr [ESI + 0x94]
CALL EAX
MOV dword ptr [ESI + 0x4ac],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0006b228
ADD ESP,0x1c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "undefined4 __regparm3 FUN_0006b180(undefined4 param_1,undefined4 param_2)\n\n{\n  char *__s;\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  int unaff_EBX;\n  int unaff_retaddr;\n  \n  uVar2 = entry(param_2,0x6b18e);\n  if (*(char *)(unaff_retaddr + 0x250) == '\0') {\n    return uVar2;\n  }\n  *(undefined4 *)(unaff_retaddr + 0x4a4) = 1;\n  iVar3 = (**(code **)(unaff_EBX + 0x4bee2))(0x9000);\n  *(int *)(unaff_retaddr + 0x4c4) = iVar3;\n  if (iVar3 != 0) {\n    FUN_00044880(unaff_retaddr,0);\n    __s = *(char **)(unaff_retaddr + 0x168);\n    pcVar4 = strchr(__s,0x2f);\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = strchr(__s,0x5c);\n      pcVar1 = *(code **)(unaff_EBX + 0x4bed6);\n      if (pcVar4 == (char *)0x0) {\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }\n    }\n    *(char **)(unaff_retaddr + 0x4a8) = pcVar4 + 1;\n    iVar3 = (**(code **)(unaff_EBX + 0x4bed6))(__s);\n    *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n    if (iVar3 != 0) {\n      pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0';\n      return 0;\n    }\n  }\n  return 0x1b;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_0006b180(undefined4 param_1,undefined4 param_2)\n\n{\n  char *__s;\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  int unaff_EBX;\n  int unaff_retaddr;\n  \n  uVar2 = entry(param_2,0x6b18e);\n  if (*(char *)(unaff_retaddr + 0x250) == '\0') {\n    return uVar2;\n  }\n  *(undefined4 *)(unaff_retaddr + 0x4a4) = 1;\n  iVar3 = (**(code **)(unaff_EBX + 0x4bee2))(0x9000);\n  *(int *)(unaff_retaddr + 0x4c4) = iVar3;\n  if (iVar3 != 0) {\n    FUN_00044880(unaff_retaddr,0);\n    __s = *(char **)(unaff_retaddr + 0x168);\n    pcVar4 = strchr(__s,0x2f);\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = strchr(__s,0x5c);\n      pcVar1 = *(code **)(unaff_EBX + 0x4bed6);\n      if (pcVar4 == (char *)0x0) {\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }\n    }\n    *(char **)(unaff_retaddr + 0x4a8) = pcVar4 + 1;\n    iVar3 = (**(code **)(unaff_EBX + 0x4bed6))(__s);\n    *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n    if (iVar3 != 0) {\n      pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0';\n      return 0;\n    }\n  }\n  return 0x1b;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0006b180(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  char *__s;\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  int unaff_EBX;\n  int unaff_retaddr;\n  \n  uVar2 = entry(param_2,0x6b18e);\n  if (*(char *)(unaff_retaddr + 0x250) == '\0') {\n    return uVar2;\n  }\n  *(undefined4 *)(unaff_retaddr + 0x4a4) = 1;\n  iVar3 = (**(code **)(unaff_EBX + 0x4bee2))(0x9000);\n  *(int *)(unaff_retaddr + 0x4c4) = iVar3;\n  if (iVar3 != 0) {\n    FUN_00044880(unaff_retaddr,0);\n    __s = *(char **)(unaff_retaddr + 0x168);\n    pcVar4 = strchr(__s,0x2f);\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = strchr(__s,0x5c);\n      pcVar1 = *(code **)(unaff_EBX + 0x4bed6);\n      if (pcVar4 == (char *)0x0) {\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }\n    }\n    *(char **)(unaff_retaddr + 0x4a8) = pcVar4 + 1;\n    iVar3 = (**(code **)(unaff_EBX + 0x4bed6))(__s);\n    *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n    if (iVar3 != 0) {\n      pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0';\n      return 0;\n    }\n  }\n  return 0x1b;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "int unaff_retaddr;" primitive_type identifier ;) (expression_statement "uVar2 = entry(param_2,0x6b18e);" (assignment_expression "uVar2 = entry(param_2,0x6b18e)" identifier = (call_expression "entry(param_2,0x6b18e)" identifier (argument_list "(param_2,0x6b18e)" ( identifier , number_literal )))) ;) (if_statement "if (*(char *)(unaff_retaddr + 0x250) == '\0') {\n    return uVar2;\n  }" if (parenthesized_expression "(*(char *)(unaff_retaddr + 0x250) == '\0')" ( (binary_expression "*(char *)(unaff_retaddr + 0x250) == '\0'" (pointer_expression "*(char *)(unaff_retaddr + 0x250)" * (cast_expression "(char *)(unaff_retaddr + 0x250)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x250)" ( (binary_expression "unaff_retaddr + 0x250" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) })) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x4a4) = 1;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x4a4) = 1" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x4a4)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x4a4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x4a4)" ( (binary_expression "unaff_retaddr + 0x4a4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = (**(code **)(unaff_EBX + 0x4bee2))(0x9000);" (assignment_expression "iVar3 = (**(code **)(unaff_EBX + 0x4bee2))(0x9000)" identifier = (call_expression "(**(code **)(unaff_EBX + 0x4bee2))(0x9000)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x4bee2))" ( (pointer_expression "**(code **)(unaff_EBX + 0x4bee2)" * (pointer_expression "*(code **)(unaff_EBX + 0x4bee2)" * (cast_expression "(code **)(unaff_EBX + 0x4bee2)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x4bee2)" ( (binary_expression "unaff_EBX + 0x4bee2" identifier + number_literal) ))))) )) (argument_list "(0x9000)" ( number_literal )))) ;) (expression_statement "*(int *)(unaff_retaddr + 0x4c4) = iVar3;" (assignment_expression "*(int *)(unaff_retaddr + 0x4c4) = iVar3" (pointer_expression "*(int *)(unaff_retaddr + 0x4c4)" * (cast_expression "(int *)(unaff_retaddr + 0x4c4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x4c4)" ( (binary_expression "unaff_retaddr + 0x4c4" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar3 != 0) {\n    FUN_00044880(unaff_retaddr,0);\n    __s = *(char **)(unaff_retaddr + 0x168);\n    pcVar4 = strchr(__s,0x2f);\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = strchr(__s,0x5c);\n      pcVar1 = *(code **)(unaff_EBX + 0x4bed6);\n      if (pcVar4 == (char *)0x0) {\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }\n    }\n    *(char **)(unaff_retaddr + 0x4a8) = pcVar4 + 1;\n    iVar3 = (**(code **)(unaff_EBX + 0x4bed6))(__s);\n    *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n    if (iVar3 != 0) {\n      pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0';\n      return 0;\n    }\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00044880(unaff_retaddr,0);\n    __s = *(char **)(unaff_retaddr + 0x168);\n    pcVar4 = strchr(__s,0x2f);\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = strchr(__s,0x5c);\n      pcVar1 = *(code **)(unaff_EBX + 0x4bed6);\n      if (pcVar4 == (char *)0x0) {\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }\n    }\n    *(char **)(unaff_retaddr + 0x4a8) = pcVar4 + 1;\n    iVar3 = (**(code **)(unaff_EBX + 0x4bed6))(__s);\n    *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n    if (iVar3 != 0) {\n      pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0';\n      return 0;\n    }\n  }" { (expression_statement "FUN_00044880(unaff_retaddr,0);" (call_expression "FUN_00044880(unaff_retaddr,0)" identifier (argument_list "(unaff_retaddr,0)" ( identifier , number_literal ))) ;) (expression_statement "__s = *(char **)(unaff_retaddr + 0x168);" (assignment_expression "__s = *(char **)(unaff_retaddr + 0x168)" identifier = (pointer_expression "*(char **)(unaff_retaddr + 0x168)" * (cast_expression "(char **)(unaff_retaddr + 0x168)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr + 0x168)" ( (binary_expression "unaff_retaddr + 0x168" identifier + number_literal) ))))) ;) (expression_statement "pcVar4 = strchr(__s,0x2f);" (assignment_expression "pcVar4 = strchr(__s,0x2f)" identifier = (call_expression "strchr(__s,0x2f)" identifier (argument_list "(__s,0x2f)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar4 == (char *)0x0) {\n      pcVar4 = strchr(__s,0x5c);\n      pcVar1 = *(code **)(unaff_EBX + 0x4bed6);\n      if (pcVar4 == (char *)0x0) {\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }\n    }" if (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar4 = strchr(__s,0x5c);\n      pcVar1 = *(code **)(unaff_EBX + 0x4bed6);\n      if (pcVar4 == (char *)0x0) {\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }\n    }" { (expression_statement "pcVar4 = strchr(__s,0x5c);" (assignment_expression "pcVar4 = strchr(__s,0x5c)" identifier = (call_expression "strchr(__s,0x5c)" identifier (argument_list "(__s,0x5c)" ( identifier , number_literal )))) ;) (expression_statement "pcVar1 = *(code **)(unaff_EBX + 0x4bed6);" (assignment_expression "pcVar1 = *(code **)(unaff_EBX + 0x4bed6)" identifier = (pointer_expression "*(code **)(unaff_EBX + 0x4bed6)" * (cast_expression "(code **)(unaff_EBX + 0x4bed6)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x4bed6)" ( (binary_expression "unaff_EBX + 0x4bed6" identifier + number_literal) ))))) ;) (if_statement "if (pcVar4 == (char *)0x0) {\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }" if (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }" { (expression_statement "*(char **)(unaff_retaddr + 0x4a8) = __s;" (assignment_expression "*(char **)(unaff_retaddr + 0x4a8) = __s" (pointer_expression "*(char **)(unaff_retaddr + 0x4a8)" * (cast_expression "(char **)(unaff_retaddr + 0x4a8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr + 0x4a8)" ( (binary_expression "unaff_retaddr + 0x4a8" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));" (assignment_expression "iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94))" identifier = (call_expression "(*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94))" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(*(undefined4 *)(unaff_retaddr + 0x94))" ( (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x94)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x94)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x94)" ( (binary_expression "unaff_retaddr + 0x94" identifier + number_literal) )))) )))) ;) (expression_statement "*(int *)(unaff_retaddr + 0x4ac) = iVar3;" (assignment_expression "*(int *)(unaff_retaddr + 0x4ac) = iVar3" (pointer_expression "*(int *)(unaff_retaddr + 0x4ac)" * (cast_expression "(int *)(unaff_retaddr + 0x4ac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x4ac)" ( (binary_expression "unaff_retaddr + 0x4ac" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar3 == 0) {\n          return 0x1b;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          return 0x1b;\n        }" { (return_statement "return 0x1b;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "*(char **)(unaff_retaddr + 0x4a8) = pcVar4 + 1;" (assignment_expression "*(char **)(unaff_retaddr + 0x4a8) = pcVar4 + 1" (pointer_expression "*(char **)(unaff_retaddr + 0x4a8)" * (cast_expression "(char **)(unaff_retaddr + 0x4a8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr + 0x4a8)" ( (binary_expression "unaff_retaddr + 0x4a8" identifier + number_literal) )))) = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = (**(code **)(unaff_EBX + 0x4bed6))(__s);" (assignment_expression "iVar3 = (**(code **)(unaff_EBX + 0x4bed6))(__s)" identifier = (call_expression "(**(code **)(unaff_EBX + 0x4bed6))(__s)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x4bed6))" ( (pointer_expression "**(code **)(unaff_EBX + 0x4bed6)" * (pointer_expression "*(code **)(unaff_EBX + 0x4bed6)" * (cast_expression "(code **)(unaff_EBX + 0x4bed6)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x4bed6)" ( (binary_expression "unaff_EBX + 0x4bed6" identifier + number_literal) ))))) )) (argument_list "(__s)" ( identifier )))) ;) (expression_statement "*(int *)(unaff_retaddr + 0x4ac) = iVar3;" (assignment_expression "*(int *)(unaff_retaddr + 0x4ac) = iVar3" (pointer_expression "*(int *)(unaff_retaddr + 0x4ac)" * (cast_expression "(int *)(unaff_retaddr + 0x4ac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x4ac)" ( (binary_expression "unaff_retaddr + 0x4ac" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar3 != 0) {\n      pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0';\n      return 0;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0';\n      return 0;\n    }" { (expression_statement "pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0';" (assignment_expression "pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0'" (subscript_expression "pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)]" identifier [ (binary_expression "iVar3 - *(int *)(unaff_retaddr + 0x168)" identifier - (pointer_expression "*(int *)(unaff_retaddr + 0x168)" * (cast_expression "(int *)(unaff_retaddr + 0x168)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x168)" ( (binary_expression "unaff_retaddr + 0x168" identifier + number_literal) ))))) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return 0;" return 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 smb_connect(connectdata *conn,_Bool *done)\n\n{\n  curl_strdup_callback p_Var1;\n  void *pvVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  if ((conn->bits).user_passwd == false) {\n    return CURLE_LOGIN_DENIED;\n  }\n  (conn->proto).smbc.state = SMB_CONNECTING;\n  pvVar2 = (*Curl_cmalloc)(0x9000);\n  (conn->proto).ftpc.pp.response.tv_sec = (time_t)pvVar2;\n  if (pvVar2 != (void *)0x0) {\n    Curl_conncontrol(conn,0);\n    pcVar4 = conn->user;\n    pcVar3 = strchr(pcVar4,0x2f);\n    if ((pcVar3 == (char *)0x0) &&\n       (pcVar3 = strchr(pcVar4,0x5c), p_Var1 = Curl_cstrdup, pcVar3 == (char *)0x0)) {\n      (conn->proto).ftpc.pp.cache_size = (size_t)pcVar4;\n      pcVar4 = (*p_Var1)((conn->host).name);\n      (conn->proto).ftpc.pp.nread_resp = (size_t)pcVar4;\n      if (pcVar4 == (char *)0x0) {\n        return CURLE_OUT_OF_MEMORY;\n      }\n      return CURLE_OK;\n    }\n    (conn->proto).ftpc.pp.cache_size = (size_t)(pcVar3 + 1);\n    pcVar4 = (*Curl_cstrdup)(pcVar4);\n    (conn->proto).ftpc.pp.nread_resp = (size_t)pcVar4;\n    if (pcVar4 != (char *)0x0) {\n      pcVar3[(int)pcVar4 - (int)conn->user] = '\0';\n      return CURLE_OK;\n    }\n  }\n  return CURLE_OUT_OF_MEMORY;\n}\n\n" comment comment comment (function_definition "CURLcode smb_connect(connectdata *conn,_Bool *done)\n\n{\n  curl_strdup_callback p_Var1;\n  void *pvVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  if ((conn->bits).user_passwd == false) {\n    return CURLE_LOGIN_DENIED;\n  }\n  (conn->proto).smbc.state = SMB_CONNECTING;\n  pvVar2 = (*Curl_cmalloc)(0x9000);\n  (conn->proto).ftpc.pp.response.tv_sec = (time_t)pvVar2;\n  if (pvVar2 != (void *)0x0) {\n    Curl_conncontrol(conn,0);\n    pcVar4 = conn->user;\n    pcVar3 = strchr(pcVar4,0x2f);\n    if ((pcVar3 == (char *)0x0) &&\n       (pcVar3 = strchr(pcVar4,0x5c), p_Var1 = Curl_cstrdup, pcVar3 == (char *)0x0)) {\n      (conn->proto).ftpc.pp.cache_size = (size_t)pcVar4;\n      pcVar4 = (*p_Var1)((conn->host).name);\n      (conn->proto).ftpc.pp.nread_resp = (size_t)pcVar4;\n      if (pcVar4 == (char *)0x0) {\n        return CURLE_OUT_OF_MEMORY;\n      }\n      return CURLE_OK;\n    }\n    (conn->proto).ftpc.pp.cache_size = (size_t)(pcVar3 + 1);\n    pcVar4 = (*Curl_cstrdup)(pcVar4);\n    (conn->proto).ftpc.pp.nread_resp = (size_t)pcVar4;\n    if (pcVar4 != (char *)0x0) {\n      pcVar3[(int)pcVar4 - (int)conn->user] = '\0';\n      return CURLE_OK;\n    }\n  }\n  return CURLE_OUT_OF_MEMORY;\n}" type_identifier (function_declarator "smb_connect(connectdata *conn,_Bool *done)" identifier (parameter_list "(connectdata *conn,_Bool *done)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) , (parameter_declaration "_Bool *done" type_identifier (pointer_declarator "*done" * identifier)) ))) (compound_statement "{\n  curl_strdup_callback p_Var1;\n  void *pvVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  if ((conn->bits).user_passwd == false) {\n    return CURLE_LOGIN_DENIED;\n  }\n  (conn->proto).smbc.state = SMB_CONNECTING;\n  pvVar2 = (*Curl_cmalloc)(0x9000);\n  (conn->proto).ftpc.pp.response.tv_sec = (time_t)pvVar2;\n  if (pvVar2 != (void *)0x0) {\n    Curl_conncontrol(conn,0);\n    pcVar4 = conn->user;\n    pcVar3 = strchr(pcVar4,0x2f);\n    if ((pcVar3 == (char *)0x0) &&\n       (pcVar3 = strchr(pcVar4,0x5c), p_Var1 = Curl_cstrdup, pcVar3 == (char *)0x0)) {\n      (conn->proto).ftpc.pp.cache_size = (size_t)pcVar4;\n      pcVar4 = (*p_Var1)((conn->host).name);\n      (conn->proto).ftpc.pp.nread_resp = (size_t)pcVar4;\n      if (pcVar4 == (char *)0x0) {\n        return CURLE_OUT_OF_MEMORY;\n      }\n      return CURLE_OK;\n    }\n    (conn->proto).ftpc.pp.cache_size = (size_t)(pcVar3 + 1);\n    pcVar4 = (*Curl_cstrdup)(pcVar4);\n    (conn->proto).ftpc.pp.nread_resp = (size_t)pcVar4;\n    if (pcVar4 != (char *)0x0) {\n      pcVar3[(int)pcVar4 - (int)conn->user] = '\0';\n      return CURLE_OK;\n    }\n  }\n  return CURLE_OUT_OF_MEMORY;\n}" { (declaration "curl_strdup_callback p_Var1;" type_identifier identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (if_statement "if ((conn->bits).user_passwd == false) {\n    return CURLE_LOGIN_DENIED;\n  }" if (parenthesized_expression "((conn->bits).user_passwd == false)" ( (binary_expression "(conn->bits).user_passwd == false" (field_expression "(conn->bits).user_passwd" (parenthesized_expression "(conn->bits)" ( (field_expression "conn->bits" identifier -> field_identifier) )) . field_identifier) == false) )) (compound_statement "{\n    return CURLE_LOGIN_DENIED;\n  }" { (return_statement "return CURLE_LOGIN_DENIED;" return identifier ;) })) (expression_statement "(conn->proto).smbc.state = SMB_CONNECTING;" (assignment_expression "(conn->proto).smbc.state = SMB_CONNECTING" (field_expression "(conn->proto).smbc.state" (field_expression "(conn->proto).smbc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "pvVar2 = (*Curl_cmalloc)(0x9000);" (assignment_expression "pvVar2 = (*Curl_cmalloc)(0x9000)" identifier = (call_expression "(*Curl_cmalloc)(0x9000)" (parenthesized_expression "(*Curl_cmalloc)" ( (pointer_expression "*Curl_cmalloc" * identifier) )) (argument_list "(0x9000)" ( number_literal )))) ;) (expression_statement "(conn->proto).ftpc.pp.response.tv_sec = (time_t)pvVar2;" (assignment_expression "(conn->proto).ftpc.pp.response.tv_sec = (time_t)pvVar2" (field_expression "(conn->proto).ftpc.pp.response.tv_sec" (field_expression "(conn->proto).ftpc.pp.response" (field_expression "(conn->proto).ftpc.pp" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) . field_identifier) = (cast_expression "(time_t)pvVar2" ( (type_descriptor "time_t" type_identifier) ) identifier)) ;) (if_statement "if (pvVar2 != (void *)0x0) {\n    Curl_conncontrol(conn,0);\n    pcVar4 = conn->user;\n    pcVar3 = strchr(pcVar4,0x2f);\n    if ((pcVar3 == (char *)0x0) &&\n       (pcVar3 = strchr(pcVar4,0x5c), p_Var1 = Curl_cstrdup, pcVar3 == (char *)0x0)) {\n      (conn->proto).ftpc.pp.cache_size = (size_t)pcVar4;\n      pcVar4 = (*p_Var1)((conn->host).name);\n      (conn->proto).ftpc.pp.nread_resp = (size_t)pcVar4;\n      if (pcVar4 == (char *)0x0) {\n        return CURLE_OUT_OF_MEMORY;\n      }\n      return CURLE_OK;\n    }\n    (conn->proto).ftpc.pp.cache_size = (size_t)(pcVar3 + 1);\n    pcVar4 = (*Curl_cstrdup)(pcVar4);\n    (conn->proto).ftpc.pp.nread_resp = (size_t)pcVar4;\n    if (pcVar4 != (char *)0x0) {\n      pcVar3[(int)pcVar4 - (int)conn->user] = '\0';\n      return CURLE_OK;\n    }\n  }" if (parenthesized_expression "(pvVar2 != (void *)0x0)" ( (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    Curl_conncontrol(conn,0);\n    pcVar4 = conn->user;\n    pcVar3 = strchr(pcVar4,0x2f);\n    if ((pcVar3 == (char *)0x0) &&\n       (pcVar3 = strchr(pcVar4,0x5c), p_Var1 = Curl_cstrdup, pcVar3 == (char *)0x0)) {\n      (conn->proto).ftpc.pp.cache_size = (size_t)pcVar4;\n      pcVar4 = (*p_Var1)((conn->host).name);\n      (conn->proto).ftpc.pp.nread_resp = (size_t)pcVar4;\n      if (pcVar4 == (char *)0x0) {\n        return CURLE_OUT_OF_MEMORY;\n      }\n      return CURLE_OK;\n    }\n    (conn->proto).ftpc.pp.cache_size = (size_t)(pcVar3 + 1);\n    pcVar4 = (*Curl_cstrdup)(pcVar4);\n    (conn->proto).ftpc.pp.nread_resp = (size_t)pcVar4;\n    if (pcVar4 != (char *)0x0) {\n      pcVar3[(int)pcVar4 - (int)conn->user] = '\0';\n      return CURLE_OK;\n    }\n  }" { (expression_statement "Curl_conncontrol(conn,0);" (call_expression "Curl_conncontrol(conn,0)" identifier (argument_list "(conn,0)" ( identifier , number_literal ))) ;) (expression_statement "pcVar4 = conn->user;" (assignment_expression "pcVar4 = conn->user" identifier = (field_expression "conn->user" identifier -> field_identifier)) ;) (expression_statement "pcVar3 = strchr(pcVar4,0x2f);" (assignment_expression "pcVar3 = strchr(pcVar4,0x2f)" identifier = (call_expression "strchr(pcVar4,0x2f)" identifier (argument_list "(pcVar4,0x2f)" ( identifier , number_literal )))) ;) (if_statement "if ((pcVar3 == (char *)0x0) &&\n       (pcVar3 = strchr(pcVar4,0x5c), p_Var1 = Curl_cstrdup, pcVar3 == (char *)0x0)) {\n      (conn->proto).ftpc.pp.cache_size = (size_t)pcVar4;\n      pcVar4 = (*p_Var1)((conn->host).name);\n      (conn->proto).ftpc.pp.nread_resp = (size_t)pcVar4;\n      if (pcVar4 == (char *)0x0) {\n        return CURLE_OUT_OF_MEMORY;\n      }\n      return CURLE_OK;\n    }" if (parenthesized_expression "((pcVar3 == (char *)0x0) &&\n       (pcVar3 = strchr(pcVar4,0x5c), p_Var1 = Curl_cstrdup, pcVar3 == (char *)0x0))" ( (binary_expression "(pcVar3 == (char *)0x0) &&\n       (pcVar3 = strchr(pcVar4,0x5c), p_Var1 = Curl_cstrdup, pcVar3 == (char *)0x0)" (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pcVar3 = strchr(pcVar4,0x5c), p_Var1 = Curl_cstrdup, pcVar3 == (char *)0x0)" ( (comma_expression "pcVar3 = strchr(pcVar4,0x5c), p_Var1 = Curl_cstrdup, pcVar3 == (char *)0x0" (assignment_expression "pcVar3 = strchr(pcVar4,0x5c)" identifier = (call_expression "strchr(pcVar4,0x5c)" identifier (argument_list "(pcVar4,0x5c)" ( identifier , number_literal )))) , (comma_expression "p_Var1 = Curl_cstrdup, pcVar3 == (char *)0x0" (assignment_expression "p_Var1 = Curl_cstrdup" identifier = identifier) , (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)))) ))) )) (compound_statement "{\n      (conn->proto).ftpc.pp.cache_size = (size_t)pcVar4;\n      pcVar4 = (*p_Var1)((conn->host).name);\n      (conn->proto).ftpc.pp.nread_resp = (size_t)pcVar4;\n      if (pcVar4 == (char *)0x0) {\n        return CURLE_OUT_OF_MEMORY;\n      }\n      return CURLE_OK;\n    }" { (expression_statement "(conn->proto).ftpc.pp.cache_size = (size_t)pcVar4;" (assignment_expression "(conn->proto).ftpc.pp.cache_size = (size_t)pcVar4" (field_expression "(conn->proto).ftpc.pp.cache_size" (field_expression "(conn->proto).ftpc.pp" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) = (cast_expression "(size_t)pcVar4" ( (type_descriptor "size_t" primitive_type) ) identifier)) ;) (expression_statement "pcVar4 = (*p_Var1)((conn->host).name);" (assignment_expression "pcVar4 = (*p_Var1)((conn->host).name)" identifier = (call_expression "(*p_Var1)((conn->host).name)" (parenthesized_expression "(*p_Var1)" ( (pointer_expression "*p_Var1" * identifier) )) (argument_list "((conn->host).name)" ( (field_expression "(conn->host).name" (parenthesized_expression "(conn->host)" ( (field_expression "conn->host" identifier -> field_identifier) )) . field_identifier) )))) ;) (expression_statement "(conn->proto).ftpc.pp.nread_resp = (size_t)pcVar4;" (assignment_expression "(conn->proto).ftpc.pp.nread_resp = (size_t)pcVar4" (field_expression "(conn->proto).ftpc.pp.nread_resp" (field_expression "(conn->proto).ftpc.pp" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) = (cast_expression "(size_t)pcVar4" ( (type_descriptor "size_t" primitive_type) ) identifier)) ;) (if_statement "if (pcVar4 == (char *)0x0) {\n        return CURLE_OUT_OF_MEMORY;\n      }" if (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return CURLE_OUT_OF_MEMORY;\n      }" { (return_statement "return CURLE_OUT_OF_MEMORY;" return identifier ;) })) (return_statement "return CURLE_OK;" return identifier ;) })) (expression_statement "(conn->proto).ftpc.pp.cache_size = (size_t)(pcVar3 + 1);" (assignment_expression "(conn->proto).ftpc.pp.cache_size = (size_t)(pcVar3 + 1)" (field_expression "(conn->proto).ftpc.pp.cache_size" (field_expression "(conn->proto).ftpc.pp" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) = (cast_expression "(size_t)(pcVar3 + 1)" ( (type_descriptor "size_t" primitive_type) ) (parenthesized_expression "(pcVar3 + 1)" ( (binary_expression "pcVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "pcVar4 = (*Curl_cstrdup)(pcVar4);" (assignment_expression "pcVar4 = (*Curl_cstrdup)(pcVar4)" identifier = (call_expression "(*Curl_cstrdup)(pcVar4)" (parenthesized_expression "(*Curl_cstrdup)" ( (pointer_expression "*Curl_cstrdup" * identifier) )) (argument_list "(pcVar4)" ( identifier )))) ;) (expression_statement "(conn->proto).ftpc.pp.nread_resp = (size_t)pcVar4;" (assignment_expression "(conn->proto).ftpc.pp.nread_resp = (size_t)pcVar4" (field_expression "(conn->proto).ftpc.pp.nread_resp" (field_expression "(conn->proto).ftpc.pp" (field_expression "(conn->proto).ftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) = (cast_expression "(size_t)pcVar4" ( (type_descriptor "size_t" primitive_type) ) identifier)) ;) (if_statement "if (pcVar4 != (char *)0x0) {\n      pcVar3[(int)pcVar4 - (int)conn->user] = '\0';\n      return CURLE_OK;\n    }" if (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar3[(int)pcVar4 - (int)conn->user] = '\0';\n      return CURLE_OK;\n    }" { (expression_statement "pcVar3[(int)pcVar4 - (int)conn->user] = '\0';" (assignment_expression "pcVar3[(int)pcVar4 - (int)conn->user] = '\0'" (subscript_expression "pcVar3[(int)pcVar4 - (int)conn->user]" identifier [ (binary_expression "(int)pcVar4 - (int)conn->user" (cast_expression "(int)pcVar4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)conn->user" ( (type_descriptor "int" primitive_type) ) (field_expression "conn->user" identifier -> field_identifier))) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return CURLE_OK;" return identifier ;) })) })) (return_statement "return CURLE_OUT_OF_MEMORY;" return identifier ;) })))
(translation_unit "undefined4 __regparm3 FUN_0006b180(undefined4 param_1,undefined4 param_2)\n\n{\n  char *__s;\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  int unaff_EBX;\n  int unaff_retaddr;\n  \n  uVar2 = entry(param_2,0x6b18e);\n  if (*(char *)(unaff_retaddr + 0x250) == '\0') {\n    return uVar2;\n  }\n  *(undefined4 *)(unaff_retaddr + 0x4a4) = 1;\n  iVar3 = (**(code **)(unaff_EBX + 0x4bee2))(0x9000);\n  *(int *)(unaff_retaddr + 0x4c4) = iVar3;\n  if (iVar3 != 0) {\n    FUN_00044880(unaff_retaddr,0);\n    __s = *(char **)(unaff_retaddr + 0x168);\n    pcVar4 = strchr(__s,0x2f);\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = strchr(__s,0x5c);\n      pcVar1 = *(code **)(unaff_EBX + 0x4bed6);\n      if (pcVar4 == (char *)0x0) {\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }\n    }\n    *(char **)(unaff_retaddr + 0x4a8) = pcVar4 + 1;\n    iVar3 = (**(code **)(unaff_EBX + 0x4bed6))(__s);\n    *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n    if (iVar3 != 0) {\n      pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0';\n      return 0;\n    }\n  }\n  return 0x1b;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_0006b180(undefined4 param_1,undefined4 param_2)\n\n{\n  char *__s;\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  int unaff_EBX;\n  int unaff_retaddr;\n  \n  uVar2 = entry(param_2,0x6b18e);\n  if (*(char *)(unaff_retaddr + 0x250) == '\0') {\n    return uVar2;\n  }\n  *(undefined4 *)(unaff_retaddr + 0x4a4) = 1;\n  iVar3 = (**(code **)(unaff_EBX + 0x4bee2))(0x9000);\n  *(int *)(unaff_retaddr + 0x4c4) = iVar3;\n  if (iVar3 != 0) {\n    FUN_00044880(unaff_retaddr,0);\n    __s = *(char **)(unaff_retaddr + 0x168);\n    pcVar4 = strchr(__s,0x2f);\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = strchr(__s,0x5c);\n      pcVar1 = *(code **)(unaff_EBX + 0x4bed6);\n      if (pcVar4 == (char *)0x0) {\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }\n    }\n    *(char **)(unaff_retaddr + 0x4a8) = pcVar4 + 1;\n    iVar3 = (**(code **)(unaff_EBX + 0x4bed6))(__s);\n    *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n    if (iVar3 != 0) {\n      pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0';\n      return 0;\n    }\n  }\n  return 0x1b;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0006b180(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  char *__s;\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  int unaff_EBX;\n  int unaff_retaddr;\n  \n  uVar2 = entry(param_2,0x6b18e);\n  if (*(char *)(unaff_retaddr + 0x250) == '\0') {\n    return uVar2;\n  }\n  *(undefined4 *)(unaff_retaddr + 0x4a4) = 1;\n  iVar3 = (**(code **)(unaff_EBX + 0x4bee2))(0x9000);\n  *(int *)(unaff_retaddr + 0x4c4) = iVar3;\n  if (iVar3 != 0) {\n    FUN_00044880(unaff_retaddr,0);\n    __s = *(char **)(unaff_retaddr + 0x168);\n    pcVar4 = strchr(__s,0x2f);\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = strchr(__s,0x5c);\n      pcVar1 = *(code **)(unaff_EBX + 0x4bed6);\n      if (pcVar4 == (char *)0x0) {\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }\n    }\n    *(char **)(unaff_retaddr + 0x4a8) = pcVar4 + 1;\n    iVar3 = (**(code **)(unaff_EBX + 0x4bed6))(__s);\n    *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n    if (iVar3 != 0) {\n      pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0';\n      return 0;\n    }\n  }\n  return 0x1b;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "int unaff_retaddr;" primitive_type identifier ;) (expression_statement "uVar2 = entry(param_2,0x6b18e);" (assignment_expression "uVar2 = entry(param_2,0x6b18e)" identifier = (call_expression "entry(param_2,0x6b18e)" identifier (argument_list "(param_2,0x6b18e)" ( identifier , number_literal )))) ;) (if_statement "if (*(char *)(unaff_retaddr + 0x250) == '\0') {\n    return uVar2;\n  }" if (parenthesized_expression "(*(char *)(unaff_retaddr + 0x250) == '\0')" ( (binary_expression "*(char *)(unaff_retaddr + 0x250) == '\0'" (pointer_expression "*(char *)(unaff_retaddr + 0x250)" * (cast_expression "(char *)(unaff_retaddr + 0x250)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x250)" ( (binary_expression "unaff_retaddr + 0x250" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) })) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x4a4) = 1;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x4a4) = 1" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x4a4)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x4a4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x4a4)" ( (binary_expression "unaff_retaddr + 0x4a4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = (**(code **)(unaff_EBX + 0x4bee2))(0x9000);" (assignment_expression "iVar3 = (**(code **)(unaff_EBX + 0x4bee2))(0x9000)" identifier = (call_expression "(**(code **)(unaff_EBX + 0x4bee2))(0x9000)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x4bee2))" ( (pointer_expression "**(code **)(unaff_EBX + 0x4bee2)" * (pointer_expression "*(code **)(unaff_EBX + 0x4bee2)" * (cast_expression "(code **)(unaff_EBX + 0x4bee2)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x4bee2)" ( (binary_expression "unaff_EBX + 0x4bee2" identifier + number_literal) ))))) )) (argument_list "(0x9000)" ( number_literal )))) ;) (expression_statement "*(int *)(unaff_retaddr + 0x4c4) = iVar3;" (assignment_expression "*(int *)(unaff_retaddr + 0x4c4) = iVar3" (pointer_expression "*(int *)(unaff_retaddr + 0x4c4)" * (cast_expression "(int *)(unaff_retaddr + 0x4c4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x4c4)" ( (binary_expression "unaff_retaddr + 0x4c4" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar3 != 0) {\n    FUN_00044880(unaff_retaddr,0);\n    __s = *(char **)(unaff_retaddr + 0x168);\n    pcVar4 = strchr(__s,0x2f);\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = strchr(__s,0x5c);\n      pcVar1 = *(code **)(unaff_EBX + 0x4bed6);\n      if (pcVar4 == (char *)0x0) {\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }\n    }\n    *(char **)(unaff_retaddr + 0x4a8) = pcVar4 + 1;\n    iVar3 = (**(code **)(unaff_EBX + 0x4bed6))(__s);\n    *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n    if (iVar3 != 0) {\n      pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0';\n      return 0;\n    }\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00044880(unaff_retaddr,0);\n    __s = *(char **)(unaff_retaddr + 0x168);\n    pcVar4 = strchr(__s,0x2f);\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = strchr(__s,0x5c);\n      pcVar1 = *(code **)(unaff_EBX + 0x4bed6);\n      if (pcVar4 == (char *)0x0) {\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }\n    }\n    *(char **)(unaff_retaddr + 0x4a8) = pcVar4 + 1;\n    iVar3 = (**(code **)(unaff_EBX + 0x4bed6))(__s);\n    *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n    if (iVar3 != 0) {\n      pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0';\n      return 0;\n    }\n  }" { (expression_statement "FUN_00044880(unaff_retaddr,0);" (call_expression "FUN_00044880(unaff_retaddr,0)" identifier (argument_list "(unaff_retaddr,0)" ( identifier , number_literal ))) ;) (expression_statement "__s = *(char **)(unaff_retaddr + 0x168);" (assignment_expression "__s = *(char **)(unaff_retaddr + 0x168)" identifier = (pointer_expression "*(char **)(unaff_retaddr + 0x168)" * (cast_expression "(char **)(unaff_retaddr + 0x168)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr + 0x168)" ( (binary_expression "unaff_retaddr + 0x168" identifier + number_literal) ))))) ;) (expression_statement "pcVar4 = strchr(__s,0x2f);" (assignment_expression "pcVar4 = strchr(__s,0x2f)" identifier = (call_expression "strchr(__s,0x2f)" identifier (argument_list "(__s,0x2f)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar4 == (char *)0x0) {\n      pcVar4 = strchr(__s,0x5c);\n      pcVar1 = *(code **)(unaff_EBX + 0x4bed6);\n      if (pcVar4 == (char *)0x0) {\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }\n    }" if (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar4 = strchr(__s,0x5c);\n      pcVar1 = *(code **)(unaff_EBX + 0x4bed6);\n      if (pcVar4 == (char *)0x0) {\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }\n    }" { (expression_statement "pcVar4 = strchr(__s,0x5c);" (assignment_expression "pcVar4 = strchr(__s,0x5c)" identifier = (call_expression "strchr(__s,0x5c)" identifier (argument_list "(__s,0x5c)" ( identifier , number_literal )))) ;) (expression_statement "pcVar1 = *(code **)(unaff_EBX + 0x4bed6);" (assignment_expression "pcVar1 = *(code **)(unaff_EBX + 0x4bed6)" identifier = (pointer_expression "*(code **)(unaff_EBX + 0x4bed6)" * (cast_expression "(code **)(unaff_EBX + 0x4bed6)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x4bed6)" ( (binary_expression "unaff_EBX + 0x4bed6" identifier + number_literal) ))))) ;) (if_statement "if (pcVar4 == (char *)0x0) {\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }" if (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }" { (expression_statement "*(char **)(unaff_retaddr + 0x4a8) = __s;" (assignment_expression "*(char **)(unaff_retaddr + 0x4a8) = __s" (pointer_expression "*(char **)(unaff_retaddr + 0x4a8)" * (cast_expression "(char **)(unaff_retaddr + 0x4a8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr + 0x4a8)" ( (binary_expression "unaff_retaddr + 0x4a8" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));" (assignment_expression "iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94))" identifier = (call_expression "(*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94))" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(*(undefined4 *)(unaff_retaddr + 0x94))" ( (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x94)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0x94)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x94)" ( (binary_expression "unaff_retaddr + 0x94" identifier + number_literal) )))) )))) ;) (expression_statement "*(int *)(unaff_retaddr + 0x4ac) = iVar3;" (assignment_expression "*(int *)(unaff_retaddr + 0x4ac) = iVar3" (pointer_expression "*(int *)(unaff_retaddr + 0x4ac)" * (cast_expression "(int *)(unaff_retaddr + 0x4ac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x4ac)" ( (binary_expression "unaff_retaddr + 0x4ac" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar3 == 0) {\n          return 0x1b;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          return 0x1b;\n        }" { (return_statement "return 0x1b;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "*(char **)(unaff_retaddr + 0x4a8) = pcVar4 + 1;" (assignment_expression "*(char **)(unaff_retaddr + 0x4a8) = pcVar4 + 1" (pointer_expression "*(char **)(unaff_retaddr + 0x4a8)" * (cast_expression "(char **)(unaff_retaddr + 0x4a8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr + 0x4a8)" ( (binary_expression "unaff_retaddr + 0x4a8" identifier + number_literal) )))) = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = (**(code **)(unaff_EBX + 0x4bed6))(__s);" (assignment_expression "iVar3 = (**(code **)(unaff_EBX + 0x4bed6))(__s)" identifier = (call_expression "(**(code **)(unaff_EBX + 0x4bed6))(__s)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x4bed6))" ( (pointer_expression "**(code **)(unaff_EBX + 0x4bed6)" * (pointer_expression "*(code **)(unaff_EBX + 0x4bed6)" * (cast_expression "(code **)(unaff_EBX + 0x4bed6)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x4bed6)" ( (binary_expression "unaff_EBX + 0x4bed6" identifier + number_literal) ))))) )) (argument_list "(__s)" ( identifier )))) ;) (expression_statement "*(int *)(unaff_retaddr + 0x4ac) = iVar3;" (assignment_expression "*(int *)(unaff_retaddr + 0x4ac) = iVar3" (pointer_expression "*(int *)(unaff_retaddr + 0x4ac)" * (cast_expression "(int *)(unaff_retaddr + 0x4ac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x4ac)" ( (binary_expression "unaff_retaddr + 0x4ac" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar3 != 0) {\n      pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0';\n      return 0;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0';\n      return 0;\n    }" { (expression_statement "pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0';" (assignment_expression "pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0'" (subscript_expression "pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)]" identifier [ (binary_expression "iVar3 - *(int *)(unaff_retaddr + 0x168)" identifier - (pointer_expression "*(int *)(unaff_retaddr + 0x168)" * (cast_expression "(int *)(unaff_retaddr + 0x168)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x168)" ( (binary_expression "unaff_retaddr + 0x168" identifier + number_literal) ))))) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return 0;" return 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) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (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 ( LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (return_statement return LIT ;) })) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (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 ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ]) = (char_literal ' escape_sequence ')) ;) (return_statement return LIT ;) })) })) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_0006b180(undefined4 param_1,undefined4 param_2)\n\n{\n  char *__s;\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  int unaff_EBX;\n  int unaff_retaddr;\n  \n  uVar2 = entry(param_2,0x6b18e);\n  if (*(char *)(unaff_retaddr + 0x250) == '\0') {\n    return uVar2;\n  }\n  *(undefined4 *)(unaff_retaddr + 0x4a4) = 1;\n  iVar3 = (**(code **)(unaff_EBX + 0x4bee2))(0x9000);\n  *(int *)(unaff_retaddr + 0x4c4) = iVar3;\n  if (iVar3 != 0) {\n    FUN_00044880(unaff_retaddr,0);\n    __s = *(char **)(unaff_retaddr + 0x168);\n    pcVar4 = strchr(__s,0x2f);\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = strchr(__s,0x5c);\n      pcVar1 = *(code **)(unaff_EBX + 0x4bed6);\n      if (pcVar4 == (char *)0x0) {\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }\n    }\n    *(char **)(unaff_retaddr + 0x4a8) = pcVar4 + 1;\n    iVar3 = (**(code **)(unaff_EBX + 0x4bed6))(__s);\n    *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n    if (iVar3 != 0) {\n      pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0';\n      return 0;\n    }\n  }\n  return 0x1b;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0006b180(undefined4 param_1,undefined4 param_2)" (identifier "FUN_0006b180") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  char *__s;\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  int unaff_EBX;\n  int unaff_retaddr;\n  \n  uVar2 = entry(param_2,0x6b18e);\n  if (*(char *)(unaff_retaddr + 0x250) == '\0') {\n    return uVar2;\n  }\n  *(undefined4 *)(unaff_retaddr + 0x4a4) = 1;\n  iVar3 = (**(code **)(unaff_EBX + 0x4bee2))(0x9000);\n  *(int *)(unaff_retaddr + 0x4c4) = iVar3;\n  if (iVar3 != 0) {\n    FUN_00044880(unaff_retaddr,0);\n    __s = *(char **)(unaff_retaddr + 0x168);\n    pcVar4 = strchr(__s,0x2f);\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = strchr(__s,0x5c);\n      pcVar1 = *(code **)(unaff_EBX + 0x4bed6);\n      if (pcVar4 == (char *)0x0) {\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }\n    }\n    *(char **)(unaff_retaddr + 0x4a8) = pcVar4 + 1;\n    iVar3 = (**(code **)(unaff_EBX + 0x4bed6))(__s);\n    *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n    if (iVar3 != 0) {\n      pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0';\n      return 0;\n    }\n  }\n  return 0x1b;\n}" ({ "{") (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "code *pcVar1;" (type_identifier "code") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "int unaff_EBX;" (primitive_type "int") (identifier "unaff_EBX") (; ";")) (declaration "int unaff_retaddr;" (primitive_type "int") (identifier "unaff_retaddr") (; ";")) (expression_statement "uVar2 = entry(param_2,0x6b18e);" (assignment_expression "uVar2 = entry(param_2,0x6b18e)" (identifier "uVar2") (= "=") (call_expression "entry(param_2,0x6b18e)" (identifier "entry") (argument_list "(param_2,0x6b18e)" (( "(") (identifier "param_2") (, ",") (number_literal "0x6b18e") () ")")))) (; ";")) (if_statement "if (*(char *)(unaff_retaddr + 0x250) == '\0') {\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(*(char *)(unaff_retaddr + 0x250) == '\0')" (( "(") (binary_expression "*(char *)(unaff_retaddr + 0x250) == '\0'" (pointer_expression "*(char *)(unaff_retaddr + 0x250)" (* "*") (cast_expression "(char *)(unaff_retaddr + 0x250)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x250)" (( "(") (binary_expression "unaff_retaddr + 0x250" (identifier "unaff_retaddr") (+ "+") (number_literal "0x250")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    return uVar2;\n  }" ({ "{") (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(unaff_retaddr + 0x4a4) = 1;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0x4a4) = 1" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x4a4)" (* "*") (cast_expression "(undefined4 *)(unaff_retaddr + 0x4a4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x4a4)" (( "(") (binary_expression "unaff_retaddr + 0x4a4" (identifier "unaff_retaddr") (+ "+") (number_literal "0x4a4")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar3 = (**(code **)(unaff_EBX + 0x4bee2))(0x9000);" (assignment_expression "iVar3 = (**(code **)(unaff_EBX + 0x4bee2))(0x9000)" (identifier "iVar3") (= "=") (call_expression "(**(code **)(unaff_EBX + 0x4bee2))(0x9000)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x4bee2))" (( "(") (pointer_expression "**(code **)(unaff_EBX + 0x4bee2)" (* "*") (pointer_expression "*(code **)(unaff_EBX + 0x4bee2)" (* "*") (cast_expression "(code **)(unaff_EBX + 0x4bee2)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EBX + 0x4bee2)" (( "(") (binary_expression "unaff_EBX + 0x4bee2" (identifier "unaff_EBX") (+ "+") (number_literal "0x4bee2")) () ")"))))) () ")")) (argument_list "(0x9000)" (( "(") (number_literal "0x9000") () ")")))) (; ";")) (expression_statement "*(int *)(unaff_retaddr + 0x4c4) = iVar3;" (assignment_expression "*(int *)(unaff_retaddr + 0x4c4) = iVar3" (pointer_expression "*(int *)(unaff_retaddr + 0x4c4)" (* "*") (cast_expression "(int *)(unaff_retaddr + 0x4c4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x4c4)" (( "(") (binary_expression "unaff_retaddr + 0x4c4" (identifier "unaff_retaddr") (+ "+") (number_literal "0x4c4")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (iVar3 != 0) {\n    FUN_00044880(unaff_retaddr,0);\n    __s = *(char **)(unaff_retaddr + 0x168);\n    pcVar4 = strchr(__s,0x2f);\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = strchr(__s,0x5c);\n      pcVar1 = *(code **)(unaff_EBX + 0x4bed6);\n      if (pcVar4 == (char *)0x0) {\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }\n    }\n    *(char **)(unaff_retaddr + 0x4a8) = pcVar4 + 1;\n    iVar3 = (**(code **)(unaff_EBX + 0x4bed6))(__s);\n    *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n    if (iVar3 != 0) {\n      pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0';\n      return 0;\n    }\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00044880(unaff_retaddr,0);\n    __s = *(char **)(unaff_retaddr + 0x168);\n    pcVar4 = strchr(__s,0x2f);\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = strchr(__s,0x5c);\n      pcVar1 = *(code **)(unaff_EBX + 0x4bed6);\n      if (pcVar4 == (char *)0x0) {\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }\n    }\n    *(char **)(unaff_retaddr + 0x4a8) = pcVar4 + 1;\n    iVar3 = (**(code **)(unaff_EBX + 0x4bed6))(__s);\n    *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n    if (iVar3 != 0) {\n      pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0';\n      return 0;\n    }\n  }" ({ "{") (expression_statement "FUN_00044880(unaff_retaddr,0);" (call_expression "FUN_00044880(unaff_retaddr,0)" (identifier "FUN_00044880") (argument_list "(unaff_retaddr,0)" (( "(") (identifier "unaff_retaddr") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "__s = *(char **)(unaff_retaddr + 0x168);" (assignment_expression "__s = *(char **)(unaff_retaddr + 0x168)" (identifier "__s") (= "=") (pointer_expression "*(char **)(unaff_retaddr + 0x168)" (* "*") (cast_expression "(char **)(unaff_retaddr + 0x168)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_retaddr + 0x168)" (( "(") (binary_expression "unaff_retaddr + 0x168" (identifier "unaff_retaddr") (+ "+") (number_literal "0x168")) () ")"))))) (; ";")) (expression_statement "pcVar4 = strchr(__s,0x2f);" (assignment_expression "pcVar4 = strchr(__s,0x2f)" (identifier "pcVar4") (= "=") (call_expression "strchr(__s,0x2f)" (identifier "strchr") (argument_list "(__s,0x2f)" (( "(") (identifier "__s") (, ",") (number_literal "0x2f") () ")")))) (; ";")) (if_statement "if (pcVar4 == (char *)0x0) {\n      pcVar4 = strchr(__s,0x5c);\n      pcVar1 = *(code **)(unaff_EBX + 0x4bed6);\n      if (pcVar4 == (char *)0x0) {\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }\n    }" (if "if") (parenthesized_expression "(pcVar4 == (char *)0x0)" (( "(") (binary_expression "pcVar4 == (char *)0x0" (identifier "pcVar4") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      pcVar4 = strchr(__s,0x5c);\n      pcVar1 = *(code **)(unaff_EBX + 0x4bed6);\n      if (pcVar4 == (char *)0x0) {\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }\n    }" ({ "{") (expression_statement "pcVar4 = strchr(__s,0x5c);" (assignment_expression "pcVar4 = strchr(__s,0x5c)" (identifier "pcVar4") (= "=") (call_expression "strchr(__s,0x5c)" (identifier "strchr") (argument_list "(__s,0x5c)" (( "(") (identifier "__s") (, ",") (number_literal "0x5c") () ")")))) (; ";")) (expression_statement "pcVar1 = *(code **)(unaff_EBX + 0x4bed6);" (assignment_expression "pcVar1 = *(code **)(unaff_EBX + 0x4bed6)" (identifier "pcVar1") (= "=") (pointer_expression "*(code **)(unaff_EBX + 0x4bed6)" (* "*") (cast_expression "(code **)(unaff_EBX + 0x4bed6)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EBX + 0x4bed6)" (( "(") (binary_expression "unaff_EBX + 0x4bed6" (identifier "unaff_EBX") (+ "+") (number_literal "0x4bed6")) () ")"))))) (; ";")) (if_statement "if (pcVar4 == (char *)0x0) {\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }" (if "if") (parenthesized_expression "(pcVar4 == (char *)0x0)" (( "(") (binary_expression "pcVar4 == (char *)0x0" (identifier "pcVar4") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        *(char **)(unaff_retaddr + 0x4a8) = __s;\n        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));\n        *(int *)(unaff_retaddr + 0x4ac) = iVar3;\n        if (iVar3 == 0) {\n          return 0x1b;\n        }\n        return 0;\n      }" ({ "{") (expression_statement "*(char **)(unaff_retaddr + 0x4a8) = __s;" (assignment_expression "*(char **)(unaff_retaddr + 0x4a8) = __s" (pointer_expression "*(char **)(unaff_retaddr + 0x4a8)" (* "*") (cast_expression "(char **)(unaff_retaddr + 0x4a8)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_retaddr + 0x4a8)" (( "(") (binary_expression "unaff_retaddr + 0x4a8" (identifier "unaff_retaddr") (+ "+") (number_literal "0x4a8")) () ")")))) (= "=") (identifier "__s")) (; ";")) (expression_statement "iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));" (assignment_expression "iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94))" (identifier "iVar3") (= "=") (call_expression "(*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94))" (parenthesized_expression "(*pcVar1)" (( "(") (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) () ")")) (argument_list "(*(undefined4 *)(unaff_retaddr + 0x94))" (( "(") (pointer_expression "*(undefined4 *)(unaff_retaddr + 0x94)" (* "*") (cast_expression "(undefined4 *)(unaff_retaddr + 0x94)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x94)" (( "(") (binary_expression "unaff_retaddr + 0x94" (identifier "unaff_retaddr") (+ "+") (number_literal "0x94")) () ")")))) () ")")))) (; ";")) (expression_statement "*(int *)(unaff_retaddr + 0x4ac) = iVar3;" (assignment_expression "*(int *)(unaff_retaddr + 0x4ac) = iVar3" (pointer_expression "*(int *)(unaff_retaddr + 0x4ac)" (* "*") (cast_expression "(int *)(unaff_retaddr + 0x4ac)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x4ac)" (( "(") (binary_expression "unaff_retaddr + 0x4ac" (identifier "unaff_retaddr") (+ "+") (number_literal "0x4ac")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (iVar3 == 0) {\n          return 0x1b;\n        }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          return 0x1b;\n        }" ({ "{") (return_statement "return 0x1b;" (return "return") (number_literal "0x1b") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (expression_statement "*(char **)(unaff_retaddr + 0x4a8) = pcVar4 + 1;" (assignment_expression "*(char **)(unaff_retaddr + 0x4a8) = pcVar4 + 1" (pointer_expression "*(char **)(unaff_retaddr + 0x4a8)" (* "*") (cast_expression "(char **)(unaff_retaddr + 0x4a8)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_retaddr + 0x4a8)" (( "(") (binary_expression "unaff_retaddr + 0x4a8" (identifier "unaff_retaddr") (+ "+") (number_literal "0x4a8")) () ")")))) (= "=") (binary_expression "pcVar4 + 1" (identifier "pcVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = (**(code **)(unaff_EBX + 0x4bed6))(__s);" (assignment_expression "iVar3 = (**(code **)(unaff_EBX + 0x4bed6))(__s)" (identifier "iVar3") (= "=") (call_expression "(**(code **)(unaff_EBX + 0x4bed6))(__s)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x4bed6))" (( "(") (pointer_expression "**(code **)(unaff_EBX + 0x4bed6)" (* "*") (pointer_expression "*(code **)(unaff_EBX + 0x4bed6)" (* "*") (cast_expression "(code **)(unaff_EBX + 0x4bed6)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EBX + 0x4bed6)" (( "(") (binary_expression "unaff_EBX + 0x4bed6" (identifier "unaff_EBX") (+ "+") (number_literal "0x4bed6")) () ")"))))) () ")")) (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "*(int *)(unaff_retaddr + 0x4ac) = iVar3;" (assignment_expression "*(int *)(unaff_retaddr + 0x4ac) = iVar3" (pointer_expression "*(int *)(unaff_retaddr + 0x4ac)" (* "*") (cast_expression "(int *)(unaff_retaddr + 0x4ac)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x4ac)" (( "(") (binary_expression "unaff_retaddr + 0x4ac" (identifier "unaff_retaddr") (+ "+") (number_literal "0x4ac")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (iVar3 != 0) {\n      pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0';\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0';\n      return 0;\n    }" ({ "{") (expression_statement "pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0';" (assignment_expression "pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0'" (subscript_expression "pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)]" (identifier "pcVar4") ([ "[") (binary_expression "iVar3 - *(int *)(unaff_retaddr + 0x168)" (identifier "iVar3") (- "-") (pointer_expression "*(int *)(unaff_retaddr + 0x168)" (* "*") (cast_expression "(int *)(unaff_retaddr + 0x168)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x168)" (( "(") (binary_expression "unaff_retaddr + 0x168" (identifier "unaff_retaddr") (+ "+") (number_literal "0x168")) () ")"))))) (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (return_statement "return 0;" (return "return") (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 *conn,type_3 *done)

{
  type_4 p_Var1;
  void *var_1;
  char *var_4;
  char *var_5;
  
  if ((conn->bits).user_passwd == false) {
    return CURLE_LOGIN_DENIED;
  }
  (conn->proto).smbc.state = SMB_CONNECTING;
  var_1 = (*Curl_cmalloc)(0x9000);
  (conn->proto).ftpc.pp.response.tv_sec = (type_5)var_1;
  if (var_1 != (void *)0x0) {
    var_2(conn,0);
    var_5 = conn->user;
    var_4 = var_3(var_5,0x2f);
    if ((var_4 == (char *)0x0) &&
       (var_4 = var_3(var_5,0x5c), p_Var1 = Curl_cstrdup, var_4 == (char *)0x0)) {
      (conn->proto).ftpc.pp.cache_size = (size_t)var_5;
      var_5 = (*p_Var1)((conn->host).name);
      (conn->proto).ftpc.pp.nread_resp = (size_t)var_5;
      if (var_5 == (char *)0x0) {
        return CURLE_OUT_OF_MEMORY;
      }
      return CURLE_OK;
    }
    (conn->proto).ftpc.pp.cache_size = (size_t)(var_4 + 1);
    var_5 = (*Curl_cstrdup)(var_5);
    (conn->proto).ftpc.pp.nread_resp = (size_t)var_5;
    if (var_5 != (char *)0x0) {
      var_4[(int)var_5 - (int)conn->user] = '\0';
      return CURLE_OK;
    }
  }
  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)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator 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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_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))) (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 (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (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))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (return_statement (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))) (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 (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) right: (char_literal (escape_sequence)))) (return_statement (number_literal)))))) (return_statement (number_literal)))))

undefined4 __regparm3 MASKED(undefined4 param_1,undefined4 param_2)

{
  char *__s;
  code *pcVar1;
  undefined4 uVar2;
  int iVar3;
  char *pcVar4;
  int unaff_EBX;
  int unaff_retaddr;
  
  uVar2 = entry(param_2,0x6b18e);
  if (*(char *)(unaff_retaddr + 0x250) == '\0') {
    return uVar2;
  }
  *(undefined4 *)(unaff_retaddr + 0x4a4) = 1;
  iVar3 = (**(code **)(unaff_EBX + 0x4bee2))(0x9000);
  *(int *)(unaff_retaddr + 0x4c4) = iVar3;
  if (iVar3 != 0) {
    FUN_00044880(unaff_retaddr,0);
    __s = *(char **)(unaff_retaddr + 0x168);
    pcVar4 = strchr(__s,0x2f);
    if (pcVar4 == (char *)0x0) {
      pcVar4 = strchr(__s,0x5c);
      pcVar1 = *(code **)(unaff_EBX + 0x4bed6);
      if (pcVar4 == (char *)0x0) {
        *(char **)(unaff_retaddr + 0x4a8) = __s;
        iVar3 = (*pcVar1)(*(undefined4 *)(unaff_retaddr + 0x94));
        *(int *)(unaff_retaddr + 0x4ac) = iVar3;
        if (iVar3 == 0) {
          return 0x1b;
        }
        return 0;
      }
    }
    *(char **)(unaff_retaddr + 0x4a8) = pcVar4 + 1;
    iVar3 = (**(code **)(unaff_EBX + 0x4bed6))(__s);
    *(int *)(unaff_retaddr + 0x4ac) = iVar3;
    if (iVar3 != 0) {
      pcVar4[iVar3 - *(int *)(unaff_retaddr + 0x168)] = '\0';
      return 0;
    }
  }
  return 0x1b;
}

