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

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

{
  int iVar1;
  plug_function_table *frontend;
  
  iVar1 = ssh_do_close((Ssh_conflict)plug,0);
  if (error_msg == (char *)0x0) {
    error_msg = "Server unexpectedly closed network connection";
    if (plug[0x4d] != (plug_function_table *)0x0) {
      error_msg = "Server closed network connection";
      goto LAB_00041df6;
    }
  }
  else if (plug[0x4d] != (plug_function_table *)0x0) {
LAB_00041df6:
    if ((plug[0x4e] != (plug_function_table *)0x0) && ((int)plug[0x4c] < 0)) {
      plug[0x4c] = (plug_function_table *)0x0;
      frontend = plug[0x44];
      goto joined_r0x00041d95;
    }
  }
  frontend = plug[0x44];
joined_r0x00041d95:
  if (iVar1 != 0) {
    notify_remote_exit(frontend);
    frontend = plug[0x44];
  }
  logevent(frontend,error_msg);
  if ((plug[0x4d] == (plug_function_table *)0x0) || (plug[0x4e] == (plug_function_table *)0x0)) {
    connection_fatal(plug[0x44],"%s",error_msg);
  }
  return;
}



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

void FUN_00041d60(int param_1,char *param_2)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = FUN_00041bc0();
  if (param_2 == (char *)0x0) {
    param_2 = "Server unexpectedly closed network connection";
    if (*(int *)(param_1 + 0x134) != 0) {
      param_2 = "Server closed network connection";
      goto LAB_00041df6;
    }
  }
  else if (*(int *)(param_1 + 0x134) != 0) {
LAB_00041df6:
    if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {
      *(undefined4 *)(param_1 + 0x130) = 0;
      uVar2 = *(undefined4 *)(param_1 + 0x110);
      goto joined_r0x00041d95;
    }
  }
  uVar2 = *(undefined4 *)(param_1 + 0x110);
joined_r0x00041d95:
  if (iVar1 != 0) {
    FUN_000b35c0(uVar2);
    uVar2 = *(undefined4 *)(param_1 + 0x110);
  }
  FUN_000b2fd0(uVar2,param_2);
  if ((*(int *)(param_1 + 0x134) == 0) || (*(int *)(param_1 + 0x138) == 0)) {
    FUN_000b2cf0(*(undefined4 *)(param_1 + 0x110),&DAT_000d9ac7,param_2);
  }
  return;
}


PUSH EDI
XOR EDX,EDX
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x0001c520
ADD EBX,0xf89e2
MOV EDI,dword ptr [ESP + 0x14]
MOV EAX,ESI
CALL 0x00041bc0
TEST EDI,EDI
JZ 0x00041de0
MOV ECX,dword ptr [ESI + 0x134]
TEST ECX,ECX
JNZ 0x00041df6
MOV EDX,dword ptr [ESI + 0x110]
TEST EAX,EAX
JNZ 0x00041e28
SUB ESP,0x8
PUSH EDI
PUSH EDX
CALL 0x000b2fd0
MOV EAX,dword ptr [ESI + 0x134]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00041dbc
MOV EDX,dword ptr [ESI + 0x138]
TEST EDX,EDX
JNZ 0x00041dd5
SUB ESP,0x4
LEA EAX,[EBX + 0xfff9f377]
PUSH EDI
PUSH EAX
PUSH dword ptr [ESI + 0x110]
CALL 0x000b2cf0
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
MOV EDX,dword ptr [ESI + 0x134]
LEA EDI,[EBX + 0xfffa88c4]
TEST EDX,EDX
JZ 0x00041d8d
LEA EDI,[EBX + 0xfffa88a0]
MOV EDX,dword ptr [ESI + 0x138]
TEST EDX,EDX
JZ 0x00041d8d
MOV ECX,dword ptr [ESI + 0x130]
TEST ECX,ECX
JNS 0x00041d8d
MOV dword ptr [ESI + 0x130],0x0
MOV EDX,dword ptr [ESI + 0x110]
TEST EAX,EAX
JZ 0x00041d9b
LEA ESI,[ESI]
SUB ESP,0xc
PUSH EDX
CALL 0x000b35c0
MOV EDX,dword ptr [ESI + 0x110]
ADD ESP,0x10
JMP 0x00041d9b
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00041d60(int param_1,char *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_00041bc0();\n  if (param_2 == (char *)0x0) {\n    param_2 = "Server unexpectedly closed network connection";\n    if (*(int *)(param_1 + 0x134) != 0) {\n      param_2 = "Server closed network connection";\n      goto LAB_00041df6;\n    }\n  }\n  else if (*(int *)(param_1 + 0x134) != 0) {\nLAB_00041df6:\n    if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }\n  }\n  uVar2 = *(undefined4 *)(param_1 + 0x110);\njoined_r0x00041d95:\n  if (iVar1 != 0) {\n    FUN_000b35c0(uVar2);\n    uVar2 = *(undefined4 *)(param_1 + 0x110);\n  }\n  FUN_000b2fd0(uVar2,param_2);\n  if ((*(int *)(param_1 + 0x134) == 0) || (*(int *)(param_1 + 0x138) == 0)) {\n    FUN_000b2cf0(*(undefined4 *)(param_1 + 0x110),&DAT_000d9ac7,param_2);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00041d60(int param_1,char *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_00041bc0();\n  if (param_2 == (char *)0x0) {\n    param_2 = "Server unexpectedly closed network connection";\n    if (*(int *)(param_1 + 0x134) != 0) {\n      param_2 = "Server closed network connection";\n      goto LAB_00041df6;\n    }\n  }\n  else if (*(int *)(param_1 + 0x134) != 0) {\nLAB_00041df6:\n    if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }\n  }\n  uVar2 = *(undefined4 *)(param_1 + 0x110);\njoined_r0x00041d95:\n  if (iVar1 != 0) {\n    FUN_000b35c0(uVar2);\n    uVar2 = *(undefined4 *)(param_1 + 0x110);\n  }\n  FUN_000b2fd0(uVar2,param_2);\n  if ((*(int *)(param_1 + 0x134) == 0) || (*(int *)(param_1 + 0x138) == 0)) {\n    FUN_000b2cf0(*(undefined4 *)(param_1 + 0x110),&DAT_000d9ac7,param_2);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00041d60(int param_1,char *param_2)" identifier (parameter_list "(int param_1,char *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_00041bc0();\n  if (param_2 == (char *)0x0) {\n    param_2 = "Server unexpectedly closed network connection";\n    if (*(int *)(param_1 + 0x134) != 0) {\n      param_2 = "Server closed network connection";\n      goto LAB_00041df6;\n    }\n  }\n  else if (*(int *)(param_1 + 0x134) != 0) {\nLAB_00041df6:\n    if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }\n  }\n  uVar2 = *(undefined4 *)(param_1 + 0x110);\njoined_r0x00041d95:\n  if (iVar1 != 0) {\n    FUN_000b35c0(uVar2);\n    uVar2 = *(undefined4 *)(param_1 + 0x110);\n  }\n  FUN_000b2fd0(uVar2,param_2);\n  if ((*(int *)(param_1 + 0x134) == 0) || (*(int *)(param_1 + 0x138) == 0)) {\n    FUN_000b2cf0(*(undefined4 *)(param_1 + 0x110),&DAT_000d9ac7,param_2);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = FUN_00041bc0();" (assignment_expression "iVar1 = FUN_00041bc0()" identifier = (call_expression "FUN_00041bc0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (param_2 == (char *)0x0) {\n    param_2 = "Server unexpectedly closed network connection";\n    if (*(int *)(param_1 + 0x134) != 0) {\n      param_2 = "Server closed network connection";\n      goto LAB_00041df6;\n    }\n  }\n  else if (*(int *)(param_1 + 0x134) != 0) {\nLAB_00041df6:\n    if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }\n  }" if (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_2 = "Server unexpectedly closed network connection";\n    if (*(int *)(param_1 + 0x134) != 0) {\n      param_2 = "Server closed network connection";\n      goto LAB_00041df6;\n    }\n  }" { (expression_statement "param_2 = "Server unexpectedly closed network connection";" (assignment_expression "param_2 = "Server unexpectedly closed network connection"" identifier = (string_literal ""Server unexpectedly closed network connection"" " string_content ")) ;) (if_statement "if (*(int *)(param_1 + 0x134) != 0) {\n      param_2 = "Server closed network connection";\n      goto LAB_00041df6;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x134) != 0)" ( (binary_expression "*(int *)(param_1 + 0x134) != 0" (pointer_expression "*(int *)(param_1 + 0x134)" * (cast_expression "(int *)(param_1 + 0x134)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x134)" ( (binary_expression "param_1 + 0x134" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      param_2 = "Server closed network connection";\n      goto LAB_00041df6;\n    }" { (expression_statement "param_2 = "Server closed network connection";" (assignment_expression "param_2 = "Server closed network connection"" identifier = (string_literal ""Server closed network connection"" " string_content ")) ;) (goto_statement "goto LAB_00041df6;" goto statement_identifier ;) })) }) (else_clause "else if (*(int *)(param_1 + 0x134) != 0) {\nLAB_00041df6:\n    if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }\n  }" else (if_statement "if (*(int *)(param_1 + 0x134) != 0) {\nLAB_00041df6:\n    if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x134) != 0)" ( (binary_expression "*(int *)(param_1 + 0x134) != 0" (pointer_expression "*(int *)(param_1 + 0x134)" * (cast_expression "(int *)(param_1 + 0x134)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x134)" ( (binary_expression "param_1 + 0x134" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\nLAB_00041df6:\n    if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }\n  }" { (labeled_statement "LAB_00041df6:\n    if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }" statement_identifier : (if_statement "if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }" if (parenthesized_expression "((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0))" ( (binary_expression "(*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)" (parenthesized_expression "(*(int *)(param_1 + 0x138) != 0)" ( (binary_expression "*(int *)(param_1 + 0x138) != 0" (pointer_expression "*(int *)(param_1 + 0x138)" * (cast_expression "(int *)(param_1 + 0x138)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x138)" ( (binary_expression "param_1 + 0x138" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 0x130) < 0)" ( (binary_expression "*(int *)(param_1 + 0x130) < 0" (pointer_expression "*(int *)(param_1 + 0x130)" * (cast_expression "(int *)(param_1 + 0x130)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x130)" ( (binary_expression "param_1 + 0x130" identifier + number_literal) )))) < number_literal) ))) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x130) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x130) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x130)" * (cast_expression "(undefined4 *)(param_1 + 0x130)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x130)" ( (binary_expression "param_1 + 0x130" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x110);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x110)" identifier = (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) ))))) ;) (goto_statement "goto joined_r0x00041d95;" goto statement_identifier ;) }))) })))) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x110);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x110)" identifier = (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) ))))) ;) (labeled_statement "joined_r0x00041d95:\n  if (iVar1 != 0) {\n    FUN_000b35c0(uVar2);\n    uVar2 = *(undefined4 *)(param_1 + 0x110);\n  }" statement_identifier : (if_statement "if (iVar1 != 0) {\n    FUN_000b35c0(uVar2);\n    uVar2 = *(undefined4 *)(param_1 + 0x110);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_000b35c0(uVar2);\n    uVar2 = *(undefined4 *)(param_1 + 0x110);\n  }" { (expression_statement "FUN_000b35c0(uVar2);" (call_expression "FUN_000b35c0(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x110);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x110)" identifier = (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) ))))) ;) }))) (expression_statement "FUN_000b2fd0(uVar2,param_2);" (call_expression "FUN_000b2fd0(uVar2,param_2)" identifier (argument_list "(uVar2,param_2)" ( identifier , identifier ))) ;) (if_statement "if ((*(int *)(param_1 + 0x134) == 0) || (*(int *)(param_1 + 0x138) == 0)) {\n    FUN_000b2cf0(*(undefined4 *)(param_1 + 0x110),&DAT_000d9ac7,param_2);\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0x134) == 0) || (*(int *)(param_1 + 0x138) == 0))" ( (binary_expression "(*(int *)(param_1 + 0x134) == 0) || (*(int *)(param_1 + 0x138) == 0)" (parenthesized_expression "(*(int *)(param_1 + 0x134) == 0)" ( (binary_expression "*(int *)(param_1 + 0x134) == 0" (pointer_expression "*(int *)(param_1 + 0x134)" * (cast_expression "(int *)(param_1 + 0x134)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x134)" ( (binary_expression "param_1 + 0x134" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 0x138) == 0)" ( (binary_expression "*(int *)(param_1 + 0x138) == 0" (pointer_expression "*(int *)(param_1 + 0x138)" * (cast_expression "(int *)(param_1 + 0x138)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x138)" ( (binary_expression "param_1 + 0x138" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    FUN_000b2cf0(*(undefined4 *)(param_1 + 0x110),&DAT_000d9ac7,param_2);\n  }" { (expression_statement "FUN_000b2cf0(*(undefined4 *)(param_1 + 0x110),&DAT_000d9ac7,param_2);" (call_expression "FUN_000b2cf0(*(undefined4 *)(param_1 + 0x110),&DAT_000d9ac7,param_2)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x110),&DAT_000d9ac7,param_2)" ( (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) )))) , (pointer_expression "&DAT_000d9ac7" & identifier) , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid ssh_closing(Plug plug,char *error_msg,int error_code,int calling_back)\n\n{\n  int iVar1;\n  plug_function_table *frontend;\n  \n  iVar1 = ssh_do_close((Ssh_conflict)plug,0);\n  if (error_msg == (char *)0x0) {\n    error_msg = "Server unexpectedly closed network connection";\n    if (plug[0x4d] != (plug_function_table *)0x0) {\n      error_msg = "Server closed network connection";\n      goto LAB_00041df6;\n    }\n  }\n  else if (plug[0x4d] != (plug_function_table *)0x0) {\nLAB_00041df6:\n    if ((plug[0x4e] != (plug_function_table *)0x0) && ((int)plug[0x4c] < 0)) {\n      plug[0x4c] = (plug_function_table *)0x0;\n      frontend = plug[0x44];\n      goto joined_r0x00041d95;\n    }\n  }\n  frontend = plug[0x44];\njoined_r0x00041d95:\n  if (iVar1 != 0) {\n    notify_remote_exit(frontend);\n    frontend = plug[0x44];\n  }\n  logevent(frontend,error_msg);\n  if ((plug[0x4d] == (plug_function_table *)0x0) || (plug[0x4e] == (plug_function_table *)0x0)) {\n    connection_fatal(plug[0x44],"%s",error_msg);\n  }\n  return;\n}\n\n" comment comment (function_definition "void ssh_closing(Plug plug,char *error_msg,int error_code,int calling_back)\n\n{\n  int iVar1;\n  plug_function_table *frontend;\n  \n  iVar1 = ssh_do_close((Ssh_conflict)plug,0);\n  if (error_msg == (char *)0x0) {\n    error_msg = "Server unexpectedly closed network connection";\n    if (plug[0x4d] != (plug_function_table *)0x0) {\n      error_msg = "Server closed network connection";\n      goto LAB_00041df6;\n    }\n  }\n  else if (plug[0x4d] != (plug_function_table *)0x0) {\nLAB_00041df6:\n    if ((plug[0x4e] != (plug_function_table *)0x0) && ((int)plug[0x4c] < 0)) {\n      plug[0x4c] = (plug_function_table *)0x0;\n      frontend = plug[0x44];\n      goto joined_r0x00041d95;\n    }\n  }\n  frontend = plug[0x44];\njoined_r0x00041d95:\n  if (iVar1 != 0) {\n    notify_remote_exit(frontend);\n    frontend = plug[0x44];\n  }\n  logevent(frontend,error_msg);\n  if ((plug[0x4d] == (plug_function_table *)0x0) || (plug[0x4e] == (plug_function_table *)0x0)) {\n    connection_fatal(plug[0x44],"%s",error_msg);\n  }\n  return;\n}" primitive_type (function_declarator "ssh_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  int iVar1;\n  plug_function_table *frontend;\n  \n  iVar1 = ssh_do_close((Ssh_conflict)plug,0);\n  if (error_msg == (char *)0x0) {\n    error_msg = "Server unexpectedly closed network connection";\n    if (plug[0x4d] != (plug_function_table *)0x0) {\n      error_msg = "Server closed network connection";\n      goto LAB_00041df6;\n    }\n  }\n  else if (plug[0x4d] != (plug_function_table *)0x0) {\nLAB_00041df6:\n    if ((plug[0x4e] != (plug_function_table *)0x0) && ((int)plug[0x4c] < 0)) {\n      plug[0x4c] = (plug_function_table *)0x0;\n      frontend = plug[0x44];\n      goto joined_r0x00041d95;\n    }\n  }\n  frontend = plug[0x44];\njoined_r0x00041d95:\n  if (iVar1 != 0) {\n    notify_remote_exit(frontend);\n    frontend = plug[0x44];\n  }\n  logevent(frontend,error_msg);\n  if ((plug[0x4d] == (plug_function_table *)0x0) || (plug[0x4e] == (plug_function_table *)0x0)) {\n    connection_fatal(plug[0x44],"%s",error_msg);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "plug_function_table *frontend;" type_identifier (pointer_declarator "*frontend" * identifier) ;) (expression_statement "iVar1 = ssh_do_close((Ssh_conflict)plug,0);" (assignment_expression "iVar1 = ssh_do_close((Ssh_conflict)plug,0)" identifier = (call_expression "ssh_do_close((Ssh_conflict)plug,0)" identifier (argument_list "((Ssh_conflict)plug,0)" ( (cast_expression "(Ssh_conflict)plug" ( (type_descriptor "Ssh_conflict" type_identifier) ) identifier) , number_literal )))) ;) (if_statement "if (error_msg == (char *)0x0) {\n    error_msg = "Server unexpectedly closed network connection";\n    if (plug[0x4d] != (plug_function_table *)0x0) {\n      error_msg = "Server closed network connection";\n      goto LAB_00041df6;\n    }\n  }\n  else if (plug[0x4d] != (plug_function_table *)0x0) {\nLAB_00041df6:\n    if ((plug[0x4e] != (plug_function_table *)0x0) && ((int)plug[0x4c] < 0)) {\n      plug[0x4c] = (plug_function_table *)0x0;\n      frontend = plug[0x44];\n      goto joined_r0x00041d95;\n    }\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    error_msg = "Server unexpectedly closed network connection";\n    if (plug[0x4d] != (plug_function_table *)0x0) {\n      error_msg = "Server closed network connection";\n      goto LAB_00041df6;\n    }\n  }" { (expression_statement "error_msg = "Server unexpectedly closed network connection";" (assignment_expression "error_msg = "Server unexpectedly closed network connection"" identifier = (string_literal ""Server unexpectedly closed network connection"" " string_content ")) ;) (if_statement "if (plug[0x4d] != (plug_function_table *)0x0) {\n      error_msg = "Server closed network connection";\n      goto LAB_00041df6;\n    }" if (parenthesized_expression "(plug[0x4d] != (plug_function_table *)0x0)" ( (binary_expression "plug[0x4d] != (plug_function_table *)0x0" (subscript_expression "plug[0x4d]" identifier [ number_literal ]) != (cast_expression "(plug_function_table *)0x0" ( (type_descriptor "plug_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      error_msg = "Server closed network connection";\n      goto LAB_00041df6;\n    }" { (expression_statement "error_msg = "Server closed network connection";" (assignment_expression "error_msg = "Server closed network connection"" identifier = (string_literal ""Server closed network connection"" " string_content ")) ;) (goto_statement "goto LAB_00041df6;" goto statement_identifier ;) })) }) (else_clause "else if (plug[0x4d] != (plug_function_table *)0x0) {\nLAB_00041df6:\n    if ((plug[0x4e] != (plug_function_table *)0x0) && ((int)plug[0x4c] < 0)) {\n      plug[0x4c] = (plug_function_table *)0x0;\n      frontend = plug[0x44];\n      goto joined_r0x00041d95;\n    }\n  }" else (if_statement "if (plug[0x4d] != (plug_function_table *)0x0) {\nLAB_00041df6:\n    if ((plug[0x4e] != (plug_function_table *)0x0) && ((int)plug[0x4c] < 0)) {\n      plug[0x4c] = (plug_function_table *)0x0;\n      frontend = plug[0x44];\n      goto joined_r0x00041d95;\n    }\n  }" if (parenthesized_expression "(plug[0x4d] != (plug_function_table *)0x0)" ( (binary_expression "plug[0x4d] != (plug_function_table *)0x0" (subscript_expression "plug[0x4d]" identifier [ number_literal ]) != (cast_expression "(plug_function_table *)0x0" ( (type_descriptor "plug_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00041df6:\n    if ((plug[0x4e] != (plug_function_table *)0x0) && ((int)plug[0x4c] < 0)) {\n      plug[0x4c] = (plug_function_table *)0x0;\n      frontend = plug[0x44];\n      goto joined_r0x00041d95;\n    }\n  }" { (labeled_statement "LAB_00041df6:\n    if ((plug[0x4e] != (plug_function_table *)0x0) && ((int)plug[0x4c] < 0)) {\n      plug[0x4c] = (plug_function_table *)0x0;\n      frontend = plug[0x44];\n      goto joined_r0x00041d95;\n    }" statement_identifier : (if_statement "if ((plug[0x4e] != (plug_function_table *)0x0) && ((int)plug[0x4c] < 0)) {\n      plug[0x4c] = (plug_function_table *)0x0;\n      frontend = plug[0x44];\n      goto joined_r0x00041d95;\n    }" if (parenthesized_expression "((plug[0x4e] != (plug_function_table *)0x0) && ((int)plug[0x4c] < 0))" ( (binary_expression "(plug[0x4e] != (plug_function_table *)0x0) && ((int)plug[0x4c] < 0)" (parenthesized_expression "(plug[0x4e] != (plug_function_table *)0x0)" ( (binary_expression "plug[0x4e] != (plug_function_table *)0x0" (subscript_expression "plug[0x4e]" identifier [ number_literal ]) != (cast_expression "(plug_function_table *)0x0" ( (type_descriptor "plug_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((int)plug[0x4c] < 0)" ( (binary_expression "(int)plug[0x4c] < 0" (cast_expression "(int)plug[0x4c]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plug[0x4c]" identifier [ number_literal ])) < number_literal) ))) )) (compound_statement "{\n      plug[0x4c] = (plug_function_table *)0x0;\n      frontend = plug[0x44];\n      goto joined_r0x00041d95;\n    }" { (expression_statement "plug[0x4c] = (plug_function_table *)0x0;" (assignment_expression "plug[0x4c] = (plug_function_table *)0x0" (subscript_expression "plug[0x4c]" identifier [ number_literal ]) = (cast_expression "(plug_function_table *)0x0" ( (type_descriptor "plug_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "frontend = plug[0x44];" (assignment_expression "frontend = plug[0x44]" identifier = (subscript_expression "plug[0x44]" identifier [ number_literal ])) ;) (goto_statement "goto joined_r0x00041d95;" goto statement_identifier ;) }))) })))) (expression_statement "frontend = plug[0x44];" (assignment_expression "frontend = plug[0x44]" identifier = (subscript_expression "plug[0x44]" identifier [ number_literal ])) ;) (labeled_statement "joined_r0x00041d95:\n  if (iVar1 != 0) {\n    notify_remote_exit(frontend);\n    frontend = plug[0x44];\n  }" statement_identifier : (if_statement "if (iVar1 != 0) {\n    notify_remote_exit(frontend);\n    frontend = plug[0x44];\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    notify_remote_exit(frontend);\n    frontend = plug[0x44];\n  }" { (expression_statement "notify_remote_exit(frontend);" (call_expression "notify_remote_exit(frontend)" identifier (argument_list "(frontend)" ( identifier ))) ;) (expression_statement "frontend = plug[0x44];" (assignment_expression "frontend = plug[0x44]" identifier = (subscript_expression "plug[0x44]" identifier [ number_literal ])) ;) }))) (expression_statement "logevent(frontend,error_msg);" (call_expression "logevent(frontend,error_msg)" identifier (argument_list "(frontend,error_msg)" ( identifier , identifier ))) ;) (if_statement "if ((plug[0x4d] == (plug_function_table *)0x0) || (plug[0x4e] == (plug_function_table *)0x0)) {\n    connection_fatal(plug[0x44],"%s",error_msg);\n  }" if (parenthesized_expression "((plug[0x4d] == (plug_function_table *)0x0) || (plug[0x4e] == (plug_function_table *)0x0))" ( (binary_expression "(plug[0x4d] == (plug_function_table *)0x0) || (plug[0x4e] == (plug_function_table *)0x0)" (parenthesized_expression "(plug[0x4d] == (plug_function_table *)0x0)" ( (binary_expression "plug[0x4d] == (plug_function_table *)0x0" (subscript_expression "plug[0x4d]" identifier [ number_literal ]) == (cast_expression "(plug_function_table *)0x0" ( (type_descriptor "plug_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(plug[0x4e] == (plug_function_table *)0x0)" ( (binary_expression "plug[0x4e] == (plug_function_table *)0x0" (subscript_expression "plug[0x4e]" identifier [ number_literal ]) == (cast_expression "(plug_function_table *)0x0" ( (type_descriptor "plug_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    connection_fatal(plug[0x44],"%s",error_msg);\n  }" { (expression_statement "connection_fatal(plug[0x44],"%s",error_msg);" (call_expression "connection_fatal(plug[0x44],"%s",error_msg)" identifier (argument_list "(plug[0x44],"%s",error_msg)" ( (subscript_expression "plug[0x44]" identifier [ number_literal ]) , (string_literal ""%s"" " string_content ") , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00041d60(int param_1,char *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_00041bc0();\n  if (param_2 == (char *)0x0) {\n    param_2 = "Server unexpectedly closed network connection";\n    if (*(int *)(param_1 + 0x134) != 0) {\n      param_2 = "Server closed network connection";\n      goto LAB_00041df6;\n    }\n  }\n  else if (*(int *)(param_1 + 0x134) != 0) {\nLAB_00041df6:\n    if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }\n  }\n  uVar2 = *(undefined4 *)(param_1 + 0x110);\njoined_r0x00041d95:\n  if (iVar1 != 0) {\n    FUN_000b35c0(uVar2);\n    uVar2 = *(undefined4 *)(param_1 + 0x110);\n  }\n  FUN_000b2fd0(uVar2,param_2);\n  if ((*(int *)(param_1 + 0x134) == 0) || (*(int *)(param_1 + 0x138) == 0)) {\n    FUN_000b2cf0(*(undefined4 *)(param_1 + 0x110),&DAT_000d9ac7,param_2);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00041d60(int param_1,char *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_00041bc0();\n  if (param_2 == (char *)0x0) {\n    param_2 = "Server unexpectedly closed network connection";\n    if (*(int *)(param_1 + 0x134) != 0) {\n      param_2 = "Server closed network connection";\n      goto LAB_00041df6;\n    }\n  }\n  else if (*(int *)(param_1 + 0x134) != 0) {\nLAB_00041df6:\n    if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }\n  }\n  uVar2 = *(undefined4 *)(param_1 + 0x110);\njoined_r0x00041d95:\n  if (iVar1 != 0) {\n    FUN_000b35c0(uVar2);\n    uVar2 = *(undefined4 *)(param_1 + 0x110);\n  }\n  FUN_000b2fd0(uVar2,param_2);\n  if ((*(int *)(param_1 + 0x134) == 0) || (*(int *)(param_1 + 0x138) == 0)) {\n    FUN_000b2cf0(*(undefined4 *)(param_1 + 0x110),&DAT_000d9ac7,param_2);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00041d60(int param_1,char *param_2)" identifier (parameter_list "(int param_1,char *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_00041bc0();\n  if (param_2 == (char *)0x0) {\n    param_2 = "Server unexpectedly closed network connection";\n    if (*(int *)(param_1 + 0x134) != 0) {\n      param_2 = "Server closed network connection";\n      goto LAB_00041df6;\n    }\n  }\n  else if (*(int *)(param_1 + 0x134) != 0) {\nLAB_00041df6:\n    if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }\n  }\n  uVar2 = *(undefined4 *)(param_1 + 0x110);\njoined_r0x00041d95:\n  if (iVar1 != 0) {\n    FUN_000b35c0(uVar2);\n    uVar2 = *(undefined4 *)(param_1 + 0x110);\n  }\n  FUN_000b2fd0(uVar2,param_2);\n  if ((*(int *)(param_1 + 0x134) == 0) || (*(int *)(param_1 + 0x138) == 0)) {\n    FUN_000b2cf0(*(undefined4 *)(param_1 + 0x110),&DAT_000d9ac7,param_2);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = FUN_00041bc0();" (assignment_expression "iVar1 = FUN_00041bc0()" identifier = (call_expression "FUN_00041bc0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (param_2 == (char *)0x0) {\n    param_2 = "Server unexpectedly closed network connection";\n    if (*(int *)(param_1 + 0x134) != 0) {\n      param_2 = "Server closed network connection";\n      goto LAB_00041df6;\n    }\n  }\n  else if (*(int *)(param_1 + 0x134) != 0) {\nLAB_00041df6:\n    if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }\n  }" if (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_2 = "Server unexpectedly closed network connection";\n    if (*(int *)(param_1 + 0x134) != 0) {\n      param_2 = "Server closed network connection";\n      goto LAB_00041df6;\n    }\n  }" { (expression_statement "param_2 = "Server unexpectedly closed network connection";" (assignment_expression "param_2 = "Server unexpectedly closed network connection"" identifier = (string_literal ""Server unexpectedly closed network connection"" " string_content ")) ;) (if_statement "if (*(int *)(param_1 + 0x134) != 0) {\n      param_2 = "Server closed network connection";\n      goto LAB_00041df6;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x134) != 0)" ( (binary_expression "*(int *)(param_1 + 0x134) != 0" (pointer_expression "*(int *)(param_1 + 0x134)" * (cast_expression "(int *)(param_1 + 0x134)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x134)" ( (binary_expression "param_1 + 0x134" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      param_2 = "Server closed network connection";\n      goto LAB_00041df6;\n    }" { (expression_statement "param_2 = "Server closed network connection";" (assignment_expression "param_2 = "Server closed network connection"" identifier = (string_literal ""Server closed network connection"" " string_content ")) ;) (goto_statement "goto LAB_00041df6;" goto statement_identifier ;) })) }) (else_clause "else if (*(int *)(param_1 + 0x134) != 0) {\nLAB_00041df6:\n    if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }\n  }" else (if_statement "if (*(int *)(param_1 + 0x134) != 0) {\nLAB_00041df6:\n    if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x134) != 0)" ( (binary_expression "*(int *)(param_1 + 0x134) != 0" (pointer_expression "*(int *)(param_1 + 0x134)" * (cast_expression "(int *)(param_1 + 0x134)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x134)" ( (binary_expression "param_1 + 0x134" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\nLAB_00041df6:\n    if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }\n  }" { (labeled_statement "LAB_00041df6:\n    if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }" statement_identifier : (if_statement "if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }" if (parenthesized_expression "((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0))" ( (binary_expression "(*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)" (parenthesized_expression "(*(int *)(param_1 + 0x138) != 0)" ( (binary_expression "*(int *)(param_1 + 0x138) != 0" (pointer_expression "*(int *)(param_1 + 0x138)" * (cast_expression "(int *)(param_1 + 0x138)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x138)" ( (binary_expression "param_1 + 0x138" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 0x130) < 0)" ( (binary_expression "*(int *)(param_1 + 0x130) < 0" (pointer_expression "*(int *)(param_1 + 0x130)" * (cast_expression "(int *)(param_1 + 0x130)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x130)" ( (binary_expression "param_1 + 0x130" identifier + number_literal) )))) < number_literal) ))) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x130) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x130) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x130)" * (cast_expression "(undefined4 *)(param_1 + 0x130)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x130)" ( (binary_expression "param_1 + 0x130" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x110);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x110)" identifier = (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) ))))) ;) (goto_statement "goto joined_r0x00041d95;" goto statement_identifier ;) }))) })))) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x110);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x110)" identifier = (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) ))))) ;) (labeled_statement "joined_r0x00041d95:\n  if (iVar1 != 0) {\n    FUN_000b35c0(uVar2);\n    uVar2 = *(undefined4 *)(param_1 + 0x110);\n  }" statement_identifier : (if_statement "if (iVar1 != 0) {\n    FUN_000b35c0(uVar2);\n    uVar2 = *(undefined4 *)(param_1 + 0x110);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_000b35c0(uVar2);\n    uVar2 = *(undefined4 *)(param_1 + 0x110);\n  }" { (expression_statement "FUN_000b35c0(uVar2);" (call_expression "FUN_000b35c0(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x110);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x110)" identifier = (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) ))))) ;) }))) (expression_statement "FUN_000b2fd0(uVar2,param_2);" (call_expression "FUN_000b2fd0(uVar2,param_2)" identifier (argument_list "(uVar2,param_2)" ( identifier , identifier ))) ;) (if_statement "if ((*(int *)(param_1 + 0x134) == 0) || (*(int *)(param_1 + 0x138) == 0)) {\n    FUN_000b2cf0(*(undefined4 *)(param_1 + 0x110),&DAT_000d9ac7,param_2);\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0x134) == 0) || (*(int *)(param_1 + 0x138) == 0))" ( (binary_expression "(*(int *)(param_1 + 0x134) == 0) || (*(int *)(param_1 + 0x138) == 0)" (parenthesized_expression "(*(int *)(param_1 + 0x134) == 0)" ( (binary_expression "*(int *)(param_1 + 0x134) == 0" (pointer_expression "*(int *)(param_1 + 0x134)" * (cast_expression "(int *)(param_1 + 0x134)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x134)" ( (binary_expression "param_1 + 0x134" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 0x138) == 0)" ( (binary_expression "*(int *)(param_1 + 0x138) == 0" (pointer_expression "*(int *)(param_1 + 0x138)" * (cast_expression "(int *)(param_1 + 0x138)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x138)" ( (binary_expression "param_1 + 0x138" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    FUN_000b2cf0(*(undefined4 *)(param_1 + 0x110),&DAT_000d9ac7,param_2);\n  }" { (expression_statement "FUN_000b2cf0(*(undefined4 *)(param_1 + 0x110),&DAT_000d9ac7,param_2);" (call_expression "FUN_000b2cf0(*(undefined4 *)(param_1 + 0x110),&DAT_000d9ac7,param_2)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x110),&DAT_000d9ac7,param_2)" ( (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) )))) , (pointer_expression "&DAT_000d9ac7" & identifier) , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (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 { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != 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 (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (goto_statement goto statement_identifier ;) }))) })))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == 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 IDENT + LIT) )))) , (pointer_expression & IDENT) , IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00041d60(int param_1,char *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_00041bc0();\n  if (param_2 == (char *)0x0) {\n    param_2 = "Server unexpectedly closed network connection";\n    if (*(int *)(param_1 + 0x134) != 0) {\n      param_2 = "Server closed network connection";\n      goto LAB_00041df6;\n    }\n  }\n  else if (*(int *)(param_1 + 0x134) != 0) {\nLAB_00041df6:\n    if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }\n  }\n  uVar2 = *(undefined4 *)(param_1 + 0x110);\njoined_r0x00041d95:\n  if (iVar1 != 0) {\n    FUN_000b35c0(uVar2);\n    uVar2 = *(undefined4 *)(param_1 + 0x110);\n  }\n  FUN_000b2fd0(uVar2,param_2);\n  if ((*(int *)(param_1 + 0x134) == 0) || (*(int *)(param_1 + 0x138) == 0)) {\n    FUN_000b2cf0(*(undefined4 *)(param_1 + 0x110),&DAT_000d9ac7,param_2);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00041d60(int param_1,char *param_2)" (identifier "FUN_00041d60") (parameter_list "(int param_1,char *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = FUN_00041bc0();\n  if (param_2 == (char *)0x0) {\n    param_2 = "Server unexpectedly closed network connection";\n    if (*(int *)(param_1 + 0x134) != 0) {\n      param_2 = "Server closed network connection";\n      goto LAB_00041df6;\n    }\n  }\n  else if (*(int *)(param_1 + 0x134) != 0) {\nLAB_00041df6:\n    if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }\n  }\n  uVar2 = *(undefined4 *)(param_1 + 0x110);\njoined_r0x00041d95:\n  if (iVar1 != 0) {\n    FUN_000b35c0(uVar2);\n    uVar2 = *(undefined4 *)(param_1 + 0x110);\n  }\n  FUN_000b2fd0(uVar2,param_2);\n  if ((*(int *)(param_1 + 0x134) == 0) || (*(int *)(param_1 + 0x138) == 0)) {\n    FUN_000b2cf0(*(undefined4 *)(param_1 + 0x110),&DAT_000d9ac7,param_2);\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "iVar1 = FUN_00041bc0();" (assignment_expression "iVar1 = FUN_00041bc0()" (identifier "iVar1") (= "=") (call_expression "FUN_00041bc0()" (identifier "FUN_00041bc0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (param_2 == (char *)0x0) {\n    param_2 = "Server unexpectedly closed network connection";\n    if (*(int *)(param_1 + 0x134) != 0) {\n      param_2 = "Server closed network connection";\n      goto LAB_00041df6;\n    }\n  }\n  else if (*(int *)(param_1 + 0x134) != 0) {\nLAB_00041df6:\n    if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }\n  }" (if "if") (parenthesized_expression "(param_2 == (char *)0x0)" (( "(") (binary_expression "param_2 == (char *)0x0" (identifier "param_2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    param_2 = "Server unexpectedly closed network connection";\n    if (*(int *)(param_1 + 0x134) != 0) {\n      param_2 = "Server closed network connection";\n      goto LAB_00041df6;\n    }\n  }" ({ "{") (expression_statement "param_2 = "Server unexpectedly closed network connection";" (assignment_expression "param_2 = "Server unexpectedly closed network connection"" (identifier "param_2") (= "=") (string_literal ""Server unexpectedly closed network connection"" (" """) (string_content "Server unexpectedly closed network connection") (" """))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x134) != 0) {\n      param_2 = "Server closed network connection";\n      goto LAB_00041df6;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x134) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x134) != 0" (pointer_expression "*(int *)(param_1 + 0x134)" (* "*") (cast_expression "(int *)(param_1 + 0x134)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x134)" (( "(") (binary_expression "param_1 + 0x134" (identifier "param_1") (+ "+") (number_literal "0x134")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      param_2 = "Server closed network connection";\n      goto LAB_00041df6;\n    }" ({ "{") (expression_statement "param_2 = "Server closed network connection";" (assignment_expression "param_2 = "Server closed network connection"" (identifier "param_2") (= "=") (string_literal ""Server closed network connection"" (" """) (string_content "Server closed network connection") (" """))) (; ";")) (goto_statement "goto LAB_00041df6;" (goto "goto") (statement_identifier "LAB_00041df6") (; ";")) (} "}"))) (} "}")) (else_clause "else if (*(int *)(param_1 + 0x134) != 0) {\nLAB_00041df6:\n    if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }\n  }" (else "else") (if_statement "if (*(int *)(param_1 + 0x134) != 0) {\nLAB_00041df6:\n    if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x134) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x134) != 0" (pointer_expression "*(int *)(param_1 + 0x134)" (* "*") (cast_expression "(int *)(param_1 + 0x134)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x134)" (( "(") (binary_expression "param_1 + 0x134" (identifier "param_1") (+ "+") (number_literal "0x134")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00041df6:\n    if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }\n  }" ({ "{") (labeled_statement "LAB_00041df6:\n    if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }" (statement_identifier "LAB_00041df6") (: ":") (if_statement "if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0))" (( "(") (binary_expression "(*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)" (parenthesized_expression "(*(int *)(param_1 + 0x138) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x138) != 0" (pointer_expression "*(int *)(param_1 + 0x138)" (* "*") (cast_expression "(int *)(param_1 + 0x138)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x138)" (( "(") (binary_expression "param_1 + 0x138" (identifier "param_1") (+ "+") (number_literal "0x138")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 0x130) < 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x130) < 0" (pointer_expression "*(int *)(param_1 + 0x130)" (* "*") (cast_expression "(int *)(param_1 + 0x130)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x130)" (( "(") (binary_expression "param_1 + 0x130" (identifier "param_1") (+ "+") (number_literal "0x130")) () ")")))) (< "<") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x130) = 0;\n      uVar2 = *(undefined4 *)(param_1 + 0x110);\n      goto joined_r0x00041d95;\n    }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x130) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x130) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x130)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x130)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x130)" (( "(") (binary_expression "param_1 + 0x130" (identifier "param_1") (+ "+") (number_literal "0x130")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x110);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x110)" (identifier "uVar2") (= "=") (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")) () ")"))))) (; ";")) (goto_statement "goto joined_r0x00041d95;" (goto "goto") (statement_identifier "joined_r0x00041d95") (; ";")) (} "}")))) (} "}"))))) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x110);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x110)" (identifier "uVar2") (= "=") (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")) () ")"))))) (; ";")) (labeled_statement "joined_r0x00041d95:\n  if (iVar1 != 0) {\n    FUN_000b35c0(uVar2);\n    uVar2 = *(undefined4 *)(param_1 + 0x110);\n  }" (statement_identifier "joined_r0x00041d95") (: ":") (if_statement "if (iVar1 != 0) {\n    FUN_000b35c0(uVar2);\n    uVar2 = *(undefined4 *)(param_1 + 0x110);\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_000b35c0(uVar2);\n    uVar2 = *(undefined4 *)(param_1 + 0x110);\n  }" ({ "{") (expression_statement "FUN_000b35c0(uVar2);" (call_expression "FUN_000b35c0(uVar2)" (identifier "FUN_000b35c0") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x110);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x110)" (identifier "uVar2") (= "=") (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")) () ")"))))) (; ";")) (} "}")))) (expression_statement "FUN_000b2fd0(uVar2,param_2);" (call_expression "FUN_000b2fd0(uVar2,param_2)" (identifier "FUN_000b2fd0") (argument_list "(uVar2,param_2)" (( "(") (identifier "uVar2") (, ",") (identifier "param_2") () ")"))) (; ";")) (if_statement "if ((*(int *)(param_1 + 0x134) == 0) || (*(int *)(param_1 + 0x138) == 0)) {\n    FUN_000b2cf0(*(undefined4 *)(param_1 + 0x110),&DAT_000d9ac7,param_2);\n  }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0x134) == 0) || (*(int *)(param_1 + 0x138) == 0))" (( "(") (binary_expression "(*(int *)(param_1 + 0x134) == 0) || (*(int *)(param_1 + 0x138) == 0)" (parenthesized_expression "(*(int *)(param_1 + 0x134) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x134) == 0" (pointer_expression "*(int *)(param_1 + 0x134)" (* "*") (cast_expression "(int *)(param_1 + 0x134)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x134)" (( "(") (binary_expression "param_1 + 0x134" (identifier "param_1") (+ "+") (number_literal "0x134")) () ")")))) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)(param_1 + 0x138) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x138) == 0" (pointer_expression "*(int *)(param_1 + 0x138)" (* "*") (cast_expression "(int *)(param_1 + 0x138)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x138)" (( "(") (binary_expression "param_1 + 0x138" (identifier "param_1") (+ "+") (number_literal "0x138")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    FUN_000b2cf0(*(undefined4 *)(param_1 + 0x110),&DAT_000d9ac7,param_2);\n  }" ({ "{") (expression_statement "FUN_000b2cf0(*(undefined4 *)(param_1 + 0x110),&DAT_000d9ac7,param_2);" (call_expression "FUN_000b2cf0(*(undefined4 *)(param_1 + 0x110),&DAT_000d9ac7,param_2)" (identifier "FUN_000b2cf0") (argument_list "(*(undefined4 *)(param_1 + 0x110),&DAT_000d9ac7,param_2)" (( "(") (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")) () ")")))) (, ",") (pointer_expression "&DAT_000d9ac7" (& "&") (identifier "DAT_000d9ac7")) (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 plug,char *var_2,int error_code,int calling_back)

{
  int var_3;
  type_2 *frontend;
  
  var_3 = var_1((type_3)plug,0);
  if (var_2 == (char *)0x0) {
    var_2 = "Server unexpectedly closed network connection";
    if (plug[0x4d] != (type_2 *)0x0) {
      var_2 = "Server closed network connection";
      goto LAB_00041df6;
    }
  }
  else if (plug[0x4d] != (type_2 *)0x0) {
LAB_00041df6:
    if ((plug[0x4e] != (type_2 *)0x0) && ((int)plug[0x4c] < 0)) {
      plug[0x4c] = (type_2 *)0x0;
      frontend = plug[0x44];
      goto joined_r0x00041d95;
    }
  }
  frontend = plug[0x44];
joined_r0x00041d95:
  if (var_3 != 0) {
    var_4(frontend);
    frontend = plug[0x44];
  }
  var_5(frontend,var_2);
  if ((plug[0x4d] == (type_2 *)0x0) || (plug[0x4e] == (type_2 *)0x0)) {
    var_6(plug[0x44],"%s",var_2);
  }
  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: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (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 (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (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 (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (goto_statement label: (statement_identifier))))))))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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)))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (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: (identifier) right: (number_literal))))) (pointer_expression argument: (identifier)) (identifier)))))) (return_statement))))

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

void MASKED(int param_1,char *param_2)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = FUN_00041bc0();
  if (param_2 == (char *)0x0) {
    param_2 = "Server unexpectedly closed network connection";
    if (*(int *)(param_1 + 0x134) != 0) {
      param_2 = "Server closed network connection";
      goto LAB_00041df6;
    }
  }
  else if (*(int *)(param_1 + 0x134) != 0) {
LAB_00041df6:
    if ((*(int *)(param_1 + 0x138) != 0) && (*(int *)(param_1 + 0x130) < 0)) {
      *(undefined4 *)(param_1 + 0x130) = 0;
      uVar2 = *(undefined4 *)(param_1 + 0x110);
      goto joined_r0x00041d95;
    }
  }
  uVar2 = *(undefined4 *)(param_1 + 0x110);
joined_r0x00041d95:
  if (iVar1 != 0) {
    FUN_000b35c0(uVar2);
    uVar2 = *(undefined4 *)(param_1 + 0x110);
  }
  FUN_000b2fd0(uVar2,param_2);
  if ((*(int *)(param_1 + 0x134) == 0) || (*(int *)(param_1 + 0x138) == 0)) {
    FUN_000b2cf0(*(undefined4 *)(param_1 + 0x110),&DAT_000d9ac7,param_2);
  }
  return;
}

