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

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

{
  MHD_Result MVar1;
  int iVar2;
  char *pcVar3;
  size_t sVar4;
  MHD_PostProcessor *pMVar5;
  int in_GS_OFFSET;
  char *local_34;
  char *encoding;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x20159;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if ((connection == (MHD_Connection *)0x0 || iter == (MHD_PostDataIterator)0x0) ||
     (buffer_size < 0x100)) {
    (*mhd_panic)(mhd_panic_cls,"postprocessor.c",0x126,(char *)0x0);
  }
  MVar1 = MHD_lookup_connection_value_n
                    (connection,MHD_HEADER_KIND,"Content-Type",0xc,&encoding,(size_t *)0x0);
  if (MVar1 != MHD_NO) {
    iVar2 = MHD_str_equal_caseless_n_("application/x-www-form-urlencoded",encoding,0x21);
    if (iVar2 != 0) {
      sVar4 = 0;
      local_34 = (char *)0x0;
LAB_0002029a:
      pMVar5 = (MHD_PostProcessor *)calloc(1,buffer_size + 0x61);
      if (pMVar5 != (MHD_PostProcessor *)0x0) {
        pMVar5->ikvi = iter;
        pMVar5->connection = connection;
        pMVar5->buffer_size = buffer_size + 4;
        pMVar5->cls = iter_cls;
        pMVar5->state = PP_Init;
        pMVar5->blen = sVar4;
        pMVar5->boundary = local_34;
        pMVar5->skip_rn = RN_Inactive;
        pMVar5->encoding = encoding;
      }
      goto LAB_000202f0;
    }
    iVar2 = MHD_str_equal_caseless_n_("multipart/form-data",encoding,0x13);
    if (iVar2 != 0) {
      pcVar3 = strstr(encoding + 0x13,"boundary=");
      if (pcVar3 != (char *)0x0) {
        local_34 = pcVar3 + 9;
        sVar4 = strlen(local_34);
        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= buffer_size)) {
          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {
            local_34 = pcVar3 + 10;
            sVar4 = sVar4 - 2;
          }
          goto LAB_0002029a;
        }
      }
    }
  }
  pMVar5 = (MHD_PostProcessor *)0x0;
LAB_000202f0:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return pMVar5;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* 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;
  char *pcVar2;
  size_t sVar3;
  int *piVar4;
  int in_GS_OFFSET;
  char *local_34;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x20159;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {
    (*DAT_0003016c)(DAT_00030168,"postprocessor.c",0x126,0);
  }
  iVar1 = MHD_lookup_connection_value_n(param_1,1,"Content-Type",0xc,&local_24,0);
  if (iVar1 != 0) {
    iVar1 = FUN_0001d870("application/x-www-form-urlencoded",local_24,0x21);
    if (iVar1 != 0) {
      sVar3 = 0;
      local_34 = (char *)0x0;
LAB_0002029a:
      piVar4 = (int *)calloc(1,param_2 + 0x61);
      if (piVar4 != (int *)0x0) {
        piVar4[1] = param_3;
        *piVar4 = param_1;
        piVar4[0xb] = param_2 + 4;
        piVar4[2] = param_4;
        piVar4[0x13] = 2;
        piVar4[0x10] = sVar3;
        piVar4[4] = (int)local_34;
        piVar4[0x14] = 0;
        piVar4[3] = local_24;
      }
      goto LAB_000202f0;
    }
    iVar1 = FUN_0001d870("multipart/form-data",local_24,0x13);
    if (iVar1 != 0) {
      pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=");
      if (pcVar2 != (char *)0x0) {
        local_34 = pcVar2 + 9;
        sVar3 = strlen(local_34);
        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {
          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {
            local_34 = pcVar2 + 10;
            sVar3 = sVar3 - 2;
          }
          goto LAB_0002029a;
        }
      }
    }
  }
  piVar4 = (int *)0x0;
LAB_000202f0:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return piVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00025ce0();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00012570
ADD EBX,0xfea7
SUB ESP,0x2c
MOV EAX,dword ptr [ESP + 0x4c]
MOV ESI,dword ptr [ESP + 0x40]
MOV EDI,dword ptr [ESP + 0x48]
MOV dword ptr [ESP + 0x4],EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
TEST ESI,ESI
SETZ DL
TEST EDI,EDI
SETZ AL
OR DL,AL
JNZ 0x00020196
CMP dword ptr [ESP + 0x44],0xff
JA 0x000201b7
LEA EAX,[EBX + 0xffff822b]
PUSH 0x0
PUSH 0x126
PUSH EAX
LEA EAX,[EBX + 0x168]
PUSH dword ptr [EAX]
LEA EAX,[EBX + 0x16c]
CALL dword ptr [EAX]
ADD ESP,0x10
SUB ESP,0x8
PUSH 0x0
LEA EAX,[ESP + 0x24]
PUSH EAX
LEA EAX,[EBX + 0xffff8285]
PUSH 0xc
PUSH EAX
PUSH 0x1
PUSH ESI
CALL 0x000121f0
ADD ESP,0x20
TEST EAX,EAX
JZ 0x00020308
LEA EAX,[EBX + 0xffff83d0]
SUB ESP,0x4
PUSH 0x21
PUSH dword ptr [ESP + 0x20]
PUSH EAX
CALL 0x0001d870
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00020290
LEA EAX,[EBX + 0xffff8292]
SUB ESP,0x4
PUSH 0x13
PUSH dword ptr [ESP + 0x20]
PUSH EAX
CALL 0x0001d870
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00020308
MOV EAX,dword ptr [ESP + 0x18]
LEA EDX,[EBX + 0xffff82a6]
SUB ESP,0x8
PUSH EDX
ADD EAX,0x13
PUSH EAX
CALL 0x00011e70
ADD ESP,0x10
TEST EAX,EAX
MOV EBP,EAX
JZ 0x00020308
LEA EAX,[EAX + 0x9]
SUB ESP,0xc
MOV dword ptr [ESP + 0x14],EAX
PUSH EAX
CALL 0x00012100
ADD ESP,0x10
TEST EAX,EAX
MOV EDX,EAX
JZ 0x00020308
LEA EAX,[EAX + EAX*0x1 + 0x2]
CMP EAX,dword ptr [ESP + 0x44]
JA 0x00020308
CMP byte ptr [EBP + 0x9],0x22
JNZ 0x0002029a
MOV EAX,dword ptr [ESP + 0x8]
CMP byte ptr [EAX + EDX*0x1 + -0x1],0x22
JNZ 0x0002029a
LEA EAX,[EBP + 0xa]
SUB EDX,0x2
MOV dword ptr [ESP + 0x8],EAX
JMP 0x0002029a
XOR EDX,EDX
MOV dword ptr [ESP + 0x8],0x0
MOV EAX,dword ptr [ESP + 0x44]
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0x8
LEA EBP,[EAX + 0x4]
MOV EAX,dword ptr [ESP + 0x4c]
ADD EAX,0x61
PUSH EAX
PUSH 0x1
CALL 0x00012350
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000202f0
MOV ECX,dword ptr [ESP + 0x4]
MOV dword ptr [EAX + 0x4],EDI
MOV EDX,dword ptr [ESP + 0xc]
MOV EDI,dword ptr [ESP + 0x8]
MOV dword ptr [EAX],ESI
MOV dword ptr [EAX + 0x2c],EBP
MOV dword ptr [EAX + 0x8],ECX
MOV ECX,dword ptr [ESP + 0x18]
MOV dword ptr [EAX + 0x4c],0x2
MOV dword ptr [EAX + 0x40],EDX
MOV dword ptr [EAX + 0x10],EDI
MOV dword ptr [EAX + 0x50],0x0
MOV dword ptr [EAX + 0xc],ECX
MOV ECX,dword ptr [ESP + 0x1c]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x0002030c
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
XOR EAX,EAX
JMP 0x000202f0
CALL 0x00025ce0
(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  char *pcVar2;\n  size_t sVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  char *local_34;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20159;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {\n    (*DAT_0003016c)(DAT_00030168,"postprocessor.c",0x126,0);\n  }\n  iVar1 = MHD_lookup_connection_value_n(param_1,1,"Content-Type",0xc,&local_24,0);\n  if (iVar1 != 0) {\n    iVar1 = FUN_0001d870("application/x-www-form-urlencoded",local_24,0x21);\n    if (iVar1 != 0) {\n      sVar3 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      piVar4 = (int *)calloc(1,param_2 + 0x61);\n      if (piVar4 != (int *)0x0) {\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }\n      goto LAB_000202f0;\n    }\n    iVar1 = FUN_0001d870("multipart/form-data",local_24,0x13);\n    if (iVar1 != 0) {\n      pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }\n  }\n  piVar4 = (int *)0x0;\nLAB_000202f0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00025ce0();\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  char *pcVar2;\n  size_t sVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  char *local_34;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20159;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {\n    (*DAT_0003016c)(DAT_00030168,"postprocessor.c",0x126,0);\n  }\n  iVar1 = MHD_lookup_connection_value_n(param_1,1,"Content-Type",0xc,&local_24,0);\n  if (iVar1 != 0) {\n    iVar1 = FUN_0001d870("application/x-www-form-urlencoded",local_24,0x21);\n    if (iVar1 != 0) {\n      sVar3 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      piVar4 = (int *)calloc(1,param_2 + 0x61);\n      if (piVar4 != (int *)0x0) {\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }\n      goto LAB_000202f0;\n    }\n    iVar1 = FUN_0001d870("multipart/form-data",local_24,0x13);\n    if (iVar1 != 0) {\n      pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }\n  }\n  piVar4 = (int *)0x0;\nLAB_000202f0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00025ce0();\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  char *pcVar2;\n  size_t sVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  char *local_34;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20159;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {\n    (*DAT_0003016c)(DAT_00030168,"postprocessor.c",0x126,0);\n  }\n  iVar1 = MHD_lookup_connection_value_n(param_1,1,"Content-Type",0xc,&local_24,0);\n  if (iVar1 != 0) {\n    iVar1 = FUN_0001d870("application/x-www-form-urlencoded",local_24,0x21);\n    if (iVar1 != 0) {\n      sVar3 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      piVar4 = (int *)calloc(1,param_2 + 0x61);\n      if (piVar4 != (int *)0x0) {\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }\n      goto LAB_000202f0;\n    }\n    iVar1 = FUN_0001d870("multipart/form-data",local_24,0x13);\n    if (iVar1 != 0) {\n      pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }\n  }\n  piVar4 = (int *)0x0;\nLAB_000202f0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00025ce0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *local_34;" primitive_type (pointer_declarator "*local_34" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x20159;" (assignment_expression "uStack_14 = 0x20159" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {\n    (*DAT_0003016c)(DAT_00030168,"postprocessor.c",0x126,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_0003016c)(DAT_00030168,"postprocessor.c",0x126,0);\n  }" { (expression_statement "(*DAT_0003016c)(DAT_00030168,"postprocessor.c",0x126,0);" (call_expression "(*DAT_0003016c)(DAT_00030168,"postprocessor.c",0x126,0)" (parenthesized_expression "(*DAT_0003016c)" ( (pointer_expression "*DAT_0003016c" * identifier) )) (argument_list "(DAT_00030168,"postprocessor.c",0x126,0)" ( identifier , (string_literal ""postprocessor.c"" " string_content ") , number_literal , number_literal ))) ;) })) (expression_statement "iVar1 = MHD_lookup_connection_value_n(param_1,1,"Content-Type",0xc,&local_24,0);" (assignment_expression "iVar1 = MHD_lookup_connection_value_n(param_1,1,"Content-Type",0xc,&local_24,0)" identifier = (call_expression "MHD_lookup_connection_value_n(param_1,1,"Content-Type",0xc,&local_24,0)" identifier (argument_list "(param_1,1,"Content-Type",0xc,&local_24,0)" ( identifier , number_literal , (string_literal ""Content-Type"" " string_content ") , number_literal , (pointer_expression "&local_24" & identifier) , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = FUN_0001d870("application/x-www-form-urlencoded",local_24,0x21);\n    if (iVar1 != 0) {\n      sVar3 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      piVar4 = (int *)calloc(1,param_2 + 0x61);\n      if (piVar4 != (int *)0x0) {\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }\n      goto LAB_000202f0;\n    }\n    iVar1 = FUN_0001d870("multipart/form-data",local_24,0x13);\n    if (iVar1 != 0) {\n      pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = FUN_0001d870("application/x-www-form-urlencoded",local_24,0x21);\n    if (iVar1 != 0) {\n      sVar3 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      piVar4 = (int *)calloc(1,param_2 + 0x61);\n      if (piVar4 != (int *)0x0) {\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }\n      goto LAB_000202f0;\n    }\n    iVar1 = FUN_0001d870("multipart/form-data",local_24,0x13);\n    if (iVar1 != 0) {\n      pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }\n  }" { (expression_statement "iVar1 = FUN_0001d870("application/x-www-form-urlencoded",local_24,0x21);" (assignment_expression "iVar1 = FUN_0001d870("application/x-www-form-urlencoded",local_24,0x21)" identifier = (call_expression "FUN_0001d870("application/x-www-form-urlencoded",local_24,0x21)" identifier (argument_list "("application/x-www-form-urlencoded",local_24,0x21)" ( (string_literal ""application/x-www-form-urlencoded"" " string_content ") , identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      sVar3 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      piVar4 = (int *)calloc(1,param_2 + 0x61);\n      if (piVar4 != (int *)0x0) {\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }\n      goto LAB_000202f0;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      sVar3 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      piVar4 = (int *)calloc(1,param_2 + 0x61);\n      if (piVar4 != (int *)0x0) {\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }\n      goto LAB_000202f0;\n    }" { (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) (expression_statement "local_34 = (char *)0x0;" (assignment_expression "local_34 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_0002029a:\n      piVar4 = (int *)calloc(1,param_2 + 0x61);" statement_identifier : (expression_statement "piVar4 = (int *)calloc(1,param_2 + 0x61);" (assignment_expression "piVar4 = (int *)calloc(1,param_2 + 0x61)" identifier = (cast_expression "(int *)calloc(1,param_2 + 0x61)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "calloc(1,param_2 + 0x61)" identifier (argument_list "(1,param_2 + 0x61)" ( number_literal , (binary_expression "param_2 + 0x61" identifier + number_literal) ))))) ;)) (if_statement "if (piVar4 != (int *)0x0) {\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }" if (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }" { (expression_statement "piVar4[1] = param_3;" (assignment_expression "piVar4[1] = param_3" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar4 = param_1;" (assignment_expression "*piVar4 = param_1" (pointer_expression "*piVar4" * identifier) = identifier) ;) (expression_statement "piVar4[0xb] = param_2 + 4;" (assignment_expression "piVar4[0xb] = param_2 + 4" (subscript_expression "piVar4[0xb]" identifier [ number_literal ]) = (binary_expression "param_2 + 4" identifier + number_literal)) ;) (expression_statement "piVar4[2] = param_4;" (assignment_expression "piVar4[2] = param_4" (subscript_expression "piVar4[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar4[0x13] = 2;" (assignment_expression "piVar4[0x13] = 2" (subscript_expression "piVar4[0x13]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar4[0x10] = sVar3;" (assignment_expression "piVar4[0x10] = sVar3" (subscript_expression "piVar4[0x10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar4[4] = (int)local_34;" (assignment_expression "piVar4[4] = (int)local_34" (subscript_expression "piVar4[4]" identifier [ number_literal ]) = (cast_expression "(int)local_34" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar4[0x14] = 0;" (assignment_expression "piVar4[0x14] = 0" (subscript_expression "piVar4[0x14]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar4[3] = local_24;" (assignment_expression "piVar4[3] = local_24" (subscript_expression "piVar4[3]" identifier [ number_literal ]) = identifier) ;) })) (goto_statement "goto LAB_000202f0;" goto statement_identifier ;) })) (expression_statement "iVar1 = FUN_0001d870("multipart/form-data",local_24,0x13);" (assignment_expression "iVar1 = FUN_0001d870("multipart/form-data",local_24,0x13)" identifier = (call_expression "FUN_0001d870("multipart/form-data",local_24,0x13)" identifier (argument_list "("multipart/form-data",local_24,0x13)" ( (string_literal ""multipart/form-data"" " string_content ") , identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }" { (expression_statement "pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=");" (assignment_expression "pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=")" identifier = (call_expression "strstr((char *)(local_24 + 0x13),"boundary=")" identifier (argument_list "((char *)(local_24 + 0x13),"boundary=")" ( (cast_expression "(char *)(local_24 + 0x13)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 + 0x13)" ( (binary_expression "local_24 + 0x13" identifier + number_literal) ))) , (string_literal ""boundary="" " string_content ") )))) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\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        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }" { (expression_statement "local_34 = pcVar2 + 9;" (assignment_expression "local_34 = pcVar2 + 9" identifier = (binary_expression "pcVar2 + 9" identifier + number_literal)) ;) (expression_statement "sVar3 = strlen(local_34);" (assignment_expression "sVar3 = strlen(local_34)" identifier = (call_expression "strlen(local_34)" identifier (argument_list "(local_34)" ( identifier )))) ;) (if_statement "if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }" if (parenthesized_expression "((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2))" ( (binary_expression "(sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)" (parenthesized_expression "(sVar3 != 0)" ( (binary_expression "sVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(sVar3 * 2 + 2 <= param_2)" ( (binary_expression "sVar3 * 2 + 2 <= param_2" (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            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }" { (if_statement "if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = 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            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }" { (expression_statement "local_34 = pcVar2 + 10;" (assignment_expression "local_34 = 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_0002029a;" goto statement_identifier ;) })) })) })) })) (expression_statement "piVar4 = (int *)0x0;" (assignment_expression "piVar4 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_000202f0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar4;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar4;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return piVar4;\n  }" { (return_statement "return piVar4;" return identifier ;) }))) comment (expression_statement "FUN_00025ce0();" (call_expression "FUN_00025ce0()" identifier (argument_list "()" ( ))) ;) })))
(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\nMHD_PostProcessor *\nMHD_create_post_processor\n          (MHD_Connection *connection,size_t buffer_size,MHD_PostDataIterator iter,void *iter_cls)\n\n{\n  MHD_Result MVar1;\n  int iVar2;\n  char *pcVar3;\n  size_t sVar4;\n  MHD_PostProcessor *pMVar5;\n  int in_GS_OFFSET;\n  char *local_34;\n  char *encoding;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20159;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((connection == (MHD_Connection *)0x0 || iter == (MHD_PostDataIterator)0x0) ||\n     (buffer_size < 0x100)) {\n    (*mhd_panic)(mhd_panic_cls,"postprocessor.c",0x126,(char *)0x0);\n  }\n  MVar1 = MHD_lookup_connection_value_n\n                    (connection,MHD_HEADER_KIND,"Content-Type",0xc,&encoding,(size_t *)0x0);\n  if (MVar1 != MHD_NO) {\n    iVar2 = MHD_str_equal_caseless_n_("application/x-www-form-urlencoded",encoding,0x21);\n    if (iVar2 != 0) {\n      sVar4 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      pMVar5 = (MHD_PostProcessor *)calloc(1,buffer_size + 0x61);\n      if (pMVar5 != (MHD_PostProcessor *)0x0) {\n        pMVar5->ikvi = iter;\n        pMVar5->connection = connection;\n        pMVar5->buffer_size = buffer_size + 4;\n        pMVar5->cls = iter_cls;\n        pMVar5->state = PP_Init;\n        pMVar5->blen = sVar4;\n        pMVar5->boundary = local_34;\n        pMVar5->skip_rn = RN_Inactive;\n        pMVar5->encoding = encoding;\n      }\n      goto LAB_000202f0;\n    }\n    iVar2 = MHD_str_equal_caseless_n_("multipart/form-data",encoding,0x13);\n    if (iVar2 != 0) {\n      pcVar3 = strstr(encoding + 0x13,"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        local_34 = pcVar3 + 9;\n        sVar4 = strlen(local_34);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= buffer_size)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            local_34 = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }\n  }\n  pMVar5 = (MHD_PostProcessor *)0x0;\nLAB_000202f0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pMVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" 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  MHD_Result MVar1;\n  int iVar2;\n  char *pcVar3;\n  size_t sVar4;\n  MHD_PostProcessor *pMVar5;\n  int in_GS_OFFSET;\n  char *local_34;\n  char *encoding;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20159;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((connection == (MHD_Connection *)0x0 || iter == (MHD_PostDataIterator)0x0) ||\n     (buffer_size < 0x100)) {\n    (*mhd_panic)(mhd_panic_cls,"postprocessor.c",0x126,(char *)0x0);\n  }\n  MVar1 = MHD_lookup_connection_value_n\n                    (connection,MHD_HEADER_KIND,"Content-Type",0xc,&encoding,(size_t *)0x0);\n  if (MVar1 != MHD_NO) {\n    iVar2 = MHD_str_equal_caseless_n_("application/x-www-form-urlencoded",encoding,0x21);\n    if (iVar2 != 0) {\n      sVar4 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      pMVar5 = (MHD_PostProcessor *)calloc(1,buffer_size + 0x61);\n      if (pMVar5 != (MHD_PostProcessor *)0x0) {\n        pMVar5->ikvi = iter;\n        pMVar5->connection = connection;\n        pMVar5->buffer_size = buffer_size + 4;\n        pMVar5->cls = iter_cls;\n        pMVar5->state = PP_Init;\n        pMVar5->blen = sVar4;\n        pMVar5->boundary = local_34;\n        pMVar5->skip_rn = RN_Inactive;\n        pMVar5->encoding = encoding;\n      }\n      goto LAB_000202f0;\n    }\n    iVar2 = MHD_str_equal_caseless_n_("multipart/form-data",encoding,0x13);\n    if (iVar2 != 0) {\n      pcVar3 = strstr(encoding + 0x13,"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        local_34 = pcVar3 + 9;\n        sVar4 = strlen(local_34);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= buffer_size)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            local_34 = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }\n  }\n  pMVar5 = (MHD_PostProcessor *)0x0;\nLAB_000202f0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pMVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\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  MHD_Result MVar1;\n  int iVar2;\n  char *pcVar3;\n  size_t sVar4;\n  MHD_PostProcessor *pMVar5;\n  int in_GS_OFFSET;\n  char *local_34;\n  char *encoding;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20159;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((connection == (MHD_Connection *)0x0 || iter == (MHD_PostDataIterator)0x0) ||\n     (buffer_size < 0x100)) {\n    (*mhd_panic)(mhd_panic_cls,"postprocessor.c",0x126,(char *)0x0);\n  }\n  MVar1 = MHD_lookup_connection_value_n\n                    (connection,MHD_HEADER_KIND,"Content-Type",0xc,&encoding,(size_t *)0x0);\n  if (MVar1 != MHD_NO) {\n    iVar2 = MHD_str_equal_caseless_n_("application/x-www-form-urlencoded",encoding,0x21);\n    if (iVar2 != 0) {\n      sVar4 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      pMVar5 = (MHD_PostProcessor *)calloc(1,buffer_size + 0x61);\n      if (pMVar5 != (MHD_PostProcessor *)0x0) {\n        pMVar5->ikvi = iter;\n        pMVar5->connection = connection;\n        pMVar5->buffer_size = buffer_size + 4;\n        pMVar5->cls = iter_cls;\n        pMVar5->state = PP_Init;\n        pMVar5->blen = sVar4;\n        pMVar5->boundary = local_34;\n        pMVar5->skip_rn = RN_Inactive;\n        pMVar5->encoding = encoding;\n      }\n      goto LAB_000202f0;\n    }\n    iVar2 = MHD_str_equal_caseless_n_("multipart/form-data",encoding,0x13);\n    if (iVar2 != 0) {\n      pcVar3 = strstr(encoding + 0x13,"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        local_34 = pcVar3 + 9;\n        sVar4 = strlen(local_34);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= buffer_size)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            local_34 = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }\n  }\n  pMVar5 = (MHD_PostProcessor *)0x0;\nLAB_000202f0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pMVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "MHD_Result MVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "MHD_PostProcessor *pMVar5;" type_identifier (pointer_declarator "*pMVar5" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *local_34;" primitive_type (pointer_declarator "*local_34" * identifier) ;) (declaration "char *encoding;" primitive_type (pointer_declarator "*encoding" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x20159;" (assignment_expression "uStack_14 = 0x20159" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((connection == (MHD_Connection *)0x0 || iter == (MHD_PostDataIterator)0x0) ||\n     (buffer_size < 0x100)) {\n    (*mhd_panic)(mhd_panic_cls,"postprocessor.c",0x126,(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",0x126,(char *)0x0);\n  }" { (expression_statement "(*mhd_panic)(mhd_panic_cls,"postprocessor.c",0x126,(char *)0x0);" (call_expression "(*mhd_panic)(mhd_panic_cls,"postprocessor.c",0x126,(char *)0x0)" (parenthesized_expression "(*mhd_panic)" ( (pointer_expression "*mhd_panic" * identifier) )) (argument_list "(mhd_panic_cls,"postprocessor.c",0x126,(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 "MVar1 = MHD_lookup_connection_value_n\n                    (connection,MHD_HEADER_KIND,"Content-Type",0xc,&encoding,(size_t *)0x0);" (assignment_expression "MVar1 = MHD_lookup_connection_value_n\n                    (connection,MHD_HEADER_KIND,"Content-Type",0xc,&encoding,(size_t *)0x0)" identifier = (call_expression "MHD_lookup_connection_value_n\n                    (connection,MHD_HEADER_KIND,"Content-Type",0xc,&encoding,(size_t *)0x0)" identifier (argument_list "(connection,MHD_HEADER_KIND,"Content-Type",0xc,&encoding,(size_t *)0x0)" ( identifier , identifier , (string_literal ""Content-Type"" " string_content ") , number_literal , (pointer_expression "&encoding" & identifier) , (cast_expression "(size_t *)0x0" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (if_statement "if (MVar1 != MHD_NO) {\n    iVar2 = MHD_str_equal_caseless_n_("application/x-www-form-urlencoded",encoding,0x21);\n    if (iVar2 != 0) {\n      sVar4 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      pMVar5 = (MHD_PostProcessor *)calloc(1,buffer_size + 0x61);\n      if (pMVar5 != (MHD_PostProcessor *)0x0) {\n        pMVar5->ikvi = iter;\n        pMVar5->connection = connection;\n        pMVar5->buffer_size = buffer_size + 4;\n        pMVar5->cls = iter_cls;\n        pMVar5->state = PP_Init;\n        pMVar5->blen = sVar4;\n        pMVar5->boundary = local_34;\n        pMVar5->skip_rn = RN_Inactive;\n        pMVar5->encoding = encoding;\n      }\n      goto LAB_000202f0;\n    }\n    iVar2 = MHD_str_equal_caseless_n_("multipart/form-data",encoding,0x13);\n    if (iVar2 != 0) {\n      pcVar3 = strstr(encoding + 0x13,"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        local_34 = pcVar3 + 9;\n        sVar4 = strlen(local_34);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= buffer_size)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            local_34 = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(MVar1 != MHD_NO)" ( (binary_expression "MVar1 != MHD_NO" identifier != identifier) )) (compound_statement "{\n    iVar2 = MHD_str_equal_caseless_n_("application/x-www-form-urlencoded",encoding,0x21);\n    if (iVar2 != 0) {\n      sVar4 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      pMVar5 = (MHD_PostProcessor *)calloc(1,buffer_size + 0x61);\n      if (pMVar5 != (MHD_PostProcessor *)0x0) {\n        pMVar5->ikvi = iter;\n        pMVar5->connection = connection;\n        pMVar5->buffer_size = buffer_size + 4;\n        pMVar5->cls = iter_cls;\n        pMVar5->state = PP_Init;\n        pMVar5->blen = sVar4;\n        pMVar5->boundary = local_34;\n        pMVar5->skip_rn = RN_Inactive;\n        pMVar5->encoding = encoding;\n      }\n      goto LAB_000202f0;\n    }\n    iVar2 = MHD_str_equal_caseless_n_("multipart/form-data",encoding,0x13);\n    if (iVar2 != 0) {\n      pcVar3 = strstr(encoding + 0x13,"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        local_34 = pcVar3 + 9;\n        sVar4 = strlen(local_34);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= buffer_size)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            local_34 = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }\n  }" { (expression_statement "iVar2 = MHD_str_equal_caseless_n_("application/x-www-form-urlencoded",encoding,0x21);" (assignment_expression "iVar2 = MHD_str_equal_caseless_n_("application/x-www-form-urlencoded",encoding,0x21)" identifier = (call_expression "MHD_str_equal_caseless_n_("application/x-www-form-urlencoded",encoding,0x21)" identifier (argument_list "("application/x-www-form-urlencoded",encoding,0x21)" ( (string_literal ""application/x-www-form-urlencoded"" " string_content ") , identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n      sVar4 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      pMVar5 = (MHD_PostProcessor *)calloc(1,buffer_size + 0x61);\n      if (pMVar5 != (MHD_PostProcessor *)0x0) {\n        pMVar5->ikvi = iter;\n        pMVar5->connection = connection;\n        pMVar5->buffer_size = buffer_size + 4;\n        pMVar5->cls = iter_cls;\n        pMVar5->state = PP_Init;\n        pMVar5->blen = sVar4;\n        pMVar5->boundary = local_34;\n        pMVar5->skip_rn = RN_Inactive;\n        pMVar5->encoding = encoding;\n      }\n      goto LAB_000202f0;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      sVar4 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      pMVar5 = (MHD_PostProcessor *)calloc(1,buffer_size + 0x61);\n      if (pMVar5 != (MHD_PostProcessor *)0x0) {\n        pMVar5->ikvi = iter;\n        pMVar5->connection = connection;\n        pMVar5->buffer_size = buffer_size + 4;\n        pMVar5->cls = iter_cls;\n        pMVar5->state = PP_Init;\n        pMVar5->blen = sVar4;\n        pMVar5->boundary = local_34;\n        pMVar5->skip_rn = RN_Inactive;\n        pMVar5->encoding = encoding;\n      }\n      goto LAB_000202f0;\n    }" { (expression_statement "sVar4 = 0;" (assignment_expression "sVar4 = 0" identifier = number_literal) ;) (expression_statement "local_34 = (char *)0x0;" (assignment_expression "local_34 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_0002029a:\n      pMVar5 = (MHD_PostProcessor *)calloc(1,buffer_size + 0x61);" statement_identifier : (expression_statement "pMVar5 = (MHD_PostProcessor *)calloc(1,buffer_size + 0x61);" (assignment_expression "pMVar5 = (MHD_PostProcessor *)calloc(1,buffer_size + 0x61)" identifier = (cast_expression "(MHD_PostProcessor *)calloc(1,buffer_size + 0x61)" ( (type_descriptor "MHD_PostProcessor *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "calloc(1,buffer_size + 0x61)" identifier (argument_list "(1,buffer_size + 0x61)" ( number_literal , (binary_expression "buffer_size + 0x61" identifier + number_literal) ))))) ;)) (if_statement "if (pMVar5 != (MHD_PostProcessor *)0x0) {\n        pMVar5->ikvi = iter;\n        pMVar5->connection = connection;\n        pMVar5->buffer_size = buffer_size + 4;\n        pMVar5->cls = iter_cls;\n        pMVar5->state = PP_Init;\n        pMVar5->blen = sVar4;\n        pMVar5->boundary = local_34;\n        pMVar5->skip_rn = RN_Inactive;\n        pMVar5->encoding = encoding;\n      }" if (parenthesized_expression "(pMVar5 != (MHD_PostProcessor *)0x0)" ( (binary_expression "pMVar5 != (MHD_PostProcessor *)0x0" identifier != (cast_expression "(MHD_PostProcessor *)0x0" ( (type_descriptor "MHD_PostProcessor *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pMVar5->ikvi = iter;\n        pMVar5->connection = connection;\n        pMVar5->buffer_size = buffer_size + 4;\n        pMVar5->cls = iter_cls;\n        pMVar5->state = PP_Init;\n        pMVar5->blen = sVar4;\n        pMVar5->boundary = local_34;\n        pMVar5->skip_rn = RN_Inactive;\n        pMVar5->encoding = encoding;\n      }" { (expression_statement "pMVar5->ikvi = iter;" (assignment_expression "pMVar5->ikvi = iter" (field_expression "pMVar5->ikvi" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar5->connection = connection;" (assignment_expression "pMVar5->connection = connection" (field_expression "pMVar5->connection" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar5->buffer_size = buffer_size + 4;" (assignment_expression "pMVar5->buffer_size = buffer_size + 4" (field_expression "pMVar5->buffer_size" identifier -> field_identifier) = (binary_expression "buffer_size + 4" identifier + number_literal)) ;) (expression_statement "pMVar5->cls = iter_cls;" (assignment_expression "pMVar5->cls = iter_cls" (field_expression "pMVar5->cls" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar5->state = PP_Init;" (assignment_expression "pMVar5->state = PP_Init" (field_expression "pMVar5->state" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar5->blen = sVar4;" (assignment_expression "pMVar5->blen = sVar4" (field_expression "pMVar5->blen" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar5->boundary = local_34;" (assignment_expression "pMVar5->boundary = local_34" (field_expression "pMVar5->boundary" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar5->skip_rn = RN_Inactive;" (assignment_expression "pMVar5->skip_rn = RN_Inactive" (field_expression "pMVar5->skip_rn" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar5->encoding = encoding;" (assignment_expression "pMVar5->encoding = encoding" (field_expression "pMVar5->encoding" identifier -> field_identifier) = identifier) ;) })) (goto_statement "goto LAB_000202f0;" goto statement_identifier ;) })) (expression_statement "iVar2 = MHD_str_equal_caseless_n_("multipart/form-data",encoding,0x13);" (assignment_expression "iVar2 = MHD_str_equal_caseless_n_("multipart/form-data",encoding,0x13)" identifier = (call_expression "MHD_str_equal_caseless_n_("multipart/form-data",encoding,0x13)" identifier (argument_list "("multipart/form-data",encoding,0x13)" ( (string_literal ""multipart/form-data"" " string_content ") , identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n      pcVar3 = strstr(encoding + 0x13,"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        local_34 = pcVar3 + 9;\n        sVar4 = strlen(local_34);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= buffer_size)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            local_34 = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      pcVar3 = strstr(encoding + 0x13,"boundary=");\n      if (pcVar3 != (char *)0x0) {\n        local_34 = pcVar3 + 9;\n        sVar4 = strlen(local_34);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= buffer_size)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            local_34 = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }" { (expression_statement "pcVar3 = strstr(encoding + 0x13,"boundary=");" (assignment_expression "pcVar3 = strstr(encoding + 0x13,"boundary=")" identifier = (call_expression "strstr(encoding + 0x13,"boundary=")" identifier (argument_list "(encoding + 0x13,"boundary=")" ( (binary_expression "encoding + 0x13" identifier + number_literal) , (string_literal ""boundary="" " string_content ") )))) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n        local_34 = pcVar3 + 9;\n        sVar4 = strlen(local_34);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= buffer_size)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            local_34 = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_0002029a;\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        local_34 = pcVar3 + 9;\n        sVar4 = strlen(local_34);\n        if ((sVar4 != 0) && (sVar4 * 2 + 2 <= buffer_size)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            local_34 = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }" { (expression_statement "local_34 = pcVar3 + 9;" (assignment_expression "local_34 = pcVar3 + 9" identifier = (binary_expression "pcVar3 + 9" identifier + number_literal)) ;) (expression_statement "sVar4 = strlen(local_34);" (assignment_expression "sVar4 = strlen(local_34)" identifier = (call_expression "strlen(local_34)" identifier (argument_list "(local_34)" ( identifier )))) ;) (if_statement "if ((sVar4 != 0) && (sVar4 * 2 + 2 <= buffer_size)) {\n          if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            local_34 = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_0002029a;\n        }" if (parenthesized_expression "((sVar4 != 0) && (sVar4 * 2 + 2 <= buffer_size))" ( (binary_expression "(sVar4 != 0) && (sVar4 * 2 + 2 <= buffer_size)" (parenthesized_expression "(sVar4 != 0)" ( (binary_expression "sVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "(sVar4 * 2 + 2 <= buffer_size)" ( (binary_expression "sVar4 * 2 + 2 <= buffer_size" (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            local_34 = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }\n          goto LAB_0002029a;\n        }" { (if_statement "if ((pcVar3[9] == '\"') && (pcVar3[sVar4 + 8] == '\"')) {\n            local_34 = 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            local_34 = pcVar3 + 10;\n            sVar4 = sVar4 - 2;\n          }" { (expression_statement "local_34 = pcVar3 + 10;" (assignment_expression "local_34 = 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_0002029a;" goto statement_identifier ;) })) })) })) })) (expression_statement "pMVar5 = (MHD_PostProcessor *)0x0;" (assignment_expression "pMVar5 = (MHD_PostProcessor *)0x0" identifier = (cast_expression "(MHD_PostProcessor *)0x0" ( (type_descriptor "MHD_PostProcessor *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_000202f0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pMVar5;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pMVar5;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return pMVar5;\n  }" { (return_statement "return pMVar5;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(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  char *pcVar2;\n  size_t sVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  char *local_34;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20159;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {\n    (*DAT_0003016c)(DAT_00030168,"postprocessor.c",0x126,0);\n  }\n  iVar1 = MHD_lookup_connection_value_n(param_1,1,"Content-Type",0xc,&local_24,0);\n  if (iVar1 != 0) {\n    iVar1 = FUN_0001d870("application/x-www-form-urlencoded",local_24,0x21);\n    if (iVar1 != 0) {\n      sVar3 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      piVar4 = (int *)calloc(1,param_2 + 0x61);\n      if (piVar4 != (int *)0x0) {\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }\n      goto LAB_000202f0;\n    }\n    iVar1 = FUN_0001d870("multipart/form-data",local_24,0x13);\n    if (iVar1 != 0) {\n      pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }\n  }\n  piVar4 = (int *)0x0;\nLAB_000202f0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar4;\n  }\n                    \n  FUN_00025ce0();\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  char *pcVar2;\n  size_t sVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  char *local_34;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20159;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {\n    (*DAT_0003016c)(DAT_00030168,"postprocessor.c",0x126,0);\n  }\n  iVar1 = MHD_lookup_connection_value_n(param_1,1,"Content-Type",0xc,&local_24,0);\n  if (iVar1 != 0) {\n    iVar1 = FUN_0001d870("application/x-www-form-urlencoded",local_24,0x21);\n    if (iVar1 != 0) {\n      sVar3 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      piVar4 = (int *)calloc(1,param_2 + 0x61);\n      if (piVar4 != (int *)0x0) {\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }\n      goto LAB_000202f0;\n    }\n    iVar1 = FUN_0001d870("multipart/form-data",local_24,0x13);\n    if (iVar1 != 0) {\n      pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }\n  }\n  piVar4 = (int *)0x0;\nLAB_000202f0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar4;\n  }\n                    \n  FUN_00025ce0();\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  char *pcVar2;\n  size_t sVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  char *local_34;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20159;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {\n    (*DAT_0003016c)(DAT_00030168,"postprocessor.c",0x126,0);\n  }\n  iVar1 = MHD_lookup_connection_value_n(param_1,1,"Content-Type",0xc,&local_24,0);\n  if (iVar1 != 0) {\n    iVar1 = FUN_0001d870("application/x-www-form-urlencoded",local_24,0x21);\n    if (iVar1 != 0) {\n      sVar3 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      piVar4 = (int *)calloc(1,param_2 + 0x61);\n      if (piVar4 != (int *)0x0) {\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }\n      goto LAB_000202f0;\n    }\n    iVar1 = FUN_0001d870("multipart/form-data",local_24,0x13);\n    if (iVar1 != 0) {\n      pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }\n  }\n  piVar4 = (int *)0x0;\nLAB_000202f0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar4;\n  }\n                    \n  FUN_00025ce0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *local_34;" primitive_type (pointer_declarator "*local_34" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x20159;" (assignment_expression "uStack_14 = 0x20159" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {\n    (*DAT_0003016c)(DAT_00030168,"postprocessor.c",0x126,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_0003016c)(DAT_00030168,"postprocessor.c",0x126,0);\n  }" { (expression_statement "(*DAT_0003016c)(DAT_00030168,"postprocessor.c",0x126,0);" (call_expression "(*DAT_0003016c)(DAT_00030168,"postprocessor.c",0x126,0)" (parenthesized_expression "(*DAT_0003016c)" ( (pointer_expression "*DAT_0003016c" * identifier) )) (argument_list "(DAT_00030168,"postprocessor.c",0x126,0)" ( identifier , (string_literal ""postprocessor.c"" " string_content ") , number_literal , number_literal ))) ;) })) (expression_statement "iVar1 = MHD_lookup_connection_value_n(param_1,1,"Content-Type",0xc,&local_24,0);" (assignment_expression "iVar1 = MHD_lookup_connection_value_n(param_1,1,"Content-Type",0xc,&local_24,0)" identifier = (call_expression "MHD_lookup_connection_value_n(param_1,1,"Content-Type",0xc,&local_24,0)" identifier (argument_list "(param_1,1,"Content-Type",0xc,&local_24,0)" ( identifier , number_literal , (string_literal ""Content-Type"" " string_content ") , number_literal , (pointer_expression "&local_24" & identifier) , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = FUN_0001d870("application/x-www-form-urlencoded",local_24,0x21);\n    if (iVar1 != 0) {\n      sVar3 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      piVar4 = (int *)calloc(1,param_2 + 0x61);\n      if (piVar4 != (int *)0x0) {\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }\n      goto LAB_000202f0;\n    }\n    iVar1 = FUN_0001d870("multipart/form-data",local_24,0x13);\n    if (iVar1 != 0) {\n      pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = FUN_0001d870("application/x-www-form-urlencoded",local_24,0x21);\n    if (iVar1 != 0) {\n      sVar3 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      piVar4 = (int *)calloc(1,param_2 + 0x61);\n      if (piVar4 != (int *)0x0) {\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }\n      goto LAB_000202f0;\n    }\n    iVar1 = FUN_0001d870("multipart/form-data",local_24,0x13);\n    if (iVar1 != 0) {\n      pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }\n  }" { (expression_statement "iVar1 = FUN_0001d870("application/x-www-form-urlencoded",local_24,0x21);" (assignment_expression "iVar1 = FUN_0001d870("application/x-www-form-urlencoded",local_24,0x21)" identifier = (call_expression "FUN_0001d870("application/x-www-form-urlencoded",local_24,0x21)" identifier (argument_list "("application/x-www-form-urlencoded",local_24,0x21)" ( (string_literal ""application/x-www-form-urlencoded"" " string_content ") , identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      sVar3 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      piVar4 = (int *)calloc(1,param_2 + 0x61);\n      if (piVar4 != (int *)0x0) {\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }\n      goto LAB_000202f0;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      sVar3 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      piVar4 = (int *)calloc(1,param_2 + 0x61);\n      if (piVar4 != (int *)0x0) {\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }\n      goto LAB_000202f0;\n    }" { (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) (expression_statement "local_34 = (char *)0x0;" (assignment_expression "local_34 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_0002029a:\n      piVar4 = (int *)calloc(1,param_2 + 0x61);" statement_identifier : (expression_statement "piVar4 = (int *)calloc(1,param_2 + 0x61);" (assignment_expression "piVar4 = (int *)calloc(1,param_2 + 0x61)" identifier = (cast_expression "(int *)calloc(1,param_2 + 0x61)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "calloc(1,param_2 + 0x61)" identifier (argument_list "(1,param_2 + 0x61)" ( number_literal , (binary_expression "param_2 + 0x61" identifier + number_literal) ))))) ;)) (if_statement "if (piVar4 != (int *)0x0) {\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }" if (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }" { (expression_statement "piVar4[1] = param_3;" (assignment_expression "piVar4[1] = param_3" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar4 = param_1;" (assignment_expression "*piVar4 = param_1" (pointer_expression "*piVar4" * identifier) = identifier) ;) (expression_statement "piVar4[0xb] = param_2 + 4;" (assignment_expression "piVar4[0xb] = param_2 + 4" (subscript_expression "piVar4[0xb]" identifier [ number_literal ]) = (binary_expression "param_2 + 4" identifier + number_literal)) ;) (expression_statement "piVar4[2] = param_4;" (assignment_expression "piVar4[2] = param_4" (subscript_expression "piVar4[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar4[0x13] = 2;" (assignment_expression "piVar4[0x13] = 2" (subscript_expression "piVar4[0x13]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar4[0x10] = sVar3;" (assignment_expression "piVar4[0x10] = sVar3" (subscript_expression "piVar4[0x10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar4[4] = (int)local_34;" (assignment_expression "piVar4[4] = (int)local_34" (subscript_expression "piVar4[4]" identifier [ number_literal ]) = (cast_expression "(int)local_34" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar4[0x14] = 0;" (assignment_expression "piVar4[0x14] = 0" (subscript_expression "piVar4[0x14]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar4[3] = local_24;" (assignment_expression "piVar4[3] = local_24" (subscript_expression "piVar4[3]" identifier [ number_literal ]) = identifier) ;) })) (goto_statement "goto LAB_000202f0;" goto statement_identifier ;) })) (expression_statement "iVar1 = FUN_0001d870("multipart/form-data",local_24,0x13);" (assignment_expression "iVar1 = FUN_0001d870("multipart/form-data",local_24,0x13)" identifier = (call_expression "FUN_0001d870("multipart/form-data",local_24,0x13)" identifier (argument_list "("multipart/form-data",local_24,0x13)" ( (string_literal ""multipart/form-data"" " string_content ") , identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }" { (expression_statement "pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=");" (assignment_expression "pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=")" identifier = (call_expression "strstr((char *)(local_24 + 0x13),"boundary=")" identifier (argument_list "((char *)(local_24 + 0x13),"boundary=")" ( (cast_expression "(char *)(local_24 + 0x13)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 + 0x13)" ( (binary_expression "local_24 + 0x13" identifier + number_literal) ))) , (string_literal ""boundary="" " string_content ") )))) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\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        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }" { (expression_statement "local_34 = pcVar2 + 9;" (assignment_expression "local_34 = pcVar2 + 9" identifier = (binary_expression "pcVar2 + 9" identifier + number_literal)) ;) (expression_statement "sVar3 = strlen(local_34);" (assignment_expression "sVar3 = strlen(local_34)" identifier = (call_expression "strlen(local_34)" identifier (argument_list "(local_34)" ( identifier )))) ;) (if_statement "if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }" if (parenthesized_expression "((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2))" ( (binary_expression "(sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)" (parenthesized_expression "(sVar3 != 0)" ( (binary_expression "sVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(sVar3 * 2 + 2 <= param_2)" ( (binary_expression "sVar3 * 2 + 2 <= param_2" (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            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }" { (if_statement "if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = 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            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }" { (expression_statement "local_34 = pcVar2 + 10;" (assignment_expression "local_34 = 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_0002029a;" goto statement_identifier ;) })) })) })) })) (expression_statement "piVar4 = (int *)0x0;" (assignment_expression "piVar4 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_000202f0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar4;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar4;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return piVar4;\n  }" { (return_statement "return piVar4;" return identifier ;) }))) (expression_statement "FUN_00025ce0();" (call_expression "FUN_00025ce0()" identifier (argument_list "()" ( ))) ;) })))
(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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (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 ") , LIT , (pointer_expression & IDENT) , LIT )))) ;) (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 (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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 ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (goto_statement goto statement_identifier ;) })) (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 ;) })) })) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(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  char *pcVar2;\n  size_t sVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  char *local_34;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20159;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {\n    (*DAT_0003016c)(DAT_00030168,"postprocessor.c",0x126,0);\n  }\n  iVar1 = MHD_lookup_connection_value_n(param_1,1,"Content-Type",0xc,&local_24,0);\n  if (iVar1 != 0) {\n    iVar1 = FUN_0001d870("application/x-www-form-urlencoded",local_24,0x21);\n    if (iVar1 != 0) {\n      sVar3 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      piVar4 = (int *)calloc(1,param_2 + 0x61);\n      if (piVar4 != (int *)0x0) {\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }\n      goto LAB_000202f0;\n    }\n    iVar1 = FUN_0001d870("multipart/form-data",local_24,0x13);\n    if (iVar1 != 0) {\n      pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }\n  }\n  piVar4 = (int *)0x0;\nLAB_000202f0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar4;\n  }\n                    \n  FUN_00025ce0();\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  char *pcVar2;\n  size_t sVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  char *local_34;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x20159;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {\n    (*DAT_0003016c)(DAT_00030168,"postprocessor.c",0x126,0);\n  }\n  iVar1 = MHD_lookup_connection_value_n(param_1,1,"Content-Type",0xc,&local_24,0);\n  if (iVar1 != 0) {\n    iVar1 = FUN_0001d870("application/x-www-form-urlencoded",local_24,0x21);\n    if (iVar1 != 0) {\n      sVar3 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      piVar4 = (int *)calloc(1,param_2 + 0x61);\n      if (piVar4 != (int *)0x0) {\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }\n      goto LAB_000202f0;\n    }\n    iVar1 = FUN_0001d870("multipart/form-data",local_24,0x13);\n    if (iVar1 != 0) {\n      pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }\n  }\n  piVar4 = (int *)0x0;\nLAB_000202f0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar4;\n  }\n                    \n  FUN_00025ce0();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "char *local_34;" (primitive_type "char") (pointer_declarator "*local_34" (* "*") (identifier "local_34")) (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x20159;" (assignment_expression "uStack_14 = 0x20159" (identifier "uStack_14") (= "=") (number_literal "0x20159")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {\n    (*DAT_0003016c)(DAT_00030168,"postprocessor.c",0x126,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_0003016c)(DAT_00030168,"postprocessor.c",0x126,0);\n  }" ({ "{") (expression_statement "(*DAT_0003016c)(DAT_00030168,"postprocessor.c",0x126,0);" (call_expression "(*DAT_0003016c)(DAT_00030168,"postprocessor.c",0x126,0)" (parenthesized_expression "(*DAT_0003016c)" (( "(") (pointer_expression "*DAT_0003016c" (* "*") (identifier "DAT_0003016c")) () ")")) (argument_list "(DAT_00030168,"postprocessor.c",0x126,0)" (( "(") (identifier "DAT_00030168") (, ",") (string_literal ""postprocessor.c"" (" """) (string_content "postprocessor.c") (" """)) (, ",") (number_literal "0x126") (, ",") (number_literal "0") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = MHD_lookup_connection_value_n(param_1,1,"Content-Type",0xc,&local_24,0);" (assignment_expression "iVar1 = MHD_lookup_connection_value_n(param_1,1,"Content-Type",0xc,&local_24,0)" (identifier "iVar1") (= "=") (call_expression "MHD_lookup_connection_value_n(param_1,1,"Content-Type",0xc,&local_24,0)" (identifier "MHD_lookup_connection_value_n") (argument_list "(param_1,1,"Content-Type",0xc,&local_24,0)" (( "(") (identifier "param_1") (, ",") (number_literal "1") (, ",") (string_literal ""Content-Type"" (" """) (string_content "Content-Type") (" """)) (, ",") (number_literal "0xc") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    iVar1 = FUN_0001d870("application/x-www-form-urlencoded",local_24,0x21);\n    if (iVar1 != 0) {\n      sVar3 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      piVar4 = (int *)calloc(1,param_2 + 0x61);\n      if (piVar4 != (int *)0x0) {\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }\n      goto LAB_000202f0;\n    }\n    iVar1 = FUN_0001d870("multipart/form-data",local_24,0x13);\n    if (iVar1 != 0) {\n      pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = FUN_0001d870("application/x-www-form-urlencoded",local_24,0x21);\n    if (iVar1 != 0) {\n      sVar3 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      piVar4 = (int *)calloc(1,param_2 + 0x61);\n      if (piVar4 != (int *)0x0) {\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }\n      goto LAB_000202f0;\n    }\n    iVar1 = FUN_0001d870("multipart/form-data",local_24,0x13);\n    if (iVar1 != 0) {\n      pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }\n  }" ({ "{") (expression_statement "iVar1 = FUN_0001d870("application/x-www-form-urlencoded",local_24,0x21);" (assignment_expression "iVar1 = FUN_0001d870("application/x-www-form-urlencoded",local_24,0x21)" (identifier "iVar1") (= "=") (call_expression "FUN_0001d870("application/x-www-form-urlencoded",local_24,0x21)" (identifier "FUN_0001d870") (argument_list "("application/x-www-form-urlencoded",local_24,0x21)" (( "(") (string_literal ""application/x-www-form-urlencoded"" (" """) (string_content "application/x-www-form-urlencoded") (" """)) (, ",") (identifier "local_24") (, ",") (number_literal "0x21") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      sVar3 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      piVar4 = (int *)calloc(1,param_2 + 0x61);\n      if (piVar4 != (int *)0x0) {\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }\n      goto LAB_000202f0;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      sVar3 = 0;\n      local_34 = (char *)0x0;\nLAB_0002029a:\n      piVar4 = (int *)calloc(1,param_2 + 0x61);\n      if (piVar4 != (int *)0x0) {\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }\n      goto LAB_000202f0;\n    }" ({ "{") (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" (identifier "sVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_34 = (char *)0x0;" (assignment_expression "local_34 = (char *)0x0" (identifier "local_34") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (labeled_statement "LAB_0002029a:\n      piVar4 = (int *)calloc(1,param_2 + 0x61);" (statement_identifier "LAB_0002029a") (: ":") (expression_statement "piVar4 = (int *)calloc(1,param_2 + 0x61);" (assignment_expression "piVar4 = (int *)calloc(1,param_2 + 0x61)" (identifier "piVar4") (= "=") (cast_expression "(int *)calloc(1,param_2 + 0x61)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "calloc(1,param_2 + 0x61)" (identifier "calloc") (argument_list "(1,param_2 + 0x61)" (( "(") (number_literal "1") (, ",") (binary_expression "param_2 + 0x61" (identifier "param_2") (+ "+") (number_literal "0x61")) () ")"))))) (; ";"))) (if_statement "if (piVar4 != (int *)0x0) {\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }" (if "if") (parenthesized_expression "(piVar4 != (int *)0x0)" (( "(") (binary_expression "piVar4 != (int *)0x0" (identifier "piVar4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        piVar4[1] = param_3;\n        *piVar4 = param_1;\n        piVar4[0xb] = param_2 + 4;\n        piVar4[2] = param_4;\n        piVar4[0x13] = 2;\n        piVar4[0x10] = sVar3;\n        piVar4[4] = (int)local_34;\n        piVar4[0x14] = 0;\n        piVar4[3] = local_24;\n      }" ({ "{") (expression_statement "piVar4[1] = param_3;" (assignment_expression "piVar4[1] = param_3" (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*piVar4 = param_1;" (assignment_expression "*piVar4 = param_1" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "piVar4[0xb] = param_2 + 4;" (assignment_expression "piVar4[0xb] = param_2 + 4" (subscript_expression "piVar4[0xb]" (identifier "piVar4") ([ "[") (number_literal "0xb") (] "]")) (= "=") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "piVar4[2] = param_4;" (assignment_expression "piVar4[2] = param_4" (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "piVar4[0x13] = 2;" (assignment_expression "piVar4[0x13] = 2" (subscript_expression "piVar4[0x13]" (identifier "piVar4") ([ "[") (number_literal "0x13") (] "]")) (= "=") (number_literal "2")) (; ";")) (expression_statement "piVar4[0x10] = sVar3;" (assignment_expression "piVar4[0x10] = sVar3" (subscript_expression "piVar4[0x10]" (identifier "piVar4") ([ "[") (number_literal "0x10") (] "]")) (= "=") (identifier "sVar3")) (; ";")) (expression_statement "piVar4[4] = (int)local_34;" (assignment_expression "piVar4[4] = (int)local_34" (subscript_expression "piVar4[4]" (identifier "piVar4") ([ "[") (number_literal "4") (] "]")) (= "=") (cast_expression "(int)local_34" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_34"))) (; ";")) (expression_statement "piVar4[0x14] = 0;" (assignment_expression "piVar4[0x14] = 0" (subscript_expression "piVar4[0x14]" (identifier "piVar4") ([ "[") (number_literal "0x14") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar4[3] = local_24;" (assignment_expression "piVar4[3] = local_24" (subscript_expression "piVar4[3]" (identifier "piVar4") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "local_24")) (; ";")) (} "}"))) (goto_statement "goto LAB_000202f0;" (goto "goto") (statement_identifier "LAB_000202f0") (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_0001d870("multipart/form-data",local_24,0x13);" (assignment_expression "iVar1 = FUN_0001d870("multipart/form-data",local_24,0x13)" (identifier "iVar1") (= "=") (call_expression "FUN_0001d870("multipart/form-data",local_24,0x13)" (identifier "FUN_0001d870") (argument_list "("multipart/form-data",local_24,0x13)" (( "(") (string_literal ""multipart/form-data"" (" """) (string_content "multipart/form-data") (" """)) (, ",") (identifier "local_24") (, ",") (number_literal "0x13") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=");\n      if (pcVar2 != (char *)0x0) {\n        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }\n    }" ({ "{") (expression_statement "pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=");" (assignment_expression "pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=")" (identifier "pcVar2") (= "=") (call_expression "strstr((char *)(local_24 + 0x13),"boundary=")" (identifier "strstr") (argument_list "((char *)(local_24 + 0x13),"boundary=")" (( "(") (cast_expression "(char *)(local_24 + 0x13)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_24 + 0x13)" (( "(") (binary_expression "local_24 + 0x13" (identifier "local_24") (+ "+") (number_literal "0x13")) () ")"))) (, ",") (string_literal ""boundary="" (" """) (string_content "boundary=") (" """)) () ")")))) (; ";")) (if_statement "if (pcVar2 != (char *)0x0) {\n        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }" (if "if") (parenthesized_expression "(pcVar2 != (char *)0x0)" (( "(") (binary_expression "pcVar2 != (char *)0x0" (identifier "pcVar2") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        local_34 = pcVar2 + 9;\n        sVar3 = strlen(local_34);\n        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }\n      }" ({ "{") (expression_statement "local_34 = pcVar2 + 9;" (assignment_expression "local_34 = pcVar2 + 9" (identifier "local_34") (= "=") (binary_expression "pcVar2 + 9" (identifier "pcVar2") (+ "+") (number_literal "9"))) (; ";")) (expression_statement "sVar3 = strlen(local_34);" (assignment_expression "sVar3 = strlen(local_34)" (identifier "sVar3") (= "=") (call_expression "strlen(local_34)" (identifier "strlen") (argument_list "(local_34)" (( "(") (identifier "local_34") () ")")))) (; ";")) (if_statement "if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }" (if "if") (parenthesized_expression "((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2))" (( "(") (binary_expression "(sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)" (parenthesized_expression "(sVar3 != 0)" (( "(") (binary_expression "sVar3 != 0" (identifier "sVar3") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(sVar3 * 2 + 2 <= param_2)" (( "(") (binary_expression "sVar3 * 2 + 2 <= param_2" (binary_expression "sVar3 * 2 + 2" (binary_expression "sVar3 * 2" (identifier "sVar3") (* "*") (number_literal "2")) (+ "+") (number_literal "2")) (<= "<=") (identifier "param_2")) () ")"))) () ")")) (compound_statement "{\n          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }\n          goto LAB_0002029a;\n        }" ({ "{") (if_statement "if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }" (if "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 "pcVar2") ([ "[") (number_literal "9") (] "]")) (== "==") (char_literal "'\"'" (' "'") (escape_sequence "\"") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(pcVar2[sVar3 + 8] == '\"')" (( "(") (binary_expression "pcVar2[sVar3 + 8] == '\"'" (subscript_expression "pcVar2[sVar3 + 8]" (identifier "pcVar2") ([ "[") (binary_expression "sVar3 + 8" (identifier "sVar3") (+ "+") (number_literal "8")) (] "]")) (== "==") (char_literal "'\"'" (' "'") (escape_sequence "\"") (' "'"))) () ")"))) () ")")) (compound_statement "{\n            local_34 = pcVar2 + 10;\n            sVar3 = sVar3 - 2;\n          }" ({ "{") (expression_statement "local_34 = pcVar2 + 10;" (assignment_expression "local_34 = pcVar2 + 10" (identifier "local_34") (= "=") (binary_expression "pcVar2 + 10" (identifier "pcVar2") (+ "+") (number_literal "10"))) (; ";")) (expression_statement "sVar3 = sVar3 - 2;" (assignment_expression "sVar3 = sVar3 - 2" (identifier "sVar3") (= "=") (binary_expression "sVar3 - 2" (identifier "sVar3") (- "-") (number_literal "2"))) (; ";")) (} "}"))) (goto_statement "goto LAB_0002029a;" (goto "goto") (statement_identifier "LAB_0002029a") (; ";")) (} "}"))) (} "}"))) (} "}"))) (} "}"))) (expression_statement "piVar4 = (int *)0x0;" (assignment_expression "piVar4 = (int *)0x0" (identifier "piVar4") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (labeled_statement "LAB_000202f0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar4;\n  }" (statement_identifier "LAB_000202f0") (: ":") (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar4;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return piVar4;\n  }" ({ "{") (return_statement "return piVar4;" (return "return") (identifier "piVar4") (; ";")) (} "}")))) (expression_statement "FUN_00025ce0();" (call_expression "FUN_00025ce0()" (identifier "FUN_00025ce0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

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

{
  type_4 var_6;
  int var_9;
  char *var_14;
  size_t var_16;
  type_1 *var_11;
  int var_1;
  char *local_34;
  char *var_13;
  int var_17;
  type_5 uStack_14;
  
  uStack_14 = 0x20159;
  var_17 = *(int *)(var_1 + 0x14);
  if ((var_2 == (type_2 *)0x0 || var_3 == (type_3)0x0) ||
     (var_4 < 0x100)) {
    (*mhd_panic)(mhd_panic_cls,"postprocessor.c",0x126,(char *)0x0);
  }
  var_6 = var_5
                    (var_2,MHD_HEADER_KIND,"Content-Type",0xc,&var_13,(size_t *)0x0);
  if (var_6 != var_7) {
    var_9 = var_8("application/x-www-form-urlencoded",var_13,0x21);
    if (var_9 != 0) {
      var_16 = 0;
      local_34 = (char *)0x0;
LAB_0002029a:
      var_11 = (type_1 *)var_10(1,var_4 + 0x61);
      if (var_11 != (type_1 *)0x0) {
        var_11->ikvi = var_3;
        var_11->var_2 = var_2;
        var_11->var_4 = var_4 + 4;
        var_11->cls = iter_cls;
        var_11->state = PP_Init;
        var_11->blen = var_16;
        var_11->boundary = local_34;
        var_11->skip_rn = RN_Inactive;
        var_11->var_13 = var_13;
      }
      goto LAB_000202f0;
    }
    var_9 = var_8("multipart/form-data",var_13,0x13);
    if (var_9 != 0) {
      var_14 = var_12(var_13 + 0x13,"boundary=");
      if (var_14 != (char *)0x0) {
        local_34 = var_14 + 9;
        var_16 = var_15(local_34);
        if ((var_16 != 0) && (var_16 * 2 + 2 <= var_4)) {
          if ((var_14[9] == '\"') && (var_14[var_16 + 8] == '\"')) {
            local_34 = var_14 + 10;
            var_16 = var_16 - 2;
          }
          goto LAB_0002029a;
        }
      }
    }
  }
  var_11 = (type_1 *)0x0;
LAB_000202f0:
  if (var_17 == *(int *)(var_1 + 0x14)) {
    return var_11;
  }
                    /* WARNING: Subroutine does not return */
  var_18();
}


(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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (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)) (number_literal) (pointer_expression argument: (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 (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: (pointer_expression argument: (identifier)) 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: (subscript_expression argument: (identifier) index: (number_literal)) 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: (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))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))))) (goto_statement label: (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)))))))))) (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) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

/* 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;
  char *pcVar2;
  size_t sVar3;
  int *piVar4;
  int in_GS_OFFSET;
  char *local_34;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x20159;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if ((param_1 == 0 || param_3 == 0) || (param_2 < 0x100)) {
    (*DAT_0003016c)(DAT_00030168,"postprocessor.c",0x126,0);
  }
  iVar1 = MHD_lookup_connection_value_n(param_1,1,"Content-Type",0xc,&local_24,0);
  if (iVar1 != 0) {
    iVar1 = FUN_0001d870("application/x-www-form-urlencoded",local_24,0x21);
    if (iVar1 != 0) {
      sVar3 = 0;
      local_34 = (char *)0x0;
LAB_0002029a:
      piVar4 = (int *)calloc(1,param_2 + 0x61);
      if (piVar4 != (int *)0x0) {
        piVar4[1] = param_3;
        *piVar4 = param_1;
        piVar4[0xb] = param_2 + 4;
        piVar4[2] = param_4;
        piVar4[0x13] = 2;
        piVar4[0x10] = sVar3;
        piVar4[4] = (int)local_34;
        piVar4[0x14] = 0;
        piVar4[3] = local_24;
      }
      goto LAB_000202f0;
    }
    iVar1 = FUN_0001d870("multipart/form-data",local_24,0x13);
    if (iVar1 != 0) {
      pcVar2 = strstr((char *)(local_24 + 0x13),"boundary=");
      if (pcVar2 != (char *)0x0) {
        local_34 = pcVar2 + 9;
        sVar3 = strlen(local_34);
        if ((sVar3 != 0) && (sVar3 * 2 + 2 <= param_2)) {
          if ((pcVar2[9] == '\"') && (pcVar2[sVar3 + 8] == '\"')) {
            local_34 = pcVar2 + 10;
            sVar3 = sVar3 - 2;
          }
          goto LAB_0002029a;
        }
      }
    }
  }
  piVar4 = (int *)0x0;
LAB_000202f0:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return piVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00025ce0();
}

