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

char * sk_tcp_peer_info(Socket sock)

{
  int iVar1;
  int iVar2;
  passwd *ppVar3;
  group *pgVar4;
  char *pcVar5;
  char *pcVar6;
  int in_GS_OFFSET;
  socklen_t addrlen;
  int pid;
  int uid;
  int gid;
  sockaddr_union addr;
  char uidbuf [64];
  char buf [46];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  addrlen = 0x80;
  iVar2 = getpeername((int)sock[2],(sockaddr *)&addr.storage,&addrlen);
  if (iVar2 < 0) {
    pcVar5 = (char *)0x0;
  }
  else if (addr.storage.ss_family == 2) {
    pcVar5 = inet_ntoa((in_addr)addr.sin.sin_addr.s_addr);
    pcVar5 = dupprintf("%s:%d",pcVar5,
                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8));
  }
  else if (addr.storage.ss_family == 10) {
    pcVar5 = inet_ntop(10,addr.storage.__ss_padding + 6,buf,0x2e);
    pcVar5 = dupprintf("[%s]:%d",pcVar5,
                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8));
  }
  else {
    pcVar5 = (char *)0x0;
    if (addr.storage.ss_family == 1) {
      iVar2 = so_peercred((int)sock[2],&pid,&uid,&gid);
      if (iVar2 != 0) {
        pcVar5 = uidbuf;
        __sprintf_chk(pcVar5,1,0x40,"%d",uid);
        pcVar6 = buf;
        __sprintf_chk(pcVar6,1,0x40,"%d",gid);
        ppVar3 = getpwuid(uid);
        pgVar4 = getgrgid(gid);
        if (pgVar4 != (group *)0x0) {
          pcVar6 = pgVar4->gr_name;
        }
        if (ppVar3 != (passwd *)0x0) {
          pcVar5 = ppVar3->pw_name;
        }
        pcVar5 = dupprintf("pid %d (%s:%s)",pid,pcVar5,pcVar6);
      }
    }
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return pcVar5;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

undefined4 FUN_000661b0(int param_1)

{
  int iVar1;
  passwd *ppVar2;
  group *pgVar3;
  char *pcVar4;
  undefined4 uVar5;
  char *pcVar6;
  int in_GS_OFFSET;
  socklen_t local_130;
  undefined4 local_12c;
  __uid_t local_128;
  __gid_t local_124;
  undefined1 local_120 [8];
  undefined1 local_118 [120];
  char local_a0 [64];
  char local_60 [64];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x661b9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_130 = 0x80;
  iVar1 = getpeername(*(int *)(param_1 + 8),(sockaddr *)local_120,&local_130);
  if (iVar1 < 0) {
    uVar5 = 0;
  }
  else if (local_120._0_2_ == 2) {
    pcVar4 = inet_ntoa((in_addr)local_120._4_4_);
    uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);
  }
  else if (local_120._0_2_ == 10) {
    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);
    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);
  }
  else {
    uVar5 = 0;
    if (local_120._0_2_ == 1) {
      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);
      if (iVar1 != 0) {
        pcVar4 = local_a0;
        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);
        pcVar6 = local_60;
        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);
        ppVar2 = getpwuid(local_128);
        pgVar3 = getgrgid(local_124);
        if (pgVar3 != (group *)0x0) {
          pcVar6 = pgVar3->gr_name;
        }
        if (ppVar2 != (passwd *)0x0) {
          pcVar4 = ppVar2->pw_name;
        }
        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);
      }
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar5;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f2a0();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014980
ADD EBX,0x42bb7
SUB ESP,0x130
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x120],EAX
XOR EAX,EAX
LEA EAX,[ESP + 0x10]
MOV ESI,dword ptr [ESP + 0x144]
MOV dword ptr [ESP + 0x10],0x80
PUSH EAX
LEA EAX,[ESP + 0x24]
PUSH EAX
PUSH dword ptr [ESI + 0x8]
CALL 0x000146d0
ADD ESP,0x10
TEST EAX,EAX
JS 0x000662e0
MOVZX EAX,word ptr [ESP + 0x1c]
CMP AX,0x2
JZ 0x000662f0
CMP AX,0xa
JZ 0x00066328
XOR EDI,EDI
CMP AX,0x1
JNZ 0x0006623f
LEA EAX,[ESP + 0x18]
PUSH EAX
LEA EAX,[ESP + 0x18]
PUSH EAX
LEA EAX,[ESP + 0x18]
PUSH EAX
PUSH dword ptr [ESI + 0x8]
CALL 0x00068ae0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00066260
MOV EDX,dword ptr [ESP + 0x11c]
XOR EDX,dword ptr GS:[0x14]
MOV EAX,EDI
JNZ 0x00066365
ADD ESP,0x12c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
LEA EDI,[EBX + 0xfffcc60b]
PUSH dword ptr [ESP + 0x20]
PUSH EDI
PUSH 0x40
PUSH 0x1
LEA ESI,[ESP + 0xb8]
PUSH ESI
CALL 0x000148b0
ADD ESP,0x14
PUSH dword ptr [ESP + 0x24]
PUSH EDI
PUSH 0x40
PUSH 0x1
LEA EDI,[ESP + 0xf8]
PUSH EDI
CALL 0x000148b0
ADD ESP,0x14
PUSH dword ptr [ESP + 0x20]
CALL 0x000140d0
MOV EBP,EAX
POP EAX
PUSH dword ptr [ESP + 0x24]
CALL 0x00014860
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000662b9
MOV EDI,dword ptr [EAX]
TEST EBP,EBP
JZ 0x000662c0
MOV ESI,dword ptr [EBP]
LEA EAX,[EBX + 0xfffd727b]
PUSH EDI
PUSH ESI
PUSH dword ptr [ESP + 0x18]
PUSH EAX
CALL 0x0001b030
ADD ESP,0x10
MOV EDI,EAX
JMP 0x0006623f
XOR EDI,EDI
JMP 0x0006623f
MOVZX ESI,word ptr [ESP + 0x1e]
SUB ESP,0xc
PUSH dword ptr [ESP + 0x2c]
ROL SI,0x8
MOVZX ESI,SI
CALL 0x00014190
ADD ESP,0xc
PUSH ESI
PUSH EAX
LEA EAX,[EBX + 0xfffcc105]
PUSH EAX
CALL 0x0001b030
ADD ESP,0x10
MOV EDI,EAX
JMP 0x0006623f
MOVZX ESI,word ptr [ESP + 0x1e]
PUSH 0x2e
ROL SI,0x8
LEA EAX,[ESP + 0xe0]
MOVZX ESI,SI
PUSH EAX
LEA EAX,[ESP + 0x2c]
PUSH EAX
PUSH 0xa
CALL 0x000146f0
ADD ESP,0xc
PUSH ESI
PUSH EAX
LEA EAX,[EBX + 0xfffd7273]
PUSH EAX
CALL 0x0001b030
ADD ESP,0x10
MOV EDI,EAX
JMP 0x0006623f
CALL 0x0006f2a0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_000661b0(int param_1)\n\n{\n  int iVar1;\n  passwd *ppVar2;\n  group *pgVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  socklen_t local_130;\n  undefined4 local_12c;\n  __uid_t local_128;\n  __gid_t local_124;\n  undefined1 local_120 [8];\n  undefined1 local_118 [120];\n  char local_a0 [64];\n  char local_60 [64];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x661b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_130 = 0x80;\n  iVar1 = getpeername(*(int *)(param_1 + 8),(sockaddr *)local_120,&local_130);\n  if (iVar1 < 0) {\n    uVar5 = 0;\n  }\n  else if (local_120._0_2_ == 2) {\n    pcVar4 = inet_ntoa((in_addr)local_120._4_4_);\n    uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else if (local_120._0_2_ == 10) {\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f2a0();\n}\n\n" comment (function_definition "undefined4 FUN_000661b0(int param_1)\n\n{\n  int iVar1;\n  passwd *ppVar2;\n  group *pgVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  socklen_t local_130;\n  undefined4 local_12c;\n  __uid_t local_128;\n  __gid_t local_124;\n  undefined1 local_120 [8];\n  undefined1 local_118 [120];\n  char local_a0 [64];\n  char local_60 [64];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x661b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_130 = 0x80;\n  iVar1 = getpeername(*(int *)(param_1 + 8),(sockaddr *)local_120,&local_130);\n  if (iVar1 < 0) {\n    uVar5 = 0;\n  }\n  else if (local_120._0_2_ == 2) {\n    pcVar4 = inet_ntoa((in_addr)local_120._4_4_);\n    uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else if (local_120._0_2_ == 10) {\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f2a0();\n}" type_identifier (function_declarator "FUN_000661b0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  passwd *ppVar2;\n  group *pgVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  socklen_t local_130;\n  undefined4 local_12c;\n  __uid_t local_128;\n  __gid_t local_124;\n  undefined1 local_120 [8];\n  undefined1 local_118 [120];\n  char local_a0 [64];\n  char local_60 [64];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x661b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_130 = 0x80;\n  iVar1 = getpeername(*(int *)(param_1 + 8),(sockaddr *)local_120,&local_130);\n  if (iVar1 < 0) {\n    uVar5 = 0;\n  }\n  else if (local_120._0_2_ == 2) {\n    pcVar4 = inet_ntoa((in_addr)local_120._4_4_);\n    uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else if (local_120._0_2_ == 10) {\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f2a0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "passwd *ppVar2;" type_identifier (pointer_declarator "*ppVar2" * identifier) ;) (declaration "group *pgVar3;" type_identifier (pointer_declarator "*pgVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "socklen_t local_130;" type_identifier identifier ;) (declaration "undefined4 local_12c;" type_identifier identifier ;) (declaration "__uid_t local_128;" type_identifier identifier ;) (declaration "__gid_t local_124;" type_identifier identifier ;) (declaration "undefined1 local_120 [8];" type_identifier (array_declarator "local_120 [8]" identifier [ number_literal ]) ;) (declaration "undefined1 local_118 [120];" type_identifier (array_declarator "local_118 [120]" identifier [ number_literal ]) ;) (declaration "char local_a0 [64];" primitive_type (array_declarator "local_a0 [64]" identifier [ number_literal ]) ;) (declaration "char local_60 [64];" primitive_type (array_declarator "local_60 [64]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x661b9;" (assignment_expression "uStack_14 = 0x661b9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_130 = 0x80;" (assignment_expression "local_130 = 0x80" identifier = number_literal) ;) (expression_statement "iVar1 = getpeername(*(int *)(param_1 + 8),(sockaddr *)local_120,&local_130);" (assignment_expression "iVar1 = getpeername(*(int *)(param_1 + 8),(sockaddr *)local_120,&local_130)" identifier = (call_expression "getpeername(*(int *)(param_1 + 8),(sockaddr *)local_120,&local_130)" identifier (argument_list "(*(int *)(param_1 + 8),(sockaddr *)local_120,&local_130)" ( (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , (cast_expression "(sockaddr *)local_120" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (pointer_expression "&local_130" & identifier) )))) ;) (if_statement "if (iVar1 < 0) {\n    uVar5 = 0;\n  }\n  else if (local_120._0_2_ == 2) {\n    pcVar4 = inet_ntoa((in_addr)local_120._4_4_);\n    uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else if (local_120._0_2_ == 10) {\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    uVar5 = 0;\n  }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) }) (else_clause "else if (local_120._0_2_ == 2) {\n    pcVar4 = inet_ntoa((in_addr)local_120._4_4_);\n    uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else if (local_120._0_2_ == 10) {\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }" else (if_statement "if (local_120._0_2_ == 2) {\n    pcVar4 = inet_ntoa((in_addr)local_120._4_4_);\n    uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else if (local_120._0_2_ == 10) {\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }" if (parenthesized_expression "(local_120._0_2_ == 2)" ( (binary_expression "local_120._0_2_ == 2" (field_expression "local_120._0_2_" identifier . field_identifier) == number_literal) )) (compound_statement "{\n    pcVar4 = inet_ntoa((in_addr)local_120._4_4_);\n    uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }" { (expression_statement "pcVar4 = inet_ntoa((in_addr)local_120._4_4_);" (assignment_expression "pcVar4 = inet_ntoa((in_addr)local_120._4_4_)" identifier = (call_expression "inet_ntoa((in_addr)local_120._4_4_)" identifier (argument_list "((in_addr)local_120._4_4_)" ( (cast_expression "(in_addr)local_120._4_4_" ( (type_descriptor "in_addr" type_identifier) ) (field_expression "local_120._4_4_" identifier . field_identifier)) )))) ;) (expression_statement "uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);" (assignment_expression "uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8)" identifier = (call_expression "FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8)" identifier (argument_list "("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8)" ( (string_literal ""%s:%d"" " string_content ") , identifier , (binary_expression "local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8" (binary_expression "local_120._2_2_ << 8" (field_expression "local_120._2_2_" identifier . field_identifier) << number_literal) | (binary_expression "(ushort)local_120._2_2_ >> 8" (cast_expression "(ushort)local_120._2_2_" ( (type_descriptor "ushort" type_identifier) ) (field_expression "local_120._2_2_" identifier . field_identifier)) >> number_literal)) )))) ;) }) (else_clause "else if (local_120._0_2_ == 10) {\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }" else (if_statement "if (local_120._0_2_ == 10) {\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }" if (parenthesized_expression "(local_120._0_2_ == 10)" ( (binary_expression "local_120._0_2_ == 10" (field_expression "local_120._0_2_" identifier . field_identifier) == number_literal) )) (compound_statement "{\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }" { (expression_statement "pcVar4 = inet_ntop(10,local_118,local_60,0x2e);" (assignment_expression "pcVar4 = inet_ntop(10,local_118,local_60,0x2e)" identifier = (call_expression "inet_ntop(10,local_118,local_60,0x2e)" identifier (argument_list "(10,local_118,local_60,0x2e)" ( number_literal , identifier , identifier , number_literal )))) ;) (expression_statement "uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);" (assignment_expression "uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8)" identifier = (call_expression "FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8)" identifier (argument_list "("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8)" ( (string_literal ""[%s]:%d"" " string_content ") , identifier , (binary_expression "local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8" (binary_expression "local_120._2_2_ << 8" (field_expression "local_120._2_2_" identifier . field_identifier) << number_literal) | (binary_expression "(ushort)local_120._2_2_ >> 8" (cast_expression "(ushort)local_120._2_2_" ( (type_descriptor "ushort" type_identifier) ) (field_expression "local_120._2_2_" identifier . field_identifier)) >> number_literal)) )))) ;) }) (else_clause "else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }" else (compound_statement "{\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (if_statement "if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }" if (parenthesized_expression "(local_120._0_2_ == 1)" ( (binary_expression "local_120._0_2_ == 1" (field_expression "local_120._0_2_" identifier . field_identifier) == number_literal) )) (compound_statement "{\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }" { (expression_statement "iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);" (assignment_expression "iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124)" identifier = (call_expression "FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124)" identifier (argument_list "(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124)" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , (pointer_expression "&local_12c" & identifier) , (pointer_expression "&local_128" & identifier) , (pointer_expression "&local_124" & identifier) )))) ;) (if_statement "if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }" { (expression_statement "pcVar4 = local_a0;" (assignment_expression "pcVar4 = local_a0" identifier = identifier) ;) (expression_statement "__sprintf_chk(pcVar4,1,0x40,"%d",local_128);" (call_expression "__sprintf_chk(pcVar4,1,0x40,"%d",local_128)" identifier (argument_list "(pcVar4,1,0x40,"%d",local_128)" ( identifier , number_literal , number_literal , (string_literal ""%d"" " string_content ") , identifier ))) ;) (expression_statement "pcVar6 = local_60;" (assignment_expression "pcVar6 = local_60" identifier = identifier) ;) (expression_statement "__sprintf_chk(pcVar6,1,0x40,"%d",local_124);" (call_expression "__sprintf_chk(pcVar6,1,0x40,"%d",local_124)" identifier (argument_list "(pcVar6,1,0x40,"%d",local_124)" ( identifier , number_literal , number_literal , (string_literal ""%d"" " string_content ") , identifier ))) ;) (expression_statement "ppVar2 = getpwuid(local_128);" (assignment_expression "ppVar2 = getpwuid(local_128)" identifier = (call_expression "getpwuid(local_128)" identifier (argument_list "(local_128)" ( identifier )))) ;) (expression_statement "pgVar3 = getgrgid(local_124);" (assignment_expression "pgVar3 = getgrgid(local_124)" identifier = (call_expression "getgrgid(local_124)" identifier (argument_list "(local_124)" ( identifier )))) ;) (if_statement "if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }" if (parenthesized_expression "(pgVar3 != (group *)0x0)" ( (binary_expression "pgVar3 != (group *)0x0" identifier != (cast_expression "(group *)0x0" ( (type_descriptor "group *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pcVar6 = pgVar3->gr_name;\n        }" { (expression_statement "pcVar6 = pgVar3->gr_name;" (assignment_expression "pcVar6 = pgVar3->gr_name" identifier = (field_expression "pgVar3->gr_name" identifier -> field_identifier)) ;) })) (if_statement "if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }" if (parenthesized_expression "(ppVar2 != (passwd *)0x0)" ( (binary_expression "ppVar2 != (passwd *)0x0" identifier != (cast_expression "(passwd *)0x0" ( (type_descriptor "passwd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pcVar4 = ppVar2->pw_name;\n        }" { (expression_statement "pcVar4 = ppVar2->pw_name;" (assignment_expression "pcVar4 = ppVar2->pw_name" identifier = (field_expression "ppVar2->pw_name" identifier -> field_identifier)) ;) })) (expression_statement "uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);" (assignment_expression "uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6)" identifier = (call_expression "FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6)" identifier (argument_list "("pid %d (%s:%s)",local_12c,pcVar4,pcVar6)" ( (string_literal ""pid %d (%s:%s)"" " string_content ") , identifier , identifier , identifier )))) ;) })) })) }))))))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar5;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar5;\n  }" { (return_statement "return uVar5;" return identifier ;) })) comment (expression_statement "FUN_0006f2a0();" (call_expression "FUN_0006f2a0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nchar * sk_tcp_peer_info(Socket sock)\n\n{\n  int iVar1;\n  int iVar2;\n  passwd *ppVar3;\n  group *pgVar4;\n  char *pcVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  socklen_t addrlen;\n  int pid;\n  int uid;\n  int gid;\n  sockaddr_union addr;\n  char uidbuf [64];\n  char buf [46];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  addrlen = 0x80;\n  iVar2 = getpeername((int)sock[2],(sockaddr *)&addr.storage,&addrlen);\n  if (iVar2 < 0) {\n    pcVar5 = (char *)0x0;\n  }\n  else if (addr.storage.ss_family == 2) {\n    pcVar5 = inet_ntoa((in_addr)addr.sin.sin_addr.s_addr);\n    pcVar5 = dupprintf("%s:%d",pcVar5,\n                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8));\n  }\n  else if (addr.storage.ss_family == 10) {\n    pcVar5 = inet_ntop(10,addr.storage.__ss_padding + 6,buf,0x2e);\n    pcVar5 = dupprintf("[%s]:%d",pcVar5,\n                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8));\n  }\n  else {\n    pcVar5 = (char *)0x0;\n    if (addr.storage.ss_family == 1) {\n      iVar2 = so_peercred((int)sock[2],&pid,&uid,&gid);\n      if (iVar2 != 0) {\n        pcVar5 = uidbuf;\n        __sprintf_chk(pcVar5,1,0x40,"%d",uid);\n        pcVar6 = buf;\n        __sprintf_chk(pcVar6,1,0x40,"%d",gid);\n        ppVar3 = getpwuid(uid);\n        pgVar4 = getgrgid(gid);\n        if (pgVar4 != (group *)0x0) {\n          pcVar6 = pgVar4->gr_name;\n        }\n        if (ppVar3 != (passwd *)0x0) {\n          pcVar5 = ppVar3->pw_name;\n        }\n        pcVar5 = dupprintf("pid %d (%s:%s)",pid,pcVar5,pcVar6);\n      }\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment comment (function_definition "char * sk_tcp_peer_info(Socket sock)\n\n{\n  int iVar1;\n  int iVar2;\n  passwd *ppVar3;\n  group *pgVar4;\n  char *pcVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  socklen_t addrlen;\n  int pid;\n  int uid;\n  int gid;\n  sockaddr_union addr;\n  char uidbuf [64];\n  char buf [46];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  addrlen = 0x80;\n  iVar2 = getpeername((int)sock[2],(sockaddr *)&addr.storage,&addrlen);\n  if (iVar2 < 0) {\n    pcVar5 = (char *)0x0;\n  }\n  else if (addr.storage.ss_family == 2) {\n    pcVar5 = inet_ntoa((in_addr)addr.sin.sin_addr.s_addr);\n    pcVar5 = dupprintf("%s:%d",pcVar5,\n                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8));\n  }\n  else if (addr.storage.ss_family == 10) {\n    pcVar5 = inet_ntop(10,addr.storage.__ss_padding + 6,buf,0x2e);\n    pcVar5 = dupprintf("[%s]:%d",pcVar5,\n                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8));\n  }\n  else {\n    pcVar5 = (char *)0x0;\n    if (addr.storage.ss_family == 1) {\n      iVar2 = so_peercred((int)sock[2],&pid,&uid,&gid);\n      if (iVar2 != 0) {\n        pcVar5 = uidbuf;\n        __sprintf_chk(pcVar5,1,0x40,"%d",uid);\n        pcVar6 = buf;\n        __sprintf_chk(pcVar6,1,0x40,"%d",gid);\n        ppVar3 = getpwuid(uid);\n        pgVar4 = getgrgid(gid);\n        if (pgVar4 != (group *)0x0) {\n          pcVar6 = pgVar4->gr_name;\n        }\n        if (ppVar3 != (passwd *)0x0) {\n          pcVar5 = ppVar3->pw_name;\n        }\n        pcVar5 = dupprintf("pid %d (%s:%s)",pid,pcVar5,pcVar6);\n      }\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (pointer_declarator "* sk_tcp_peer_info(Socket sock)" * (function_declarator "sk_tcp_peer_info(Socket sock)" identifier (parameter_list "(Socket sock)" ( (parameter_declaration "Socket sock" type_identifier identifier) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  passwd *ppVar3;\n  group *pgVar4;\n  char *pcVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  socklen_t addrlen;\n  int pid;\n  int uid;\n  int gid;\n  sockaddr_union addr;\n  char uidbuf [64];\n  char buf [46];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  addrlen = 0x80;\n  iVar2 = getpeername((int)sock[2],(sockaddr *)&addr.storage,&addrlen);\n  if (iVar2 < 0) {\n    pcVar5 = (char *)0x0;\n  }\n  else if (addr.storage.ss_family == 2) {\n    pcVar5 = inet_ntoa((in_addr)addr.sin.sin_addr.s_addr);\n    pcVar5 = dupprintf("%s:%d",pcVar5,\n                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8));\n  }\n  else if (addr.storage.ss_family == 10) {\n    pcVar5 = inet_ntop(10,addr.storage.__ss_padding + 6,buf,0x2e);\n    pcVar5 = dupprintf("[%s]:%d",pcVar5,\n                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8));\n  }\n  else {\n    pcVar5 = (char *)0x0;\n    if (addr.storage.ss_family == 1) {\n      iVar2 = so_peercred((int)sock[2],&pid,&uid,&gid);\n      if (iVar2 != 0) {\n        pcVar5 = uidbuf;\n        __sprintf_chk(pcVar5,1,0x40,"%d",uid);\n        pcVar6 = buf;\n        __sprintf_chk(pcVar6,1,0x40,"%d",gid);\n        ppVar3 = getpwuid(uid);\n        pgVar4 = getgrgid(gid);\n        if (pgVar4 != (group *)0x0) {\n          pcVar6 = pgVar4->gr_name;\n        }\n        if (ppVar3 != (passwd *)0x0) {\n          pcVar5 = ppVar3->pw_name;\n        }\n        pcVar5 = dupprintf("pid %d (%s:%s)",pid,pcVar5,pcVar6);\n      }\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "passwd *ppVar3;" type_identifier (pointer_declarator "*ppVar3" * identifier) ;) (declaration "group *pgVar4;" type_identifier (pointer_declarator "*pgVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "socklen_t addrlen;" type_identifier identifier ;) (declaration "int pid;" primitive_type identifier ;) (declaration "int uid;" primitive_type identifier ;) (declaration "int gid;" primitive_type identifier ;) (declaration "sockaddr_union addr;" type_identifier identifier ;) (declaration "char uidbuf [64];" primitive_type (array_declarator "uidbuf [64]" identifier [ number_literal ]) ;) (declaration "char buf [46];" primitive_type (array_declarator "buf [46]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "addrlen = 0x80;" (assignment_expression "addrlen = 0x80" identifier = number_literal) ;) (expression_statement "iVar2 = getpeername((int)sock[2],(sockaddr *)&addr.storage,&addrlen);" (assignment_expression "iVar2 = getpeername((int)sock[2],(sockaddr *)&addr.storage,&addrlen)" identifier = (call_expression "getpeername((int)sock[2],(sockaddr *)&addr.storage,&addrlen)" identifier (argument_list "((int)sock[2],(sockaddr *)&addr.storage,&addrlen)" ( (cast_expression "(int)sock[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "sock[2]" identifier [ number_literal ])) , (cast_expression "(sockaddr *)&addr.storage" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&addr.storage" & (field_expression "addr.storage" identifier . field_identifier))) , (pointer_expression "&addrlen" & identifier) )))) ;) (if_statement "if (iVar2 < 0) {\n    pcVar5 = (char *)0x0;\n  }\n  else if (addr.storage.ss_family == 2) {\n    pcVar5 = inet_ntoa((in_addr)addr.sin.sin_addr.s_addr);\n    pcVar5 = dupprintf("%s:%d",pcVar5,\n                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8));\n  }\n  else if (addr.storage.ss_family == 10) {\n    pcVar5 = inet_ntop(10,addr.storage.__ss_padding + 6,buf,0x2e);\n    pcVar5 = dupprintf("[%s]:%d",pcVar5,\n                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8));\n  }\n  else {\n    pcVar5 = (char *)0x0;\n    if (addr.storage.ss_family == 1) {\n      iVar2 = so_peercred((int)sock[2],&pid,&uid,&gid);\n      if (iVar2 != 0) {\n        pcVar5 = uidbuf;\n        __sprintf_chk(pcVar5,1,0x40,"%d",uid);\n        pcVar6 = buf;\n        __sprintf_chk(pcVar6,1,0x40,"%d",gid);\n        ppVar3 = getpwuid(uid);\n        pgVar4 = getgrgid(gid);\n        if (pgVar4 != (group *)0x0) {\n          pcVar6 = pgVar4->gr_name;\n        }\n        if (ppVar3 != (passwd *)0x0) {\n          pcVar5 = ppVar3->pw_name;\n        }\n        pcVar5 = dupprintf("pid %d (%s:%s)",pid,pcVar5,pcVar6);\n      }\n    }\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    pcVar5 = (char *)0x0;\n  }" { (expression_statement "pcVar5 = (char *)0x0;" (assignment_expression "pcVar5 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else if (addr.storage.ss_family == 2) {\n    pcVar5 = inet_ntoa((in_addr)addr.sin.sin_addr.s_addr);\n    pcVar5 = dupprintf("%s:%d",pcVar5,\n                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8));\n  }\n  else if (addr.storage.ss_family == 10) {\n    pcVar5 = inet_ntop(10,addr.storage.__ss_padding + 6,buf,0x2e);\n    pcVar5 = dupprintf("[%s]:%d",pcVar5,\n                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8));\n  }\n  else {\n    pcVar5 = (char *)0x0;\n    if (addr.storage.ss_family == 1) {\n      iVar2 = so_peercred((int)sock[2],&pid,&uid,&gid);\n      if (iVar2 != 0) {\n        pcVar5 = uidbuf;\n        __sprintf_chk(pcVar5,1,0x40,"%d",uid);\n        pcVar6 = buf;\n        __sprintf_chk(pcVar6,1,0x40,"%d",gid);\n        ppVar3 = getpwuid(uid);\n        pgVar4 = getgrgid(gid);\n        if (pgVar4 != (group *)0x0) {\n          pcVar6 = pgVar4->gr_name;\n        }\n        if (ppVar3 != (passwd *)0x0) {\n          pcVar5 = ppVar3->pw_name;\n        }\n        pcVar5 = dupprintf("pid %d (%s:%s)",pid,pcVar5,pcVar6);\n      }\n    }\n  }" else (if_statement "if (addr.storage.ss_family == 2) {\n    pcVar5 = inet_ntoa((in_addr)addr.sin.sin_addr.s_addr);\n    pcVar5 = dupprintf("%s:%d",pcVar5,\n                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8));\n  }\n  else if (addr.storage.ss_family == 10) {\n    pcVar5 = inet_ntop(10,addr.storage.__ss_padding + 6,buf,0x2e);\n    pcVar5 = dupprintf("[%s]:%d",pcVar5,\n                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8));\n  }\n  else {\n    pcVar5 = (char *)0x0;\n    if (addr.storage.ss_family == 1) {\n      iVar2 = so_peercred((int)sock[2],&pid,&uid,&gid);\n      if (iVar2 != 0) {\n        pcVar5 = uidbuf;\n        __sprintf_chk(pcVar5,1,0x40,"%d",uid);\n        pcVar6 = buf;\n        __sprintf_chk(pcVar6,1,0x40,"%d",gid);\n        ppVar3 = getpwuid(uid);\n        pgVar4 = getgrgid(gid);\n        if (pgVar4 != (group *)0x0) {\n          pcVar6 = pgVar4->gr_name;\n        }\n        if (ppVar3 != (passwd *)0x0) {\n          pcVar5 = ppVar3->pw_name;\n        }\n        pcVar5 = dupprintf("pid %d (%s:%s)",pid,pcVar5,pcVar6);\n      }\n    }\n  }" if (parenthesized_expression "(addr.storage.ss_family == 2)" ( (binary_expression "addr.storage.ss_family == 2" (field_expression "addr.storage.ss_family" (field_expression "addr.storage" identifier . field_identifier) . field_identifier) == number_literal) )) (compound_statement "{\n    pcVar5 = inet_ntoa((in_addr)addr.sin.sin_addr.s_addr);\n    pcVar5 = dupprintf("%s:%d",pcVar5,\n                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8));\n  }" { (expression_statement "pcVar5 = inet_ntoa((in_addr)addr.sin.sin_addr.s_addr);" (assignment_expression "pcVar5 = inet_ntoa((in_addr)addr.sin.sin_addr.s_addr)" identifier = (call_expression "inet_ntoa((in_addr)addr.sin.sin_addr.s_addr)" identifier (argument_list "((in_addr)addr.sin.sin_addr.s_addr)" ( (cast_expression "(in_addr)addr.sin.sin_addr.s_addr" ( (type_descriptor "in_addr" type_identifier) ) (field_expression "addr.sin.sin_addr.s_addr" (field_expression "addr.sin.sin_addr" (field_expression "addr.sin" identifier . field_identifier) . field_identifier) . field_identifier)) )))) ;) (expression_statement "pcVar5 = dupprintf("%s:%d",pcVar5,\n                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8));" (assignment_expression "pcVar5 = dupprintf("%s:%d",pcVar5,\n                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8))" identifier = (call_expression "dupprintf("%s:%d",pcVar5,\n                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8))" identifier (argument_list "("%s:%d",pcVar5,\n                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8))" ( (string_literal ""%s:%d"" " string_content ") , identifier , (call_expression "(uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8)" (call_expression "(uint)(ushort)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(ushort)" ( identifier ))) (argument_list "(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8)" ( (binary_expression "addr.sin.sin_port << 8 | addr.sin.sin_port >> 8" (binary_expression "addr.sin.sin_port << 8" (field_expression "addr.sin.sin_port" (field_expression "addr.sin" identifier . field_identifier) . field_identifier) << number_literal) | (binary_expression "addr.sin.sin_port >> 8" (field_expression "addr.sin.sin_port" (field_expression "addr.sin" identifier . field_identifier) . field_identifier) >> number_literal)) ))) )))) ;) }) (else_clause "else if (addr.storage.ss_family == 10) {\n    pcVar5 = inet_ntop(10,addr.storage.__ss_padding + 6,buf,0x2e);\n    pcVar5 = dupprintf("[%s]:%d",pcVar5,\n                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8));\n  }\n  else {\n    pcVar5 = (char *)0x0;\n    if (addr.storage.ss_family == 1) {\n      iVar2 = so_peercred((int)sock[2],&pid,&uid,&gid);\n      if (iVar2 != 0) {\n        pcVar5 = uidbuf;\n        __sprintf_chk(pcVar5,1,0x40,"%d",uid);\n        pcVar6 = buf;\n        __sprintf_chk(pcVar6,1,0x40,"%d",gid);\n        ppVar3 = getpwuid(uid);\n        pgVar4 = getgrgid(gid);\n        if (pgVar4 != (group *)0x0) {\n          pcVar6 = pgVar4->gr_name;\n        }\n        if (ppVar3 != (passwd *)0x0) {\n          pcVar5 = ppVar3->pw_name;\n        }\n        pcVar5 = dupprintf("pid %d (%s:%s)",pid,pcVar5,pcVar6);\n      }\n    }\n  }" else (if_statement "if (addr.storage.ss_family == 10) {\n    pcVar5 = inet_ntop(10,addr.storage.__ss_padding + 6,buf,0x2e);\n    pcVar5 = dupprintf("[%s]:%d",pcVar5,\n                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8));\n  }\n  else {\n    pcVar5 = (char *)0x0;\n    if (addr.storage.ss_family == 1) {\n      iVar2 = so_peercred((int)sock[2],&pid,&uid,&gid);\n      if (iVar2 != 0) {\n        pcVar5 = uidbuf;\n        __sprintf_chk(pcVar5,1,0x40,"%d",uid);\n        pcVar6 = buf;\n        __sprintf_chk(pcVar6,1,0x40,"%d",gid);\n        ppVar3 = getpwuid(uid);\n        pgVar4 = getgrgid(gid);\n        if (pgVar4 != (group *)0x0) {\n          pcVar6 = pgVar4->gr_name;\n        }\n        if (ppVar3 != (passwd *)0x0) {\n          pcVar5 = ppVar3->pw_name;\n        }\n        pcVar5 = dupprintf("pid %d (%s:%s)",pid,pcVar5,pcVar6);\n      }\n    }\n  }" if (parenthesized_expression "(addr.storage.ss_family == 10)" ( (binary_expression "addr.storage.ss_family == 10" (field_expression "addr.storage.ss_family" (field_expression "addr.storage" identifier . field_identifier) . field_identifier) == number_literal) )) (compound_statement "{\n    pcVar5 = inet_ntop(10,addr.storage.__ss_padding + 6,buf,0x2e);\n    pcVar5 = dupprintf("[%s]:%d",pcVar5,\n                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8));\n  }" { (expression_statement "pcVar5 = inet_ntop(10,addr.storage.__ss_padding + 6,buf,0x2e);" (assignment_expression "pcVar5 = inet_ntop(10,addr.storage.__ss_padding + 6,buf,0x2e)" identifier = (call_expression "inet_ntop(10,addr.storage.__ss_padding + 6,buf,0x2e)" identifier (argument_list "(10,addr.storage.__ss_padding + 6,buf,0x2e)" ( number_literal , (binary_expression "addr.storage.__ss_padding + 6" (field_expression "addr.storage.__ss_padding" (field_expression "addr.storage" identifier . field_identifier) . field_identifier) + number_literal) , identifier , number_literal )))) ;) (expression_statement "pcVar5 = dupprintf("[%s]:%d",pcVar5,\n                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8));" (assignment_expression "pcVar5 = dupprintf("[%s]:%d",pcVar5,\n                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8))" identifier = (call_expression "dupprintf("[%s]:%d",pcVar5,\n                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8))" identifier (argument_list "("[%s]:%d",pcVar5,\n                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8))" ( (string_literal ""[%s]:%d"" " string_content ") , identifier , (call_expression "(uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8)" (call_expression "(uint)(ushort)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(ushort)" ( identifier ))) (argument_list "(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8)" ( (binary_expression "addr.sin.sin_port << 8 | addr.sin.sin_port >> 8" (binary_expression "addr.sin.sin_port << 8" (field_expression "addr.sin.sin_port" (field_expression "addr.sin" identifier . field_identifier) . field_identifier) << number_literal) | (binary_expression "addr.sin.sin_port >> 8" (field_expression "addr.sin.sin_port" (field_expression "addr.sin" identifier . field_identifier) . field_identifier) >> number_literal)) ))) )))) ;) }) (else_clause "else {\n    pcVar5 = (char *)0x0;\n    if (addr.storage.ss_family == 1) {\n      iVar2 = so_peercred((int)sock[2],&pid,&uid,&gid);\n      if (iVar2 != 0) {\n        pcVar5 = uidbuf;\n        __sprintf_chk(pcVar5,1,0x40,"%d",uid);\n        pcVar6 = buf;\n        __sprintf_chk(pcVar6,1,0x40,"%d",gid);\n        ppVar3 = getpwuid(uid);\n        pgVar4 = getgrgid(gid);\n        if (pgVar4 != (group *)0x0) {\n          pcVar6 = pgVar4->gr_name;\n        }\n        if (ppVar3 != (passwd *)0x0) {\n          pcVar5 = ppVar3->pw_name;\n        }\n        pcVar5 = dupprintf("pid %d (%s:%s)",pid,pcVar5,pcVar6);\n      }\n    }\n  }" else (compound_statement "{\n    pcVar5 = (char *)0x0;\n    if (addr.storage.ss_family == 1) {\n      iVar2 = so_peercred((int)sock[2],&pid,&uid,&gid);\n      if (iVar2 != 0) {\n        pcVar5 = uidbuf;\n        __sprintf_chk(pcVar5,1,0x40,"%d",uid);\n        pcVar6 = buf;\n        __sprintf_chk(pcVar6,1,0x40,"%d",gid);\n        ppVar3 = getpwuid(uid);\n        pgVar4 = getgrgid(gid);\n        if (pgVar4 != (group *)0x0) {\n          pcVar6 = pgVar4->gr_name;\n        }\n        if (ppVar3 != (passwd *)0x0) {\n          pcVar5 = ppVar3->pw_name;\n        }\n        pcVar5 = dupprintf("pid %d (%s:%s)",pid,pcVar5,pcVar6);\n      }\n    }\n  }" { (expression_statement "pcVar5 = (char *)0x0;" (assignment_expression "pcVar5 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (addr.storage.ss_family == 1) {\n      iVar2 = so_peercred((int)sock[2],&pid,&uid,&gid);\n      if (iVar2 != 0) {\n        pcVar5 = uidbuf;\n        __sprintf_chk(pcVar5,1,0x40,"%d",uid);\n        pcVar6 = buf;\n        __sprintf_chk(pcVar6,1,0x40,"%d",gid);\n        ppVar3 = getpwuid(uid);\n        pgVar4 = getgrgid(gid);\n        if (pgVar4 != (group *)0x0) {\n          pcVar6 = pgVar4->gr_name;\n        }\n        if (ppVar3 != (passwd *)0x0) {\n          pcVar5 = ppVar3->pw_name;\n        }\n        pcVar5 = dupprintf("pid %d (%s:%s)",pid,pcVar5,pcVar6);\n      }\n    }" if (parenthesized_expression "(addr.storage.ss_family == 1)" ( (binary_expression "addr.storage.ss_family == 1" (field_expression "addr.storage.ss_family" (field_expression "addr.storage" identifier . field_identifier) . field_identifier) == number_literal) )) (compound_statement "{\n      iVar2 = so_peercred((int)sock[2],&pid,&uid,&gid);\n      if (iVar2 != 0) {\n        pcVar5 = uidbuf;\n        __sprintf_chk(pcVar5,1,0x40,"%d",uid);\n        pcVar6 = buf;\n        __sprintf_chk(pcVar6,1,0x40,"%d",gid);\n        ppVar3 = getpwuid(uid);\n        pgVar4 = getgrgid(gid);\n        if (pgVar4 != (group *)0x0) {\n          pcVar6 = pgVar4->gr_name;\n        }\n        if (ppVar3 != (passwd *)0x0) {\n          pcVar5 = ppVar3->pw_name;\n        }\n        pcVar5 = dupprintf("pid %d (%s:%s)",pid,pcVar5,pcVar6);\n      }\n    }" { (expression_statement "iVar2 = so_peercred((int)sock[2],&pid,&uid,&gid);" (assignment_expression "iVar2 = so_peercred((int)sock[2],&pid,&uid,&gid)" identifier = (call_expression "so_peercred((int)sock[2],&pid,&uid,&gid)" identifier (argument_list "((int)sock[2],&pid,&uid,&gid)" ( (cast_expression "(int)sock[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "sock[2]" identifier [ number_literal ])) , (pointer_expression "&pid" & identifier) , (pointer_expression "&uid" & identifier) , (pointer_expression "&gid" & identifier) )))) ;) (if_statement "if (iVar2 != 0) {\n        pcVar5 = uidbuf;\n        __sprintf_chk(pcVar5,1,0x40,"%d",uid);\n        pcVar6 = buf;\n        __sprintf_chk(pcVar6,1,0x40,"%d",gid);\n        ppVar3 = getpwuid(uid);\n        pgVar4 = getgrgid(gid);\n        if (pgVar4 != (group *)0x0) {\n          pcVar6 = pgVar4->gr_name;\n        }\n        if (ppVar3 != (passwd *)0x0) {\n          pcVar5 = ppVar3->pw_name;\n        }\n        pcVar5 = dupprintf("pid %d (%s:%s)",pid,pcVar5,pcVar6);\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        pcVar5 = uidbuf;\n        __sprintf_chk(pcVar5,1,0x40,"%d",uid);\n        pcVar6 = buf;\n        __sprintf_chk(pcVar6,1,0x40,"%d",gid);\n        ppVar3 = getpwuid(uid);\n        pgVar4 = getgrgid(gid);\n        if (pgVar4 != (group *)0x0) {\n          pcVar6 = pgVar4->gr_name;\n        }\n        if (ppVar3 != (passwd *)0x0) {\n          pcVar5 = ppVar3->pw_name;\n        }\n        pcVar5 = dupprintf("pid %d (%s:%s)",pid,pcVar5,pcVar6);\n      }" { (expression_statement "pcVar5 = uidbuf;" (assignment_expression "pcVar5 = uidbuf" identifier = identifier) ;) (expression_statement "__sprintf_chk(pcVar5,1,0x40,"%d",uid);" (call_expression "__sprintf_chk(pcVar5,1,0x40,"%d",uid)" identifier (argument_list "(pcVar5,1,0x40,"%d",uid)" ( identifier , number_literal , number_literal , (string_literal ""%d"" " string_content ") , identifier ))) ;) (expression_statement "pcVar6 = buf;" (assignment_expression "pcVar6 = buf" identifier = identifier) ;) (expression_statement "__sprintf_chk(pcVar6,1,0x40,"%d",gid);" (call_expression "__sprintf_chk(pcVar6,1,0x40,"%d",gid)" identifier (argument_list "(pcVar6,1,0x40,"%d",gid)" ( identifier , number_literal , number_literal , (string_literal ""%d"" " string_content ") , identifier ))) ;) (expression_statement "ppVar3 = getpwuid(uid);" (assignment_expression "ppVar3 = getpwuid(uid)" identifier = (call_expression "getpwuid(uid)" identifier (argument_list "(uid)" ( identifier )))) ;) (expression_statement "pgVar4 = getgrgid(gid);" (assignment_expression "pgVar4 = getgrgid(gid)" identifier = (call_expression "getgrgid(gid)" identifier (argument_list "(gid)" ( identifier )))) ;) (if_statement "if (pgVar4 != (group *)0x0) {\n          pcVar6 = pgVar4->gr_name;\n        }" if (parenthesized_expression "(pgVar4 != (group *)0x0)" ( (binary_expression "pgVar4 != (group *)0x0" identifier != (cast_expression "(group *)0x0" ( (type_descriptor "group *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pcVar6 = pgVar4->gr_name;\n        }" { (expression_statement "pcVar6 = pgVar4->gr_name;" (assignment_expression "pcVar6 = pgVar4->gr_name" identifier = (field_expression "pgVar4->gr_name" identifier -> field_identifier)) ;) })) (if_statement "if (ppVar3 != (passwd *)0x0) {\n          pcVar5 = ppVar3->pw_name;\n        }" if (parenthesized_expression "(ppVar3 != (passwd *)0x0)" ( (binary_expression "ppVar3 != (passwd *)0x0" identifier != (cast_expression "(passwd *)0x0" ( (type_descriptor "passwd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pcVar5 = ppVar3->pw_name;\n        }" { (expression_statement "pcVar5 = ppVar3->pw_name;" (assignment_expression "pcVar5 = ppVar3->pw_name" identifier = (field_expression "ppVar3->pw_name" identifier -> field_identifier)) ;) })) (expression_statement "pcVar5 = dupprintf("pid %d (%s:%s)",pid,pcVar5,pcVar6);" (assignment_expression "pcVar5 = dupprintf("pid %d (%s:%s)",pid,pcVar5,pcVar6)" identifier = (call_expression "dupprintf("pid %d (%s:%s)",pid,pcVar5,pcVar6)" identifier (argument_list "("pid %d (%s:%s)",pid,pcVar5,pcVar6)" ( (string_literal ""pid %d (%s:%s)"" " string_content ") , identifier , identifier , identifier )))) ;) })) })) }))))))) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar5;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return pcVar5;\n  }" { (return_statement "return pcVar5;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 FUN_000661b0(int param_1)\n\n{\n  int iVar1;\n  passwd *ppVar2;\n  group *pgVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  socklen_t local_130;\n  undefined4 local_12c;\n  __uid_t local_128;\n  __gid_t local_124;\n  undefined1 local_120 [8];\n  undefined1 local_118 [120];\n  char local_a0 [64];\n  char local_60 [64];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x661b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_130 = 0x80;\n  iVar1 = getpeername(*(int *)(param_1 + 8),(sockaddr *)local_120,&local_130);\n  if (iVar1 < 0) {\n    uVar5 = 0;\n  }\n  else if (local_120._0_2_ == 2) {\n    pcVar4 = inet_ntoa((in_addr)local_120._4_4_);\n    uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else if (local_120._0_2_ == 10) {\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar5;\n  }\n                    \n  FUN_0006f2a0();\n}\n\n" (function_definition "undefined4 FUN_000661b0(int param_1)\n\n{\n  int iVar1;\n  passwd *ppVar2;\n  group *pgVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  socklen_t local_130;\n  undefined4 local_12c;\n  __uid_t local_128;\n  __gid_t local_124;\n  undefined1 local_120 [8];\n  undefined1 local_118 [120];\n  char local_a0 [64];\n  char local_60 [64];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x661b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_130 = 0x80;\n  iVar1 = getpeername(*(int *)(param_1 + 8),(sockaddr *)local_120,&local_130);\n  if (iVar1 < 0) {\n    uVar5 = 0;\n  }\n  else if (local_120._0_2_ == 2) {\n    pcVar4 = inet_ntoa((in_addr)local_120._4_4_);\n    uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else if (local_120._0_2_ == 10) {\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar5;\n  }\n                    \n  FUN_0006f2a0();\n}" type_identifier (function_declarator "FUN_000661b0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  passwd *ppVar2;\n  group *pgVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  socklen_t local_130;\n  undefined4 local_12c;\n  __uid_t local_128;\n  __gid_t local_124;\n  undefined1 local_120 [8];\n  undefined1 local_118 [120];\n  char local_a0 [64];\n  char local_60 [64];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x661b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_130 = 0x80;\n  iVar1 = getpeername(*(int *)(param_1 + 8),(sockaddr *)local_120,&local_130);\n  if (iVar1 < 0) {\n    uVar5 = 0;\n  }\n  else if (local_120._0_2_ == 2) {\n    pcVar4 = inet_ntoa((in_addr)local_120._4_4_);\n    uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else if (local_120._0_2_ == 10) {\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar5;\n  }\n                    \n  FUN_0006f2a0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "passwd *ppVar2;" type_identifier (pointer_declarator "*ppVar2" * identifier) ;) (declaration "group *pgVar3;" type_identifier (pointer_declarator "*pgVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "socklen_t local_130;" type_identifier identifier ;) (declaration "undefined4 local_12c;" type_identifier identifier ;) (declaration "__uid_t local_128;" type_identifier identifier ;) (declaration "__gid_t local_124;" type_identifier identifier ;) (declaration "undefined1 local_120 [8];" type_identifier (array_declarator "local_120 [8]" identifier [ number_literal ]) ;) (declaration "undefined1 local_118 [120];" type_identifier (array_declarator "local_118 [120]" identifier [ number_literal ]) ;) (declaration "char local_a0 [64];" primitive_type (array_declarator "local_a0 [64]" identifier [ number_literal ]) ;) (declaration "char local_60 [64];" primitive_type (array_declarator "local_60 [64]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x661b9;" (assignment_expression "uStack_14 = 0x661b9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_130 = 0x80;" (assignment_expression "local_130 = 0x80" identifier = number_literal) ;) (expression_statement "iVar1 = getpeername(*(int *)(param_1 + 8),(sockaddr *)local_120,&local_130);" (assignment_expression "iVar1 = getpeername(*(int *)(param_1 + 8),(sockaddr *)local_120,&local_130)" identifier = (call_expression "getpeername(*(int *)(param_1 + 8),(sockaddr *)local_120,&local_130)" identifier (argument_list "(*(int *)(param_1 + 8),(sockaddr *)local_120,&local_130)" ( (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , (cast_expression "(sockaddr *)local_120" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (pointer_expression "&local_130" & identifier) )))) ;) (if_statement "if (iVar1 < 0) {\n    uVar5 = 0;\n  }\n  else if (local_120._0_2_ == 2) {\n    pcVar4 = inet_ntoa((in_addr)local_120._4_4_);\n    uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else if (local_120._0_2_ == 10) {\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    uVar5 = 0;\n  }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) }) (else_clause "else if (local_120._0_2_ == 2) {\n    pcVar4 = inet_ntoa((in_addr)local_120._4_4_);\n    uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else if (local_120._0_2_ == 10) {\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }" else (if_statement "if (local_120._0_2_ == 2) {\n    pcVar4 = inet_ntoa((in_addr)local_120._4_4_);\n    uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else if (local_120._0_2_ == 10) {\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }" if (parenthesized_expression "(local_120._0_2_ == 2)" ( (binary_expression "local_120._0_2_ == 2" (field_expression "local_120._0_2_" identifier . field_identifier) == number_literal) )) (compound_statement "{\n    pcVar4 = inet_ntoa((in_addr)local_120._4_4_);\n    uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }" { (expression_statement "pcVar4 = inet_ntoa((in_addr)local_120._4_4_);" (assignment_expression "pcVar4 = inet_ntoa((in_addr)local_120._4_4_)" identifier = (call_expression "inet_ntoa((in_addr)local_120._4_4_)" identifier (argument_list "((in_addr)local_120._4_4_)" ( (cast_expression "(in_addr)local_120._4_4_" ( (type_descriptor "in_addr" type_identifier) ) (field_expression "local_120._4_4_" identifier . field_identifier)) )))) ;) (expression_statement "uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);" (assignment_expression "uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8)" identifier = (call_expression "FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8)" identifier (argument_list "("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8)" ( (string_literal ""%s:%d"" " string_content ") , identifier , (binary_expression "local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8" (binary_expression "local_120._2_2_ << 8" (field_expression "local_120._2_2_" identifier . field_identifier) << number_literal) | (binary_expression "(ushort)local_120._2_2_ >> 8" (cast_expression "(ushort)local_120._2_2_" ( (type_descriptor "ushort" type_identifier) ) (field_expression "local_120._2_2_" identifier . field_identifier)) >> number_literal)) )))) ;) }) (else_clause "else if (local_120._0_2_ == 10) {\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }" else (if_statement "if (local_120._0_2_ == 10) {\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }" if (parenthesized_expression "(local_120._0_2_ == 10)" ( (binary_expression "local_120._0_2_ == 10" (field_expression "local_120._0_2_" identifier . field_identifier) == number_literal) )) (compound_statement "{\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }" { (expression_statement "pcVar4 = inet_ntop(10,local_118,local_60,0x2e);" (assignment_expression "pcVar4 = inet_ntop(10,local_118,local_60,0x2e)" identifier = (call_expression "inet_ntop(10,local_118,local_60,0x2e)" identifier (argument_list "(10,local_118,local_60,0x2e)" ( number_literal , identifier , identifier , number_literal )))) ;) (expression_statement "uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);" (assignment_expression "uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8)" identifier = (call_expression "FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8)" identifier (argument_list "("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8)" ( (string_literal ""[%s]:%d"" " string_content ") , identifier , (binary_expression "local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8" (binary_expression "local_120._2_2_ << 8" (field_expression "local_120._2_2_" identifier . field_identifier) << number_literal) | (binary_expression "(ushort)local_120._2_2_ >> 8" (cast_expression "(ushort)local_120._2_2_" ( (type_descriptor "ushort" type_identifier) ) (field_expression "local_120._2_2_" identifier . field_identifier)) >> number_literal)) )))) ;) }) (else_clause "else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }" else (compound_statement "{\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (if_statement "if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }" if (parenthesized_expression "(local_120._0_2_ == 1)" ( (binary_expression "local_120._0_2_ == 1" (field_expression "local_120._0_2_" identifier . field_identifier) == number_literal) )) (compound_statement "{\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }" { (expression_statement "iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);" (assignment_expression "iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124)" identifier = (call_expression "FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124)" identifier (argument_list "(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124)" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , (pointer_expression "&local_12c" & identifier) , (pointer_expression "&local_128" & identifier) , (pointer_expression "&local_124" & identifier) )))) ;) (if_statement "if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }" { (expression_statement "pcVar4 = local_a0;" (assignment_expression "pcVar4 = local_a0" identifier = identifier) ;) (expression_statement "__sprintf_chk(pcVar4,1,0x40,"%d",local_128);" (call_expression "__sprintf_chk(pcVar4,1,0x40,"%d",local_128)" identifier (argument_list "(pcVar4,1,0x40,"%d",local_128)" ( identifier , number_literal , number_literal , (string_literal ""%d"" " string_content ") , identifier ))) ;) (expression_statement "pcVar6 = local_60;" (assignment_expression "pcVar6 = local_60" identifier = identifier) ;) (expression_statement "__sprintf_chk(pcVar6,1,0x40,"%d",local_124);" (call_expression "__sprintf_chk(pcVar6,1,0x40,"%d",local_124)" identifier (argument_list "(pcVar6,1,0x40,"%d",local_124)" ( identifier , number_literal , number_literal , (string_literal ""%d"" " string_content ") , identifier ))) ;) (expression_statement "ppVar2 = getpwuid(local_128);" (assignment_expression "ppVar2 = getpwuid(local_128)" identifier = (call_expression "getpwuid(local_128)" identifier (argument_list "(local_128)" ( identifier )))) ;) (expression_statement "pgVar3 = getgrgid(local_124);" (assignment_expression "pgVar3 = getgrgid(local_124)" identifier = (call_expression "getgrgid(local_124)" identifier (argument_list "(local_124)" ( identifier )))) ;) (if_statement "if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }" if (parenthesized_expression "(pgVar3 != (group *)0x0)" ( (binary_expression "pgVar3 != (group *)0x0" identifier != (cast_expression "(group *)0x0" ( (type_descriptor "group *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pcVar6 = pgVar3->gr_name;\n        }" { (expression_statement "pcVar6 = pgVar3->gr_name;" (assignment_expression "pcVar6 = pgVar3->gr_name" identifier = (field_expression "pgVar3->gr_name" identifier -> field_identifier)) ;) })) (if_statement "if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }" if (parenthesized_expression "(ppVar2 != (passwd *)0x0)" ( (binary_expression "ppVar2 != (passwd *)0x0" identifier != (cast_expression "(passwd *)0x0" ( (type_descriptor "passwd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pcVar4 = ppVar2->pw_name;\n        }" { (expression_statement "pcVar4 = ppVar2->pw_name;" (assignment_expression "pcVar4 = ppVar2->pw_name" identifier = (field_expression "ppVar2->pw_name" identifier -> field_identifier)) ;) })) (expression_statement "uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);" (assignment_expression "uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6)" identifier = (call_expression "FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6)" identifier (argument_list "("pid %d (%s:%s)",local_12c,pcVar4,pcVar6)" ( (string_literal ""pid %d (%s:%s)"" " string_content ") , identifier , identifier , identifier )))) ;) })) })) }))))))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar5;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar5;\n  }" { (return_statement "return uVar5;" return identifier ;) })) (expression_statement "FUN_0006f2a0();" (call_expression "FUN_0006f2a0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) (field_expression IDENT . field_identifier)) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , (binary_expression (binary_expression (field_expression IDENT . field_identifier) << LIT) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) (field_expression IDENT . field_identifier)) >> LIT)) )))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , (binary_expression (binary_expression (field_expression IDENT . field_identifier) << LIT) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) (field_expression IDENT . field_identifier)) >> LIT)) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression & IDENT) , (pointer_expression & IDENT) , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT , (string_literal " string_content ") , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT , (string_literal " string_content ") , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , IDENT , IDENT )))) ;) })) })) }))))))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 FUN_000661b0(int param_1)\n\n{\n  int iVar1;\n  passwd *ppVar2;\n  group *pgVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  socklen_t local_130;\n  undefined4 local_12c;\n  __uid_t local_128;\n  __gid_t local_124;\n  undefined1 local_120 [8];\n  undefined1 local_118 [120];\n  char local_a0 [64];\n  char local_60 [64];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x661b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_130 = 0x80;\n  iVar1 = getpeername(*(int *)(param_1 + 8),(sockaddr *)local_120,&local_130);\n  if (iVar1 < 0) {\n    uVar5 = 0;\n  }\n  else if (local_120._0_2_ == 2) {\n    pcVar4 = inet_ntoa((in_addr)local_120._4_4_);\n    uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else if (local_120._0_2_ == 10) {\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar5;\n  }\n                    \n  FUN_0006f2a0();\n}" (type_identifier "undefined4") (function_declarator "FUN_000661b0(int param_1)" (identifier "FUN_000661b0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  passwd *ppVar2;\n  group *pgVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  socklen_t local_130;\n  undefined4 local_12c;\n  __uid_t local_128;\n  __gid_t local_124;\n  undefined1 local_120 [8];\n  undefined1 local_118 [120];\n  char local_a0 [64];\n  char local_60 [64];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x661b9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_130 = 0x80;\n  iVar1 = getpeername(*(int *)(param_1 + 8),(sockaddr *)local_120,&local_130);\n  if (iVar1 < 0) {\n    uVar5 = 0;\n  }\n  else if (local_120._0_2_ == 2) {\n    pcVar4 = inet_ntoa((in_addr)local_120._4_4_);\n    uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else if (local_120._0_2_ == 10) {\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar5;\n  }\n                    \n  FUN_0006f2a0();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "passwd *ppVar2;" (type_identifier "passwd") (pointer_declarator "*ppVar2" (* "*") (identifier "ppVar2")) (; ";")) (declaration "group *pgVar3;" (type_identifier "group") (pointer_declarator "*pgVar3" (* "*") (identifier "pgVar3")) (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "socklen_t local_130;" (type_identifier "socklen_t") (identifier "local_130") (; ";")) (declaration "undefined4 local_12c;" (type_identifier "undefined4") (identifier "local_12c") (; ";")) (declaration "__uid_t local_128;" (type_identifier "__uid_t") (identifier "local_128") (; ";")) (declaration "__gid_t local_124;" (type_identifier "__gid_t") (identifier "local_124") (; ";")) (declaration "undefined1 local_120 [8];" (type_identifier "undefined1") (array_declarator "local_120 [8]" (identifier "local_120") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "undefined1 local_118 [120];" (type_identifier "undefined1") (array_declarator "local_118 [120]" (identifier "local_118") ([ "[") (number_literal "120") (] "]")) (; ";")) (declaration "char local_a0 [64];" (primitive_type "char") (array_declarator "local_a0 [64]" (identifier "local_a0") ([ "[") (number_literal "64") (] "]")) (; ";")) (declaration "char local_60 [64];" (primitive_type "char") (array_declarator "local_60 [64]" (identifier "local_60") ([ "[") (number_literal "64") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x661b9;" (assignment_expression "uStack_14 = 0x661b9" (identifier "uStack_14") (= "=") (number_literal "0x661b9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_130 = 0x80;" (assignment_expression "local_130 = 0x80" (identifier "local_130") (= "=") (number_literal "0x80")) (; ";")) (expression_statement "iVar1 = getpeername(*(int *)(param_1 + 8),(sockaddr *)local_120,&local_130);" (assignment_expression "iVar1 = getpeername(*(int *)(param_1 + 8),(sockaddr *)local_120,&local_130)" (identifier "iVar1") (= "=") (call_expression "getpeername(*(int *)(param_1 + 8),(sockaddr *)local_120,&local_130)" (identifier "getpeername") (argument_list "(*(int *)(param_1 + 8),(sockaddr *)local_120,&local_130)" (( "(") (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (cast_expression "(sockaddr *)local_120" (( "(") (type_descriptor "sockaddr *" (type_identifier "sockaddr") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_120")) (, ",") (pointer_expression "&local_130" (& "&") (identifier "local_130")) () ")")))) (; ";")) (if_statement "if (iVar1 < 0) {\n    uVar5 = 0;\n  }\n  else if (local_120._0_2_ == 2) {\n    pcVar4 = inet_ntoa((in_addr)local_120._4_4_);\n    uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else if (local_120._0_2_ == 10) {\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    uVar5 = 0;\n  }" ({ "{") (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else if (local_120._0_2_ == 2) {\n    pcVar4 = inet_ntoa((in_addr)local_120._4_4_);\n    uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else if (local_120._0_2_ == 10) {\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }" (else "else") (if_statement "if (local_120._0_2_ == 2) {\n    pcVar4 = inet_ntoa((in_addr)local_120._4_4_);\n    uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else if (local_120._0_2_ == 10) {\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }" (if "if") (parenthesized_expression "(local_120._0_2_ == 2)" (( "(") (binary_expression "local_120._0_2_ == 2" (field_expression "local_120._0_2_" (identifier "local_120") (. ".") (field_identifier "_0_2_")) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    pcVar4 = inet_ntoa((in_addr)local_120._4_4_);\n    uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }" ({ "{") (expression_statement "pcVar4 = inet_ntoa((in_addr)local_120._4_4_);" (assignment_expression "pcVar4 = inet_ntoa((in_addr)local_120._4_4_)" (identifier "pcVar4") (= "=") (call_expression "inet_ntoa((in_addr)local_120._4_4_)" (identifier "inet_ntoa") (argument_list "((in_addr)local_120._4_4_)" (( "(") (cast_expression "(in_addr)local_120._4_4_" (( "(") (type_descriptor "in_addr" (type_identifier "in_addr")) () ")") (field_expression "local_120._4_4_" (identifier "local_120") (. ".") (field_identifier "_4_4_"))) () ")")))) (; ";")) (expression_statement "uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);" (assignment_expression "uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8)" (identifier "uVar5") (= "=") (call_expression "FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8)" (identifier "FUN_0001b030") (argument_list "("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8)" (( "(") (string_literal ""%s:%d"" (" """) (string_content "%s:%d") (" """)) (, ",") (identifier "pcVar4") (, ",") (binary_expression "local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8" (binary_expression "local_120._2_2_ << 8" (field_expression "local_120._2_2_" (identifier "local_120") (. ".") (field_identifier "_2_2_")) (<< "<<") (number_literal "8")) (| "|") (binary_expression "(ushort)local_120._2_2_ >> 8" (cast_expression "(ushort)local_120._2_2_" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (field_expression "local_120._2_2_" (identifier "local_120") (. ".") (field_identifier "_2_2_"))) (>> ">>") (number_literal "8"))) () ")")))) (; ";")) (} "}")) (else_clause "else if (local_120._0_2_ == 10) {\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }" (else "else") (if_statement "if (local_120._0_2_ == 10) {\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }\n  else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }" (if "if") (parenthesized_expression "(local_120._0_2_ == 10)" (( "(") (binary_expression "local_120._0_2_ == 10" (field_expression "local_120._0_2_" (identifier "local_120") (. ".") (field_identifier "_0_2_")) (== "==") (number_literal "10")) () ")")) (compound_statement "{\n    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);\n    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);\n  }" ({ "{") (expression_statement "pcVar4 = inet_ntop(10,local_118,local_60,0x2e);" (assignment_expression "pcVar4 = inet_ntop(10,local_118,local_60,0x2e)" (identifier "pcVar4") (= "=") (call_expression "inet_ntop(10,local_118,local_60,0x2e)" (identifier "inet_ntop") (argument_list "(10,local_118,local_60,0x2e)" (( "(") (number_literal "10") (, ",") (identifier "local_118") (, ",") (identifier "local_60") (, ",") (number_literal "0x2e") () ")")))) (; ";")) (expression_statement "uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);" (assignment_expression "uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8)" (identifier "uVar5") (= "=") (call_expression "FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8)" (identifier "FUN_0001b030") (argument_list "("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8)" (( "(") (string_literal ""[%s]:%d"" (" """) (string_content "[%s]:%d") (" """)) (, ",") (identifier "pcVar4") (, ",") (binary_expression "local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8" (binary_expression "local_120._2_2_ << 8" (field_expression "local_120._2_2_" (identifier "local_120") (. ".") (field_identifier "_2_2_")) (<< "<<") (number_literal "8")) (| "|") (binary_expression "(ushort)local_120._2_2_ >> 8" (cast_expression "(ushort)local_120._2_2_" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (field_expression "local_120._2_2_" (identifier "local_120") (. ".") (field_identifier "_2_2_"))) (>> ">>") (number_literal "8"))) () ")")))) (; ";")) (} "}")) (else_clause "else {\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }" (else "else") (compound_statement "{\n    uVar5 = 0;\n    if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }\n  }" ({ "{") (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (if_statement "if (local_120._0_2_ == 1) {\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }" (if "if") (parenthesized_expression "(local_120._0_2_ == 1)" (( "(") (binary_expression "local_120._0_2_ == 1" (field_expression "local_120._0_2_" (identifier "local_120") (. ".") (field_identifier "_0_2_")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);\n      if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }\n    }" ({ "{") (expression_statement "iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);" (assignment_expression "iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124)" (identifier "iVar1") (= "=") (call_expression "FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124)" (identifier "FUN_00068ae0") (argument_list "(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (pointer_expression "&local_12c" (& "&") (identifier "local_12c")) (, ",") (pointer_expression "&local_128" (& "&") (identifier "local_128")) (, ",") (pointer_expression "&local_124" (& "&") (identifier "local_124")) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        pcVar4 = local_a0;\n        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);\n        pcVar6 = local_60;\n        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);\n        ppVar2 = getpwuid(local_128);\n        pgVar3 = getgrgid(local_124);\n        if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }\n        if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }\n        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);\n      }" ({ "{") (expression_statement "pcVar4 = local_a0;" (assignment_expression "pcVar4 = local_a0" (identifier "pcVar4") (= "=") (identifier "local_a0")) (; ";")) (expression_statement "__sprintf_chk(pcVar4,1,0x40,"%d",local_128);" (call_expression "__sprintf_chk(pcVar4,1,0x40,"%d",local_128)" (identifier "__sprintf_chk") (argument_list "(pcVar4,1,0x40,"%d",local_128)" (( "(") (identifier "pcVar4") (, ",") (number_literal "1") (, ",") (number_literal "0x40") (, ",") (string_literal ""%d"" (" """) (string_content "%d") (" """)) (, ",") (identifier "local_128") () ")"))) (; ";")) (expression_statement "pcVar6 = local_60;" (assignment_expression "pcVar6 = local_60" (identifier "pcVar6") (= "=") (identifier "local_60")) (; ";")) (expression_statement "__sprintf_chk(pcVar6,1,0x40,"%d",local_124);" (call_expression "__sprintf_chk(pcVar6,1,0x40,"%d",local_124)" (identifier "__sprintf_chk") (argument_list "(pcVar6,1,0x40,"%d",local_124)" (( "(") (identifier "pcVar6") (, ",") (number_literal "1") (, ",") (number_literal "0x40") (, ",") (string_literal ""%d"" (" """) (string_content "%d") (" """)) (, ",") (identifier "local_124") () ")"))) (; ";")) (expression_statement "ppVar2 = getpwuid(local_128);" (assignment_expression "ppVar2 = getpwuid(local_128)" (identifier "ppVar2") (= "=") (call_expression "getpwuid(local_128)" (identifier "getpwuid") (argument_list "(local_128)" (( "(") (identifier "local_128") () ")")))) (; ";")) (expression_statement "pgVar3 = getgrgid(local_124);" (assignment_expression "pgVar3 = getgrgid(local_124)" (identifier "pgVar3") (= "=") (call_expression "getgrgid(local_124)" (identifier "getgrgid") (argument_list "(local_124)" (( "(") (identifier "local_124") () ")")))) (; ";")) (if_statement "if (pgVar3 != (group *)0x0) {\n          pcVar6 = pgVar3->gr_name;\n        }" (if "if") (parenthesized_expression "(pgVar3 != (group *)0x0)" (( "(") (binary_expression "pgVar3 != (group *)0x0" (identifier "pgVar3") (!= "!=") (cast_expression "(group *)0x0" (( "(") (type_descriptor "group *" (type_identifier "group") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          pcVar6 = pgVar3->gr_name;\n        }" ({ "{") (expression_statement "pcVar6 = pgVar3->gr_name;" (assignment_expression "pcVar6 = pgVar3->gr_name" (identifier "pcVar6") (= "=") (field_expression "pgVar3->gr_name" (identifier "pgVar3") (-> "->") (field_identifier "gr_name"))) (; ";")) (} "}"))) (if_statement "if (ppVar2 != (passwd *)0x0) {\n          pcVar4 = ppVar2->pw_name;\n        }" (if "if") (parenthesized_expression "(ppVar2 != (passwd *)0x0)" (( "(") (binary_expression "ppVar2 != (passwd *)0x0" (identifier "ppVar2") (!= "!=") (cast_expression "(passwd *)0x0" (( "(") (type_descriptor "passwd *" (type_identifier "passwd") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          pcVar4 = ppVar2->pw_name;\n        }" ({ "{") (expression_statement "pcVar4 = ppVar2->pw_name;" (assignment_expression "pcVar4 = ppVar2->pw_name" (identifier "pcVar4") (= "=") (field_expression "ppVar2->pw_name" (identifier "ppVar2") (-> "->") (field_identifier "pw_name"))) (; ";")) (} "}"))) (expression_statement "uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);" (assignment_expression "uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6)" (identifier "uVar5") (= "=") (call_expression "FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6)" (identifier "FUN_0001b030") (argument_list "("pid %d (%s:%s)",local_12c,pcVar4,pcVar6)" (( "(") (string_literal ""pid %d (%s:%s)"" (" """) (string_content "pid %d (%s:%s)") (" """)) (, ",") (identifier "local_12c") (, ",") (identifier "pcVar4") (, ",") (identifier "pcVar6") () ")")))) (; ";")) (} "}"))) (} "}"))) (} "}")))))))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar5;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return uVar5;\n  }" ({ "{") (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}"))) (expression_statement "FUN_0006f2a0();" (call_expression "FUN_0006f2a0()" (identifier "FUN_0006f2a0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

char * function_1(type_1 sock)

{
  int var_13;
  int var_3;
  type_2 *var_12;
  type_3 *var_11;
  char *pcVar5;
  char *pcVar6;
  int var_1;
  type_4 addrlen;
  int pid;
  int uid;
  int gid;
  type_5 addr;
  char uidbuf [64];
  char buf [46];
  
  var_13 = *(int *)(var_1 + 0x14);
  addrlen = 0x80;
  var_3 = var_2((int)sock[2],(type_6 *)&addr.storage,&addrlen);
  if (var_3 < 0) {
    pcVar5 = (char *)0x0;
  }
  else if (addr.storage.ss_family == 2) {
    pcVar5 = var_4((type_7)addr.sin.sin_addr.s_addr);
    pcVar5 = var_5("%s:%d",pcVar5,
                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8));
  }
  else if (addr.storage.ss_family == 10) {
    pcVar5 = var_6(10,addr.storage.__ss_padding + 6,buf,0x2e);
    pcVar5 = var_5("[%s]:%d",pcVar5,
                       (uint)(ushort)(addr.sin.sin_port << 8 | addr.sin.sin_port >> 8));
  }
  else {
    pcVar5 = (char *)0x0;
    if (addr.storage.ss_family == 1) {
      var_3 = var_7((int)sock[2],&pid,&uid,&gid);
      if (var_3 != 0) {
        pcVar5 = uidbuf;
        var_8(pcVar5,1,0x40,"%d",uid);
        pcVar6 = buf;
        var_8(pcVar6,1,0x40,"%d",gid);
        var_12 = var_9(uid);
        var_11 = var_10(gid);
        if (var_11 != (type_3 *)0x0) {
          pcVar6 = var_11->gr_name;
        }
        if (var_12 != (type_2 *)0x0) {
          pcVar5 = var_12->pw_name;
        }
        pcVar5 = var_5("pid %d (%s:%s)",pid,pcVar5,pcVar6);
      }
    }
  }
  if (var_13 == *(int *)(var_1 + 0x14)) {
    return pcVar5;
  }
                    /* WARNING: Subroutine does not return */
  var_14();
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier)) value: (field_expression argument: (identifier) field: (field_identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (identifier) (binary_expression left: (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (field_expression argument: (identifier) field: (field_identifier))) right: (number_literal)))))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (identifier) (binary_expression left: (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (field_expression argument: (identifier) field: (field_identifier))) right: (number_literal)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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)) (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal) (string_literal (string_content)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal) (string_literal (string_content)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (identifier) (identifier) (identifier)))))))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (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))))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

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

undefined4 MASKED(int param_1)

{
  int iVar1;
  passwd *ppVar2;
  group *pgVar3;
  char *pcVar4;
  undefined4 uVar5;
  char *pcVar6;
  int in_GS_OFFSET;
  socklen_t local_130;
  undefined4 local_12c;
  __uid_t local_128;
  __gid_t local_124;
  undefined1 local_120 [8];
  undefined1 local_118 [120];
  char local_a0 [64];
  char local_60 [64];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x661b9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_130 = 0x80;
  iVar1 = getpeername(*(int *)(param_1 + 8),(sockaddr *)local_120,&local_130);
  if (iVar1 < 0) {
    uVar5 = 0;
  }
  else if (local_120._0_2_ == 2) {
    pcVar4 = inet_ntoa((in_addr)local_120._4_4_);
    uVar5 = FUN_0001b030("%s:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);
  }
  else if (local_120._0_2_ == 10) {
    pcVar4 = inet_ntop(10,local_118,local_60,0x2e);
    uVar5 = FUN_0001b030("[%s]:%d",pcVar4,local_120._2_2_ << 8 | (ushort)local_120._2_2_ >> 8);
  }
  else {
    uVar5 = 0;
    if (local_120._0_2_ == 1) {
      iVar1 = FUN_00068ae0(*(undefined4 *)(param_1 + 8),&local_12c,&local_128,&local_124);
      if (iVar1 != 0) {
        pcVar4 = local_a0;
        __sprintf_chk(pcVar4,1,0x40,"%d",local_128);
        pcVar6 = local_60;
        __sprintf_chk(pcVar6,1,0x40,"%d",local_124);
        ppVar2 = getpwuid(local_128);
        pgVar3 = getgrgid(local_124);
        if (pgVar3 != (group *)0x0) {
          pcVar6 = pgVar3->gr_name;
        }
        if (ppVar2 != (passwd *)0x0) {
          pcVar4 = ppVar2->pw_name;
        }
        uVar5 = FUN_0001b030("pid %d (%s:%s)",local_12c,pcVar4,pcVar6);
      }
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar5;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f2a0();
}

