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

int __regparm3 check_write_done(MHD_Connection *connection,MHD_CONNECTION_STATE next_state)

{
  connection->write_buffer_append_offset = 0;
  connection->write_buffer_send_offset = 0;
  connection->state = next_state;
  MHD_pool_reallocate(connection->pool,connection->write_buffer,connection->write_buffer_size,0);
  connection->write_buffer = (char *)0x0;
  connection->write_buffer_size = 0;
  return 1;
}



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

undefined4 __regparm3 FUN_00013cf0(int param_1,undefined4 param_2)

{
  *(undefined4 *)(param_1 + 0x70) = 0;
  *(undefined4 *)(param_1 + 0x6c) = 0;
  *(undefined4 *)(param_1 + 0xb4) = param_2;
  FUN_00020f40(*(undefined4 *)(param_1 + 0x28),*(undefined4 *)(param_1 + 0x48),
               *(undefined4 *)(param_1 + 0x68),0,0x13cf9);
  *(undefined4 *)(param_1 + 0x48) = 0;
  *(undefined4 *)(param_1 + 0x68) = 0;
  return 1;
}


PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00013810
ADD EBX,0x200e7
SUB ESP,0x4
MOV dword ptr [EAX + 0x70],0x0
MOV dword ptr [EAX + 0x6c],0x0
MOV dword ptr [EAX + 0xb4],EDX
PUSH 0x0
PUSH dword ptr [EAX + 0x68]
PUSH dword ptr [EAX + 0x48]
PUSH dword ptr [EAX + 0x28]
CALL 0x00020f40
MOV dword ptr [ESI + 0x48],0x0
MOV EAX,0x1
MOV dword ptr [ESI + 0x68],0x0
ADD ESP,0x14
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_00013cf0(int param_1,undefined4 param_2)\n\n{\n  *(undefined4 *)(param_1 + 0x70) = 0;\n  *(undefined4 *)(param_1 + 0x6c) = 0;\n  *(undefined4 *)(param_1 + 0xb4) = param_2;\n  FUN_00020f40(*(undefined4 *)(param_1 + 0x28),*(undefined4 *)(param_1 + 0x48),\n               *(undefined4 *)(param_1 + 0x68),0,0x13cf9);\n  *(undefined4 *)(param_1 + 0x48) = 0;\n  *(undefined4 *)(param_1 + 0x68) = 0;\n  return 1;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_00013cf0(int param_1,undefined4 param_2)\n\n{\n  *(undefined4 *)(param_1 + 0x70) = 0;\n  *(undefined4 *)(param_1 + 0x6c) = 0;\n  *(undefined4 *)(param_1 + 0xb4) = param_2;\n  FUN_00020f40(*(undefined4 *)(param_1 + 0x28),*(undefined4 *)(param_1 + 0x48),\n               *(undefined4 *)(param_1 + 0x68),0,0x13cf9);\n  *(undefined4 *)(param_1 + 0x48) = 0;\n  *(undefined4 *)(param_1 + 0x68) = 0;\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00013cf0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  *(undefined4 *)(param_1 + 0x70) = 0;\n  *(undefined4 *)(param_1 + 0x6c) = 0;\n  *(undefined4 *)(param_1 + 0xb4) = param_2;\n  FUN_00020f40(*(undefined4 *)(param_1 + 0x28),*(undefined4 *)(param_1 + 0x48),\n               *(undefined4 *)(param_1 + 0x68),0,0x13cf9);\n  *(undefined4 *)(param_1 + 0x48) = 0;\n  *(undefined4 *)(param_1 + 0x68) = 0;\n  return 1;\n}" { (expression_statement "*(undefined4 *)(param_1 + 0x70) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x70) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x70)" * (cast_expression "(undefined4 *)(param_1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x6c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x6c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" * (cast_expression "(undefined4 *)(param_1 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xb4) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0xb4) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0xb4)" * (cast_expression "(undefined4 *)(param_1 + 0xb4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb4)" ( (binary_expression "param_1 + 0xb4" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_00020f40(*(undefined4 *)(param_1 + 0x28),*(undefined4 *)(param_1 + 0x48),\n               *(undefined4 *)(param_1 + 0x68),0,0x13cf9);" (call_expression "FUN_00020f40(*(undefined4 *)(param_1 + 0x28),*(undefined4 *)(param_1 + 0x48),\n               *(undefined4 *)(param_1 + 0x68),0,0x13cf9)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x28),*(undefined4 *)(param_1 + 0x48),\n               *(undefined4 *)(param_1 + 0x68),0,0x13cf9)" ( (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) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x48)" * (cast_expression "(undefined4 *)(param_1 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x68)" * (cast_expression "(undefined4 *)(param_1 + 0x68)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) , number_literal , number_literal ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x48) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x48) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x48)" * (cast_expression "(undefined4 *)(param_1 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x68) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x68) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x68)" * (cast_expression "(undefined4 *)(param_1 + 0x68)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */\n/* WARNING: Enum "gnutls_pk_algorithm_t": Some values do not have unique names */\n/* WARNING: Enum "gnutls_certificate_type_t": Some values do not have unique names */\n\nint __regparm3 check_write_done(MHD_Connection *connection,MHD_CONNECTION_STATE next_state)\n\n{\n  connection->write_buffer_append_offset = 0;\n  connection->write_buffer_send_offset = 0;\n  connection->state = next_state;\n  MHD_pool_reallocate(connection->pool,connection->write_buffer,connection->write_buffer_size,0);\n  connection->write_buffer = (char *)0x0;\n  connection->write_buffer_size = 0;\n  return 1;\n}\n\n" comment comment comment comment (function_definition "int __regparm3 check_write_done(MHD_Connection *connection,MHD_CONNECTION_STATE next_state)\n\n{\n  connection->write_buffer_append_offset = 0;\n  connection->write_buffer_send_offset = 0;\n  connection->state = next_state;\n  MHD_pool_reallocate(connection->pool,connection->write_buffer,connection->write_buffer_size,0);\n  connection->write_buffer = (char *)0x0;\n  connection->write_buffer_size = 0;\n  return 1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "check_write_done(MHD_Connection *connection,MHD_CONNECTION_STATE next_state)" identifier (parameter_list "(MHD_Connection *connection,MHD_CONNECTION_STATE next_state)" ( (parameter_declaration "MHD_Connection *connection" type_identifier (pointer_declarator "*connection" * identifier)) , (parameter_declaration "MHD_CONNECTION_STATE next_state" type_identifier identifier) ))) (compound_statement "{\n  connection->write_buffer_append_offset = 0;\n  connection->write_buffer_send_offset = 0;\n  connection->state = next_state;\n  MHD_pool_reallocate(connection->pool,connection->write_buffer,connection->write_buffer_size,0);\n  connection->write_buffer = (char *)0x0;\n  connection->write_buffer_size = 0;\n  return 1;\n}" { (expression_statement "connection->write_buffer_append_offset = 0;" (assignment_expression "connection->write_buffer_append_offset = 0" (field_expression "connection->write_buffer_append_offset" identifier -> field_identifier) = number_literal) ;) (expression_statement "connection->write_buffer_send_offset = 0;" (assignment_expression "connection->write_buffer_send_offset = 0" (field_expression "connection->write_buffer_send_offset" identifier -> field_identifier) = number_literal) ;) (expression_statement "connection->state = next_state;" (assignment_expression "connection->state = next_state" (field_expression "connection->state" identifier -> field_identifier) = identifier) ;) (expression_statement "MHD_pool_reallocate(connection->pool,connection->write_buffer,connection->write_buffer_size,0);" (call_expression "MHD_pool_reallocate(connection->pool,connection->write_buffer,connection->write_buffer_size,0)" identifier (argument_list "(connection->pool,connection->write_buffer,connection->write_buffer_size,0)" ( (field_expression "connection->pool" identifier -> field_identifier) , (field_expression "connection->write_buffer" identifier -> field_identifier) , (field_expression "connection->write_buffer_size" identifier -> field_identifier) , number_literal ))) ;) (expression_statement "connection->write_buffer = (char *)0x0;" (assignment_expression "connection->write_buffer = (char *)0x0" (field_expression "connection->write_buffer" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "connection->write_buffer_size = 0;" (assignment_expression "connection->write_buffer_size = 0" (field_expression "connection->write_buffer_size" identifier -> field_identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3 FUN_00013cf0(int param_1,undefined4 param_2)\n\n{\n  *(undefined4 *)(param_1 + 0x70) = 0;\n  *(undefined4 *)(param_1 + 0x6c) = 0;\n  *(undefined4 *)(param_1 + 0xb4) = param_2;\n  FUN_00020f40(*(undefined4 *)(param_1 + 0x28),*(undefined4 *)(param_1 + 0x48),\n               *(undefined4 *)(param_1 + 0x68),0,0x13cf9);\n  *(undefined4 *)(param_1 + 0x48) = 0;\n  *(undefined4 *)(param_1 + 0x68) = 0;\n  return 1;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00013cf0(int param_1,undefined4 param_2)\n\n{\n  *(undefined4 *)(param_1 + 0x70) = 0;\n  *(undefined4 *)(param_1 + 0x6c) = 0;\n  *(undefined4 *)(param_1 + 0xb4) = param_2;\n  FUN_00020f40(*(undefined4 *)(param_1 + 0x28),*(undefined4 *)(param_1 + 0x48),\n               *(undefined4 *)(param_1 + 0x68),0,0x13cf9);\n  *(undefined4 *)(param_1 + 0x48) = 0;\n  *(undefined4 *)(param_1 + 0x68) = 0;\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00013cf0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  *(undefined4 *)(param_1 + 0x70) = 0;\n  *(undefined4 *)(param_1 + 0x6c) = 0;\n  *(undefined4 *)(param_1 + 0xb4) = param_2;\n  FUN_00020f40(*(undefined4 *)(param_1 + 0x28),*(undefined4 *)(param_1 + 0x48),\n               *(undefined4 *)(param_1 + 0x68),0,0x13cf9);\n  *(undefined4 *)(param_1 + 0x48) = 0;\n  *(undefined4 *)(param_1 + 0x68) = 0;\n  return 1;\n}" { (expression_statement "*(undefined4 *)(param_1 + 0x70) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x70) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x70)" * (cast_expression "(undefined4 *)(param_1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x6c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x6c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" * (cast_expression "(undefined4 *)(param_1 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xb4) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0xb4) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0xb4)" * (cast_expression "(undefined4 *)(param_1 + 0xb4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb4)" ( (binary_expression "param_1 + 0xb4" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_00020f40(*(undefined4 *)(param_1 + 0x28),*(undefined4 *)(param_1 + 0x48),\n               *(undefined4 *)(param_1 + 0x68),0,0x13cf9);" (call_expression "FUN_00020f40(*(undefined4 *)(param_1 + 0x28),*(undefined4 *)(param_1 + 0x48),\n               *(undefined4 *)(param_1 + 0x68),0,0x13cf9)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x28),*(undefined4 *)(param_1 + 0x48),\n               *(undefined4 *)(param_1 + 0x68),0,0x13cf9)" ( (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) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x48)" * (cast_expression "(undefined4 *)(param_1 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x68)" * (cast_expression "(undefined4 *)(param_1 + 0x68)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) , number_literal , number_literal ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x48) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x48) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x48)" * (cast_expression "(undefined4 *)(param_1 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x68) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x68) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x68)" * (cast_expression "(undefined4 *)(param_1 + 0x68)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_00013cf0(int param_1,undefined4 param_2)\n\n{\n  *(undefined4 *)(param_1 + 0x70) = 0;\n  *(undefined4 *)(param_1 + 0x6c) = 0;\n  *(undefined4 *)(param_1 + 0xb4) = param_2;\n  FUN_00020f40(*(undefined4 *)(param_1 + 0x28),*(undefined4 *)(param_1 + 0x48),\n               *(undefined4 *)(param_1 + 0x68),0,0x13cf9);\n  *(undefined4 *)(param_1 + 0x48) = 0;\n  *(undefined4 *)(param_1 + 0x68) = 0;\n  return 1;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00013cf0(int param_1,undefined4 param_2)" (identifier "FUN_00013cf0") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  *(undefined4 *)(param_1 + 0x70) = 0;\n  *(undefined4 *)(param_1 + 0x6c) = 0;\n  *(undefined4 *)(param_1 + 0xb4) = param_2;\n  FUN_00020f40(*(undefined4 *)(param_1 + 0x28),*(undefined4 *)(param_1 + 0x48),\n               *(undefined4 *)(param_1 + 0x68),0,0x13cf9);\n  *(undefined4 *)(param_1 + 0x48) = 0;\n  *(undefined4 *)(param_1 + 0x68) = 0;\n  return 1;\n}" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x70) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x70) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x70)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x6c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x6c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x6c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xb4) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0xb4) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0xb4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xb4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb4)" (( "(") (binary_expression "param_1 + 0xb4" (identifier "param_1") (+ "+") (number_literal "0xb4")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "FUN_00020f40(*(undefined4 *)(param_1 + 0x28),*(undefined4 *)(param_1 + 0x48),\n               *(undefined4 *)(param_1 + 0x68),0,0x13cf9);" (call_expression "FUN_00020f40(*(undefined4 *)(param_1 + 0x28),*(undefined4 *)(param_1 + 0x48),\n               *(undefined4 *)(param_1 + 0x68),0,0x13cf9)" (identifier "FUN_00020f40") (argument_list "(*(undefined4 *)(param_1 + 0x28),*(undefined4 *)(param_1 + 0x48),\n               *(undefined4 *)(param_1 + 0x68),0,0x13cf9)" (( "(") (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")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x48)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x48)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x68)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x68)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))) (, ",") (number_literal "0") (, ",") (number_literal "0x13cf9") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x48) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x48) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x48)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x48)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x68) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x68) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x68)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x68)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

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

int __regparm3 function_1(type_1 *connection,type_2 next_state)

{
  connection->write_buffer_append_offset = 0;
  connection->write_buffer_send_offset = 0;
  connection->state = next_state;
  var_1(connection->pool,connection->write_buffer,connection->write_buffer_size,0);
  connection->write_buffer = (char *)0x0;
  connection->write_buffer_size = 0;
  return 1;
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (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))))) (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))))) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement (number_literal)))))

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

undefined4 __regparm3 MASKED(int param_1,undefined4 param_2)

{
  *(undefined4 *)(param_1 + 0x70) = 0;
  *(undefined4 *)(param_1 + 0x6c) = 0;
  *(undefined4 *)(param_1 + 0xb4) = param_2;
  FUN_00020f40(*(undefined4 *)(param_1 + 0x28),*(undefined4 *)(param_1 + 0x48),
               *(undefined4 *)(param_1 + 0x68),0,0x13cf9);
  *(undefined4 *)(param_1 + 0x48) = 0;
  *(undefined4 *)(param_1 + 0x68) = 0;
  return 1;
}

