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

char * __regparm3 sanitize_cookie_path(char *cookie_path)

{
  char *pcVar1;
  size_t __n;
  char *pcVar2;
  char cVar3;
  size_t sVar4;
  
  pcVar1 = (*Curl_cstrdup)(cookie_path);
  if (pcVar1 != (char *)0x0) {
    __n = strlen(pcVar1);
    sVar4 = __n;
    if (*pcVar1 == '\"') {
      sVar4 = __n - 1;
      memmove(pcVar1,pcVar1 + 1,__n);
    }
    if (sVar4 == 0) {
      if (*pcVar1 != '/') goto LAB_0001eaa5;
    }
    else {
      pcVar2 = pcVar1 + (sVar4 - 1);
      cVar3 = *pcVar2;
      if (cVar3 == '\"') {
        *pcVar2 = '\0';
        if (*pcVar1 != '/') goto LAB_0001eaa5;
        if (sVar4 - 1 == 0) {
          return pcVar1;
        }
        pcVar2 = pcVar1 + (sVar4 - 2);
        cVar3 = *pcVar2;
      }
      else if (*pcVar1 != '/') {
LAB_0001eaa5:
        (*Curl_cfree)(pcVar1);
        pcVar1 = (*Curl_cstrdup)("/");
        return pcVar1;
      }
      if (cVar3 == '/') {
        *pcVar2 = '\0';
      }
    }
  }
  return pcVar1;
}



char * __regparm3 FUN_0001ea40(undefined4 param_1,undefined4 param_2)

{
  undefined4 uVar1;
  char *pcVar2;
  size_t __n;
  char *pcVar3;
  char cVar4;
  int unaff_EBX;
  size_t sVar5;
  
  uVar1 = entry(param_2,0x1ea49);
  pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(uVar1);
  if (pcVar2 != (char *)0x0) {
    __n = strlen(pcVar2);
    sVar5 = __n;
    if (*pcVar2 == '\"') {
      sVar5 = __n - 1;
      memmove(pcVar2,pcVar2 + 1,__n);
    }
    if (sVar5 == 0) {
      if (*pcVar2 != '/') goto LAB_0001eaa5;
    }
    else {
      pcVar3 = pcVar2 + (sVar5 - 1);
      cVar4 = *pcVar3;
      if (cVar4 == '\"') {
        *pcVar3 = '\0';
        if (*pcVar2 != '/') goto LAB_0001eaa5;
        if (sVar5 - 1 == 0) {
          return pcVar2;
        }
        pcVar3 = pcVar2 + (sVar5 - 2);
        cVar4 = *pcVar3;
      }
      else if (*pcVar2 != '/') {
LAB_0001eaa5:
        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);
        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);
        return pcVar2;
      }
      if (cVar4 == '/') {
        *pcVar3 = '\0';
      }
    }
  }
  return pcVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00019ed0
ADD EBX,0x91d97
SUB ESP,0x18
PUSH EAX
LEA EDI,[EBX + 0x884]
CALL dword ptr [EDI]
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x0001ea93
SUB ESP,0xc
PUSH EAX
CALL 0x00018850
ADD ESP,0x10
CMP byte ptr [ESI],0x22
MOV EBP,EAX
JZ 0x0001ead8
TEST EBP,EBP
JZ 0x0001eaa0
LEA ECX,[EBP + -0x1]
LEA EAX,[ESI + ECX*0x1]
MOVZX EDX,byte ptr [EAX]
CMP DL,0x22
JZ 0x0001eaf0
CMP byte ptr [ESI],0x2f
JNZ 0x0001eaa5
CMP DL,0x2f
JZ 0x0001ead0
ADD ESP,0xc
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP byte ptr [ESI],0x2f
JZ 0x0001ea93
SUB ESP,0xc
LEA EAX,[EBX + 0x88c]
PUSH ESI
CALL dword ptr [EAX]
LEA EAX,[EBX + 0xfffd6052]
MOV dword ptr [ESP],EAX
CALL dword ptr [EDI]
ADD ESP,0x10
ADD ESP,0xc
MOV ESI,EAX
POP EBX
MOV EAX,ESI
POP ESI
POP EDI
POP EBP
RET
MOV byte ptr [EAX],0x0
JMP 0x0001ea93
SUB ESP,0x4
SUB EBP,0x1
PUSH EAX
LEA EAX,[ESI + 0x1]
PUSH EAX
PUSH ESI
CALL 0x00019bd0
ADD ESP,0x10
JMP 0x0001ea77
MOV byte ptr [EAX],0x0
CMP byte ptr [ESI],0x2f
JNZ 0x0001eaa5
TEST ECX,ECX
JZ 0x0001ea93
LEA EAX,[ESI + EBP*0x1 + -0x2]
MOVZX EDX,byte ptr [EAX]
JMP 0x0001ea8e
(translation_unit "char * __regparm3 FUN_0001ea40(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  char *pcVar2;\n  size_t __n;\n  char *pcVar3;\n  char cVar4;\n  int unaff_EBX;\n  size_t sVar5;\n  \n  uVar1 = entry(param_2,0x1ea49);\n  pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(uVar1);\n  if (pcVar2 != (char *)0x0) {\n    __n = strlen(pcVar2);\n    sVar5 = __n;\n    if (*pcVar2 == '\"') {\n      sVar5 = __n - 1;\n      memmove(pcVar2,pcVar2 + 1,__n);\n    }\n    if (sVar5 == 0) {\n      if (*pcVar2 != '/') goto LAB_0001eaa5;\n    }\n    else {\n      pcVar3 = pcVar2 + (sVar5 - 1);\n      cVar4 = *pcVar3;\n      if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }\n      if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }\n    }\n  }\n  return pcVar2;\n}\n\n" (function_definition "char * __regparm3 FUN_0001ea40(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  char *pcVar2;\n  size_t __n;\n  char *pcVar3;\n  char cVar4;\n  int unaff_EBX;\n  size_t sVar5;\n  \n  uVar1 = entry(param_2,0x1ea49);\n  pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(uVar1);\n  if (pcVar2 != (char *)0x0) {\n    __n = strlen(pcVar2);\n    sVar5 = __n;\n    if (*pcVar2 == '\"') {\n      sVar5 = __n - 1;\n      memmove(pcVar2,pcVar2 + 1,__n);\n    }\n    if (sVar5 == 0) {\n      if (*pcVar2 != '/') goto LAB_0001eaa5;\n    }\n    else {\n      pcVar3 = pcVar2 + (sVar5 - 1);\n      cVar4 = *pcVar3;\n      if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }\n      if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }\n    }\n  }\n  return pcVar2;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_0001ea40(undefined4 param_1,undefined4 param_2)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_0001ea40(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  undefined4 uVar1;\n  char *pcVar2;\n  size_t __n;\n  char *pcVar3;\n  char cVar4;\n  int unaff_EBX;\n  size_t sVar5;\n  \n  uVar1 = entry(param_2,0x1ea49);\n  pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(uVar1);\n  if (pcVar2 != (char *)0x0) {\n    __n = strlen(pcVar2);\n    sVar5 = __n;\n    if (*pcVar2 == '\"') {\n      sVar5 = __n - 1;\n      memmove(pcVar2,pcVar2 + 1,__n);\n    }\n    if (sVar5 == 0) {\n      if (*pcVar2 != '/') goto LAB_0001eaa5;\n    }\n    else {\n      pcVar3 = pcVar2 + (sVar5 - 1);\n      cVar4 = *pcVar3;\n      if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }\n      if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }\n    }\n  }\n  return pcVar2;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "size_t sVar5;" primitive_type identifier ;) (expression_statement "uVar1 = entry(param_2,0x1ea49);" (assignment_expression "uVar1 = entry(param_2,0x1ea49)" identifier = (call_expression "entry(param_2,0x1ea49)" identifier (argument_list "(param_2,0x1ea49)" ( identifier , number_literal )))) ;) (expression_statement "pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(uVar1);" (assignment_expression "pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(uVar1)" identifier = (cast_expression "(char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(uVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(uVar1)" (parenthesized_expression "(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))" ( (pointer_expression "**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2)" * (pointer_expression "*(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2)" * (cast_expression "(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2)" ( (binary_expression "BYTE_ARRAY_00092549 + unaff_EBX + 0xd2" (binary_expression "BYTE_ARRAY_00092549 + unaff_EBX" identifier + identifier) + number_literal) ))))) )) (argument_list "(uVar1)" ( identifier ))))) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n    __n = strlen(pcVar2);\n    sVar5 = __n;\n    if (*pcVar2 == '\"') {\n      sVar5 = __n - 1;\n      memmove(pcVar2,pcVar2 + 1,__n);\n    }\n    if (sVar5 == 0) {\n      if (*pcVar2 != '/') goto LAB_0001eaa5;\n    }\n    else {\n      pcVar3 = pcVar2 + (sVar5 - 1);\n      cVar4 = *pcVar3;\n      if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }\n      if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }\n    }\n  }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __n = strlen(pcVar2);\n    sVar5 = __n;\n    if (*pcVar2 == '\"') {\n      sVar5 = __n - 1;\n      memmove(pcVar2,pcVar2 + 1,__n);\n    }\n    if (sVar5 == 0) {\n      if (*pcVar2 != '/') goto LAB_0001eaa5;\n    }\n    else {\n      pcVar3 = pcVar2 + (sVar5 - 1);\n      cVar4 = *pcVar3;\n      if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }\n      if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }\n    }\n  }" { (expression_statement "__n = strlen(pcVar2);" (assignment_expression "__n = strlen(pcVar2)" identifier = (call_expression "strlen(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "sVar5 = __n;" (assignment_expression "sVar5 = __n" identifier = identifier) ;) (if_statement "if (*pcVar2 == '\"') {\n      sVar5 = __n - 1;\n      memmove(pcVar2,pcVar2 + 1,__n);\n    }" if (parenthesized_expression "(*pcVar2 == '\"')" ( (binary_expression "*pcVar2 == '\"'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'\"'" ' escape_sequence ')) )) (compound_statement "{\n      sVar5 = __n - 1;\n      memmove(pcVar2,pcVar2 + 1,__n);\n    }" { (expression_statement "sVar5 = __n - 1;" (assignment_expression "sVar5 = __n - 1" identifier = (binary_expression "__n - 1" identifier - number_literal)) ;) (expression_statement "memmove(pcVar2,pcVar2 + 1,__n);" (call_expression "memmove(pcVar2,pcVar2 + 1,__n)" identifier (argument_list "(pcVar2,pcVar2 + 1,__n)" ( identifier , (binary_expression "pcVar2 + 1" identifier + number_literal) , identifier ))) ;) })) (if_statement "if (sVar5 == 0) {\n      if (*pcVar2 != '/') goto LAB_0001eaa5;\n    }\n    else {\n      pcVar3 = pcVar2 + (sVar5 - 1);\n      cVar4 = *pcVar3;\n      if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }\n      if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }\n    }" if (parenthesized_expression "(sVar5 == 0)" ( (binary_expression "sVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      if (*pcVar2 != '/') goto LAB_0001eaa5;\n    }" { (if_statement "if (*pcVar2 != '/') goto LAB_0001eaa5;" if (parenthesized_expression "(*pcVar2 != '/')" ( (binary_expression "*pcVar2 != '/'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'/'" ' character ')) )) (goto_statement "goto LAB_0001eaa5;" goto statement_identifier ;)) }) (else_clause "else {\n      pcVar3 = pcVar2 + (sVar5 - 1);\n      cVar4 = *pcVar3;\n      if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }\n      if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }\n    }" else (compound_statement "{\n      pcVar3 = pcVar2 + (sVar5 - 1);\n      cVar4 = *pcVar3;\n      if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }\n      if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }\n    }" { (expression_statement "pcVar3 = pcVar2 + (sVar5 - 1);" (assignment_expression "pcVar3 = pcVar2 + (sVar5 - 1)" identifier = (binary_expression "pcVar2 + (sVar5 - 1)" identifier + (parenthesized_expression "(sVar5 - 1)" ( (binary_expression "sVar5 - 1" identifier - number_literal) )))) ;) (expression_statement "cVar4 = *pcVar3;" (assignment_expression "cVar4 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) (if_statement "if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }" if (parenthesized_expression "(cVar4 == '\"')" ( (binary_expression "cVar4 == '\"'" identifier == (char_literal "'\"'" ' escape_sequence ')) )) (compound_statement "{\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }" { (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if (*pcVar2 != '/') goto LAB_0001eaa5;" if (parenthesized_expression "(*pcVar2 != '/')" ( (binary_expression "*pcVar2 != '/'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'/'" ' character ')) )) (goto_statement "goto LAB_0001eaa5;" goto statement_identifier ;)) (if_statement "if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }" if (parenthesized_expression "(sVar5 - 1 == 0)" ( (binary_expression "sVar5 - 1 == 0" (binary_expression "sVar5 - 1" identifier - number_literal) == number_literal) )) (compound_statement "{\n          return pcVar2;\n        }" { (return_statement "return pcVar2;" return identifier ;) })) (expression_statement "pcVar3 = pcVar2 + (sVar5 - 2);" (assignment_expression "pcVar3 = pcVar2 + (sVar5 - 2)" identifier = (binary_expression "pcVar2 + (sVar5 - 2)" identifier + (parenthesized_expression "(sVar5 - 2)" ( (binary_expression "sVar5 - 2" identifier - number_literal) )))) ;) (expression_statement "cVar4 = *pcVar3;" (assignment_expression "cVar4 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) }) (else_clause "else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }" else (if_statement "if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }" if (parenthesized_expression "(*pcVar2 != '/')" ( (binary_expression "*pcVar2 != '/'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'/'" ' character ')) )) (compound_statement "{\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }" { (labeled_statement "LAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);" statement_identifier : (expression_statement "(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);" (call_expression "(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2)" (parenthesized_expression "(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))" ( (pointer_expression "**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda)" * (pointer_expression "*(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda)" * (cast_expression "(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(BYTE_ARRAY_00092549 + unaff_EBX + 0xda)" ( (binary_expression "BYTE_ARRAY_00092549 + unaff_EBX + 0xda" (binary_expression "BYTE_ARRAY_00092549 + unaff_EBX" identifier + identifier) + number_literal) ))))) )) (argument_list "(pcVar2)" ( identifier ))) ;)) (expression_statement "pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);" (assignment_expression "pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9)" identifier = (cast_expression "(char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9)" (parenthesized_expression "(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))" ( (pointer_expression "**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2)" * (pointer_expression "*(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2)" * (cast_expression "(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2)" ( (binary_expression "BYTE_ARRAY_00092549 + unaff_EBX + 0xd2" (binary_expression "BYTE_ARRAY_00092549 + unaff_EBX" identifier + identifier) + number_literal) ))))) )) (argument_list "(unaff_EBX + 0x67de9)" ( (binary_expression "unaff_EBX + 0x67de9" identifier + number_literal) ))))) ;) (return_statement "return pcVar2;" return identifier ;) })))) (if_statement "if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }" if (parenthesized_expression "(cVar4 == '/')" ( (binary_expression "cVar4 == '/'" identifier == (char_literal "'/'" ' character ')) )) (compound_statement "{\n        *pcVar3 = '\0';\n      }" { (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) })) }))) })) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm3 sanitize_cookie_path(char *cookie_path)\n\n{\n  char *pcVar1;\n  size_t __n;\n  char *pcVar2;\n  char cVar3;\n  size_t sVar4;\n  \n  pcVar1 = (*Curl_cstrdup)(cookie_path);\n  if (pcVar1 != (char *)0x0) {\n    __n = strlen(pcVar1);\n    sVar4 = __n;\n    if (*pcVar1 == '\"') {\n      sVar4 = __n - 1;\n      memmove(pcVar1,pcVar1 + 1,__n);\n    }\n    if (sVar4 == 0) {\n      if (*pcVar1 != '/') goto LAB_0001eaa5;\n    }\n    else {\n      pcVar2 = pcVar1 + (sVar4 - 1);\n      cVar3 = *pcVar2;\n      if (cVar3 == '\"') {\n        *pcVar2 = '\0';\n        if (*pcVar1 != '/') goto LAB_0001eaa5;\n        if (sVar4 - 1 == 0) {\n          return pcVar1;\n        }\n        pcVar2 = pcVar1 + (sVar4 - 2);\n        cVar3 = *pcVar2;\n      }\n      else if (*pcVar1 != '/') {\nLAB_0001eaa5:\n        (*Curl_cfree)(pcVar1);\n        pcVar1 = (*Curl_cstrdup)("/");\n        return pcVar1;\n      }\n      if (cVar3 == '/') {\n        *pcVar2 = '\0';\n      }\n    }\n  }\n  return pcVar1;\n}\n\n" comment (function_definition "char * __regparm3 sanitize_cookie_path(char *cookie_path)\n\n{\n  char *pcVar1;\n  size_t __n;\n  char *pcVar2;\n  char cVar3;\n  size_t sVar4;\n  \n  pcVar1 = (*Curl_cstrdup)(cookie_path);\n  if (pcVar1 != (char *)0x0) {\n    __n = strlen(pcVar1);\n    sVar4 = __n;\n    if (*pcVar1 == '\"') {\n      sVar4 = __n - 1;\n      memmove(pcVar1,pcVar1 + 1,__n);\n    }\n    if (sVar4 == 0) {\n      if (*pcVar1 != '/') goto LAB_0001eaa5;\n    }\n    else {\n      pcVar2 = pcVar1 + (sVar4 - 1);\n      cVar3 = *pcVar2;\n      if (cVar3 == '\"') {\n        *pcVar2 = '\0';\n        if (*pcVar1 != '/') goto LAB_0001eaa5;\n        if (sVar4 - 1 == 0) {\n          return pcVar1;\n        }\n        pcVar2 = pcVar1 + (sVar4 - 2);\n        cVar3 = *pcVar2;\n      }\n      else if (*pcVar1 != '/') {\nLAB_0001eaa5:\n        (*Curl_cfree)(pcVar1);\n        pcVar1 = (*Curl_cstrdup)("/");\n        return pcVar1;\n      }\n      if (cVar3 == '/') {\n        *pcVar2 = '\0';\n      }\n    }\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* __regparm3 sanitize_cookie_path(char *cookie_path)" * (ERROR "__regparm3" identifier) (function_declarator "sanitize_cookie_path(char *cookie_path)" identifier (parameter_list "(char *cookie_path)" ( (parameter_declaration "char *cookie_path" primitive_type (pointer_declarator "*cookie_path" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  size_t __n;\n  char *pcVar2;\n  char cVar3;\n  size_t sVar4;\n  \n  pcVar1 = (*Curl_cstrdup)(cookie_path);\n  if (pcVar1 != (char *)0x0) {\n    __n = strlen(pcVar1);\n    sVar4 = __n;\n    if (*pcVar1 == '\"') {\n      sVar4 = __n - 1;\n      memmove(pcVar1,pcVar1 + 1,__n);\n    }\n    if (sVar4 == 0) {\n      if (*pcVar1 != '/') goto LAB_0001eaa5;\n    }\n    else {\n      pcVar2 = pcVar1 + (sVar4 - 1);\n      cVar3 = *pcVar2;\n      if (cVar3 == '\"') {\n        *pcVar2 = '\0';\n        if (*pcVar1 != '/') goto LAB_0001eaa5;\n        if (sVar4 - 1 == 0) {\n          return pcVar1;\n        }\n        pcVar2 = pcVar1 + (sVar4 - 2);\n        cVar3 = *pcVar2;\n      }\n      else if (*pcVar1 != '/') {\nLAB_0001eaa5:\n        (*Curl_cfree)(pcVar1);\n        pcVar1 = (*Curl_cstrdup)("/");\n        return pcVar1;\n      }\n      if (cVar3 == '/') {\n        *pcVar2 = '\0';\n      }\n    }\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (expression_statement "pcVar1 = (*Curl_cstrdup)(cookie_path);" (assignment_expression "pcVar1 = (*Curl_cstrdup)(cookie_path)" identifier = (call_expression "(*Curl_cstrdup)(cookie_path)" (parenthesized_expression "(*Curl_cstrdup)" ( (pointer_expression "*Curl_cstrdup" * identifier) )) (argument_list "(cookie_path)" ( identifier )))) ;) (if_statement "if (pcVar1 != (char *)0x0) {\n    __n = strlen(pcVar1);\n    sVar4 = __n;\n    if (*pcVar1 == '\"') {\n      sVar4 = __n - 1;\n      memmove(pcVar1,pcVar1 + 1,__n);\n    }\n    if (sVar4 == 0) {\n      if (*pcVar1 != '/') goto LAB_0001eaa5;\n    }\n    else {\n      pcVar2 = pcVar1 + (sVar4 - 1);\n      cVar3 = *pcVar2;\n      if (cVar3 == '\"') {\n        *pcVar2 = '\0';\n        if (*pcVar1 != '/') goto LAB_0001eaa5;\n        if (sVar4 - 1 == 0) {\n          return pcVar1;\n        }\n        pcVar2 = pcVar1 + (sVar4 - 2);\n        cVar3 = *pcVar2;\n      }\n      else if (*pcVar1 != '/') {\nLAB_0001eaa5:\n        (*Curl_cfree)(pcVar1);\n        pcVar1 = (*Curl_cstrdup)("/");\n        return pcVar1;\n      }\n      if (cVar3 == '/') {\n        *pcVar2 = '\0';\n      }\n    }\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    __n = strlen(pcVar1);\n    sVar4 = __n;\n    if (*pcVar1 == '\"') {\n      sVar4 = __n - 1;\n      memmove(pcVar1,pcVar1 + 1,__n);\n    }\n    if (sVar4 == 0) {\n      if (*pcVar1 != '/') goto LAB_0001eaa5;\n    }\n    else {\n      pcVar2 = pcVar1 + (sVar4 - 1);\n      cVar3 = *pcVar2;\n      if (cVar3 == '\"') {\n        *pcVar2 = '\0';\n        if (*pcVar1 != '/') goto LAB_0001eaa5;\n        if (sVar4 - 1 == 0) {\n          return pcVar1;\n        }\n        pcVar2 = pcVar1 + (sVar4 - 2);\n        cVar3 = *pcVar2;\n      }\n      else if (*pcVar1 != '/') {\nLAB_0001eaa5:\n        (*Curl_cfree)(pcVar1);\n        pcVar1 = (*Curl_cstrdup)("/");\n        return pcVar1;\n      }\n      if (cVar3 == '/') {\n        *pcVar2 = '\0';\n      }\n    }\n  }" { (expression_statement "__n = strlen(pcVar1);" (assignment_expression "__n = strlen(pcVar1)" identifier = (call_expression "strlen(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "sVar4 = __n;" (assignment_expression "sVar4 = __n" identifier = identifier) ;) (if_statement "if (*pcVar1 == '\"') {\n      sVar4 = __n - 1;\n      memmove(pcVar1,pcVar1 + 1,__n);\n    }" if (parenthesized_expression "(*pcVar1 == '\"')" ( (binary_expression "*pcVar1 == '\"'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\"'" ' escape_sequence ')) )) (compound_statement "{\n      sVar4 = __n - 1;\n      memmove(pcVar1,pcVar1 + 1,__n);\n    }" { (expression_statement "sVar4 = __n - 1;" (assignment_expression "sVar4 = __n - 1" identifier = (binary_expression "__n - 1" identifier - number_literal)) ;) (expression_statement "memmove(pcVar1,pcVar1 + 1,__n);" (call_expression "memmove(pcVar1,pcVar1 + 1,__n)" identifier (argument_list "(pcVar1,pcVar1 + 1,__n)" ( identifier , (binary_expression "pcVar1 + 1" identifier + number_literal) , identifier ))) ;) })) (if_statement "if (sVar4 == 0) {\n      if (*pcVar1 != '/') goto LAB_0001eaa5;\n    }\n    else {\n      pcVar2 = pcVar1 + (sVar4 - 1);\n      cVar3 = *pcVar2;\n      if (cVar3 == '\"') {\n        *pcVar2 = '\0';\n        if (*pcVar1 != '/') goto LAB_0001eaa5;\n        if (sVar4 - 1 == 0) {\n          return pcVar1;\n        }\n        pcVar2 = pcVar1 + (sVar4 - 2);\n        cVar3 = *pcVar2;\n      }\n      else if (*pcVar1 != '/') {\nLAB_0001eaa5:\n        (*Curl_cfree)(pcVar1);\n        pcVar1 = (*Curl_cstrdup)("/");\n        return pcVar1;\n      }\n      if (cVar3 == '/') {\n        *pcVar2 = '\0';\n      }\n    }" if (parenthesized_expression "(sVar4 == 0)" ( (binary_expression "sVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      if (*pcVar1 != '/') goto LAB_0001eaa5;\n    }" { (if_statement "if (*pcVar1 != '/') goto LAB_0001eaa5;" if (parenthesized_expression "(*pcVar1 != '/')" ( (binary_expression "*pcVar1 != '/'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'/'" ' character ')) )) (goto_statement "goto LAB_0001eaa5;" goto statement_identifier ;)) }) (else_clause "else {\n      pcVar2 = pcVar1 + (sVar4 - 1);\n      cVar3 = *pcVar2;\n      if (cVar3 == '\"') {\n        *pcVar2 = '\0';\n        if (*pcVar1 != '/') goto LAB_0001eaa5;\n        if (sVar4 - 1 == 0) {\n          return pcVar1;\n        }\n        pcVar2 = pcVar1 + (sVar4 - 2);\n        cVar3 = *pcVar2;\n      }\n      else if (*pcVar1 != '/') {\nLAB_0001eaa5:\n        (*Curl_cfree)(pcVar1);\n        pcVar1 = (*Curl_cstrdup)("/");\n        return pcVar1;\n      }\n      if (cVar3 == '/') {\n        *pcVar2 = '\0';\n      }\n    }" else (compound_statement "{\n      pcVar2 = pcVar1 + (sVar4 - 1);\n      cVar3 = *pcVar2;\n      if (cVar3 == '\"') {\n        *pcVar2 = '\0';\n        if (*pcVar1 != '/') goto LAB_0001eaa5;\n        if (sVar4 - 1 == 0) {\n          return pcVar1;\n        }\n        pcVar2 = pcVar1 + (sVar4 - 2);\n        cVar3 = *pcVar2;\n      }\n      else if (*pcVar1 != '/') {\nLAB_0001eaa5:\n        (*Curl_cfree)(pcVar1);\n        pcVar1 = (*Curl_cstrdup)("/");\n        return pcVar1;\n      }\n      if (cVar3 == '/') {\n        *pcVar2 = '\0';\n      }\n    }" { (expression_statement "pcVar2 = pcVar1 + (sVar4 - 1);" (assignment_expression "pcVar2 = pcVar1 + (sVar4 - 1)" identifier = (binary_expression "pcVar1 + (sVar4 - 1)" identifier + (parenthesized_expression "(sVar4 - 1)" ( (binary_expression "sVar4 - 1" identifier - number_literal) )))) ;) (expression_statement "cVar3 = *pcVar2;" (assignment_expression "cVar3 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (if_statement "if (cVar3 == '\"') {\n        *pcVar2 = '\0';\n        if (*pcVar1 != '/') goto LAB_0001eaa5;\n        if (sVar4 - 1 == 0) {\n          return pcVar1;\n        }\n        pcVar2 = pcVar1 + (sVar4 - 2);\n        cVar3 = *pcVar2;\n      }\n      else if (*pcVar1 != '/') {\nLAB_0001eaa5:\n        (*Curl_cfree)(pcVar1);\n        pcVar1 = (*Curl_cstrdup)("/");\n        return pcVar1;\n      }" if (parenthesized_expression "(cVar3 == '\"')" ( (binary_expression "cVar3 == '\"'" identifier == (char_literal "'\"'" ' escape_sequence ')) )) (compound_statement "{\n        *pcVar2 = '\0';\n        if (*pcVar1 != '/') goto LAB_0001eaa5;\n        if (sVar4 - 1 == 0) {\n          return pcVar1;\n        }\n        pcVar2 = pcVar1 + (sVar4 - 2);\n        cVar3 = *pcVar2;\n      }" { (expression_statement "*pcVar2 = '\0';" (assignment_expression "*pcVar2 = '\0'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if (*pcVar1 != '/') goto LAB_0001eaa5;" if (parenthesized_expression "(*pcVar1 != '/')" ( (binary_expression "*pcVar1 != '/'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'/'" ' character ')) )) (goto_statement "goto LAB_0001eaa5;" goto statement_identifier ;)) (if_statement "if (sVar4 - 1 == 0) {\n          return pcVar1;\n        }" if (parenthesized_expression "(sVar4 - 1 == 0)" ( (binary_expression "sVar4 - 1 == 0" (binary_expression "sVar4 - 1" identifier - number_literal) == number_literal) )) (compound_statement "{\n          return pcVar1;\n        }" { (return_statement "return pcVar1;" return identifier ;) })) (expression_statement "pcVar2 = pcVar1 + (sVar4 - 2);" (assignment_expression "pcVar2 = pcVar1 + (sVar4 - 2)" identifier = (binary_expression "pcVar1 + (sVar4 - 2)" identifier + (parenthesized_expression "(sVar4 - 2)" ( (binary_expression "sVar4 - 2" identifier - number_literal) )))) ;) (expression_statement "cVar3 = *pcVar2;" (assignment_expression "cVar3 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) }) (else_clause "else if (*pcVar1 != '/') {\nLAB_0001eaa5:\n        (*Curl_cfree)(pcVar1);\n        pcVar1 = (*Curl_cstrdup)("/");\n        return pcVar1;\n      }" else (if_statement "if (*pcVar1 != '/') {\nLAB_0001eaa5:\n        (*Curl_cfree)(pcVar1);\n        pcVar1 = (*Curl_cstrdup)("/");\n        return pcVar1;\n      }" if (parenthesized_expression "(*pcVar1 != '/')" ( (binary_expression "*pcVar1 != '/'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'/'" ' character ')) )) (compound_statement "{\nLAB_0001eaa5:\n        (*Curl_cfree)(pcVar1);\n        pcVar1 = (*Curl_cstrdup)("/");\n        return pcVar1;\n      }" { (labeled_statement "LAB_0001eaa5:\n        (*Curl_cfree)(pcVar1);" statement_identifier : (expression_statement "(*Curl_cfree)(pcVar1);" (call_expression "(*Curl_cfree)(pcVar1)" (parenthesized_expression "(*Curl_cfree)" ( (pointer_expression "*Curl_cfree" * identifier) )) (argument_list "(pcVar1)" ( 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 ") )))) ;) (return_statement "return pcVar1;" return identifier ;) })))) (if_statement "if (cVar3 == '/') {\n        *pcVar2 = '\0';\n      }" if (parenthesized_expression "(cVar3 == '/')" ( (binary_expression "cVar3 == '/'" identifier == (char_literal "'/'" ' character ')) )) (compound_statement "{\n        *pcVar2 = '\0';\n      }" { (expression_statement "*pcVar2 = '\0';" (assignment_expression "*pcVar2 = '\0'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) })) }))) })) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "char * __regparm3 FUN_0001ea40(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  char *pcVar2;\n  size_t __n;\n  char *pcVar3;\n  char cVar4;\n  int unaff_EBX;\n  size_t sVar5;\n  \n  uVar1 = entry(param_2,0x1ea49);\n  pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(uVar1);\n  if (pcVar2 != (char *)0x0) {\n    __n = strlen(pcVar2);\n    sVar5 = __n;\n    if (*pcVar2 == '\"') {\n      sVar5 = __n - 1;\n      memmove(pcVar2,pcVar2 + 1,__n);\n    }\n    if (sVar5 == 0) {\n      if (*pcVar2 != '/') goto LAB_0001eaa5;\n    }\n    else {\n      pcVar3 = pcVar2 + (sVar5 - 1);\n      cVar4 = *pcVar3;\n      if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }\n      if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }\n    }\n  }\n  return pcVar2;\n}\n\n" (function_definition "char * __regparm3 FUN_0001ea40(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  char *pcVar2;\n  size_t __n;\n  char *pcVar3;\n  char cVar4;\n  int unaff_EBX;\n  size_t sVar5;\n  \n  uVar1 = entry(param_2,0x1ea49);\n  pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(uVar1);\n  if (pcVar2 != (char *)0x0) {\n    __n = strlen(pcVar2);\n    sVar5 = __n;\n    if (*pcVar2 == '\"') {\n      sVar5 = __n - 1;\n      memmove(pcVar2,pcVar2 + 1,__n);\n    }\n    if (sVar5 == 0) {\n      if (*pcVar2 != '/') goto LAB_0001eaa5;\n    }\n    else {\n      pcVar3 = pcVar2 + (sVar5 - 1);\n      cVar4 = *pcVar3;\n      if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }\n      if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }\n    }\n  }\n  return pcVar2;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_0001ea40(undefined4 param_1,undefined4 param_2)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_0001ea40(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  undefined4 uVar1;\n  char *pcVar2;\n  size_t __n;\n  char *pcVar3;\n  char cVar4;\n  int unaff_EBX;\n  size_t sVar5;\n  \n  uVar1 = entry(param_2,0x1ea49);\n  pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(uVar1);\n  if (pcVar2 != (char *)0x0) {\n    __n = strlen(pcVar2);\n    sVar5 = __n;\n    if (*pcVar2 == '\"') {\n      sVar5 = __n - 1;\n      memmove(pcVar2,pcVar2 + 1,__n);\n    }\n    if (sVar5 == 0) {\n      if (*pcVar2 != '/') goto LAB_0001eaa5;\n    }\n    else {\n      pcVar3 = pcVar2 + (sVar5 - 1);\n      cVar4 = *pcVar3;\n      if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }\n      if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }\n    }\n  }\n  return pcVar2;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "size_t sVar5;" primitive_type identifier ;) (expression_statement "uVar1 = entry(param_2,0x1ea49);" (assignment_expression "uVar1 = entry(param_2,0x1ea49)" identifier = (call_expression "entry(param_2,0x1ea49)" identifier (argument_list "(param_2,0x1ea49)" ( identifier , number_literal )))) ;) (expression_statement "pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(uVar1);" (assignment_expression "pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(uVar1)" identifier = (cast_expression "(char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(uVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(uVar1)" (parenthesized_expression "(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))" ( (pointer_expression "**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2)" * (pointer_expression "*(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2)" * (cast_expression "(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2)" ( (binary_expression "BYTE_ARRAY_00092549 + unaff_EBX + 0xd2" (binary_expression "BYTE_ARRAY_00092549 + unaff_EBX" identifier + identifier) + number_literal) ))))) )) (argument_list "(uVar1)" ( identifier ))))) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n    __n = strlen(pcVar2);\n    sVar5 = __n;\n    if (*pcVar2 == '\"') {\n      sVar5 = __n - 1;\n      memmove(pcVar2,pcVar2 + 1,__n);\n    }\n    if (sVar5 == 0) {\n      if (*pcVar2 != '/') goto LAB_0001eaa5;\n    }\n    else {\n      pcVar3 = pcVar2 + (sVar5 - 1);\n      cVar4 = *pcVar3;\n      if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }\n      if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }\n    }\n  }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __n = strlen(pcVar2);\n    sVar5 = __n;\n    if (*pcVar2 == '\"') {\n      sVar5 = __n - 1;\n      memmove(pcVar2,pcVar2 + 1,__n);\n    }\n    if (sVar5 == 0) {\n      if (*pcVar2 != '/') goto LAB_0001eaa5;\n    }\n    else {\n      pcVar3 = pcVar2 + (sVar5 - 1);\n      cVar4 = *pcVar3;\n      if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }\n      if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }\n    }\n  }" { (expression_statement "__n = strlen(pcVar2);" (assignment_expression "__n = strlen(pcVar2)" identifier = (call_expression "strlen(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "sVar5 = __n;" (assignment_expression "sVar5 = __n" identifier = identifier) ;) (if_statement "if (*pcVar2 == '\"') {\n      sVar5 = __n - 1;\n      memmove(pcVar2,pcVar2 + 1,__n);\n    }" if (parenthesized_expression "(*pcVar2 == '\"')" ( (binary_expression "*pcVar2 == '\"'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'\"'" ' escape_sequence ')) )) (compound_statement "{\n      sVar5 = __n - 1;\n      memmove(pcVar2,pcVar2 + 1,__n);\n    }" { (expression_statement "sVar5 = __n - 1;" (assignment_expression "sVar5 = __n - 1" identifier = (binary_expression "__n - 1" identifier - number_literal)) ;) (expression_statement "memmove(pcVar2,pcVar2 + 1,__n);" (call_expression "memmove(pcVar2,pcVar2 + 1,__n)" identifier (argument_list "(pcVar2,pcVar2 + 1,__n)" ( identifier , (binary_expression "pcVar2 + 1" identifier + number_literal) , identifier ))) ;) })) (if_statement "if (sVar5 == 0) {\n      if (*pcVar2 != '/') goto LAB_0001eaa5;\n    }\n    else {\n      pcVar3 = pcVar2 + (sVar5 - 1);\n      cVar4 = *pcVar3;\n      if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }\n      if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }\n    }" if (parenthesized_expression "(sVar5 == 0)" ( (binary_expression "sVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      if (*pcVar2 != '/') goto LAB_0001eaa5;\n    }" { (if_statement "if (*pcVar2 != '/') goto LAB_0001eaa5;" if (parenthesized_expression "(*pcVar2 != '/')" ( (binary_expression "*pcVar2 != '/'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'/'" ' character ')) )) (goto_statement "goto LAB_0001eaa5;" goto statement_identifier ;)) }) (else_clause "else {\n      pcVar3 = pcVar2 + (sVar5 - 1);\n      cVar4 = *pcVar3;\n      if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }\n      if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }\n    }" else (compound_statement "{\n      pcVar3 = pcVar2 + (sVar5 - 1);\n      cVar4 = *pcVar3;\n      if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }\n      if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }\n    }" { (expression_statement "pcVar3 = pcVar2 + (sVar5 - 1);" (assignment_expression "pcVar3 = pcVar2 + (sVar5 - 1)" identifier = (binary_expression "pcVar2 + (sVar5 - 1)" identifier + (parenthesized_expression "(sVar5 - 1)" ( (binary_expression "sVar5 - 1" identifier - number_literal) )))) ;) (expression_statement "cVar4 = *pcVar3;" (assignment_expression "cVar4 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) (if_statement "if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }" if (parenthesized_expression "(cVar4 == '\"')" ( (binary_expression "cVar4 == '\"'" identifier == (char_literal "'\"'" ' escape_sequence ')) )) (compound_statement "{\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }" { (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if (*pcVar2 != '/') goto LAB_0001eaa5;" if (parenthesized_expression "(*pcVar2 != '/')" ( (binary_expression "*pcVar2 != '/'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'/'" ' character ')) )) (goto_statement "goto LAB_0001eaa5;" goto statement_identifier ;)) (if_statement "if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }" if (parenthesized_expression "(sVar5 - 1 == 0)" ( (binary_expression "sVar5 - 1 == 0" (binary_expression "sVar5 - 1" identifier - number_literal) == number_literal) )) (compound_statement "{\n          return pcVar2;\n        }" { (return_statement "return pcVar2;" return identifier ;) })) (expression_statement "pcVar3 = pcVar2 + (sVar5 - 2);" (assignment_expression "pcVar3 = pcVar2 + (sVar5 - 2)" identifier = (binary_expression "pcVar2 + (sVar5 - 2)" identifier + (parenthesized_expression "(sVar5 - 2)" ( (binary_expression "sVar5 - 2" identifier - number_literal) )))) ;) (expression_statement "cVar4 = *pcVar3;" (assignment_expression "cVar4 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) }) (else_clause "else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }" else (if_statement "if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }" if (parenthesized_expression "(*pcVar2 != '/')" ( (binary_expression "*pcVar2 != '/'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'/'" ' character ')) )) (compound_statement "{\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }" { (labeled_statement "LAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);" statement_identifier : (expression_statement "(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);" (call_expression "(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2)" (parenthesized_expression "(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))" ( (pointer_expression "**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda)" * (pointer_expression "*(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda)" * (cast_expression "(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(BYTE_ARRAY_00092549 + unaff_EBX + 0xda)" ( (binary_expression "BYTE_ARRAY_00092549 + unaff_EBX + 0xda" (binary_expression "BYTE_ARRAY_00092549 + unaff_EBX" identifier + identifier) + number_literal) ))))) )) (argument_list "(pcVar2)" ( identifier ))) ;)) (expression_statement "pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);" (assignment_expression "pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9)" identifier = (cast_expression "(char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9)" (parenthesized_expression "(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))" ( (pointer_expression "**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2)" * (pointer_expression "*(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2)" * (cast_expression "(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2)" ( (binary_expression "BYTE_ARRAY_00092549 + unaff_EBX + 0xd2" (binary_expression "BYTE_ARRAY_00092549 + unaff_EBX" identifier + identifier) + number_literal) ))))) )) (argument_list "(unaff_EBX + 0x67de9)" ( (binary_expression "unaff_EBX + 0x67de9" identifier + number_literal) ))))) ;) (return_statement "return pcVar2;" return identifier ;) })))) (if_statement "if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }" if (parenthesized_expression "(cVar4 == '/')" ( (binary_expression "cVar4 == '/'" identifier == (char_literal "'/'" ' character ')) )) (compound_statement "{\n        *pcVar3 = '\0';\n      }" { (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) })) }))) })) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) ))))) )) (argument_list ( IDENT ))))) ;) (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 )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' character ')) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT - LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' character ')) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT - LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' character ')) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) ))))) )) (argument_list ( IDENT ))) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) ))))) )) (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (return_statement return IDENT ;) })))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) })) }))) })) (return_statement return IDENT ;) })))
(function_definition "char * __regparm3 FUN_0001ea40(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  char *pcVar2;\n  size_t __n;\n  char *pcVar3;\n  char cVar4;\n  int unaff_EBX;\n  size_t sVar5;\n  \n  uVar1 = entry(param_2,0x1ea49);\n  pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(uVar1);\n  if (pcVar2 != (char *)0x0) {\n    __n = strlen(pcVar2);\n    sVar5 = __n;\n    if (*pcVar2 == '\"') {\n      sVar5 = __n - 1;\n      memmove(pcVar2,pcVar2 + 1,__n);\n    }\n    if (sVar5 == 0) {\n      if (*pcVar2 != '/') goto LAB_0001eaa5;\n    }\n    else {\n      pcVar3 = pcVar2 + (sVar5 - 1);\n      cVar4 = *pcVar3;\n      if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }\n      if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }\n    }\n  }\n  return pcVar2;\n}" (primitive_type "char") (pointer_declarator "* __regparm3 FUN_0001ea40(undefined4 param_1,undefined4 param_2)" (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001ea40(undefined4 param_1,undefined4 param_2)" (identifier "FUN_0001ea40") (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  undefined4 uVar1;\n  char *pcVar2;\n  size_t __n;\n  char *pcVar3;\n  char cVar4;\n  int unaff_EBX;\n  size_t sVar5;\n  \n  uVar1 = entry(param_2,0x1ea49);\n  pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(uVar1);\n  if (pcVar2 != (char *)0x0) {\n    __n = strlen(pcVar2);\n    sVar5 = __n;\n    if (*pcVar2 == '\"') {\n      sVar5 = __n - 1;\n      memmove(pcVar2,pcVar2 + 1,__n);\n    }\n    if (sVar5 == 0) {\n      if (*pcVar2 != '/') goto LAB_0001eaa5;\n    }\n    else {\n      pcVar3 = pcVar2 + (sVar5 - 1);\n      cVar4 = *pcVar3;\n      if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }\n      if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }\n    }\n  }\n  return pcVar2;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "char cVar4;" (primitive_type "char") (identifier "cVar4") (; ";")) (declaration "int unaff_EBX;" (primitive_type "int") (identifier "unaff_EBX") (; ";")) (declaration "size_t sVar5;" (primitive_type "size_t") (identifier "sVar5") (; ";")) (expression_statement "uVar1 = entry(param_2,0x1ea49);" (assignment_expression "uVar1 = entry(param_2,0x1ea49)" (identifier "uVar1") (= "=") (call_expression "entry(param_2,0x1ea49)" (identifier "entry") (argument_list "(param_2,0x1ea49)" (( "(") (identifier "param_2") (, ",") (number_literal "0x1ea49") () ")")))) (; ";")) (expression_statement "pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(uVar1);" (assignment_expression "pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(uVar1)" (identifier "pcVar2") (= "=") (cast_expression "(char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(uVar1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(uVar1)" (parenthesized_expression "(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))" (( "(") (pointer_expression "**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2)" (* "*") (pointer_expression "*(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2)" (* "*") (cast_expression "(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2)" (( "(") (binary_expression "BYTE_ARRAY_00092549 + unaff_EBX + 0xd2" (binary_expression "BYTE_ARRAY_00092549 + unaff_EBX" (identifier "BYTE_ARRAY_00092549") (+ "+") (identifier "unaff_EBX")) (+ "+") (number_literal "0xd2")) () ")"))))) () ")")) (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))))) (; ";")) (if_statement "if (pcVar2 != (char *)0x0) {\n    __n = strlen(pcVar2);\n    sVar5 = __n;\n    if (*pcVar2 == '\"') {\n      sVar5 = __n - 1;\n      memmove(pcVar2,pcVar2 + 1,__n);\n    }\n    if (sVar5 == 0) {\n      if (*pcVar2 != '/') goto LAB_0001eaa5;\n    }\n    else {\n      pcVar3 = pcVar2 + (sVar5 - 1);\n      cVar4 = *pcVar3;\n      if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }\n      if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }\n    }\n  }" (if "if") (parenthesized_expression "(pcVar2 != (char *)0x0)" (( "(") (binary_expression "pcVar2 != (char *)0x0" (identifier "pcVar2") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    __n = strlen(pcVar2);\n    sVar5 = __n;\n    if (*pcVar2 == '\"') {\n      sVar5 = __n - 1;\n      memmove(pcVar2,pcVar2 + 1,__n);\n    }\n    if (sVar5 == 0) {\n      if (*pcVar2 != '/') goto LAB_0001eaa5;\n    }\n    else {\n      pcVar3 = pcVar2 + (sVar5 - 1);\n      cVar4 = *pcVar3;\n      if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }\n      if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }\n    }\n  }" ({ "{") (expression_statement "__n = strlen(pcVar2);" (assignment_expression "__n = strlen(pcVar2)" (identifier "__n") (= "=") (call_expression "strlen(pcVar2)" (identifier "strlen") (argument_list "(pcVar2)" (( "(") (identifier "pcVar2") () ")")))) (; ";")) (expression_statement "sVar5 = __n;" (assignment_expression "sVar5 = __n" (identifier "sVar5") (= "=") (identifier "__n")) (; ";")) (if_statement "if (*pcVar2 == '\"') {\n      sVar5 = __n - 1;\n      memmove(pcVar2,pcVar2 + 1,__n);\n    }" (if "if") (parenthesized_expression "(*pcVar2 == '\"')" (( "(") (binary_expression "*pcVar2 == '\"'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (== "==") (char_literal "'\"'" (' "'") (escape_sequence "\"") (' "'"))) () ")")) (compound_statement "{\n      sVar5 = __n - 1;\n      memmove(pcVar2,pcVar2 + 1,__n);\n    }" ({ "{") (expression_statement "sVar5 = __n - 1;" (assignment_expression "sVar5 = __n - 1" (identifier "sVar5") (= "=") (binary_expression "__n - 1" (identifier "__n") (- "-") (number_literal "1"))) (; ";")) (expression_statement "memmove(pcVar2,pcVar2 + 1,__n);" (call_expression "memmove(pcVar2,pcVar2 + 1,__n)" (identifier "memmove") (argument_list "(pcVar2,pcVar2 + 1,__n)" (( "(") (identifier "pcVar2") (, ",") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1")) (, ",") (identifier "__n") () ")"))) (; ";")) (} "}"))) (if_statement "if (sVar5 == 0) {\n      if (*pcVar2 != '/') goto LAB_0001eaa5;\n    }\n    else {\n      pcVar3 = pcVar2 + (sVar5 - 1);\n      cVar4 = *pcVar3;\n      if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }\n      if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }\n    }" (if "if") (parenthesized_expression "(sVar5 == 0)" (( "(") (binary_expression "sVar5 == 0" (identifier "sVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (*pcVar2 != '/') goto LAB_0001eaa5;\n    }" ({ "{") (if_statement "if (*pcVar2 != '/') goto LAB_0001eaa5;" (if "if") (parenthesized_expression "(*pcVar2 != '/')" (( "(") (binary_expression "*pcVar2 != '/'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (!= "!=") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (goto_statement "goto LAB_0001eaa5;" (goto "goto") (statement_identifier "LAB_0001eaa5") (; ";"))) (} "}")) (else_clause "else {\n      pcVar3 = pcVar2 + (sVar5 - 1);\n      cVar4 = *pcVar3;\n      if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }\n      if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }\n    }" (else "else") (compound_statement "{\n      pcVar3 = pcVar2 + (sVar5 - 1);\n      cVar4 = *pcVar3;\n      if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }\n      if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }\n    }" ({ "{") (expression_statement "pcVar3 = pcVar2 + (sVar5 - 1);" (assignment_expression "pcVar3 = pcVar2 + (sVar5 - 1)" (identifier "pcVar3") (= "=") (binary_expression "pcVar2 + (sVar5 - 1)" (identifier "pcVar2") (+ "+") (parenthesized_expression "(sVar5 - 1)" (( "(") (binary_expression "sVar5 - 1" (identifier "sVar5") (- "-") (number_literal "1")) () ")")))) (; ";")) (expression_statement "cVar4 = *pcVar3;" (assignment_expression "cVar4 = *pcVar3" (identifier "cVar4") (= "=") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3"))) (; ";")) (if_statement "if (cVar4 == '\"') {\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }\n      else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }" (if "if") (parenthesized_expression "(cVar4 == '\"')" (( "(") (binary_expression "cVar4 == '\"'" (identifier "cVar4") (== "==") (char_literal "'\"'" (' "'") (escape_sequence "\"") (' "'"))) () ")")) (compound_statement "{\n        *pcVar3 = '\0';\n        if (*pcVar2 != '/') goto LAB_0001eaa5;\n        if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }\n        pcVar3 = pcVar2 + (sVar5 - 2);\n        cVar4 = *pcVar3;\n      }" ({ "{") (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (if_statement "if (*pcVar2 != '/') goto LAB_0001eaa5;" (if "if") (parenthesized_expression "(*pcVar2 != '/')" (( "(") (binary_expression "*pcVar2 != '/'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (!= "!=") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (goto_statement "goto LAB_0001eaa5;" (goto "goto") (statement_identifier "LAB_0001eaa5") (; ";"))) (if_statement "if (sVar5 - 1 == 0) {\n          return pcVar2;\n        }" (if "if") (parenthesized_expression "(sVar5 - 1 == 0)" (( "(") (binary_expression "sVar5 - 1 == 0" (binary_expression "sVar5 - 1" (identifier "sVar5") (- "-") (number_literal "1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          return pcVar2;\n        }" ({ "{") (return_statement "return pcVar2;" (return "return") (identifier "pcVar2") (; ";")) (} "}"))) (expression_statement "pcVar3 = pcVar2 + (sVar5 - 2);" (assignment_expression "pcVar3 = pcVar2 + (sVar5 - 2)" (identifier "pcVar3") (= "=") (binary_expression "pcVar2 + (sVar5 - 2)" (identifier "pcVar2") (+ "+") (parenthesized_expression "(sVar5 - 2)" (( "(") (binary_expression "sVar5 - 2" (identifier "sVar5") (- "-") (number_literal "2")) () ")")))) (; ";")) (expression_statement "cVar4 = *pcVar3;" (assignment_expression "cVar4 = *pcVar3" (identifier "cVar4") (= "=") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3"))) (; ";")) (} "}")) (else_clause "else if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }" (else "else") (if_statement "if (*pcVar2 != '/') {\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }" (if "if") (parenthesized_expression "(*pcVar2 != '/')" (( "(") (binary_expression "*pcVar2 != '/'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (!= "!=") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (compound_statement "{\nLAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);\n        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);\n        return pcVar2;\n      }" ({ "{") (labeled_statement "LAB_0001eaa5:\n        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);" (statement_identifier "LAB_0001eaa5") (: ":") (expression_statement "(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);" (call_expression "(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2)" (parenthesized_expression "(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))" (( "(") (pointer_expression "**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda)" (* "*") (pointer_expression "*(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda)" (* "*") (cast_expression "(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(BYTE_ARRAY_00092549 + unaff_EBX + 0xda)" (( "(") (binary_expression "BYTE_ARRAY_00092549 + unaff_EBX + 0xda" (binary_expression "BYTE_ARRAY_00092549 + unaff_EBX" (identifier "BYTE_ARRAY_00092549") (+ "+") (identifier "unaff_EBX")) (+ "+") (number_literal "0xda")) () ")"))))) () ")")) (argument_list "(pcVar2)" (( "(") (identifier "pcVar2") () ")"))) (; ";"))) (expression_statement "pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);" (assignment_expression "pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9)" (identifier "pcVar2") (= "=") (cast_expression "(char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9)" (parenthesized_expression "(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))" (( "(") (pointer_expression "**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2)" (* "*") (pointer_expression "*(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2)" (* "*") (cast_expression "(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2)" (( "(") (binary_expression "BYTE_ARRAY_00092549 + unaff_EBX + 0xd2" (binary_expression "BYTE_ARRAY_00092549 + unaff_EBX" (identifier "BYTE_ARRAY_00092549") (+ "+") (identifier "unaff_EBX")) (+ "+") (number_literal "0xd2")) () ")"))))) () ")")) (argument_list "(unaff_EBX + 0x67de9)" (( "(") (binary_expression "unaff_EBX + 0x67de9" (identifier "unaff_EBX") (+ "+") (number_literal "0x67de9")) () ")"))))) (; ";")) (return_statement "return pcVar2;" (return "return") (identifier "pcVar2") (; ";")) (} "}"))))) (if_statement "if (cVar4 == '/') {\n        *pcVar3 = '\0';\n      }" (if "if") (parenthesized_expression "(cVar4 == '/')" (( "(") (binary_expression "cVar4 == '/'" (identifier "cVar4") (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (compound_statement "{\n        *pcVar3 = '\0';\n      }" ({ "{") (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}"))) (} "}")))) (} "}"))) (return_statement "return pcVar2;" (return "return") (identifier "pcVar2") (; ";")) (} "}")))

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

char * __regparm3 function_1(char *cookie_path)

{
  char *var_1;
  size_t var_3;
  char *pcVar2;
  char var_6;
  size_t var_5;
  
  var_1 = (*Curl_cstrdup)(cookie_path);
  if (var_1 != (char *)0x0) {
    var_3 = var_2(var_1);
    var_5 = var_3;
    if (*var_1 == '\"') {
      var_5 = var_3 - 1;
      var_4(var_1,var_1 + 1,var_3);
    }
    if (var_5 == 0) {
      if (*var_1 != '/') goto LAB_0001eaa5;
    }
    else {
      pcVar2 = var_1 + (var_5 - 1);
      var_6 = *pcVar2;
      if (var_6 == '\"') {
        *pcVar2 = '\0';
        if (*var_1 != '/') goto LAB_0001eaa5;
        if (var_5 - 1 == 0) {
          return var_1;
        }
        pcVar2 = var_1 + (var_5 - 2);
        var_6 = *pcVar2;
      }
      else if (*var_1 != '/') {
LAB_0001eaa5:
        (*Curl_cfree)(var_1);
        var_1 = (*Curl_cstrdup)("/");
        return var_1;
      }
      if (var_6 == '/') {
        *pcVar2 = '\0';
      }
    }
  }
  return var_1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator (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: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator 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)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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: (binary_expression left: (identifier) right: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier)))))) (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))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (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: (binary_expression left: (identifier) right: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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: (binary_expression left: (identifier) right: (identifier)) right: (number_literal))))))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (return_statement (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence))))))))))) (return_statement (identifier)))))

char * __regparm3 MASKED(undefined4 param_1,undefined4 param_2)

{
  undefined4 uVar1;
  char *pcVar2;
  size_t __n;
  char *pcVar3;
  char cVar4;
  int unaff_EBX;
  size_t sVar5;
  
  uVar1 = entry(param_2,0x1ea49);
  pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(uVar1);
  if (pcVar2 != (char *)0x0) {
    __n = strlen(pcVar2);
    sVar5 = __n;
    if (*pcVar2 == '\"') {
      sVar5 = __n - 1;
      memmove(pcVar2,pcVar2 + 1,__n);
    }
    if (sVar5 == 0) {
      if (*pcVar2 != '/') goto LAB_0001eaa5;
    }
    else {
      pcVar3 = pcVar2 + (sVar5 - 1);
      cVar4 = *pcVar3;
      if (cVar4 == '\"') {
        *pcVar3 = '\0';
        if (*pcVar2 != '/') goto LAB_0001eaa5;
        if (sVar5 - 1 == 0) {
          return pcVar2;
        }
        pcVar3 = pcVar2 + (sVar5 - 2);
        cVar4 = *pcVar3;
      }
      else if (*pcVar2 != '/') {
LAB_0001eaa5:
        (**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xda))(pcVar2);
        pcVar2 = (char *)(**(code **)(BYTE_ARRAY_00092549 + unaff_EBX + 0xd2))(unaff_EBX + 0x67de9);
        return pcVar2;
      }
      if (cVar4 == '/') {
        *pcVar3 = '\0';
      }
    }
  }
  return pcVar2;
}

