
/* 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 */
/* WARNING: Enum "gnutls_pk_algorithm_t": Some values do not have unique names */
/* WARNING: Enum "gnutls_certificate_type_t": Some values do not have unique names */

int connection_add_header(MHD_Connection *connection,char *key,char *value,MHD_ValueKind kind)

{
  int iVar1;
  
  iVar1 = MHD_set_connection_value(connection,kind,key,value);
  if (iVar1 != 0) {
    return 1;
  }
  MHD_DLOG(connection->daemon,"Not enough memory in pool to allocate header record!\n");
  transmit_error_response
            (connection,0x1af,
             "<html><head><title>Request too big</title></head><body>Your HTTP header was too big for the memory constraints of this webserver.</body></html>"
            );
  return 0;
}



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

undefined4 FUN_00016770(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  int iVar1;
  
  iVar1 = MHD_set_connection_value(param_1,param_4,param_2,param_3);
  if (iVar1 != 0) {
    return 1;
  }
  FUN_00020aa0(*(undefined4 *)(param_1 + 0x18),
               "Not enough memory in pool to allocate header record!\n");
  FUN_00016610();
  return 0;
}


PUSH EDI
PUSH ESI
MOV ESI,0x1
PUSH EBX
MOV EDI,dword ptr [ESP + 0x10]
CALL 0x00013810
ADD EBX,0x1d65f
PUSH dword ptr [ESP + 0x18]
PUSH dword ptr [ESP + 0x18]
PUSH dword ptr [ESP + 0x24]
PUSH EDI
CALL 0x000130a0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000167b0
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x8
MOV ESI,EAX
LEA EAX,[EBX + 0xffff581c]
PUSH EAX
PUSH dword ptr [EDI + 0x18]
CALL 0x00020aa0
MOV EAX,EDI
LEA ECX,[EBX + 0xffff5854]
MOV EDX,0x1af
CALL 0x00016610
ADD ESP,0x10
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00016770(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = MHD_set_connection_value(param_1,param_4,param_2,param_3);\n  if (iVar1 != 0) {\n    return 1;\n  }\n  FUN_00020aa0(*(undefined4 *)(param_1 + 0x18),\n               "Not enough memory in pool to allocate header record!\n");\n  FUN_00016610();\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_00016770(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = MHD_set_connection_value(param_1,param_4,param_2,param_3);\n  if (iVar1 != 0) {\n    return 1;\n  }\n  FUN_00020aa0(*(undefined4 *)(param_1 + 0x18),\n               "Not enough memory in pool to allocate header record!\n");\n  FUN_00016610();\n  return 0;\n}" type_identifier (function_declarator "FUN_00016770(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = MHD_set_connection_value(param_1,param_4,param_2,param_3);\n  if (iVar1 != 0) {\n    return 1;\n  }\n  FUN_00020aa0(*(undefined4 *)(param_1 + 0x18),\n               "Not enough memory in pool to allocate header record!\n");\n  FUN_00016610();\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = MHD_set_connection_value(param_1,param_4,param_2,param_3);" (assignment_expression "iVar1 = MHD_set_connection_value(param_1,param_4,param_2,param_3)" identifier = (call_expression "MHD_set_connection_value(param_1,param_4,param_2,param_3)" identifier (argument_list "(param_1,param_4,param_2,param_3)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    return 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "FUN_00020aa0(*(undefined4 *)(param_1 + 0x18),\n               "Not enough memory in pool to allocate header record!\n");" (call_expression "FUN_00020aa0(*(undefined4 *)(param_1 + 0x18),\n               "Not enough memory in pool to allocate header record!\n")" identifier (argument_list "(*(undefined4 *)(param_1 + 0x18),\n               "Not enough memory in pool to allocate header record!\n")" ( (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , (string_literal ""Not enough memory in pool to allocate header record!\n"" " string_content escape_sequence ") ))) ;) (expression_statement "FUN_00016610();" (call_expression "FUN_00016610()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */\n/* WARNING: Enum "gnutls_pk_algorithm_t": Some values do not have unique names */\n/* WARNING: Enum "gnutls_certificate_type_t": Some values do not have unique names */\n\nint connection_add_header(MHD_Connection *connection,char *key,char *value,MHD_ValueKind kind)\n\n{\n  int iVar1;\n  \n  iVar1 = MHD_set_connection_value(connection,kind,key,value);\n  if (iVar1 != 0) {\n    return 1;\n  }\n  MHD_DLOG(connection->daemon,"Not enough memory in pool to allocate header record!\n");\n  transmit_error_response\n            (connection,0x1af,\n             "<html><head><title>Request too big</title></head><body>Your HTTP header was too big for the memory constraints of this webserver.</body></html>"\n            );\n  return 0;\n}\n\n" comment comment comment comment comment (function_definition "int connection_add_header(MHD_Connection *connection,char *key,char *value,MHD_ValueKind kind)\n\n{\n  int iVar1;\n  \n  iVar1 = MHD_set_connection_value(connection,kind,key,value);\n  if (iVar1 != 0) {\n    return 1;\n  }\n  MHD_DLOG(connection->daemon,"Not enough memory in pool to allocate header record!\n");\n  transmit_error_response\n            (connection,0x1af,\n             "<html><head><title>Request too big</title></head><body>Your HTTP header was too big for the memory constraints of this webserver.</body></html>"\n            );\n  return 0;\n}" primitive_type (function_declarator "connection_add_header(MHD_Connection *connection,char *key,char *value,MHD_ValueKind kind)" identifier (parameter_list "(MHD_Connection *connection,char *key,char *value,MHD_ValueKind kind)" ( (parameter_declaration "MHD_Connection *connection" type_identifier (pointer_declarator "*connection" * identifier)) , (parameter_declaration "char *key" primitive_type (pointer_declarator "*key" * identifier)) , (parameter_declaration "char *value" primitive_type (pointer_declarator "*value" * identifier)) , (parameter_declaration "MHD_ValueKind kind" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = MHD_set_connection_value(connection,kind,key,value);\n  if (iVar1 != 0) {\n    return 1;\n  }\n  MHD_DLOG(connection->daemon,"Not enough memory in pool to allocate header record!\n");\n  transmit_error_response\n            (connection,0x1af,\n             "<html><head><title>Request too big</title></head><body>Your HTTP header was too big for the memory constraints of this webserver.</body></html>"\n            );\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = MHD_set_connection_value(connection,kind,key,value);" (assignment_expression "iVar1 = MHD_set_connection_value(connection,kind,key,value)" identifier = (call_expression "MHD_set_connection_value(connection,kind,key,value)" identifier (argument_list "(connection,kind,key,value)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    return 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "MHD_DLOG(connection->daemon,"Not enough memory in pool to allocate header record!\n");" (call_expression "MHD_DLOG(connection->daemon,"Not enough memory in pool to allocate header record!\n")" identifier (argument_list "(connection->daemon,"Not enough memory in pool to allocate header record!\n")" ( (field_expression "connection->daemon" identifier -> field_identifier) , (string_literal ""Not enough memory in pool to allocate header record!\n"" " string_content escape_sequence ") ))) ;) (expression_statement "transmit_error_response\n            (connection,0x1af,\n             "<html><head><title>Request too big</title></head><body>Your HTTP header was too big for the memory constraints of this webserver.</body></html>"\n            );" (call_expression "transmit_error_response\n            (connection,0x1af,\n             "<html><head><title>Request too big</title></head><body>Your HTTP header was too big for the memory constraints of this webserver.</body></html>"\n            )" identifier (argument_list "(connection,0x1af,\n             "<html><head><title>Request too big</title></head><body>Your HTTP header was too big for the memory constraints of this webserver.</body></html>"\n            )" ( identifier , number_literal , (string_literal ""<html><head><title>Request too big</title></head><body>Your HTTP header was too big for the memory constraints of this webserver.</body></html>"" " string_content ") ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00016770(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = MHD_set_connection_value(param_1,param_4,param_2,param_3);\n  if (iVar1 != 0) {\n    return 1;\n  }\n  FUN_00020aa0(*(undefined4 *)(param_1 + 0x18),\n               "Not enough memory in pool to allocate header record!\n");\n  FUN_00016610();\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00016770(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = MHD_set_connection_value(param_1,param_4,param_2,param_3);\n  if (iVar1 != 0) {\n    return 1;\n  }\n  FUN_00020aa0(*(undefined4 *)(param_1 + 0x18),\n               "Not enough memory in pool to allocate header record!\n");\n  FUN_00016610();\n  return 0;\n}" type_identifier (function_declarator "FUN_00016770(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = MHD_set_connection_value(param_1,param_4,param_2,param_3);\n  if (iVar1 != 0) {\n    return 1;\n  }\n  FUN_00020aa0(*(undefined4 *)(param_1 + 0x18),\n               "Not enough memory in pool to allocate header record!\n");\n  FUN_00016610();\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = MHD_set_connection_value(param_1,param_4,param_2,param_3);" (assignment_expression "iVar1 = MHD_set_connection_value(param_1,param_4,param_2,param_3)" identifier = (call_expression "MHD_set_connection_value(param_1,param_4,param_2,param_3)" identifier (argument_list "(param_1,param_4,param_2,param_3)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    return 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "FUN_00020aa0(*(undefined4 *)(param_1 + 0x18),\n               "Not enough memory in pool to allocate header record!\n");" (call_expression "FUN_00020aa0(*(undefined4 *)(param_1 + 0x18),\n               "Not enough memory in pool to allocate header record!\n")" identifier (argument_list "(*(undefined4 *)(param_1 + 0x18),\n               "Not enough memory in pool to allocate header record!\n")" ( (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , (string_literal ""Not enough memory in pool to allocate header record!\n"" " string_content escape_sequence ") ))) ;) (expression_statement "FUN_00016610();" (call_expression "FUN_00016610()" identifier (argument_list "()" ( ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (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 ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (string_literal " string_content escape_sequence ") ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00016770(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = MHD_set_connection_value(param_1,param_4,param_2,param_3);\n  if (iVar1 != 0) {\n    return 1;\n  }\n  FUN_00020aa0(*(undefined4 *)(param_1 + 0x18),\n               "Not enough memory in pool to allocate header record!\n");\n  FUN_00016610();\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00016770(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_00016770") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 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 "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = MHD_set_connection_value(param_1,param_4,param_2,param_3);\n  if (iVar1 != 0) {\n    return 1;\n  }\n  FUN_00020aa0(*(undefined4 *)(param_1 + 0x18),\n               "Not enough memory in pool to allocate header record!\n");\n  FUN_00016610();\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = MHD_set_connection_value(param_1,param_4,param_2,param_3);" (assignment_expression "iVar1 = MHD_set_connection_value(param_1,param_4,param_2,param_3)" (identifier "iVar1") (= "=") (call_expression "MHD_set_connection_value(param_1,param_4,param_2,param_3)" (identifier "MHD_set_connection_value") (argument_list "(param_1,param_4,param_2,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_4") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    return 1;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "FUN_00020aa0(*(undefined4 *)(param_1 + 0x18),\n               "Not enough memory in pool to allocate header record!\n");" (call_expression "FUN_00020aa0(*(undefined4 *)(param_1 + 0x18),\n               "Not enough memory in pool to allocate header record!\n")" (identifier "FUN_00020aa0") (argument_list "(*(undefined4 *)(param_1 + 0x18),\n               "Not enough memory in pool to allocate header record!\n")" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (string_literal ""Not enough memory in pool to allocate header record!\n"" (" """) (string_content "Not enough memory in pool to allocate header record!") (escape_sequence "\n") (" """)) () ")"))) (; ";")) (expression_statement "FUN_00016610();" (call_expression "FUN_00016610()" (identifier "FUN_00016610") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* 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 */
/* WARNING: Enum "gnutls_pk_algorithm_t": Some values do not have unique names */
/* WARNING: Enum "gnutls_certificate_type_t": Some values do not have unique names */

int function_1(type_1 *connection,char *key,char *value,type_2 kind)

{
  int var_2;
  
  var_2 = var_1(connection,kind,key,value);
  if (var_2 != 0) {
    return 1;
  }
  var_3(connection->daemon,"Not enough memory in pool to allocate header record!\n");
  var_4
            (connection,0x1af,
             "<html><head><title>Request too big</title></head><body>Your HTTP header was too big for the memory constraints of this webserver.</body></html>"
            );
  return 0;
}


(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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (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))))) (string_literal (string_content) (escape_sequence))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement (number_literal)))))

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

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

{
  int iVar1;
  
  iVar1 = MHD_set_connection_value(param_1,param_4,param_2,param_3);
  if (iVar1 != 0) {
    return 1;
  }
  FUN_00020aa0(*(undefined4 *)(param_1 + 0x18),
               "Not enough memory in pool to allocate header record!\n");
  FUN_00016610();
  return 0;
}

