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

void MHD_connection_mark_closed_(MHD_Connection *connection)

{
  connection->state = MHD_CONNECTION_CLOSED;
  connection->event_loop_info = MHD_EVENT_LOOP_INFO_CLEANUP;
  if ((connection->daemon->options & MHD_USE_EPOLL_TURBO) == MHD_NO_FLAG) {
    shutdown(connection->socket_fd,1);
  }
  return;
}



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

void FUN_000140e0(int param_1)

{
  *(undefined4 *)(param_1 + 0xb4) = 0x13;
  *(undefined4 *)(param_1 + 0xb8) = 3;
  if ((*(byte *)(*(int *)(param_1 + 0x18) + 0xf5) & 0x10) == 0) {
    shutdown(*(int *)(param_1 + 0xa4),1);
  }
  return;
}


PUSH EBX
CALL 0x00012570
ADD EBX,0x1ef1a
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [EAX + 0x18]
MOV dword ptr [EAX + 0xb4],0x13
MOV dword ptr [EAX + 0xb8],0x3
TEST byte ptr [EDX + 0xf5],0x10
JNZ 0x00014126
SUB ESP,0x8
PUSH 0x1
PUSH dword ptr [EAX + 0xa4]
CALL 0x00012300
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000140e0(int param_1)\n\n{\n  *(undefined4 *)(param_1 + 0xb4) = 0x13;\n  *(undefined4 *)(param_1 + 0xb8) = 3;\n  if ((*(byte *)(*(int *)(param_1 + 0x18) + 0xf5) & 0x10) == 0) {\n    shutdown(*(int *)(param_1 + 0xa4),1);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_000140e0(int param_1)\n\n{\n  *(undefined4 *)(param_1 + 0xb4) = 0x13;\n  *(undefined4 *)(param_1 + 0xb8) = 3;\n  if ((*(byte *)(*(int *)(param_1 + 0x18) + 0xf5) & 0x10) == 0) {\n    shutdown(*(int *)(param_1 + 0xa4),1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000140e0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  *(undefined4 *)(param_1 + 0xb4) = 0x13;\n  *(undefined4 *)(param_1 + 0xb8) = 3;\n  if ((*(byte *)(*(int *)(param_1 + 0x18) + 0xf5) & 0x10) == 0) {\n    shutdown(*(int *)(param_1 + 0xa4),1);\n  }\n  return;\n}" { (expression_statement "*(undefined4 *)(param_1 + 0xb4) = 0x13;" (assignment_expression "*(undefined4 *)(param_1 + 0xb4) = 0x13" (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) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xb8) = 3;" (assignment_expression "*(undefined4 *)(param_1 + 0xb8) = 3" (pointer_expression "*(undefined4 *)(param_1 + 0xb8)" * (cast_expression "(undefined4 *)(param_1 + 0xb8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb8)" ( (binary_expression "param_1 + 0xb8" identifier + number_literal) )))) = number_literal) ;) (if_statement "if ((*(byte *)(*(int *)(param_1 + 0x18) + 0xf5) & 0x10) == 0) {\n    shutdown(*(int *)(param_1 + 0xa4),1);\n  }" if (parenthesized_expression "((*(byte *)(*(int *)(param_1 + 0x18) + 0xf5) & 0x10) == 0)" ( (binary_expression "(*(byte *)(*(int *)(param_1 + 0x18) + 0xf5) & 0x10) == 0" (parenthesized_expression "(*(byte *)(*(int *)(param_1 + 0x18) + 0xf5) & 0x10)" ( (binary_expression "*(byte *)(*(int *)(param_1 + 0x18) + 0xf5) & 0x10" (pointer_expression "*(byte *)(*(int *)(param_1 + 0x18) + 0xf5)" * (cast_expression "(byte *)(*(int *)(param_1 + 0x18) + 0xf5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + 0xf5)" ( (binary_expression "*(int *)(param_1 + 0x18) + 0xf5" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    shutdown(*(int *)(param_1 + 0xa4),1);\n  }" { (expression_statement "shutdown(*(int *)(param_1 + 0xa4),1);" (call_expression "shutdown(*(int *)(param_1 + 0xa4),1)" identifier (argument_list "(*(int *)(param_1 + 0xa4),1)" ( (pointer_expression "*(int *)(param_1 + 0xa4)" * (cast_expression "(int *)(param_1 + 0xa4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa4)" ( (binary_expression "param_1 + 0xa4" identifier + number_literal) )))) , number_literal ))) ;) })) (return_statement "return;" return ;) })))
(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\nvoid MHD_connection_mark_closed_(MHD_Connection *connection)\n\n{\n  connection->state = MHD_CONNECTION_CLOSED;\n  connection->event_loop_info = MHD_EVENT_LOOP_INFO_CLEANUP;\n  if ((connection->daemon->options & MHD_USE_EPOLL_TURBO) == MHD_NO_FLAG) {\n    shutdown(connection->socket_fd,1);\n  }\n  return;\n}\n\n" comment comment comment (function_definition "void MHD_connection_mark_closed_(MHD_Connection *connection)\n\n{\n  connection->state = MHD_CONNECTION_CLOSED;\n  connection->event_loop_info = MHD_EVENT_LOOP_INFO_CLEANUP;\n  if ((connection->daemon->options & MHD_USE_EPOLL_TURBO) == MHD_NO_FLAG) {\n    shutdown(connection->socket_fd,1);\n  }\n  return;\n}" primitive_type (function_declarator "MHD_connection_mark_closed_(MHD_Connection *connection)" identifier (parameter_list "(MHD_Connection *connection)" ( (parameter_declaration "MHD_Connection *connection" type_identifier (pointer_declarator "*connection" * identifier)) ))) (compound_statement "{\n  connection->state = MHD_CONNECTION_CLOSED;\n  connection->event_loop_info = MHD_EVENT_LOOP_INFO_CLEANUP;\n  if ((connection->daemon->options & MHD_USE_EPOLL_TURBO) == MHD_NO_FLAG) {\n    shutdown(connection->socket_fd,1);\n  }\n  return;\n}" { (expression_statement "connection->state = MHD_CONNECTION_CLOSED;" (assignment_expression "connection->state = MHD_CONNECTION_CLOSED" (field_expression "connection->state" identifier -> field_identifier) = identifier) ;) (expression_statement "connection->event_loop_info = MHD_EVENT_LOOP_INFO_CLEANUP;" (assignment_expression "connection->event_loop_info = MHD_EVENT_LOOP_INFO_CLEANUP" (field_expression "connection->event_loop_info" identifier -> field_identifier) = identifier) ;) (if_statement "if ((connection->daemon->options & MHD_USE_EPOLL_TURBO) == MHD_NO_FLAG) {\n    shutdown(connection->socket_fd,1);\n  }" if (parenthesized_expression "((connection->daemon->options & MHD_USE_EPOLL_TURBO) == MHD_NO_FLAG)" ( (binary_expression "(connection->daemon->options & MHD_USE_EPOLL_TURBO) == MHD_NO_FLAG" (parenthesized_expression "(connection->daemon->options & MHD_USE_EPOLL_TURBO)" ( (binary_expression "connection->daemon->options & MHD_USE_EPOLL_TURBO" (field_expression "connection->daemon->options" (field_expression "connection->daemon" identifier -> field_identifier) -> field_identifier) & identifier) )) == identifier) )) (compound_statement "{\n    shutdown(connection->socket_fd,1);\n  }" { (expression_statement "shutdown(connection->socket_fd,1);" (call_expression "shutdown(connection->socket_fd,1)" identifier (argument_list "(connection->socket_fd,1)" ( (field_expression "connection->socket_fd" identifier -> field_identifier) , number_literal ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000140e0(int param_1)\n\n{\n  *(undefined4 *)(param_1 + 0xb4) = 0x13;\n  *(undefined4 *)(param_1 + 0xb8) = 3;\n  if ((*(byte *)(*(int *)(param_1 + 0x18) + 0xf5) & 0x10) == 0) {\n    shutdown(*(int *)(param_1 + 0xa4),1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_000140e0(int param_1)\n\n{\n  *(undefined4 *)(param_1 + 0xb4) = 0x13;\n  *(undefined4 *)(param_1 + 0xb8) = 3;\n  if ((*(byte *)(*(int *)(param_1 + 0x18) + 0xf5) & 0x10) == 0) {\n    shutdown(*(int *)(param_1 + 0xa4),1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000140e0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  *(undefined4 *)(param_1 + 0xb4) = 0x13;\n  *(undefined4 *)(param_1 + 0xb8) = 3;\n  if ((*(byte *)(*(int *)(param_1 + 0x18) + 0xf5) & 0x10) == 0) {\n    shutdown(*(int *)(param_1 + 0xa4),1);\n  }\n  return;\n}" { (expression_statement "*(undefined4 *)(param_1 + 0xb4) = 0x13;" (assignment_expression "*(undefined4 *)(param_1 + 0xb4) = 0x13" (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) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xb8) = 3;" (assignment_expression "*(undefined4 *)(param_1 + 0xb8) = 3" (pointer_expression "*(undefined4 *)(param_1 + 0xb8)" * (cast_expression "(undefined4 *)(param_1 + 0xb8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb8)" ( (binary_expression "param_1 + 0xb8" identifier + number_literal) )))) = number_literal) ;) (if_statement "if ((*(byte *)(*(int *)(param_1 + 0x18) + 0xf5) & 0x10) == 0) {\n    shutdown(*(int *)(param_1 + 0xa4),1);\n  }" if (parenthesized_expression "((*(byte *)(*(int *)(param_1 + 0x18) + 0xf5) & 0x10) == 0)" ( (binary_expression "(*(byte *)(*(int *)(param_1 + 0x18) + 0xf5) & 0x10) == 0" (parenthesized_expression "(*(byte *)(*(int *)(param_1 + 0x18) + 0xf5) & 0x10)" ( (binary_expression "*(byte *)(*(int *)(param_1 + 0x18) + 0xf5) & 0x10" (pointer_expression "*(byte *)(*(int *)(param_1 + 0x18) + 0xf5)" * (cast_expression "(byte *)(*(int *)(param_1 + 0x18) + 0xf5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x18) + 0xf5)" ( (binary_expression "*(int *)(param_1 + 0x18) + 0xf5" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    shutdown(*(int *)(param_1 + 0xa4),1);\n  }" { (expression_statement "shutdown(*(int *)(param_1 + 0xa4),1);" (call_expression "shutdown(*(int *)(param_1 + 0xa4),1)" identifier (argument_list "(*(int *)(param_1 + 0xa4),1)" ( (pointer_expression "*(int *)(param_1 + 0xa4)" * (cast_expression "(int *)(param_1 + 0xa4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa4)" ( (binary_expression "param_1 + 0xa4" identifier + number_literal) )))) , number_literal ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (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) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_000140e0(int param_1)\n\n{\n  *(undefined4 *)(param_1 + 0xb4) = 0x13;\n  *(undefined4 *)(param_1 + 0xb8) = 3;\n  if ((*(byte *)(*(int *)(param_1 + 0x18) + 0xf5) & 0x10) == 0) {\n    shutdown(*(int *)(param_1 + 0xa4),1);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000140e0(int param_1)" (identifier "FUN_000140e0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  *(undefined4 *)(param_1 + 0xb4) = 0x13;\n  *(undefined4 *)(param_1 + 0xb8) = 3;\n  if ((*(byte *)(*(int *)(param_1 + 0x18) + 0xf5) & 0x10) == 0) {\n    shutdown(*(int *)(param_1 + 0xa4),1);\n  }\n  return;\n}" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0xb4) = 0x13;" (assignment_expression "*(undefined4 *)(param_1 + 0xb4) = 0x13" (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")) () ")")))) (= "=") (number_literal "0x13")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xb8) = 3;" (assignment_expression "*(undefined4 *)(param_1 + 0xb8) = 3" (pointer_expression "*(undefined4 *)(param_1 + 0xb8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xb8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb8)" (( "(") (binary_expression "param_1 + 0xb8" (identifier "param_1") (+ "+") (number_literal "0xb8")) () ")")))) (= "=") (number_literal "3")) (; ";")) (if_statement "if ((*(byte *)(*(int *)(param_1 + 0x18) + 0xf5) & 0x10) == 0) {\n    shutdown(*(int *)(param_1 + 0xa4),1);\n  }" (if "if") (parenthesized_expression "((*(byte *)(*(int *)(param_1 + 0x18) + 0xf5) & 0x10) == 0)" (( "(") (binary_expression "(*(byte *)(*(int *)(param_1 + 0x18) + 0xf5) & 0x10) == 0" (parenthesized_expression "(*(byte *)(*(int *)(param_1 + 0x18) + 0xf5) & 0x10)" (( "(") (binary_expression "*(byte *)(*(int *)(param_1 + 0x18) + 0xf5) & 0x10" (pointer_expression "*(byte *)(*(int *)(param_1 + 0x18) + 0xf5)" (* "*") (cast_expression "(byte *)(*(int *)(param_1 + 0x18) + 0xf5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x18) + 0xf5)" (( "(") (binary_expression "*(int *)(param_1 + 0x18) + 0xf5" (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (number_literal "0xf5")) () ")")))) (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    shutdown(*(int *)(param_1 + 0xa4),1);\n  }" ({ "{") (expression_statement "shutdown(*(int *)(param_1 + 0xa4),1);" (call_expression "shutdown(*(int *)(param_1 + 0xa4),1)" (identifier "shutdown") (argument_list "(*(int *)(param_1 + 0xa4),1)" (( "(") (pointer_expression "*(int *)(param_1 + 0xa4)" (* "*") (cast_expression "(int *)(param_1 + 0xa4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa4)" (( "(") (binary_expression "param_1 + 0xa4" (identifier "param_1") (+ "+") (number_literal "0xa4")) () ")")))) (, ",") (number_literal "1") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *connection)

{
  connection->state = MHD_CONNECTION_CLOSED;
  connection->event_loop_info = MHD_EVENT_LOOP_INFO_CLEANUP;
  if ((connection->daemon->options & var_1) == var_2) {
    var_3(connection->socket_fd,1);
  }
  return;
}


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

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

void MASKED(int param_1)

{
  *(undefined4 *)(param_1 + 0xb4) = 0x13;
  *(undefined4 *)(param_1 + 0xb8) = 3;
  if ((*(byte *)(*(int *)(param_1 + 0x18) + 0xf5) & 0x10) == 0) {
    shutdown(*(int *)(param_1 + 0xa4),1);
  }
  return;
}

