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

void pfd_sent(Plug plug,int bufsize)

{
  if ((ssh_channel *)plug[1] != (ssh_channel *)0x0) {
    sshfwd_unthrottle((ssh_channel *)plug[1],bufsize);
  }
  return;
}



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

void FUN_0001da20(int param_1,undefined4 param_2)

{
  if (*(int *)(param_1 + 4) != 0) {
    FUN_00034230(*(int *)(param_1 + 4),param_2);
  }
  return;
}


PUSH EBX
CALL 0x00015fa0
ADD EBX,0x8734a
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EAX + 0x4]
TEST EAX,EAX
JZ 0x0001da4a
SUB ESP,0x8
PUSH dword ptr [ESP + 0x1c]
PUSH EAX
CALL 0x00034230
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_0001da20(int param_1,undefined4 param_2)\n\n{\n  if (*(int *)(param_1 + 4) != 0) {\n    FUN_00034230(*(int *)(param_1 + 4),param_2);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0001da20(int param_1,undefined4 param_2)\n\n{\n  if (*(int *)(param_1 + 4) != 0) {\n    FUN_00034230(*(int *)(param_1 + 4),param_2);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0001da20(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  if (*(int *)(param_1 + 4) != 0) {\n    FUN_00034230(*(int *)(param_1 + 4),param_2);\n  }\n  return;\n}" { (if_statement "if (*(int *)(param_1 + 4) != 0) {\n    FUN_00034230(*(int *)(param_1 + 4),param_2);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 4) != 0)" ( (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_00034230(*(int *)(param_1 + 4),param_2);\n  }" { (expression_statement "FUN_00034230(*(int *)(param_1 + 4),param_2);" (call_expression "FUN_00034230(*(int *)(param_1 + 4),param_2)" identifier (argument_list "(*(int *)(param_1 + 4),param_2)" ( (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , identifier ))) ;) })) (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 "anon_enum_32": Some values do not have unique names */\n\nvoid pfd_sent(Plug plug,int bufsize)\n\n{\n  if ((ssh_channel *)plug[1] != (ssh_channel *)0x0) {\n    sshfwd_unthrottle((ssh_channel *)plug[1],bufsize);\n  }\n  return;\n}\n\n" comment comment comment (function_definition "void pfd_sent(Plug plug,int bufsize)\n\n{\n  if ((ssh_channel *)plug[1] != (ssh_channel *)0x0) {\n    sshfwd_unthrottle((ssh_channel *)plug[1],bufsize);\n  }\n  return;\n}" primitive_type (function_declarator "pfd_sent(Plug plug,int bufsize)" identifier (parameter_list "(Plug plug,int bufsize)" ( (parameter_declaration "Plug plug" type_identifier identifier) , (parameter_declaration "int bufsize" primitive_type identifier) ))) (compound_statement "{\n  if ((ssh_channel *)plug[1] != (ssh_channel *)0x0) {\n    sshfwd_unthrottle((ssh_channel *)plug[1],bufsize);\n  }\n  return;\n}" { (if_statement "if ((ssh_channel *)plug[1] != (ssh_channel *)0x0) {\n    sshfwd_unthrottle((ssh_channel *)plug[1],bufsize);\n  }" if (parenthesized_expression "((ssh_channel *)plug[1] != (ssh_channel *)0x0)" ( (binary_expression "(ssh_channel *)plug[1] != (ssh_channel *)0x0" (cast_expression "(ssh_channel *)plug[1]" ( (type_descriptor "ssh_channel *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plug[1]" identifier [ number_literal ])) != (cast_expression "(ssh_channel *)0x0" ( (type_descriptor "ssh_channel *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sshfwd_unthrottle((ssh_channel *)plug[1],bufsize);\n  }" { (expression_statement "sshfwd_unthrottle((ssh_channel *)plug[1],bufsize);" (call_expression "sshfwd_unthrottle((ssh_channel *)plug[1],bufsize)" identifier (argument_list "((ssh_channel *)plug[1],bufsize)" ( (cast_expression "(ssh_channel *)plug[1]" ( (type_descriptor "ssh_channel *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plug[1]" identifier [ number_literal ])) , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0001da20(int param_1,undefined4 param_2)\n\n{\n  if (*(int *)(param_1 + 4) != 0) {\n    FUN_00034230(*(int *)(param_1 + 4),param_2);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0001da20(int param_1,undefined4 param_2)\n\n{\n  if (*(int *)(param_1 + 4) != 0) {\n    FUN_00034230(*(int *)(param_1 + 4),param_2);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0001da20(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  if (*(int *)(param_1 + 4) != 0) {\n    FUN_00034230(*(int *)(param_1 + 4),param_2);\n  }\n  return;\n}" { (if_statement "if (*(int *)(param_1 + 4) != 0) {\n    FUN_00034230(*(int *)(param_1 + 4),param_2);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 4) != 0)" ( (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_00034230(*(int *)(param_1 + 4),param_2);\n  }" { (expression_statement "FUN_00034230(*(int *)(param_1 + 4),param_2);" (call_expression "FUN_00034230(*(int *)(param_1 + 4),param_2)" identifier (argument_list "(*(int *)(param_1 + 4),param_2)" ( (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + 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) )))) , IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0001da20(int param_1,undefined4 param_2)\n\n{\n  if (*(int *)(param_1 + 4) != 0) {\n    FUN_00034230(*(int *)(param_1 + 4),param_2);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001da20(int param_1,undefined4 param_2)" (identifier "FUN_0001da20") (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  if (*(int *)(param_1 + 4) != 0) {\n    FUN_00034230(*(int *)(param_1 + 4),param_2);\n  }\n  return;\n}" ({ "{") (if_statement "if (*(int *)(param_1 + 4) != 0) {\n    FUN_00034230(*(int *)(param_1 + 4),param_2);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 4) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00034230(*(int *)(param_1 + 4),param_2);\n  }" ({ "{") (expression_statement "FUN_00034230(*(int *)(param_1 + 4),param_2);" (call_expression "FUN_00034230(*(int *)(param_1 + 4),param_2)" (identifier "FUN_00034230") (argument_list "(*(int *)(param_1 + 4),param_2)" (( "(") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (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 "anon_enum_32": Some values do not have unique names */

void function_1(type_1 plug,int bufsize)

{
  if ((type_2 *)plug[1] != (type_2 *)0x0) {
    var_1((type_2 *)plug[1],bufsize);
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) 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 (if_statement condition: (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))) 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))))) (identifier)))))) (return_statement))))

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

void MASKED(int param_1,undefined4 param_2)

{
  if (*(int *)(param_1 + 4) != 0) {
    FUN_00034230(*(int *)(param_1 + 4),param_2);
  }
  return;
}

