
/* 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 share_closing(Plug plug,char *error_msg,int error_code,int calling_back)

{
  if ((error_msg != (char *)0x0) &&
     ((error_code != 0x20 || (plug[6] != (plug_function_table *)0x0)))) {
    ssh_sharing_logf((Ssh_conflict)plug[3][1].log,(uint)plug[1],"Socket error: %s",error_msg);
  }
  (**(code **)(plug[2]->log + 4))(plug[2]);
  plug[2] = (plug_function_table *)0x0;
  share_try_cleanup((ssh_sharing_connstate *)plug);
  return;
}



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

void FUN_000765f0(int param_1,int param_2,int param_3)

{
  if ((param_2 != 0) && ((param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0)))) {
    FUN_0003ac70(*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14),*(undefined4 *)(param_1 + 4),
                 "Socket error: %s",param_2);
  }
  (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));
  *(undefined4 *)(param_1 + 8) = 0;
  FUN_000761e0();
  return;
}


PUSH ESI
PUSH EBX
CALL 0x000149a0
ADD EBX,0x56779
SUB ESP,0x4
MOV EAX,dword ptr [ESP + 0x14]
MOV ESI,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ESP + 0x18]
TEST EAX,EAX
JZ 0x00076635
CMP EDX,0x20
JNZ 0x0007661c
MOV EDX,dword ptr [ESI + 0x18]
TEST EDX,EDX
JZ 0x00076635
PUSH EAX
LEA EAX,[EBX + 0xfffcf5c9]
PUSH EAX
PUSH dword ptr [ESI + 0x4]
MOV EAX,dword ptr [ESI + 0xc]
PUSH dword ptr [EAX + 0x14]
CALL 0x0003ac70
ADD ESP,0x10
MOV EAX,dword ptr [ESI + 0x8]
SUB ESP,0xc
MOV EDX,dword ptr [EAX]
PUSH EAX
CALL dword ptr [EDX + 0x4]
MOV dword ptr [ESI + 0x8],0x0
MOV EAX,ESI
ADD ESP,0x14
POP EBX
POP ESI
JMP 0x000761e0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000765f0(int param_1,int param_2,int param_3)\n\n{\n  if ((param_2 != 0) && ((param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0)))) {\n    FUN_0003ac70(*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14),*(undefined4 *)(param_1 + 4),\n                 "Socket error: %s",param_2);\n  }\n  (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n  *(undefined4 *)(param_1 + 8) = 0;\n  FUN_000761e0();\n  return;\n}\n\n" comment (function_definition "void FUN_000765f0(int param_1,int param_2,int param_3)\n\n{\n  if ((param_2 != 0) && ((param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0)))) {\n    FUN_0003ac70(*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14),*(undefined4 *)(param_1 + 4),\n                 "Socket error: %s",param_2);\n  }\n  (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n  *(undefined4 *)(param_1 + 8) = 0;\n  FUN_000761e0();\n  return;\n}" primitive_type (function_declarator "FUN_000765f0(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  if ((param_2 != 0) && ((param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0)))) {\n    FUN_0003ac70(*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14),*(undefined4 *)(param_1 + 4),\n                 "Socket error: %s",param_2);\n  }\n  (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n  *(undefined4 *)(param_1 + 8) = 0;\n  FUN_000761e0();\n  return;\n}" { (if_statement "if ((param_2 != 0) && ((param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0)))) {\n    FUN_0003ac70(*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14),*(undefined4 *)(param_1 + 4),\n                 "Socket error: %s",param_2);\n  }" if (parenthesized_expression "((param_2 != 0) && ((param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0))))" ( (binary_expression "(param_2 != 0) && ((param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0)))" (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) && (parenthesized_expression "((param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0)))" ( (parenthesized_expression "(param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0))" ( (binary_expression "param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0)" (binary_expression "param_3 != 0x20" identifier != number_literal) || (parenthesized_expression "(*(int *)(param_1 + 0x18) != 0)" ( (binary_expression "*(int *)(param_1 + 0x18) != 0" (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) ))) )) ))) )) (compound_statement "{\n    FUN_0003ac70(*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14),*(undefined4 *)(param_1 + 4),\n                 "Socket error: %s",param_2);\n  }" { (expression_statement "FUN_0003ac70(*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14),*(undefined4 *)(param_1 + 4),\n                 "Socket error: %s",param_2);" (call_expression "FUN_0003ac70(*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14),*(undefined4 *)(param_1 + 4),\n                 "Socket error: %s",param_2)" identifier (argument_list "(*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14),*(undefined4 *)(param_1 + 4),\n                 "Socket error: %s",param_2)" ( (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0xc) + 0x14)" ( (binary_expression "*(int *)(param_1 + 0xc) + 0x14" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , (string_literal ""Socket error: %s"" " string_content ") , identifier ))) ;) })) (expression_statement "(**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));" (call_expression "(**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 8) + 4))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 8) + 4)" * (pointer_expression "*(code **)(**(int **)(param_1 + 8) + 4)" * (cast_expression "(code **)(**(int **)(param_1 + 8) + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 8) + 4)" ( (binary_expression "**(int **)(param_1 + 8) + 4" (pointer_expression "**(int **)(param_1 + 8)" * (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 8))" ( (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_000761e0();" (call_expression "FUN_000761e0()" identifier (argument_list "()" ( ))) ;) (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 share_closing(Plug plug,char *error_msg,int error_code,int calling_back)\n\n{\n  if ((error_msg != (char *)0x0) &&\n     ((error_code != 0x20 || (plug[6] != (plug_function_table *)0x0)))) {\n    ssh_sharing_logf((Ssh_conflict)plug[3][1].log,(uint)plug[1],"Socket error: %s",error_msg);\n  }\n  (**(code **)(plug[2]->log + 4))(plug[2]);\n  plug[2] = (plug_function_table *)0x0;\n  share_try_cleanup((ssh_sharing_connstate *)plug);\n  return;\n}\n\n" comment comment comment (function_definition "void share_closing(Plug plug,char *error_msg,int error_code,int calling_back)\n\n{\n  if ((error_msg != (char *)0x0) &&\n     ((error_code != 0x20 || (plug[6] != (plug_function_table *)0x0)))) {\n    ssh_sharing_logf((Ssh_conflict)plug[3][1].log,(uint)plug[1],"Socket error: %s",error_msg);\n  }\n  (**(code **)(plug[2]->log + 4))(plug[2]);\n  plug[2] = (plug_function_table *)0x0;\n  share_try_cleanup((ssh_sharing_connstate *)plug);\n  return;\n}" primitive_type (function_declarator "share_closing(Plug plug,char *error_msg,int error_code,int calling_back)" identifier (parameter_list "(Plug plug,char *error_msg,int error_code,int calling_back)" ( (parameter_declaration "Plug plug" type_identifier identifier) , (parameter_declaration "char *error_msg" primitive_type (pointer_declarator "*error_msg" * identifier)) , (parameter_declaration "int error_code" primitive_type identifier) , (parameter_declaration "int calling_back" primitive_type identifier) ))) (compound_statement "{\n  if ((error_msg != (char *)0x0) &&\n     ((error_code != 0x20 || (plug[6] != (plug_function_table *)0x0)))) {\n    ssh_sharing_logf((Ssh_conflict)plug[3][1].log,(uint)plug[1],"Socket error: %s",error_msg);\n  }\n  (**(code **)(plug[2]->log + 4))(plug[2]);\n  plug[2] = (plug_function_table *)0x0;\n  share_try_cleanup((ssh_sharing_connstate *)plug);\n  return;\n}" { (if_statement "if ((error_msg != (char *)0x0) &&\n     ((error_code != 0x20 || (plug[6] != (plug_function_table *)0x0)))) {\n    ssh_sharing_logf((Ssh_conflict)plug[3][1].log,(uint)plug[1],"Socket error: %s",error_msg);\n  }" if (parenthesized_expression "((error_msg != (char *)0x0) &&\n     ((error_code != 0x20 || (plug[6] != (plug_function_table *)0x0))))" ( (binary_expression "(error_msg != (char *)0x0) &&\n     ((error_code != 0x20 || (plug[6] != (plug_function_table *)0x0)))" (parenthesized_expression "(error_msg != (char *)0x0)" ( (binary_expression "error_msg != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((error_code != 0x20 || (plug[6] != (plug_function_table *)0x0)))" ( (parenthesized_expression "(error_code != 0x20 || (plug[6] != (plug_function_table *)0x0))" ( (binary_expression "error_code != 0x20 || (plug[6] != (plug_function_table *)0x0)" (binary_expression "error_code != 0x20" identifier != number_literal) || (parenthesized_expression "(plug[6] != (plug_function_table *)0x0)" ( (binary_expression "plug[6] != (plug_function_table *)0x0" (subscript_expression "plug[6]" identifier [ number_literal ]) != (cast_expression "(plug_function_table *)0x0" ( (type_descriptor "plug_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) ))) )) (compound_statement "{\n    ssh_sharing_logf((Ssh_conflict)plug[3][1].log,(uint)plug[1],"Socket error: %s",error_msg);\n  }" { (expression_statement "ssh_sharing_logf((Ssh_conflict)plug[3][1].log,(uint)plug[1],"Socket error: %s",error_msg);" (call_expression "ssh_sharing_logf((Ssh_conflict)plug[3][1].log,(uint)plug[1],"Socket error: %s",error_msg)" identifier (argument_list "((Ssh_conflict)plug[3][1].log,(uint)plug[1],"Socket error: %s",error_msg)" ( (cast_expression "(Ssh_conflict)plug[3][1].log" ( (type_descriptor "Ssh_conflict" type_identifier) ) (field_expression "plug[3][1].log" (subscript_expression "plug[3][1]" (subscript_expression "plug[3]" identifier [ number_literal ]) [ number_literal ]) . field_identifier)) , (cast_expression "(uint)plug[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "plug[1]" identifier [ number_literal ])) , (string_literal ""Socket error: %s"" " string_content ") , identifier ))) ;) })) (expression_statement "(**(code **)(plug[2]->log + 4))(plug[2]);" (call_expression "(**(code **)(plug[2]->log + 4))(plug[2])" (parenthesized_expression "(**(code **)(plug[2]->log + 4))" ( (pointer_expression "**(code **)(plug[2]->log + 4)" * (pointer_expression "*(code **)(plug[2]->log + 4)" * (cast_expression "(code **)(plug[2]->log + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(plug[2]->log + 4)" ( (binary_expression "plug[2]->log + 4" (field_expression "plug[2]->log" (subscript_expression "plug[2]" identifier [ number_literal ]) -> field_identifier) + number_literal) ))))) )) (argument_list "(plug[2])" ( (subscript_expression "plug[2]" identifier [ number_literal ]) ))) ;) (expression_statement "plug[2] = (plug_function_table *)0x0;" (assignment_expression "plug[2] = (plug_function_table *)0x0" (subscript_expression "plug[2]" identifier [ number_literal ]) = (cast_expression "(plug_function_table *)0x0" ( (type_descriptor "plug_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "share_try_cleanup((ssh_sharing_connstate *)plug);" (call_expression "share_try_cleanup((ssh_sharing_connstate *)plug)" identifier (argument_list "((ssh_sharing_connstate *)plug)" ( (cast_expression "(ssh_sharing_connstate *)plug" ( (type_descriptor "ssh_sharing_connstate *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000765f0(int param_1,int param_2,int param_3)\n\n{\n  if ((param_2 != 0) && ((param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0)))) {\n    FUN_0003ac70(*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14),*(undefined4 *)(param_1 + 4),\n                 "Socket error: %s",param_2);\n  }\n  (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n  *(undefined4 *)(param_1 + 8) = 0;\n  FUN_000761e0();\n  return;\n}\n\n" (function_definition "void FUN_000765f0(int param_1,int param_2,int param_3)\n\n{\n  if ((param_2 != 0) && ((param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0)))) {\n    FUN_0003ac70(*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14),*(undefined4 *)(param_1 + 4),\n                 "Socket error: %s",param_2);\n  }\n  (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n  *(undefined4 *)(param_1 + 8) = 0;\n  FUN_000761e0();\n  return;\n}" primitive_type (function_declarator "FUN_000765f0(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  if ((param_2 != 0) && ((param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0)))) {\n    FUN_0003ac70(*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14),*(undefined4 *)(param_1 + 4),\n                 "Socket error: %s",param_2);\n  }\n  (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n  *(undefined4 *)(param_1 + 8) = 0;\n  FUN_000761e0();\n  return;\n}" { (if_statement "if ((param_2 != 0) && ((param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0)))) {\n    FUN_0003ac70(*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14),*(undefined4 *)(param_1 + 4),\n                 "Socket error: %s",param_2);\n  }" if (parenthesized_expression "((param_2 != 0) && ((param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0))))" ( (binary_expression "(param_2 != 0) && ((param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0)))" (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) && (parenthesized_expression "((param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0)))" ( (parenthesized_expression "(param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0))" ( (binary_expression "param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0)" (binary_expression "param_3 != 0x20" identifier != number_literal) || (parenthesized_expression "(*(int *)(param_1 + 0x18) != 0)" ( (binary_expression "*(int *)(param_1 + 0x18) != 0" (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) ))) )) ))) )) (compound_statement "{\n    FUN_0003ac70(*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14),*(undefined4 *)(param_1 + 4),\n                 "Socket error: %s",param_2);\n  }" { (expression_statement "FUN_0003ac70(*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14),*(undefined4 *)(param_1 + 4),\n                 "Socket error: %s",param_2);" (call_expression "FUN_0003ac70(*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14),*(undefined4 *)(param_1 + 4),\n                 "Socket error: %s",param_2)" identifier (argument_list "(*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14),*(undefined4 *)(param_1 + 4),\n                 "Socket error: %s",param_2)" ( (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0xc) + 0x14)" ( (binary_expression "*(int *)(param_1 + 0xc) + 0x14" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , (string_literal ""Socket error: %s"" " string_content ") , identifier ))) ;) })) (expression_statement "(**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));" (call_expression "(**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 8) + 4))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 8) + 4)" * (pointer_expression "*(code **)(**(int **)(param_1 + 8) + 4)" * (cast_expression "(code **)(**(int **)(param_1 + 8) + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 8) + 4)" ( (binary_expression "**(int **)(param_1 + 8) + 4" (pointer_expression "**(int **)(param_1 + 8)" * (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 8))" ( (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_000761e0();" (call_expression "FUN_000761e0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000765f0(int param_1,int param_2,int param_3)\n\n{\n  if ((param_2 != 0) && ((param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0)))) {\n    FUN_0003ac70(*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14),*(undefined4 *)(param_1 + 4),\n                 "Socket error: %s",param_2);\n  }\n  (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n  *(undefined4 *)(param_1 + 8) = 0;\n  FUN_000761e0();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000765f0(int param_1,int param_2,int param_3)" (identifier "FUN_000765f0") (parameter_list "(int param_1,int param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  if ((param_2 != 0) && ((param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0)))) {\n    FUN_0003ac70(*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14),*(undefined4 *)(param_1 + 4),\n                 "Socket error: %s",param_2);\n  }\n  (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));\n  *(undefined4 *)(param_1 + 8) = 0;\n  FUN_000761e0();\n  return;\n}" ({ "{") (if_statement "if ((param_2 != 0) && ((param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0)))) {\n    FUN_0003ac70(*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14),*(undefined4 *)(param_1 + 4),\n                 "Socket error: %s",param_2);\n  }" (if "if") (parenthesized_expression "((param_2 != 0) && ((param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0))))" (( "(") (binary_expression "(param_2 != 0) && ((param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0)))" (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0)))" (( "(") (parenthesized_expression "(param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0))" (( "(") (binary_expression "param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0)" (binary_expression "param_3 != 0x20" (identifier "param_3") (!= "!=") (number_literal "0x20")) (|| "||") (parenthesized_expression "(*(int *)(param_1 + 0x18) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x18) != 0" (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 "0")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    FUN_0003ac70(*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14),*(undefined4 *)(param_1 + 4),\n                 "Socket error: %s",param_2);\n  }" ({ "{") (expression_statement "FUN_0003ac70(*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14),*(undefined4 *)(param_1 + 4),\n                 "Socket error: %s",param_2);" (call_expression "FUN_0003ac70(*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14),*(undefined4 *)(param_1 + 4),\n                 "Socket error: %s",param_2)" (identifier "FUN_0003ac70") (argument_list "(*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14),*(undefined4 *)(param_1 + 4),\n                 "Socket error: %s",param_2)" (( "(") (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0xc) + 0x14)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) + 0x14" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "0x14")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (, ",") (string_literal ""Socket error: %s"" (" """) (string_content "Socket error: %s") (" """)) (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (expression_statement "(**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));" (call_expression "(**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 8) + 4))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + 8) + 4)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + 8) + 4)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + 8) + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + 8) + 4)" (( "(") (binary_expression "**(int **)(param_1 + 8) + 4" (pointer_expression "**(int **)(param_1 + 8)" (* "*") (pointer_expression "*(int **)(param_1 + 8)" (* "*") (cast_expression "(int **)(param_1 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (+ "+") (number_literal "4")) () ")"))))) () ")")) (argument_list "(*(int **)(param_1 + 8))" (( "(") (pointer_expression "*(int **)(param_1 + 8)" (* "*") (cast_expression "(int **)(param_1 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_000761e0();" (call_expression "FUN_000761e0()" (identifier "FUN_000761e0") (argument_list "()" (( "(") () ")"))) (; ";")) (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,char *var_1,int var_2,int calling_back)

{
  if ((var_1 != (char *)0x0) &&
     ((var_2 != 0x20 || (plug[6] != (type_2 *)0x0)))) {
    var_3((type_3)plug[3][1].log,(type_4)plug[1],"Socket error: %s",var_1);
  }
  (**(type_5 **)(plug[2]->log + 4))(plug[2]);
  plug[2] = (type_2 *)0x0;
  var_4((type_6 *)plug);
  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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (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: (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))))) (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)) (identifier)))))) (expression_statement (call_expression function: (parenthesized_expression (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: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))))))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) 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 (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

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

void MASKED(int param_1,int param_2,int param_3)

{
  if ((param_2 != 0) && ((param_3 != 0x20 || (*(int *)(param_1 + 0x18) != 0)))) {
    FUN_0003ac70(*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x14),*(undefined4 *)(param_1 + 4),
                 "Socket error: %s",param_2);
  }
  (**(code **)(**(int **)(param_1 + 8) + 4))(*(int **)(param_1 + 8));
  *(undefined4 *)(param_1 + 8) = 0;
  FUN_000761e0();
  return;
}

