
/* 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 ssh_socket_log(Plug plug,int type,SockAddr addr,int port,char *error_msg,int error_code)

{
  if (plug[0x3c] != (plug_function_table *)0x0) {
    return;
  }
  backend_socket_log(plug[0x44],type,addr,port,error_msg,error_code,(Conf *)plug[0x92],
                     (int)plug[0x43]);
  return;
}



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

void FUN_000373a0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                 undefined4 param_5,undefined4 param_6)

{
  if (*(int *)(param_1 + 0xf0) != 0) {
    return;
  }
  FUN_00014b30(*(undefined4 *)(param_1 + 0x110),param_2,param_3,param_4,param_5,param_6,
               *(undefined4 *)(param_1 + 0x248),*(undefined4 *)(param_1 + 0x10c));
  return;
}


PUSH EBX
CALL 0x000149a0
ADD EBX,0x989ea
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [EAX + 0xf0]
TEST EDX,EDX
JZ 0x000373c8
ADD ESP,0x8
POP EBX
RET
PUSH dword ptr [EAX + 0x10c]
PUSH dword ptr [EAX + 0x248]
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [EAX + 0x110]
CALL 0x00014b30
ADD ESP,0x20
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_000373a0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6)\n\n{\n  if (*(int *)(param_1 + 0xf0) != 0) {\n    return;\n  }\n  FUN_00014b30(*(undefined4 *)(param_1 + 0x110),param_2,param_3,param_4,param_5,param_6,\n               *(undefined4 *)(param_1 + 0x248),*(undefined4 *)(param_1 + 0x10c));\n  return;\n}\n\n" comment (function_definition "void FUN_000373a0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6)\n\n{\n  if (*(int *)(param_1 + 0xf0) != 0) {\n    return;\n  }\n  FUN_00014b30(*(undefined4 *)(param_1 + 0x110),param_2,param_3,param_4,param_5,param_6,\n               *(undefined4 *)(param_1 + 0x248),*(undefined4 *)(param_1 + 0x10c));\n  return;\n}" primitive_type (function_declarator "FUN_000373a0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  if (*(int *)(param_1 + 0xf0) != 0) {\n    return;\n  }\n  FUN_00014b30(*(undefined4 *)(param_1 + 0x110),param_2,param_3,param_4,param_5,param_6,\n               *(undefined4 *)(param_1 + 0x248),*(undefined4 *)(param_1 + 0x10c));\n  return;\n}" { (if_statement "if (*(int *)(param_1 + 0xf0) != 0) {\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xf0) != 0)" ( (binary_expression "*(int *)(param_1 + 0xf0) != 0" (pointer_expression "*(int *)(param_1 + 0xf0)" * (cast_expression "(int *)(param_1 + 0xf0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf0)" ( (binary_expression "param_1 + 0xf0" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00014b30(*(undefined4 *)(param_1 + 0x110),param_2,param_3,param_4,param_5,param_6,\n               *(undefined4 *)(param_1 + 0x248),*(undefined4 *)(param_1 + 0x10c));" (call_expression "FUN_00014b30(*(undefined4 *)(param_1 + 0x110),param_2,param_3,param_4,param_5,param_6,\n               *(undefined4 *)(param_1 + 0x248),*(undefined4 *)(param_1 + 0x10c))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x110),param_2,param_3,param_4,param_5,param_6,\n               *(undefined4 *)(param_1 + 0x248),*(undefined4 *)(param_1 + 0x10c))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x110)" * (cast_expression "(undefined4 *)(param_1 + 0x110)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x110)" ( (binary_expression "param_1 + 0x110" identifier + number_literal) )))) , identifier , identifier , identifier , identifier , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x10c)" * (cast_expression "(undefined4 *)(param_1 + 0x10c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + 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 "anon_enum_32": Some values do not have unique names */\n\nvoid ssh_socket_log(Plug plug,int type,SockAddr addr,int port,char *error_msg,int error_code)\n\n{\n  if (plug[0x3c] != (plug_function_table *)0x0) {\n    return;\n  }\n  backend_socket_log(plug[0x44],type,addr,port,error_msg,error_code,(Conf *)plug[0x92],\n                     (int)plug[0x43]);\n  return;\n}\n\n" comment comment comment (function_definition "void ssh_socket_log(Plug plug,int type,SockAddr addr,int port,char *error_msg,int error_code)\n\n{\n  if (plug[0x3c] != (plug_function_table *)0x0) {\n    return;\n  }\n  backend_socket_log(plug[0x44],type,addr,port,error_msg,error_code,(Conf *)plug[0x92],\n                     (int)plug[0x43]);\n  return;\n}" primitive_type (function_declarator "ssh_socket_log(Plug plug,int type,SockAddr addr,int port,char *error_msg,int error_code)" identifier (parameter_list "(Plug plug,int type,SockAddr addr,int port,char *error_msg,int error_code)" ( (parameter_declaration "Plug plug" type_identifier identifier) , (parameter_declaration "int type" primitive_type identifier) , (parameter_declaration "SockAddr addr" type_identifier identifier) , (parameter_declaration "int port" primitive_type identifier) , (parameter_declaration "char *error_msg" primitive_type (pointer_declarator "*error_msg" * identifier)) , (parameter_declaration "int error_code" primitive_type identifier) ))) (compound_statement "{\n  if (plug[0x3c] != (plug_function_table *)0x0) {\n    return;\n  }\n  backend_socket_log(plug[0x44],type,addr,port,error_msg,error_code,(Conf *)plug[0x92],\n                     (int)plug[0x43]);\n  return;\n}" { (if_statement "if (plug[0x3c] != (plug_function_table *)0x0) {\n    return;\n  }" if (parenthesized_expression "(plug[0x3c] != (plug_function_table *)0x0)" ( (binary_expression "plug[0x3c] != (plug_function_table *)0x0" (subscript_expression "plug[0x3c]" identifier [ number_literal ]) != (cast_expression "(plug_function_table *)0x0" ( (type_descriptor "plug_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "backend_socket_log(plug[0x44],type,addr,port,error_msg,error_code,(Conf *)plug[0x92],\n                     (int)plug[0x43]);" (call_expression "backend_socket_log(plug[0x44],type,addr,port,error_msg,error_code,(Conf *)plug[0x92],\n                     (int)plug[0x43])" identifier (argument_list "(plug[0x44],type,addr,port,error_msg,error_code,(Conf *)plug[0x92],\n                     (int)plug[0x43])" ( (subscript_expression "plug[0x44]" identifier [ number_literal ]) , identifier , identifier , identifier , identifier , identifier , (cast_expression "(Conf *)plug[0x92]" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plug[0x92]" identifier [ number_literal ])) , (cast_expression "(int)plug[0x43]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plug[0x43]" identifier [ number_literal ])) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000373a0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6)\n\n{\n  if (*(int *)(param_1 + 0xf0) != 0) {\n    return;\n  }\n  FUN_00014b30(*(undefined4 *)(param_1 + 0x110),param_2,param_3,param_4,param_5,param_6,\n               *(undefined4 *)(param_1 + 0x248),*(undefined4 *)(param_1 + 0x10c));\n  return;\n}\n\n" (function_definition "void FUN_000373a0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6)\n\n{\n  if (*(int *)(param_1 + 0xf0) != 0) {\n    return;\n  }\n  FUN_00014b30(*(undefined4 *)(param_1 + 0x110),param_2,param_3,param_4,param_5,param_6,\n               *(undefined4 *)(param_1 + 0x248),*(undefined4 *)(param_1 + 0x10c));\n  return;\n}" primitive_type (function_declarator "FUN_000373a0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  if (*(int *)(param_1 + 0xf0) != 0) {\n    return;\n  }\n  FUN_00014b30(*(undefined4 *)(param_1 + 0x110),param_2,param_3,param_4,param_5,param_6,\n               *(undefined4 *)(param_1 + 0x248),*(undefined4 *)(param_1 + 0x10c));\n  return;\n}" { (if_statement "if (*(int *)(param_1 + 0xf0) != 0) {\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xf0) != 0)" ( (binary_expression "*(int *)(param_1 + 0xf0) != 0" (pointer_expression "*(int *)(param_1 + 0xf0)" * (cast_expression "(int *)(param_1 + 0xf0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xf0)" ( (binary_expression "param_1 + 0xf0" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00014b30(*(undefined4 *)(param_1 + 0x110),param_2,param_3,param_4,param_5,param_6,\n               *(undefined4 *)(param_1 + 0x248),*(undefined4 *)(param_1 + 0x10c));" (call_expression "FUN_00014b30(*(undefined4 *)(param_1 + 0x110),param_2,param_3,param_4,param_5,param_6,\n               *(undefined4 *)(param_1 + 0x248),*(undefined4 *)(param_1 + 0x10c))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x110),param_2,param_3,param_4,param_5,param_6,\n               *(undefined4 *)(param_1 + 0x248),*(undefined4 *)(param_1 + 0x10c))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x110)" * (cast_expression "(undefined4 *)(param_1 + 0x110)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x110)" ( (binary_expression "param_1 + 0x110" identifier + number_literal) )))) , identifier , identifier , identifier , identifier , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x248)" * (cast_expression "(undefined4 *)(param_1 + 0x248)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x10c)" * (cast_expression "(undefined4 *)(param_1 + 0x10c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) )))) ))) ;) (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) , (parameter_declaration TYPE IDENT) , (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 { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT , IDENT , IDENT , IDENT , (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) )))) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000373a0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6)\n\n{\n  if (*(int *)(param_1 + 0xf0) != 0) {\n    return;\n  }\n  FUN_00014b30(*(undefined4 *)(param_1 + 0x110),param_2,param_3,param_4,param_5,param_6,\n               *(undefined4 *)(param_1 + 0x248),*(undefined4 *)(param_1 + 0x10c));\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000373a0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6)" (identifier "FUN_000373a0") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) () ")"))) (compound_statement "{\n  if (*(int *)(param_1 + 0xf0) != 0) {\n    return;\n  }\n  FUN_00014b30(*(undefined4 *)(param_1 + 0x110),param_2,param_3,param_4,param_5,param_6,\n               *(undefined4 *)(param_1 + 0x248),*(undefined4 *)(param_1 + 0x10c));\n  return;\n}" ({ "{") (if_statement "if (*(int *)(param_1 + 0xf0) != 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xf0) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xf0) != 0" (pointer_expression "*(int *)(param_1 + 0xf0)" (* "*") (cast_expression "(int *)(param_1 + 0xf0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xf0)" (( "(") (binary_expression "param_1 + 0xf0" (identifier "param_1") (+ "+") (number_literal "0xf0")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00014b30(*(undefined4 *)(param_1 + 0x110),param_2,param_3,param_4,param_5,param_6,\n               *(undefined4 *)(param_1 + 0x248),*(undefined4 *)(param_1 + 0x10c));" (call_expression "FUN_00014b30(*(undefined4 *)(param_1 + 0x110),param_2,param_3,param_4,param_5,param_6,\n               *(undefined4 *)(param_1 + 0x248),*(undefined4 *)(param_1 + 0x10c))" (identifier "FUN_00014b30") (argument_list "(*(undefined4 *)(param_1 + 0x110),param_2,param_3,param_4,param_5,param_6,\n               *(undefined4 *)(param_1 + 0x248),*(undefined4 *)(param_1 + 0x10c))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x110)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x110)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x110)" (( "(") (binary_expression "param_1 + 0x110" (identifier "param_1") (+ "+") (number_literal "0x110")) () ")")))) (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x248)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x248)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x248)" (( "(") (binary_expression "param_1 + 0x248" (identifier "param_1") (+ "+") (number_literal "0x248")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x10c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10c)" (( "(") (binary_expression "param_1 + 0x10c" (identifier "param_1") (+ "+") (number_literal "0x10c")) () ")")))) () ")"))) (; ";")) (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 type,type_2 addr,int port,char *error_msg,int error_code)

{
  if (plug[0x3c] != (type_3 *)0x0) {
    return;
  }
  var_1(plug[0x44],type,addr,port,error_msg,error_code,(type_4 *)plug[0x92],
                     (int)plug[0x43]);
  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)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (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 (return_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: (identifier) right: (number_literal))))) (identifier) (identifier) (identifier) (identifier) (identifier) (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)))))))) (return_statement))))

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

void MASKED(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                 undefined4 param_5,undefined4 param_6)

{
  if (*(int *)(param_1 + 0xf0) != 0) {
    return;
  }
  FUN_00014b30(*(undefined4 *)(param_1 + 0x110),param_2,param_3,param_4,param_5,param_6,
               *(undefined4 *)(param_1 + 0x248),*(undefined4 *)(param_1 + 0x10c));
  return;
}

