
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

bfd_elf_version_expr * gldelf64ppc_new_vers_pattern(bfd_elf_version_expr *entry)

{
  char *pcVar1;
  bfd_elf_version_expr *pbVar2;
  size_t sVar3;
  char *pcVar4;
  
  pbVar2 = entry;
  if (((dotsyms != 0) && (*entry->pattern != '.')) &&
     (((entry->field_0x8 & 1) != 0 || (*entry->pattern != '*')))) {
    pbVar2 = (bfd_elf_version_expr *)xmalloc(0xc);
    pcVar1 = entry->pattern;
    *(undefined4 *)&pbVar2->field_0x8 = *(undefined4 *)&entry->field_0x8;
    pbVar2->next = entry;
    pbVar2->pattern = pcVar1;
    sVar3 = strlen(pcVar1);
    pcVar4 = (char *)xmalloc(sVar3 + 2);
    pcVar1 = entry->pattern;
    *pcVar4 = '.';
    memcpy(pcVar4 + 1,pcVar1,sVar3 + 1);
    pbVar2->field_0x8 = pbVar2->field_0x8 | 4;
    pbVar2->pattern = pcVar4;
  }
  return pbVar2;
}



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

int * FUN_00055b00(int *param_1)

{
  char *__s;
  void *__src;
  int *piVar1;
  size_t sVar2;
  undefined1 *puVar3;
  
  piVar1 = param_1;
  if (((DAT_001bfeac != 0) && (*(char *)param_1[1] != '.')) &&
     (((*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*')))) {
    piVar1 = (int *)xmalloc(0xc);
    __s = (char *)param_1[1];
    piVar1[2] = param_1[2];
    *piVar1 = (int)param_1;
    piVar1[1] = (int)__s;
    sVar2 = strlen(__s);
    puVar3 = (undefined1 *)xmalloc(sVar2 + 2);
    __src = (void *)param_1[1];
    *puVar3 = 0x2e;
    memcpy(puVar3 + 1,__src,sVar2 + 1);
    *(byte *)(piVar1 + 2) = *(byte *)(piVar1 + 2) | 4;
    piVar1[1] = (int)puVar3;
  }
  return piVar1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00017bc0
ADD EBX,0x1694f7
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOV EAX,dword ptr [EBX + 0xeac]
TEST EAX,EAX
JZ 0x00055b90
MOV EAX,dword ptr [ESI + 0x4]
MOVZX EAX,byte ptr [EAX]
CMP AL,0x2e
JZ 0x00055b90
TEST byte ptr [ESI + 0x8],0x1
JNZ 0x00055b34
CMP AL,0x2a
JZ 0x00055b90
SUB ESP,0xc
PUSH 0xc
CALL 0x00016e08
MOV EDX,dword ptr [ESI + 0x8]
MOV EDI,EAX
MOV EAX,dword ptr [ESI + 0x4]
MOV dword ptr [EDI + 0x8],EDX
MOV dword ptr [ESP],EAX
MOV dword ptr [EDI],ESI
MOV dword ptr [EDI + 0x4],EAX
CALL 0x000167b0
MOV EBP,EAX
LEA EAX,[EAX + 0x2]
MOV dword ptr [ESP],EAX
ADD EBP,0x1
CALL 0x00016e08
MOV ECX,dword ptr [ESI + 0x4]
MOV ESI,EDI
MOV EDX,EAX
MOV byte ptr [EAX],0x2e
LEA EAX,[EAX + 0x1]
MOV dword ptr [ESP + 0x1c],EDX
ADD ESP,0xc
PUSH EBP
PUSH ECX
PUSH EAX
CALL 0x00016230
MOV EDX,dword ptr [ESP + 0x1c]
OR byte ptr [EDI + 0x8],0x4
ADD ESP,0x10
MOV dword ptr [EDI + 0x4],EDX
ADD ESP,0x1c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * FUN_00055b00(int *param_1)\n\n{\n  char *__s;\n  void *__src;\n  int *piVar1;\n  size_t sVar2;\n  undefined1 *puVar3;\n  \n  piVar1 = param_1;\n  if (((DAT_001bfeac != 0) && (*(char *)param_1[1] != '.')) &&\n     (((*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*')))) {\n    piVar1 = (int *)xmalloc(0xc);\n    __s = (char *)param_1[1];\n    piVar1[2] = param_1[2];\n    *piVar1 = (int)param_1;\n    piVar1[1] = (int)__s;\n    sVar2 = strlen(__s);\n    puVar3 = (undefined1 *)xmalloc(sVar2 + 2);\n    __src = (void *)param_1[1];\n    *puVar3 = 0x2e;\n    memcpy(puVar3 + 1,__src,sVar2 + 1);\n    *(byte *)(piVar1 + 2) = *(byte *)(piVar1 + 2) | 4;\n    piVar1[1] = (int)puVar3;\n  }\n  return piVar1;\n}\n\n" comment (function_definition "int * FUN_00055b00(int *param_1)\n\n{\n  char *__s;\n  void *__src;\n  int *piVar1;\n  size_t sVar2;\n  undefined1 *puVar3;\n  \n  piVar1 = param_1;\n  if (((DAT_001bfeac != 0) && (*(char *)param_1[1] != '.')) &&\n     (((*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*')))) {\n    piVar1 = (int *)xmalloc(0xc);\n    __s = (char *)param_1[1];\n    piVar1[2] = param_1[2];\n    *piVar1 = (int)param_1;\n    piVar1[1] = (int)__s;\n    sVar2 = strlen(__s);\n    puVar3 = (undefined1 *)xmalloc(sVar2 + 2);\n    __src = (void *)param_1[1];\n    *puVar3 = 0x2e;\n    memcpy(puVar3 + 1,__src,sVar2 + 1);\n    *(byte *)(piVar1 + 2) = *(byte *)(piVar1 + 2) | 4;\n    piVar1[1] = (int)puVar3;\n  }\n  return piVar1;\n}" primitive_type (pointer_declarator "* FUN_00055b00(int *param_1)" * (function_declarator "FUN_00055b00(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  char *__s;\n  void *__src;\n  int *piVar1;\n  size_t sVar2;\n  undefined1 *puVar3;\n  \n  piVar1 = param_1;\n  if (((DAT_001bfeac != 0) && (*(char *)param_1[1] != '.')) &&\n     (((*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*')))) {\n    piVar1 = (int *)xmalloc(0xc);\n    __s = (char *)param_1[1];\n    piVar1[2] = param_1[2];\n    *piVar1 = (int)param_1;\n    piVar1[1] = (int)__s;\n    sVar2 = strlen(__s);\n    puVar3 = (undefined1 *)xmalloc(sVar2 + 2);\n    __src = (void *)param_1[1];\n    *puVar3 = 0x2e;\n    memcpy(puVar3 + 1,__src,sVar2 + 1);\n    *(byte *)(piVar1 + 2) = *(byte *)(piVar1 + 2) | 4;\n    piVar1[1] = (int)puVar3;\n  }\n  return piVar1;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "piVar1 = param_1;" (assignment_expression "piVar1 = param_1" identifier = identifier) ;) (if_statement "if (((DAT_001bfeac != 0) && (*(char *)param_1[1] != '.')) &&\n     (((*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*')))) {\n    piVar1 = (int *)xmalloc(0xc);\n    __s = (char *)param_1[1];\n    piVar1[2] = param_1[2];\n    *piVar1 = (int)param_1;\n    piVar1[1] = (int)__s;\n    sVar2 = strlen(__s);\n    puVar3 = (undefined1 *)xmalloc(sVar2 + 2);\n    __src = (void *)param_1[1];\n    *puVar3 = 0x2e;\n    memcpy(puVar3 + 1,__src,sVar2 + 1);\n    *(byte *)(piVar1 + 2) = *(byte *)(piVar1 + 2) | 4;\n    piVar1[1] = (int)puVar3;\n  }" if (parenthesized_expression "(((DAT_001bfeac != 0) && (*(char *)param_1[1] != '.')) &&\n     (((*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*'))))" ( (binary_expression "((DAT_001bfeac != 0) && (*(char *)param_1[1] != '.')) &&\n     (((*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*')))" (parenthesized_expression "((DAT_001bfeac != 0) && (*(char *)param_1[1] != '.'))" ( (binary_expression "(DAT_001bfeac != 0) && (*(char *)param_1[1] != '.')" (parenthesized_expression "(DAT_001bfeac != 0)" ( (binary_expression "DAT_001bfeac != 0" identifier != number_literal) )) && (parenthesized_expression "(*(char *)param_1[1] != '.')" ( (binary_expression "*(char *)param_1[1] != '.'" (pointer_expression "*(char *)param_1[1]" * (cast_expression "(char *)param_1[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) != (char_literal "'.'" ' character ')) ))) )) && (parenthesized_expression "(((*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*')))" ( (parenthesized_expression "((*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*'))" ( (binary_expression "(*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*')" (binary_expression "(*(byte *)(param_1 + 2) & 1) != 0" (parenthesized_expression "(*(byte *)(param_1 + 2) & 1)" ( (binary_expression "*(byte *)(param_1 + 2) & 1" (pointer_expression "*(byte *)(param_1 + 2)" * (cast_expression "(byte *)(param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) & number_literal) )) != number_literal) || (parenthesized_expression "(*(char *)param_1[1] != '*')" ( (binary_expression "*(char *)param_1[1] != '*'" (pointer_expression "*(char *)param_1[1]" * (cast_expression "(char *)param_1[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) != (char_literal "'*'" ' character ')) ))) )) ))) )) (compound_statement "{\n    piVar1 = (int *)xmalloc(0xc);\n    __s = (char *)param_1[1];\n    piVar1[2] = param_1[2];\n    *piVar1 = (int)param_1;\n    piVar1[1] = (int)__s;\n    sVar2 = strlen(__s);\n    puVar3 = (undefined1 *)xmalloc(sVar2 + 2);\n    __src = (void *)param_1[1];\n    *puVar3 = 0x2e;\n    memcpy(puVar3 + 1,__src,sVar2 + 1);\n    *(byte *)(piVar1 + 2) = *(byte *)(piVar1 + 2) | 4;\n    piVar1[1] = (int)puVar3;\n  }" { (expression_statement "piVar1 = (int *)xmalloc(0xc);" (assignment_expression "piVar1 = (int *)xmalloc(0xc)" identifier = (cast_expression "(int *)xmalloc(0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "__s = (char *)param_1[1];" (assignment_expression "__s = (char *)param_1[1]" identifier = (cast_expression "(char *)param_1[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "piVar1[2] = param_1[2];" (assignment_expression "piVar1[2] = param_1[2]" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "*piVar1 = (int)param_1;" (assignment_expression "*piVar1 = (int)param_1" (pointer_expression "*piVar1" * identifier) = (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar1[1] = (int)__s;" (assignment_expression "piVar1[1] = (int)__s" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "sVar2 = strlen(__s);" (assignment_expression "sVar2 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "puVar3 = (undefined1 *)xmalloc(sVar2 + 2);" (assignment_expression "puVar3 = (undefined1 *)xmalloc(sVar2 + 2)" identifier = (cast_expression "(undefined1 *)xmalloc(sVar2 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar2 + 2)" identifier (argument_list "(sVar2 + 2)" ( (binary_expression "sVar2 + 2" identifier + number_literal) ))))) ;) (expression_statement "__src = (void *)param_1[1];" (assignment_expression "__src = (void *)param_1[1]" identifier = (cast_expression "(void *)param_1[1]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "*puVar3 = 0x2e;" (assignment_expression "*puVar3 = 0x2e" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "memcpy(puVar3 + 1,__src,sVar2 + 1);" (call_expression "memcpy(puVar3 + 1,__src,sVar2 + 1)" identifier (argument_list "(puVar3 + 1,__src,sVar2 + 1)" ( (binary_expression "puVar3 + 1" identifier + number_literal) , identifier , (binary_expression "sVar2 + 1" identifier + number_literal) ))) ;) (expression_statement "*(byte *)(piVar1 + 2) = *(byte *)(piVar1 + 2) | 4;" (assignment_expression "*(byte *)(piVar1 + 2) = *(byte *)(piVar1 + 2) | 4" (pointer_expression "*(byte *)(piVar1 + 2)" * (cast_expression "(byte *)(piVar1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 2)" ( (binary_expression "piVar1 + 2" identifier + number_literal) )))) = (binary_expression "*(byte *)(piVar1 + 2) | 4" (pointer_expression "*(byte *)(piVar1 + 2)" * (cast_expression "(byte *)(piVar1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 2)" ( (binary_expression "piVar1 + 2" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "piVar1[1] = (int)puVar3;" (assignment_expression "piVar1[1] = (int)puVar3" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) (return_statement "return piVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nbfd_elf_version_expr * gldelf64ppc_new_vers_pattern(bfd_elf_version_expr *entry)\n\n{\n  char *pcVar1;\n  bfd_elf_version_expr *pbVar2;\n  size_t sVar3;\n  char *pcVar4;\n  \n  pbVar2 = entry;\n  if (((dotsyms != 0) && (*entry->pattern != '.')) &&\n     (((entry->field_0x8 & 1) != 0 || (*entry->pattern != '*')))) {\n    pbVar2 = (bfd_elf_version_expr *)xmalloc(0xc);\n    pcVar1 = entry->pattern;\n    *(undefined4 *)&pbVar2->field_0x8 = *(undefined4 *)&entry->field_0x8;\n    pbVar2->next = entry;\n    pbVar2->pattern = pcVar1;\n    sVar3 = strlen(pcVar1);\n    pcVar4 = (char *)xmalloc(sVar3 + 2);\n    pcVar1 = entry->pattern;\n    *pcVar4 = '.';\n    memcpy(pcVar4 + 1,pcVar1,sVar3 + 1);\n    pbVar2->field_0x8 = pbVar2->field_0x8 | 4;\n    pbVar2->pattern = pcVar4;\n  }\n  return pbVar2;\n}\n\n" comment comment (function_definition "bfd_elf_version_expr * gldelf64ppc_new_vers_pattern(bfd_elf_version_expr *entry)\n\n{\n  char *pcVar1;\n  bfd_elf_version_expr *pbVar2;\n  size_t sVar3;\n  char *pcVar4;\n  \n  pbVar2 = entry;\n  if (((dotsyms != 0) && (*entry->pattern != '.')) &&\n     (((entry->field_0x8 & 1) != 0 || (*entry->pattern != '*')))) {\n    pbVar2 = (bfd_elf_version_expr *)xmalloc(0xc);\n    pcVar1 = entry->pattern;\n    *(undefined4 *)&pbVar2->field_0x8 = *(undefined4 *)&entry->field_0x8;\n    pbVar2->next = entry;\n    pbVar2->pattern = pcVar1;\n    sVar3 = strlen(pcVar1);\n    pcVar4 = (char *)xmalloc(sVar3 + 2);\n    pcVar1 = entry->pattern;\n    *pcVar4 = '.';\n    memcpy(pcVar4 + 1,pcVar1,sVar3 + 1);\n    pbVar2->field_0x8 = pbVar2->field_0x8 | 4;\n    pbVar2->pattern = pcVar4;\n  }\n  return pbVar2;\n}" type_identifier (pointer_declarator "* gldelf64ppc_new_vers_pattern(bfd_elf_version_expr *entry)" * (function_declarator "gldelf64ppc_new_vers_pattern(bfd_elf_version_expr *entry)" identifier (parameter_list "(bfd_elf_version_expr *entry)" ( (parameter_declaration "bfd_elf_version_expr *entry" type_identifier (pointer_declarator "*entry" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  bfd_elf_version_expr *pbVar2;\n  size_t sVar3;\n  char *pcVar4;\n  \n  pbVar2 = entry;\n  if (((dotsyms != 0) && (*entry->pattern != '.')) &&\n     (((entry->field_0x8 & 1) != 0 || (*entry->pattern != '*')))) {\n    pbVar2 = (bfd_elf_version_expr *)xmalloc(0xc);\n    pcVar1 = entry->pattern;\n    *(undefined4 *)&pbVar2->field_0x8 = *(undefined4 *)&entry->field_0x8;\n    pbVar2->next = entry;\n    pbVar2->pattern = pcVar1;\n    sVar3 = strlen(pcVar1);\n    pcVar4 = (char *)xmalloc(sVar3 + 2);\n    pcVar1 = entry->pattern;\n    *pcVar4 = '.';\n    memcpy(pcVar4 + 1,pcVar1,sVar3 + 1);\n    pbVar2->field_0x8 = pbVar2->field_0x8 | 4;\n    pbVar2->pattern = pcVar4;\n  }\n  return pbVar2;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "bfd_elf_version_expr *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (expression_statement "pbVar2 = entry;" (assignment_expression "pbVar2 = entry" identifier = identifier) ;) (if_statement "if (((dotsyms != 0) && (*entry->pattern != '.')) &&\n     (((entry->field_0x8 & 1) != 0 || (*entry->pattern != '*')))) {\n    pbVar2 = (bfd_elf_version_expr *)xmalloc(0xc);\n    pcVar1 = entry->pattern;\n    *(undefined4 *)&pbVar2->field_0x8 = *(undefined4 *)&entry->field_0x8;\n    pbVar2->next = entry;\n    pbVar2->pattern = pcVar1;\n    sVar3 = strlen(pcVar1);\n    pcVar4 = (char *)xmalloc(sVar3 + 2);\n    pcVar1 = entry->pattern;\n    *pcVar4 = '.';\n    memcpy(pcVar4 + 1,pcVar1,sVar3 + 1);\n    pbVar2->field_0x8 = pbVar2->field_0x8 | 4;\n    pbVar2->pattern = pcVar4;\n  }" if (parenthesized_expression "(((dotsyms != 0) && (*entry->pattern != '.')) &&\n     (((entry->field_0x8 & 1) != 0 || (*entry->pattern != '*'))))" ( (binary_expression "((dotsyms != 0) && (*entry->pattern != '.')) &&\n     (((entry->field_0x8 & 1) != 0 || (*entry->pattern != '*')))" (parenthesized_expression "((dotsyms != 0) && (*entry->pattern != '.'))" ( (binary_expression "(dotsyms != 0) && (*entry->pattern != '.')" (parenthesized_expression "(dotsyms != 0)" ( (binary_expression "dotsyms != 0" identifier != number_literal) )) && (parenthesized_expression "(*entry->pattern != '.')" ( (binary_expression "*entry->pattern != '.'" (pointer_expression "*entry->pattern" * (field_expression "entry->pattern" identifier -> field_identifier)) != (char_literal "'.'" ' character ')) ))) )) && (parenthesized_expression "(((entry->field_0x8 & 1) != 0 || (*entry->pattern != '*')))" ( (parenthesized_expression "((entry->field_0x8 & 1) != 0 || (*entry->pattern != '*'))" ( (binary_expression "(entry->field_0x8 & 1) != 0 || (*entry->pattern != '*')" (binary_expression "(entry->field_0x8 & 1) != 0" (parenthesized_expression "(entry->field_0x8 & 1)" ( (binary_expression "entry->field_0x8 & 1" (field_expression "entry->field_0x8" identifier -> field_identifier) & number_literal) )) != number_literal) || (parenthesized_expression "(*entry->pattern != '*')" ( (binary_expression "*entry->pattern != '*'" (pointer_expression "*entry->pattern" * (field_expression "entry->pattern" identifier -> field_identifier)) != (char_literal "'*'" ' character ')) ))) )) ))) )) (compound_statement "{\n    pbVar2 = (bfd_elf_version_expr *)xmalloc(0xc);\n    pcVar1 = entry->pattern;\n    *(undefined4 *)&pbVar2->field_0x8 = *(undefined4 *)&entry->field_0x8;\n    pbVar2->next = entry;\n    pbVar2->pattern = pcVar1;\n    sVar3 = strlen(pcVar1);\n    pcVar4 = (char *)xmalloc(sVar3 + 2);\n    pcVar1 = entry->pattern;\n    *pcVar4 = '.';\n    memcpy(pcVar4 + 1,pcVar1,sVar3 + 1);\n    pbVar2->field_0x8 = pbVar2->field_0x8 | 4;\n    pbVar2->pattern = pcVar4;\n  }" { (expression_statement "pbVar2 = (bfd_elf_version_expr *)xmalloc(0xc);" (assignment_expression "pbVar2 = (bfd_elf_version_expr *)xmalloc(0xc)" identifier = (cast_expression "(bfd_elf_version_expr *)xmalloc(0xc)" ( (type_descriptor "bfd_elf_version_expr *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "pcVar1 = entry->pattern;" (assignment_expression "pcVar1 = entry->pattern" identifier = (field_expression "entry->pattern" identifier -> field_identifier)) ;) (expression_statement "*(undefined4 *)&pbVar2->field_0x8 = *(undefined4 *)&entry->field_0x8;" (assignment_expression "*(undefined4 *)&pbVar2->field_0x8 = *(undefined4 *)&entry->field_0x8" (pointer_expression "*(undefined4 *)&pbVar2->field_0x8" * (cast_expression "(undefined4 *)&pbVar2->field_0x8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pbVar2->field_0x8" & (field_expression "pbVar2->field_0x8" identifier -> field_identifier)))) = (pointer_expression "*(undefined4 *)&entry->field_0x8" * (cast_expression "(undefined4 *)&entry->field_0x8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&entry->field_0x8" & (field_expression "entry->field_0x8" identifier -> field_identifier))))) ;) (expression_statement "pbVar2->next = entry;" (assignment_expression "pbVar2->next = entry" (field_expression "pbVar2->next" identifier -> field_identifier) = identifier) ;) (expression_statement "pbVar2->pattern = pcVar1;" (assignment_expression "pbVar2->pattern = pcVar1" (field_expression "pbVar2->pattern" identifier -> field_identifier) = identifier) ;) (expression_statement "sVar3 = strlen(pcVar1);" (assignment_expression "sVar3 = strlen(pcVar1)" identifier = (call_expression "strlen(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "pcVar4 = (char *)xmalloc(sVar3 + 2);" (assignment_expression "pcVar4 = (char *)xmalloc(sVar3 + 2)" identifier = (cast_expression "(char *)xmalloc(sVar3 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar3 + 2)" identifier (argument_list "(sVar3 + 2)" ( (binary_expression "sVar3 + 2" identifier + number_literal) ))))) ;) (expression_statement "pcVar1 = entry->pattern;" (assignment_expression "pcVar1 = entry->pattern" identifier = (field_expression "entry->pattern" identifier -> field_identifier)) ;) (expression_statement "*pcVar4 = '.';" (assignment_expression "*pcVar4 = '.'" (pointer_expression "*pcVar4" * identifier) = (char_literal "'.'" ' character ')) ;) (expression_statement "memcpy(pcVar4 + 1,pcVar1,sVar3 + 1);" (call_expression "memcpy(pcVar4 + 1,pcVar1,sVar3 + 1)" identifier (argument_list "(pcVar4 + 1,pcVar1,sVar3 + 1)" ( (binary_expression "pcVar4 + 1" identifier + number_literal) , identifier , (binary_expression "sVar3 + 1" identifier + number_literal) ))) ;) (expression_statement "pbVar2->field_0x8 = pbVar2->field_0x8 | 4;" (assignment_expression "pbVar2->field_0x8 = pbVar2->field_0x8 | 4" (field_expression "pbVar2->field_0x8" identifier -> field_identifier) = (binary_expression "pbVar2->field_0x8 | 4" (field_expression "pbVar2->field_0x8" identifier -> field_identifier) | number_literal)) ;) (expression_statement "pbVar2->pattern = pcVar4;" (assignment_expression "pbVar2->pattern = pcVar4" (field_expression "pbVar2->pattern" identifier -> field_identifier) = identifier) ;) })) (return_statement "return pbVar2;" return identifier ;) })))
(translation_unit "int * FUN_00055b00(int *param_1)\n\n{\n  char *__s;\n  void *__src;\n  int *piVar1;\n  size_t sVar2;\n  undefined1 *puVar3;\n  \n  piVar1 = param_1;\n  if (((DAT_001bfeac != 0) && (*(char *)param_1[1] != '.')) &&\n     (((*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*')))) {\n    piVar1 = (int *)xmalloc(0xc);\n    __s = (char *)param_1[1];\n    piVar1[2] = param_1[2];\n    *piVar1 = (int)param_1;\n    piVar1[1] = (int)__s;\n    sVar2 = strlen(__s);\n    puVar3 = (undefined1 *)xmalloc(sVar2 + 2);\n    __src = (void *)param_1[1];\n    *puVar3 = 0x2e;\n    memcpy(puVar3 + 1,__src,sVar2 + 1);\n    *(byte *)(piVar1 + 2) = *(byte *)(piVar1 + 2) | 4;\n    piVar1[1] = (int)puVar3;\n  }\n  return piVar1;\n}\n\n" (function_definition "int * FUN_00055b00(int *param_1)\n\n{\n  char *__s;\n  void *__src;\n  int *piVar1;\n  size_t sVar2;\n  undefined1 *puVar3;\n  \n  piVar1 = param_1;\n  if (((DAT_001bfeac != 0) && (*(char *)param_1[1] != '.')) &&\n     (((*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*')))) {\n    piVar1 = (int *)xmalloc(0xc);\n    __s = (char *)param_1[1];\n    piVar1[2] = param_1[2];\n    *piVar1 = (int)param_1;\n    piVar1[1] = (int)__s;\n    sVar2 = strlen(__s);\n    puVar3 = (undefined1 *)xmalloc(sVar2 + 2);\n    __src = (void *)param_1[1];\n    *puVar3 = 0x2e;\n    memcpy(puVar3 + 1,__src,sVar2 + 1);\n    *(byte *)(piVar1 + 2) = *(byte *)(piVar1 + 2) | 4;\n    piVar1[1] = (int)puVar3;\n  }\n  return piVar1;\n}" primitive_type (pointer_declarator "* FUN_00055b00(int *param_1)" * (function_declarator "FUN_00055b00(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  char *__s;\n  void *__src;\n  int *piVar1;\n  size_t sVar2;\n  undefined1 *puVar3;\n  \n  piVar1 = param_1;\n  if (((DAT_001bfeac != 0) && (*(char *)param_1[1] != '.')) &&\n     (((*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*')))) {\n    piVar1 = (int *)xmalloc(0xc);\n    __s = (char *)param_1[1];\n    piVar1[2] = param_1[2];\n    *piVar1 = (int)param_1;\n    piVar1[1] = (int)__s;\n    sVar2 = strlen(__s);\n    puVar3 = (undefined1 *)xmalloc(sVar2 + 2);\n    __src = (void *)param_1[1];\n    *puVar3 = 0x2e;\n    memcpy(puVar3 + 1,__src,sVar2 + 1);\n    *(byte *)(piVar1 + 2) = *(byte *)(piVar1 + 2) | 4;\n    piVar1[1] = (int)puVar3;\n  }\n  return piVar1;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "piVar1 = param_1;" (assignment_expression "piVar1 = param_1" identifier = identifier) ;) (if_statement "if (((DAT_001bfeac != 0) && (*(char *)param_1[1] != '.')) &&\n     (((*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*')))) {\n    piVar1 = (int *)xmalloc(0xc);\n    __s = (char *)param_1[1];\n    piVar1[2] = param_1[2];\n    *piVar1 = (int)param_1;\n    piVar1[1] = (int)__s;\n    sVar2 = strlen(__s);\n    puVar3 = (undefined1 *)xmalloc(sVar2 + 2);\n    __src = (void *)param_1[1];\n    *puVar3 = 0x2e;\n    memcpy(puVar3 + 1,__src,sVar2 + 1);\n    *(byte *)(piVar1 + 2) = *(byte *)(piVar1 + 2) | 4;\n    piVar1[1] = (int)puVar3;\n  }" if (parenthesized_expression "(((DAT_001bfeac != 0) && (*(char *)param_1[1] != '.')) &&\n     (((*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*'))))" ( (binary_expression "((DAT_001bfeac != 0) && (*(char *)param_1[1] != '.')) &&\n     (((*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*')))" (parenthesized_expression "((DAT_001bfeac != 0) && (*(char *)param_1[1] != '.'))" ( (binary_expression "(DAT_001bfeac != 0) && (*(char *)param_1[1] != '.')" (parenthesized_expression "(DAT_001bfeac != 0)" ( (binary_expression "DAT_001bfeac != 0" identifier != number_literal) )) && (parenthesized_expression "(*(char *)param_1[1] != '.')" ( (binary_expression "*(char *)param_1[1] != '.'" (pointer_expression "*(char *)param_1[1]" * (cast_expression "(char *)param_1[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) != (char_literal "'.'" ' character ')) ))) )) && (parenthesized_expression "(((*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*')))" ( (parenthesized_expression "((*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*'))" ( (binary_expression "(*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*')" (binary_expression "(*(byte *)(param_1 + 2) & 1) != 0" (parenthesized_expression "(*(byte *)(param_1 + 2) & 1)" ( (binary_expression "*(byte *)(param_1 + 2) & 1" (pointer_expression "*(byte *)(param_1 + 2)" * (cast_expression "(byte *)(param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) & number_literal) )) != number_literal) || (parenthesized_expression "(*(char *)param_1[1] != '*')" ( (binary_expression "*(char *)param_1[1] != '*'" (pointer_expression "*(char *)param_1[1]" * (cast_expression "(char *)param_1[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) != (char_literal "'*'" ' character ')) ))) )) ))) )) (compound_statement "{\n    piVar1 = (int *)xmalloc(0xc);\n    __s = (char *)param_1[1];\n    piVar1[2] = param_1[2];\n    *piVar1 = (int)param_1;\n    piVar1[1] = (int)__s;\n    sVar2 = strlen(__s);\n    puVar3 = (undefined1 *)xmalloc(sVar2 + 2);\n    __src = (void *)param_1[1];\n    *puVar3 = 0x2e;\n    memcpy(puVar3 + 1,__src,sVar2 + 1);\n    *(byte *)(piVar1 + 2) = *(byte *)(piVar1 + 2) | 4;\n    piVar1[1] = (int)puVar3;\n  }" { (expression_statement "piVar1 = (int *)xmalloc(0xc);" (assignment_expression "piVar1 = (int *)xmalloc(0xc)" identifier = (cast_expression "(int *)xmalloc(0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "__s = (char *)param_1[1];" (assignment_expression "__s = (char *)param_1[1]" identifier = (cast_expression "(char *)param_1[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "piVar1[2] = param_1[2];" (assignment_expression "piVar1[2] = param_1[2]" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "*piVar1 = (int)param_1;" (assignment_expression "*piVar1 = (int)param_1" (pointer_expression "*piVar1" * identifier) = (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar1[1] = (int)__s;" (assignment_expression "piVar1[1] = (int)__s" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "sVar2 = strlen(__s);" (assignment_expression "sVar2 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "puVar3 = (undefined1 *)xmalloc(sVar2 + 2);" (assignment_expression "puVar3 = (undefined1 *)xmalloc(sVar2 + 2)" identifier = (cast_expression "(undefined1 *)xmalloc(sVar2 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar2 + 2)" identifier (argument_list "(sVar2 + 2)" ( (binary_expression "sVar2 + 2" identifier + number_literal) ))))) ;) (expression_statement "__src = (void *)param_1[1];" (assignment_expression "__src = (void *)param_1[1]" identifier = (cast_expression "(void *)param_1[1]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "*puVar3 = 0x2e;" (assignment_expression "*puVar3 = 0x2e" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "memcpy(puVar3 + 1,__src,sVar2 + 1);" (call_expression "memcpy(puVar3 + 1,__src,sVar2 + 1)" identifier (argument_list "(puVar3 + 1,__src,sVar2 + 1)" ( (binary_expression "puVar3 + 1" identifier + number_literal) , identifier , (binary_expression "sVar2 + 1" identifier + number_literal) ))) ;) (expression_statement "*(byte *)(piVar1 + 2) = *(byte *)(piVar1 + 2) | 4;" (assignment_expression "*(byte *)(piVar1 + 2) = *(byte *)(piVar1 + 2) | 4" (pointer_expression "*(byte *)(piVar1 + 2)" * (cast_expression "(byte *)(piVar1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 2)" ( (binary_expression "piVar1 + 2" identifier + number_literal) )))) = (binary_expression "*(byte *)(piVar1 + 2) | 4" (pointer_expression "*(byte *)(piVar1 + 2)" * (cast_expression "(byte *)(piVar1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 2)" ( (binary_expression "piVar1 + 2" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "piVar1[1] = (int)puVar3;" (assignment_expression "piVar1[1] = (int)puVar3" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) (return_statement "return piVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) != (char_literal ' character ')) ))) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) != (char_literal ' character ')) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "int * FUN_00055b00(int *param_1)\n\n{\n  char *__s;\n  void *__src;\n  int *piVar1;\n  size_t sVar2;\n  undefined1 *puVar3;\n  \n  piVar1 = param_1;\n  if (((DAT_001bfeac != 0) && (*(char *)param_1[1] != '.')) &&\n     (((*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*')))) {\n    piVar1 = (int *)xmalloc(0xc);\n    __s = (char *)param_1[1];\n    piVar1[2] = param_1[2];\n    *piVar1 = (int)param_1;\n    piVar1[1] = (int)__s;\n    sVar2 = strlen(__s);\n    puVar3 = (undefined1 *)xmalloc(sVar2 + 2);\n    __src = (void *)param_1[1];\n    *puVar3 = 0x2e;\n    memcpy(puVar3 + 1,__src,sVar2 + 1);\n    *(byte *)(piVar1 + 2) = *(byte *)(piVar1 + 2) | 4;\n    piVar1[1] = (int)puVar3;\n  }\n  return piVar1;\n}" (primitive_type "int") (pointer_declarator "* FUN_00055b00(int *param_1)" (* "*") (function_declarator "FUN_00055b00(int *param_1)" (identifier "FUN_00055b00") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  char *__s;\n  void *__src;\n  int *piVar1;\n  size_t sVar2;\n  undefined1 *puVar3;\n  \n  piVar1 = param_1;\n  if (((DAT_001bfeac != 0) && (*(char *)param_1[1] != '.')) &&\n     (((*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*')))) {\n    piVar1 = (int *)xmalloc(0xc);\n    __s = (char *)param_1[1];\n    piVar1[2] = param_1[2];\n    *piVar1 = (int)param_1;\n    piVar1[1] = (int)__s;\n    sVar2 = strlen(__s);\n    puVar3 = (undefined1 *)xmalloc(sVar2 + 2);\n    __src = (void *)param_1[1];\n    *puVar3 = 0x2e;\n    memcpy(puVar3 + 1,__src,sVar2 + 1);\n    *(byte *)(piVar1 + 2) = *(byte *)(piVar1 + 2) | 4;\n    piVar1[1] = (int)puVar3;\n  }\n  return piVar1;\n}" ({ "{") (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "void *__src;" (primitive_type "void") (pointer_declarator "*__src" (* "*") (identifier "__src")) (; ";")) (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "undefined1 *puVar3;" (type_identifier "undefined1") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (expression_statement "piVar1 = param_1;" (assignment_expression "piVar1 = param_1" (identifier "piVar1") (= "=") (identifier "param_1")) (; ";")) (if_statement "if (((DAT_001bfeac != 0) && (*(char *)param_1[1] != '.')) &&\n     (((*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*')))) {\n    piVar1 = (int *)xmalloc(0xc);\n    __s = (char *)param_1[1];\n    piVar1[2] = param_1[2];\n    *piVar1 = (int)param_1;\n    piVar1[1] = (int)__s;\n    sVar2 = strlen(__s);\n    puVar3 = (undefined1 *)xmalloc(sVar2 + 2);\n    __src = (void *)param_1[1];\n    *puVar3 = 0x2e;\n    memcpy(puVar3 + 1,__src,sVar2 + 1);\n    *(byte *)(piVar1 + 2) = *(byte *)(piVar1 + 2) | 4;\n    piVar1[1] = (int)puVar3;\n  }" (if "if") (parenthesized_expression "(((DAT_001bfeac != 0) && (*(char *)param_1[1] != '.')) &&\n     (((*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*'))))" (( "(") (binary_expression "((DAT_001bfeac != 0) && (*(char *)param_1[1] != '.')) &&\n     (((*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*')))" (parenthesized_expression "((DAT_001bfeac != 0) && (*(char *)param_1[1] != '.'))" (( "(") (binary_expression "(DAT_001bfeac != 0) && (*(char *)param_1[1] != '.')" (parenthesized_expression "(DAT_001bfeac != 0)" (( "(") (binary_expression "DAT_001bfeac != 0" (identifier "DAT_001bfeac") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(char *)param_1[1] != '.')" (( "(") (binary_expression "*(char *)param_1[1] != '.'" (pointer_expression "*(char *)param_1[1]" (* "*") (cast_expression "(char *)param_1[1]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (!= "!=") (char_literal "'.'" (' "'") (character ".") (' "'"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(((*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*')))" (( "(") (parenthesized_expression "((*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*'))" (( "(") (binary_expression "(*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*')" (binary_expression "(*(byte *)(param_1 + 2) & 1) != 0" (parenthesized_expression "(*(byte *)(param_1 + 2) & 1)" (( "(") (binary_expression "*(byte *)(param_1 + 2) & 1" (pointer_expression "*(byte *)(param_1 + 2)" (* "*") (cast_expression "(byte *)(param_1 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) (|| "||") (parenthesized_expression "(*(char *)param_1[1] != '*')" (( "(") (binary_expression "*(char *)param_1[1] != '*'" (pointer_expression "*(char *)param_1[1]" (* "*") (cast_expression "(char *)param_1[1]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (!= "!=") (char_literal "'*'" (' "'") (character "*") (' "'"))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    piVar1 = (int *)xmalloc(0xc);\n    __s = (char *)param_1[1];\n    piVar1[2] = param_1[2];\n    *piVar1 = (int)param_1;\n    piVar1[1] = (int)__s;\n    sVar2 = strlen(__s);\n    puVar3 = (undefined1 *)xmalloc(sVar2 + 2);\n    __src = (void *)param_1[1];\n    *puVar3 = 0x2e;\n    memcpy(puVar3 + 1,__src,sVar2 + 1);\n    *(byte *)(piVar1 + 2) = *(byte *)(piVar1 + 2) | 4;\n    piVar1[1] = (int)puVar3;\n  }" ({ "{") (expression_statement "piVar1 = (int *)xmalloc(0xc);" (assignment_expression "piVar1 = (int *)xmalloc(0xc)" (identifier "piVar1") (= "=") (cast_expression "(int *)xmalloc(0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0xc)" (identifier "xmalloc") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")"))))) (; ";")) (expression_statement "__s = (char *)param_1[1];" (assignment_expression "__s = (char *)param_1[1]" (identifier "__s") (= "=") (cast_expression "(char *)param_1[1]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "piVar1[2] = param_1[2];" (assignment_expression "piVar1[2] = param_1[2]" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "*piVar1 = (int)param_1;" (assignment_expression "*piVar1 = (int)param_1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) (; ";")) (expression_statement "piVar1[1] = (int)__s;" (assignment_expression "piVar1[1] = (int)__s" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(int)__s" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s"))) (; ";")) (expression_statement "sVar2 = strlen(__s);" (assignment_expression "sVar2 = strlen(__s)" (identifier "sVar2") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "puVar3 = (undefined1 *)xmalloc(sVar2 + 2);" (assignment_expression "puVar3 = (undefined1 *)xmalloc(sVar2 + 2)" (identifier "puVar3") (= "=") (cast_expression "(undefined1 *)xmalloc(sVar2 + 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar2 + 2)" (identifier "xmalloc") (argument_list "(sVar2 + 2)" (( "(") (binary_expression "sVar2 + 2" (identifier "sVar2") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "__src = (void *)param_1[1];" (assignment_expression "__src = (void *)param_1[1]" (identifier "__src") (= "=") (cast_expression "(void *)param_1[1]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "*puVar3 = 0x2e;" (assignment_expression "*puVar3 = 0x2e" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0x2e")) (; ";")) (expression_statement "memcpy(puVar3 + 1,__src,sVar2 + 1);" (call_expression "memcpy(puVar3 + 1,__src,sVar2 + 1)" (identifier "memcpy") (argument_list "(puVar3 + 1,__src,sVar2 + 1)" (( "(") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1")) (, ",") (identifier "__src") (, ",") (binary_expression "sVar2 + 1" (identifier "sVar2") (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "*(byte *)(piVar1 + 2) = *(byte *)(piVar1 + 2) | 4;" (assignment_expression "*(byte *)(piVar1 + 2) = *(byte *)(piVar1 + 2) | 4" (pointer_expression "*(byte *)(piVar1 + 2)" (* "*") (cast_expression "(byte *)(piVar1 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1 + 2)" (( "(") (binary_expression "piVar1 + 2" (identifier "piVar1") (+ "+") (number_literal "2")) () ")")))) (= "=") (binary_expression "*(byte *)(piVar1 + 2) | 4" (pointer_expression "*(byte *)(piVar1 + 2)" (* "*") (cast_expression "(byte *)(piVar1 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1 + 2)" (( "(") (binary_expression "piVar1 + 2" (identifier "piVar1") (+ "+") (number_literal "2")) () ")")))) (| "|") (number_literal "4"))) (; ";")) (expression_statement "piVar1[1] = (int)puVar3;" (assignment_expression "piVar1[1] = (int)puVar3" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3"))) (; ";")) (} "}"))) (return_statement "return piVar1;" (return "return") (identifier "piVar1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

type_1 * function_1(type_1 *entry)

{
  char *pcVar1;
  type_1 *pbVar2;
  size_t var_4;
  char *var_6;
  
  pbVar2 = entry;
  if (((var_1 != 0) && (*entry->pattern != '.')) &&
     (((entry->field_0x8 & 1) != 0 || (*entry->pattern != '*')))) {
    pbVar2 = (type_1 *)var_2(0xc);
    pcVar1 = entry->pattern;
    *(type_2 *)&pbVar2->field_0x8 = *(type_2 *)&entry->field_0x8;
    pbVar2->next = entry;
    pbVar2->pattern = pcVar1;
    var_4 = var_3(pcVar1);
    var_6 = (char *)var_2(var_4 + 2);
    pcVar1 = entry->pattern;
    *var_6 = '.';
    var_5(var_6 + 1,pcVar1,var_4 + 1);
    pbVar2->field_0x8 = pbVar2->field_0x8 | 4;
    pbVar2->pattern = var_6;
  }
  return pbVar2;
}


(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)))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (char_literal (character)))))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (char_literal (character))))))))) consequence: (compound_statement (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)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (binary_expression left: (identifier) right: (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: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))) (return_statement (identifier)))))

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

int * MASKED(int *param_1)

{
  char *__s;
  void *__src;
  int *piVar1;
  size_t sVar2;
  undefined1 *puVar3;
  
  piVar1 = param_1;
  if (((DAT_001bfeac != 0) && (*(char *)param_1[1] != '.')) &&
     (((*(byte *)(param_1 + 2) & 1) != 0 || (*(char *)param_1[1] != '*')))) {
    piVar1 = (int *)xmalloc(0xc);
    __s = (char *)param_1[1];
    piVar1[2] = param_1[2];
    *piVar1 = (int)param_1;
    piVar1[1] = (int)__s;
    sVar2 = strlen(__s);
    puVar3 = (undefined1 *)xmalloc(sVar2 + 2);
    __src = (void *)param_1[1];
    *puVar3 = 0x2e;
    memcpy(puVar3 + 1,__src,sVar2 + 1);
    *(byte *)(piVar1 + 2) = *(byte *)(piVar1 + 2) | 4;
    piVar1[1] = (int)puVar3;
  }
  return piVar1;
}

