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

MHD_Result
MHD_set_connection_value(MHD_Connection *connection,MHD_ValueKind kind,char *key,char *value)

{
  MHD_HTTP_Header *pMVar1;
  MHD_Result MVar2;
  size_t sVar3;
  size_t sVar4;
  
  sVar3 = 0;
  if (value != (char *)0x0) {
    sVar3 = strlen(value);
  }
  sVar4 = 0;
  if (key != (char *)0x0) {
    sVar4 = strlen(key);
  }
  pMVar1 = (MHD_HTTP_Header *)MHD_pool_allocate(connection->pool,0x18,true);
  MVar2 = MHD_NO;
  if (pMVar1 != (MHD_HTTP_Header *)0x0) {
    pMVar1->header_size = sVar4;
    pMVar1->value_size = sVar3;
    pMVar1->next = (MHD_HTTP_Header *)0x0;
    pMVar1->header = key;
    pMVar1->value = value;
    pMVar1->kind = kind;
    if (connection->headers_received_tail == (MHD_HTTP_Header *)0x0) {
      connection->headers_received = pMVar1;
      connection->headers_received_tail = pMVar1;
      return MHD_YES;
    }
    connection->headers_received_tail->next = pMVar1;
    connection->headers_received_tail = pMVar1;
    MVar2 = MHD_YES;
  }
  return MVar2;
}



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

undefined4 MHD_set_connection_value(int param_1,undefined4 param_2,char *param_3,char *param_4)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  size_t sVar3;
  size_t sVar4;
  
  sVar3 = 0;
  if (param_4 != (char *)0x0) {
    sVar3 = strlen(param_4);
  }
  sVar4 = 0;
  if (param_3 != (char *)0x0) {
    sVar4 = strlen(param_3);
  }
  puVar1 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);
  uVar2 = 0;
  if (puVar1 != (undefined4 *)0x0) {
    puVar1[2] = sVar4;
    puVar1[4] = sVar3;
    *puVar1 = 0;
    puVar1[1] = param_3;
    puVar1[3] = param_4;
    puVar1[5] = param_2;
    if (*(undefined4 **)(param_1 + 0x20) == (undefined4 *)0x0) {
      *(undefined4 **)(param_1 + 0x1c) = puVar1;
      *(undefined4 **)(param_1 + 0x20) = puVar1;
      return 1;
    }
    **(undefined4 **)(param_1 + 0x20) = puVar1;
    *(undefined4 **)(param_1 + 0x20) = puVar1;
    uVar2 = 1;
  }
  return uVar2;
}


PUSH EBP
PUSH EDI
XOR EBP,EBP
PUSH ESI
PUSH EBX
CALL 0x00012570
ADD EBX,0x1f145
SUB ESP,0xc
MOV EDX,dword ptr [ESP + 0x2c]
MOV ESI,dword ptr [ESP + 0x20]
TEST EDX,EDX
JZ 0x00013ee1
SUB ESP,0xc
PUSH dword ptr [ESP + 0x38]
CALL 0x00012100
ADD ESP,0x10
MOV EBP,EAX
MOV EAX,dword ptr [ESP + 0x28]
XOR EDI,EDI
TEST EAX,EAX
JZ 0x00013efc
SUB ESP,0xc
PUSH dword ptr [ESP + 0x34]
CALL 0x00012100
ADD ESP,0x10
MOV EDI,EAX
SUB ESP,0x4
PUSH 0x1
PUSH 0x18
PUSH dword ptr [ESI + 0x28]
CALL 0x0001fce0
MOV EDX,EAX
ADD ESP,0x10
XOR EAX,EAX
TEST EDX,EDX
JZ 0x00013f48
MOV EAX,dword ptr [ESP + 0x28]
MOV dword ptr [EDX + 0x8],EDI
MOV dword ptr [EDX + 0x10],EBP
MOV dword ptr [EDX],0x0
MOV dword ptr [EDX + 0x4],EAX
MOV EAX,dword ptr [ESP + 0x2c]
MOV dword ptr [EDX + 0xc],EAX
MOV EAX,dword ptr [ESP + 0x24]
MOV dword ptr [EDX + 0x14],EAX
MOV EAX,dword ptr [ESI + 0x20]
TEST EAX,EAX
JZ 0x00013f50
MOV dword ptr [EAX],EDX
MOV dword ptr [ESI + 0x20],EDX
MOV EAX,0x1
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESI + 0x1c],EDX
MOV dword ptr [ESI + 0x20],EDX
ADD ESP,0xc
POP EBX
MOV EAX,0x1
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 MHD_set_connection_value(int param_1,undefined4 param_2,char *param_3,char *param_4)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  size_t sVar3;\n  size_t sVar4;\n  \n  sVar3 = 0;\n  if (param_4 != (char *)0x0) {\n    sVar3 = strlen(param_4);\n  }\n  sVar4 = 0;\n  if (param_3 != (char *)0x0) {\n    sVar4 = strlen(param_3);\n  }\n  puVar1 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);\n  uVar2 = 0;\n  if (puVar1 != (undefined4 *)0x0) {\n    puVar1[2] = sVar4;\n    puVar1[4] = sVar3;\n    *puVar1 = 0;\n    puVar1[1] = param_3;\n    puVar1[3] = param_4;\n    puVar1[5] = param_2;\n    if (*(undefined4 **)(param_1 + 0x20) == (undefined4 *)0x0) {\n      *(undefined4 **)(param_1 + 0x1c) = puVar1;\n      *(undefined4 **)(param_1 + 0x20) = puVar1;\n      return 1;\n    }\n    **(undefined4 **)(param_1 + 0x20) = puVar1;\n    *(undefined4 **)(param_1 + 0x20) = puVar1;\n    uVar2 = 1;\n  }\n  return uVar2;\n}\n\n" comment (function_definition "undefined4 MHD_set_connection_value(int param_1,undefined4 param_2,char *param_3,char *param_4)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  size_t sVar3;\n  size_t sVar4;\n  \n  sVar3 = 0;\n  if (param_4 != (char *)0x0) {\n    sVar3 = strlen(param_4);\n  }\n  sVar4 = 0;\n  if (param_3 != (char *)0x0) {\n    sVar4 = strlen(param_3);\n  }\n  puVar1 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);\n  uVar2 = 0;\n  if (puVar1 != (undefined4 *)0x0) {\n    puVar1[2] = sVar4;\n    puVar1[4] = sVar3;\n    *puVar1 = 0;\n    puVar1[1] = param_3;\n    puVar1[3] = param_4;\n    puVar1[5] = param_2;\n    if (*(undefined4 **)(param_1 + 0x20) == (undefined4 *)0x0) {\n      *(undefined4 **)(param_1 + 0x1c) = puVar1;\n      *(undefined4 **)(param_1 + 0x20) = puVar1;\n      return 1;\n    }\n    **(undefined4 **)(param_1 + 0x20) = puVar1;\n    *(undefined4 **)(param_1 + 0x20) = puVar1;\n    uVar2 = 1;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "MHD_set_connection_value(int param_1,undefined4 param_2,char *param_3,char *param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,char *param_3,char *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  size_t sVar3;\n  size_t sVar4;\n  \n  sVar3 = 0;\n  if (param_4 != (char *)0x0) {\n    sVar3 = strlen(param_4);\n  }\n  sVar4 = 0;\n  if (param_3 != (char *)0x0) {\n    sVar4 = strlen(param_3);\n  }\n  puVar1 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);\n  uVar2 = 0;\n  if (puVar1 != (undefined4 *)0x0) {\n    puVar1[2] = sVar4;\n    puVar1[4] = sVar3;\n    *puVar1 = 0;\n    puVar1[1] = param_3;\n    puVar1[3] = param_4;\n    puVar1[5] = param_2;\n    if (*(undefined4 **)(param_1 + 0x20) == (undefined4 *)0x0) {\n      *(undefined4 **)(param_1 + 0x1c) = puVar1;\n      *(undefined4 **)(param_1 + 0x20) = puVar1;\n      return 1;\n    }\n    **(undefined4 **)(param_1 + 0x20) = puVar1;\n    *(undefined4 **)(param_1 + 0x20) = puVar1;\n    uVar2 = 1;\n  }\n  return uVar2;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) (if_statement "if (param_4 != (char *)0x0) {\n    sVar3 = strlen(param_4);\n  }" if (parenthesized_expression "(param_4 != (char *)0x0)" ( (binary_expression "param_4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar3 = strlen(param_4);\n  }" { (expression_statement "sVar3 = strlen(param_4);" (assignment_expression "sVar3 = strlen(param_4)" identifier = (call_expression "strlen(param_4)" identifier (argument_list "(param_4)" ( identifier )))) ;) })) (expression_statement "sVar4 = 0;" (assignment_expression "sVar4 = 0" identifier = number_literal) ;) (if_statement "if (param_3 != (char *)0x0) {\n    sVar4 = strlen(param_3);\n  }" if (parenthesized_expression "(param_3 != (char *)0x0)" ( (binary_expression "param_3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar4 = strlen(param_3);\n  }" { (expression_statement "sVar4 = strlen(param_3);" (assignment_expression "sVar4 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) })) (expression_statement "puVar1 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);" (assignment_expression "puVar1 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1)" identifier = (cast_expression "(undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x28),0x18,1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) , number_literal , number_literal ))))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    puVar1[2] = sVar4;\n    puVar1[4] = sVar3;\n    *puVar1 = 0;\n    puVar1[1] = param_3;\n    puVar1[3] = param_4;\n    puVar1[5] = param_2;\n    if (*(undefined4 **)(param_1 + 0x20) == (undefined4 *)0x0) {\n      *(undefined4 **)(param_1 + 0x1c) = puVar1;\n      *(undefined4 **)(param_1 + 0x20) = puVar1;\n      return 1;\n    }\n    **(undefined4 **)(param_1 + 0x20) = puVar1;\n    *(undefined4 **)(param_1 + 0x20) = puVar1;\n    uVar2 = 1;\n  }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1[2] = sVar4;\n    puVar1[4] = sVar3;\n    *puVar1 = 0;\n    puVar1[1] = param_3;\n    puVar1[3] = param_4;\n    puVar1[5] = param_2;\n    if (*(undefined4 **)(param_1 + 0x20) == (undefined4 *)0x0) {\n      *(undefined4 **)(param_1 + 0x1c) = puVar1;\n      *(undefined4 **)(param_1 + 0x20) = puVar1;\n      return 1;\n    }\n    **(undefined4 **)(param_1 + 0x20) = puVar1;\n    *(undefined4 **)(param_1 + 0x20) = puVar1;\n    uVar2 = 1;\n  }" { (expression_statement "puVar1[2] = sVar4;" (assignment_expression "puVar1[2] = sVar4" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[4] = sVar3;" (assignment_expression "puVar1[4] = sVar3" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[1] = param_3;" (assignment_expression "puVar1[1] = param_3" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[3] = param_4;" (assignment_expression "puVar1[3] = param_4" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[5] = param_2;" (assignment_expression "puVar1[5] = param_2" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (*(undefined4 **)(param_1 + 0x20) == (undefined4 *)0x0) {\n      *(undefined4 **)(param_1 + 0x1c) = puVar1;\n      *(undefined4 **)(param_1 + 0x20) = puVar1;\n      return 1;\n    }" if (parenthesized_expression "(*(undefined4 **)(param_1 + 0x20) == (undefined4 *)0x0)" ( (binary_expression "*(undefined4 **)(param_1 + 0x20) == (undefined4 *)0x0" (pointer_expression "*(undefined4 **)(param_1 + 0x20)" * (cast_expression "(undefined4 **)(param_1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *(undefined4 **)(param_1 + 0x1c) = puVar1;\n      *(undefined4 **)(param_1 + 0x20) = puVar1;\n      return 1;\n    }" { (expression_statement "*(undefined4 **)(param_1 + 0x1c) = puVar1;" (assignment_expression "*(undefined4 **)(param_1 + 0x1c) = puVar1" (pointer_expression "*(undefined4 **)(param_1 + 0x1c)" * (cast_expression "(undefined4 **)(param_1 + 0x1c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 **)(param_1 + 0x20) = puVar1;" (assignment_expression "*(undefined4 **)(param_1 + 0x20) = puVar1" (pointer_expression "*(undefined4 **)(param_1 + 0x20)" * (cast_expression "(undefined4 **)(param_1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "**(undefined4 **)(param_1 + 0x20) = puVar1;" (assignment_expression "**(undefined4 **)(param_1 + 0x20) = puVar1" (pointer_expression "**(undefined4 **)(param_1 + 0x20)" * (pointer_expression "*(undefined4 **)(param_1 + 0x20)" * (cast_expression "(undefined4 **)(param_1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) = identifier) ;) (expression_statement "*(undefined4 **)(param_1 + 0x20) = puVar1;" (assignment_expression "*(undefined4 **)(param_1 + 0x20) = puVar1" (pointer_expression "*(undefined4 **)(param_1 + 0x20)" * (cast_expression "(undefined4 **)(param_1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */\n\nMHD_Result\nMHD_set_connection_value(MHD_Connection *connection,MHD_ValueKind kind,char *key,char *value)\n\n{\n  MHD_HTTP_Header *pMVar1;\n  MHD_Result MVar2;\n  size_t sVar3;\n  size_t sVar4;\n  \n  sVar3 = 0;\n  if (value != (char *)0x0) {\n    sVar3 = strlen(value);\n  }\n  sVar4 = 0;\n  if (key != (char *)0x0) {\n    sVar4 = strlen(key);\n  }\n  pMVar1 = (MHD_HTTP_Header *)MHD_pool_allocate(connection->pool,0x18,true);\n  MVar2 = MHD_NO;\n  if (pMVar1 != (MHD_HTTP_Header *)0x0) {\n    pMVar1->header_size = sVar4;\n    pMVar1->value_size = sVar3;\n    pMVar1->next = (MHD_HTTP_Header *)0x0;\n    pMVar1->header = key;\n    pMVar1->value = value;\n    pMVar1->kind = kind;\n    if (connection->headers_received_tail == (MHD_HTTP_Header *)0x0) {\n      connection->headers_received = pMVar1;\n      connection->headers_received_tail = pMVar1;\n      return MHD_YES;\n    }\n    connection->headers_received_tail->next = pMVar1;\n    connection->headers_received_tail = pMVar1;\n    MVar2 = MHD_YES;\n  }\n  return MVar2;\n}\n\n" comment comment comment (function_definition "MHD_Result\nMHD_set_connection_value(MHD_Connection *connection,MHD_ValueKind kind,char *key,char *value)\n\n{\n  MHD_HTTP_Header *pMVar1;\n  MHD_Result MVar2;\n  size_t sVar3;\n  size_t sVar4;\n  \n  sVar3 = 0;\n  if (value != (char *)0x0) {\n    sVar3 = strlen(value);\n  }\n  sVar4 = 0;\n  if (key != (char *)0x0) {\n    sVar4 = strlen(key);\n  }\n  pMVar1 = (MHD_HTTP_Header *)MHD_pool_allocate(connection->pool,0x18,true);\n  MVar2 = MHD_NO;\n  if (pMVar1 != (MHD_HTTP_Header *)0x0) {\n    pMVar1->header_size = sVar4;\n    pMVar1->value_size = sVar3;\n    pMVar1->next = (MHD_HTTP_Header *)0x0;\n    pMVar1->header = key;\n    pMVar1->value = value;\n    pMVar1->kind = kind;\n    if (connection->headers_received_tail == (MHD_HTTP_Header *)0x0) {\n      connection->headers_received = pMVar1;\n      connection->headers_received_tail = pMVar1;\n      return MHD_YES;\n    }\n    connection->headers_received_tail->next = pMVar1;\n    connection->headers_received_tail = pMVar1;\n    MVar2 = MHD_YES;\n  }\n  return MVar2;\n}" type_identifier (function_declarator "MHD_set_connection_value(MHD_Connection *connection,MHD_ValueKind kind,char *key,char *value)" identifier (parameter_list "(MHD_Connection *connection,MHD_ValueKind kind,char *key,char *value)" ( (parameter_declaration "MHD_Connection *connection" type_identifier (pointer_declarator "*connection" * identifier)) , (parameter_declaration "MHD_ValueKind kind" type_identifier identifier) , (parameter_declaration "char *key" primitive_type (pointer_declarator "*key" * identifier)) , (parameter_declaration "char *value" primitive_type (pointer_declarator "*value" * identifier)) ))) (compound_statement "{\n  MHD_HTTP_Header *pMVar1;\n  MHD_Result MVar2;\n  size_t sVar3;\n  size_t sVar4;\n  \n  sVar3 = 0;\n  if (value != (char *)0x0) {\n    sVar3 = strlen(value);\n  }\n  sVar4 = 0;\n  if (key != (char *)0x0) {\n    sVar4 = strlen(key);\n  }\n  pMVar1 = (MHD_HTTP_Header *)MHD_pool_allocate(connection->pool,0x18,true);\n  MVar2 = MHD_NO;\n  if (pMVar1 != (MHD_HTTP_Header *)0x0) {\n    pMVar1->header_size = sVar4;\n    pMVar1->value_size = sVar3;\n    pMVar1->next = (MHD_HTTP_Header *)0x0;\n    pMVar1->header = key;\n    pMVar1->value = value;\n    pMVar1->kind = kind;\n    if (connection->headers_received_tail == (MHD_HTTP_Header *)0x0) {\n      connection->headers_received = pMVar1;\n      connection->headers_received_tail = pMVar1;\n      return MHD_YES;\n    }\n    connection->headers_received_tail->next = pMVar1;\n    connection->headers_received_tail = pMVar1;\n    MVar2 = MHD_YES;\n  }\n  return MVar2;\n}" { (declaration "MHD_HTTP_Header *pMVar1;" type_identifier (pointer_declarator "*pMVar1" * identifier) ;) (declaration "MHD_Result MVar2;" type_identifier identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) (if_statement "if (value != (char *)0x0) {\n    sVar3 = strlen(value);\n  }" if (parenthesized_expression "(value != (char *)0x0)" ( (binary_expression "value != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar3 = strlen(value);\n  }" { (expression_statement "sVar3 = strlen(value);" (assignment_expression "sVar3 = strlen(value)" identifier = (call_expression "strlen(value)" identifier (argument_list "(value)" ( identifier )))) ;) })) (expression_statement "sVar4 = 0;" (assignment_expression "sVar4 = 0" identifier = number_literal) ;) (if_statement "if (key != (char *)0x0) {\n    sVar4 = strlen(key);\n  }" if (parenthesized_expression "(key != (char *)0x0)" ( (binary_expression "key != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar4 = strlen(key);\n  }" { (expression_statement "sVar4 = strlen(key);" (assignment_expression "sVar4 = strlen(key)" identifier = (call_expression "strlen(key)" identifier (argument_list "(key)" ( identifier )))) ;) })) (expression_statement "pMVar1 = (MHD_HTTP_Header *)MHD_pool_allocate(connection->pool,0x18,true);" (assignment_expression "pMVar1 = (MHD_HTTP_Header *)MHD_pool_allocate(connection->pool,0x18,true)" identifier = (cast_expression "(MHD_HTTP_Header *)MHD_pool_allocate(connection->pool,0x18,true)" ( (type_descriptor "MHD_HTTP_Header *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "MHD_pool_allocate(connection->pool,0x18,true)" identifier (argument_list "(connection->pool,0x18,true)" ( (field_expression "connection->pool" identifier -> field_identifier) , number_literal , true ))))) ;) (expression_statement "MVar2 = MHD_NO;" (assignment_expression "MVar2 = MHD_NO" identifier = identifier) ;) (if_statement "if (pMVar1 != (MHD_HTTP_Header *)0x0) {\n    pMVar1->header_size = sVar4;\n    pMVar1->value_size = sVar3;\n    pMVar1->next = (MHD_HTTP_Header *)0x0;\n    pMVar1->header = key;\n    pMVar1->value = value;\n    pMVar1->kind = kind;\n    if (connection->headers_received_tail == (MHD_HTTP_Header *)0x0) {\n      connection->headers_received = pMVar1;\n      connection->headers_received_tail = pMVar1;\n      return MHD_YES;\n    }\n    connection->headers_received_tail->next = pMVar1;\n    connection->headers_received_tail = pMVar1;\n    MVar2 = MHD_YES;\n  }" if (parenthesized_expression "(pMVar1 != (MHD_HTTP_Header *)0x0)" ( (binary_expression "pMVar1 != (MHD_HTTP_Header *)0x0" identifier != (cast_expression "(MHD_HTTP_Header *)0x0" ( (type_descriptor "MHD_HTTP_Header *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pMVar1->header_size = sVar4;\n    pMVar1->value_size = sVar3;\n    pMVar1->next = (MHD_HTTP_Header *)0x0;\n    pMVar1->header = key;\n    pMVar1->value = value;\n    pMVar1->kind = kind;\n    if (connection->headers_received_tail == (MHD_HTTP_Header *)0x0) {\n      connection->headers_received = pMVar1;\n      connection->headers_received_tail = pMVar1;\n      return MHD_YES;\n    }\n    connection->headers_received_tail->next = pMVar1;\n    connection->headers_received_tail = pMVar1;\n    MVar2 = MHD_YES;\n  }" { (expression_statement "pMVar1->header_size = sVar4;" (assignment_expression "pMVar1->header_size = sVar4" (field_expression "pMVar1->header_size" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar1->value_size = sVar3;" (assignment_expression "pMVar1->value_size = sVar3" (field_expression "pMVar1->value_size" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar1->next = (MHD_HTTP_Header *)0x0;" (assignment_expression "pMVar1->next = (MHD_HTTP_Header *)0x0" (field_expression "pMVar1->next" identifier -> field_identifier) = (cast_expression "(MHD_HTTP_Header *)0x0" ( (type_descriptor "MHD_HTTP_Header *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pMVar1->header = key;" (assignment_expression "pMVar1->header = key" (field_expression "pMVar1->header" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar1->value = value;" (assignment_expression "pMVar1->value = value" (field_expression "pMVar1->value" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar1->kind = kind;" (assignment_expression "pMVar1->kind = kind" (field_expression "pMVar1->kind" identifier -> field_identifier) = identifier) ;) (if_statement "if (connection->headers_received_tail == (MHD_HTTP_Header *)0x0) {\n      connection->headers_received = pMVar1;\n      connection->headers_received_tail = pMVar1;\n      return MHD_YES;\n    }" if (parenthesized_expression "(connection->headers_received_tail == (MHD_HTTP_Header *)0x0)" ( (binary_expression "connection->headers_received_tail == (MHD_HTTP_Header *)0x0" (field_expression "connection->headers_received_tail" identifier -> field_identifier) == (cast_expression "(MHD_HTTP_Header *)0x0" ( (type_descriptor "MHD_HTTP_Header *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      connection->headers_received = pMVar1;\n      connection->headers_received_tail = pMVar1;\n      return MHD_YES;\n    }" { (expression_statement "connection->headers_received = pMVar1;" (assignment_expression "connection->headers_received = pMVar1" (field_expression "connection->headers_received" identifier -> field_identifier) = identifier) ;) (expression_statement "connection->headers_received_tail = pMVar1;" (assignment_expression "connection->headers_received_tail = pMVar1" (field_expression "connection->headers_received_tail" identifier -> field_identifier) = identifier) ;) (return_statement "return MHD_YES;" return identifier ;) })) (expression_statement "connection->headers_received_tail->next = pMVar1;" (assignment_expression "connection->headers_received_tail->next = pMVar1" (field_expression "connection->headers_received_tail->next" (field_expression "connection->headers_received_tail" identifier -> field_identifier) -> field_identifier) = identifier) ;) (expression_statement "connection->headers_received_tail = pMVar1;" (assignment_expression "connection->headers_received_tail = pMVar1" (field_expression "connection->headers_received_tail" identifier -> field_identifier) = identifier) ;) (expression_statement "MVar2 = MHD_YES;" (assignment_expression "MVar2 = MHD_YES" identifier = identifier) ;) })) (return_statement "return MVar2;" return identifier ;) })))
(translation_unit "undefined4 MHD_set_connection_value(int param_1,undefined4 param_2,char *param_3,char *param_4)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  size_t sVar3;\n  size_t sVar4;\n  \n  sVar3 = 0;\n  if (param_4 != (char *)0x0) {\n    sVar3 = strlen(param_4);\n  }\n  sVar4 = 0;\n  if (param_3 != (char *)0x0) {\n    sVar4 = strlen(param_3);\n  }\n  puVar1 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);\n  uVar2 = 0;\n  if (puVar1 != (undefined4 *)0x0) {\n    puVar1[2] = sVar4;\n    puVar1[4] = sVar3;\n    *puVar1 = 0;\n    puVar1[1] = param_3;\n    puVar1[3] = param_4;\n    puVar1[5] = param_2;\n    if (*(undefined4 **)(param_1 + 0x20) == (undefined4 *)0x0) {\n      *(undefined4 **)(param_1 + 0x1c) = puVar1;\n      *(undefined4 **)(param_1 + 0x20) = puVar1;\n      return 1;\n    }\n    **(undefined4 **)(param_1 + 0x20) = puVar1;\n    *(undefined4 **)(param_1 + 0x20) = puVar1;\n    uVar2 = 1;\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 MHD_set_connection_value(int param_1,undefined4 param_2,char *param_3,char *param_4)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  size_t sVar3;\n  size_t sVar4;\n  \n  sVar3 = 0;\n  if (param_4 != (char *)0x0) {\n    sVar3 = strlen(param_4);\n  }\n  sVar4 = 0;\n  if (param_3 != (char *)0x0) {\n    sVar4 = strlen(param_3);\n  }\n  puVar1 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);\n  uVar2 = 0;\n  if (puVar1 != (undefined4 *)0x0) {\n    puVar1[2] = sVar4;\n    puVar1[4] = sVar3;\n    *puVar1 = 0;\n    puVar1[1] = param_3;\n    puVar1[3] = param_4;\n    puVar1[5] = param_2;\n    if (*(undefined4 **)(param_1 + 0x20) == (undefined4 *)0x0) {\n      *(undefined4 **)(param_1 + 0x1c) = puVar1;\n      *(undefined4 **)(param_1 + 0x20) = puVar1;\n      return 1;\n    }\n    **(undefined4 **)(param_1 + 0x20) = puVar1;\n    *(undefined4 **)(param_1 + 0x20) = puVar1;\n    uVar2 = 1;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "MHD_set_connection_value(int param_1,undefined4 param_2,char *param_3,char *param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,char *param_3,char *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  size_t sVar3;\n  size_t sVar4;\n  \n  sVar3 = 0;\n  if (param_4 != (char *)0x0) {\n    sVar3 = strlen(param_4);\n  }\n  sVar4 = 0;\n  if (param_3 != (char *)0x0) {\n    sVar4 = strlen(param_3);\n  }\n  puVar1 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);\n  uVar2 = 0;\n  if (puVar1 != (undefined4 *)0x0) {\n    puVar1[2] = sVar4;\n    puVar1[4] = sVar3;\n    *puVar1 = 0;\n    puVar1[1] = param_3;\n    puVar1[3] = param_4;\n    puVar1[5] = param_2;\n    if (*(undefined4 **)(param_1 + 0x20) == (undefined4 *)0x0) {\n      *(undefined4 **)(param_1 + 0x1c) = puVar1;\n      *(undefined4 **)(param_1 + 0x20) = puVar1;\n      return 1;\n    }\n    **(undefined4 **)(param_1 + 0x20) = puVar1;\n    *(undefined4 **)(param_1 + 0x20) = puVar1;\n    uVar2 = 1;\n  }\n  return uVar2;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) (if_statement "if (param_4 != (char *)0x0) {\n    sVar3 = strlen(param_4);\n  }" if (parenthesized_expression "(param_4 != (char *)0x0)" ( (binary_expression "param_4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar3 = strlen(param_4);\n  }" { (expression_statement "sVar3 = strlen(param_4);" (assignment_expression "sVar3 = strlen(param_4)" identifier = (call_expression "strlen(param_4)" identifier (argument_list "(param_4)" ( identifier )))) ;) })) (expression_statement "sVar4 = 0;" (assignment_expression "sVar4 = 0" identifier = number_literal) ;) (if_statement "if (param_3 != (char *)0x0) {\n    sVar4 = strlen(param_3);\n  }" if (parenthesized_expression "(param_3 != (char *)0x0)" ( (binary_expression "param_3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar4 = strlen(param_3);\n  }" { (expression_statement "sVar4 = strlen(param_3);" (assignment_expression "sVar4 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) })) (expression_statement "puVar1 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);" (assignment_expression "puVar1 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1)" identifier = (cast_expression "(undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x28),0x18,1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) , number_literal , number_literal ))))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    puVar1[2] = sVar4;\n    puVar1[4] = sVar3;\n    *puVar1 = 0;\n    puVar1[1] = param_3;\n    puVar1[3] = param_4;\n    puVar1[5] = param_2;\n    if (*(undefined4 **)(param_1 + 0x20) == (undefined4 *)0x0) {\n      *(undefined4 **)(param_1 + 0x1c) = puVar1;\n      *(undefined4 **)(param_1 + 0x20) = puVar1;\n      return 1;\n    }\n    **(undefined4 **)(param_1 + 0x20) = puVar1;\n    *(undefined4 **)(param_1 + 0x20) = puVar1;\n    uVar2 = 1;\n  }" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1[2] = sVar4;\n    puVar1[4] = sVar3;\n    *puVar1 = 0;\n    puVar1[1] = param_3;\n    puVar1[3] = param_4;\n    puVar1[5] = param_2;\n    if (*(undefined4 **)(param_1 + 0x20) == (undefined4 *)0x0) {\n      *(undefined4 **)(param_1 + 0x1c) = puVar1;\n      *(undefined4 **)(param_1 + 0x20) = puVar1;\n      return 1;\n    }\n    **(undefined4 **)(param_1 + 0x20) = puVar1;\n    *(undefined4 **)(param_1 + 0x20) = puVar1;\n    uVar2 = 1;\n  }" { (expression_statement "puVar1[2] = sVar4;" (assignment_expression "puVar1[2] = sVar4" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[4] = sVar3;" (assignment_expression "puVar1[4] = sVar3" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[1] = param_3;" (assignment_expression "puVar1[1] = param_3" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[3] = param_4;" (assignment_expression "puVar1[3] = param_4" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[5] = param_2;" (assignment_expression "puVar1[5] = param_2" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (*(undefined4 **)(param_1 + 0x20) == (undefined4 *)0x0) {\n      *(undefined4 **)(param_1 + 0x1c) = puVar1;\n      *(undefined4 **)(param_1 + 0x20) = puVar1;\n      return 1;\n    }" if (parenthesized_expression "(*(undefined4 **)(param_1 + 0x20) == (undefined4 *)0x0)" ( (binary_expression "*(undefined4 **)(param_1 + 0x20) == (undefined4 *)0x0" (pointer_expression "*(undefined4 **)(param_1 + 0x20)" * (cast_expression "(undefined4 **)(param_1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *(undefined4 **)(param_1 + 0x1c) = puVar1;\n      *(undefined4 **)(param_1 + 0x20) = puVar1;\n      return 1;\n    }" { (expression_statement "*(undefined4 **)(param_1 + 0x1c) = puVar1;" (assignment_expression "*(undefined4 **)(param_1 + 0x1c) = puVar1" (pointer_expression "*(undefined4 **)(param_1 + 0x1c)" * (cast_expression "(undefined4 **)(param_1 + 0x1c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 **)(param_1 + 0x20) = puVar1;" (assignment_expression "*(undefined4 **)(param_1 + 0x20) = puVar1" (pointer_expression "*(undefined4 **)(param_1 + 0x20)" * (cast_expression "(undefined4 **)(param_1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "**(undefined4 **)(param_1 + 0x20) = puVar1;" (assignment_expression "**(undefined4 **)(param_1 + 0x20) = puVar1" (pointer_expression "**(undefined4 **)(param_1 + 0x20)" * (pointer_expression "*(undefined4 **)(param_1 + 0x20)" * (cast_expression "(undefined4 **)(param_1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) = identifier) ;) (expression_statement "*(undefined4 **)(param_1 + 0x20) = puVar1;" (assignment_expression "*(undefined4 **)(param_1 + 0x20) = puVar1" (pointer_expression "*(undefined4 **)(param_1 + 0x20)" * (cast_expression "(undefined4 **)(param_1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_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 IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) })) (expression_statement (assignment_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 IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 MHD_set_connection_value(int param_1,undefined4 param_2,char *param_3,char *param_4)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  size_t sVar3;\n  size_t sVar4;\n  \n  sVar3 = 0;\n  if (param_4 != (char *)0x0) {\n    sVar3 = strlen(param_4);\n  }\n  sVar4 = 0;\n  if (param_3 != (char *)0x0) {\n    sVar4 = strlen(param_3);\n  }\n  puVar1 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);\n  uVar2 = 0;\n  if (puVar1 != (undefined4 *)0x0) {\n    puVar1[2] = sVar4;\n    puVar1[4] = sVar3;\n    *puVar1 = 0;\n    puVar1[1] = param_3;\n    puVar1[3] = param_4;\n    puVar1[5] = param_2;\n    if (*(undefined4 **)(param_1 + 0x20) == (undefined4 *)0x0) {\n      *(undefined4 **)(param_1 + 0x1c) = puVar1;\n      *(undefined4 **)(param_1 + 0x20) = puVar1;\n      return 1;\n    }\n    **(undefined4 **)(param_1 + 0x20) = puVar1;\n    *(undefined4 **)(param_1 + 0x20) = puVar1;\n    uVar2 = 1;\n  }\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "MHD_set_connection_value(int param_1,undefined4 param_2,char *param_3,char *param_4)" (identifier "MHD_set_connection_value") (parameter_list "(int param_1,undefined4 param_2,char *param_3,char *param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "char *param_4" (primitive_type "char") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  size_t sVar3;\n  size_t sVar4;\n  \n  sVar3 = 0;\n  if (param_4 != (char *)0x0) {\n    sVar3 = strlen(param_4);\n  }\n  sVar4 = 0;\n  if (param_3 != (char *)0x0) {\n    sVar4 = strlen(param_3);\n  }\n  puVar1 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);\n  uVar2 = 0;\n  if (puVar1 != (undefined4 *)0x0) {\n    puVar1[2] = sVar4;\n    puVar1[4] = sVar3;\n    *puVar1 = 0;\n    puVar1[1] = param_3;\n    puVar1[3] = param_4;\n    puVar1[5] = param_2;\n    if (*(undefined4 **)(param_1 + 0x20) == (undefined4 *)0x0) {\n      *(undefined4 **)(param_1 + 0x1c) = puVar1;\n      *(undefined4 **)(param_1 + 0x20) = puVar1;\n      return 1;\n    }\n    **(undefined4 **)(param_1 + 0x20) = puVar1;\n    *(undefined4 **)(param_1 + 0x20) = puVar1;\n    uVar2 = 1;\n  }\n  return uVar2;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "size_t sVar4;" (primitive_type "size_t") (identifier "sVar4") (; ";")) (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" (identifier "sVar3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_4 != (char *)0x0) {\n    sVar3 = strlen(param_4);\n  }" (if "if") (parenthesized_expression "(param_4 != (char *)0x0)" (( "(") (binary_expression "param_4 != (char *)0x0" (identifier "param_4") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    sVar3 = strlen(param_4);\n  }" ({ "{") (expression_statement "sVar3 = strlen(param_4);" (assignment_expression "sVar3 = strlen(param_4)" (identifier "sVar3") (= "=") (call_expression "strlen(param_4)" (identifier "strlen") (argument_list "(param_4)" (( "(") (identifier "param_4") () ")")))) (; ";")) (} "}"))) (expression_statement "sVar4 = 0;" (assignment_expression "sVar4 = 0" (identifier "sVar4") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_3 != (char *)0x0) {\n    sVar4 = strlen(param_3);\n  }" (if "if") (parenthesized_expression "(param_3 != (char *)0x0)" (( "(") (binary_expression "param_3 != (char *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    sVar4 = strlen(param_3);\n  }" ({ "{") (expression_statement "sVar4 = strlen(param_3);" (assignment_expression "sVar4 = strlen(param_3)" (identifier "sVar4") (= "=") (call_expression "strlen(param_3)" (identifier "strlen") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (} "}"))) (expression_statement "puVar1 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);" (assignment_expression "puVar1 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1)" (identifier "FUN_0001fce0") (argument_list "(*(undefined4 *)(param_1 + 0x28),0x18,1)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (, ",") (number_literal "0x18") (, ",") (number_literal "1") () ")"))))) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (if_statement "if (puVar1 != (undefined4 *)0x0) {\n    puVar1[2] = sVar4;\n    puVar1[4] = sVar3;\n    *puVar1 = 0;\n    puVar1[1] = param_3;\n    puVar1[3] = param_4;\n    puVar1[5] = param_2;\n    if (*(undefined4 **)(param_1 + 0x20) == (undefined4 *)0x0) {\n      *(undefined4 **)(param_1 + 0x1c) = puVar1;\n      *(undefined4 **)(param_1 + 0x20) = puVar1;\n      return 1;\n    }\n    **(undefined4 **)(param_1 + 0x20) = puVar1;\n    *(undefined4 **)(param_1 + 0x20) = puVar1;\n    uVar2 = 1;\n  }" (if "if") (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 != (undefined4 *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    puVar1[2] = sVar4;\n    puVar1[4] = sVar3;\n    *puVar1 = 0;\n    puVar1[1] = param_3;\n    puVar1[3] = param_4;\n    puVar1[5] = param_2;\n    if (*(undefined4 **)(param_1 + 0x20) == (undefined4 *)0x0) {\n      *(undefined4 **)(param_1 + 0x1c) = puVar1;\n      *(undefined4 **)(param_1 + 0x20) = puVar1;\n      return 1;\n    }\n    **(undefined4 **)(param_1 + 0x20) = puVar1;\n    *(undefined4 **)(param_1 + 0x20) = puVar1;\n    uVar2 = 1;\n  }" ({ "{") (expression_statement "puVar1[2] = sVar4;" (assignment_expression "puVar1[2] = sVar4" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "sVar4")) (; ";")) (expression_statement "puVar1[4] = sVar3;" (assignment_expression "puVar1[4] = sVar3" (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "sVar3")) (; ";")) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[1] = param_3;" (assignment_expression "puVar1[1] = param_3" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "puVar1[3] = param_4;" (assignment_expression "puVar1[3] = param_4" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "puVar1[5] = param_2;" (assignment_expression "puVar1[5] = param_2" (subscript_expression "puVar1[5]" (identifier "puVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "param_2")) (; ";")) (if_statement "if (*(undefined4 **)(param_1 + 0x20) == (undefined4 *)0x0) {\n      *(undefined4 **)(param_1 + 0x1c) = puVar1;\n      *(undefined4 **)(param_1 + 0x20) = puVar1;\n      return 1;\n    }" (if "if") (parenthesized_expression "(*(undefined4 **)(param_1 + 0x20) == (undefined4 *)0x0)" (( "(") (binary_expression "*(undefined4 **)(param_1 + 0x20) == (undefined4 *)0x0" (pointer_expression "*(undefined4 **)(param_1 + 0x20)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x20)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *(undefined4 **)(param_1 + 0x1c) = puVar1;\n      *(undefined4 **)(param_1 + 0x20) = puVar1;\n      return 1;\n    }" ({ "{") (expression_statement "*(undefined4 **)(param_1 + 0x1c) = puVar1;" (assignment_expression "*(undefined4 **)(param_1 + 0x1c) = puVar1" (pointer_expression "*(undefined4 **)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "puVar1")) (; ";")) (expression_statement "*(undefined4 **)(param_1 + 0x20) = puVar1;" (assignment_expression "*(undefined4 **)(param_1 + 0x20) = puVar1" (pointer_expression "*(undefined4 **)(param_1 + 0x20)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x20)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "puVar1")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "**(undefined4 **)(param_1 + 0x20) = puVar1;" (assignment_expression "**(undefined4 **)(param_1 + 0x20) = puVar1" (pointer_expression "**(undefined4 **)(param_1 + 0x20)" (* "*") (pointer_expression "*(undefined4 **)(param_1 + 0x20)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x20)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) (= "=") (identifier "puVar1")) (; ";")) (expression_statement "*(undefined4 **)(param_1 + 0x20) = puVar1;" (assignment_expression "*(undefined4 **)(param_1 + 0x20) = puVar1" (pointer_expression "*(undefined4 **)(param_1 + 0x20)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x20)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "puVar1")) (; ";")) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (} "}"))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

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

type_1
function_1(type_2 *connection,type_3 kind,char *var_3,char *var_1)

{
  type_4 *var_5;
  type_1 MVar2;
  size_t sVar3;
  size_t sVar4;
  
  sVar3 = 0;
  if (var_1 != (char *)0x0) {
    sVar3 = var_2(var_1);
  }
  sVar4 = 0;
  if (var_3 != (char *)0x0) {
    sVar4 = var_2(var_3);
  }
  var_5 = (type_4 *)var_4(connection->pool,0x18,true);
  MVar2 = MHD_NO;
  if (var_5 != (type_4 *)0x0) {
    var_5->header_size = sVar4;
    var_5->value_size = sVar3;
    var_5->next = (type_4 *)0x0;
    var_5->header = var_3;
    var_5->var_1 = var_1;
    var_5->kind = kind;
    if (connection->headers_received_tail == (type_4 *)0x0) {
      connection->headers_received = var_5;
      connection->headers_received_tail = var_5;
      return MHD_YES;
    }
    connection->headers_received_tail->next = var_5;
    connection->headers_received_tail = var_5;
    MVar2 = MHD_YES;
  }
  return MVar2;
}


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

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

undefined4 MASKED(int param_1,undefined4 param_2,char *param_3,char *param_4)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  size_t sVar3;
  size_t sVar4;
  
  sVar3 = 0;
  if (param_4 != (char *)0x0) {
    sVar3 = strlen(param_4);
  }
  sVar4 = 0;
  if (param_3 != (char *)0x0) {
    sVar4 = strlen(param_3);
  }
  puVar1 = (undefined4 *)FUN_0001fce0(*(undefined4 *)(param_1 + 0x28),0x18,1);
  uVar2 = 0;
  if (puVar1 != (undefined4 *)0x0) {
    puVar1[2] = sVar4;
    puVar1[4] = sVar3;
    *puVar1 = 0;
    puVar1[1] = param_3;
    puVar1[3] = param_4;
    puVar1[5] = param_2;
    if (*(undefined4 **)(param_1 + 0x20) == (undefined4 *)0x0) {
      *(undefined4 **)(param_1 + 0x1c) = puVar1;
      *(undefined4 **)(param_1 + 0x20) = puVar1;
      return 1;
    }
    **(undefined4 **)(param_1 + 0x20) = puVar1;
    *(undefined4 **)(param_1 + 0x20) = puVar1;
    uVar2 = 1;
  }
  return uVar2;
}

