
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */
/* WARNING: Enum "gnutls_pk_algorithm_t": Some values do not have unique names */
/* WARNING: Enum "gnutls_certificate_type_t": Some values do not have unique names */

int __regparm3 process_multipart_headers(MHD_PostProcessor *pp,size_t *ioffptr,PP_State next_state)

{
  size_t sVar1;
  char cVar2;
  size_t sVar3;
  size_t sVar4;
  MHD_PostProcessor *str2;
  int iVar5;
  char *pcVar6;
  size_t sVar7;
  MHD_PostProcessor *str2_00;
  
  str2 = pp + 1;
  sVar3 = pp->buffer_pos;
  sVar4 = pp->buffer_size;
  if (sVar3 == 0) {
    if (sVar4 != 0) {
      return 0;
    }
  }
  else if ((*(char *)&pp[1].connection == '\n') || (*(char *)&pp[1].connection == '\r')) {
    if (sVar4 != 0) {
      pp->skip_rn = RN_Full;
      pp->state = next_state;
      return 1;
    }
  }
  else {
    sVar1 = 0;
    do {
      sVar7 = sVar1;
      sVar1 = sVar7 + 1;
      if (sVar1 == sVar3) {
        if (sVar3 != sVar4) {
          return 0;
        }
        goto LAB_00024670;
      }
    } while ((pp[1].xbuf[sVar7 - 0x27] != '\r') && (pp[1].xbuf[sVar7 - 0x27] != '\n'));
    if (sVar1 != sVar4) {
      if (str2->xbuf[sVar7 - 0x27] == '\r') {
        pp->skip_rn = RN_OptN;
      }
      str2->xbuf[sVar7 - 0x27] = '\0';
      iVar5 = MHD_str_equal_caseless_n_("Content-disposition: ",(char *)str2,0x15);
      if (iVar5 == 0) {
        if (pp->content_type == (char *)0x0) {
          cVar2 = *(char *)&pp[1].connection;
          str2_00 = str2;
          while (cVar2 != '\0') {
            iVar5 = MHD_str_equal_caseless_n_("Content-type: ",(char *)str2_00,0xe);
            if (iVar5 != 0) {
              pcVar6 = strdup((char *)((int)&str2_00->encoding + 2));
              pp->content_type = pcVar6;
              break;
            }
            str2_00 = (MHD_PostProcessor *)((int)&str2_00->connection + 1);
            cVar2 = *(char *)&str2_00->connection;
          }
        }
        if (pp->content_transfer_encoding == (char *)0x0) {
          cVar2 = *(char *)&pp[1].connection;
          while (cVar2 != '\0') {
            iVar5 = MHD_str_equal_caseless_n_("Content-Transfer-Encoding: ",(char *)str2,0x1b);
            if (iVar5 != 0) {
              pcVar6 = strdup((char *)((int)&str2->content_name + 3));
              pp->content_transfer_encoding = pcVar6;
              break;
            }
            str2 = (MHD_PostProcessor *)((int)&str2->connection + 1);
            cVar2 = *(char *)&str2->connection;
          }
        }
      }
      else {
        pcVar6 = (char *)((int)&pp[1].nested_boundary + 1);
        if (pp->content_name == (char *)0x0) {
          try_get_value(pcVar6,"name",&pp->content_name);
        }
        if (pp->content_filename == (char *)0x0) {
          try_get_value(pcVar6,"filename",&pp->content_filename);
        }
      }
      *ioffptr = sVar7 + 2 + *ioffptr;
      return 1;
    }
  }
LAB_00024670:
  pp->state = PP_Error;
  return 0;
}



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

undefined4 __regparm3 FUN_00024590(int param_1,int *param_2,undefined4 param_3)

{
  int iVar1;
  char cVar2;
  int iVar3;
  char *pcVar4;
  int iVar5;
  char *pcVar6;
  int iVar7;
  
  pcVar4 = (char *)(param_1 + 0x60);
  iVar5 = *(int *)(param_1 + 0x34);
  iVar3 = *(int *)(param_1 + 0x30);
  if (iVar5 == 0) {
    if (iVar3 != 0) {
      return 0;
    }
  }
  else if ((*(char *)(param_1 + 0x60) == '\n') || (*(char *)(param_1 + 0x60) == '\r')) {
    if (iVar3 != 0) {
      *(undefined4 *)(param_1 + 0x54) = 2;
      *(undefined4 *)(param_1 + 0x50) = param_3;
      return 1;
    }
  }
  else {
    iVar1 = 0;
    do {
      iVar7 = iVar1;
      iVar1 = iVar7 + 1;
      if (iVar1 == iVar5) {
        if (iVar5 != iVar3) {
          return 0;
        }
        goto LAB_00024670;
      }
      cVar2 = *(char *)(param_1 + 0x60 + iVar1);
    } while ((cVar2 != '\r') && (cVar2 != '\n'));
    if (iVar1 != iVar3) {
      if (pcVar4[iVar1] == '\r') {
        *(undefined4 *)(param_1 + 0x54) = 1;
      }
      pcVar4[iVar1] = '\0';
      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);
      if (iVar5 == 0) {
        if (*(int *)(param_1 + 0x1c) == 0) {
          cVar2 = *(char *)(param_1 + 0x60);
          pcVar6 = pcVar4;
          while (cVar2 != '\0') {
            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);
            if (iVar5 != 0) {
              pcVar6 = strdup(pcVar6 + 0xe);
              *(char **)(param_1 + 0x1c) = pcVar6;
              break;
            }
            pcVar6 = pcVar6 + 1;
            cVar2 = *pcVar6;
          }
        }
        if (*(int *)(param_1 + 0x24) == 0) {
          cVar2 = *(char *)(param_1 + 0x60);
          while (cVar2 != '\0') {
            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);
            if (iVar5 != 0) {
              pcVar4 = strdup(pcVar4 + 0x1b);
              *(char **)(param_1 + 0x24) = pcVar4;
              break;
            }
            pcVar4 = pcVar4 + 1;
            cVar2 = *pcVar4;
          }
        }
      }
      else {
        if (*(int *)(param_1 + 0x18) == 0) {
          FUN_000244c0();
        }
        if (*(int *)(param_1 + 0x20) == 0) {
          FUN_000244c0();
        }
      }
      *param_2 = iVar7 + 2 + *param_2;
      return 1;
    }
  }
LAB_00024670:
  *(undefined4 *)(param_1 + 0x50) = 0;
  return 0;
}


PUSH EBP
PUSH EDI
MOV EDI,EAX
ADD EAX,0x60
PUSH ESI
PUSH EBX
CALL 0x00013810
ADD EBX,0x10842
SUB ESP,0x1c
MOV EBP,dword ptr [EDI + 0x34]
MOV dword ptr [ESP + 0x8],EDX
MOV EDX,ECX
MOV ECX,dword ptr [EDI + 0x30]
MOV dword ptr [ESP + 0x4],EAX
TEST EBP,EBP
JZ 0x0002466a
MOVZX EAX,byte ptr [EDI + 0x60]
CMP AL,0xa
JZ 0x0002477d
CMP AL,0xd
JZ 0x0002477d
XOR ESI,ESI
JMP 0x000245ef
MOVZX EAX,byte ptr [EDI + EDX*0x1 + 0x60]
CMP AL,0xd
JZ 0x00024608
CMP AL,0xa
JZ 0x00024608
MOV ESI,EDX
LEA EDX,[ESI + 0x1]
CMP EDX,EBP
JNZ 0x000245e0
XOR EAX,EAX
CMP EBP,ECX
JZ 0x00024670
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP EDX,ECX
JZ 0x00024670
ADD EDX,dword ptr [ESP + 0x4]
CMP byte ptr [EDX],0xd
JZ 0x000246f0
SUB ESP,0x4
LEA EAX,[EBX + 0xffff7af1]
MOV byte ptr [EDX],0x0
PUSH 0x15
PUSH dword ptr [ESP + 0xc]
PUSH EAX
CALL 0x00021f60
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00024688
MOV EAX,dword ptr [EDI + 0x18]
LEA EBP,[EDI + 0x75]
TEST EAX,EAX
JZ 0x000246fc
MOV ECX,dword ptr [EDI + 0x20]
TEST ECX,ECX
JZ 0x00024768
MOV EBX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [EBX]
LEA EAX,[ESI + EAX*0x1 + 0x2]
MOV dword ptr [EBX],EAX
ADD ESP,0x1c
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST ECX,ECX
JNZ 0x00024677
NOP
MOV dword ptr [EDI + 0x50],0x0
ADD ESP,0x1c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,dword ptr [EDI + 0x1c]
TEST EDX,EDX
JZ 0x00024711
MOV EAX,dword ptr [EDI + 0x24]
TEST EAX,EAX
JNZ 0x00024651
CMP byte ptr [EDI + 0x60],0x0
JZ 0x00024651
MOV dword ptr [ESP + 0xc],EDI
LEA EBP,[EBX + 0xffff7b1f]
MOV EDI,dword ptr [ESP + 0x4]
JMP 0x000246b8
ADD EDI,0x1
CMP byte ptr [EDI],0x0
JZ 0x00024651
SUB ESP,0x4
PUSH 0x1b
PUSH EDI
PUSH EBP
CALL 0x00021f60
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000246b0
MOV EAX,EDI
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x18]
ADD EAX,0x1b
PUSH EAX
CALL 0x00013150
ADD ESP,0x10
MOV dword ptr [EDI + 0x24],EAX
JMP 0x00024651
MOV dword ptr [EDI + 0x54],0x1
JMP 0x00024619
LEA ECX,[EDI + 0x18]
LEA EDX,[EBX + 0xffff7b0b]
MOV EAX,EBP
CALL 0x000244c0
JMP 0x00024646
CMP byte ptr [EDI + 0x60],0x0
JZ 0x00024693
MOV EBP,dword ptr [ESP + 0x4]
LEA EAX,[EBX + 0xffff7b10]
MOV dword ptr [ESP + 0xc],ESI
MOV ESI,EBP
MOV EBP,EAX
JMP 0x00024738
ADD ESI,0x1
CMP byte ptr [ESI],0x0
JZ 0x0002479c
SUB ESP,0x4
PUSH 0xe
PUSH ESI
PUSH EBP
CALL 0x00021f60
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00024730
MOV EBP,ESI
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x18]
LEA EDX,[EBP + 0xe]
PUSH EDX
CALL 0x00013150
ADD ESP,0x10
MOV dword ptr [EDI + 0x1c],EAX
JMP 0x00024693
LEA ECX,[EDI + 0x20]
LEA EDX,[EBX + 0xffff7b07]
MOV EAX,EBP
CALL 0x000244c0
JMP 0x00024651
TEST ECX,ECX
JZ 0x00024670
MOV dword ptr [EDI + 0x54],0x2
MOV EAX,0x1
MOV dword ptr [EDI + 0x50],EDX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ESI,dword ptr [ESP + 0xc]
JMP 0x00024693
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_00024590(int param_1,int *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  char *pcVar6;\n  int iVar7;\n  \n  pcVar4 = (char *)(param_1 + 0x60);\n  iVar5 = *(int *)(param_1 + 0x34);\n  iVar3 = *(int *)(param_1 + 0x30);\n  if (iVar5 == 0) {\n    if (iVar3 != 0) {\n      return 0;\n    }\n  }\n  else if ((*(char *)(param_1 + 0x60) == '\n') || (*(char *)(param_1 + 0x60) == '\r')) {\n    if (iVar3 != 0) {\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = 0;\n    do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));\n    if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }\n  }\nLAB_00024670:\n  *(undefined4 *)(param_1 + 0x50) = 0;\n  return 0;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_00024590(int param_1,int *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  char *pcVar6;\n  int iVar7;\n  \n  pcVar4 = (char *)(param_1 + 0x60);\n  iVar5 = *(int *)(param_1 + 0x34);\n  iVar3 = *(int *)(param_1 + 0x30);\n  if (iVar5 == 0) {\n    if (iVar3 != 0) {\n      return 0;\n    }\n  }\n  else if ((*(char *)(param_1 + 0x60) == '\n') || (*(char *)(param_1 + 0x60) == '\r')) {\n    if (iVar3 != 0) {\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = 0;\n    do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));\n    if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }\n  }\nLAB_00024670:\n  *(undefined4 *)(param_1 + 0x50) = 0;\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00024590(int param_1,int *param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int *param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  char *pcVar6;\n  int iVar7;\n  \n  pcVar4 = (char *)(param_1 + 0x60);\n  iVar5 = *(int *)(param_1 + 0x34);\n  iVar3 = *(int *)(param_1 + 0x30);\n  if (iVar5 == 0) {\n    if (iVar3 != 0) {\n      return 0;\n    }\n  }\n  else if ((*(char *)(param_1 + 0x60) == '\n') || (*(char *)(param_1 + 0x60) == '\r')) {\n    if (iVar3 != 0) {\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = 0;\n    do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));\n    if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }\n  }\nLAB_00024670:\n  *(undefined4 *)(param_1 + 0x50) = 0;\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (expression_statement "pcVar4 = (char *)(param_1 + 0x60);" (assignment_expression "pcVar4 = (char *)(param_1 + 0x60)" identifier = (cast_expression "(char *)(param_1 + 0x60)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) ;) (expression_statement "iVar5 = *(int *)(param_1 + 0x34);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x34)" identifier = (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x30);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x30)" identifier = (pointer_expression "*(int *)(param_1 + 0x30)" * (cast_expression "(int *)(param_1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (if_statement "if (iVar5 == 0) {\n    if (iVar3 != 0) {\n      return 0;\n    }\n  }\n  else if ((*(char *)(param_1 + 0x60) == '\n') || (*(char *)(param_1 + 0x60) == '\r')) {\n    if (iVar3 != 0) {\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = 0;\n    do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));\n    if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    if (iVar3 != 0) {\n      return 0;\n    }\n  }" { (if_statement "if (iVar3 != 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if ((*(char *)(param_1 + 0x60) == '\n') || (*(char *)(param_1 + 0x60) == '\r')) {\n    if (iVar3 != 0) {\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = 0;\n    do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));\n    if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }\n  }" else (if_statement "if ((*(char *)(param_1 + 0x60) == '\n') || (*(char *)(param_1 + 0x60) == '\r')) {\n    if (iVar3 != 0) {\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = 0;\n    do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));\n    if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }\n  }" if (parenthesized_expression "((*(char *)(param_1 + 0x60) == '\n') || (*(char *)(param_1 + 0x60) == '\r'))" ( (binary_expression "(*(char *)(param_1 + 0x60) == '\n') || (*(char *)(param_1 + 0x60) == '\r')" (parenthesized_expression "(*(char *)(param_1 + 0x60) == '\n')" ( (binary_expression "*(char *)(param_1 + 0x60) == '\n'" (pointer_expression "*(char *)(param_1 + 0x60)" * (cast_expression "(char *)(param_1 + 0x60)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) == (char_literal "'\n'" ' escape_sequence ')) )) || (parenthesized_expression "(*(char *)(param_1 + 0x60) == '\r')" ( (binary_expression "*(char *)(param_1 + 0x60) == '\r'" (pointer_expression "*(char *)(param_1 + 0x60)" * (cast_expression "(char *)(param_1 + 0x60)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) == (char_literal "'\r'" ' escape_sequence ')) ))) )) (compound_statement "{\n    if (iVar3 != 0) {\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }\n  }" { (if_statement "if (iVar3 != 0) {\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x54) = 2;" (assignment_expression "*(undefined4 *)(param_1 + 0x54) = 2" (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x50) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = param_3" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else {\n    iVar1 = 0;\n    do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));\n    if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }\n  }" else (compound_statement "{\n    iVar1 = 0;\n    do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));\n    if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));" do (compound_statement "{\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    }" { (expression_statement "iVar7 = iVar1;" (assignment_expression "iVar7 = iVar1" identifier = identifier) ;) (expression_statement "iVar1 = iVar7 + 1;" (assignment_expression "iVar1 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }" if (parenthesized_expression "(iVar1 == iVar5)" ( (binary_expression "iVar1 == iVar5" identifier == identifier) )) (compound_statement "{\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }" { (if_statement "if (iVar5 != iVar3) {\n          return 0;\n        }" if (parenthesized_expression "(iVar5 != iVar3)" ( (binary_expression "iVar5 != iVar3" identifier != identifier) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (goto_statement "goto LAB_00024670;" goto statement_identifier ;) })) (expression_statement "cVar2 = *(char *)(param_1 + 0x60 + iVar1);" (assignment_expression "cVar2 = *(char *)(param_1 + 0x60 + iVar1)" identifier = (pointer_expression "*(char *)(param_1 + 0x60 + iVar1)" * (cast_expression "(char *)(param_1 + 0x60 + iVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60 + iVar1)" ( (binary_expression "param_1 + 0x60 + iVar1" (binary_expression "param_1 + 0x60" identifier + number_literal) + identifier) ))))) ;) }) while (parenthesized_expression "((cVar2 != '\r') && (cVar2 != '\n'))" ( (binary_expression "(cVar2 != '\r') && (cVar2 != '\n')" (parenthesized_expression "(cVar2 != '\r')" ( (binary_expression "cVar2 != '\r'" identifier != (char_literal "'\r'" ' escape_sequence ')) )) && (parenthesized_expression "(cVar2 != '\n')" ( (binary_expression "cVar2 != '\n'" identifier != (char_literal "'\n'" ' escape_sequence ')) ))) )) ;) (if_statement "if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }" if (parenthesized_expression "(iVar1 != iVar3)" ( (binary_expression "iVar1 != iVar3" identifier != identifier) )) (compound_statement "{\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }" { (if_statement "if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }" if (parenthesized_expression "(pcVar4[iVar1] == '\r')" ( (binary_expression "pcVar4[iVar1] == '\r'" (subscript_expression "pcVar4[iVar1]" identifier [ identifier ]) == (char_literal "'\r'" ' escape_sequence ')) )) (compound_statement "{\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }" { (expression_statement "*(undefined4 *)(param_1 + 0x54) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x54) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "pcVar4[iVar1] = '\0';" (assignment_expression "pcVar4[iVar1] = '\0'" (subscript_expression "pcVar4[iVar1]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);" (assignment_expression "iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15)" identifier = (call_expression "FUN_00021f60("Content-disposition: ",pcVar4,0x15)" identifier (argument_list "("Content-disposition: ",pcVar4,0x15)" ( (string_literal ""Content-disposition: "" " string_content ") , identifier , number_literal )))) ;) (if_statement "if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }" { (if_statement "if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }" if (parenthesized_expression "(*(int *)(param_1 + 0x1c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1c) == 0" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }" { (expression_statement "cVar2 = *(char *)(param_1 + 0x60);" (assignment_expression "cVar2 = *(char *)(param_1 + 0x60)" identifier = (pointer_expression "*(char *)(param_1 + 0x60)" * (cast_expression "(char *)(param_1 + 0x60)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ;) (expression_statement "pcVar6 = pcVar4;" (assignment_expression "pcVar6 = pcVar4" identifier = identifier) ;) (while_statement "while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }" while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }" { (expression_statement "iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);" (assignment_expression "iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe)" identifier = (call_expression "FUN_00021f60("Content-type: ",pcVar6,0xe)" identifier (argument_list "("Content-type: ",pcVar6,0xe)" ( (string_literal ""Content-type: "" " string_content ") , identifier , number_literal )))) ;) (if_statement "if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }" { (expression_statement "pcVar6 = strdup(pcVar6 + 0xe);" (assignment_expression "pcVar6 = strdup(pcVar6 + 0xe)" identifier = (call_expression "strdup(pcVar6 + 0xe)" identifier (argument_list "(pcVar6 + 0xe)" ( (binary_expression "pcVar6 + 0xe" identifier + number_literal) )))) ;) (expression_statement "*(char **)(param_1 + 0x1c) = pcVar6;" (assignment_expression "*(char **)(param_1 + 0x1c) = pcVar6" (pointer_expression "*(char **)(param_1 + 0x1c)" * (cast_expression "(char **)(param_1 + 0x1c)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = identifier) ;) (break_statement "break;" break ;) })) (expression_statement "pcVar6 = pcVar6 + 1;" (assignment_expression "pcVar6 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (expression_statement "cVar2 = *pcVar6;" (assignment_expression "cVar2 = *pcVar6" identifier = (pointer_expression "*pcVar6" * identifier)) ;) })) })) (if_statement "if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }" if (parenthesized_expression "(*(int *)(param_1 + 0x24) == 0)" ( (binary_expression "*(int *)(param_1 + 0x24) == 0" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }" { (expression_statement "cVar2 = *(char *)(param_1 + 0x60);" (assignment_expression "cVar2 = *(char *)(param_1 + 0x60)" identifier = (pointer_expression "*(char *)(param_1 + 0x60)" * (cast_expression "(char *)(param_1 + 0x60)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ;) (while_statement "while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }" while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }" { (expression_statement "iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);" (assignment_expression "iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b)" identifier = (call_expression "FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b)" identifier (argument_list "("Content-Transfer-Encoding: ",pcVar4,0x1b)" ( (string_literal ""Content-Transfer-Encoding: "" " string_content ") , identifier , number_literal )))) ;) (if_statement "if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }" { (expression_statement "pcVar4 = strdup(pcVar4 + 0x1b);" (assignment_expression "pcVar4 = strdup(pcVar4 + 0x1b)" identifier = (call_expression "strdup(pcVar4 + 0x1b)" identifier (argument_list "(pcVar4 + 0x1b)" ( (binary_expression "pcVar4 + 0x1b" identifier + number_literal) )))) ;) (expression_statement "*(char **)(param_1 + 0x24) = pcVar4;" (assignment_expression "*(char **)(param_1 + 0x24) = pcVar4" (pointer_expression "*(char **)(param_1 + 0x24)" * (cast_expression "(char **)(param_1 + 0x24)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = identifier) ;) (break_statement "break;" break ;) })) (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;) (expression_statement "cVar2 = *pcVar4;" (assignment_expression "cVar2 = *pcVar4" identifier = (pointer_expression "*pcVar4" * identifier)) ;) })) })) }) (else_clause "else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }" else (compound_statement "{\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }" { (if_statement "if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }" if (parenthesized_expression "(*(int *)(param_1 + 0x18) == 0)" ( (binary_expression "*(int *)(param_1 + 0x18) == 0" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          FUN_000244c0();\n        }" { (expression_statement "FUN_000244c0();" (call_expression "FUN_000244c0()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }" if (parenthesized_expression "(*(int *)(param_1 + 0x20) == 0)" ( (binary_expression "*(int *)(param_1 + 0x20) == 0" (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          FUN_000244c0();\n        }" { (expression_statement "FUN_000244c0();" (call_expression "FUN_000244c0()" identifier (argument_list "()" ( ))) ;) })) }))) (expression_statement "*param_2 = iVar7 + 2 + *param_2;" (assignment_expression "*param_2 = iVar7 + 2 + *param_2" (pointer_expression "*param_2" * identifier) = (binary_expression "iVar7 + 2 + *param_2" (binary_expression "iVar7 + 2" identifier + number_literal) + (pointer_expression "*param_2" * identifier))) ;) (return_statement "return 1;" return number_literal ;) })) }))))) (labeled_statement "LAB_00024670:\n  *(undefined4 *)(param_1 + 0x50) = 0;" statement_identifier : (expression_statement "*(undefined4 *)(param_1 + 0x50) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = number_literal) ;)) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */\n/* WARNING: Enum "gnutls_pk_algorithm_t": Some values do not have unique names */\n/* WARNING: Enum "gnutls_certificate_type_t": Some values do not have unique names */\n\nint __regparm3 process_multipart_headers(MHD_PostProcessor *pp,size_t *ioffptr,PP_State next_state)\n\n{\n  size_t sVar1;\n  char cVar2;\n  size_t sVar3;\n  size_t sVar4;\n  MHD_PostProcessor *str2;\n  int iVar5;\n  char *pcVar6;\n  size_t sVar7;\n  MHD_PostProcessor *str2_00;\n  \n  str2 = pp + 1;\n  sVar3 = pp->buffer_pos;\n  sVar4 = pp->buffer_size;\n  if (sVar3 == 0) {\n    if (sVar4 != 0) {\n      return 0;\n    }\n  }\n  else if ((*(char *)&pp[1].connection == '\n') || (*(char *)&pp[1].connection == '\r')) {\n    if (sVar4 != 0) {\n      pp->skip_rn = RN_Full;\n      pp->state = next_state;\n      return 1;\n    }\n  }\n  else {\n    sVar1 = 0;\n    do {\n      sVar7 = sVar1;\n      sVar1 = sVar7 + 1;\n      if (sVar1 == sVar3) {\n        if (sVar3 != sVar4) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n    } while ((pp[1].xbuf[sVar7 - 0x27] != '\r') && (pp[1].xbuf[sVar7 - 0x27] != '\n'));\n    if (sVar1 != sVar4) {\n      if (str2->xbuf[sVar7 - 0x27] == '\r') {\n        pp->skip_rn = RN_OptN;\n      }\n      str2->xbuf[sVar7 - 0x27] = '\0';\n      iVar5 = MHD_str_equal_caseless_n_("Content-disposition: ",(char *)str2,0x15);\n      if (iVar5 == 0) {\n        if (pp->content_type == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          str2_00 = str2;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-type: ",(char *)str2_00,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2_00->encoding + 2));\n              pp->content_type = pcVar6;\n              break;\n            }\n            str2_00 = (MHD_PostProcessor *)((int)&str2_00->connection + 1);\n            cVar2 = *(char *)&str2_00->connection;\n          }\n        }\n        if (pp->content_transfer_encoding == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-Transfer-Encoding: ",(char *)str2,0x1b);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2->content_name + 3));\n              pp->content_transfer_encoding = pcVar6;\n              break;\n            }\n            str2 = (MHD_PostProcessor *)((int)&str2->connection + 1);\n            cVar2 = *(char *)&str2->connection;\n          }\n        }\n      }\n      else {\n        pcVar6 = (char *)((int)&pp[1].nested_boundary + 1);\n        if (pp->content_name == (char *)0x0) {\n          try_get_value(pcVar6,"name",&pp->content_name);\n        }\n        if (pp->content_filename == (char *)0x0) {\n          try_get_value(pcVar6,"filename",&pp->content_filename);\n        }\n      }\n      *ioffptr = sVar7 + 2 + *ioffptr;\n      return 1;\n    }\n  }\nLAB_00024670:\n  pp->state = PP_Error;\n  return 0;\n}\n\n" comment comment comment comment (function_definition "int __regparm3 process_multipart_headers(MHD_PostProcessor *pp,size_t *ioffptr,PP_State next_state)\n\n{\n  size_t sVar1;\n  char cVar2;\n  size_t sVar3;\n  size_t sVar4;\n  MHD_PostProcessor *str2;\n  int iVar5;\n  char *pcVar6;\n  size_t sVar7;\n  MHD_PostProcessor *str2_00;\n  \n  str2 = pp + 1;\n  sVar3 = pp->buffer_pos;\n  sVar4 = pp->buffer_size;\n  if (sVar3 == 0) {\n    if (sVar4 != 0) {\n      return 0;\n    }\n  }\n  else if ((*(char *)&pp[1].connection == '\n') || (*(char *)&pp[1].connection == '\r')) {\n    if (sVar4 != 0) {\n      pp->skip_rn = RN_Full;\n      pp->state = next_state;\n      return 1;\n    }\n  }\n  else {\n    sVar1 = 0;\n    do {\n      sVar7 = sVar1;\n      sVar1 = sVar7 + 1;\n      if (sVar1 == sVar3) {\n        if (sVar3 != sVar4) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n    } while ((pp[1].xbuf[sVar7 - 0x27] != '\r') && (pp[1].xbuf[sVar7 - 0x27] != '\n'));\n    if (sVar1 != sVar4) {\n      if (str2->xbuf[sVar7 - 0x27] == '\r') {\n        pp->skip_rn = RN_OptN;\n      }\n      str2->xbuf[sVar7 - 0x27] = '\0';\n      iVar5 = MHD_str_equal_caseless_n_("Content-disposition: ",(char *)str2,0x15);\n      if (iVar5 == 0) {\n        if (pp->content_type == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          str2_00 = str2;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-type: ",(char *)str2_00,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2_00->encoding + 2));\n              pp->content_type = pcVar6;\n              break;\n            }\n            str2_00 = (MHD_PostProcessor *)((int)&str2_00->connection + 1);\n            cVar2 = *(char *)&str2_00->connection;\n          }\n        }\n        if (pp->content_transfer_encoding == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-Transfer-Encoding: ",(char *)str2,0x1b);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2->content_name + 3));\n              pp->content_transfer_encoding = pcVar6;\n              break;\n            }\n            str2 = (MHD_PostProcessor *)((int)&str2->connection + 1);\n            cVar2 = *(char *)&str2->connection;\n          }\n        }\n      }\n      else {\n        pcVar6 = (char *)((int)&pp[1].nested_boundary + 1);\n        if (pp->content_name == (char *)0x0) {\n          try_get_value(pcVar6,"name",&pp->content_name);\n        }\n        if (pp->content_filename == (char *)0x0) {\n          try_get_value(pcVar6,"filename",&pp->content_filename);\n        }\n      }\n      *ioffptr = sVar7 + 2 + *ioffptr;\n      return 1;\n    }\n  }\nLAB_00024670:\n  pp->state = PP_Error;\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "process_multipart_headers(MHD_PostProcessor *pp,size_t *ioffptr,PP_State next_state)" identifier (parameter_list "(MHD_PostProcessor *pp,size_t *ioffptr,PP_State next_state)" ( (parameter_declaration "MHD_PostProcessor *pp" type_identifier (pointer_declarator "*pp" * identifier)) , (parameter_declaration "size_t *ioffptr" primitive_type (pointer_declarator "*ioffptr" * identifier)) , (parameter_declaration "PP_State next_state" type_identifier identifier) ))) (compound_statement "{\n  size_t sVar1;\n  char cVar2;\n  size_t sVar3;\n  size_t sVar4;\n  MHD_PostProcessor *str2;\n  int iVar5;\n  char *pcVar6;\n  size_t sVar7;\n  MHD_PostProcessor *str2_00;\n  \n  str2 = pp + 1;\n  sVar3 = pp->buffer_pos;\n  sVar4 = pp->buffer_size;\n  if (sVar3 == 0) {\n    if (sVar4 != 0) {\n      return 0;\n    }\n  }\n  else if ((*(char *)&pp[1].connection == '\n') || (*(char *)&pp[1].connection == '\r')) {\n    if (sVar4 != 0) {\n      pp->skip_rn = RN_Full;\n      pp->state = next_state;\n      return 1;\n    }\n  }\n  else {\n    sVar1 = 0;\n    do {\n      sVar7 = sVar1;\n      sVar1 = sVar7 + 1;\n      if (sVar1 == sVar3) {\n        if (sVar3 != sVar4) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n    } while ((pp[1].xbuf[sVar7 - 0x27] != '\r') && (pp[1].xbuf[sVar7 - 0x27] != '\n'));\n    if (sVar1 != sVar4) {\n      if (str2->xbuf[sVar7 - 0x27] == '\r') {\n        pp->skip_rn = RN_OptN;\n      }\n      str2->xbuf[sVar7 - 0x27] = '\0';\n      iVar5 = MHD_str_equal_caseless_n_("Content-disposition: ",(char *)str2,0x15);\n      if (iVar5 == 0) {\n        if (pp->content_type == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          str2_00 = str2;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-type: ",(char *)str2_00,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2_00->encoding + 2));\n              pp->content_type = pcVar6;\n              break;\n            }\n            str2_00 = (MHD_PostProcessor *)((int)&str2_00->connection + 1);\n            cVar2 = *(char *)&str2_00->connection;\n          }\n        }\n        if (pp->content_transfer_encoding == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-Transfer-Encoding: ",(char *)str2,0x1b);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2->content_name + 3));\n              pp->content_transfer_encoding = pcVar6;\n              break;\n            }\n            str2 = (MHD_PostProcessor *)((int)&str2->connection + 1);\n            cVar2 = *(char *)&str2->connection;\n          }\n        }\n      }\n      else {\n        pcVar6 = (char *)((int)&pp[1].nested_boundary + 1);\n        if (pp->content_name == (char *)0x0) {\n          try_get_value(pcVar6,"name",&pp->content_name);\n        }\n        if (pp->content_filename == (char *)0x0) {\n          try_get_value(pcVar6,"filename",&pp->content_filename);\n        }\n      }\n      *ioffptr = sVar7 + 2 + *ioffptr;\n      return 1;\n    }\n  }\nLAB_00024670:\n  pp->state = PP_Error;\n  return 0;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "MHD_PostProcessor *str2;" type_identifier (pointer_declarator "*str2" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "size_t sVar7;" primitive_type identifier ;) (declaration "MHD_PostProcessor *str2_00;" type_identifier (pointer_declarator "*str2_00" * identifier) ;) (expression_statement "str2 = pp + 1;" (assignment_expression "str2 = pp + 1" identifier = (binary_expression "pp + 1" identifier + number_literal)) ;) (expression_statement "sVar3 = pp->buffer_pos;" (assignment_expression "sVar3 = pp->buffer_pos" identifier = (field_expression "pp->buffer_pos" identifier -> field_identifier)) ;) (expression_statement "sVar4 = pp->buffer_size;" (assignment_expression "sVar4 = pp->buffer_size" identifier = (field_expression "pp->buffer_size" identifier -> field_identifier)) ;) (if_statement "if (sVar3 == 0) {\n    if (sVar4 != 0) {\n      return 0;\n    }\n  }\n  else if ((*(char *)&pp[1].connection == '\n') || (*(char *)&pp[1].connection == '\r')) {\n    if (sVar4 != 0) {\n      pp->skip_rn = RN_Full;\n      pp->state = next_state;\n      return 1;\n    }\n  }\n  else {\n    sVar1 = 0;\n    do {\n      sVar7 = sVar1;\n      sVar1 = sVar7 + 1;\n      if (sVar1 == sVar3) {\n        if (sVar3 != sVar4) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n    } while ((pp[1].xbuf[sVar7 - 0x27] != '\r') && (pp[1].xbuf[sVar7 - 0x27] != '\n'));\n    if (sVar1 != sVar4) {\n      if (str2->xbuf[sVar7 - 0x27] == '\r') {\n        pp->skip_rn = RN_OptN;\n      }\n      str2->xbuf[sVar7 - 0x27] = '\0';\n      iVar5 = MHD_str_equal_caseless_n_("Content-disposition: ",(char *)str2,0x15);\n      if (iVar5 == 0) {\n        if (pp->content_type == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          str2_00 = str2;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-type: ",(char *)str2_00,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2_00->encoding + 2));\n              pp->content_type = pcVar6;\n              break;\n            }\n            str2_00 = (MHD_PostProcessor *)((int)&str2_00->connection + 1);\n            cVar2 = *(char *)&str2_00->connection;\n          }\n        }\n        if (pp->content_transfer_encoding == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-Transfer-Encoding: ",(char *)str2,0x1b);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2->content_name + 3));\n              pp->content_transfer_encoding = pcVar6;\n              break;\n            }\n            str2 = (MHD_PostProcessor *)((int)&str2->connection + 1);\n            cVar2 = *(char *)&str2->connection;\n          }\n        }\n      }\n      else {\n        pcVar6 = (char *)((int)&pp[1].nested_boundary + 1);\n        if (pp->content_name == (char *)0x0) {\n          try_get_value(pcVar6,"name",&pp->content_name);\n        }\n        if (pp->content_filename == (char *)0x0) {\n          try_get_value(pcVar6,"filename",&pp->content_filename);\n        }\n      }\n      *ioffptr = sVar7 + 2 + *ioffptr;\n      return 1;\n    }\n  }" if (parenthesized_expression "(sVar3 == 0)" ( (binary_expression "sVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    if (sVar4 != 0) {\n      return 0;\n    }\n  }" { (if_statement "if (sVar4 != 0) {\n      return 0;\n    }" if (parenthesized_expression "(sVar4 != 0)" ( (binary_expression "sVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if ((*(char *)&pp[1].connection == '\n') || (*(char *)&pp[1].connection == '\r')) {\n    if (sVar4 != 0) {\n      pp->skip_rn = RN_Full;\n      pp->state = next_state;\n      return 1;\n    }\n  }\n  else {\n    sVar1 = 0;\n    do {\n      sVar7 = sVar1;\n      sVar1 = sVar7 + 1;\n      if (sVar1 == sVar3) {\n        if (sVar3 != sVar4) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n    } while ((pp[1].xbuf[sVar7 - 0x27] != '\r') && (pp[1].xbuf[sVar7 - 0x27] != '\n'));\n    if (sVar1 != sVar4) {\n      if (str2->xbuf[sVar7 - 0x27] == '\r') {\n        pp->skip_rn = RN_OptN;\n      }\n      str2->xbuf[sVar7 - 0x27] = '\0';\n      iVar5 = MHD_str_equal_caseless_n_("Content-disposition: ",(char *)str2,0x15);\n      if (iVar5 == 0) {\n        if (pp->content_type == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          str2_00 = str2;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-type: ",(char *)str2_00,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2_00->encoding + 2));\n              pp->content_type = pcVar6;\n              break;\n            }\n            str2_00 = (MHD_PostProcessor *)((int)&str2_00->connection + 1);\n            cVar2 = *(char *)&str2_00->connection;\n          }\n        }\n        if (pp->content_transfer_encoding == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-Transfer-Encoding: ",(char *)str2,0x1b);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2->content_name + 3));\n              pp->content_transfer_encoding = pcVar6;\n              break;\n            }\n            str2 = (MHD_PostProcessor *)((int)&str2->connection + 1);\n            cVar2 = *(char *)&str2->connection;\n          }\n        }\n      }\n      else {\n        pcVar6 = (char *)((int)&pp[1].nested_boundary + 1);\n        if (pp->content_name == (char *)0x0) {\n          try_get_value(pcVar6,"name",&pp->content_name);\n        }\n        if (pp->content_filename == (char *)0x0) {\n          try_get_value(pcVar6,"filename",&pp->content_filename);\n        }\n      }\n      *ioffptr = sVar7 + 2 + *ioffptr;\n      return 1;\n    }\n  }" else (if_statement "if ((*(char *)&pp[1].connection == '\n') || (*(char *)&pp[1].connection == '\r')) {\n    if (sVar4 != 0) {\n      pp->skip_rn = RN_Full;\n      pp->state = next_state;\n      return 1;\n    }\n  }\n  else {\n    sVar1 = 0;\n    do {\n      sVar7 = sVar1;\n      sVar1 = sVar7 + 1;\n      if (sVar1 == sVar3) {\n        if (sVar3 != sVar4) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n    } while ((pp[1].xbuf[sVar7 - 0x27] != '\r') && (pp[1].xbuf[sVar7 - 0x27] != '\n'));\n    if (sVar1 != sVar4) {\n      if (str2->xbuf[sVar7 - 0x27] == '\r') {\n        pp->skip_rn = RN_OptN;\n      }\n      str2->xbuf[sVar7 - 0x27] = '\0';\n      iVar5 = MHD_str_equal_caseless_n_("Content-disposition: ",(char *)str2,0x15);\n      if (iVar5 == 0) {\n        if (pp->content_type == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          str2_00 = str2;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-type: ",(char *)str2_00,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2_00->encoding + 2));\n              pp->content_type = pcVar6;\n              break;\n            }\n            str2_00 = (MHD_PostProcessor *)((int)&str2_00->connection + 1);\n            cVar2 = *(char *)&str2_00->connection;\n          }\n        }\n        if (pp->content_transfer_encoding == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-Transfer-Encoding: ",(char *)str2,0x1b);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2->content_name + 3));\n              pp->content_transfer_encoding = pcVar6;\n              break;\n            }\n            str2 = (MHD_PostProcessor *)((int)&str2->connection + 1);\n            cVar2 = *(char *)&str2->connection;\n          }\n        }\n      }\n      else {\n        pcVar6 = (char *)((int)&pp[1].nested_boundary + 1);\n        if (pp->content_name == (char *)0x0) {\n          try_get_value(pcVar6,"name",&pp->content_name);\n        }\n        if (pp->content_filename == (char *)0x0) {\n          try_get_value(pcVar6,"filename",&pp->content_filename);\n        }\n      }\n      *ioffptr = sVar7 + 2 + *ioffptr;\n      return 1;\n    }\n  }" if (parenthesized_expression "((*(char *)&pp[1].connection == '\n') || (*(char *)&pp[1].connection == '\r'))" ( (binary_expression "(*(char *)&pp[1].connection == '\n') || (*(char *)&pp[1].connection == '\r')" (parenthesized_expression "(*(char *)&pp[1].connection == '\n')" ( (binary_expression "*(char *)&pp[1].connection == '\n'" (pointer_expression "*(char *)&pp[1].connection" * (cast_expression "(char *)&pp[1].connection" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pp[1].connection" & (field_expression "pp[1].connection" (subscript_expression "pp[1]" identifier [ number_literal ]) . field_identifier)))) == (char_literal "'\n'" ' escape_sequence ')) )) || (parenthesized_expression "(*(char *)&pp[1].connection == '\r')" ( (binary_expression "*(char *)&pp[1].connection == '\r'" (pointer_expression "*(char *)&pp[1].connection" * (cast_expression "(char *)&pp[1].connection" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pp[1].connection" & (field_expression "pp[1].connection" (subscript_expression "pp[1]" identifier [ number_literal ]) . field_identifier)))) == (char_literal "'\r'" ' escape_sequence ')) ))) )) (compound_statement "{\n    if (sVar4 != 0) {\n      pp->skip_rn = RN_Full;\n      pp->state = next_state;\n      return 1;\n    }\n  }" { (if_statement "if (sVar4 != 0) {\n      pp->skip_rn = RN_Full;\n      pp->state = next_state;\n      return 1;\n    }" if (parenthesized_expression "(sVar4 != 0)" ( (binary_expression "sVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      pp->skip_rn = RN_Full;\n      pp->state = next_state;\n      return 1;\n    }" { (expression_statement "pp->skip_rn = RN_Full;" (assignment_expression "pp->skip_rn = RN_Full" (field_expression "pp->skip_rn" identifier -> field_identifier) = identifier) ;) (expression_statement "pp->state = next_state;" (assignment_expression "pp->state = next_state" (field_expression "pp->state" identifier -> field_identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else {\n    sVar1 = 0;\n    do {\n      sVar7 = sVar1;\n      sVar1 = sVar7 + 1;\n      if (sVar1 == sVar3) {\n        if (sVar3 != sVar4) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n    } while ((pp[1].xbuf[sVar7 - 0x27] != '\r') && (pp[1].xbuf[sVar7 - 0x27] != '\n'));\n    if (sVar1 != sVar4) {\n      if (str2->xbuf[sVar7 - 0x27] == '\r') {\n        pp->skip_rn = RN_OptN;\n      }\n      str2->xbuf[sVar7 - 0x27] = '\0';\n      iVar5 = MHD_str_equal_caseless_n_("Content-disposition: ",(char *)str2,0x15);\n      if (iVar5 == 0) {\n        if (pp->content_type == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          str2_00 = str2;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-type: ",(char *)str2_00,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2_00->encoding + 2));\n              pp->content_type = pcVar6;\n              break;\n            }\n            str2_00 = (MHD_PostProcessor *)((int)&str2_00->connection + 1);\n            cVar2 = *(char *)&str2_00->connection;\n          }\n        }\n        if (pp->content_transfer_encoding == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-Transfer-Encoding: ",(char *)str2,0x1b);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2->content_name + 3));\n              pp->content_transfer_encoding = pcVar6;\n              break;\n            }\n            str2 = (MHD_PostProcessor *)((int)&str2->connection + 1);\n            cVar2 = *(char *)&str2->connection;\n          }\n        }\n      }\n      else {\n        pcVar6 = (char *)((int)&pp[1].nested_boundary + 1);\n        if (pp->content_name == (char *)0x0) {\n          try_get_value(pcVar6,"name",&pp->content_name);\n        }\n        if (pp->content_filename == (char *)0x0) {\n          try_get_value(pcVar6,"filename",&pp->content_filename);\n        }\n      }\n      *ioffptr = sVar7 + 2 + *ioffptr;\n      return 1;\n    }\n  }" else (compound_statement "{\n    sVar1 = 0;\n    do {\n      sVar7 = sVar1;\n      sVar1 = sVar7 + 1;\n      if (sVar1 == sVar3) {\n        if (sVar3 != sVar4) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n    } while ((pp[1].xbuf[sVar7 - 0x27] != '\r') && (pp[1].xbuf[sVar7 - 0x27] != '\n'));\n    if (sVar1 != sVar4) {\n      if (str2->xbuf[sVar7 - 0x27] == '\r') {\n        pp->skip_rn = RN_OptN;\n      }\n      str2->xbuf[sVar7 - 0x27] = '\0';\n      iVar5 = MHD_str_equal_caseless_n_("Content-disposition: ",(char *)str2,0x15);\n      if (iVar5 == 0) {\n        if (pp->content_type == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          str2_00 = str2;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-type: ",(char *)str2_00,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2_00->encoding + 2));\n              pp->content_type = pcVar6;\n              break;\n            }\n            str2_00 = (MHD_PostProcessor *)((int)&str2_00->connection + 1);\n            cVar2 = *(char *)&str2_00->connection;\n          }\n        }\n        if (pp->content_transfer_encoding == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-Transfer-Encoding: ",(char *)str2,0x1b);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2->content_name + 3));\n              pp->content_transfer_encoding = pcVar6;\n              break;\n            }\n            str2 = (MHD_PostProcessor *)((int)&str2->connection + 1);\n            cVar2 = *(char *)&str2->connection;\n          }\n        }\n      }\n      else {\n        pcVar6 = (char *)((int)&pp[1].nested_boundary + 1);\n        if (pp->content_name == (char *)0x0) {\n          try_get_value(pcVar6,"name",&pp->content_name);\n        }\n        if (pp->content_filename == (char *)0x0) {\n          try_get_value(pcVar6,"filename",&pp->content_filename);\n        }\n      }\n      *ioffptr = sVar7 + 2 + *ioffptr;\n      return 1;\n    }\n  }" { (expression_statement "sVar1 = 0;" (assignment_expression "sVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n      sVar7 = sVar1;\n      sVar1 = sVar7 + 1;\n      if (sVar1 == sVar3) {\n        if (sVar3 != sVar4) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n    } while ((pp[1].xbuf[sVar7 - 0x27] != '\r') && (pp[1].xbuf[sVar7 - 0x27] != '\n'));" do (compound_statement "{\n      sVar7 = sVar1;\n      sVar1 = sVar7 + 1;\n      if (sVar1 == sVar3) {\n        if (sVar3 != sVar4) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n    }" { (expression_statement "sVar7 = sVar1;" (assignment_expression "sVar7 = sVar1" identifier = identifier) ;) (expression_statement "sVar1 = sVar7 + 1;" (assignment_expression "sVar1 = sVar7 + 1" identifier = (binary_expression "sVar7 + 1" identifier + number_literal)) ;) (if_statement "if (sVar1 == sVar3) {\n        if (sVar3 != sVar4) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }" if (parenthesized_expression "(sVar1 == sVar3)" ( (binary_expression "sVar1 == sVar3" identifier == identifier) )) (compound_statement "{\n        if (sVar3 != sVar4) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }" { (if_statement "if (sVar3 != sVar4) {\n          return 0;\n        }" if (parenthesized_expression "(sVar3 != sVar4)" ( (binary_expression "sVar3 != sVar4" identifier != identifier) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (goto_statement "goto LAB_00024670;" goto statement_identifier ;) })) }) while (parenthesized_expression "((pp[1].xbuf[sVar7 - 0x27] != '\r') && (pp[1].xbuf[sVar7 - 0x27] != '\n'))" ( (binary_expression "(pp[1].xbuf[sVar7 - 0x27] != '\r') && (pp[1].xbuf[sVar7 - 0x27] != '\n')" (parenthesized_expression "(pp[1].xbuf[sVar7 - 0x27] != '\r')" ( (binary_expression "pp[1].xbuf[sVar7 - 0x27] != '\r'" (subscript_expression "pp[1].xbuf[sVar7 - 0x27]" (field_expression "pp[1].xbuf" (subscript_expression "pp[1]" identifier [ number_literal ]) . field_identifier) [ (binary_expression "sVar7 - 0x27" identifier - number_literal) ]) != (char_literal "'\r'" ' escape_sequence ')) )) && (parenthesized_expression "(pp[1].xbuf[sVar7 - 0x27] != '\n')" ( (binary_expression "pp[1].xbuf[sVar7 - 0x27] != '\n'" (subscript_expression "pp[1].xbuf[sVar7 - 0x27]" (field_expression "pp[1].xbuf" (subscript_expression "pp[1]" identifier [ number_literal ]) . field_identifier) [ (binary_expression "sVar7 - 0x27" identifier - number_literal) ]) != (char_literal "'\n'" ' escape_sequence ')) ))) )) ;) (if_statement "if (sVar1 != sVar4) {\n      if (str2->xbuf[sVar7 - 0x27] == '\r') {\n        pp->skip_rn = RN_OptN;\n      }\n      str2->xbuf[sVar7 - 0x27] = '\0';\n      iVar5 = MHD_str_equal_caseless_n_("Content-disposition: ",(char *)str2,0x15);\n      if (iVar5 == 0) {\n        if (pp->content_type == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          str2_00 = str2;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-type: ",(char *)str2_00,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2_00->encoding + 2));\n              pp->content_type = pcVar6;\n              break;\n            }\n            str2_00 = (MHD_PostProcessor *)((int)&str2_00->connection + 1);\n            cVar2 = *(char *)&str2_00->connection;\n          }\n        }\n        if (pp->content_transfer_encoding == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-Transfer-Encoding: ",(char *)str2,0x1b);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2->content_name + 3));\n              pp->content_transfer_encoding = pcVar6;\n              break;\n            }\n            str2 = (MHD_PostProcessor *)((int)&str2->connection + 1);\n            cVar2 = *(char *)&str2->connection;\n          }\n        }\n      }\n      else {\n        pcVar6 = (char *)((int)&pp[1].nested_boundary + 1);\n        if (pp->content_name == (char *)0x0) {\n          try_get_value(pcVar6,"name",&pp->content_name);\n        }\n        if (pp->content_filename == (char *)0x0) {\n          try_get_value(pcVar6,"filename",&pp->content_filename);\n        }\n      }\n      *ioffptr = sVar7 + 2 + *ioffptr;\n      return 1;\n    }" if (parenthesized_expression "(sVar1 != sVar4)" ( (binary_expression "sVar1 != sVar4" identifier != identifier) )) (compound_statement "{\n      if (str2->xbuf[sVar7 - 0x27] == '\r') {\n        pp->skip_rn = RN_OptN;\n      }\n      str2->xbuf[sVar7 - 0x27] = '\0';\n      iVar5 = MHD_str_equal_caseless_n_("Content-disposition: ",(char *)str2,0x15);\n      if (iVar5 == 0) {\n        if (pp->content_type == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          str2_00 = str2;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-type: ",(char *)str2_00,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2_00->encoding + 2));\n              pp->content_type = pcVar6;\n              break;\n            }\n            str2_00 = (MHD_PostProcessor *)((int)&str2_00->connection + 1);\n            cVar2 = *(char *)&str2_00->connection;\n          }\n        }\n        if (pp->content_transfer_encoding == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-Transfer-Encoding: ",(char *)str2,0x1b);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2->content_name + 3));\n              pp->content_transfer_encoding = pcVar6;\n              break;\n            }\n            str2 = (MHD_PostProcessor *)((int)&str2->connection + 1);\n            cVar2 = *(char *)&str2->connection;\n          }\n        }\n      }\n      else {\n        pcVar6 = (char *)((int)&pp[1].nested_boundary + 1);\n        if (pp->content_name == (char *)0x0) {\n          try_get_value(pcVar6,"name",&pp->content_name);\n        }\n        if (pp->content_filename == (char *)0x0) {\n          try_get_value(pcVar6,"filename",&pp->content_filename);\n        }\n      }\n      *ioffptr = sVar7 + 2 + *ioffptr;\n      return 1;\n    }" { (if_statement "if (str2->xbuf[sVar7 - 0x27] == '\r') {\n        pp->skip_rn = RN_OptN;\n      }" if (parenthesized_expression "(str2->xbuf[sVar7 - 0x27] == '\r')" ( (binary_expression "str2->xbuf[sVar7 - 0x27] == '\r'" (subscript_expression "str2->xbuf[sVar7 - 0x27]" (field_expression "str2->xbuf" identifier -> field_identifier) [ (binary_expression "sVar7 - 0x27" identifier - number_literal) ]) == (char_literal "'\r'" ' escape_sequence ')) )) (compound_statement "{\n        pp->skip_rn = RN_OptN;\n      }" { (expression_statement "pp->skip_rn = RN_OptN;" (assignment_expression "pp->skip_rn = RN_OptN" (field_expression "pp->skip_rn" identifier -> field_identifier) = identifier) ;) })) (expression_statement "str2->xbuf[sVar7 - 0x27] = '\0';" (assignment_expression "str2->xbuf[sVar7 - 0x27] = '\0'" (subscript_expression "str2->xbuf[sVar7 - 0x27]" (field_expression "str2->xbuf" identifier -> field_identifier) [ (binary_expression "sVar7 - 0x27" identifier - number_literal) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar5 = MHD_str_equal_caseless_n_("Content-disposition: ",(char *)str2,0x15);" (assignment_expression "iVar5 = MHD_str_equal_caseless_n_("Content-disposition: ",(char *)str2,0x15)" identifier = (call_expression "MHD_str_equal_caseless_n_("Content-disposition: ",(char *)str2,0x15)" identifier (argument_list "("Content-disposition: ",(char *)str2,0x15)" ( (string_literal ""Content-disposition: "" " string_content ") , (cast_expression "(char *)str2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , number_literal )))) ;) (if_statement "if (iVar5 == 0) {\n        if (pp->content_type == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          str2_00 = str2;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-type: ",(char *)str2_00,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2_00->encoding + 2));\n              pp->content_type = pcVar6;\n              break;\n            }\n            str2_00 = (MHD_PostProcessor *)((int)&str2_00->connection + 1);\n            cVar2 = *(char *)&str2_00->connection;\n          }\n        }\n        if (pp->content_transfer_encoding == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-Transfer-Encoding: ",(char *)str2,0x1b);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2->content_name + 3));\n              pp->content_transfer_encoding = pcVar6;\n              break;\n            }\n            str2 = (MHD_PostProcessor *)((int)&str2->connection + 1);\n            cVar2 = *(char *)&str2->connection;\n          }\n        }\n      }\n      else {\n        pcVar6 = (char *)((int)&pp[1].nested_boundary + 1);\n        if (pp->content_name == (char *)0x0) {\n          try_get_value(pcVar6,"name",&pp->content_name);\n        }\n        if (pp->content_filename == (char *)0x0) {\n          try_get_value(pcVar6,"filename",&pp->content_filename);\n        }\n      }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n        if (pp->content_type == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          str2_00 = str2;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-type: ",(char *)str2_00,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2_00->encoding + 2));\n              pp->content_type = pcVar6;\n              break;\n            }\n            str2_00 = (MHD_PostProcessor *)((int)&str2_00->connection + 1);\n            cVar2 = *(char *)&str2_00->connection;\n          }\n        }\n        if (pp->content_transfer_encoding == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-Transfer-Encoding: ",(char *)str2,0x1b);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2->content_name + 3));\n              pp->content_transfer_encoding = pcVar6;\n              break;\n            }\n            str2 = (MHD_PostProcessor *)((int)&str2->connection + 1);\n            cVar2 = *(char *)&str2->connection;\n          }\n        }\n      }" { (if_statement "if (pp->content_type == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          str2_00 = str2;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-type: ",(char *)str2_00,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2_00->encoding + 2));\n              pp->content_type = pcVar6;\n              break;\n            }\n            str2_00 = (MHD_PostProcessor *)((int)&str2_00->connection + 1);\n            cVar2 = *(char *)&str2_00->connection;\n          }\n        }" if (parenthesized_expression "(pp->content_type == (char *)0x0)" ( (binary_expression "pp->content_type == (char *)0x0" (field_expression "pp->content_type" identifier -> field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          cVar2 = *(char *)&pp[1].connection;\n          str2_00 = str2;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-type: ",(char *)str2_00,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2_00->encoding + 2));\n              pp->content_type = pcVar6;\n              break;\n            }\n            str2_00 = (MHD_PostProcessor *)((int)&str2_00->connection + 1);\n            cVar2 = *(char *)&str2_00->connection;\n          }\n        }" { (expression_statement "cVar2 = *(char *)&pp[1].connection;" (assignment_expression "cVar2 = *(char *)&pp[1].connection" identifier = (pointer_expression "*(char *)&pp[1].connection" * (cast_expression "(char *)&pp[1].connection" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pp[1].connection" & (field_expression "pp[1].connection" (subscript_expression "pp[1]" identifier [ number_literal ]) . field_identifier))))) ;) (expression_statement "str2_00 = str2;" (assignment_expression "str2_00 = str2" identifier = identifier) ;) (while_statement "while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-type: ",(char *)str2_00,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2_00->encoding + 2));\n              pp->content_type = pcVar6;\n              break;\n            }\n            str2_00 = (MHD_PostProcessor *)((int)&str2_00->connection + 1);\n            cVar2 = *(char *)&str2_00->connection;\n          }" while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            iVar5 = MHD_str_equal_caseless_n_("Content-type: ",(char *)str2_00,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2_00->encoding + 2));\n              pp->content_type = pcVar6;\n              break;\n            }\n            str2_00 = (MHD_PostProcessor *)((int)&str2_00->connection + 1);\n            cVar2 = *(char *)&str2_00->connection;\n          }" { (expression_statement "iVar5 = MHD_str_equal_caseless_n_("Content-type: ",(char *)str2_00,0xe);" (assignment_expression "iVar5 = MHD_str_equal_caseless_n_("Content-type: ",(char *)str2_00,0xe)" identifier = (call_expression "MHD_str_equal_caseless_n_("Content-type: ",(char *)str2_00,0xe)" identifier (argument_list "("Content-type: ",(char *)str2_00,0xe)" ( (string_literal ""Content-type: "" " string_content ") , (cast_expression "(char *)str2_00" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , number_literal )))) ;) (if_statement "if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2_00->encoding + 2));\n              pp->content_type = pcVar6;\n              break;\n            }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n              pcVar6 = strdup((char *)((int)&str2_00->encoding + 2));\n              pp->content_type = pcVar6;\n              break;\n            }" { (expression_statement "pcVar6 = strdup((char *)((int)&str2_00->encoding + 2));" (assignment_expression "pcVar6 = strdup((char *)((int)&str2_00->encoding + 2))" identifier = (call_expression "strdup((char *)((int)&str2_00->encoding + 2))" identifier (argument_list "((char *)((int)&str2_00->encoding + 2))" ( (cast_expression "(char *)((int)&str2_00->encoding + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&str2_00->encoding + 2)" ( (binary_expression "(int)&str2_00->encoding + 2" (cast_expression "(int)&str2_00->encoding" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&str2_00->encoding" & (field_expression "str2_00->encoding" identifier -> field_identifier))) + number_literal) ))) )))) ;) (expression_statement "pp->content_type = pcVar6;" (assignment_expression "pp->content_type = pcVar6" (field_expression "pp->content_type" identifier -> field_identifier) = identifier) ;) (break_statement "break;" break ;) })) (expression_statement "str2_00 = (MHD_PostProcessor *)((int)&str2_00->connection + 1);" (assignment_expression "str2_00 = (MHD_PostProcessor *)((int)&str2_00->connection + 1)" identifier = (cast_expression "(MHD_PostProcessor *)((int)&str2_00->connection + 1)" ( (type_descriptor "MHD_PostProcessor *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&str2_00->connection + 1)" ( (binary_expression "(int)&str2_00->connection + 1" (cast_expression "(int)&str2_00->connection" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&str2_00->connection" & (field_expression "str2_00->connection" identifier -> field_identifier))) + number_literal) )))) ;) (expression_statement "cVar2 = *(char *)&str2_00->connection;" (assignment_expression "cVar2 = *(char *)&str2_00->connection" identifier = (pointer_expression "*(char *)&str2_00->connection" * (cast_expression "(char *)&str2_00->connection" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&str2_00->connection" & (field_expression "str2_00->connection" identifier -> field_identifier))))) ;) })) })) (if_statement "if (pp->content_transfer_encoding == (char *)0x0) {\n          cVar2 = *(char *)&pp[1].connection;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-Transfer-Encoding: ",(char *)str2,0x1b);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2->content_name + 3));\n              pp->content_transfer_encoding = pcVar6;\n              break;\n            }\n            str2 = (MHD_PostProcessor *)((int)&str2->connection + 1);\n            cVar2 = *(char *)&str2->connection;\n          }\n        }" if (parenthesized_expression "(pp->content_transfer_encoding == (char *)0x0)" ( (binary_expression "pp->content_transfer_encoding == (char *)0x0" (field_expression "pp->content_transfer_encoding" identifier -> field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          cVar2 = *(char *)&pp[1].connection;\n          while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-Transfer-Encoding: ",(char *)str2,0x1b);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2->content_name + 3));\n              pp->content_transfer_encoding = pcVar6;\n              break;\n            }\n            str2 = (MHD_PostProcessor *)((int)&str2->connection + 1);\n            cVar2 = *(char *)&str2->connection;\n          }\n        }" { (expression_statement "cVar2 = *(char *)&pp[1].connection;" (assignment_expression "cVar2 = *(char *)&pp[1].connection" identifier = (pointer_expression "*(char *)&pp[1].connection" * (cast_expression "(char *)&pp[1].connection" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pp[1].connection" & (field_expression "pp[1].connection" (subscript_expression "pp[1]" identifier [ number_literal ]) . field_identifier))))) ;) (while_statement "while (cVar2 != '\0') {\n            iVar5 = MHD_str_equal_caseless_n_("Content-Transfer-Encoding: ",(char *)str2,0x1b);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2->content_name + 3));\n              pp->content_transfer_encoding = pcVar6;\n              break;\n            }\n            str2 = (MHD_PostProcessor *)((int)&str2->connection + 1);\n            cVar2 = *(char *)&str2->connection;\n          }" while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            iVar5 = MHD_str_equal_caseless_n_("Content-Transfer-Encoding: ",(char *)str2,0x1b);\n            if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2->content_name + 3));\n              pp->content_transfer_encoding = pcVar6;\n              break;\n            }\n            str2 = (MHD_PostProcessor *)((int)&str2->connection + 1);\n            cVar2 = *(char *)&str2->connection;\n          }" { (expression_statement "iVar5 = MHD_str_equal_caseless_n_("Content-Transfer-Encoding: ",(char *)str2,0x1b);" (assignment_expression "iVar5 = MHD_str_equal_caseless_n_("Content-Transfer-Encoding: ",(char *)str2,0x1b)" identifier = (call_expression "MHD_str_equal_caseless_n_("Content-Transfer-Encoding: ",(char *)str2,0x1b)" identifier (argument_list "("Content-Transfer-Encoding: ",(char *)str2,0x1b)" ( (string_literal ""Content-Transfer-Encoding: "" " string_content ") , (cast_expression "(char *)str2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , number_literal )))) ;) (if_statement "if (iVar5 != 0) {\n              pcVar6 = strdup((char *)((int)&str2->content_name + 3));\n              pp->content_transfer_encoding = pcVar6;\n              break;\n            }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n              pcVar6 = strdup((char *)((int)&str2->content_name + 3));\n              pp->content_transfer_encoding = pcVar6;\n              break;\n            }" { (expression_statement "pcVar6 = strdup((char *)((int)&str2->content_name + 3));" (assignment_expression "pcVar6 = strdup((char *)((int)&str2->content_name + 3))" identifier = (call_expression "strdup((char *)((int)&str2->content_name + 3))" identifier (argument_list "((char *)((int)&str2->content_name + 3))" ( (cast_expression "(char *)((int)&str2->content_name + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&str2->content_name + 3)" ( (binary_expression "(int)&str2->content_name + 3" (cast_expression "(int)&str2->content_name" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&str2->content_name" & (field_expression "str2->content_name" identifier -> field_identifier))) + number_literal) ))) )))) ;) (expression_statement "pp->content_transfer_encoding = pcVar6;" (assignment_expression "pp->content_transfer_encoding = pcVar6" (field_expression "pp->content_transfer_encoding" identifier -> field_identifier) = identifier) ;) (break_statement "break;" break ;) })) (expression_statement "str2 = (MHD_PostProcessor *)((int)&str2->connection + 1);" (assignment_expression "str2 = (MHD_PostProcessor *)((int)&str2->connection + 1)" identifier = (cast_expression "(MHD_PostProcessor *)((int)&str2->connection + 1)" ( (type_descriptor "MHD_PostProcessor *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&str2->connection + 1)" ( (binary_expression "(int)&str2->connection + 1" (cast_expression "(int)&str2->connection" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&str2->connection" & (field_expression "str2->connection" identifier -> field_identifier))) + number_literal) )))) ;) (expression_statement "cVar2 = *(char *)&str2->connection;" (assignment_expression "cVar2 = *(char *)&str2->connection" identifier = (pointer_expression "*(char *)&str2->connection" * (cast_expression "(char *)&str2->connection" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&str2->connection" & (field_expression "str2->connection" identifier -> field_identifier))))) ;) })) })) }) (else_clause "else {\n        pcVar6 = (char *)((int)&pp[1].nested_boundary + 1);\n        if (pp->content_name == (char *)0x0) {\n          try_get_value(pcVar6,"name",&pp->content_name);\n        }\n        if (pp->content_filename == (char *)0x0) {\n          try_get_value(pcVar6,"filename",&pp->content_filename);\n        }\n      }" else (compound_statement "{\n        pcVar6 = (char *)((int)&pp[1].nested_boundary + 1);\n        if (pp->content_name == (char *)0x0) {\n          try_get_value(pcVar6,"name",&pp->content_name);\n        }\n        if (pp->content_filename == (char *)0x0) {\n          try_get_value(pcVar6,"filename",&pp->content_filename);\n        }\n      }" { (expression_statement "pcVar6 = (char *)((int)&pp[1].nested_boundary + 1);" (assignment_expression "pcVar6 = (char *)((int)&pp[1].nested_boundary + 1)" identifier = (cast_expression "(char *)((int)&pp[1].nested_boundary + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pp[1].nested_boundary + 1)" ( (binary_expression "(int)&pp[1].nested_boundary + 1" (cast_expression "(int)&pp[1].nested_boundary" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pp[1].nested_boundary" & (field_expression "pp[1].nested_boundary" (subscript_expression "pp[1]" identifier [ number_literal ]) . field_identifier))) + number_literal) )))) ;) (if_statement "if (pp->content_name == (char *)0x0) {\n          try_get_value(pcVar6,"name",&pp->content_name);\n        }" if (parenthesized_expression "(pp->content_name == (char *)0x0)" ( (binary_expression "pp->content_name == (char *)0x0" (field_expression "pp->content_name" identifier -> field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          try_get_value(pcVar6,"name",&pp->content_name);\n        }" { (expression_statement "try_get_value(pcVar6,"name",&pp->content_name);" (call_expression "try_get_value(pcVar6,"name",&pp->content_name)" identifier (argument_list "(pcVar6,"name",&pp->content_name)" ( identifier , (string_literal ""name"" " string_content ") , (pointer_expression "&pp->content_name" & (field_expression "pp->content_name" identifier -> field_identifier)) ))) ;) })) (if_statement "if (pp->content_filename == (char *)0x0) {\n          try_get_value(pcVar6,"filename",&pp->content_filename);\n        }" if (parenthesized_expression "(pp->content_filename == (char *)0x0)" ( (binary_expression "pp->content_filename == (char *)0x0" (field_expression "pp->content_filename" identifier -> field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          try_get_value(pcVar6,"filename",&pp->content_filename);\n        }" { (expression_statement "try_get_value(pcVar6,"filename",&pp->content_filename);" (call_expression "try_get_value(pcVar6,"filename",&pp->content_filename)" identifier (argument_list "(pcVar6,"filename",&pp->content_filename)" ( identifier , (string_literal ""filename"" " string_content ") , (pointer_expression "&pp->content_filename" & (field_expression "pp->content_filename" identifier -> field_identifier)) ))) ;) })) }))) (expression_statement "*ioffptr = sVar7 + 2 + *ioffptr;" (assignment_expression "*ioffptr = sVar7 + 2 + *ioffptr" (pointer_expression "*ioffptr" * identifier) = (binary_expression "sVar7 + 2 + *ioffptr" (binary_expression "sVar7 + 2" identifier + number_literal) + (pointer_expression "*ioffptr" * identifier))) ;) (return_statement "return 1;" return number_literal ;) })) }))))) (labeled_statement "LAB_00024670:\n  pp->state = PP_Error;" statement_identifier : (expression_statement "pp->state = PP_Error;" (assignment_expression "pp->state = PP_Error" (field_expression "pp->state" identifier -> field_identifier) = identifier) ;)) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3 FUN_00024590(int param_1,int *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  char *pcVar6;\n  int iVar7;\n  \n  pcVar4 = (char *)(param_1 + 0x60);\n  iVar5 = *(int *)(param_1 + 0x34);\n  iVar3 = *(int *)(param_1 + 0x30);\n  if (iVar5 == 0) {\n    if (iVar3 != 0) {\n      return 0;\n    }\n  }\n  else if ((*(char *)(param_1 + 0x60) == '\n') || (*(char *)(param_1 + 0x60) == '\r')) {\n    if (iVar3 != 0) {\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = 0;\n    do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));\n    if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }\n  }\nLAB_00024670:\n  *(undefined4 *)(param_1 + 0x50) = 0;\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00024590(int param_1,int *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  char *pcVar6;\n  int iVar7;\n  \n  pcVar4 = (char *)(param_1 + 0x60);\n  iVar5 = *(int *)(param_1 + 0x34);\n  iVar3 = *(int *)(param_1 + 0x30);\n  if (iVar5 == 0) {\n    if (iVar3 != 0) {\n      return 0;\n    }\n  }\n  else if ((*(char *)(param_1 + 0x60) == '\n') || (*(char *)(param_1 + 0x60) == '\r')) {\n    if (iVar3 != 0) {\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = 0;\n    do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));\n    if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }\n  }\nLAB_00024670:\n  *(undefined4 *)(param_1 + 0x50) = 0;\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00024590(int param_1,int *param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int *param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  char *pcVar6;\n  int iVar7;\n  \n  pcVar4 = (char *)(param_1 + 0x60);\n  iVar5 = *(int *)(param_1 + 0x34);\n  iVar3 = *(int *)(param_1 + 0x30);\n  if (iVar5 == 0) {\n    if (iVar3 != 0) {\n      return 0;\n    }\n  }\n  else if ((*(char *)(param_1 + 0x60) == '\n') || (*(char *)(param_1 + 0x60) == '\r')) {\n    if (iVar3 != 0) {\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = 0;\n    do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));\n    if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }\n  }\nLAB_00024670:\n  *(undefined4 *)(param_1 + 0x50) = 0;\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (expression_statement "pcVar4 = (char *)(param_1 + 0x60);" (assignment_expression "pcVar4 = (char *)(param_1 + 0x60)" identifier = (cast_expression "(char *)(param_1 + 0x60)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) ;) (expression_statement "iVar5 = *(int *)(param_1 + 0x34);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x34)" identifier = (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x30);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x30)" identifier = (pointer_expression "*(int *)(param_1 + 0x30)" * (cast_expression "(int *)(param_1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (if_statement "if (iVar5 == 0) {\n    if (iVar3 != 0) {\n      return 0;\n    }\n  }\n  else if ((*(char *)(param_1 + 0x60) == '\n') || (*(char *)(param_1 + 0x60) == '\r')) {\n    if (iVar3 != 0) {\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = 0;\n    do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));\n    if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    if (iVar3 != 0) {\n      return 0;\n    }\n  }" { (if_statement "if (iVar3 != 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if ((*(char *)(param_1 + 0x60) == '\n') || (*(char *)(param_1 + 0x60) == '\r')) {\n    if (iVar3 != 0) {\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = 0;\n    do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));\n    if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }\n  }" else (if_statement "if ((*(char *)(param_1 + 0x60) == '\n') || (*(char *)(param_1 + 0x60) == '\r')) {\n    if (iVar3 != 0) {\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = 0;\n    do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));\n    if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }\n  }" if (parenthesized_expression "((*(char *)(param_1 + 0x60) == '\n') || (*(char *)(param_1 + 0x60) == '\r'))" ( (binary_expression "(*(char *)(param_1 + 0x60) == '\n') || (*(char *)(param_1 + 0x60) == '\r')" (parenthesized_expression "(*(char *)(param_1 + 0x60) == '\n')" ( (binary_expression "*(char *)(param_1 + 0x60) == '\n'" (pointer_expression "*(char *)(param_1 + 0x60)" * (cast_expression "(char *)(param_1 + 0x60)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) == (char_literal "'\n'" ' escape_sequence ')) )) || (parenthesized_expression "(*(char *)(param_1 + 0x60) == '\r')" ( (binary_expression "*(char *)(param_1 + 0x60) == '\r'" (pointer_expression "*(char *)(param_1 + 0x60)" * (cast_expression "(char *)(param_1 + 0x60)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) == (char_literal "'\r'" ' escape_sequence ')) ))) )) (compound_statement "{\n    if (iVar3 != 0) {\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }\n  }" { (if_statement "if (iVar3 != 0) {\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x54) = 2;" (assignment_expression "*(undefined4 *)(param_1 + 0x54) = 2" (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x50) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = param_3" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else {\n    iVar1 = 0;\n    do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));\n    if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }\n  }" else (compound_statement "{\n    iVar1 = 0;\n    do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));\n    if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));" do (compound_statement "{\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    }" { (expression_statement "iVar7 = iVar1;" (assignment_expression "iVar7 = iVar1" identifier = identifier) ;) (expression_statement "iVar1 = iVar7 + 1;" (assignment_expression "iVar1 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }" if (parenthesized_expression "(iVar1 == iVar5)" ( (binary_expression "iVar1 == iVar5" identifier == identifier) )) (compound_statement "{\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }" { (if_statement "if (iVar5 != iVar3) {\n          return 0;\n        }" if (parenthesized_expression "(iVar5 != iVar3)" ( (binary_expression "iVar5 != iVar3" identifier != identifier) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (goto_statement "goto LAB_00024670;" goto statement_identifier ;) })) (expression_statement "cVar2 = *(char *)(param_1 + 0x60 + iVar1);" (assignment_expression "cVar2 = *(char *)(param_1 + 0x60 + iVar1)" identifier = (pointer_expression "*(char *)(param_1 + 0x60 + iVar1)" * (cast_expression "(char *)(param_1 + 0x60 + iVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60 + iVar1)" ( (binary_expression "param_1 + 0x60 + iVar1" (binary_expression "param_1 + 0x60" identifier + number_literal) + identifier) ))))) ;) }) while (parenthesized_expression "((cVar2 != '\r') && (cVar2 != '\n'))" ( (binary_expression "(cVar2 != '\r') && (cVar2 != '\n')" (parenthesized_expression "(cVar2 != '\r')" ( (binary_expression "cVar2 != '\r'" identifier != (char_literal "'\r'" ' escape_sequence ')) )) && (parenthesized_expression "(cVar2 != '\n')" ( (binary_expression "cVar2 != '\n'" identifier != (char_literal "'\n'" ' escape_sequence ')) ))) )) ;) (if_statement "if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }" if (parenthesized_expression "(iVar1 != iVar3)" ( (binary_expression "iVar1 != iVar3" identifier != identifier) )) (compound_statement "{\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }" { (if_statement "if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }" if (parenthesized_expression "(pcVar4[iVar1] == '\r')" ( (binary_expression "pcVar4[iVar1] == '\r'" (subscript_expression "pcVar4[iVar1]" identifier [ identifier ]) == (char_literal "'\r'" ' escape_sequence ')) )) (compound_statement "{\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }" { (expression_statement "*(undefined4 *)(param_1 + 0x54) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x54) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "pcVar4[iVar1] = '\0';" (assignment_expression "pcVar4[iVar1] = '\0'" (subscript_expression "pcVar4[iVar1]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);" (assignment_expression "iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15)" identifier = (call_expression "FUN_00021f60("Content-disposition: ",pcVar4,0x15)" identifier (argument_list "("Content-disposition: ",pcVar4,0x15)" ( (string_literal ""Content-disposition: "" " string_content ") , identifier , number_literal )))) ;) (if_statement "if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }" { (if_statement "if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }" if (parenthesized_expression "(*(int *)(param_1 + 0x1c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1c) == 0" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }" { (expression_statement "cVar2 = *(char *)(param_1 + 0x60);" (assignment_expression "cVar2 = *(char *)(param_1 + 0x60)" identifier = (pointer_expression "*(char *)(param_1 + 0x60)" * (cast_expression "(char *)(param_1 + 0x60)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ;) (expression_statement "pcVar6 = pcVar4;" (assignment_expression "pcVar6 = pcVar4" identifier = identifier) ;) (while_statement "while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }" while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }" { (expression_statement "iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);" (assignment_expression "iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe)" identifier = (call_expression "FUN_00021f60("Content-type: ",pcVar6,0xe)" identifier (argument_list "("Content-type: ",pcVar6,0xe)" ( (string_literal ""Content-type: "" " string_content ") , identifier , number_literal )))) ;) (if_statement "if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }" { (expression_statement "pcVar6 = strdup(pcVar6 + 0xe);" (assignment_expression "pcVar6 = strdup(pcVar6 + 0xe)" identifier = (call_expression "strdup(pcVar6 + 0xe)" identifier (argument_list "(pcVar6 + 0xe)" ( (binary_expression "pcVar6 + 0xe" identifier + number_literal) )))) ;) (expression_statement "*(char **)(param_1 + 0x1c) = pcVar6;" (assignment_expression "*(char **)(param_1 + 0x1c) = pcVar6" (pointer_expression "*(char **)(param_1 + 0x1c)" * (cast_expression "(char **)(param_1 + 0x1c)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = identifier) ;) (break_statement "break;" break ;) })) (expression_statement "pcVar6 = pcVar6 + 1;" (assignment_expression "pcVar6 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (expression_statement "cVar2 = *pcVar6;" (assignment_expression "cVar2 = *pcVar6" identifier = (pointer_expression "*pcVar6" * identifier)) ;) })) })) (if_statement "if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }" if (parenthesized_expression "(*(int *)(param_1 + 0x24) == 0)" ( (binary_expression "*(int *)(param_1 + 0x24) == 0" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }" { (expression_statement "cVar2 = *(char *)(param_1 + 0x60);" (assignment_expression "cVar2 = *(char *)(param_1 + 0x60)" identifier = (pointer_expression "*(char *)(param_1 + 0x60)" * (cast_expression "(char *)(param_1 + 0x60)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ;) (while_statement "while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }" while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }" { (expression_statement "iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);" (assignment_expression "iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b)" identifier = (call_expression "FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b)" identifier (argument_list "("Content-Transfer-Encoding: ",pcVar4,0x1b)" ( (string_literal ""Content-Transfer-Encoding: "" " string_content ") , identifier , number_literal )))) ;) (if_statement "if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }" { (expression_statement "pcVar4 = strdup(pcVar4 + 0x1b);" (assignment_expression "pcVar4 = strdup(pcVar4 + 0x1b)" identifier = (call_expression "strdup(pcVar4 + 0x1b)" identifier (argument_list "(pcVar4 + 0x1b)" ( (binary_expression "pcVar4 + 0x1b" identifier + number_literal) )))) ;) (expression_statement "*(char **)(param_1 + 0x24) = pcVar4;" (assignment_expression "*(char **)(param_1 + 0x24) = pcVar4" (pointer_expression "*(char **)(param_1 + 0x24)" * (cast_expression "(char **)(param_1 + 0x24)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = identifier) ;) (break_statement "break;" break ;) })) (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;) (expression_statement "cVar2 = *pcVar4;" (assignment_expression "cVar2 = *pcVar4" identifier = (pointer_expression "*pcVar4" * identifier)) ;) })) })) }) (else_clause "else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }" else (compound_statement "{\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }" { (if_statement "if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }" if (parenthesized_expression "(*(int *)(param_1 + 0x18) == 0)" ( (binary_expression "*(int *)(param_1 + 0x18) == 0" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          FUN_000244c0();\n        }" { (expression_statement "FUN_000244c0();" (call_expression "FUN_000244c0()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }" if (parenthesized_expression "(*(int *)(param_1 + 0x20) == 0)" ( (binary_expression "*(int *)(param_1 + 0x20) == 0" (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n          FUN_000244c0();\n        }" { (expression_statement "FUN_000244c0();" (call_expression "FUN_000244c0()" identifier (argument_list "()" ( ))) ;) })) }))) (expression_statement "*param_2 = iVar7 + 2 + *param_2;" (assignment_expression "*param_2 = iVar7 + 2 + *param_2" (pointer_expression "*param_2" * identifier) = (binary_expression "iVar7 + 2 + *param_2" (binary_expression "iVar7 + 2" identifier + number_literal) + (pointer_expression "*param_2" * identifier))) ;) (return_statement "return 1;" return number_literal ;) })) }))))) (labeled_statement "LAB_00024670:\n  *(undefined4 *)(param_1 + 0x50) = 0;" statement_identifier : (expression_statement "*(undefined4 *)(param_1 + 0x50) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = number_literal) ;)) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) || (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 { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (return_statement return LIT ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) ))) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (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 (subscript_expression IDENT [ IDENT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (break_statement break ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (break_statement break ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression IDENT + LIT) + (pointer_expression * IDENT))) ;) (return_statement return LIT ;) })) }))))) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;)) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_00024590(int param_1,int *param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  char *pcVar6;\n  int iVar7;\n  \n  pcVar4 = (char *)(param_1 + 0x60);\n  iVar5 = *(int *)(param_1 + 0x34);\n  iVar3 = *(int *)(param_1 + 0x30);\n  if (iVar5 == 0) {\n    if (iVar3 != 0) {\n      return 0;\n    }\n  }\n  else if ((*(char *)(param_1 + 0x60) == '\n') || (*(char *)(param_1 + 0x60) == '\r')) {\n    if (iVar3 != 0) {\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = 0;\n    do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));\n    if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }\n  }\nLAB_00024670:\n  *(undefined4 *)(param_1 + 0x50) = 0;\n  return 0;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00024590(int param_1,int *param_2,undefined4 param_3)" (identifier "FUN_00024590") (parameter_list "(int param_1,int *param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  char *pcVar6;\n  int iVar7;\n  \n  pcVar4 = (char *)(param_1 + 0x60);\n  iVar5 = *(int *)(param_1 + 0x34);\n  iVar3 = *(int *)(param_1 + 0x30);\n  if (iVar5 == 0) {\n    if (iVar3 != 0) {\n      return 0;\n    }\n  }\n  else if ((*(char *)(param_1 + 0x60) == '\n') || (*(char *)(param_1 + 0x60) == '\r')) {\n    if (iVar3 != 0) {\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = 0;\n    do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));\n    if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }\n  }\nLAB_00024670:\n  *(undefined4 *)(param_1 + 0x50) = 0;\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (expression_statement "pcVar4 = (char *)(param_1 + 0x60);" (assignment_expression "pcVar4 = (char *)(param_1 + 0x60)" (identifier "pcVar4") (= "=") (cast_expression "(char *)(param_1 + 0x60)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (; ";")) (expression_statement "iVar5 = *(int *)(param_1 + 0x34);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x34)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 0x34)" (* "*") (cast_expression "(int *)(param_1 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")"))))) (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 0x30);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x30)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0x30)" (* "*") (cast_expression "(int *)(param_1 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (if_statement "if (iVar5 == 0) {\n    if (iVar3 != 0) {\n      return 0;\n    }\n  }\n  else if ((*(char *)(param_1 + 0x60) == '\n') || (*(char *)(param_1 + 0x60) == '\r')) {\n    if (iVar3 != 0) {\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = 0;\n    do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));\n    if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }\n  }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (iVar3 != 0) {\n      return 0;\n    }\n  }" ({ "{") (if_statement "if (iVar3 != 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else if ((*(char *)(param_1 + 0x60) == '\n') || (*(char *)(param_1 + 0x60) == '\r')) {\n    if (iVar3 != 0) {\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = 0;\n    do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));\n    if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }\n  }" (else "else") (if_statement "if ((*(char *)(param_1 + 0x60) == '\n') || (*(char *)(param_1 + 0x60) == '\r')) {\n    if (iVar3 != 0) {\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }\n  }\n  else {\n    iVar1 = 0;\n    do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));\n    if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }\n  }" (if "if") (parenthesized_expression "((*(char *)(param_1 + 0x60) == '\n') || (*(char *)(param_1 + 0x60) == '\r'))" (( "(") (binary_expression "(*(char *)(param_1 + 0x60) == '\n') || (*(char *)(param_1 + 0x60) == '\r')" (parenthesized_expression "(*(char *)(param_1 + 0x60) == '\n')" (( "(") (binary_expression "*(char *)(param_1 + 0x60) == '\n'" (pointer_expression "*(char *)(param_1 + 0x60)" (* "*") (cast_expression "(char *)(param_1 + 0x60)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (== "==") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(*(char *)(param_1 + 0x60) == '\r')" (( "(") (binary_expression "*(char *)(param_1 + 0x60) == '\r'" (pointer_expression "*(char *)(param_1 + 0x60)" (* "*") (cast_expression "(char *)(param_1 + 0x60)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (== "==") (char_literal "'\r'" (' "'") (escape_sequence "\r") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    if (iVar3 != 0) {\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }\n  }" ({ "{") (if_statement "if (iVar3 != 0) {\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x54) = 2;\n      *(undefined4 *)(param_1 + 0x50) = param_3;\n      return 1;\n    }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x54) = 2;" (assignment_expression "*(undefined4 *)(param_1 + 0x54) = 2" (pointer_expression "*(undefined4 *)(param_1 + 0x54)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x54)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (= "=") (number_literal "2")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x50) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = param_3" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar1 = 0;\n    do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));\n    if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = 0;\n    do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));\n    if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }\n  }" ({ "{") (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    } while ((cVar2 != '\r') && (cVar2 != '\n'));" (do "do") (compound_statement "{\n      iVar7 = iVar1;\n      iVar1 = iVar7 + 1;\n      if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }\n      cVar2 = *(char *)(param_1 + 0x60 + iVar1);\n    }" ({ "{") (expression_statement "iVar7 = iVar1;" (assignment_expression "iVar7 = iVar1" (identifier "iVar7") (= "=") (identifier "iVar1")) (; ";")) (expression_statement "iVar1 = iVar7 + 1;" (assignment_expression "iVar1 = iVar7 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar1 == iVar5) {\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }" (if "if") (parenthesized_expression "(iVar1 == iVar5)" (( "(") (binary_expression "iVar1 == iVar5" (identifier "iVar1") (== "==") (identifier "iVar5")) () ")")) (compound_statement "{\n        if (iVar5 != iVar3) {\n          return 0;\n        }\n        goto LAB_00024670;\n      }" ({ "{") (if_statement "if (iVar5 != iVar3) {\n          return 0;\n        }" (if "if") (parenthesized_expression "(iVar5 != iVar3)" (( "(") (binary_expression "iVar5 != iVar3" (identifier "iVar5") (!= "!=") (identifier "iVar3")) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (goto_statement "goto LAB_00024670;" (goto "goto") (statement_identifier "LAB_00024670") (; ";")) (} "}"))) (expression_statement "cVar2 = *(char *)(param_1 + 0x60 + iVar1);" (assignment_expression "cVar2 = *(char *)(param_1 + 0x60 + iVar1)" (identifier "cVar2") (= "=") (pointer_expression "*(char *)(param_1 + 0x60 + iVar1)" (* "*") (cast_expression "(char *)(param_1 + 0x60 + iVar1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60 + iVar1)" (( "(") (binary_expression "param_1 + 0x60 + iVar1" (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) (+ "+") (identifier "iVar1")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((cVar2 != '\r') && (cVar2 != '\n'))" (( "(") (binary_expression "(cVar2 != '\r') && (cVar2 != '\n')" (parenthesized_expression "(cVar2 != '\r')" (( "(") (binary_expression "cVar2 != '\r'" (identifier "cVar2") (!= "!=") (char_literal "'\r'" (' "'") (escape_sequence "\r") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(cVar2 != '\n')" (( "(") (binary_expression "cVar2 != '\n'" (identifier "cVar2") (!= "!=") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) () ")"))) () ")")) (; ";")) (if_statement "if (iVar1 != iVar3) {\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }" (if "if") (parenthesized_expression "(iVar1 != iVar3)" (( "(") (binary_expression "iVar1 != iVar3" (identifier "iVar1") (!= "!=") (identifier "iVar3")) () ")")) (compound_statement "{\n      if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }\n      pcVar4[iVar1] = '\0';\n      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);\n      if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }\n      *param_2 = iVar7 + 2 + *param_2;\n      return 1;\n    }" ({ "{") (if_statement "if (pcVar4[iVar1] == '\r') {\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }" (if "if") (parenthesized_expression "(pcVar4[iVar1] == '\r')" (( "(") (binary_expression "pcVar4[iVar1] == '\r'" (subscript_expression "pcVar4[iVar1]" (identifier "pcVar4") ([ "[") (identifier "iVar1") (] "]")) (== "==") (char_literal "'\r'" (' "'") (escape_sequence "\r") (' "'"))) () ")")) (compound_statement "{\n        *(undefined4 *)(param_1 + 0x54) = 1;\n      }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x54) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x54) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x54)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x54)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "pcVar4[iVar1] = '\0';" (assignment_expression "pcVar4[iVar1] = '\0'" (subscript_expression "pcVar4[iVar1]" (identifier "pcVar4") ([ "[") (identifier "iVar1") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);" (assignment_expression "iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15)" (identifier "iVar5") (= "=") (call_expression "FUN_00021f60("Content-disposition: ",pcVar4,0x15)" (identifier "FUN_00021f60") (argument_list "("Content-disposition: ",pcVar4,0x15)" (( "(") (string_literal ""Content-disposition: "" (" """) (string_content "Content-disposition: ") (" """)) (, ",") (identifier "pcVar4") (, ",") (number_literal "0x15") () ")")))) (; ";")) (if_statement "if (iVar5 == 0) {\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }\n      else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }\n        if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }\n      }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x1c) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1c) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x1c) == 0" (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          cVar2 = *(char *)(param_1 + 0x60);\n          pcVar6 = pcVar4;\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }\n        }" ({ "{") (expression_statement "cVar2 = *(char *)(param_1 + 0x60);" (assignment_expression "cVar2 = *(char *)(param_1 + 0x60)" (identifier "cVar2") (= "=") (pointer_expression "*(char *)(param_1 + 0x60)" (* "*") (cast_expression "(char *)(param_1 + 0x60)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")"))))) (; ";")) (expression_statement "pcVar6 = pcVar4;" (assignment_expression "pcVar6 = pcVar4" (identifier "pcVar6") (= "=") (identifier "pcVar4")) (; ";")) (while_statement "while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }" (while "while") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);\n            if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }\n            pcVar6 = pcVar6 + 1;\n            cVar2 = *pcVar6;\n          }" ({ "{") (expression_statement "iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);" (assignment_expression "iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe)" (identifier "iVar5") (= "=") (call_expression "FUN_00021f60("Content-type: ",pcVar6,0xe)" (identifier "FUN_00021f60") (argument_list "("Content-type: ",pcVar6,0xe)" (( "(") (string_literal ""Content-type: "" (" """) (string_content "Content-type: ") (" """)) (, ",") (identifier "pcVar6") (, ",") (number_literal "0xe") () ")")))) (; ";")) (if_statement "if (iVar5 != 0) {\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              pcVar6 = strdup(pcVar6 + 0xe);\n              *(char **)(param_1 + 0x1c) = pcVar6;\n              break;\n            }" ({ "{") (expression_statement "pcVar6 = strdup(pcVar6 + 0xe);" (assignment_expression "pcVar6 = strdup(pcVar6 + 0xe)" (identifier "pcVar6") (= "=") (call_expression "strdup(pcVar6 + 0xe)" (identifier "strdup") (argument_list "(pcVar6 + 0xe)" (( "(") (binary_expression "pcVar6 + 0xe" (identifier "pcVar6") (+ "+") (number_literal "0xe")) () ")")))) (; ";")) (expression_statement "*(char **)(param_1 + 0x1c) = pcVar6;" (assignment_expression "*(char **)(param_1 + 0x1c) = pcVar6" (pointer_expression "*(char **)(param_1 + 0x1c)" (* "*") (cast_expression "(char **)(param_1 + 0x1c)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "pcVar6")) (; ";")) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "pcVar6 = pcVar6 + 1;" (assignment_expression "pcVar6 = pcVar6 + 1" (identifier "pcVar6") (= "=") (binary_expression "pcVar6 + 1" (identifier "pcVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar2 = *pcVar6;" (assignment_expression "cVar2 = *pcVar6" (identifier "cVar2") (= "=") (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6"))) (; ";")) (} "}"))) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x24) == 0) {\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x24) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x24) == 0" (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          cVar2 = *(char *)(param_1 + 0x60);\n          while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }\n        }" ({ "{") (expression_statement "cVar2 = *(char *)(param_1 + 0x60);" (assignment_expression "cVar2 = *(char *)(param_1 + 0x60)" (identifier "cVar2") (= "=") (pointer_expression "*(char *)(param_1 + 0x60)" (* "*") (cast_expression "(char *)(param_1 + 0x60)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")"))))) (; ";")) (while_statement "while (cVar2 != '\0') {\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }" (while "while") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);\n            if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }\n            pcVar4 = pcVar4 + 1;\n            cVar2 = *pcVar4;\n          }" ({ "{") (expression_statement "iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);" (assignment_expression "iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b)" (identifier "iVar5") (= "=") (call_expression "FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b)" (identifier "FUN_00021f60") (argument_list "("Content-Transfer-Encoding: ",pcVar4,0x1b)" (( "(") (string_literal ""Content-Transfer-Encoding: "" (" """) (string_content "Content-Transfer-Encoding: ") (" """)) (, ",") (identifier "pcVar4") (, ",") (number_literal "0x1b") () ")")))) (; ";")) (if_statement "if (iVar5 != 0) {\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              pcVar4 = strdup(pcVar4 + 0x1b);\n              *(char **)(param_1 + 0x24) = pcVar4;\n              break;\n            }" ({ "{") (expression_statement "pcVar4 = strdup(pcVar4 + 0x1b);" (assignment_expression "pcVar4 = strdup(pcVar4 + 0x1b)" (identifier "pcVar4") (= "=") (call_expression "strdup(pcVar4 + 0x1b)" (identifier "strdup") (argument_list "(pcVar4 + 0x1b)" (( "(") (binary_expression "pcVar4 + 0x1b" (identifier "pcVar4") (+ "+") (number_literal "0x1b")) () ")")))) (; ";")) (expression_statement "*(char **)(param_1 + 0x24) = pcVar4;" (assignment_expression "*(char **)(param_1 + 0x24) = pcVar4" (pointer_expression "*(char **)(param_1 + 0x24)" (* "*") (cast_expression "(char **)(param_1 + 0x24)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (identifier "pcVar4")) (; ";")) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" (identifier "pcVar4") (= "=") (binary_expression "pcVar4 + 1" (identifier "pcVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar2 = *pcVar4;" (assignment_expression "cVar2 = *pcVar4" (identifier "cVar2") (= "=") (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4"))) (; ";")) (} "}"))) (} "}"))) (} "}")) (else_clause "else {\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }" (else "else") (compound_statement "{\n        if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }\n        if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }\n      }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x18) == 0) {\n          FUN_000244c0();\n        }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x18) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x18) == 0" (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          FUN_000244c0();\n        }" ({ "{") (expression_statement "FUN_000244c0();" (call_expression "FUN_000244c0()" (identifier "FUN_000244c0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x20) == 0) {\n          FUN_000244c0();\n        }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x20) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x20) == 0" (pointer_expression "*(int *)(param_1 + 0x20)" (* "*") (cast_expression "(int *)(param_1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          FUN_000244c0();\n        }" ({ "{") (expression_statement "FUN_000244c0();" (call_expression "FUN_000244c0()" (identifier "FUN_000244c0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "*param_2 = iVar7 + 2 + *param_2;" (assignment_expression "*param_2 = iVar7 + 2 + *param_2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "iVar7 + 2 + *param_2" (binary_expression "iVar7 + 2" (identifier "iVar7") (+ "+") (number_literal "2")) (+ "+") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}")))))) (labeled_statement "LAB_00024670:\n  *(undefined4 *)(param_1 + 0x50) = 0;" (statement_identifier "LAB_00024670") (: ":") (expression_statement "*(undefined4 *)(param_1 + 0x50) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))) (= "=") (number_literal "0")) (; ";"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */
/* WARNING: Enum "gnutls_pk_algorithm_t": Some values do not have unique names */
/* WARNING: Enum "gnutls_certificate_type_t": Some values do not have unique names */

int __regparm3 function_1(type_1 *var_1,size_t *ioffptr,type_2 next_state)

{
  size_t var_5;
  char var_8;
  size_t var_2;
  size_t var_3;
  type_1 *str2;
  int var_7;
  char *pcVar6;
  size_t var_4;
  type_1 *str2_00;
  
  str2 = var_1 + 1;
  var_2 = var_1->buffer_pos;
  var_3 = var_1->buffer_size;
  if (var_2 == 0) {
    if (var_3 != 0) {
      return 0;
    }
  }
  else if ((*(char *)&var_1[1].connection == '\n') || (*(char *)&var_1[1].connection == '\r')) {
    if (var_3 != 0) {
      var_1->skip_rn = RN_Full;
      var_1->state = next_state;
      return 1;
    }
  }
  else {
    var_5 = 0;
    do {
      var_4 = var_5;
      var_5 = var_4 + 1;
      if (var_5 == var_2) {
        if (var_2 != var_3) {
          return 0;
        }
        goto LAB_00024670;
      }
    } while ((var_1[1].xbuf[var_4 - 0x27] != '\r') && (var_1[1].xbuf[var_4 - 0x27] != '\n'));
    if (var_5 != var_3) {
      if (str2->xbuf[var_4 - 0x27] == '\r') {
        var_1->skip_rn = RN_OptN;
      }
      str2->xbuf[var_4 - 0x27] = '\0';
      var_7 = var_6("Content-disposition: ",(char *)str2,0x15);
      if (var_7 == 0) {
        if (var_1->content_type == (char *)0x0) {
          var_8 = *(char *)&var_1[1].connection;
          str2_00 = str2;
          while (var_8 != '\0') {
            var_7 = var_6("Content-type: ",(char *)str2_00,0xe);
            if (var_7 != 0) {
              pcVar6 = var_9((char *)((int)&str2_00->encoding + 2));
              var_1->content_type = pcVar6;
              break;
            }
            str2_00 = (type_1 *)((int)&str2_00->connection + 1);
            var_8 = *(char *)&str2_00->connection;
          }
        }
        if (var_1->content_transfer_encoding == (char *)0x0) {
          var_8 = *(char *)&var_1[1].connection;
          while (var_8 != '\0') {
            var_7 = var_6("Content-Transfer-Encoding: ",(char *)str2,0x1b);
            if (var_7 != 0) {
              pcVar6 = var_9((char *)((int)&str2->content_name + 3));
              var_1->content_transfer_encoding = pcVar6;
              break;
            }
            str2 = (type_1 *)((int)&str2->connection + 1);
            var_8 = *(char *)&str2->connection;
          }
        }
      }
      else {
        pcVar6 = (char *)((int)&var_1[1].nested_boundary + 1);
        if (var_1->content_name == (char *)0x0) {
          var_10(pcVar6,"name",&var_1->content_name);
        }
        if (var_1->content_filename == (char *)0x0) {
          var_10(pcVar6,"filename",&var_1->content_filename);
        }
      }
      *ioffptr = var_4 + 2 + *ioffptr;
      return 1;
    }
  }
LAB_00024670:
  var_1->state = PP_Error;
  return 0;
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) 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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_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))))))) (expression_statement (assignment_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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (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)))) right: (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 (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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: (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: (identifier))) (return_statement (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_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: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))))))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (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: (subscript_expression argument: (identifier) index: (identifier)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (identifier) (number_literal))))) (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_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))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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 declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (break_statement))) (expression_statement (assignment_expression left: (identifier) right: (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: (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: (number_literal))) consequence: (compound_statement (expression_statement (assignment_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))))))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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 declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (break_statement))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))))))) alternative: (else_clause (compound_statement (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: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (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: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (pointer_expression argument: (identifier))))) (return_statement (number_literal))))))))) (labeled_statement label: (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)))) (return_statement (number_literal)))))

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

undefined4 __regparm3 MASKED(int param_1,int *param_2,undefined4 param_3)

{
  int iVar1;
  char cVar2;
  int iVar3;
  char *pcVar4;
  int iVar5;
  char *pcVar6;
  int iVar7;
  
  pcVar4 = (char *)(param_1 + 0x60);
  iVar5 = *(int *)(param_1 + 0x34);
  iVar3 = *(int *)(param_1 + 0x30);
  if (iVar5 == 0) {
    if (iVar3 != 0) {
      return 0;
    }
  }
  else if ((*(char *)(param_1 + 0x60) == '\n') || (*(char *)(param_1 + 0x60) == '\r')) {
    if (iVar3 != 0) {
      *(undefined4 *)(param_1 + 0x54) = 2;
      *(undefined4 *)(param_1 + 0x50) = param_3;
      return 1;
    }
  }
  else {
    iVar1 = 0;
    do {
      iVar7 = iVar1;
      iVar1 = iVar7 + 1;
      if (iVar1 == iVar5) {
        if (iVar5 != iVar3) {
          return 0;
        }
        goto LAB_00024670;
      }
      cVar2 = *(char *)(param_1 + 0x60 + iVar1);
    } while ((cVar2 != '\r') && (cVar2 != '\n'));
    if (iVar1 != iVar3) {
      if (pcVar4[iVar1] == '\r') {
        *(undefined4 *)(param_1 + 0x54) = 1;
      }
      pcVar4[iVar1] = '\0';
      iVar5 = FUN_00021f60("Content-disposition: ",pcVar4,0x15);
      if (iVar5 == 0) {
        if (*(int *)(param_1 + 0x1c) == 0) {
          cVar2 = *(char *)(param_1 + 0x60);
          pcVar6 = pcVar4;
          while (cVar2 != '\0') {
            iVar5 = FUN_00021f60("Content-type: ",pcVar6,0xe);
            if (iVar5 != 0) {
              pcVar6 = strdup(pcVar6 + 0xe);
              *(char **)(param_1 + 0x1c) = pcVar6;
              break;
            }
            pcVar6 = pcVar6 + 1;
            cVar2 = *pcVar6;
          }
        }
        if (*(int *)(param_1 + 0x24) == 0) {
          cVar2 = *(char *)(param_1 + 0x60);
          while (cVar2 != '\0') {
            iVar5 = FUN_00021f60("Content-Transfer-Encoding: ",pcVar4,0x1b);
            if (iVar5 != 0) {
              pcVar4 = strdup(pcVar4 + 0x1b);
              *(char **)(param_1 + 0x24) = pcVar4;
              break;
            }
            pcVar4 = pcVar4 + 1;
            cVar2 = *pcVar4;
          }
        }
      }
      else {
        if (*(int *)(param_1 + 0x18) == 0) {
          FUN_000244c0();
        }
        if (*(int *)(param_1 + 0x20) == 0) {
          FUN_000244c0();
        }
      }
      *param_2 = iVar7 + 2 + *param_2;
      return 1;
    }
  }
LAB_00024670:
  *(undefined4 *)(param_1 + 0x50) = 0;
  return 0;
}

