
/* 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 */

MHD_PostProcessor *
MHD_create_post_processor
          (MHD_Connection *connection,size_t buffer_size,MHD_PostDataIterator iter,void *iter_cls)

{
  char *str2;
  int iVar1;
  char *pcVar2;
  size_t sVar3;
  MHD_PostProcessor *pMVar4;
  char *__s;
  
  if ((connection == (MHD_Connection *)0x0 || iter == (MHD_PostDataIterator)0x0) ||
     (buffer_size < 0x100)) {
    (*mhd_panic)(mhd_panic_cls,"postprocessor.c",0x121,(char *)0x0);
  }
  str2 = MHD_lookup_connection_value(connection,MHD_HEADER_KIND,"Content-Type");
  if (str2 != (char *)0x0) {
    iVar1 = MHD_str_equal_caseless_n_("application/x-www-form-urlencoded",str2,0x21);
    if (iVar1 != 0) {
      sVar3 = 0;
      __s = (char *)0x0;
LAB_00023b94:
      pMVar4 = (MHD_PostProcessor *)calloc(1,buffer_size + 0x65);
      if (pMVar4 != (MHD_PostProcessor *)0x0) {
        pMVar4->encoding = str2;
        pMVar4->buffer_size = buffer_size + 4;
        pMVar4->connection = connection;
        pMVar4->state = PP_Init;
        pMVar4->ikvi = iter;
        pMVar4->blen = sVar3;
        pMVar4->cls = iter_cls;
        pMVar4->boundary = __s;
        pMVar4->skip_rn = RN_Inactive;
      }
      return pMVar4;
    }
    iVar1 = MHD_str_equal_caseless_n_("multipart/form-data",str2,0x13);
    if (iVar1 != 0) {
      pcVar2 = strstr(str2 + 0x13,"boundary=");
      if (pcVar2 != (char *)0x0) {
        __s = pcVar2 + 9;
        sVar3 = strlen(__s);
        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= buffer_size)) {
          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {
            __s = pcVar2 + 10;
            sVar3 = sVar3 - 2;
          }
          goto LAB_00023b94;
        }
      }
    }
  }
  return (MHD_PostProcessor *)0x0;
}



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

int * MHD_create_post_processor(int param_1,uint param_2,int param_3,int param_4)

{
  int iVar1;
  int iVar2;
  char *pcVar3;
  size_t sVar4;
  int *piVar5;
  char *__s;
  
  if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {
    (*DAT_0003406c)(DAT_00034068,"postprocessor.c",0x121,0);
  }
  iVar1 = MHD_lookup_connection_value(param_1,1,"Content-Type");
  if (iVar1 != 0) {
    iVar2 = FUN_00021340("application/x-www-form-urlencoded",iVar1,0x21);
    if (iVar2 != 0) {
      sVar4 = 0;
      __s = (char *)0x0;
LAB_00023b94:
      piVar5 = (int *)calloc(1,param_2 + 0x65);
      if (piVar5 != (int *)0x0) {
        piVar5[3] = iVar1;
        piVar5[0xc] = param_2 + 4;
        *piVar5 = param_1;
        piVar5[0x14] = 2;
        piVar5[1] = param_3;
        piVar5[0x11] = sVar4;
        piVar5[2] = param_4;
        piVar5[4] = (int)__s;
        piVar5[0x15] = 0;
      }
      return piVar5;
    }
    iVar2 = FUN_00021340("multipart/form-data",iVar1,0x13);
    if (iVar2 != 0) {
      pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=");
      if (pcVar3 != (char *)0x0) {
        __s = pcVar3 + 9;
        sVar4 = strlen(__s);
        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {
          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {
            __s = pcVar3 + 10;
            sVar4 = sVar4 - 2;
          }
          goto LAB_00023b94;
        }
      }
    }
  }
  return (int *)0x0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013810
ADD EBX,0x10367
SUB ESP,0x1c
MOV EAX,dword ptr [ESP + 0x30]
MOV ECX,dword ptr [ESP + 0x38]
TEST EAX,EAX
SETZ DL
TEST ECX,ECX
SETZ AL
OR DL,AL
JNZ 0x00023b68
CMP dword ptr [ESP + 0x34],0xff
JBE 0x00023b68
SUB ESP,0x4
LEA EAX,[EBX + 0xffff7b3b]
PUSH EAX
PUSH 0x1
PUSH dword ptr [ESP + 0x3c]
CALL 0x00013790
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x00023bf8
SUB ESP,0x4
PUSH 0x21
PUSH EAX
LEA EAX,[EBX + 0xffff7bcc]
PUSH EAX
CALL 0x00021340
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00023b90
SUB ESP,0x4
LEA EAX,[EBX + 0xffff7b48]
PUSH 0x13
PUSH ESI
PUSH EAX
CALL 0x00021340
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00023bf8
SUB ESP,0x8
LEA EAX,[ESI + 0x13]
LEA EDX,[EBX + 0xffff7b5c]
PUSH EDX
PUSH EAX
CALL 0x00013090
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JZ 0x00023bf8
SUB ESP,0xc
LEA EDI,[EAX + 0x9]
PUSH EDI
CALL 0x00013430
ADD ESP,0x10
MOV EDX,EAX
TEST EAX,EAX
JZ 0x00023bf8
LEA EAX,[EAX + EAX*0x1 + 0x2]
CMP EAX,dword ptr [ESP + 0x34]
JA 0x00023bf8
CMP byte ptr [EBP + 0x9],0x22
JNZ 0x00023b94
CMP byte ptr [EDI + EDX*0x1 + -0x1],0x22
JNZ 0x00023b94
LEA EDI,[EBP + 0xa]
SUB EDX,0x2
JMP 0x00023b94
LEA EAX,[EBX + 0xffff7ae1]
PUSH 0x0
PUSH 0x121
PUSH EAX
LEA EAX,[EBX + 0x288]
PUSH dword ptr [EAX]
LEA EAX,[EBX + 0x28c]
CALL dword ptr [EAX]
ADD ESP,0x10
JMP 0x00023aaa
XOR EDX,EDX
XOR EDI,EDI
MOV EAX,dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0x8
LEA EBP,[EAX + 0x4]
MOV EAX,dword ptr [ESP + 0x3c]
ADD EAX,0x65
PUSH EAX
PUSH 0x1
CALL 0x000137b0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00023bea
MOV ECX,dword ptr [ESP + 0x30]
MOV EDX,dword ptr [ESP + 0xc]
MOV dword ptr [EAX + 0xc],ESI
MOV dword ptr [EAX + 0x30],EBP
MOV dword ptr [EAX],ECX
MOV ECX,dword ptr [ESP + 0x38]
MOV dword ptr [EAX + 0x50],0x2
MOV dword ptr [EAX + 0x4],ECX
MOV ECX,dword ptr [ESP + 0x3c]
MOV dword ptr [EAX + 0x44],EDX
MOV dword ptr [EAX + 0x8],ECX
MOV dword ptr [EAX + 0x10],EDI
MOV dword ptr [EAX + 0x54],0x0
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0x1c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * MHD_create_post_processor(int param_1,uint param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  size_t sVar4;\n  int *piVar5;\n  char *__s;\n  \n  if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {\n    (*DAT_0003406c)(DAT_00034068,"postprocessor.c",0x121,0);\n  }\n  iVar1 = MHD_lookup_connection_value(param_1,1,"Content-Type");\n  if (iVar1 != 0) {\n    iVar2 = FUN_00021340("application/x-www-form-urlencoded",iVar1,0x21);\n    if (iVar2 != 0) {\n      sVar4 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      piVar5 = (int *)calloc(1,param_2 + 0x65);\n      if (piVar5 != (int *)0x0) {\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }\n      return piVar5;\n    }\n    iVar2 = FUN_00021340("multipart/form-data",iVar1,0x13);\n    if (iVar2 != 0) {\n      pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }\n  }\n  return (int *)0x0;\n}\n\n" comment (function_definition "int * MHD_create_post_processor(int param_1,uint param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  size_t sVar4;\n  int *piVar5;\n  char *__s;\n  \n  if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {\n    (*DAT_0003406c)(DAT_00034068,"postprocessor.c",0x121,0);\n  }\n  iVar1 = MHD_lookup_connection_value(param_1,1,"Content-Type");\n  if (iVar1 != 0) {\n    iVar2 = FUN_00021340("application/x-www-form-urlencoded",iVar1,0x21);\n    if (iVar2 != 0) {\n      sVar4 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      piVar5 = (int *)calloc(1,param_2 + 0x65);\n      if (piVar5 != (int *)0x0) {\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }\n      return piVar5;\n    }\n    iVar2 = FUN_00021340("multipart/form-data",iVar1,0x13);\n    if (iVar2 != 0) {\n      pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }\n  }\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* MHD_create_post_processor(int param_1,uint param_2,int param_3,int param_4)" * (function_declarator "MHD_create_post_processor(int param_1,uint param_2,int param_3,int param_4)" identifier (parameter_list "(int param_1,uint param_2,int param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  size_t sVar4;\n  int *piVar5;\n  char *__s;\n  \n  if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {\n    (*DAT_0003406c)(DAT_00034068,"postprocessor.c",0x121,0);\n  }\n  iVar1 = MHD_lookup_connection_value(param_1,1,"Content-Type");\n  if (iVar1 != 0) {\n    iVar2 = FUN_00021340("application/x-www-form-urlencoded",iVar1,0x21);\n    if (iVar2 != 0) {\n      sVar4 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      piVar5 = (int *)calloc(1,param_2 + 0x65);\n      if (piVar5 != (int *)0x0) {\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }\n      return piVar5;\n    }\n    iVar2 = FUN_00021340("multipart/form-data",iVar1,0x13);\n    if (iVar2 != 0) {\n      pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }\n  }\n  return (int *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (if_statement "if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {\n    (*DAT_0003406c)(DAT_00034068,"postprocessor.c",0x121,0);\n  }" if (parenthesized_expression "((param_1 == 0 || param_3 == 0) || (param_2 < 0x100))" ( (binary_expression "(param_1 == 0 || param_3 == 0) || (param_2 < 0x100)" (parenthesized_expression "(param_1 == 0 || param_3 == 0)" ( (binary_expression "param_1 == 0 || param_3 == 0" (binary_expression "param_1 == 0" identifier == number_literal) || (binary_expression "param_3 == 0" identifier == number_literal)) )) || (parenthesized_expression "(param_2 < 0x100)" ( (binary_expression "param_2 < 0x100" identifier < number_literal) ))) )) (compound_statement "{\n    (*DAT_0003406c)(DAT_00034068,"postprocessor.c",0x121,0);\n  }" { (expression_statement "(*DAT_0003406c)(DAT_00034068,"postprocessor.c",0x121,0);" (call_expression "(*DAT_0003406c)(DAT_00034068,"postprocessor.c",0x121,0)" (parenthesized_expression "(*DAT_0003406c)" ( (pointer_expression "*DAT_0003406c" * identifier) )) (argument_list "(DAT_00034068,"postprocessor.c",0x121,0)" ( identifier , (string_literal ""postprocessor.c"" " string_content ") , number_literal , number_literal ))) ;) })) (expression_statement "iVar1 = MHD_lookup_connection_value(param_1,1,"Content-Type");" (assignment_expression "iVar1 = MHD_lookup_connection_value(param_1,1,"Content-Type")" identifier = (call_expression "MHD_lookup_connection_value(param_1,1,"Content-Type")" identifier (argument_list "(param_1,1,"Content-Type")" ( identifier , number_literal , (string_literal ""Content-Type"" " string_content ") )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar2 = FUN_00021340("application/x-www-form-urlencoded",iVar1,0x21);\n    if (iVar2 != 0) {\n      sVar4 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      piVar5 = (int *)calloc(1,param_2 + 0x65);\n      if (piVar5 != (int *)0x0) {\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }\n      return piVar5;\n    }\n    iVar2 = FUN_00021340("multipart/form-data",iVar1,0x13);\n    if (iVar2 != 0) {\n      pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = FUN_00021340("application/x-www-form-urlencoded",iVar1,0x21);\n    if (iVar2 != 0) {\n      sVar4 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      piVar5 = (int *)calloc(1,param_2 + 0x65);\n      if (piVar5 != (int *)0x0) {\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }\n      return piVar5;\n    }\n    iVar2 = FUN_00021340("multipart/form-data",iVar1,0x13);\n    if (iVar2 != 0) {\n      pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }\n  }" { (expression_statement "iVar2 = FUN_00021340("application/x-www-form-urlencoded",iVar1,0x21);" (assignment_expression "iVar2 = FUN_00021340("application/x-www-form-urlencoded",iVar1,0x21)" identifier = (call_expression "FUN_00021340("application/x-www-form-urlencoded",iVar1,0x21)" identifier (argument_list "("application/x-www-form-urlencoded",iVar1,0x21)" ( (string_literal ""application/x-www-form-urlencoded"" " string_content ") , identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n      sVar4 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      piVar5 = (int *)calloc(1,param_2 + 0x65);\n      if (piVar5 != (int *)0x0) {\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }\n      return piVar5;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      sVar4 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      piVar5 = (int *)calloc(1,param_2 + 0x65);\n      if (piVar5 != (int *)0x0) {\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }\n      return piVar5;\n    }" { (expression_statement "sVar4 = 0;" (assignment_expression "sVar4 = 0" identifier = number_literal) ;) (expression_statement "__s = (char *)0x0;" (assignment_expression "__s = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_00023b94:\n      piVar5 = (int *)calloc(1,param_2 + 0x65);" statement_identifier : (expression_statement "piVar5 = (int *)calloc(1,param_2 + 0x65);" (assignment_expression "piVar5 = (int *)calloc(1,param_2 + 0x65)" identifier = (cast_expression "(int *)calloc(1,param_2 + 0x65)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "calloc(1,param_2 + 0x65)" identifier (argument_list "(1,param_2 + 0x65)" ( number_literal , (binary_expression "param_2 + 0x65" identifier + number_literal) ))))) ;)) (if_statement "if (piVar5 != (int *)0x0) {\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }" if (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }" { (expression_statement "piVar5[3] = iVar1;" (assignment_expression "piVar5[3] = iVar1" (subscript_expression "piVar5[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar5[0xc] = param_2 + 4;" (assignment_expression "piVar5[0xc] = param_2 + 4" (subscript_expression "piVar5[0xc]" identifier [ number_literal ]) = (binary_expression "param_2 + 4" identifier + number_literal)) ;) (expression_statement "*piVar5 = param_1;" (assignment_expression "*piVar5 = param_1" (pointer_expression "*piVar5" * identifier) = identifier) ;) (expression_statement "piVar5[0x14] = 2;" (assignment_expression "piVar5[0x14] = 2" (subscript_expression "piVar5[0x14]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar5[1] = param_3;" (assignment_expression "piVar5[1] = param_3" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar5[0x11] = sVar4;" (assignment_expression "piVar5[0x11] = sVar4" (subscript_expression "piVar5[0x11]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar5[2] = param_4;" (assignment_expression "piVar5[2] = param_4" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar5[4] = (int)__s;" (assignment_expression "piVar5[4] = (int)__s" (subscript_expression "piVar5[4]" identifier [ number_literal ]) = (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar5[0x15] = 0;" (assignment_expression "piVar5[0x15] = 0" (subscript_expression "piVar5[0x15]" identifier [ number_literal ]) = number_literal) ;) })) (return_statement "return piVar5;" return identifier ;) })) (expression_statement "iVar2 = FUN_00021340("multipart/form-data",iVar1,0x13);" (assignment_expression "iVar2 = FUN_00021340("multipart/form-data",iVar1,0x13)" identifier = (call_expression "FUN_00021340("multipart/form-data",iVar1,0x13)" identifier (argument_list "("multipart/form-data",iVar1,0x13)" ( (string_literal ""multipart/form-data"" " string_content ") , identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n      pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }" { (expression_statement "pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=");" (assignment_expression "pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=")" identifier = (call_expression "strstr((char *)(iVar1 + 0x13),"boundary=")" identifier (argument_list "((char *)(iVar1 + 0x13),"boundary=")" ( (cast_expression "(char *)(iVar1 + 0x13)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x13)" ( (binary_expression "iVar1 + 0x13" identifier + number_literal) ))) , (string_literal ""boundary="" " string_content ") )))) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }" { (expression_statement "__s = pcVar3 + 9;" (assignment_expression "__s = pcVar3 + 9" identifier = (binary_expression "pcVar3 + 9" identifier + number_literal)) ;) (expression_statement "sVar4 = strlen(__s);" (assignment_expression "sVar4 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (if_statement "if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }" if (parenthesized_expression "((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2))" ( (binary_expression "(sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)" (parenthesized_expression "(sVar4 != 0)" ( (binary_expression "sVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "(sVar4 * 2 + 2 <= param_2)" ( (binary_expression "sVar4 * 2 + 2 <= param_2" (binary_expression "sVar4 * 2 + 2" (binary_expression "sVar4 * 2" identifier * number_literal) + number_literal) <= identifier) ))) )) (compound_statement "{\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }" { (if_statement "if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }" if (parenthesized_expression "((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"'))" ( (binary_expression "(pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')" (parenthesized_expression "(pcVar3[9] == '\"')" ( (binary_expression "pcVar3[9] == '\"'" (subscript_expression "pcVar3[9]" identifier [ number_literal ]) == (char_literal "'\"'" ' escape_sequence ')) )) && (parenthesized_expression "(pcVar3[sVar4 + 8] == '\"')" ( (binary_expression "pcVar3[sVar4 + 8] == '\"'" (subscript_expression "pcVar3[sVar4 + 8]" identifier [ (binary_expression "sVar4 + 8" identifier + number_literal) ]) == (char_literal "'\"'" ' escape_sequence ')) ))) )) (compound_statement "{\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }" { (expression_statement "__s = pcVar3 + 10;" (assignment_expression "__s = pcVar3 + 10" identifier = (binary_expression "pcVar3 + 10" identifier + number_literal)) ;) (expression_statement "sVar4 = sVar4 - 2;" (assignment_expression "sVar4 = sVar4 - 2" identifier = (binary_expression "sVar4 - 2" identifier - number_literal)) ;) })) (goto_statement "goto LAB_00023b94;" goto statement_identifier ;) })) })) })) })) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) 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\nMHD_PostProcessor *\nMHD_create_post_processor\n          (MHD_Connection *connection,size_t buffer_size,MHD_PostDataIterator iter,void *iter_cls)\n\n{\n  char *str2;\n  int iVar1;\n  char *pcVar2;\n  size_t sVar3;\n  MHD_PostProcessor *pMVar4;\n  char *__s;\n  \n  if ((connection == (MHD_Connection *)0x0 || iter == (MHD_PostDataIterator)0x0) ||\n     (buffer_size < 0x100)) {\n    (*mhd_panic)(mhd_panic_cls,"postprocessor.c",0x121,(char *)0x0);\n  }\n  str2 = MHD_lookup_connection_value(connection,MHD_HEADER_KIND,"Content-Type");\n  if (str2 != (char *)0x0) {\n    iVar1 = MHD_str_equal_caseless_n_("application/x-www-form-urlencoded",str2,0x21);\n    if (iVar1 != 0) {\n      sVar3 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      pMVar4 = (MHD_PostProcessor *)calloc(1,buffer_size + 0x65);\n      if (pMVar4 != (MHD_PostProcessor *)0x0) {\n        pMVar4->encoding = str2;\n        pMVar4->buffer_size = buffer_size + 4;\n        pMVar4->connection = connection;\n        pMVar4->state = PP_Init;\n        pMVar4->ikvi = iter;\n        pMVar4->blen = sVar3;\n        pMVar4->cls = iter_cls;\n        pMVar4->boundary = __s;\n        pMVar4->skip_rn = RN_Inactive;\n      }\n      return pMVar4;\n    }\n    iVar1 = MHD_str_equal_caseless_n_("multipart/form-data",str2,0x13);\n    if (iVar1 != 0) {\n      pcVar2 = strstr(str2 + 0x13,"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        __s = pcVar2 + 9;\n        sVar3 = strlen(__s);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= buffer_size)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            __s = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }\n  }\n  return (MHD_PostProcessor *)0x0;\n}\n\n" comment comment comment comment (function_definition "MHD_PostProcessor *\nMHD_create_post_processor\n          (MHD_Connection *connection,size_t buffer_size,MHD_PostDataIterator iter,void *iter_cls)\n\n{\n  char *str2;\n  int iVar1;\n  char *pcVar2;\n  size_t sVar3;\n  MHD_PostProcessor *pMVar4;\n  char *__s;\n  \n  if ((connection == (MHD_Connection *)0x0 || iter == (MHD_PostDataIterator)0x0) ||\n     (buffer_size < 0x100)) {\n    (*mhd_panic)(mhd_panic_cls,"postprocessor.c",0x121,(char *)0x0);\n  }\n  str2 = MHD_lookup_connection_value(connection,MHD_HEADER_KIND,"Content-Type");\n  if (str2 != (char *)0x0) {\n    iVar1 = MHD_str_equal_caseless_n_("application/x-www-form-urlencoded",str2,0x21);\n    if (iVar1 != 0) {\n      sVar3 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      pMVar4 = (MHD_PostProcessor *)calloc(1,buffer_size + 0x65);\n      if (pMVar4 != (MHD_PostProcessor *)0x0) {\n        pMVar4->encoding = str2;\n        pMVar4->buffer_size = buffer_size + 4;\n        pMVar4->connection = connection;\n        pMVar4->state = PP_Init;\n        pMVar4->ikvi = iter;\n        pMVar4->blen = sVar3;\n        pMVar4->cls = iter_cls;\n        pMVar4->boundary = __s;\n        pMVar4->skip_rn = RN_Inactive;\n      }\n      return pMVar4;\n    }\n    iVar1 = MHD_str_equal_caseless_n_("multipart/form-data",str2,0x13);\n    if (iVar1 != 0) {\n      pcVar2 = strstr(str2 + 0x13,"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        __s = pcVar2 + 9;\n        sVar3 = strlen(__s);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= buffer_size)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            __s = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }\n  }\n  return (MHD_PostProcessor *)0x0;\n}" type_identifier (pointer_declarator "*\nMHD_create_post_processor\n          (MHD_Connection *connection,size_t buffer_size,MHD_PostDataIterator iter,void *iter_cls)" * (function_declarator "MHD_create_post_processor\n          (MHD_Connection *connection,size_t buffer_size,MHD_PostDataIterator iter,void *iter_cls)" identifier (parameter_list "(MHD_Connection *connection,size_t buffer_size,MHD_PostDataIterator iter,void *iter_cls)" ( (parameter_declaration "MHD_Connection *connection" type_identifier (pointer_declarator "*connection" * identifier)) , (parameter_declaration "size_t buffer_size" primitive_type identifier) , (parameter_declaration "MHD_PostDataIterator iter" type_identifier identifier) , (parameter_declaration "void *iter_cls" primitive_type (pointer_declarator "*iter_cls" * identifier)) )))) (compound_statement "{\n  char *str2;\n  int iVar1;\n  char *pcVar2;\n  size_t sVar3;\n  MHD_PostProcessor *pMVar4;\n  char *__s;\n  \n  if ((connection == (MHD_Connection *)0x0 || iter == (MHD_PostDataIterator)0x0) ||\n     (buffer_size < 0x100)) {\n    (*mhd_panic)(mhd_panic_cls,"postprocessor.c",0x121,(char *)0x0);\n  }\n  str2 = MHD_lookup_connection_value(connection,MHD_HEADER_KIND,"Content-Type");\n  if (str2 != (char *)0x0) {\n    iVar1 = MHD_str_equal_caseless_n_("application/x-www-form-urlencoded",str2,0x21);\n    if (iVar1 != 0) {\n      sVar3 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      pMVar4 = (MHD_PostProcessor *)calloc(1,buffer_size + 0x65);\n      if (pMVar4 != (MHD_PostProcessor *)0x0) {\n        pMVar4->encoding = str2;\n        pMVar4->buffer_size = buffer_size + 4;\n        pMVar4->connection = connection;\n        pMVar4->state = PP_Init;\n        pMVar4->ikvi = iter;\n        pMVar4->blen = sVar3;\n        pMVar4->cls = iter_cls;\n        pMVar4->boundary = __s;\n        pMVar4->skip_rn = RN_Inactive;\n      }\n      return pMVar4;\n    }\n    iVar1 = MHD_str_equal_caseless_n_("multipart/form-data",str2,0x13);\n    if (iVar1 != 0) {\n      pcVar2 = strstr(str2 + 0x13,"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        __s = pcVar2 + 9;\n        sVar3 = strlen(__s);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= buffer_size)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            __s = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }\n  }\n  return (MHD_PostProcessor *)0x0;\n}" { (declaration "char *str2;" primitive_type (pointer_declarator "*str2" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "MHD_PostProcessor *pMVar4;" type_identifier (pointer_declarator "*pMVar4" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (if_statement "if ((connection == (MHD_Connection *)0x0 || iter == (MHD_PostDataIterator)0x0) ||\n     (buffer_size < 0x100)) {\n    (*mhd_panic)(mhd_panic_cls,"postprocessor.c",0x121,(char *)0x0);\n  }" if (parenthesized_expression "((connection == (MHD_Connection *)0x0 || iter == (MHD_PostDataIterator)0x0) ||\n     (buffer_size < 0x100))" ( (binary_expression "(connection == (MHD_Connection *)0x0 || iter == (MHD_PostDataIterator)0x0) ||\n     (buffer_size < 0x100)" (parenthesized_expression "(connection == (MHD_Connection *)0x0 || iter == (MHD_PostDataIterator)0x0)" ( (binary_expression "connection == (MHD_Connection *)0x0 || iter == (MHD_PostDataIterator)0x0" (binary_expression "connection == (MHD_Connection *)0x0" identifier == (cast_expression "(MHD_Connection *)0x0" ( (type_descriptor "MHD_Connection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) || (binary_expression "iter == (MHD_PostDataIterator)0x0" identifier == (cast_expression "(MHD_PostDataIterator)0x0" ( (type_descriptor "MHD_PostDataIterator" type_identifier) ) number_literal))) )) || (parenthesized_expression "(buffer_size < 0x100)" ( (binary_expression "buffer_size < 0x100" identifier < number_literal) ))) )) (compound_statement "{\n    (*mhd_panic)(mhd_panic_cls,"postprocessor.c",0x121,(char *)0x0);\n  }" { (expression_statement "(*mhd_panic)(mhd_panic_cls,"postprocessor.c",0x121,(char *)0x0);" (call_expression "(*mhd_panic)(mhd_panic_cls,"postprocessor.c",0x121,(char *)0x0)" (parenthesized_expression "(*mhd_panic)" ( (pointer_expression "*mhd_panic" * identifier) )) (argument_list "(mhd_panic_cls,"postprocessor.c",0x121,(char *)0x0)" ( identifier , (string_literal ""postprocessor.c"" " string_content ") , number_literal , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) })) (expression_statement "str2 = MHD_lookup_connection_value(connection,MHD_HEADER_KIND,"Content-Type");" (assignment_expression "str2 = MHD_lookup_connection_value(connection,MHD_HEADER_KIND,"Content-Type")" identifier = (call_expression "MHD_lookup_connection_value(connection,MHD_HEADER_KIND,"Content-Type")" identifier (argument_list "(connection,MHD_HEADER_KIND,"Content-Type")" ( identifier , identifier , (string_literal ""Content-Type"" " string_content ") )))) ;) (if_statement "if (str2 != (char *)0x0) {\n    iVar1 = MHD_str_equal_caseless_n_("application/x-www-form-urlencoded",str2,0x21);\n    if (iVar1 != 0) {\n      sVar3 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      pMVar4 = (MHD_PostProcessor *)calloc(1,buffer_size + 0x65);\n      if (pMVar4 != (MHD_PostProcessor *)0x0) {\n        pMVar4->encoding = str2;\n        pMVar4->buffer_size = buffer_size + 4;\n        pMVar4->connection = connection;\n        pMVar4->state = PP_Init;\n        pMVar4->ikvi = iter;\n        pMVar4->blen = sVar3;\n        pMVar4->cls = iter_cls;\n        pMVar4->boundary = __s;\n        pMVar4->skip_rn = RN_Inactive;\n      }\n      return pMVar4;\n    }\n    iVar1 = MHD_str_equal_caseless_n_("multipart/form-data",str2,0x13);\n    if (iVar1 != 0) {\n      pcVar2 = strstr(str2 + 0x13,"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        __s = pcVar2 + 9;\n        sVar3 = strlen(__s);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= buffer_size)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            __s = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(str2 != (char *)0x0)" ( (binary_expression "str2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = MHD_str_equal_caseless_n_("application/x-www-form-urlencoded",str2,0x21);\n    if (iVar1 != 0) {\n      sVar3 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      pMVar4 = (MHD_PostProcessor *)calloc(1,buffer_size + 0x65);\n      if (pMVar4 != (MHD_PostProcessor *)0x0) {\n        pMVar4->encoding = str2;\n        pMVar4->buffer_size = buffer_size + 4;\n        pMVar4->connection = connection;\n        pMVar4->state = PP_Init;\n        pMVar4->ikvi = iter;\n        pMVar4->blen = sVar3;\n        pMVar4->cls = iter_cls;\n        pMVar4->boundary = __s;\n        pMVar4->skip_rn = RN_Inactive;\n      }\n      return pMVar4;\n    }\n    iVar1 = MHD_str_equal_caseless_n_("multipart/form-data",str2,0x13);\n    if (iVar1 != 0) {\n      pcVar2 = strstr(str2 + 0x13,"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        __s = pcVar2 + 9;\n        sVar3 = strlen(__s);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= buffer_size)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            __s = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }\n  }" { (expression_statement "iVar1 = MHD_str_equal_caseless_n_("application/x-www-form-urlencoded",str2,0x21);" (assignment_expression "iVar1 = MHD_str_equal_caseless_n_("application/x-www-form-urlencoded",str2,0x21)" identifier = (call_expression "MHD_str_equal_caseless_n_("application/x-www-form-urlencoded",str2,0x21)" identifier (argument_list "("application/x-www-form-urlencoded",str2,0x21)" ( (string_literal ""application/x-www-form-urlencoded"" " string_content ") , identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      sVar3 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      pMVar4 = (MHD_PostProcessor *)calloc(1,buffer_size + 0x65);\n      if (pMVar4 != (MHD_PostProcessor *)0x0) {\n        pMVar4->encoding = str2;\n        pMVar4->buffer_size = buffer_size + 4;\n        pMVar4->connection = connection;\n        pMVar4->state = PP_Init;\n        pMVar4->ikvi = iter;\n        pMVar4->blen = sVar3;\n        pMVar4->cls = iter_cls;\n        pMVar4->boundary = __s;\n        pMVar4->skip_rn = RN_Inactive;\n      }\n      return pMVar4;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      sVar3 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      pMVar4 = (MHD_PostProcessor *)calloc(1,buffer_size + 0x65);\n      if (pMVar4 != (MHD_PostProcessor *)0x0) {\n        pMVar4->encoding = str2;\n        pMVar4->buffer_size = buffer_size + 4;\n        pMVar4->connection = connection;\n        pMVar4->state = PP_Init;\n        pMVar4->ikvi = iter;\n        pMVar4->blen = sVar3;\n        pMVar4->cls = iter_cls;\n        pMVar4->boundary = __s;\n        pMVar4->skip_rn = RN_Inactive;\n      }\n      return pMVar4;\n    }" { (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) (expression_statement "__s = (char *)0x0;" (assignment_expression "__s = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_00023b94:\n      pMVar4 = (MHD_PostProcessor *)calloc(1,buffer_size + 0x65);" statement_identifier : (expression_statement "pMVar4 = (MHD_PostProcessor *)calloc(1,buffer_size + 0x65);" (assignment_expression "pMVar4 = (MHD_PostProcessor *)calloc(1,buffer_size + 0x65)" identifier = (cast_expression "(MHD_PostProcessor *)calloc(1,buffer_size + 0x65)" ( (type_descriptor "MHD_PostProcessor *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "calloc(1,buffer_size + 0x65)" identifier (argument_list "(1,buffer_size + 0x65)" ( number_literal , (binary_expression "buffer_size + 0x65" identifier + number_literal) ))))) ;)) (if_statement "if (pMVar4 != (MHD_PostProcessor *)0x0) {\n        pMVar4->encoding = str2;\n        pMVar4->buffer_size = buffer_size + 4;\n        pMVar4->connection = connection;\n        pMVar4->state = PP_Init;\n        pMVar4->ikvi = iter;\n        pMVar4->blen = sVar3;\n        pMVar4->cls = iter_cls;\n        pMVar4->boundary = __s;\n        pMVar4->skip_rn = RN_Inactive;\n      }" if (parenthesized_expression "(pMVar4 != (MHD_PostProcessor *)0x0)" ( (binary_expression "pMVar4 != (MHD_PostProcessor *)0x0" identifier != (cast_expression "(MHD_PostProcessor *)0x0" ( (type_descriptor "MHD_PostProcessor *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pMVar4->encoding = str2;\n        pMVar4->buffer_size = buffer_size + 4;\n        pMVar4->connection = connection;\n        pMVar4->state = PP_Init;\n        pMVar4->ikvi = iter;\n        pMVar4->blen = sVar3;\n        pMVar4->cls = iter_cls;\n        pMVar4->boundary = __s;\n        pMVar4->skip_rn = RN_Inactive;\n      }" { (expression_statement "pMVar4->encoding = str2;" (assignment_expression "pMVar4->encoding = str2" (field_expression "pMVar4->encoding" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar4->buffer_size = buffer_size + 4;" (assignment_expression "pMVar4->buffer_size = buffer_size + 4" (field_expression "pMVar4->buffer_size" identifier -> field_identifier) = (binary_expression "buffer_size + 4" identifier + number_literal)) ;) (expression_statement "pMVar4->connection = connection;" (assignment_expression "pMVar4->connection = connection" (field_expression "pMVar4->connection" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar4->state = PP_Init;" (assignment_expression "pMVar4->state = PP_Init" (field_expression "pMVar4->state" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar4->ikvi = iter;" (assignment_expression "pMVar4->ikvi = iter" (field_expression "pMVar4->ikvi" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar4->blen = sVar3;" (assignment_expression "pMVar4->blen = sVar3" (field_expression "pMVar4->blen" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar4->cls = iter_cls;" (assignment_expression "pMVar4->cls = iter_cls" (field_expression "pMVar4->cls" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar4->boundary = __s;" (assignment_expression "pMVar4->boundary = __s" (field_expression "pMVar4->boundary" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar4->skip_rn = RN_Inactive;" (assignment_expression "pMVar4->skip_rn = RN_Inactive" (field_expression "pMVar4->skip_rn" identifier -> field_identifier) = identifier) ;) })) (return_statement "return pMVar4;" return identifier ;) })) (expression_statement "iVar1 = MHD_str_equal_caseless_n_("multipart/form-data",str2,0x13);" (assignment_expression "iVar1 = MHD_str_equal_caseless_n_("multipart/form-data",str2,0x13)" identifier = (call_expression "MHD_str_equal_caseless_n_("multipart/form-data",str2,0x13)" identifier (argument_list "("multipart/form-data",str2,0x13)" ( (string_literal ""multipart/form-data"" " string_content ") , identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      pcVar2 = strstr(str2 + 0x13,"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        __s = pcVar2 + 9;\n        sVar3 = strlen(__s);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= buffer_size)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            __s = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      pcVar2 = strstr(str2 + 0x13,"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        __s = pcVar2 + 9;\n        sVar3 = strlen(__s);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= buffer_size)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            __s = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }" { (expression_statement "pcVar2 = strstr(str2 + 0x13,"boundary=");" (assignment_expression "pcVar2 = strstr(str2 + 0x13,"boundary=")" identifier = (call_expression "strstr(str2 + 0x13,"boundary=")" identifier (argument_list "(str2 + 0x13,"boundary=")" ( (binary_expression "str2 + 0x13" identifier + number_literal) , (string_literal ""boundary="" " string_content ") )))) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n        __s = pcVar2 + 9;\n        sVar3 = strlen(__s);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= buffer_size)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            __s = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        __s = pcVar2 + 9;\n        sVar3 = strlen(__s);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= buffer_size)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            __s = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }" { (expression_statement "__s = pcVar2 + 9;" (assignment_expression "__s = pcVar2 + 9" identifier = (binary_expression "pcVar2 + 9" identifier + number_literal)) ;) (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (if_statement "if ((sVar3 != 0) && (sVar3 * 2 + 2 <= buffer_size)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            __s = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_00023b94;\n        }" if (parenthesized_expression "((sVar3 != 0) && (sVar3 * 2 + 2 <= buffer_size))" ( (binary_expression "(sVar3 != 0) && (sVar3 * 2 + 2 <= buffer_size)" (parenthesized_expression "(sVar3 != 0)" ( (binary_expression "sVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(sVar3 * 2 + 2 <= buffer_size)" ( (binary_expression "sVar3 * 2 + 2 <= buffer_size" (binary_expression "sVar3 * 2 + 2" (binary_expression "sVar3 * 2" identifier * number_literal) + number_literal) <= identifier) ))) )) (compound_statement "{\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            __s = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_00023b94;\n        }" { (if_statement "if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            __s = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }" if (parenthesized_expression "((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"'))" ( (binary_expression "(pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')" (parenthesized_expression "(pcVar2[9] == '\"')" ( (binary_expression "pcVar2[9] == '\"'" (subscript_expression "pcVar2[9]" identifier [ number_literal ]) == (char_literal "'\"'" ' escape_sequence ')) )) && (parenthesized_expression "(pcVar2[sVar3 + 8] == '\"')" ( (binary_expression "pcVar2[sVar3 + 8] == '\"'" (subscript_expression "pcVar2[sVar3 + 8]" identifier [ (binary_expression "sVar3 + 8" identifier + number_literal) ]) == (char_literal "'\"'" ' escape_sequence ')) ))) )) (compound_statement "{\n            __s = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }" { (expression_statement "__s = pcVar2 + 10;" (assignment_expression "__s = pcVar2 + 10" identifier = (binary_expression "pcVar2 + 10" identifier + number_literal)) ;) (expression_statement "sVar3 = sVar3 - 2;" (assignment_expression "sVar3 = sVar3 - 2" identifier = (binary_expression "sVar3 - 2" identifier - number_literal)) ;) })) (goto_statement "goto LAB_00023b94;" goto statement_identifier ;) })) })) })) })) (return_statement "return (MHD_PostProcessor *)0x0;" return (cast_expression "(MHD_PostProcessor *)0x0" ( (type_descriptor "MHD_PostProcessor *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "int * MHD_create_post_processor(int param_1,uint param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  size_t sVar4;\n  int *piVar5;\n  char *__s;\n  \n  if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {\n    (*DAT_0003406c)(DAT_00034068,"postprocessor.c",0x121,0);\n  }\n  iVar1 = MHD_lookup_connection_value(param_1,1,"Content-Type");\n  if (iVar1 != 0) {\n    iVar2 = FUN_00021340("application/x-www-form-urlencoded",iVar1,0x21);\n    if (iVar2 != 0) {\n      sVar4 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      piVar5 = (int *)calloc(1,param_2 + 0x65);\n      if (piVar5 != (int *)0x0) {\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }\n      return piVar5;\n    }\n    iVar2 = FUN_00021340("multipart/form-data",iVar1,0x13);\n    if (iVar2 != 0) {\n      pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }\n  }\n  return (int *)0x0;\n}\n\n" (function_definition "int * MHD_create_post_processor(int param_1,uint param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  size_t sVar4;\n  int *piVar5;\n  char *__s;\n  \n  if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {\n    (*DAT_0003406c)(DAT_00034068,"postprocessor.c",0x121,0);\n  }\n  iVar1 = MHD_lookup_connection_value(param_1,1,"Content-Type");\n  if (iVar1 != 0) {\n    iVar2 = FUN_00021340("application/x-www-form-urlencoded",iVar1,0x21);\n    if (iVar2 != 0) {\n      sVar4 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      piVar5 = (int *)calloc(1,param_2 + 0x65);\n      if (piVar5 != (int *)0x0) {\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }\n      return piVar5;\n    }\n    iVar2 = FUN_00021340("multipart/form-data",iVar1,0x13);\n    if (iVar2 != 0) {\n      pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }\n  }\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* MHD_create_post_processor(int param_1,uint param_2,int param_3,int param_4)" * (function_declarator "MHD_create_post_processor(int param_1,uint param_2,int param_3,int param_4)" identifier (parameter_list "(int param_1,uint param_2,int param_3,int param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  size_t sVar4;\n  int *piVar5;\n  char *__s;\n  \n  if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {\n    (*DAT_0003406c)(DAT_00034068,"postprocessor.c",0x121,0);\n  }\n  iVar1 = MHD_lookup_connection_value(param_1,1,"Content-Type");\n  if (iVar1 != 0) {\n    iVar2 = FUN_00021340("application/x-www-form-urlencoded",iVar1,0x21);\n    if (iVar2 != 0) {\n      sVar4 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      piVar5 = (int *)calloc(1,param_2 + 0x65);\n      if (piVar5 != (int *)0x0) {\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }\n      return piVar5;\n    }\n    iVar2 = FUN_00021340("multipart/form-data",iVar1,0x13);\n    if (iVar2 != 0) {\n      pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }\n  }\n  return (int *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (if_statement "if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {\n    (*DAT_0003406c)(DAT_00034068,"postprocessor.c",0x121,0);\n  }" if (parenthesized_expression "((param_1 == 0 || param_3 == 0) || (param_2 < 0x100))" ( (binary_expression "(param_1 == 0 || param_3 == 0) || (param_2 < 0x100)" (parenthesized_expression "(param_1 == 0 || param_3 == 0)" ( (binary_expression "param_1 == 0 || param_3 == 0" (binary_expression "param_1 == 0" identifier == number_literal) || (binary_expression "param_3 == 0" identifier == number_literal)) )) || (parenthesized_expression "(param_2 < 0x100)" ( (binary_expression "param_2 < 0x100" identifier < number_literal) ))) )) (compound_statement "{\n    (*DAT_0003406c)(DAT_00034068,"postprocessor.c",0x121,0);\n  }" { (expression_statement "(*DAT_0003406c)(DAT_00034068,"postprocessor.c",0x121,0);" (call_expression "(*DAT_0003406c)(DAT_00034068,"postprocessor.c",0x121,0)" (parenthesized_expression "(*DAT_0003406c)" ( (pointer_expression "*DAT_0003406c" * identifier) )) (argument_list "(DAT_00034068,"postprocessor.c",0x121,0)" ( identifier , (string_literal ""postprocessor.c"" " string_content ") , number_literal , number_literal ))) ;) })) (expression_statement "iVar1 = MHD_lookup_connection_value(param_1,1,"Content-Type");" (assignment_expression "iVar1 = MHD_lookup_connection_value(param_1,1,"Content-Type")" identifier = (call_expression "MHD_lookup_connection_value(param_1,1,"Content-Type")" identifier (argument_list "(param_1,1,"Content-Type")" ( identifier , number_literal , (string_literal ""Content-Type"" " string_content ") )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar2 = FUN_00021340("application/x-www-form-urlencoded",iVar1,0x21);\n    if (iVar2 != 0) {\n      sVar4 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      piVar5 = (int *)calloc(1,param_2 + 0x65);\n      if (piVar5 != (int *)0x0) {\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }\n      return piVar5;\n    }\n    iVar2 = FUN_00021340("multipart/form-data",iVar1,0x13);\n    if (iVar2 != 0) {\n      pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = FUN_00021340("application/x-www-form-urlencoded",iVar1,0x21);\n    if (iVar2 != 0) {\n      sVar4 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      piVar5 = (int *)calloc(1,param_2 + 0x65);\n      if (piVar5 != (int *)0x0) {\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }\n      return piVar5;\n    }\n    iVar2 = FUN_00021340("multipart/form-data",iVar1,0x13);\n    if (iVar2 != 0) {\n      pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }\n  }" { (expression_statement "iVar2 = FUN_00021340("application/x-www-form-urlencoded",iVar1,0x21);" (assignment_expression "iVar2 = FUN_00021340("application/x-www-form-urlencoded",iVar1,0x21)" identifier = (call_expression "FUN_00021340("application/x-www-form-urlencoded",iVar1,0x21)" identifier (argument_list "("application/x-www-form-urlencoded",iVar1,0x21)" ( (string_literal ""application/x-www-form-urlencoded"" " string_content ") , identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n      sVar4 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      piVar5 = (int *)calloc(1,param_2 + 0x65);\n      if (piVar5 != (int *)0x0) {\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }\n      return piVar5;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      sVar4 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      piVar5 = (int *)calloc(1,param_2 + 0x65);\n      if (piVar5 != (int *)0x0) {\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }\n      return piVar5;\n    }" { (expression_statement "sVar4 = 0;" (assignment_expression "sVar4 = 0" identifier = number_literal) ;) (expression_statement "__s = (char *)0x0;" (assignment_expression "__s = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_00023b94:\n      piVar5 = (int *)calloc(1,param_2 + 0x65);" statement_identifier : (expression_statement "piVar5 = (int *)calloc(1,param_2 + 0x65);" (assignment_expression "piVar5 = (int *)calloc(1,param_2 + 0x65)" identifier = (cast_expression "(int *)calloc(1,param_2 + 0x65)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "calloc(1,param_2 + 0x65)" identifier (argument_list "(1,param_2 + 0x65)" ( number_literal , (binary_expression "param_2 + 0x65" identifier + number_literal) ))))) ;)) (if_statement "if (piVar5 != (int *)0x0) {\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }" if (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }" { (expression_statement "piVar5[3] = iVar1;" (assignment_expression "piVar5[3] = iVar1" (subscript_expression "piVar5[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar5[0xc] = param_2 + 4;" (assignment_expression "piVar5[0xc] = param_2 + 4" (subscript_expression "piVar5[0xc]" identifier [ number_literal ]) = (binary_expression "param_2 + 4" identifier + number_literal)) ;) (expression_statement "*piVar5 = param_1;" (assignment_expression "*piVar5 = param_1" (pointer_expression "*piVar5" * identifier) = identifier) ;) (expression_statement "piVar5[0x14] = 2;" (assignment_expression "piVar5[0x14] = 2" (subscript_expression "piVar5[0x14]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar5[1] = param_3;" (assignment_expression "piVar5[1] = param_3" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar5[0x11] = sVar4;" (assignment_expression "piVar5[0x11] = sVar4" (subscript_expression "piVar5[0x11]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar5[2] = param_4;" (assignment_expression "piVar5[2] = param_4" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar5[4] = (int)__s;" (assignment_expression "piVar5[4] = (int)__s" (subscript_expression "piVar5[4]" identifier [ number_literal ]) = (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar5[0x15] = 0;" (assignment_expression "piVar5[0x15] = 0" (subscript_expression "piVar5[0x15]" identifier [ number_literal ]) = number_literal) ;) })) (return_statement "return piVar5;" return identifier ;) })) (expression_statement "iVar2 = FUN_00021340("multipart/form-data",iVar1,0x13);" (assignment_expression "iVar2 = FUN_00021340("multipart/form-data",iVar1,0x13)" identifier = (call_expression "FUN_00021340("multipart/form-data",iVar1,0x13)" identifier (argument_list "("multipart/form-data",iVar1,0x13)" ( (string_literal ""multipart/form-data"" " string_content ") , identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n      pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }" { (expression_statement "pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=");" (assignment_expression "pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=")" identifier = (call_expression "strstr((char *)(iVar1 + 0x13),"boundary=")" identifier (argument_list "((char *)(iVar1 + 0x13),"boundary=")" ( (cast_expression "(char *)(iVar1 + 0x13)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x13)" ( (binary_expression "iVar1 + 0x13" identifier + number_literal) ))) , (string_literal ""boundary="" " string_content ") )))) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }" { (expression_statement "__s = pcVar3 + 9;" (assignment_expression "__s = pcVar3 + 9" identifier = (binary_expression "pcVar3 + 9" identifier + number_literal)) ;) (expression_statement "sVar4 = strlen(__s);" (assignment_expression "sVar4 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (if_statement "if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }" if (parenthesized_expression "((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2))" ( (binary_expression "(sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)" (parenthesized_expression "(sVar4 != 0)" ( (binary_expression "sVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "(sVar4 * 2 + 2 <= param_2)" ( (binary_expression "sVar4 * 2 + 2 <= param_2" (binary_expression "sVar4 * 2 + 2" (binary_expression "sVar4 * 2" identifier * number_literal) + number_literal) <= identifier) ))) )) (compound_statement "{\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }" { (if_statement "if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }" if (parenthesized_expression "((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"'))" ( (binary_expression "(pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')" (parenthesized_expression "(pcVar3[9] == '\"')" ( (binary_expression "pcVar3[9] == '\"'" (subscript_expression "pcVar3[9]" identifier [ number_literal ]) == (char_literal "'\"'" ' escape_sequence ')) )) && (parenthesized_expression "(pcVar3[sVar4 + 8] == '\"')" ( (binary_expression "pcVar3[sVar4 + 8] == '\"'" (subscript_expression "pcVar3[sVar4 + 8]" identifier [ (binary_expression "sVar4 + 8" identifier + number_literal) ]) == (char_literal "'\"'" ' escape_sequence ')) ))) )) (compound_statement "{\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }" { (expression_statement "__s = pcVar3 + 10;" (assignment_expression "__s = pcVar3 + 10" identifier = (binary_expression "pcVar3 + 10" identifier + number_literal)) ;) (expression_statement "sVar4 = sVar4 - 2;" (assignment_expression "sVar4 = sVar4 - 2" identifier = (binary_expression "sVar4 - 2" identifier - number_literal)) ;) })) (goto_statement "goto LAB_00023b94;" goto statement_identifier ;) })) })) })) })) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) || (binary_expression IDENT == LIT)) )) || (parenthesized_expression ( (binary_expression IDENT < LIT) ))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (string_literal " string_content ") , LIT , LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (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 = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , (binary_expression IDENT + LIT) ))))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (return_statement return IDENT ;) })) (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 ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (binary_expression (binary_expression IDENT * LIT) + LIT) <= IDENT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) })) (goto_statement goto statement_identifier ;) })) })) })) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "int * MHD_create_post_processor(int param_1,uint param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  size_t sVar4;\n  int *piVar5;\n  char *__s;\n  \n  if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {\n    (*DAT_0003406c)(DAT_00034068,"postprocessor.c",0x121,0);\n  }\n  iVar1 = MHD_lookup_connection_value(param_1,1,"Content-Type");\n  if (iVar1 != 0) {\n    iVar2 = FUN_00021340("application/x-www-form-urlencoded",iVar1,0x21);\n    if (iVar2 != 0) {\n      sVar4 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      piVar5 = (int *)calloc(1,param_2 + 0x65);\n      if (piVar5 != (int *)0x0) {\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }\n      return piVar5;\n    }\n    iVar2 = FUN_00021340("multipart/form-data",iVar1,0x13);\n    if (iVar2 != 0) {\n      pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }\n  }\n  return (int *)0x0;\n}" (primitive_type "int") (pointer_declarator "* MHD_create_post_processor(int param_1,uint param_2,int param_3,int param_4)" (* "*") (function_declarator "MHD_create_post_processor(int param_1,uint param_2,int param_3,int param_4)" (identifier "MHD_create_post_processor") (parameter_list "(int param_1,uint param_2,int param_3,int param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")")))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  size_t sVar4;\n  int *piVar5;\n  char *__s;\n  \n  if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {\n    (*DAT_0003406c)(DAT_00034068,"postprocessor.c",0x121,0);\n  }\n  iVar1 = MHD_lookup_connection_value(param_1,1,"Content-Type");\n  if (iVar1 != 0) {\n    iVar2 = FUN_00021340("application/x-www-form-urlencoded",iVar1,0x21);\n    if (iVar2 != 0) {\n      sVar4 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      piVar5 = (int *)calloc(1,param_2 + 0x65);\n      if (piVar5 != (int *)0x0) {\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }\n      return piVar5;\n    }\n    iVar2 = FUN_00021340("multipart/form-data",iVar1,0x13);\n    if (iVar2 != 0) {\n      pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }\n  }\n  return (int *)0x0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "size_t sVar4;" (primitive_type "size_t") (identifier "sVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (if_statement "if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {\n    (*DAT_0003406c)(DAT_00034068,"postprocessor.c",0x121,0);\n  }" (if "if") (parenthesized_expression "((param_1 == 0 || param_3 == 0) || (param_2 < 0x100))" (( "(") (binary_expression "(param_1 == 0 || param_3 == 0) || (param_2 < 0x100)" (parenthesized_expression "(param_1 == 0 || param_3 == 0)" (( "(") (binary_expression "param_1 == 0 || param_3 == 0" (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) (|| "||") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0"))) () ")")) (|| "||") (parenthesized_expression "(param_2 < 0x100)" (( "(") (binary_expression "param_2 < 0x100" (identifier "param_2") (< "<") (number_literal "0x100")) () ")"))) () ")")) (compound_statement "{\n    (*DAT_0003406c)(DAT_00034068,"postprocessor.c",0x121,0);\n  }" ({ "{") (expression_statement "(*DAT_0003406c)(DAT_00034068,"postprocessor.c",0x121,0);" (call_expression "(*DAT_0003406c)(DAT_00034068,"postprocessor.c",0x121,0)" (parenthesized_expression "(*DAT_0003406c)" (( "(") (pointer_expression "*DAT_0003406c" (* "*") (identifier "DAT_0003406c")) () ")")) (argument_list "(DAT_00034068,"postprocessor.c",0x121,0)" (( "(") (identifier "DAT_00034068") (, ",") (string_literal ""postprocessor.c"" (" """) (string_content "postprocessor.c") (" """)) (, ",") (number_literal "0x121") (, ",") (number_literal "0") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = MHD_lookup_connection_value(param_1,1,"Content-Type");" (assignment_expression "iVar1 = MHD_lookup_connection_value(param_1,1,"Content-Type")" (identifier "iVar1") (= "=") (call_expression "MHD_lookup_connection_value(param_1,1,"Content-Type")" (identifier "MHD_lookup_connection_value") (argument_list "(param_1,1,"Content-Type")" (( "(") (identifier "param_1") (, ",") (number_literal "1") (, ",") (string_literal ""Content-Type"" (" """) (string_content "Content-Type") (" """)) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    iVar2 = FUN_00021340("application/x-www-form-urlencoded",iVar1,0x21);\n    if (iVar2 != 0) {\n      sVar4 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      piVar5 = (int *)calloc(1,param_2 + 0x65);\n      if (piVar5 != (int *)0x0) {\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }\n      return piVar5;\n    }\n    iVar2 = FUN_00021340("multipart/form-data",iVar1,0x13);\n    if (iVar2 != 0) {\n      pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = FUN_00021340("application/x-www-form-urlencoded",iVar1,0x21);\n    if (iVar2 != 0) {\n      sVar4 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      piVar5 = (int *)calloc(1,param_2 + 0x65);\n      if (piVar5 != (int *)0x0) {\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }\n      return piVar5;\n    }\n    iVar2 = FUN_00021340("multipart/form-data",iVar1,0x13);\n    if (iVar2 != 0) {\n      pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }\n  }" ({ "{") (expression_statement "iVar2 = FUN_00021340("application/x-www-form-urlencoded",iVar1,0x21);" (assignment_expression "iVar2 = FUN_00021340("application/x-www-form-urlencoded",iVar1,0x21)" (identifier "iVar2") (= "=") (call_expression "FUN_00021340("application/x-www-form-urlencoded",iVar1,0x21)" (identifier "FUN_00021340") (argument_list "("application/x-www-form-urlencoded",iVar1,0x21)" (( "(") (string_literal ""application/x-www-form-urlencoded"" (" """) (string_content "application/x-www-form-urlencoded") (" """)) (, ",") (identifier "iVar1") (, ",") (number_literal "0x21") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n      sVar4 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      piVar5 = (int *)calloc(1,param_2 + 0x65);\n      if (piVar5 != (int *)0x0) {\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }\n      return piVar5;\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      sVar4 = 0;\n      __s = (char *)0x0;\nLAB_00023b94:\n      piVar5 = (int *)calloc(1,param_2 + 0x65);\n      if (piVar5 != (int *)0x0) {\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }\n      return piVar5;\n    }" ({ "{") (expression_statement "sVar4 = 0;" (assignment_expression "sVar4 = 0" (identifier "sVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "__s = (char *)0x0;" (assignment_expression "__s = (char *)0x0" (identifier "__s") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (labeled_statement "LAB_00023b94:\n      piVar5 = (int *)calloc(1,param_2 + 0x65);" (statement_identifier "LAB_00023b94") (: ":") (expression_statement "piVar5 = (int *)calloc(1,param_2 + 0x65);" (assignment_expression "piVar5 = (int *)calloc(1,param_2 + 0x65)" (identifier "piVar5") (= "=") (cast_expression "(int *)calloc(1,param_2 + 0x65)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "calloc(1,param_2 + 0x65)" (identifier "calloc") (argument_list "(1,param_2 + 0x65)" (( "(") (number_literal "1") (, ",") (binary_expression "param_2 + 0x65" (identifier "param_2") (+ "+") (number_literal "0x65")) () ")"))))) (; ";"))) (if_statement "if (piVar5 != (int *)0x0) {\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }" (if "if") (parenthesized_expression "(piVar5 != (int *)0x0)" (( "(") (binary_expression "piVar5 != (int *)0x0" (identifier "piVar5") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        piVar5[3] = iVar1;\n        piVar5[0xc] = param_2 + 4;\n        *piVar5 = param_1;\n        piVar5[0x14] = 2;\n        piVar5[1] = param_3;\n        piVar5[0x11] = sVar4;\n        piVar5[2] = param_4;\n        piVar5[4] = (int)__s;\n        piVar5[0x15] = 0;\n      }" ({ "{") (expression_statement "piVar5[3] = iVar1;" (assignment_expression "piVar5[3] = iVar1" (subscript_expression "piVar5[3]" (identifier "piVar5") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "piVar5[0xc] = param_2 + 4;" (assignment_expression "piVar5[0xc] = param_2 + 4" (subscript_expression "piVar5[0xc]" (identifier "piVar5") ([ "[") (number_literal "0xc") (] "]")) (= "=") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "*piVar5 = param_1;" (assignment_expression "*piVar5 = param_1" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "piVar5[0x14] = 2;" (assignment_expression "piVar5[0x14] = 2" (subscript_expression "piVar5[0x14]" (identifier "piVar5") ([ "[") (number_literal "0x14") (] "]")) (= "=") (number_literal "2")) (; ";")) (expression_statement "piVar5[1] = param_3;" (assignment_expression "piVar5[1] = param_3" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "piVar5[0x11] = sVar4;" (assignment_expression "piVar5[0x11] = sVar4" (subscript_expression "piVar5[0x11]" (identifier "piVar5") ([ "[") (number_literal "0x11") (] "]")) (= "=") (identifier "sVar4")) (; ";")) (expression_statement "piVar5[2] = param_4;" (assignment_expression "piVar5[2] = param_4" (subscript_expression "piVar5[2]" (identifier "piVar5") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "piVar5[4] = (int)__s;" (assignment_expression "piVar5[4] = (int)__s" (subscript_expression "piVar5[4]" (identifier "piVar5") ([ "[") (number_literal "4") (] "]")) (= "=") (cast_expression "(int)__s" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s"))) (; ";")) (expression_statement "piVar5[0x15] = 0;" (assignment_expression "piVar5[0x15] = 0" (subscript_expression "piVar5[0x15]" (identifier "piVar5") ([ "[") (number_literal "0x15") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return piVar5;" (return "return") (identifier "piVar5") (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_00021340("multipart/form-data",iVar1,0x13);" (assignment_expression "iVar2 = FUN_00021340("multipart/form-data",iVar1,0x13)" (identifier "iVar2") (= "=") (call_expression "FUN_00021340("multipart/form-data",iVar1,0x13)" (identifier "FUN_00021340") (argument_list "("multipart/form-data",iVar1,0x13)" (( "(") (string_literal ""multipart/form-data"" (" """) (string_content "multipart/form-data") (" """)) (, ",") (identifier "iVar1") (, ",") (number_literal "0x13") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n      pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }\n    }" ({ "{") (expression_statement "pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=");" (assignment_expression "pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=")" (identifier "pcVar3") (= "=") (call_expression "strstr((char *)(iVar1 + 0x13),"boundary=")" (identifier "strstr") (argument_list "((char *)(iVar1 + 0x13),"boundary=")" (( "(") (cast_expression "(char *)(iVar1 + 0x13)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x13)" (( "(") (binary_expression "iVar1 + 0x13" (identifier "iVar1") (+ "+") (number_literal "0x13")) () ")"))) (, ",") (string_literal ""boundary="" (" """) (string_content "boundary=") (" """)) () ")")))) (; ";")) (if_statement "if (pcVar3 != (char *)0x0) {\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }" (if "if") (parenthesized_expression "(pcVar3 != (char *)0x0)" (( "(") (binary_expression "pcVar3 != (char *)0x0" (identifier "pcVar3") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        __s = pcVar3 + 9;\n        sVar4 = strlen(__s);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }\n      }" ({ "{") (expression_statement "__s = pcVar3 + 9;" (assignment_expression "__s = pcVar3 + 9" (identifier "__s") (= "=") (binary_expression "pcVar3 + 9" (identifier "pcVar3") (+ "+") (number_literal "9"))) (; ";")) (expression_statement "sVar4 = strlen(__s);" (assignment_expression "sVar4 = strlen(__s)" (identifier "sVar4") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (if_statement "if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }" (if "if") (parenthesized_expression "((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2))" (( "(") (binary_expression "(sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)" (parenthesized_expression "(sVar4 != 0)" (( "(") (binary_expression "sVar4 != 0" (identifier "sVar4") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(sVar4 * 2 + 2 <= param_2)" (( "(") (binary_expression "sVar4 * 2 + 2 <= param_2" (binary_expression "sVar4 * 2 + 2" (binary_expression "sVar4 * 2" (identifier "sVar4") (* "*") (number_literal "2")) (+ "+") (number_literal "2")) (<= "<=") (identifier "param_2")) () ")"))) () ")")) (compound_statement "{\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_00023b94;\n        }" ({ "{") (if_statement "if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }" (if "if") (parenthesized_expression "((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"'))" (( "(") (binary_expression "(pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')" (parenthesized_expression "(pcVar3[9] == '\"')" (( "(") (binary_expression "pcVar3[9] == '\"'" (subscript_expression "pcVar3[9]" (identifier "pcVar3") ([ "[") (number_literal "9") (] "]")) (== "==") (char_literal "'\"'" (' "'") (escape_sequence "\"") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(pcVar3[sVar4 + 8] == '\"')" (( "(") (binary_expression "pcVar3[sVar4 + 8] == '\"'" (subscript_expression "pcVar3[sVar4 + 8]" (identifier "pcVar3") ([ "[") (binary_expression "sVar4 + 8" (identifier "sVar4") (+ "+") (number_literal "8")) (] "]")) (== "==") (char_literal "'\"'" (' "'") (escape_sequence "\"") (' "'"))) () ")"))) () ")")) (compound_statement "{\n            __s = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }" ({ "{") (expression_statement "__s = pcVar3 + 10;" (assignment_expression "__s = pcVar3 + 10" (identifier "__s") (= "=") (binary_expression "pcVar3 + 10" (identifier "pcVar3") (+ "+") (number_literal "10"))) (; ";")) (expression_statement "sVar4 = sVar4 - 2;" (assignment_expression "sVar4 = sVar4 - 2" (identifier "sVar4") (= "=") (binary_expression "sVar4 - 2" (identifier "sVar4") (- "-") (number_literal "2"))) (; ";")) (} "}"))) (goto_statement "goto LAB_00023b94;" (goto "goto") (statement_identifier "LAB_00023b94") (; ";")) (} "}"))) (} "}"))) (} "}"))) (} "}"))) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))

/* 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 */

type_1 *
function_1
          (type_2 *var_1,size_t var_3,type_3 var_2,void *iter_cls)

{
  char *var_5;
  int var_7;
  char *var_11;
  size_t var_13;
  type_1 *var_9;
  char *__s;
  
  if ((var_1 == (type_2 *)0x0 || var_2 == (type_3)0x0) ||
     (var_3 < 0x100)) {
    (*mhd_panic)(mhd_panic_cls,"postprocessor.c",0x121,(char *)0x0);
  }
  var_5 = var_4(var_1,MHD_HEADER_KIND,"Content-Type");
  if (var_5 != (char *)0x0) {
    var_7 = var_6("application/x-www-form-urlencoded",var_5,0x21);
    if (var_7 != 0) {
      var_13 = 0;
      __s = (char *)0x0;
LAB_00023b94:
      var_9 = (type_1 *)var_8(1,var_3 + 0x65);
      if (var_9 != (type_1 *)0x0) {
        var_9->encoding = var_5;
        var_9->var_3 = var_3 + 4;
        var_9->var_1 = var_1;
        var_9->state = PP_Init;
        var_9->ikvi = var_2;
        var_9->blen = var_13;
        var_9->cls = iter_cls;
        var_9->boundary = __s;
        var_9->skip_rn = RN_Inactive;
      }
      return var_9;
    }
    var_7 = var_6("multipart/form-data",var_5,0x13);
    if (var_7 != 0) {
      var_11 = var_10(var_5 + 0x13,"boundary=");
      if (var_11 != (char *)0x0) {
        __s = var_11 + 9;
        var_13 = var_12(__s);
        if ((var_13 != 0) && (var_13 * 2 + 2 <= var_3)) {
          if ((var_11[9] == '\"') && (var_11[var_13 + 8] == '\"')) {
            __s = var_11 + 10;
            var_13 = var_13 - 2;
          }
          goto LAB_00023b94;
        }
      }
    }
  }
  return (type_1 *)0x0;
}


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

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

int * MASKED(int param_1,uint param_2,int param_3,int param_4)

{
  int iVar1;
  int iVar2;
  char *pcVar3;
  size_t sVar4;
  int *piVar5;
  char *__s;
  
  if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {
    (*DAT_0003406c)(DAT_00034068,"postprocessor.c",0x121,0);
  }
  iVar1 = MHD_lookup_connection_value(param_1,1,"Content-Type");
  if (iVar1 != 0) {
    iVar2 = FUN_00021340("application/x-www-form-urlencoded",iVar1,0x21);
    if (iVar2 != 0) {
      sVar4 = 0;
      __s = (char *)0x0;
LAB_00023b94:
      piVar5 = (int *)calloc(1,param_2 + 0x65);
      if (piVar5 != (int *)0x0) {
        piVar5[3] = iVar1;
        piVar5[0xc] = param_2 + 4;
        *piVar5 = param_1;
        piVar5[0x14] = 2;
        piVar5[1] = param_3;
        piVar5[0x11] = sVar4;
        piVar5[2] = param_4;
        piVar5[4] = (int)__s;
        piVar5[0x15] = 0;
      }
      return piVar5;
    }
    iVar2 = FUN_00021340("multipart/form-data",iVar1,0x13);
    if (iVar2 != 0) {
      pcVar3 = strstr((char *)(iVar1 + 0x13),"boundary=");
      if (pcVar3 != (char *)0x0) {
        __s = pcVar3 + 9;
        sVar4 = strlen(__s);
        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= param_2)) {
          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {
            __s = pcVar3 + 10;
            sVar4 = sVar4 - 2;
          }
          goto LAB_00023b94;
        }
      }
    }
  }
  return (int *)0x0;
}

