
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void rlogin_closing(Plug plug,char *error_msg,int error_code,int calling_back)

{
  plug_function_table *ppVar1;
  undefined4 in_register_00000014;
  
  ppVar1 = plug[1];
  if (ppVar1 != (plug_function_table *)0x0) {
    (**(code **)(ppVar1->log + 8))(ppVar1,error_msg,CONCAT44(in_register_00000014,error_code));
    plug[1] = (plug_function_table *)0x0;
    if (error_msg != (char *)0x0) {
      *(undefined4 *)(plug + 2) = 1;
    }
    notify_remote_exit(plug[5]);
  }
  if (error_msg != (char *)0x0) {
    logevent(plug[5],error_msg);
    connection_fatal(plug[5],"%s",error_msg);
  }
  return;
}



void FUN_00113f52(long param_1,long param_2)

{
  if (*(long **)(param_1 + 8) != (long *)0x0) {
    (**(code **)(**(long **)(param_1 + 8) + 8))();
    *(undefined8 *)(param_1 + 8) = 0;
    if (param_2 != 0) {
      *(undefined4 *)(param_1 + 0x10) = 1;
    }
    FUN_00150427(*(undefined8 *)(param_1 + 0x28));
  }
  if (param_2 != 0) {
    FUN_00150bd9(*(undefined8 *)(param_1 + 0x28),param_2);
    FUN_0015475e(*(undefined8 *)(param_1 + 0x28),"%s",param_2);
  }
  return;
}


PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RBX,RDI
MOV RBP,RSI
MOV RDI,qword ptr [RDI + 0x8]
TEST RDI,RDI
JZ 0x00113f8a
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x8],0x0
TEST RBP,RBP
JZ 0x00113f81
MOV dword ptr [RBX + 0x10],0x1
MOV RDI,qword ptr [RBX + 0x28]
CALL 0x00150427
TEST RBP,RBP
JZ 0x00113fb3
MOV RDI,qword ptr [RBX + 0x28]
MOV RSI,RBP
CALL 0x00150bd9
MOV RDI,qword ptr [RBX + 0x28]
MOV RDX,RBP
LEA RSI,[0x16d38a]
MOV EAX,0x0
CALL 0x0015475e
ADD RSP,0x8
POP RBX
POP RBP
RET
(translation_unit "void FUN_00113f52(long param_1,long param_2)\n\n{\n  if (*(long **)(param_1 + 8) != (long *)0x0) {\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n    *(undefined8 *)(param_1 + 8) = 0;\n    if (param_2 != 0) {\n      *(undefined4 *)(param_1 + 0x10) = 1;\n    }\n    FUN_00150427(*(undefined8 *)(param_1 + 0x28));\n  }\n  if (param_2 != 0) {\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x28),param_2);\n    FUN_0015475e(*(undefined8 *)(param_1 + 0x28),"%s",param_2);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00113f52(long param_1,long param_2)\n\n{\n  if (*(long **)(param_1 + 8) != (long *)0x0) {\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n    *(undefined8 *)(param_1 + 8) = 0;\n    if (param_2 != 0) {\n      *(undefined4 *)(param_1 + 0x10) = 1;\n    }\n    FUN_00150427(*(undefined8 *)(param_1 + 0x28));\n  }\n  if (param_2 != 0) {\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x28),param_2);\n    FUN_0015475e(*(undefined8 *)(param_1 + 0x28),"%s",param_2);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00113f52(long param_1,long param_2)" identifier (parameter_list "(long param_1,long param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  if (*(long **)(param_1 + 8) != (long *)0x0) {\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n    *(undefined8 *)(param_1 + 8) = 0;\n    if (param_2 != 0) {\n      *(undefined4 *)(param_1 + 0x10) = 1;\n    }\n    FUN_00150427(*(undefined8 *)(param_1 + 0x28));\n  }\n  if (param_2 != 0) {\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x28),param_2);\n    FUN_0015475e(*(undefined8 *)(param_1 + 0x28),"%s",param_2);\n  }\n  return;\n}" { (if_statement "if (*(long **)(param_1 + 8) != (long *)0x0) {\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n    *(undefined8 *)(param_1 + 8) = 0;\n    if (param_2 != 0) {\n      *(undefined4 *)(param_1 + 0x10) = 1;\n    }\n    FUN_00150427(*(undefined8 *)(param_1 + 0x28));\n  }" if (parenthesized_expression "(*(long **)(param_1 + 8) != (long *)0x0)" ( (binary_expression "*(long **)(param_1 + 8) != (long *)0x0" (pointer_expression "*(long **)(param_1 + 8)" * (cast_expression "(long **)(param_1 + 8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n    *(undefined8 *)(param_1 + 8) = 0;\n    if (param_2 != 0) {\n      *(undefined4 *)(param_1 + 0x10) = 1;\n    }\n    FUN_00150427(*(undefined8 *)(param_1 + 0x28));\n  }" { (expression_statement "(**(code **)(**(long **)(param_1 + 8) + 8))();" (call_expression "(**(code **)(**(long **)(param_1 + 8) + 8))()" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 8) + 8))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 8) + 8)" * (pointer_expression "*(code **)(**(long **)(param_1 + 8) + 8)" * (cast_expression "(code **)(**(long **)(param_1 + 8) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 8) + 8)" ( (binary_expression "**(long **)(param_1 + 8) + 8" (pointer_expression "**(long **)(param_1 + 8)" * (pointer_expression "*(long **)(param_1 + 8)" * (cast_expression "(long **)(param_1 + 8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (expression_statement "*(undefined8 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 8) = 0" (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (param_2 != 0) {\n      *(undefined4 *)(param_1 + 0x10) = 1;\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x10) = 1;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "FUN_00150427(*(undefined8 *)(param_1 + 0x28));" (call_expression "FUN_00150427(*(undefined8 *)(param_1 + 0x28))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x28))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) ))) ;) })) (if_statement "if (param_2 != 0) {\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x28),param_2);\n    FUN_0015475e(*(undefined8 *)(param_1 + 0x28),"%s",param_2);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x28),param_2);\n    FUN_0015475e(*(undefined8 *)(param_1 + 0x28),"%s",param_2);\n  }" { (expression_statement "FUN_00150bd9(*(undefined8 *)(param_1 + 0x28),param_2);" (call_expression "FUN_00150bd9(*(undefined8 *)(param_1 + 0x28),param_2)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x28),param_2)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "FUN_0015475e(*(undefined8 *)(param_1 + 0x28),"%s",param_2);" (call_expression "FUN_0015475e(*(undefined8 *)(param_1 + 0x28),"%s",param_2)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x28),"%s",param_2)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) , (string_literal ""%s"" " string_content ") , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid rlogin_closing(Plug plug,char *error_msg,int error_code,int calling_back)\n\n{\n  plug_function_table *ppVar1;\n  undefined4 in_register_00000014;\n  \n  ppVar1 = plug[1];\n  if (ppVar1 != (plug_function_table *)0x0) {\n    (**(code **)(ppVar1->log + 8))(ppVar1,error_msg,CONCAT44(in_register_00000014,error_code));\n    plug[1] = (plug_function_table *)0x0;\n    if (error_msg != (char *)0x0) {\n      *(undefined4 *)(plug + 2) = 1;\n    }\n    notify_remote_exit(plug[5]);\n  }\n  if (error_msg != (char *)0x0) {\n    logevent(plug[5],error_msg);\n    connection_fatal(plug[5],"%s",error_msg);\n  }\n  return;\n}\n\n" comment (function_definition "void rlogin_closing(Plug plug,char *error_msg,int error_code,int calling_back)\n\n{\n  plug_function_table *ppVar1;\n  undefined4 in_register_00000014;\n  \n  ppVar1 = plug[1];\n  if (ppVar1 != (plug_function_table *)0x0) {\n    (**(code **)(ppVar1->log + 8))(ppVar1,error_msg,CONCAT44(in_register_00000014,error_code));\n    plug[1] = (plug_function_table *)0x0;\n    if (error_msg != (char *)0x0) {\n      *(undefined4 *)(plug + 2) = 1;\n    }\n    notify_remote_exit(plug[5]);\n  }\n  if (error_msg != (char *)0x0) {\n    logevent(plug[5],error_msg);\n    connection_fatal(plug[5],"%s",error_msg);\n  }\n  return;\n}" primitive_type (function_declarator "rlogin_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  plug_function_table *ppVar1;\n  undefined4 in_register_00000014;\n  \n  ppVar1 = plug[1];\n  if (ppVar1 != (plug_function_table *)0x0) {\n    (**(code **)(ppVar1->log + 8))(ppVar1,error_msg,CONCAT44(in_register_00000014,error_code));\n    plug[1] = (plug_function_table *)0x0;\n    if (error_msg != (char *)0x0) {\n      *(undefined4 *)(plug + 2) = 1;\n    }\n    notify_remote_exit(plug[5]);\n  }\n  if (error_msg != (char *)0x0) {\n    logevent(plug[5],error_msg);\n    connection_fatal(plug[5],"%s",error_msg);\n  }\n  return;\n}" { (declaration "plug_function_table *ppVar1;" type_identifier (pointer_declarator "*ppVar1" * identifier) ;) (declaration "undefined4 in_register_00000014;" type_identifier identifier ;) (expression_statement "ppVar1 = plug[1];" (assignment_expression "ppVar1 = plug[1]" identifier = (subscript_expression "plug[1]" identifier [ number_literal ])) ;) (if_statement "if (ppVar1 != (plug_function_table *)0x0) {\n    (**(code **)(ppVar1->log + 8))(ppVar1,error_msg,CONCAT44(in_register_00000014,error_code));\n    plug[1] = (plug_function_table *)0x0;\n    if (error_msg != (char *)0x0) {\n      *(undefined4 *)(plug + 2) = 1;\n    }\n    notify_remote_exit(plug[5]);\n  }" if (parenthesized_expression "(ppVar1 != (plug_function_table *)0x0)" ( (binary_expression "ppVar1 != (plug_function_table *)0x0" identifier != (cast_expression "(plug_function_table *)0x0" ( (type_descriptor "plug_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(ppVar1->log + 8))(ppVar1,error_msg,CONCAT44(in_register_00000014,error_code));\n    plug[1] = (plug_function_table *)0x0;\n    if (error_msg != (char *)0x0) {\n      *(undefined4 *)(plug + 2) = 1;\n    }\n    notify_remote_exit(plug[5]);\n  }" { (expression_statement "(**(code **)(ppVar1->log + 8))(ppVar1,error_msg,CONCAT44(in_register_00000014,error_code));" (call_expression "(**(code **)(ppVar1->log + 8))(ppVar1,error_msg,CONCAT44(in_register_00000014,error_code))" (parenthesized_expression "(**(code **)(ppVar1->log + 8))" ( (pointer_expression "**(code **)(ppVar1->log + 8)" * (pointer_expression "*(code **)(ppVar1->log + 8)" * (cast_expression "(code **)(ppVar1->log + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(ppVar1->log + 8)" ( (binary_expression "ppVar1->log + 8" (field_expression "ppVar1->log" identifier -> field_identifier) + number_literal) ))))) )) (argument_list "(ppVar1,error_msg,CONCAT44(in_register_00000014,error_code))" ( identifier , identifier , (call_expression "CONCAT44(in_register_00000014,error_code)" identifier (argument_list "(in_register_00000014,error_code)" ( identifier , identifier ))) ))) ;) (expression_statement "plug[1] = (plug_function_table *)0x0;" (assignment_expression "plug[1] = (plug_function_table *)0x0" (subscript_expression "plug[1]" identifier [ number_literal ]) = (cast_expression "(plug_function_table *)0x0" ( (type_descriptor "plug_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (error_msg != (char *)0x0) {\n      *(undefined4 *)(plug + 2) = 1;\n    }" if (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)) )) (compound_statement "{\n      *(undefined4 *)(plug + 2) = 1;\n    }" { (expression_statement "*(undefined4 *)(plug + 2) = 1;" (assignment_expression "*(undefined4 *)(plug + 2) = 1" (pointer_expression "*(undefined4 *)(plug + 2)" * (cast_expression "(undefined4 *)(plug + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plug + 2)" ( (binary_expression "plug + 2" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "notify_remote_exit(plug[5]);" (call_expression "notify_remote_exit(plug[5])" identifier (argument_list "(plug[5])" ( (subscript_expression "plug[5]" identifier [ number_literal ]) ))) ;) })) (if_statement "if (error_msg != (char *)0x0) {\n    logevent(plug[5],error_msg);\n    connection_fatal(plug[5],"%s",error_msg);\n  }" if (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)) )) (compound_statement "{\n    logevent(plug[5],error_msg);\n    connection_fatal(plug[5],"%s",error_msg);\n  }" { (expression_statement "logevent(plug[5],error_msg);" (call_expression "logevent(plug[5],error_msg)" identifier (argument_list "(plug[5],error_msg)" ( (subscript_expression "plug[5]" identifier [ number_literal ]) , identifier ))) ;) (expression_statement "connection_fatal(plug[5],"%s",error_msg);" (call_expression "connection_fatal(plug[5],"%s",error_msg)" identifier (argument_list "(plug[5],"%s",error_msg)" ( (subscript_expression "plug[5]" identifier [ number_literal ]) , (string_literal ""%s"" " string_content ") , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00113f52(long param_1,long param_2)\n\n{\n  if (*(long **)(param_1 + 8) != (long *)0x0) {\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n    *(undefined8 *)(param_1 + 8) = 0;\n    if (param_2 != 0) {\n      *(undefined4 *)(param_1 + 0x10) = 1;\n    }\n    FUN_00150427(*(undefined8 *)(param_1 + 0x28));\n  }\n  if (param_2 != 0) {\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x28),param_2);\n    FUN_0015475e(*(undefined8 *)(param_1 + 0x28),"%s",param_2);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00113f52(long param_1,long param_2)\n\n{\n  if (*(long **)(param_1 + 8) != (long *)0x0) {\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n    *(undefined8 *)(param_1 + 8) = 0;\n    if (param_2 != 0) {\n      *(undefined4 *)(param_1 + 0x10) = 1;\n    }\n    FUN_00150427(*(undefined8 *)(param_1 + 0x28));\n  }\n  if (param_2 != 0) {\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x28),param_2);\n    FUN_0015475e(*(undefined8 *)(param_1 + 0x28),"%s",param_2);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00113f52(long param_1,long param_2)" identifier (parameter_list "(long param_1,long param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  if (*(long **)(param_1 + 8) != (long *)0x0) {\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n    *(undefined8 *)(param_1 + 8) = 0;\n    if (param_2 != 0) {\n      *(undefined4 *)(param_1 + 0x10) = 1;\n    }\n    FUN_00150427(*(undefined8 *)(param_1 + 0x28));\n  }\n  if (param_2 != 0) {\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x28),param_2);\n    FUN_0015475e(*(undefined8 *)(param_1 + 0x28),"%s",param_2);\n  }\n  return;\n}" { (if_statement "if (*(long **)(param_1 + 8) != (long *)0x0) {\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n    *(undefined8 *)(param_1 + 8) = 0;\n    if (param_2 != 0) {\n      *(undefined4 *)(param_1 + 0x10) = 1;\n    }\n    FUN_00150427(*(undefined8 *)(param_1 + 0x28));\n  }" if (parenthesized_expression "(*(long **)(param_1 + 8) != (long *)0x0)" ( (binary_expression "*(long **)(param_1 + 8) != (long *)0x0" (pointer_expression "*(long **)(param_1 + 8)" * (cast_expression "(long **)(param_1 + 8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n    *(undefined8 *)(param_1 + 8) = 0;\n    if (param_2 != 0) {\n      *(undefined4 *)(param_1 + 0x10) = 1;\n    }\n    FUN_00150427(*(undefined8 *)(param_1 + 0x28));\n  }" { (expression_statement "(**(code **)(**(long **)(param_1 + 8) + 8))();" (call_expression "(**(code **)(**(long **)(param_1 + 8) + 8))()" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 8) + 8))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 8) + 8)" * (pointer_expression "*(code **)(**(long **)(param_1 + 8) + 8)" * (cast_expression "(code **)(**(long **)(param_1 + 8) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 8) + 8)" ( (binary_expression "**(long **)(param_1 + 8) + 8" (pointer_expression "**(long **)(param_1 + 8)" * (pointer_expression "*(long **)(param_1 + 8)" * (cast_expression "(long **)(param_1 + 8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (expression_statement "*(undefined8 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 8) = 0" (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (param_2 != 0) {\n      *(undefined4 *)(param_1 + 0x10) = 1;\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x10) = 1;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "FUN_00150427(*(undefined8 *)(param_1 + 0x28));" (call_expression "FUN_00150427(*(undefined8 *)(param_1 + 0x28))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x28))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) ))) ;) })) (if_statement "if (param_2 != 0) {\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x28),param_2);\n    FUN_0015475e(*(undefined8 *)(param_1 + 0x28),"%s",param_2);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x28),param_2);\n    FUN_0015475e(*(undefined8 *)(param_1 + 0x28),"%s",param_2);\n  }" { (expression_statement "FUN_00150bd9(*(undefined8 *)(param_1 + 0x28),param_2);" (call_expression "FUN_00150bd9(*(undefined8 *)(param_1 + 0x28),param_2)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x28),param_2)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "FUN_0015475e(*(undefined8 *)(param_1 + 0x28),"%s",param_2);" (call_expression "FUN_0015475e(*(undefined8 *)(param_1 + 0x28),"%s",param_2)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x28),"%s",param_2)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) , (string_literal ""%s"" " string_content ") , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (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 (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( ))) ;) (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 IDENT != LIT) )) (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 (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != 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 ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (string_literal " string_content ") , IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00113f52(long param_1,long param_2)\n\n{\n  if (*(long **)(param_1 + 8) != (long *)0x0) {\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n    *(undefined8 *)(param_1 + 8) = 0;\n    if (param_2 != 0) {\n      *(undefined4 *)(param_1 + 0x10) = 1;\n    }\n    FUN_00150427(*(undefined8 *)(param_1 + 0x28));\n  }\n  if (param_2 != 0) {\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x28),param_2);\n    FUN_0015475e(*(undefined8 *)(param_1 + 0x28),"%s",param_2);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00113f52(long param_1,long param_2)" (identifier "FUN_00113f52") (parameter_list "(long param_1,long param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")"))) (compound_statement "{\n  if (*(long **)(param_1 + 8) != (long *)0x0) {\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n    *(undefined8 *)(param_1 + 8) = 0;\n    if (param_2 != 0) {\n      *(undefined4 *)(param_1 + 0x10) = 1;\n    }\n    FUN_00150427(*(undefined8 *)(param_1 + 0x28));\n  }\n  if (param_2 != 0) {\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x28),param_2);\n    FUN_0015475e(*(undefined8 *)(param_1 + 0x28),"%s",param_2);\n  }\n  return;\n}" ({ "{") (if_statement "if (*(long **)(param_1 + 8) != (long *)0x0) {\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n    *(undefined8 *)(param_1 + 8) = 0;\n    if (param_2 != 0) {\n      *(undefined4 *)(param_1 + 0x10) = 1;\n    }\n    FUN_00150427(*(undefined8 *)(param_1 + 0x28));\n  }" (if "if") (parenthesized_expression "(*(long **)(param_1 + 8) != (long *)0x0)" (( "(") (binary_expression "*(long **)(param_1 + 8) != (long *)0x0" (pointer_expression "*(long **)(param_1 + 8)" (* "*") (cast_expression "(long **)(param_1 + 8)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n    *(undefined8 *)(param_1 + 8) = 0;\n    if (param_2 != 0) {\n      *(undefined4 *)(param_1 + 0x10) = 1;\n    }\n    FUN_00150427(*(undefined8 *)(param_1 + 0x28));\n  }" ({ "{") (expression_statement "(**(code **)(**(long **)(param_1 + 8) + 8))();" (call_expression "(**(code **)(**(long **)(param_1 + 8) + 8))()" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 8) + 8))" (( "(") (pointer_expression "**(code **)(**(long **)(param_1 + 8) + 8)" (* "*") (pointer_expression "*(code **)(**(long **)(param_1 + 8) + 8)" (* "*") (cast_expression "(code **)(**(long **)(param_1 + 8) + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(long **)(param_1 + 8) + 8)" (( "(") (binary_expression "**(long **)(param_1 + 8) + 8" (pointer_expression "**(long **)(param_1 + 8)" (* "*") (pointer_expression "*(long **)(param_1 + 8)" (* "*") (cast_expression "(long **)(param_1 + 8)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 8) = 0" (pointer_expression "*(undefined8 *)(param_1 + 8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_2 != 0) {\n      *(undefined4 *)(param_1 + 0x10) = 1;\n    }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x10) = 1;\n    }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "FUN_00150427(*(undefined8 *)(param_1 + 0x28));" (call_expression "FUN_00150427(*(undefined8 *)(param_1 + 0x28))" (identifier "FUN_00150427") (argument_list "(*(undefined8 *)(param_1 + 0x28))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_2 != 0) {\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x28),param_2);\n    FUN_0015475e(*(undefined8 *)(param_1 + 0x28),"%s",param_2);\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x28),param_2);\n    FUN_0015475e(*(undefined8 *)(param_1 + 0x28),"%s",param_2);\n  }" ({ "{") (expression_statement "FUN_00150bd9(*(undefined8 *)(param_1 + 0x28),param_2);" (call_expression "FUN_00150bd9(*(undefined8 *)(param_1 + 0x28),param_2)" (identifier "FUN_00150bd9") (argument_list "(*(undefined8 *)(param_1 + 0x28),param_2)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "FUN_0015475e(*(undefined8 *)(param_1 + 0x28),"%s",param_2);" (call_expression "FUN_0015475e(*(undefined8 *)(param_1 + 0x28),"%s",param_2)" (identifier "FUN_0015475e") (argument_list "(*(undefined8 *)(param_1 + 0x28),"%s",param_2)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (, ",") (string_literal ""%s"" (" """) (string_content "%s") (" """)) (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(type_1 var_4,char *var_3,int error_code,int calling_back)

{
  type_2 *var_1;
  type_3 in_register_00000014;
  
  var_1 = var_4[1];
  if (var_1 != (type_2 *)0x0) {
    (**(type_4 **)(var_1->log + 8))(var_1,var_3,var_2(in_register_00000014,error_code));
    var_4[1] = (type_2 *)0x0;
    if (var_3 != (char *)0x0) {
      *(type_3 *)(var_4 + 2) = 1;
    }
    var_5(var_4[5]);
  }
  if (var_3 != (char *)0x0) {
    var_6(var_4[5],var_3);
    var_7(var_4[5],"%s",var_3);
  }
  return;
}


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

void MASKED(long param_1,long param_2)

{
  if (*(long **)(param_1 + 8) != (long *)0x0) {
    (**(code **)(**(long **)(param_1 + 8) + 8))();
    *(undefined8 *)(param_1 + 8) = 0;
    if (param_2 != 0) {
      *(undefined4 *)(param_1 + 0x10) = 1;
    }
    FUN_00150427(*(undefined8 *)(param_1 + 0x28));
  }
  if (param_2 != 0) {
    FUN_00150bd9(*(undefined8 *)(param_1 + 0x28),param_2);
    FUN_0015475e(*(undefined8 *)(param_1 + 0x28),"%s",param_2);
  }
  return;
}

