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

void * sk_getxdmdata(void *sock,int *lenp)

{
  int iVar1;
  __pid_t _Var2;
  undefined4 *puVar3;
  int in_GS_OFFSET;
  socklen_t addrlen;
  sockaddr_union u;
  int local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x64f77;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
                    /* WARNING: Load size is inaccurate */
  if (*sock == &tcp_fn_table) {
    addrlen = 0x80;
    iVar1 = getsockname(*(int *)((int)sock + 8),(sockaddr *)&u.storage,&addrlen);
    if (-1 < iVar1) {
      if (u.storage.ss_family == 2) {
        *lenp = 6;
        puVar3 = (undefined4 *)safemalloc(6,1);
        *(char *)puVar3 = u.sin.sin_addr.s_addr.s_addr;
        *(char *)((int)puVar3 + 1) = SUB41(u.sin.sin_addr.s_addr,1);
        *(char *)((int)puVar3 + 2) = SUB41(u.sin.sin_addr.s_addr,2);
        *(char *)((int)puVar3 + 3) = SUB41(u.sin.sin_addr.s_addr,3);
        *(in_port_t *)(puVar3 + 1) = u.sin.sin_port;
        goto LAB_00064ff0;
      }
      if (u.storage.ss_family == 10) {
        *lenp = 6;
        puVar3 = (undefined4 *)safemalloc(6,1);
        if ((u._8_4_ == 0 && u._12_4_ == 0) && (u._16_4_ == -0x10000)) {
          *puVar3 = u._20_4_;
          *(in_port_t *)(puVar3 + 1) = u.sin.sin_port;
        }
        else {
          *puVar3 = 0;
          *(undefined2 *)(puVar3 + 1) = 0;
        }
        goto LAB_00064ff0;
      }
      if (u.storage.ss_family == 1) {
        *lenp = 6;
        puVar3 = (undefined4 *)safemalloc(6,1);
        *(char *)puVar3 = (char)(sk_getxdmdata::unix_addr >> 0x18);
        *(char *)((int)puVar3 + 1) = (char)(sk_getxdmdata::unix_addr - 1 >> 0x10);
        *(char *)((int)puVar3 + 2) = (char)(sk_getxdmdata::unix_addr - 2 >> 8);
        *(char *)((int)puVar3 + 3) = (char)sk_getxdmdata::unix_addr + -3;
        sk_getxdmdata::unix_addr = sk_getxdmdata::unix_addr - 4;
        _Var2 = getpid();
        *(char *)(puVar3 + 1) = (char)((uint)_Var2 >> 8);
        _Var2 = getpid();
        *(char *)((int)puVar3 + 5) = (char)_Var2;
        goto LAB_00064ff0;
      }
    }
  }
  puVar3 = (undefined4 *)0x0;
LAB_00064ff0:
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return puVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

char * FUN_00064f70(int *param_1,undefined4 *param_2)

{
  int iVar1;
  __pid_t _Var2;
  char *pcVar3;
  int in_GS_OFFSET;
  socklen_t local_94;
  sockaddr local_90;
  int local_80;
  undefined4 local_7c;
  int local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x64f77;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if ((undefined **)*param_1 == &PTR_FUN_000a5240) {
    local_94 = 0x80;
    iVar1 = getsockname(param_1[2],&local_90,&local_94);
    if (-1 < iVar1) {
      if (local_90.sa_family == 2) {
        *param_2 = 6;
        pcVar3 = (char *)FUN_0001c990(6,1);
        *pcVar3 = (char)local_90.sa_data._2_4_;
        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);
        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);
        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);
        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;
        goto LAB_00064ff0;
      }
      if (local_90.sa_family == 10) {
        *param_2 = 6;
        pcVar3 = (char *)FUN_0001c990(6,1);
        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))
        {
          *(undefined4 *)pcVar3 = local_7c;
          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;
        }
        else {
          pcVar3[0] = '\0';
          pcVar3[1] = '\0';
          pcVar3[2] = '\0';
          pcVar3[3] = '\0';
          pcVar3[4] = '\0';
          pcVar3[5] = '\0';
        }
        goto LAB_00064ff0;
      }
      if (local_90.sa_family == 1) {
        *param_2 = 6;
        pcVar3 = (char *)FUN_0001c990(6,1);
        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);
        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);
        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);
        pcVar3[3] = (char)DAT_000a5230 + -3;
        DAT_000a5230 = DAT_000a5230 + -4;
        _Var2 = getpid();
        pcVar3[4] = (char)((uint)_Var2 >> 8);
        _Var2 = getpid();
        pcVar3[5] = (char)_Var2;
        goto LAB_00064ff0;
      }
    }
  }
  pcVar3 = (char *)0x0;
LAB_00064ff0:
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return pcVar3;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006dad0();
}


PUSH ESI
PUSH EBX
CALL 0x00015fa0
ADD EBX,0x3fdf9
SUB ESP,0x94
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x8c],ECX
XOR ECX,ECX
MOV EAX,dword ptr [ESP + 0xa0]
MOV ESI,dword ptr [ESP + 0xa4]
LEA EDX,[EBX + 0x4d0]
CMP dword ptr [EAX],EDX
JNZ 0x00064fee
MOV dword ptr [ESP + 0x8],0x80
SUB ESP,0x4
LEA EDX,[ESP + 0xc]
PUSH EDX
LEA EDX,[ESP + 0x14]
PUSH EDX
PUSH dword ptr [EAX + 0x8]
CALL 0x00014690
ADD ESP,0x10
TEST EAX,EAX
JS 0x00064fee
MOVZX EAX,word ptr [ESP + 0xc]
CMP AX,0x2
JZ 0x000650a8
CMP AX,0xa
JZ 0x00065068
CMP AX,0x1
JZ 0x00065010
XOR ESI,ESI
MOV ECX,dword ptr [ESP + 0x8c]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x0006510a
ADD ESP,0x94
POP EBX
POP ESI
RET
SUB ESP,0x8
MOV dword ptr [ESI],0x6
PUSH 0x1
PUSH 0x6
CALL 0x0001c990
MOV ESI,EAX
MOV EAX,dword ptr [EBX + 0x4c0]
MOV EDX,EAX
SHR EDX,0x18
MOV byte ptr [ESI],DL
LEA EDX,[EAX + -0x1]
SHR EDX,0x10
MOV byte ptr [ESI + 0x1],DL
LEA EDX,[EAX + -0x2]
MOV byte ptr [ESI + 0x2],DH
LEA EDX,[EAX + -0x4]
SUB EAX,0x3
MOV byte ptr [ESI + 0x3],AL
MOV dword ptr [EBX + 0x4c0],EDX
CALL 0x00014300
MOV byte ptr [ESI + 0x4],AH
CALL 0x00014300
ADD ESP,0x10
MOV byte ptr [ESI + 0x5],AL
JMP 0x00064ff0
SUB ESP,0x8
MOV dword ptr [ESI],0x6
PUSH 0x1
PUSH 0x6
CALL 0x0001c990
ADD ESP,0x10
MOV ESI,EAX
MOV EAX,dword ptr [ESP + 0x14]
OR EAX,dword ptr [ESP + 0x18]
JNZ 0x00065093
CMP dword ptr [ESP + 0x1c],0xffff0000
JZ 0x000650f6
XOR EAX,EAX
MOV dword ptr [ESI],0x0
MOV word ptr [ESI + 0x4],AX
JMP 0x00064ff0
SUB ESP,0x8
MOV dword ptr [ESI],0x6
PUSH 0x1
PUSH 0x6
CALL 0x0001c990
MOV ESI,EAX
MOV EAX,dword ptr [ESP + 0x20]
BSWAP EAX
SHR EAX,0x18
MOV byte ptr [ESI],AL
MOV EAX,dword ptr [ESP + 0x20]
BSWAP EAX
SHR EAX,0x10
MOV byte ptr [ESI + 0x1],AL
MOV EAX,dword ptr [ESP + 0x20]
BSWAP EAX
MOV byte ptr [ESI + 0x2],AH
MOV EAX,dword ptr [ESP + 0x20]
BSWAP EAX
MOV byte ptr [ESI + 0x3],AL
MOVZX EAX,word ptr [ESP + 0x1e]
ADD ESP,0x10
MOV word ptr [ESI + 0x4],AX
JMP 0x00064ff0
MOV EAX,dword ptr [ESP + 0x20]
MOV dword ptr [ESI],EAX
MOVZX EAX,word ptr [ESP + 0xe]
MOV word ptr [ESI + 0x4],AX
JMP 0x00064ff0
CALL 0x0006dad0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * FUN_00064f70(int *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  __pid_t _Var2;\n  char *pcVar3;\n  int in_GS_OFFSET;\n  socklen_t local_94;\n  sockaddr local_90;\n  int local_80;\n  undefined4 local_7c;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x64f77;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((undefined **)*param_1 == &PTR_FUN_000a5240) {\n    local_94 = 0x80;\n    iVar1 = getsockname(param_1[2],&local_90,&local_94);\n    if (-1 < iVar1) {\n      if (local_90.sa_family == 2) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 10) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 1) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }\n  }\n  pcVar3 = (char *)0x0;\nLAB_00064ff0:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006dad0();\n}\n\n" comment (function_definition "char * FUN_00064f70(int *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  __pid_t _Var2;\n  char *pcVar3;\n  int in_GS_OFFSET;\n  socklen_t local_94;\n  sockaddr local_90;\n  int local_80;\n  undefined4 local_7c;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x64f77;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((undefined **)*param_1 == &PTR_FUN_000a5240) {\n    local_94 = 0x80;\n    iVar1 = getsockname(param_1[2],&local_90,&local_94);\n    if (-1 < iVar1) {\n      if (local_90.sa_family == 2) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 10) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 1) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }\n  }\n  pcVar3 = (char *)0x0;\nLAB_00064ff0:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006dad0();\n}" primitive_type (pointer_declarator "* FUN_00064f70(int *param_1,undefined4 *param_2)" * (function_declarator "FUN_00064f70(int *param_1,undefined4 *param_2)" identifier (parameter_list "(int *param_1,undefined4 *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  __pid_t _Var2;\n  char *pcVar3;\n  int in_GS_OFFSET;\n  socklen_t local_94;\n  sockaddr local_90;\n  int local_80;\n  undefined4 local_7c;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x64f77;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((undefined **)*param_1 == &PTR_FUN_000a5240) {\n    local_94 = 0x80;\n    iVar1 = getsockname(param_1[2],&local_90,&local_94);\n    if (-1 < iVar1) {\n      if (local_90.sa_family == 2) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 10) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 1) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }\n  }\n  pcVar3 = (char *)0x0;\nLAB_00064ff0:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006dad0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "__pid_t _Var2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "socklen_t local_94;" type_identifier identifier ;) (declaration "sockaddr local_90;" type_identifier identifier ;) (declaration "int local_80;" primitive_type identifier ;) (declaration "undefined4 local_7c;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x64f77;" (assignment_expression "uStack_c = 0x64f77" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(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) ))))) ;) (if_statement "if ((undefined **)*param_1 == &PTR_FUN_000a5240) {\n    local_94 = 0x80;\n    iVar1 = getsockname(param_1[2],&local_90,&local_94);\n    if (-1 < iVar1) {\n      if (local_90.sa_family == 2) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 10) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 1) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }\n  }" if (parenthesized_expression "((undefined **)*param_1 == &PTR_FUN_000a5240)" ( (binary_expression "(undefined **)*param_1 == &PTR_FUN_000a5240" (cast_expression "(undefined **)*param_1" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "*param_1" * identifier)) == (pointer_expression "&PTR_FUN_000a5240" & identifier)) )) (compound_statement "{\n    local_94 = 0x80;\n    iVar1 = getsockname(param_1[2],&local_90,&local_94);\n    if (-1 < iVar1) {\n      if (local_90.sa_family == 2) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 10) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 1) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }\n  }" { (expression_statement "local_94 = 0x80;" (assignment_expression "local_94 = 0x80" identifier = number_literal) ;) (expression_statement "iVar1 = getsockname(param_1[2],&local_90,&local_94);" (assignment_expression "iVar1 = getsockname(param_1[2],&local_90,&local_94)" identifier = (call_expression "getsockname(param_1[2],&local_90,&local_94)" identifier (argument_list "(param_1[2],&local_90,&local_94)" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) , (pointer_expression "&local_90" & identifier) , (pointer_expression "&local_94" & identifier) )))) ;) (if_statement "if (-1 < iVar1) {\n      if (local_90.sa_family == 2) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 10) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 1) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n      if (local_90.sa_family == 2) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 10) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 1) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }" { (if_statement "if (local_90.sa_family == 2) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }" if (parenthesized_expression "(local_90.sa_family == 2)" ( (binary_expression "local_90.sa_family == 2" (field_expression "local_90.sa_family" identifier . field_identifier) == number_literal) )) (compound_statement "{\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }" { (expression_statement "*param_2 = 6;" (assignment_expression "*param_2 = 6" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "pcVar3 = (char *)FUN_0001c990(6,1);" (assignment_expression "pcVar3 = (char *)FUN_0001c990(6,1)" identifier = (cast_expression "(char *)FUN_0001c990(6,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001c990(6,1)" identifier (argument_list "(6,1)" ( number_literal , number_literal ))))) ;) (expression_statement "*pcVar3 = (char)local_90.sa_data._2_4_;" (assignment_expression "*pcVar3 = (char)local_90.sa_data._2_4_" (pointer_expression "*pcVar3" * identifier) = (cast_expression "(char)local_90.sa_data._2_4_" ( (type_descriptor "char" primitive_type) ) (field_expression "local_90.sa_data._2_4_" (field_expression "local_90.sa_data" identifier . field_identifier) . field_identifier))) ;) (expression_statement "pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);" (assignment_expression "pcVar3[1] = SUB41(local_90.sa_data._2_4_,1)" (subscript_expression "pcVar3[1]" identifier [ number_literal ]) = (call_expression "SUB41(local_90.sa_data._2_4_,1)" identifier (argument_list "(local_90.sa_data._2_4_,1)" ( (field_expression "local_90.sa_data._2_4_" (field_expression "local_90.sa_data" identifier . field_identifier) . field_identifier) , number_literal )))) ;) (expression_statement "pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);" (assignment_expression "pcVar3[2] = SUB41(local_90.sa_data._2_4_,2)" (subscript_expression "pcVar3[2]" identifier [ number_literal ]) = (call_expression "SUB41(local_90.sa_data._2_4_,2)" identifier (argument_list "(local_90.sa_data._2_4_,2)" ( (field_expression "local_90.sa_data._2_4_" (field_expression "local_90.sa_data" identifier . field_identifier) . field_identifier) , number_literal )))) ;) (expression_statement "pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);" (assignment_expression "pcVar3[3] = SUB41(local_90.sa_data._2_4_,3)" (subscript_expression "pcVar3[3]" identifier [ number_literal ]) = (call_expression "SUB41(local_90.sa_data._2_4_,3)" identifier (argument_list "(local_90.sa_data._2_4_,3)" ( (field_expression "local_90.sa_data._2_4_" (field_expression "local_90.sa_data" identifier . field_identifier) . field_identifier) , number_literal )))) ;) (expression_statement "*(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;" (assignment_expression "*(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_" (pointer_expression "*(undefined2 *)(pcVar3 + 4)" * (cast_expression "(undefined2 *)(pcVar3 + 4)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar3 + 4)" ( (binary_expression "pcVar3 + 4" identifier + number_literal) )))) = (field_expression "local_90.sa_data._0_2_" (field_expression "local_90.sa_data" identifier . field_identifier) . field_identifier)) ;) (goto_statement "goto LAB_00064ff0;" goto statement_identifier ;) })) (if_statement "if (local_90.sa_family == 10) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }" if (parenthesized_expression "(local_90.sa_family == 10)" ( (binary_expression "local_90.sa_family == 10" (field_expression "local_90.sa_family" identifier . field_identifier) == number_literal) )) (compound_statement "{\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }" { (expression_statement "*param_2 = 6;" (assignment_expression "*param_2 = 6" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "pcVar3 = (char *)FUN_0001c990(6,1);" (assignment_expression "pcVar3 = (char *)FUN_0001c990(6,1)" identifier = (cast_expression "(char *)FUN_0001c990(6,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001c990(6,1)" identifier (argument_list "(6,1)" ( number_literal , number_literal ))))) ;) (if_statement "if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }" if (parenthesized_expression "((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))" ( (binary_expression "(local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000)" (parenthesized_expression "(local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0)" ( (binary_expression "local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0" (binary_expression "local_90.sa_data._6_4_ == 0" (field_expression "local_90.sa_data._6_4_" (field_expression "local_90.sa_data" identifier . field_identifier) . field_identifier) == number_literal) && (binary_expression "local_90.sa_data._10_4_ == 0" (field_expression "local_90.sa_data._10_4_" (field_expression "local_90.sa_data" identifier . field_identifier) . field_identifier) == number_literal)) )) && (parenthesized_expression "(local_80 == -0x10000)" ( (binary_expression "local_80 == -0x10000" identifier == number_literal) ))) )) (compound_statement "{\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }" { (expression_statement "*(undefined4 *)pcVar3 = local_7c;" (assignment_expression "*(undefined4 *)pcVar3 = local_7c" (pointer_expression "*(undefined4 *)pcVar3" * (cast_expression "(undefined4 *)pcVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;" (assignment_expression "*(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_" (pointer_expression "*(undefined2 *)(pcVar3 + 4)" * (cast_expression "(undefined2 *)(pcVar3 + 4)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar3 + 4)" ( (binary_expression "pcVar3 + 4" identifier + number_literal) )))) = (field_expression "local_90.sa_data._0_2_" (field_expression "local_90.sa_data" identifier . field_identifier) . field_identifier)) ;) }) (else_clause "else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }" else (compound_statement "{\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }" { (expression_statement "pcVar3[0] = '\0';" (assignment_expression "pcVar3[0] = '\0'" (subscript_expression "pcVar3[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar3[1] = '\0';" (assignment_expression "pcVar3[1] = '\0'" (subscript_expression "pcVar3[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar3[2] = '\0';" (assignment_expression "pcVar3[2] = '\0'" (subscript_expression "pcVar3[2]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar3[3] = '\0';" (assignment_expression "pcVar3[3] = '\0'" (subscript_expression "pcVar3[3]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar3[4] = '\0';" (assignment_expression "pcVar3[4] = '\0'" (subscript_expression "pcVar3[4]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar3[5] = '\0';" (assignment_expression "pcVar3[5] = '\0'" (subscript_expression "pcVar3[5]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) }))) (goto_statement "goto LAB_00064ff0;" goto statement_identifier ;) })) (if_statement "if (local_90.sa_family == 1) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }" if (parenthesized_expression "(local_90.sa_family == 1)" ( (binary_expression "local_90.sa_family == 1" (field_expression "local_90.sa_family" identifier . field_identifier) == number_literal) )) (compound_statement "{\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }" { (expression_statement "*param_2 = 6;" (assignment_expression "*param_2 = 6" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "pcVar3 = (char *)FUN_0001c990(6,1);" (assignment_expression "pcVar3 = (char *)FUN_0001c990(6,1)" identifier = (cast_expression "(char *)FUN_0001c990(6,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001c990(6,1)" identifier (argument_list "(6,1)" ( number_literal , number_literal ))))) ;) (expression_statement "*pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);" (assignment_expression "*pcVar3 = (char)((uint)DAT_000a5230 >> 0x18)" (pointer_expression "*pcVar3" * identifier) = (cast_expression "(char)((uint)DAT_000a5230 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)DAT_000a5230 >> 0x18)" ( (binary_expression "(uint)DAT_000a5230 >> 0x18" (cast_expression "(uint)DAT_000a5230" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);" (assignment_expression "pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10)" (subscript_expression "pcVar3[1]" identifier [ number_literal ]) = (cast_expression "(char)((uint)(DAT_000a5230 + -1) >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)(DAT_000a5230 + -1) >> 0x10)" ( (binary_expression "(uint)(DAT_000a5230 + -1) >> 0x10" (call_expression "(uint)(DAT_000a5230 + -1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(DAT_000a5230 + -1)" ( (binary_expression "DAT_000a5230 + -1" identifier + number_literal) ))) >> number_literal) )))) ;) (expression_statement "pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);" (assignment_expression "pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8)" (subscript_expression "pcVar3[2]" identifier [ number_literal ]) = (cast_expression "(char)((uint)(DAT_000a5230 + -2) >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)(DAT_000a5230 + -2) >> 8)" ( (binary_expression "(uint)(DAT_000a5230 + -2) >> 8" (call_expression "(uint)(DAT_000a5230 + -2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(DAT_000a5230 + -2)" ( (binary_expression "DAT_000a5230 + -2" identifier + number_literal) ))) >> number_literal) )))) ;) (expression_statement "pcVar3[3] = (char)DAT_000a5230 + -3;" (assignment_expression "pcVar3[3] = (char)DAT_000a5230 + -3" (subscript_expression "pcVar3[3]" identifier [ number_literal ]) = (binary_expression "(char)DAT_000a5230 + -3" (cast_expression "(char)DAT_000a5230" ( (type_descriptor "char" primitive_type) ) identifier) + number_literal)) ;) (expression_statement "DAT_000a5230 = DAT_000a5230 + -4;" (assignment_expression "DAT_000a5230 = DAT_000a5230 + -4" identifier = (binary_expression "DAT_000a5230 + -4" identifier + number_literal)) ;) (expression_statement "_Var2 = getpid();" (assignment_expression "_Var2 = getpid()" identifier = (call_expression "getpid()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3[4] = (char)((uint)_Var2 >> 8);" (assignment_expression "pcVar3[4] = (char)((uint)_Var2 >> 8)" (subscript_expression "pcVar3[4]" identifier [ number_literal ]) = (cast_expression "(char)((uint)_Var2 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)_Var2 >> 8)" ( (binary_expression "(uint)_Var2 >> 8" (cast_expression "(uint)_Var2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "_Var2 = getpid();" (assignment_expression "_Var2 = getpid()" identifier = (call_expression "getpid()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3[5] = (char)_Var2;" (assignment_expression "pcVar3[5] = (char)_Var2" (subscript_expression "pcVar3[5]" identifier [ number_literal ]) = (cast_expression "(char)_Var2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (goto_statement "goto LAB_00064ff0;" goto statement_identifier ;) })) })) })) (expression_statement "pcVar3 = (char *)0x0;" (assignment_expression "pcVar3 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_00064ff0:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar3;\n  }" statement_identifier : (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar3;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(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 pcVar3;\n  }" { (return_statement "return pcVar3;" return identifier ;) }))) comment (expression_statement "FUN_0006dad0();" (call_expression "FUN_0006dad0()" 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\nvoid * sk_getxdmdata(void *sock,int *lenp)\n\n{\n  int iVar1;\n  __pid_t _Var2;\n  undefined4 *puVar3;\n  int in_GS_OFFSET;\n  socklen_t addrlen;\n  sockaddr_union u;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x64f77;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n                    /* WARNING: Load size is inaccurate */\n  if (*sock == &tcp_fn_table) {\n    addrlen = 0x80;\n    iVar1 = getsockname(*(int *)((int)sock + 8),(sockaddr *)&u.storage,&addrlen);\n    if (-1 < iVar1) {\n      if (u.storage.ss_family == 2) {\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        *(char *)puVar3 = u.sin.sin_addr.s_addr.s_addr;\n        *(char *)((int)puVar3 + 1) = SUB41(u.sin.sin_addr.s_addr,1);\n        *(char *)((int)puVar3 + 2) = SUB41(u.sin.sin_addr.s_addr,2);\n        *(char *)((int)puVar3 + 3) = SUB41(u.sin.sin_addr.s_addr,3);\n        *(in_port_t *)(puVar3 + 1) = u.sin.sin_port;\n        goto LAB_00064ff0;\n      }\n      if (u.storage.ss_family == 10) {\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        if ((u._8_4_ == 0 && u._12_4_ == 0) && (u._16_4_ == -0x10000)) {\n          *puVar3 = u._20_4_;\n          *(in_port_t *)(puVar3 + 1) = u.sin.sin_port;\n        }\n        else {\n          *puVar3 = 0;\n          *(undefined2 *)(puVar3 + 1) = 0;\n        }\n        goto LAB_00064ff0;\n      }\n      if (u.storage.ss_family == 1) {\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        *(char *)puVar3 = (char)(sk_getxdmdata::unix_addr >> 0x18);\n        *(char *)((int)puVar3 + 1) = (char)(sk_getxdmdata::unix_addr - 1 >> 0x10);\n        *(char *)((int)puVar3 + 2) = (char)(sk_getxdmdata::unix_addr - 2 >> 8);\n        *(char *)((int)puVar3 + 3) = (char)sk_getxdmdata::unix_addr + -3;\n        sk_getxdmdata::unix_addr = sk_getxdmdata::unix_addr - 4;\n        _Var2 = getpid();\n        *(char *)(puVar3 + 1) = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        *(char *)((int)puVar3 + 5) = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }\n  }\n  puVar3 = (undefined4 *)0x0;\nLAB_00064ff0:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment comment (function_definition "void * sk_getxdmdata(void *sock,int *lenp)\n\n{\n  int iVar1;\n  __pid_t _Var2;\n  undefined4 *puVar3;\n  int in_GS_OFFSET;\n  socklen_t addrlen;\n  sockaddr_union u;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x64f77;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n                    /* WARNING: Load size is inaccurate */\n  if (*sock == &tcp_fn_table) {\n    addrlen = 0x80;\n    iVar1 = getsockname(*(int *)((int)sock + 8),(sockaddr *)&u.storage,&addrlen);\n    if (-1 < iVar1) {\n      if (u.storage.ss_family == 2) {\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        *(char *)puVar3 = u.sin.sin_addr.s_addr.s_addr;\n        *(char *)((int)puVar3 + 1) = SUB41(u.sin.sin_addr.s_addr,1);\n        *(char *)((int)puVar3 + 2) = SUB41(u.sin.sin_addr.s_addr,2);\n        *(char *)((int)puVar3 + 3) = SUB41(u.sin.sin_addr.s_addr,3);\n        *(in_port_t *)(puVar3 + 1) = u.sin.sin_port;\n        goto LAB_00064ff0;\n      }\n      if (u.storage.ss_family == 10) {\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        if ((u._8_4_ == 0 && u._12_4_ == 0) && (u._16_4_ == -0x10000)) {\n          *puVar3 = u._20_4_;\n          *(in_port_t *)(puVar3 + 1) = u.sin.sin_port;\n        }\n        else {\n          *puVar3 = 0;\n          *(undefined2 *)(puVar3 + 1) = 0;\n        }\n        goto LAB_00064ff0;\n      }\n      if (u.storage.ss_family == 1) {\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        *(char *)puVar3 = (char)(sk_getxdmdata::unix_addr >> 0x18);\n        *(char *)((int)puVar3 + 1) = (char)(sk_getxdmdata::unix_addr - 1 >> 0x10);\n        *(char *)((int)puVar3 + 2) = (char)(sk_getxdmdata::unix_addr - 2 >> 8);\n        *(char *)((int)puVar3 + 3) = (char)sk_getxdmdata::unix_addr + -3;\n        sk_getxdmdata::unix_addr = sk_getxdmdata::unix_addr - 4;\n        _Var2 = getpid();\n        *(char *)(puVar3 + 1) = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        *(char *)((int)puVar3 + 5) = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }\n  }\n  puVar3 = (undefined4 *)0x0;\nLAB_00064ff0:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (pointer_declarator "* sk_getxdmdata(void *sock,int *lenp)" * (function_declarator "sk_getxdmdata(void *sock,int *lenp)" identifier (parameter_list "(void *sock,int *lenp)" ( (parameter_declaration "void *sock" primitive_type (pointer_declarator "*sock" * identifier)) , (parameter_declaration "int *lenp" primitive_type (pointer_declarator "*lenp" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  __pid_t _Var2;\n  undefined4 *puVar3;\n  int in_GS_OFFSET;\n  socklen_t addrlen;\n  sockaddr_union u;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x64f77;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n                    /* WARNING: Load size is inaccurate */\n  if (*sock == &tcp_fn_table) {\n    addrlen = 0x80;\n    iVar1 = getsockname(*(int *)((int)sock + 8),(sockaddr *)&u.storage,&addrlen);\n    if (-1 < iVar1) {\n      if (u.storage.ss_family == 2) {\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        *(char *)puVar3 = u.sin.sin_addr.s_addr.s_addr;\n        *(char *)((int)puVar3 + 1) = SUB41(u.sin.sin_addr.s_addr,1);\n        *(char *)((int)puVar3 + 2) = SUB41(u.sin.sin_addr.s_addr,2);\n        *(char *)((int)puVar3 + 3) = SUB41(u.sin.sin_addr.s_addr,3);\n        *(in_port_t *)(puVar3 + 1) = u.sin.sin_port;\n        goto LAB_00064ff0;\n      }\n      if (u.storage.ss_family == 10) {\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        if ((u._8_4_ == 0 && u._12_4_ == 0) && (u._16_4_ == -0x10000)) {\n          *puVar3 = u._20_4_;\n          *(in_port_t *)(puVar3 + 1) = u.sin.sin_port;\n        }\n        else {\n          *puVar3 = 0;\n          *(undefined2 *)(puVar3 + 1) = 0;\n        }\n        goto LAB_00064ff0;\n      }\n      if (u.storage.ss_family == 1) {\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        *(char *)puVar3 = (char)(sk_getxdmdata::unix_addr >> 0x18);\n        *(char *)((int)puVar3 + 1) = (char)(sk_getxdmdata::unix_addr - 1 >> 0x10);\n        *(char *)((int)puVar3 + 2) = (char)(sk_getxdmdata::unix_addr - 2 >> 8);\n        *(char *)((int)puVar3 + 3) = (char)sk_getxdmdata::unix_addr + -3;\n        sk_getxdmdata::unix_addr = sk_getxdmdata::unix_addr - 4;\n        _Var2 = getpid();\n        *(char *)(puVar3 + 1) = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        *(char *)((int)puVar3 + 5) = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }\n  }\n  puVar3 = (undefined4 *)0x0;\nLAB_00064ff0:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "__pid_t _Var2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "socklen_t addrlen;" type_identifier identifier ;) (declaration "sockaddr_union u;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x64f77;" (assignment_expression "uStack_c = 0x64f77" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(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) ))))) ;) comment (if_statement "if (*sock == &tcp_fn_table) {\n    addrlen = 0x80;\n    iVar1 = getsockname(*(int *)((int)sock + 8),(sockaddr *)&u.storage,&addrlen);\n    if (-1 < iVar1) {\n      if (u.storage.ss_family == 2) {\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        *(char *)puVar3 = u.sin.sin_addr.s_addr.s_addr;\n        *(char *)((int)puVar3 + 1) = SUB41(u.sin.sin_addr.s_addr,1);\n        *(char *)((int)puVar3 + 2) = SUB41(u.sin.sin_addr.s_addr,2);\n        *(char *)((int)puVar3 + 3) = SUB41(u.sin.sin_addr.s_addr,3);\n        *(in_port_t *)(puVar3 + 1) = u.sin.sin_port;\n        goto LAB_00064ff0;\n      }\n      if (u.storage.ss_family == 10) {\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        if ((u._8_4_ == 0 && u._12_4_ == 0) && (u._16_4_ == -0x10000)) {\n          *puVar3 = u._20_4_;\n          *(in_port_t *)(puVar3 + 1) = u.sin.sin_port;\n        }\n        else {\n          *puVar3 = 0;\n          *(undefined2 *)(puVar3 + 1) = 0;\n        }\n        goto LAB_00064ff0;\n      }\n      if (u.storage.ss_family == 1) {\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        *(char *)puVar3 = (char)(sk_getxdmdata::unix_addr >> 0x18);\n        *(char *)((int)puVar3 + 1) = (char)(sk_getxdmdata::unix_addr - 1 >> 0x10);\n        *(char *)((int)puVar3 + 2) = (char)(sk_getxdmdata::unix_addr - 2 >> 8);\n        *(char *)((int)puVar3 + 3) = (char)sk_getxdmdata::unix_addr + -3;\n        sk_getxdmdata::unix_addr = sk_getxdmdata::unix_addr - 4;\n        _Var2 = getpid();\n        *(char *)(puVar3 + 1) = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        *(char *)((int)puVar3 + 5) = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }\n  }" if (parenthesized_expression "(*sock == &tcp_fn_table)" ( (binary_expression "*sock == &tcp_fn_table" (pointer_expression "*sock" * identifier) == (pointer_expression "&tcp_fn_table" & identifier)) )) (compound_statement "{\n    addrlen = 0x80;\n    iVar1 = getsockname(*(int *)((int)sock + 8),(sockaddr *)&u.storage,&addrlen);\n    if (-1 < iVar1) {\n      if (u.storage.ss_family == 2) {\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        *(char *)puVar3 = u.sin.sin_addr.s_addr.s_addr;\n        *(char *)((int)puVar3 + 1) = SUB41(u.sin.sin_addr.s_addr,1);\n        *(char *)((int)puVar3 + 2) = SUB41(u.sin.sin_addr.s_addr,2);\n        *(char *)((int)puVar3 + 3) = SUB41(u.sin.sin_addr.s_addr,3);\n        *(in_port_t *)(puVar3 + 1) = u.sin.sin_port;\n        goto LAB_00064ff0;\n      }\n      if (u.storage.ss_family == 10) {\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        if ((u._8_4_ == 0 && u._12_4_ == 0) && (u._16_4_ == -0x10000)) {\n          *puVar3 = u._20_4_;\n          *(in_port_t *)(puVar3 + 1) = u.sin.sin_port;\n        }\n        else {\n          *puVar3 = 0;\n          *(undefined2 *)(puVar3 + 1) = 0;\n        }\n        goto LAB_00064ff0;\n      }\n      if (u.storage.ss_family == 1) {\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        *(char *)puVar3 = (char)(sk_getxdmdata::unix_addr >> 0x18);\n        *(char *)((int)puVar3 + 1) = (char)(sk_getxdmdata::unix_addr - 1 >> 0x10);\n        *(char *)((int)puVar3 + 2) = (char)(sk_getxdmdata::unix_addr - 2 >> 8);\n        *(char *)((int)puVar3 + 3) = (char)sk_getxdmdata::unix_addr + -3;\n        sk_getxdmdata::unix_addr = sk_getxdmdata::unix_addr - 4;\n        _Var2 = getpid();\n        *(char *)(puVar3 + 1) = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        *(char *)((int)puVar3 + 5) = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }\n  }" { (expression_statement "addrlen = 0x80;" (assignment_expression "addrlen = 0x80" identifier = number_literal) ;) (expression_statement "iVar1 = getsockname(*(int *)((int)sock + 8),(sockaddr *)&u.storage,&addrlen);" (assignment_expression "iVar1 = getsockname(*(int *)((int)sock + 8),(sockaddr *)&u.storage,&addrlen)" identifier = (call_expression "getsockname(*(int *)((int)sock + 8),(sockaddr *)&u.storage,&addrlen)" identifier (argument_list "(*(int *)((int)sock + 8),(sockaddr *)&u.storage,&addrlen)" ( (pointer_expression "*(int *)((int)sock + 8)" * (cast_expression "(int *)((int)sock + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)sock + 8)" ( (binary_expression "(int)sock + 8" (cast_expression "(int)sock" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (cast_expression "(sockaddr *)&u.storage" ( (type_descriptor "sockaddr *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&u.storage" & (field_expression "u.storage" identifier . field_identifier))) , (pointer_expression "&addrlen" & identifier) )))) ;) (if_statement "if (-1 < iVar1) {\n      if (u.storage.ss_family == 2) {\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        *(char *)puVar3 = u.sin.sin_addr.s_addr.s_addr;\n        *(char *)((int)puVar3 + 1) = SUB41(u.sin.sin_addr.s_addr,1);\n        *(char *)((int)puVar3 + 2) = SUB41(u.sin.sin_addr.s_addr,2);\n        *(char *)((int)puVar3 + 3) = SUB41(u.sin.sin_addr.s_addr,3);\n        *(in_port_t *)(puVar3 + 1) = u.sin.sin_port;\n        goto LAB_00064ff0;\n      }\n      if (u.storage.ss_family == 10) {\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        if ((u._8_4_ == 0 && u._12_4_ == 0) && (u._16_4_ == -0x10000)) {\n          *puVar3 = u._20_4_;\n          *(in_port_t *)(puVar3 + 1) = u.sin.sin_port;\n        }\n        else {\n          *puVar3 = 0;\n          *(undefined2 *)(puVar3 + 1) = 0;\n        }\n        goto LAB_00064ff0;\n      }\n      if (u.storage.ss_family == 1) {\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        *(char *)puVar3 = (char)(sk_getxdmdata::unix_addr >> 0x18);\n        *(char *)((int)puVar3 + 1) = (char)(sk_getxdmdata::unix_addr - 1 >> 0x10);\n        *(char *)((int)puVar3 + 2) = (char)(sk_getxdmdata::unix_addr - 2 >> 8);\n        *(char *)((int)puVar3 + 3) = (char)sk_getxdmdata::unix_addr + -3;\n        sk_getxdmdata::unix_addr = sk_getxdmdata::unix_addr - 4;\n        _Var2 = getpid();\n        *(char *)(puVar3 + 1) = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        *(char *)((int)puVar3 + 5) = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n      if (u.storage.ss_family == 2) {\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        *(char *)puVar3 = u.sin.sin_addr.s_addr.s_addr;\n        *(char *)((int)puVar3 + 1) = SUB41(u.sin.sin_addr.s_addr,1);\n        *(char *)((int)puVar3 + 2) = SUB41(u.sin.sin_addr.s_addr,2);\n        *(char *)((int)puVar3 + 3) = SUB41(u.sin.sin_addr.s_addr,3);\n        *(in_port_t *)(puVar3 + 1) = u.sin.sin_port;\n        goto LAB_00064ff0;\n      }\n      if (u.storage.ss_family == 10) {\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        if ((u._8_4_ == 0 && u._12_4_ == 0) && (u._16_4_ == -0x10000)) {\n          *puVar3 = u._20_4_;\n          *(in_port_t *)(puVar3 + 1) = u.sin.sin_port;\n        }\n        else {\n          *puVar3 = 0;\n          *(undefined2 *)(puVar3 + 1) = 0;\n        }\n        goto LAB_00064ff0;\n      }\n      if (u.storage.ss_family == 1) {\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        *(char *)puVar3 = (char)(sk_getxdmdata::unix_addr >> 0x18);\n        *(char *)((int)puVar3 + 1) = (char)(sk_getxdmdata::unix_addr - 1 >> 0x10);\n        *(char *)((int)puVar3 + 2) = (char)(sk_getxdmdata::unix_addr - 2 >> 8);\n        *(char *)((int)puVar3 + 3) = (char)sk_getxdmdata::unix_addr + -3;\n        sk_getxdmdata::unix_addr = sk_getxdmdata::unix_addr - 4;\n        _Var2 = getpid();\n        *(char *)(puVar3 + 1) = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        *(char *)((int)puVar3 + 5) = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }" { (if_statement "if (u.storage.ss_family == 2) {\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        *(char *)puVar3 = u.sin.sin_addr.s_addr.s_addr;\n        *(char *)((int)puVar3 + 1) = SUB41(u.sin.sin_addr.s_addr,1);\n        *(char *)((int)puVar3 + 2) = SUB41(u.sin.sin_addr.s_addr,2);\n        *(char *)((int)puVar3 + 3) = SUB41(u.sin.sin_addr.s_addr,3);\n        *(in_port_t *)(puVar3 + 1) = u.sin.sin_port;\n        goto LAB_00064ff0;\n      }" if (parenthesized_expression "(u.storage.ss_family == 2)" ( (binary_expression "u.storage.ss_family == 2" (field_expression "u.storage.ss_family" (field_expression "u.storage" identifier . field_identifier) . field_identifier) == number_literal) )) (compound_statement "{\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        *(char *)puVar3 = u.sin.sin_addr.s_addr.s_addr;\n        *(char *)((int)puVar3 + 1) = SUB41(u.sin.sin_addr.s_addr,1);\n        *(char *)((int)puVar3 + 2) = SUB41(u.sin.sin_addr.s_addr,2);\n        *(char *)((int)puVar3 + 3) = SUB41(u.sin.sin_addr.s_addr,3);\n        *(in_port_t *)(puVar3 + 1) = u.sin.sin_port;\n        goto LAB_00064ff0;\n      }" { (expression_statement "*lenp = 6;" (assignment_expression "*lenp = 6" (pointer_expression "*lenp" * identifier) = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)safemalloc(6,1);" (assignment_expression "puVar3 = (undefined4 *)safemalloc(6,1)" identifier = (cast_expression "(undefined4 *)safemalloc(6,1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(6,1)" identifier (argument_list "(6,1)" ( number_literal , number_literal ))))) ;) (expression_statement "*(char *)puVar3 = u.sin.sin_addr.s_addr.s_addr;" (assignment_expression "*(char *)puVar3 = u.sin.sin_addr.s_addr.s_addr" (pointer_expression "*(char *)puVar3" * (cast_expression "(char *)puVar3" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (field_expression "u.sin.sin_addr.s_addr.s_addr" (field_expression "u.sin.sin_addr.s_addr" (field_expression "u.sin.sin_addr" (field_expression "u.sin" identifier . field_identifier) . field_identifier) . field_identifier) . field_identifier)) ;) (expression_statement "*(char *)((int)puVar3 + 1) = SUB41(u.sin.sin_addr.s_addr,1);" (assignment_expression "*(char *)((int)puVar3 + 1) = SUB41(u.sin.sin_addr.s_addr,1)" (pointer_expression "*(char *)((int)puVar3 + 1)" * (cast_expression "(char *)((int)puVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + 1)" ( (binary_expression "(int)puVar3 + 1" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (call_expression "SUB41(u.sin.sin_addr.s_addr,1)" identifier (argument_list "(u.sin.sin_addr.s_addr,1)" ( (field_expression "u.sin.sin_addr.s_addr" (field_expression "u.sin.sin_addr" (field_expression "u.sin" identifier . field_identifier) . field_identifier) . field_identifier) , number_literal )))) ;) (expression_statement "*(char *)((int)puVar3 + 2) = SUB41(u.sin.sin_addr.s_addr,2);" (assignment_expression "*(char *)((int)puVar3 + 2) = SUB41(u.sin.sin_addr.s_addr,2)" (pointer_expression "*(char *)((int)puVar3 + 2)" * (cast_expression "(char *)((int)puVar3 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + 2)" ( (binary_expression "(int)puVar3 + 2" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (call_expression "SUB41(u.sin.sin_addr.s_addr,2)" identifier (argument_list "(u.sin.sin_addr.s_addr,2)" ( (field_expression "u.sin.sin_addr.s_addr" (field_expression "u.sin.sin_addr" (field_expression "u.sin" identifier . field_identifier) . field_identifier) . field_identifier) , number_literal )))) ;) (expression_statement "*(char *)((int)puVar3 + 3) = SUB41(u.sin.sin_addr.s_addr,3);" (assignment_expression "*(char *)((int)puVar3 + 3) = SUB41(u.sin.sin_addr.s_addr,3)" (pointer_expression "*(char *)((int)puVar3 + 3)" * (cast_expression "(char *)((int)puVar3 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + 3)" ( (binary_expression "(int)puVar3 + 3" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (call_expression "SUB41(u.sin.sin_addr.s_addr,3)" identifier (argument_list "(u.sin.sin_addr.s_addr,3)" ( (field_expression "u.sin.sin_addr.s_addr" (field_expression "u.sin.sin_addr" (field_expression "u.sin" identifier . field_identifier) . field_identifier) . field_identifier) , number_literal )))) ;) (expression_statement "*(in_port_t *)(puVar3 + 1) = u.sin.sin_port;" (assignment_expression "*(in_port_t *)(puVar3 + 1) = u.sin.sin_port" (pointer_expression "*(in_port_t *)(puVar3 + 1)" * (cast_expression "(in_port_t *)(puVar3 + 1)" ( (type_descriptor "in_port_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 1)" ( (binary_expression "puVar3 + 1" identifier + number_literal) )))) = (field_expression "u.sin.sin_port" (field_expression "u.sin" identifier . field_identifier) . field_identifier)) ;) (goto_statement "goto LAB_00064ff0;" goto statement_identifier ;) })) (if_statement "if (u.storage.ss_family == 10) {\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        if ((u._8_4_ == 0 && u._12_4_ == 0) && (u._16_4_ == -0x10000)) {\n          *puVar3 = u._20_4_;\n          *(in_port_t *)(puVar3 + 1) = u.sin.sin_port;\n        }\n        else {\n          *puVar3 = 0;\n          *(undefined2 *)(puVar3 + 1) = 0;\n        }\n        goto LAB_00064ff0;\n      }" if (parenthesized_expression "(u.storage.ss_family == 10)" ( (binary_expression "u.storage.ss_family == 10" (field_expression "u.storage.ss_family" (field_expression "u.storage" identifier . field_identifier) . field_identifier) == number_literal) )) (compound_statement "{\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        if ((u._8_4_ == 0 && u._12_4_ == 0) && (u._16_4_ == -0x10000)) {\n          *puVar3 = u._20_4_;\n          *(in_port_t *)(puVar3 + 1) = u.sin.sin_port;\n        }\n        else {\n          *puVar3 = 0;\n          *(undefined2 *)(puVar3 + 1) = 0;\n        }\n        goto LAB_00064ff0;\n      }" { (expression_statement "*lenp = 6;" (assignment_expression "*lenp = 6" (pointer_expression "*lenp" * identifier) = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)safemalloc(6,1);" (assignment_expression "puVar3 = (undefined4 *)safemalloc(6,1)" identifier = (cast_expression "(undefined4 *)safemalloc(6,1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(6,1)" identifier (argument_list "(6,1)" ( number_literal , number_literal ))))) ;) (if_statement "if ((u._8_4_ == 0 && u._12_4_ == 0) && (u._16_4_ == -0x10000)) {\n          *puVar3 = u._20_4_;\n          *(in_port_t *)(puVar3 + 1) = u.sin.sin_port;\n        }\n        else {\n          *puVar3 = 0;\n          *(undefined2 *)(puVar3 + 1) = 0;\n        }" if (parenthesized_expression "((u._8_4_ == 0 && u._12_4_ == 0) && (u._16_4_ == -0x10000))" ( (binary_expression "(u._8_4_ == 0 && u._12_4_ == 0) && (u._16_4_ == -0x10000)" (parenthesized_expression "(u._8_4_ == 0 && u._12_4_ == 0)" ( (binary_expression "u._8_4_ == 0 && u._12_4_ == 0" (binary_expression "u._8_4_ == 0" (field_expression "u._8_4_" identifier . field_identifier) == number_literal) && (binary_expression "u._12_4_ == 0" (field_expression "u._12_4_" identifier . field_identifier) == number_literal)) )) && (parenthesized_expression "(u._16_4_ == -0x10000)" ( (binary_expression "u._16_4_ == -0x10000" (field_expression "u._16_4_" identifier . field_identifier) == number_literal) ))) )) (compound_statement "{\n          *puVar3 = u._20_4_;\n          *(in_port_t *)(puVar3 + 1) = u.sin.sin_port;\n        }" { (expression_statement "*puVar3 = u._20_4_;" (assignment_expression "*puVar3 = u._20_4_" (pointer_expression "*puVar3" * identifier) = (field_expression "u._20_4_" identifier . field_identifier)) ;) (expression_statement "*(in_port_t *)(puVar3 + 1) = u.sin.sin_port;" (assignment_expression "*(in_port_t *)(puVar3 + 1) = u.sin.sin_port" (pointer_expression "*(in_port_t *)(puVar3 + 1)" * (cast_expression "(in_port_t *)(puVar3 + 1)" ( (type_descriptor "in_port_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 1)" ( (binary_expression "puVar3 + 1" identifier + number_literal) )))) = (field_expression "u.sin.sin_port" (field_expression "u.sin" identifier . field_identifier) . field_identifier)) ;) }) (else_clause "else {\n          *puVar3 = 0;\n          *(undefined2 *)(puVar3 + 1) = 0;\n        }" else (compound_statement "{\n          *puVar3 = 0;\n          *(undefined2 *)(puVar3 + 1) = 0;\n        }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "*(undefined2 *)(puVar3 + 1) = 0;" (assignment_expression "*(undefined2 *)(puVar3 + 1) = 0" (pointer_expression "*(undefined2 *)(puVar3 + 1)" * (cast_expression "(undefined2 *)(puVar3 + 1)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 1)" ( (binary_expression "puVar3 + 1" identifier + number_literal) )))) = number_literal) ;) }))) (goto_statement "goto LAB_00064ff0;" goto statement_identifier ;) })) (if_statement "if (u.storage.ss_family == 1) {\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        *(char *)puVar3 = (char)(sk_getxdmdata::unix_addr >> 0x18);\n        *(char *)((int)puVar3 + 1) = (char)(sk_getxdmdata::unix_addr - 1 >> 0x10);\n        *(char *)((int)puVar3 + 2) = (char)(sk_getxdmdata::unix_addr - 2 >> 8);\n        *(char *)((int)puVar3 + 3) = (char)sk_getxdmdata::unix_addr + -3;\n        sk_getxdmdata::unix_addr = sk_getxdmdata::unix_addr - 4;\n        _Var2 = getpid();\n        *(char *)(puVar3 + 1) = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        *(char *)((int)puVar3 + 5) = (char)_Var2;\n        goto LAB_00064ff0;\n      }" if (parenthesized_expression "(u.storage.ss_family == 1)" ( (binary_expression "u.storage.ss_family == 1" (field_expression "u.storage.ss_family" (field_expression "u.storage" identifier . field_identifier) . field_identifier) == number_literal) )) (compound_statement "{\n        *lenp = 6;\n        puVar3 = (undefined4 *)safemalloc(6,1);\n        *(char *)puVar3 = (char)(sk_getxdmdata::unix_addr >> 0x18);\n        *(char *)((int)puVar3 + 1) = (char)(sk_getxdmdata::unix_addr - 1 >> 0x10);\n        *(char *)((int)puVar3 + 2) = (char)(sk_getxdmdata::unix_addr - 2 >> 8);\n        *(char *)((int)puVar3 + 3) = (char)sk_getxdmdata::unix_addr + -3;\n        sk_getxdmdata::unix_addr = sk_getxdmdata::unix_addr - 4;\n        _Var2 = getpid();\n        *(char *)(puVar3 + 1) = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        *(char *)((int)puVar3 + 5) = (char)_Var2;\n        goto LAB_00064ff0;\n      }" { (expression_statement "*lenp = 6;" (assignment_expression "*lenp = 6" (pointer_expression "*lenp" * identifier) = number_literal) ;) (expression_statement "puVar3 = (undefined4 *)safemalloc(6,1);" (assignment_expression "puVar3 = (undefined4 *)safemalloc(6,1)" identifier = (cast_expression "(undefined4 *)safemalloc(6,1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(6,1)" identifier (argument_list "(6,1)" ( number_literal , number_literal ))))) ;) (expression_statement "*(char *)puVar3 = (char)(sk_getxdmdata::unix_addr >> 0x18);" (assignment_expression "*(char *)puVar3 = (char)(sk_getxdmdata::unix_addr >> 0x18)" (pointer_expression "*(char *)puVar3" * (cast_expression "(char *)puVar3" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (cast_expression "(char)(sk_getxdmdata::unix_addr >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(sk_getxdmdata::unix_addr >> 0x18)" ( (binary_expression "sk_getxdmdata::unix_addr >> 0x18" identifier (ERROR "::unix_addr" : : identifier) >> number_literal) )))) ;) (expression_statement "*(char *)((int)puVar3 + 1) = (char)(sk_getxdmdata::unix_addr - 1 >> 0x10);" (assignment_expression "*(char *)((int)puVar3 + 1) = (char)(sk_getxdmdata::unix_addr - 1 >> 0x10)" (pointer_expression "*(char *)((int)puVar3 + 1)" * (cast_expression "(char *)((int)puVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + 1)" ( (binary_expression "(int)puVar3 + 1" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)(sk_getxdmdata::unix_addr - 1 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(sk_getxdmdata::unix_addr - 1 >> 0x10)" ( (binary_expression "sk_getxdmdata::unix_addr - 1 >> 0x10" (binary_expression "sk_getxdmdata::unix_addr - 1" identifier (ERROR "::unix_addr" : : identifier) - number_literal) >> number_literal) )))) ;) (expression_statement "*(char *)((int)puVar3 + 2) = (char)(sk_getxdmdata::unix_addr - 2 >> 8);" (assignment_expression "*(char *)((int)puVar3 + 2) = (char)(sk_getxdmdata::unix_addr - 2 >> 8)" (pointer_expression "*(char *)((int)puVar3 + 2)" * (cast_expression "(char *)((int)puVar3 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + 2)" ( (binary_expression "(int)puVar3 + 2" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)(sk_getxdmdata::unix_addr - 2 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(sk_getxdmdata::unix_addr - 2 >> 8)" ( (binary_expression "sk_getxdmdata::unix_addr - 2 >> 8" (binary_expression "sk_getxdmdata::unix_addr - 2" identifier (ERROR "::unix_addr" : : identifier) - number_literal) >> number_literal) )))) ;) (expression_statement "*(char *)((int)puVar3 + 3) = (char)sk_getxdmdata::unix_addr + -3;" (binary_expression "*(char *)((int)puVar3 + 3) = (char)sk_getxdmdata::unix_addr + -3" (assignment_expression "*(char *)((int)puVar3 + 3) = (char)sk_getxdmdata" (pointer_expression "*(char *)((int)puVar3 + 3)" * (cast_expression "(char *)((int)puVar3 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + 3)" ( (binary_expression "(int)puVar3 + 3" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)sk_getxdmdata" ( (type_descriptor "char" primitive_type) ) identifier)) (ERROR "::unix_addr" : : identifier) + number_literal) ;) (labeled_statement "sk_getxdmdata::unix_addr = sk_getxdmdata::unix_addr - 4;" statement_identifier (ERROR "::unix_addr = sk_getxdmdata:" : : (assignment_expression "unix_addr = sk_getxdmdata" identifier = identifier) :) : (expression_statement "unix_addr - 4;" (binary_expression "unix_addr - 4" identifier - number_literal) ;)) (expression_statement "_Var2 = getpid();" (assignment_expression "_Var2 = getpid()" identifier = (call_expression "getpid()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(char *)(puVar3 + 1) = (char)((uint)_Var2 >> 8);" (assignment_expression "*(char *)(puVar3 + 1) = (char)((uint)_Var2 >> 8)" (pointer_expression "*(char *)(puVar3 + 1)" * (cast_expression "(char *)(puVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 1)" ( (binary_expression "puVar3 + 1" identifier + number_literal) )))) = (cast_expression "(char)((uint)_Var2 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)_Var2 >> 8)" ( (binary_expression "(uint)_Var2 >> 8" (cast_expression "(uint)_Var2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "_Var2 = getpid();" (assignment_expression "_Var2 = getpid()" identifier = (call_expression "getpid()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(char *)((int)puVar3 + 5) = (char)_Var2;" (assignment_expression "*(char *)((int)puVar3 + 5) = (char)_Var2" (pointer_expression "*(char *)((int)puVar3 + 5)" * (cast_expression "(char *)((int)puVar3 + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + 5)" ( (binary_expression "(int)puVar3 + 5" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)_Var2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (goto_statement "goto LAB_00064ff0;" goto statement_identifier ;) })) })) })) (expression_statement "puVar3 = (undefined4 *)0x0;" (assignment_expression "puVar3 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_00064ff0:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar3;\n  }" statement_identifier : (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar3;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(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 puVar3;\n  }" { (return_statement "return puVar3;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "char * FUN_00064f70(int *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  __pid_t _Var2;\n  char *pcVar3;\n  int in_GS_OFFSET;\n  socklen_t local_94;\n  sockaddr local_90;\n  int local_80;\n  undefined4 local_7c;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x64f77;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((undefined **)*param_1 == &PTR_FUN_000a5240) {\n    local_94 = 0x80;\n    iVar1 = getsockname(param_1[2],&local_90,&local_94);\n    if (-1 < iVar1) {\n      if (local_90.sa_family == 2) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 10) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 1) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }\n  }\n  pcVar3 = (char *)0x0;\nLAB_00064ff0:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar3;\n  }\n                    \n  FUN_0006dad0();\n}\n\n" (function_definition "char * FUN_00064f70(int *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  __pid_t _Var2;\n  char *pcVar3;\n  int in_GS_OFFSET;\n  socklen_t local_94;\n  sockaddr local_90;\n  int local_80;\n  undefined4 local_7c;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x64f77;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((undefined **)*param_1 == &PTR_FUN_000a5240) {\n    local_94 = 0x80;\n    iVar1 = getsockname(param_1[2],&local_90,&local_94);\n    if (-1 < iVar1) {\n      if (local_90.sa_family == 2) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 10) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 1) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }\n  }\n  pcVar3 = (char *)0x0;\nLAB_00064ff0:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar3;\n  }\n                    \n  FUN_0006dad0();\n}" primitive_type (pointer_declarator "* FUN_00064f70(int *param_1,undefined4 *param_2)" * (function_declarator "FUN_00064f70(int *param_1,undefined4 *param_2)" identifier (parameter_list "(int *param_1,undefined4 *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  __pid_t _Var2;\n  char *pcVar3;\n  int in_GS_OFFSET;\n  socklen_t local_94;\n  sockaddr local_90;\n  int local_80;\n  undefined4 local_7c;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x64f77;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((undefined **)*param_1 == &PTR_FUN_000a5240) {\n    local_94 = 0x80;\n    iVar1 = getsockname(param_1[2],&local_90,&local_94);\n    if (-1 < iVar1) {\n      if (local_90.sa_family == 2) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 10) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 1) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }\n  }\n  pcVar3 = (char *)0x0;\nLAB_00064ff0:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar3;\n  }\n                    \n  FUN_0006dad0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "__pid_t _Var2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "socklen_t local_94;" type_identifier identifier ;) (declaration "sockaddr local_90;" type_identifier identifier ;) (declaration "int local_80;" primitive_type identifier ;) (declaration "undefined4 local_7c;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x64f77;" (assignment_expression "uStack_c = 0x64f77" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(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) ))))) ;) (if_statement "if ((undefined **)*param_1 == &PTR_FUN_000a5240) {\n    local_94 = 0x80;\n    iVar1 = getsockname(param_1[2],&local_90,&local_94);\n    if (-1 < iVar1) {\n      if (local_90.sa_family == 2) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 10) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 1) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }\n  }" if (parenthesized_expression "((undefined **)*param_1 == &PTR_FUN_000a5240)" ( (binary_expression "(undefined **)*param_1 == &PTR_FUN_000a5240" (cast_expression "(undefined **)*param_1" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "*param_1" * identifier)) == (pointer_expression "&PTR_FUN_000a5240" & identifier)) )) (compound_statement "{\n    local_94 = 0x80;\n    iVar1 = getsockname(param_1[2],&local_90,&local_94);\n    if (-1 < iVar1) {\n      if (local_90.sa_family == 2) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 10) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 1) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }\n  }" { (expression_statement "local_94 = 0x80;" (assignment_expression "local_94 = 0x80" identifier = number_literal) ;) (expression_statement "iVar1 = getsockname(param_1[2],&local_90,&local_94);" (assignment_expression "iVar1 = getsockname(param_1[2],&local_90,&local_94)" identifier = (call_expression "getsockname(param_1[2],&local_90,&local_94)" identifier (argument_list "(param_1[2],&local_90,&local_94)" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) , (pointer_expression "&local_90" & identifier) , (pointer_expression "&local_94" & identifier) )))) ;) (if_statement "if (-1 < iVar1) {\n      if (local_90.sa_family == 2) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 10) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 1) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n      if (local_90.sa_family == 2) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 10) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 1) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }" { (if_statement "if (local_90.sa_family == 2) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }" if (parenthesized_expression "(local_90.sa_family == 2)" ( (binary_expression "local_90.sa_family == 2" (field_expression "local_90.sa_family" identifier . field_identifier) == number_literal) )) (compound_statement "{\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }" { (expression_statement "*param_2 = 6;" (assignment_expression "*param_2 = 6" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "pcVar3 = (char *)FUN_0001c990(6,1);" (assignment_expression "pcVar3 = (char *)FUN_0001c990(6,1)" identifier = (cast_expression "(char *)FUN_0001c990(6,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001c990(6,1)" identifier (argument_list "(6,1)" ( number_literal , number_literal ))))) ;) (expression_statement "*pcVar3 = (char)local_90.sa_data._2_4_;" (assignment_expression "*pcVar3 = (char)local_90.sa_data._2_4_" (pointer_expression "*pcVar3" * identifier) = (cast_expression "(char)local_90.sa_data._2_4_" ( (type_descriptor "char" primitive_type) ) (field_expression "local_90.sa_data._2_4_" (field_expression "local_90.sa_data" identifier . field_identifier) . field_identifier))) ;) (expression_statement "pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);" (assignment_expression "pcVar3[1] = SUB41(local_90.sa_data._2_4_,1)" (subscript_expression "pcVar3[1]" identifier [ number_literal ]) = (call_expression "SUB41(local_90.sa_data._2_4_,1)" identifier (argument_list "(local_90.sa_data._2_4_,1)" ( (field_expression "local_90.sa_data._2_4_" (field_expression "local_90.sa_data" identifier . field_identifier) . field_identifier) , number_literal )))) ;) (expression_statement "pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);" (assignment_expression "pcVar3[2] = SUB41(local_90.sa_data._2_4_,2)" (subscript_expression "pcVar3[2]" identifier [ number_literal ]) = (call_expression "SUB41(local_90.sa_data._2_4_,2)" identifier (argument_list "(local_90.sa_data._2_4_,2)" ( (field_expression "local_90.sa_data._2_4_" (field_expression "local_90.sa_data" identifier . field_identifier) . field_identifier) , number_literal )))) ;) (expression_statement "pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);" (assignment_expression "pcVar3[3] = SUB41(local_90.sa_data._2_4_,3)" (subscript_expression "pcVar3[3]" identifier [ number_literal ]) = (call_expression "SUB41(local_90.sa_data._2_4_,3)" identifier (argument_list "(local_90.sa_data._2_4_,3)" ( (field_expression "local_90.sa_data._2_4_" (field_expression "local_90.sa_data" identifier . field_identifier) . field_identifier) , number_literal )))) ;) (expression_statement "*(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;" (assignment_expression "*(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_" (pointer_expression "*(undefined2 *)(pcVar3 + 4)" * (cast_expression "(undefined2 *)(pcVar3 + 4)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar3 + 4)" ( (binary_expression "pcVar3 + 4" identifier + number_literal) )))) = (field_expression "local_90.sa_data._0_2_" (field_expression "local_90.sa_data" identifier . field_identifier) . field_identifier)) ;) (goto_statement "goto LAB_00064ff0;" goto statement_identifier ;) })) (if_statement "if (local_90.sa_family == 10) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }" if (parenthesized_expression "(local_90.sa_family == 10)" ( (binary_expression "local_90.sa_family == 10" (field_expression "local_90.sa_family" identifier . field_identifier) == number_literal) )) (compound_statement "{\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }" { (expression_statement "*param_2 = 6;" (assignment_expression "*param_2 = 6" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "pcVar3 = (char *)FUN_0001c990(6,1);" (assignment_expression "pcVar3 = (char *)FUN_0001c990(6,1)" identifier = (cast_expression "(char *)FUN_0001c990(6,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001c990(6,1)" identifier (argument_list "(6,1)" ( number_literal , number_literal ))))) ;) (if_statement "if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }" if (parenthesized_expression "((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))" ( (binary_expression "(local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000)" (parenthesized_expression "(local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0)" ( (binary_expression "local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0" (binary_expression "local_90.sa_data._6_4_ == 0" (field_expression "local_90.sa_data._6_4_" (field_expression "local_90.sa_data" identifier . field_identifier) . field_identifier) == number_literal) && (binary_expression "local_90.sa_data._10_4_ == 0" (field_expression "local_90.sa_data._10_4_" (field_expression "local_90.sa_data" identifier . field_identifier) . field_identifier) == number_literal)) )) && (parenthesized_expression "(local_80 == -0x10000)" ( (binary_expression "local_80 == -0x10000" identifier == number_literal) ))) )) (compound_statement "{\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }" { (expression_statement "*(undefined4 *)pcVar3 = local_7c;" (assignment_expression "*(undefined4 *)pcVar3 = local_7c" (pointer_expression "*(undefined4 *)pcVar3" * (cast_expression "(undefined4 *)pcVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;" (assignment_expression "*(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_" (pointer_expression "*(undefined2 *)(pcVar3 + 4)" * (cast_expression "(undefined2 *)(pcVar3 + 4)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar3 + 4)" ( (binary_expression "pcVar3 + 4" identifier + number_literal) )))) = (field_expression "local_90.sa_data._0_2_" (field_expression "local_90.sa_data" identifier . field_identifier) . field_identifier)) ;) }) (else_clause "else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }" else (compound_statement "{\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }" { (expression_statement "pcVar3[0] = '\0';" (assignment_expression "pcVar3[0] = '\0'" (subscript_expression "pcVar3[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar3[1] = '\0';" (assignment_expression "pcVar3[1] = '\0'" (subscript_expression "pcVar3[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar3[2] = '\0';" (assignment_expression "pcVar3[2] = '\0'" (subscript_expression "pcVar3[2]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar3[3] = '\0';" (assignment_expression "pcVar3[3] = '\0'" (subscript_expression "pcVar3[3]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar3[4] = '\0';" (assignment_expression "pcVar3[4] = '\0'" (subscript_expression "pcVar3[4]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar3[5] = '\0';" (assignment_expression "pcVar3[5] = '\0'" (subscript_expression "pcVar3[5]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) }))) (goto_statement "goto LAB_00064ff0;" goto statement_identifier ;) })) (if_statement "if (local_90.sa_family == 1) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }" if (parenthesized_expression "(local_90.sa_family == 1)" ( (binary_expression "local_90.sa_family == 1" (field_expression "local_90.sa_family" identifier . field_identifier) == number_literal) )) (compound_statement "{\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }" { (expression_statement "*param_2 = 6;" (assignment_expression "*param_2 = 6" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "pcVar3 = (char *)FUN_0001c990(6,1);" (assignment_expression "pcVar3 = (char *)FUN_0001c990(6,1)" identifier = (cast_expression "(char *)FUN_0001c990(6,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001c990(6,1)" identifier (argument_list "(6,1)" ( number_literal , number_literal ))))) ;) (expression_statement "*pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);" (assignment_expression "*pcVar3 = (char)((uint)DAT_000a5230 >> 0x18)" (pointer_expression "*pcVar3" * identifier) = (cast_expression "(char)((uint)DAT_000a5230 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)DAT_000a5230 >> 0x18)" ( (binary_expression "(uint)DAT_000a5230 >> 0x18" (cast_expression "(uint)DAT_000a5230" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);" (assignment_expression "pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10)" (subscript_expression "pcVar3[1]" identifier [ number_literal ]) = (cast_expression "(char)((uint)(DAT_000a5230 + -1) >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)(DAT_000a5230 + -1) >> 0x10)" ( (binary_expression "(uint)(DAT_000a5230 + -1) >> 0x10" (call_expression "(uint)(DAT_000a5230 + -1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(DAT_000a5230 + -1)" ( (binary_expression "DAT_000a5230 + -1" identifier + number_literal) ))) >> number_literal) )))) ;) (expression_statement "pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);" (assignment_expression "pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8)" (subscript_expression "pcVar3[2]" identifier [ number_literal ]) = (cast_expression "(char)((uint)(DAT_000a5230 + -2) >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)(DAT_000a5230 + -2) >> 8)" ( (binary_expression "(uint)(DAT_000a5230 + -2) >> 8" (call_expression "(uint)(DAT_000a5230 + -2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(DAT_000a5230 + -2)" ( (binary_expression "DAT_000a5230 + -2" identifier + number_literal) ))) >> number_literal) )))) ;) (expression_statement "pcVar3[3] = (char)DAT_000a5230 + -3;" (assignment_expression "pcVar3[3] = (char)DAT_000a5230 + -3" (subscript_expression "pcVar3[3]" identifier [ number_literal ]) = (binary_expression "(char)DAT_000a5230 + -3" (cast_expression "(char)DAT_000a5230" ( (type_descriptor "char" primitive_type) ) identifier) + number_literal)) ;) (expression_statement "DAT_000a5230 = DAT_000a5230 + -4;" (assignment_expression "DAT_000a5230 = DAT_000a5230 + -4" identifier = (binary_expression "DAT_000a5230 + -4" identifier + number_literal)) ;) (expression_statement "_Var2 = getpid();" (assignment_expression "_Var2 = getpid()" identifier = (call_expression "getpid()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3[4] = (char)((uint)_Var2 >> 8);" (assignment_expression "pcVar3[4] = (char)((uint)_Var2 >> 8)" (subscript_expression "pcVar3[4]" identifier [ number_literal ]) = (cast_expression "(char)((uint)_Var2 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)_Var2 >> 8)" ( (binary_expression "(uint)_Var2 >> 8" (cast_expression "(uint)_Var2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "_Var2 = getpid();" (assignment_expression "_Var2 = getpid()" identifier = (call_expression "getpid()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3[5] = (char)_Var2;" (assignment_expression "pcVar3[5] = (char)_Var2" (subscript_expression "pcVar3[5]" identifier [ number_literal ]) = (cast_expression "(char)_Var2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (goto_statement "goto LAB_00064ff0;" goto statement_identifier ;) })) })) })) (expression_statement "pcVar3 = (char *)0x0;" (assignment_expression "pcVar3 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_00064ff0:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar3;\n  }" statement_identifier : (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar3;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(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 pcVar3;\n  }" { (return_statement "return pcVar3;" return identifier ;) }))) (expression_statement "FUN_0006dad0();" (call_expression "FUN_0006dad0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE 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 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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (pointer_expression * IDENT)) == (pointer_expression & IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (pointer_expression & IDENT) , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (field_expression (field_expression IDENT . field_identifier) . field_identifier))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression IDENT (argument_list ( (field_expression (field_expression IDENT . field_identifier) . field_identifier) , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression IDENT (argument_list ( (field_expression (field_expression IDENT . field_identifier) . field_identifier) , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression IDENT (argument_list ( (field_expression (field_expression IDENT . field_identifier) . field_identifier) , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (field_expression (field_expression IDENT . field_identifier) . field_identifier)) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (field_expression (field_expression IDENT . field_identifier) . field_identifier) == LIT) && (binary_expression (field_expression (field_expression IDENT . field_identifier) . field_identifier) == LIT)) )) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (field_expression (field_expression IDENT . field_identifier) . field_identifier)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) }))) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (goto_statement goto statement_identifier ;) })) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (labeled_statement statement_identifier : (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 "char * FUN_00064f70(int *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  __pid_t _Var2;\n  char *pcVar3;\n  int in_GS_OFFSET;\n  socklen_t local_94;\n  sockaddr local_90;\n  int local_80;\n  undefined4 local_7c;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x64f77;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((undefined **)*param_1 == &PTR_FUN_000a5240) {\n    local_94 = 0x80;\n    iVar1 = getsockname(param_1[2],&local_90,&local_94);\n    if (-1 < iVar1) {\n      if (local_90.sa_family == 2) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 10) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 1) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }\n  }\n  pcVar3 = (char *)0x0;\nLAB_00064ff0:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar3;\n  }\n                    \n  FUN_0006dad0();\n}" (primitive_type "char") (pointer_declarator "* FUN_00064f70(int *param_1,undefined4 *param_2)" (* "*") (function_declarator "FUN_00064f70(int *param_1,undefined4 *param_2)" (identifier "FUN_00064f70") (parameter_list "(int *param_1,undefined4 *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  int iVar1;\n  __pid_t _Var2;\n  char *pcVar3;\n  int in_GS_OFFSET;\n  socklen_t local_94;\n  sockaddr local_90;\n  int local_80;\n  undefined4 local_7c;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x64f77;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((undefined **)*param_1 == &PTR_FUN_000a5240) {\n    local_94 = 0x80;\n    iVar1 = getsockname(param_1[2],&local_90,&local_94);\n    if (-1 < iVar1) {\n      if (local_90.sa_family == 2) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 10) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 1) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }\n  }\n  pcVar3 = (char *)0x0;\nLAB_00064ff0:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar3;\n  }\n                    \n  FUN_0006dad0();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "__pid_t _Var2;" (type_identifier "__pid_t") (identifier "_Var2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "socklen_t local_94;" (type_identifier "socklen_t") (identifier "local_94") (; ";")) (declaration "sockaddr local_90;" (type_identifier "sockaddr") (identifier "local_90") (; ";")) (declaration "int local_80;" (primitive_type "int") (identifier "local_80") (; ";")) (declaration "undefined4 local_7c;" (type_identifier "undefined4") (identifier "local_7c") (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (declaration "undefined4 uStack_c;" (type_identifier "undefined4") (identifier "uStack_c") (; ";")) (expression_statement "uStack_c = 0x64f77;" (assignment_expression "uStack_c = 0x64f77" (identifier "uStack_c") (= "=") (number_literal "0x64f77")) (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if ((undefined **)*param_1 == &PTR_FUN_000a5240) {\n    local_94 = 0x80;\n    iVar1 = getsockname(param_1[2],&local_90,&local_94);\n    if (-1 < iVar1) {\n      if (local_90.sa_family == 2) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 10) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 1) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }\n  }" (if "if") (parenthesized_expression "((undefined **)*param_1 == &PTR_FUN_000a5240)" (( "(") (binary_expression "(undefined **)*param_1 == &PTR_FUN_000a5240" (cast_expression "(undefined **)*param_1" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (== "==") (pointer_expression "&PTR_FUN_000a5240" (& "&") (identifier "PTR_FUN_000a5240"))) () ")")) (compound_statement "{\n    local_94 = 0x80;\n    iVar1 = getsockname(param_1[2],&local_90,&local_94);\n    if (-1 < iVar1) {\n      if (local_90.sa_family == 2) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 10) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 1) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }\n  }" ({ "{") (expression_statement "local_94 = 0x80;" (assignment_expression "local_94 = 0x80" (identifier "local_94") (= "=") (number_literal "0x80")) (; ";")) (expression_statement "iVar1 = getsockname(param_1[2],&local_90,&local_94);" (assignment_expression "iVar1 = getsockname(param_1[2],&local_90,&local_94)" (identifier "iVar1") (= "=") (call_expression "getsockname(param_1[2],&local_90,&local_94)" (identifier "getsockname") (argument_list "(param_1[2],&local_90,&local_94)" (( "(") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (, ",") (pointer_expression "&local_90" (& "&") (identifier "local_90")) (, ",") (pointer_expression "&local_94" (& "&") (identifier "local_94")) () ")")))) (; ";")) (if_statement "if (-1 < iVar1) {\n      if (local_90.sa_family == 2) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 10) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 1) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }" (if "if") (parenthesized_expression "(-1 < iVar1)" (( "(") (binary_expression "-1 < iVar1" (number_literal "-1") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n      if (local_90.sa_family == 2) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 10) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }\n      if (local_90.sa_family == 1) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }\n    }" ({ "{") (if_statement "if (local_90.sa_family == 2) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }" (if "if") (parenthesized_expression "(local_90.sa_family == 2)" (( "(") (binary_expression "local_90.sa_family == 2" (field_expression "local_90.sa_family" (identifier "local_90") (. ".") (field_identifier "sa_family")) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)local_90.sa_data._2_4_;\n        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);\n        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);\n        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);\n        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        goto LAB_00064ff0;\n      }" ({ "{") (expression_statement "*param_2 = 6;" (assignment_expression "*param_2 = 6" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "6")) (; ";")) (expression_statement "pcVar3 = (char *)FUN_0001c990(6,1);" (assignment_expression "pcVar3 = (char *)FUN_0001c990(6,1)" (identifier "pcVar3") (= "=") (cast_expression "(char *)FUN_0001c990(6,1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001c990(6,1)" (identifier "FUN_0001c990") (argument_list "(6,1)" (( "(") (number_literal "6") (, ",") (number_literal "1") () ")"))))) (; ";")) (expression_statement "*pcVar3 = (char)local_90.sa_data._2_4_;" (assignment_expression "*pcVar3 = (char)local_90.sa_data._2_4_" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (cast_expression "(char)local_90.sa_data._2_4_" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (field_expression "local_90.sa_data._2_4_" (field_expression "local_90.sa_data" (identifier "local_90") (. ".") (field_identifier "sa_data")) (. ".") (field_identifier "_2_4_")))) (; ";")) (expression_statement "pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);" (assignment_expression "pcVar3[1] = SUB41(local_90.sa_data._2_4_,1)" (subscript_expression "pcVar3[1]" (identifier "pcVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (call_expression "SUB41(local_90.sa_data._2_4_,1)" (identifier "SUB41") (argument_list "(local_90.sa_data._2_4_,1)" (( "(") (field_expression "local_90.sa_data._2_4_" (field_expression "local_90.sa_data" (identifier "local_90") (. ".") (field_identifier "sa_data")) (. ".") (field_identifier "_2_4_")) (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);" (assignment_expression "pcVar3[2] = SUB41(local_90.sa_data._2_4_,2)" (subscript_expression "pcVar3[2]" (identifier "pcVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (call_expression "SUB41(local_90.sa_data._2_4_,2)" (identifier "SUB41") (argument_list "(local_90.sa_data._2_4_,2)" (( "(") (field_expression "local_90.sa_data._2_4_" (field_expression "local_90.sa_data" (identifier "local_90") (. ".") (field_identifier "sa_data")) (. ".") (field_identifier "_2_4_")) (, ",") (number_literal "2") () ")")))) (; ";")) (expression_statement "pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);" (assignment_expression "pcVar3[3] = SUB41(local_90.sa_data._2_4_,3)" (subscript_expression "pcVar3[3]" (identifier "pcVar3") ([ "[") (number_literal "3") (] "]")) (= "=") (call_expression "SUB41(local_90.sa_data._2_4_,3)" (identifier "SUB41") (argument_list "(local_90.sa_data._2_4_,3)" (( "(") (field_expression "local_90.sa_data._2_4_" (field_expression "local_90.sa_data" (identifier "local_90") (. ".") (field_identifier "sa_data")) (. ".") (field_identifier "_2_4_")) (, ",") (number_literal "3") () ")")))) (; ";")) (expression_statement "*(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;" (assignment_expression "*(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_" (pointer_expression "*(undefined2 *)(pcVar3 + 4)" (* "*") (cast_expression "(undefined2 *)(pcVar3 + 4)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar3 + 4)" (( "(") (binary_expression "pcVar3 + 4" (identifier "pcVar3") (+ "+") (number_literal "4")) () ")")))) (= "=") (field_expression "local_90.sa_data._0_2_" (field_expression "local_90.sa_data" (identifier "local_90") (. ".") (field_identifier "sa_data")) (. ".") (field_identifier "_0_2_"))) (; ";")) (goto_statement "goto LAB_00064ff0;" (goto "goto") (statement_identifier "LAB_00064ff0") (; ";")) (} "}"))) (if_statement "if (local_90.sa_family == 10) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }" (if "if") (parenthesized_expression "(local_90.sa_family == 10)" (( "(") (binary_expression "local_90.sa_family == 10" (field_expression "local_90.sa_family" (identifier "local_90") (. ".") (field_identifier "sa_family")) (== "==") (number_literal "10")) () ")")) (compound_statement "{\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }\n        goto LAB_00064ff0;\n      }" ({ "{") (expression_statement "*param_2 = 6;" (assignment_expression "*param_2 = 6" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "6")) (; ";")) (expression_statement "pcVar3 = (char *)FUN_0001c990(6,1);" (assignment_expression "pcVar3 = (char *)FUN_0001c990(6,1)" (identifier "pcVar3") (= "=") (cast_expression "(char *)FUN_0001c990(6,1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001c990(6,1)" (identifier "FUN_0001c990") (argument_list "(6,1)" (( "(") (number_literal "6") (, ",") (number_literal "1") () ")"))))) (; ";")) (if_statement "if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))\n        {\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }\n        else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }" (if "if") (parenthesized_expression "((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))" (( "(") (binary_expression "(local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000)" (parenthesized_expression "(local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0)" (( "(") (binary_expression "local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0" (binary_expression "local_90.sa_data._6_4_ == 0" (field_expression "local_90.sa_data._6_4_" (field_expression "local_90.sa_data" (identifier "local_90") (. ".") (field_identifier "sa_data")) (. ".") (field_identifier "_6_4_")) (== "==") (number_literal "0")) (&& "&&") (binary_expression "local_90.sa_data._10_4_ == 0" (field_expression "local_90.sa_data._10_4_" (field_expression "local_90.sa_data" (identifier "local_90") (. ".") (field_identifier "sa_data")) (. ".") (field_identifier "_10_4_")) (== "==") (number_literal "0"))) () ")")) (&& "&&") (parenthesized_expression "(local_80 == -0x10000)" (( "(") (binary_expression "local_80 == -0x10000" (identifier "local_80") (== "==") (number_literal "-0x10000")) () ")"))) () ")")) (compound_statement "{\n          *(undefined4 *)pcVar3 = local_7c;\n          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;\n        }" ({ "{") (expression_statement "*(undefined4 *)pcVar3 = local_7c;" (assignment_expression "*(undefined4 *)pcVar3 = local_7c" (pointer_expression "*(undefined4 *)pcVar3" (* "*") (cast_expression "(undefined4 *)pcVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "pcVar3"))) (= "=") (identifier "local_7c")) (; ";")) (expression_statement "*(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;" (assignment_expression "*(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_" (pointer_expression "*(undefined2 *)(pcVar3 + 4)" (* "*") (cast_expression "(undefined2 *)(pcVar3 + 4)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar3 + 4)" (( "(") (binary_expression "pcVar3 + 4" (identifier "pcVar3") (+ "+") (number_literal "4")) () ")")))) (= "=") (field_expression "local_90.sa_data._0_2_" (field_expression "local_90.sa_data" (identifier "local_90") (. ".") (field_identifier "sa_data")) (. ".") (field_identifier "_0_2_"))) (; ";")) (} "}")) (else_clause "else {\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }" (else "else") (compound_statement "{\n          pcVar3[0] = '\0';\n          pcVar3[1] = '\0';\n          pcVar3[2] = '\0';\n          pcVar3[3] = '\0';\n          pcVar3[4] = '\0';\n          pcVar3[5] = '\0';\n        }" ({ "{") (expression_statement "pcVar3[0] = '\0';" (assignment_expression "pcVar3[0] = '\0'" (subscript_expression "pcVar3[0]" (identifier "pcVar3") ([ "[") (number_literal "0") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "pcVar3[1] = '\0';" (assignment_expression "pcVar3[1] = '\0'" (subscript_expression "pcVar3[1]" (identifier "pcVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "pcVar3[2] = '\0';" (assignment_expression "pcVar3[2] = '\0'" (subscript_expression "pcVar3[2]" (identifier "pcVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "pcVar3[3] = '\0';" (assignment_expression "pcVar3[3] = '\0'" (subscript_expression "pcVar3[3]" (identifier "pcVar3") ([ "[") (number_literal "3") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "pcVar3[4] = '\0';" (assignment_expression "pcVar3[4] = '\0'" (subscript_expression "pcVar3[4]" (identifier "pcVar3") ([ "[") (number_literal "4") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "pcVar3[5] = '\0';" (assignment_expression "pcVar3[5] = '\0'" (subscript_expression "pcVar3[5]" (identifier "pcVar3") ([ "[") (number_literal "5") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}")))) (goto_statement "goto LAB_00064ff0;" (goto "goto") (statement_identifier "LAB_00064ff0") (; ";")) (} "}"))) (if_statement "if (local_90.sa_family == 1) {\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }" (if "if") (parenthesized_expression "(local_90.sa_family == 1)" (( "(") (binary_expression "local_90.sa_family == 1" (field_expression "local_90.sa_family" (identifier "local_90") (. ".") (field_identifier "sa_family")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        *param_2 = 6;\n        pcVar3 = (char *)FUN_0001c990(6,1);\n        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);\n        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);\n        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);\n        pcVar3[3] = (char)DAT_000a5230 + -3;\n        DAT_000a5230 = DAT_000a5230 + -4;\n        _Var2 = getpid();\n        pcVar3[4] = (char)((uint)_Var2 >> 8);\n        _Var2 = getpid();\n        pcVar3[5] = (char)_Var2;\n        goto LAB_00064ff0;\n      }" ({ "{") (expression_statement "*param_2 = 6;" (assignment_expression "*param_2 = 6" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "6")) (; ";")) (expression_statement "pcVar3 = (char *)FUN_0001c990(6,1);" (assignment_expression "pcVar3 = (char *)FUN_0001c990(6,1)" (identifier "pcVar3") (= "=") (cast_expression "(char *)FUN_0001c990(6,1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001c990(6,1)" (identifier "FUN_0001c990") (argument_list "(6,1)" (( "(") (number_literal "6") (, ",") (number_literal "1") () ")"))))) (; ";")) (expression_statement "*pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);" (assignment_expression "*pcVar3 = (char)((uint)DAT_000a5230 >> 0x18)" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (cast_expression "(char)((uint)DAT_000a5230 >> 0x18)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)DAT_000a5230 >> 0x18)" (( "(") (binary_expression "(uint)DAT_000a5230 >> 0x18" (cast_expression "(uint)DAT_000a5230" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "DAT_000a5230")) (>> ">>") (number_literal "0x18")) () ")")))) (; ";")) (expression_statement "pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);" (assignment_expression "pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10)" (subscript_expression "pcVar3[1]" (identifier "pcVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(char)((uint)(DAT_000a5230 + -1) >> 0x10)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)(DAT_000a5230 + -1) >> 0x10)" (( "(") (binary_expression "(uint)(DAT_000a5230 + -1) >> 0x10" (call_expression "(uint)(DAT_000a5230 + -1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(DAT_000a5230 + -1)" (( "(") (binary_expression "DAT_000a5230 + -1" (identifier "DAT_000a5230") (+ "+") (number_literal "-1")) () ")"))) (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);" (assignment_expression "pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8)" (subscript_expression "pcVar3[2]" (identifier "pcVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(char)((uint)(DAT_000a5230 + -2) >> 8)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)(DAT_000a5230 + -2) >> 8)" (( "(") (binary_expression "(uint)(DAT_000a5230 + -2) >> 8" (call_expression "(uint)(DAT_000a5230 + -2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(DAT_000a5230 + -2)" (( "(") (binary_expression "DAT_000a5230 + -2" (identifier "DAT_000a5230") (+ "+") (number_literal "-2")) () ")"))) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "pcVar3[3] = (char)DAT_000a5230 + -3;" (assignment_expression "pcVar3[3] = (char)DAT_000a5230 + -3" (subscript_expression "pcVar3[3]" (identifier "pcVar3") ([ "[") (number_literal "3") (] "]")) (= "=") (binary_expression "(char)DAT_000a5230 + -3" (cast_expression "(char)DAT_000a5230" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "DAT_000a5230")) (+ "+") (number_literal "-3"))) (; ";")) (expression_statement "DAT_000a5230 = DAT_000a5230 + -4;" (assignment_expression "DAT_000a5230 = DAT_000a5230 + -4" (identifier "DAT_000a5230") (= "=") (binary_expression "DAT_000a5230 + -4" (identifier "DAT_000a5230") (+ "+") (number_literal "-4"))) (; ";")) (expression_statement "_Var2 = getpid();" (assignment_expression "_Var2 = getpid()" (identifier "_Var2") (= "=") (call_expression "getpid()" (identifier "getpid") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar3[4] = (char)((uint)_Var2 >> 8);" (assignment_expression "pcVar3[4] = (char)((uint)_Var2 >> 8)" (subscript_expression "pcVar3[4]" (identifier "pcVar3") ([ "[") (number_literal "4") (] "]")) (= "=") (cast_expression "(char)((uint)_Var2 >> 8)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)_Var2 >> 8)" (( "(") (binary_expression "(uint)_Var2 >> 8" (cast_expression "(uint)_Var2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "_Var2")) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "_Var2 = getpid();" (assignment_expression "_Var2 = getpid()" (identifier "_Var2") (= "=") (call_expression "getpid()" (identifier "getpid") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar3[5] = (char)_Var2;" (assignment_expression "pcVar3[5] = (char)_Var2" (subscript_expression "pcVar3[5]" (identifier "pcVar3") ([ "[") (number_literal "5") (] "]")) (= "=") (cast_expression "(char)_Var2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "_Var2"))) (; ";")) (goto_statement "goto LAB_00064ff0;" (goto "goto") (statement_identifier "LAB_00064ff0") (; ";")) (} "}"))) (} "}"))) (} "}"))) (expression_statement "pcVar3 = (char *)0x0;" (assignment_expression "pcVar3 = (char *)0x0" (identifier "pcVar3") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (labeled_statement "LAB_00064ff0:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar3;\n  }" (statement_identifier "LAB_00064ff0") (: ":") (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar3;\n  }" (if "if") (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (== "==") (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 pcVar3;\n  }" ({ "{") (return_statement "return pcVar3;" (return "return") (identifier "pcVar3") (; ";")) (} "}")))) (expression_statement "FUN_0006dad0();" (call_expression "FUN_0006dad0()" (identifier "FUN_0006dad0") (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 */

void * function_1(void *sock,int *lenp)

{
  int var_3;
  type_1 _Var2;
  type_2 *var_6;
  int var_1;
  type_3 addrlen;
  type_4 u;
  int var_9;
  type_2 uStack_c;
  
  uStack_c = 0x64f77;
  var_9 = *(int *)(var_1 + 0x14);
                    /* WARNING: Load size is inaccurate */
  if (*sock == &tcp_fn_table) {
    addrlen = 0x80;
    var_3 = var_2(*(int *)((int)sock + 8),(type_5 *)&u.storage,&addrlen);
    if (-1 < var_3) {
      if (u.storage.ss_family == 2) {
        *lenp = 6;
        var_6 = (type_2 *)var_4(6,1);
        *(char *)var_6 = u.sin.sin_addr.s_addr.s_addr;
        *(char *)((int)var_6 + 1) = var_5(u.sin.sin_addr.s_addr,1);
        *(char *)((int)var_6 + 2) = var_5(u.sin.sin_addr.s_addr,2);
        *(char *)((int)var_6 + 3) = var_5(u.sin.sin_addr.s_addr,3);
        *(type_6 *)(var_6 + 1) = u.sin.sin_port;
        goto LAB_00064ff0;
      }
      if (u.storage.ss_family == 10) {
        *lenp = 6;
        var_6 = (type_2 *)var_4(6,1);
        if ((u._8_4_ == 0 && u._12_4_ == 0) && (u._16_4_ == -0x10000)) {
          *var_6 = u._20_4_;
          *(type_6 *)(var_6 + 1) = u.sin.sin_port;
        }
        else {
          *var_6 = 0;
          *(type_7 *)(var_6 + 1) = 0;
        }
        goto LAB_00064ff0;
      }
      if (u.storage.ss_family == 1) {
        *lenp = 6;
        var_6 = (type_2 *)var_4(6,1);
        *(char *)var_6 = (char)(function_1::var_7 >> 0x18);
        *(char *)((int)var_6 + 1) = (char)(function_1::var_7 - 1 >> 0x10);
        *(char *)((int)var_6 + 2) = (char)(function_1::var_7 - 2 >> 8);
        *(char *)((int)var_6 + 3) = (char)function_1::var_7 + -3;
        sk_getxdmdata::var_7 = function_1::var_7 - 4;
        _Var2 = var_8();
        *(char *)(var_6 + 1) = (char)((type_8)_Var2 >> 8);
        _Var2 = var_8();
        *(char *)((int)var_6 + 5) = (char)_Var2;
        goto LAB_00064ff0;
      }
    }
  }
  var_6 = (type_2 *)0x0;
LAB_00064ff0:
  if (var_9 == *(int *)(var_1 + 0x14)) {
    return var_6;
  }
                    /* WARNING: Subroutine does not return */
  var_10();
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (primitive_type) 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: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (pointer_expression argument: (identifier))) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (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: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (field_expression argument: (field_expression argument: (identifier) field: (field_identifier)) field: (field_identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (call_expression function: (identifier) arguments: (argument_list (field_expression argument: (field_expression argument: (identifier) field: (field_identifier)) field: (field_identifier)) (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (call_expression function: (identifier) arguments: (argument_list (field_expression argument: (field_expression argument: (identifier) field: (field_identifier)) field: (field_identifier)) (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (call_expression function: (identifier) arguments: (argument_list (field_expression argument: (field_expression argument: (identifier) field: (field_identifier)) field: (field_identifier)) (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (field_expression argument: (field_expression argument: (identifier) field: (field_identifier)) field: (field_identifier)))) (goto_statement label: (statement_identifier)))) (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: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (field_expression argument: (field_expression argument: (identifier) field: (field_identifier)) field: (field_identifier)) right: (number_literal)) right: (binary_expression left: (field_expression argument: (field_expression argument: (identifier) field: (field_identifier)) field: (field_identifier)) right: (number_literal)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (field_expression argument: (field_expression argument: (identifier) field: (field_identifier)) field: (field_identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence))))))) (goto_statement label: (statement_identifier)))) (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: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (goto_statement label: (statement_identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (labeled_statement label: (statement_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 */

char * MASKED(int *param_1,undefined4 *param_2)

{
  int iVar1;
  __pid_t _Var2;
  char *pcVar3;
  int in_GS_OFFSET;
  socklen_t local_94;
  sockaddr local_90;
  int local_80;
  undefined4 local_7c;
  int local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x64f77;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if ((undefined **)*param_1 == &PTR_FUN_000a5240) {
    local_94 = 0x80;
    iVar1 = getsockname(param_1[2],&local_90,&local_94);
    if (-1 < iVar1) {
      if (local_90.sa_family == 2) {
        *param_2 = 6;
        pcVar3 = (char *)FUN_0001c990(6,1);
        *pcVar3 = (char)local_90.sa_data._2_4_;
        pcVar3[1] = SUB41(local_90.sa_data._2_4_,1);
        pcVar3[2] = SUB41(local_90.sa_data._2_4_,2);
        pcVar3[3] = SUB41(local_90.sa_data._2_4_,3);
        *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;
        goto LAB_00064ff0;
      }
      if (local_90.sa_family == 10) {
        *param_2 = 6;
        pcVar3 = (char *)FUN_0001c990(6,1);
        if ((local_90.sa_data._6_4_ == 0 && local_90.sa_data._10_4_ == 0) && (local_80 == -0x10000))
        {
          *(undefined4 *)pcVar3 = local_7c;
          *(undefined2 *)(pcVar3 + 4) = local_90.sa_data._0_2_;
        }
        else {
          pcVar3[0] = '\0';
          pcVar3[1] = '\0';
          pcVar3[2] = '\0';
          pcVar3[3] = '\0';
          pcVar3[4] = '\0';
          pcVar3[5] = '\0';
        }
        goto LAB_00064ff0;
      }
      if (local_90.sa_family == 1) {
        *param_2 = 6;
        pcVar3 = (char *)FUN_0001c990(6,1);
        *pcVar3 = (char)((uint)DAT_000a5230 >> 0x18);
        pcVar3[1] = (char)((uint)(DAT_000a5230 + -1) >> 0x10);
        pcVar3[2] = (char)((uint)(DAT_000a5230 + -2) >> 8);
        pcVar3[3] = (char)DAT_000a5230 + -3;
        DAT_000a5230 = DAT_000a5230 + -4;
        _Var2 = getpid();
        pcVar3[4] = (char)((uint)_Var2 >> 8);
        _Var2 = getpid();
        pcVar3[5] = (char)_Var2;
        goto LAB_00064ff0;
      }
    }
  }
  pcVar3 = (char *)0x0;
LAB_00064ff0:
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return pcVar3;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006dad0();
}

