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

void __regparm3 demangle_it(char *mangled_name)

{
  uint uVar1;
  void *__ptr;
  char *pcVar2;
  
  uVar1 = (uint)(*mangled_name == '.' || *mangled_name == '$');
  pcVar2 = mangled_name + uVar1;
  if ((strip_underscore != 0) && (*pcVar2 == '_')) {
    pcVar2 = mangled_name + uVar1 + 1;
  }
  __ptr = (void *)cplus_demangle(pcVar2,flags);
  if (__ptr != (void *)0x0) {
    if (*mangled_name == '.') {
      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);
    }
    printf("%s",__ptr);
    free(__ptr);
    return;
  }
  printf("%s",mangled_name);
  return;
}



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

void __regparm3 FUN_00011ab0(char *param_1)

{
  uint uVar1;
  void *__ptr;
  char *pcVar2;
  
  uVar1 = (uint)(*param_1 == '.' || *param_1 == '$');
  pcVar2 = param_1 + uVar1;
  if ((DAT_0001f140 != 0) && (*pcVar2 == '_')) {
    pcVar2 = param_1 + uVar1 + 1;
  }
  __ptr = (void *)cplus_demangle(pcVar2,DAT_0001710c);
  if (__ptr != (void *)0x0) {
    if (*param_1 == '.') {
      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);
    }
    printf("%s",__ptr);
    free(__ptr);
    return;
  }
  printf("%s",param_1);
  return;
}


PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
MOVZX EDX,byte ptr [EAX]
CALL 0x00011840
ADD EBX,0x5543
CMP DL,0x2e
SETZ AL
CMP DL,0x24
SETZ DL
OR EAX,EDX
MOVZX EAX,AL
MOV ECX,dword ptr [EBX + 0x8140]
LEA EDX,[ESI + EAX*0x1]
TEST ECX,ECX
JZ 0x00011ae6
CMP byte ptr [EDX],0x5f
JZ 0x00011b28
SUB ESP,0x8
PUSH dword ptr [EBX + 0x10c]
PUSH EDX
CALL 0x00011310
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x00011b30
CMP byte ptr [ESI],0x2e
JZ 0x00011b50
SUB ESP,0x8
LEA EAX,[EBX + 0xffffd669]
PUSH EDI
PUSH EAX
CALL 0x00011060
MOV dword ptr [ESP],EDI
CALL 0x000110b0
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
LEA EDX,[ESI + EAX*0x1 + 0x1]
JMP 0x00011ae6
SUB ESP,0x8
LEA EAX,[EBX + 0xffffd669]
PUSH ESI
PUSH EAX
CALL 0x00011060
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
MOV EAX,dword ptr [EBX + 0xffffffe4]
SUB ESP,0x8
PUSH dword ptr [EAX]
PUSH 0x2e
CALL 0x00011370
ADD ESP,0x10
JMP 0x00011b03
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00011ab0(char *param_1)\n\n{\n  uint uVar1;\n  void *__ptr;\n  char *pcVar2;\n  \n  uVar1 = (uint)(*param_1 == '.' || *param_1 == '$');\n  pcVar2 = param_1 + uVar1;\n  if ((DAT_0001f140 != 0) && (*pcVar2 == '_')) {\n    pcVar2 = param_1 + uVar1 + 1;\n  }\n  __ptr = (void *)cplus_demangle(pcVar2,DAT_0001710c);\n  if (__ptr != (void *)0x0) {\n    if (*param_1 == '.') {\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }\n    printf("%s",__ptr);\n    free(__ptr);\n    return;\n  }\n  printf("%s",param_1);\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00011ab0(char *param_1)\n\n{\n  uint uVar1;\n  void *__ptr;\n  char *pcVar2;\n  \n  uVar1 = (uint)(*param_1 == '.' || *param_1 == '$');\n  pcVar2 = param_1 + uVar1;\n  if ((DAT_0001f140 != 0) && (*pcVar2 == '_')) {\n    pcVar2 = param_1 + uVar1 + 1;\n  }\n  __ptr = (void *)cplus_demangle(pcVar2,DAT_0001710c);\n  if (__ptr != (void *)0x0) {\n    if (*param_1 == '.') {\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }\n    printf("%s",__ptr);\n    free(__ptr);\n    return;\n  }\n  printf("%s",param_1);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00011ab0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  void *__ptr;\n  char *pcVar2;\n  \n  uVar1 = (uint)(*param_1 == '.' || *param_1 == '$');\n  pcVar2 = param_1 + uVar1;\n  if ((DAT_0001f140 != 0) && (*pcVar2 == '_')) {\n    pcVar2 = param_1 + uVar1 + 1;\n  }\n  __ptr = (void *)cplus_demangle(pcVar2,DAT_0001710c);\n  if (__ptr != (void *)0x0) {\n    if (*param_1 == '.') {\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }\n    printf("%s",__ptr);\n    free(__ptr);\n    return;\n  }\n  printf("%s",param_1);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "uVar1 = (uint)(*param_1 == '.' || *param_1 == '$');" (assignment_expression "uVar1 = (uint)(*param_1 == '.' || *param_1 == '$')" identifier = (call_expression "(uint)(*param_1 == '.' || *param_1 == '$')" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*param_1 == '.' || *param_1 == '$')" ( (binary_expression "*param_1 == '.' || *param_1 == '$'" (binary_expression "*param_1 == '.'" (pointer_expression "*param_1" * identifier) == (char_literal "'.'" ' character ')) || (binary_expression "*param_1 == '$'" (pointer_expression "*param_1" * identifier) == (char_literal "'$'" ' character '))) )))) ;) (expression_statement "pcVar2 = param_1 + uVar1;" (assignment_expression "pcVar2 = param_1 + uVar1" identifier = (binary_expression "param_1 + uVar1" identifier + identifier)) ;) (if_statement "if ((DAT_0001f140 != 0) && (*pcVar2 == '_')) {\n    pcVar2 = param_1 + uVar1 + 1;\n  }" if (parenthesized_expression "((DAT_0001f140 != 0) && (*pcVar2 == '_'))" ( (binary_expression "(DAT_0001f140 != 0) && (*pcVar2 == '_')" (parenthesized_expression "(DAT_0001f140 != 0)" ( (binary_expression "DAT_0001f140 != 0" identifier != number_literal) )) && (parenthesized_expression "(*pcVar2 == '_')" ( (binary_expression "*pcVar2 == '_'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'_'" ' character ')) ))) )) (compound_statement "{\n    pcVar2 = param_1 + uVar1 + 1;\n  }" { (expression_statement "pcVar2 = param_1 + uVar1 + 1;" (assignment_expression "pcVar2 = param_1 + uVar1 + 1" identifier = (binary_expression "param_1 + uVar1 + 1" (binary_expression "param_1 + uVar1" identifier + identifier) + number_literal)) ;) })) (expression_statement "__ptr = (void *)cplus_demangle(pcVar2,DAT_0001710c);" (assignment_expression "__ptr = (void *)cplus_demangle(pcVar2,DAT_0001710c)" identifier = (cast_expression "(void *)cplus_demangle(pcVar2,DAT_0001710c)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "cplus_demangle(pcVar2,DAT_0001710c)" identifier (argument_list "(pcVar2,DAT_0001710c)" ( identifier , identifier ))))) ;) (if_statement "if (__ptr != (void *)0x0) {\n    if (*param_1 == '.') {\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }\n    printf("%s",__ptr);\n    free(__ptr);\n    return;\n  }" if (parenthesized_expression "(__ptr != (void *)0x0)" ( (binary_expression "__ptr != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*param_1 == '.') {\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }\n    printf("%s",__ptr);\n    free(__ptr);\n    return;\n  }" { (if_statement "if (*param_1 == '.') {\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }" if (parenthesized_expression "(*param_1 == '.')" ( (binary_expression "*param_1 == '.'" (pointer_expression "*param_1" * identifier) == (char_literal "'.'" ' character ')) )) (compound_statement "{\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }" { (expression_statement "putc(0x2e,*(FILE **)PTR_stdout_00016fe4);" (call_expression "putc(0x2e,*(FILE **)PTR_stdout_00016fe4)" identifier (argument_list "(0x2e,*(FILE **)PTR_stdout_00016fe4)" ( number_literal , (pointer_expression "*(FILE **)PTR_stdout_00016fe4" * (cast_expression "(FILE **)PTR_stdout_00016fe4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) })) (expression_statement "printf("%s",__ptr);" (call_expression "printf("%s",__ptr)" identifier (argument_list "("%s",__ptr)" ( (string_literal ""%s"" " string_content ") , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "printf("%s",param_1);" (call_expression "printf("%s",param_1)" identifier (argument_list "("%s",param_1)" ( (string_literal ""%s"" " string_content ") , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 demangle_it(char *mangled_name)\n\n{\n  uint uVar1;\n  void *__ptr;\n  char *pcVar2;\n  \n  uVar1 = (uint)(*mangled_name == '.' || *mangled_name == '$');\n  pcVar2 = mangled_name + uVar1;\n  if ((strip_underscore != 0) && (*pcVar2 == '_')) {\n    pcVar2 = mangled_name + uVar1 + 1;\n  }\n  __ptr = (void *)cplus_demangle(pcVar2,flags);\n  if (__ptr != (void *)0x0) {\n    if (*mangled_name == '.') {\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }\n    printf("%s",__ptr);\n    free(__ptr);\n    return;\n  }\n  printf("%s",mangled_name);\n  return;\n}\n\n" comment (function_definition "void __regparm3 demangle_it(char *mangled_name)\n\n{\n  uint uVar1;\n  void *__ptr;\n  char *pcVar2;\n  \n  uVar1 = (uint)(*mangled_name == '.' || *mangled_name == '$');\n  pcVar2 = mangled_name + uVar1;\n  if ((strip_underscore != 0) && (*pcVar2 == '_')) {\n    pcVar2 = mangled_name + uVar1 + 1;\n  }\n  __ptr = (void *)cplus_demangle(pcVar2,flags);\n  if (__ptr != (void *)0x0) {\n    if (*mangled_name == '.') {\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }\n    printf("%s",__ptr);\n    free(__ptr);\n    return;\n  }\n  printf("%s",mangled_name);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "demangle_it(char *mangled_name)" identifier (parameter_list "(char *mangled_name)" ( (parameter_declaration "char *mangled_name" primitive_type (pointer_declarator "*mangled_name" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  void *__ptr;\n  char *pcVar2;\n  \n  uVar1 = (uint)(*mangled_name == '.' || *mangled_name == '$');\n  pcVar2 = mangled_name + uVar1;\n  if ((strip_underscore != 0) && (*pcVar2 == '_')) {\n    pcVar2 = mangled_name + uVar1 + 1;\n  }\n  __ptr = (void *)cplus_demangle(pcVar2,flags);\n  if (__ptr != (void *)0x0) {\n    if (*mangled_name == '.') {\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }\n    printf("%s",__ptr);\n    free(__ptr);\n    return;\n  }\n  printf("%s",mangled_name);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "uVar1 = (uint)(*mangled_name == '.' || *mangled_name == '$');" (assignment_expression "uVar1 = (uint)(*mangled_name == '.' || *mangled_name == '$')" identifier = (call_expression "(uint)(*mangled_name == '.' || *mangled_name == '$')" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*mangled_name == '.' || *mangled_name == '$')" ( (binary_expression "*mangled_name == '.' || *mangled_name == '$'" (binary_expression "*mangled_name == '.'" (pointer_expression "*mangled_name" * identifier) == (char_literal "'.'" ' character ')) || (binary_expression "*mangled_name == '$'" (pointer_expression "*mangled_name" * identifier) == (char_literal "'$'" ' character '))) )))) ;) (expression_statement "pcVar2 = mangled_name + uVar1;" (assignment_expression "pcVar2 = mangled_name + uVar1" identifier = (binary_expression "mangled_name + uVar1" identifier + identifier)) ;) (if_statement "if ((strip_underscore != 0) && (*pcVar2 == '_')) {\n    pcVar2 = mangled_name + uVar1 + 1;\n  }" if (parenthesized_expression "((strip_underscore != 0) && (*pcVar2 == '_'))" ( (binary_expression "(strip_underscore != 0) && (*pcVar2 == '_')" (parenthesized_expression "(strip_underscore != 0)" ( (binary_expression "strip_underscore != 0" identifier != number_literal) )) && (parenthesized_expression "(*pcVar2 == '_')" ( (binary_expression "*pcVar2 == '_'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'_'" ' character ')) ))) )) (compound_statement "{\n    pcVar2 = mangled_name + uVar1 + 1;\n  }" { (expression_statement "pcVar2 = mangled_name + uVar1 + 1;" (assignment_expression "pcVar2 = mangled_name + uVar1 + 1" identifier = (binary_expression "mangled_name + uVar1 + 1" (binary_expression "mangled_name + uVar1" identifier + identifier) + number_literal)) ;) })) (expression_statement "__ptr = (void *)cplus_demangle(pcVar2,flags);" (assignment_expression "__ptr = (void *)cplus_demangle(pcVar2,flags)" identifier = (cast_expression "(void *)cplus_demangle(pcVar2,flags)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "cplus_demangle(pcVar2,flags)" identifier (argument_list "(pcVar2,flags)" ( identifier , identifier ))))) ;) (if_statement "if (__ptr != (void *)0x0) {\n    if (*mangled_name == '.') {\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }\n    printf("%s",__ptr);\n    free(__ptr);\n    return;\n  }" if (parenthesized_expression "(__ptr != (void *)0x0)" ( (binary_expression "__ptr != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*mangled_name == '.') {\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }\n    printf("%s",__ptr);\n    free(__ptr);\n    return;\n  }" { (if_statement "if (*mangled_name == '.') {\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }" if (parenthesized_expression "(*mangled_name == '.')" ( (binary_expression "*mangled_name == '.'" (pointer_expression "*mangled_name" * identifier) == (char_literal "'.'" ' character ')) )) (compound_statement "{\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }" { (expression_statement "putc(0x2e,*(FILE **)PTR_stdout_00016fe4);" (call_expression "putc(0x2e,*(FILE **)PTR_stdout_00016fe4)" identifier (argument_list "(0x2e,*(FILE **)PTR_stdout_00016fe4)" ( number_literal , (pointer_expression "*(FILE **)PTR_stdout_00016fe4" * (cast_expression "(FILE **)PTR_stdout_00016fe4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) })) (expression_statement "printf("%s",__ptr);" (call_expression "printf("%s",__ptr)" identifier (argument_list "("%s",__ptr)" ( (string_literal ""%s"" " string_content ") , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "printf("%s",mangled_name);" (call_expression "printf("%s",mangled_name)" identifier (argument_list "("%s",mangled_name)" ( (string_literal ""%s"" " string_content ") , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00011ab0(char *param_1)\n\n{\n  uint uVar1;\n  void *__ptr;\n  char *pcVar2;\n  \n  uVar1 = (uint)(*param_1 == '.' || *param_1 == '$');\n  pcVar2 = param_1 + uVar1;\n  if ((DAT_0001f140 != 0) && (*pcVar2 == '_')) {\n    pcVar2 = param_1 + uVar1 + 1;\n  }\n  __ptr = (void *)cplus_demangle(pcVar2,DAT_0001710c);\n  if (__ptr != (void *)0x0) {\n    if (*param_1 == '.') {\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }\n    printf("%s",__ptr);\n    free(__ptr);\n    return;\n  }\n  printf("%s",param_1);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00011ab0(char *param_1)\n\n{\n  uint uVar1;\n  void *__ptr;\n  char *pcVar2;\n  \n  uVar1 = (uint)(*param_1 == '.' || *param_1 == '$');\n  pcVar2 = param_1 + uVar1;\n  if ((DAT_0001f140 != 0) && (*pcVar2 == '_')) {\n    pcVar2 = param_1 + uVar1 + 1;\n  }\n  __ptr = (void *)cplus_demangle(pcVar2,DAT_0001710c);\n  if (__ptr != (void *)0x0) {\n    if (*param_1 == '.') {\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }\n    printf("%s",__ptr);\n    free(__ptr);\n    return;\n  }\n  printf("%s",param_1);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00011ab0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  void *__ptr;\n  char *pcVar2;\n  \n  uVar1 = (uint)(*param_1 == '.' || *param_1 == '$');\n  pcVar2 = param_1 + uVar1;\n  if ((DAT_0001f140 != 0) && (*pcVar2 == '_')) {\n    pcVar2 = param_1 + uVar1 + 1;\n  }\n  __ptr = (void *)cplus_demangle(pcVar2,DAT_0001710c);\n  if (__ptr != (void *)0x0) {\n    if (*param_1 == '.') {\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }\n    printf("%s",__ptr);\n    free(__ptr);\n    return;\n  }\n  printf("%s",param_1);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "uVar1 = (uint)(*param_1 == '.' || *param_1 == '$');" (assignment_expression "uVar1 = (uint)(*param_1 == '.' || *param_1 == '$')" identifier = (call_expression "(uint)(*param_1 == '.' || *param_1 == '$')" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*param_1 == '.' || *param_1 == '$')" ( (binary_expression "*param_1 == '.' || *param_1 == '$'" (binary_expression "*param_1 == '.'" (pointer_expression "*param_1" * identifier) == (char_literal "'.'" ' character ')) || (binary_expression "*param_1 == '$'" (pointer_expression "*param_1" * identifier) == (char_literal "'$'" ' character '))) )))) ;) (expression_statement "pcVar2 = param_1 + uVar1;" (assignment_expression "pcVar2 = param_1 + uVar1" identifier = (binary_expression "param_1 + uVar1" identifier + identifier)) ;) (if_statement "if ((DAT_0001f140 != 0) && (*pcVar2 == '_')) {\n    pcVar2 = param_1 + uVar1 + 1;\n  }" if (parenthesized_expression "((DAT_0001f140 != 0) && (*pcVar2 == '_'))" ( (binary_expression "(DAT_0001f140 != 0) && (*pcVar2 == '_')" (parenthesized_expression "(DAT_0001f140 != 0)" ( (binary_expression "DAT_0001f140 != 0" identifier != number_literal) )) && (parenthesized_expression "(*pcVar2 == '_')" ( (binary_expression "*pcVar2 == '_'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'_'" ' character ')) ))) )) (compound_statement "{\n    pcVar2 = param_1 + uVar1 + 1;\n  }" { (expression_statement "pcVar2 = param_1 + uVar1 + 1;" (assignment_expression "pcVar2 = param_1 + uVar1 + 1" identifier = (binary_expression "param_1 + uVar1 + 1" (binary_expression "param_1 + uVar1" identifier + identifier) + number_literal)) ;) })) (expression_statement "__ptr = (void *)cplus_demangle(pcVar2,DAT_0001710c);" (assignment_expression "__ptr = (void *)cplus_demangle(pcVar2,DAT_0001710c)" identifier = (cast_expression "(void *)cplus_demangle(pcVar2,DAT_0001710c)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "cplus_demangle(pcVar2,DAT_0001710c)" identifier (argument_list "(pcVar2,DAT_0001710c)" ( identifier , identifier ))))) ;) (if_statement "if (__ptr != (void *)0x0) {\n    if (*param_1 == '.') {\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }\n    printf("%s",__ptr);\n    free(__ptr);\n    return;\n  }" if (parenthesized_expression "(__ptr != (void *)0x0)" ( (binary_expression "__ptr != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*param_1 == '.') {\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }\n    printf("%s",__ptr);\n    free(__ptr);\n    return;\n  }" { (if_statement "if (*param_1 == '.') {\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }" if (parenthesized_expression "(*param_1 == '.')" ( (binary_expression "*param_1 == '.'" (pointer_expression "*param_1" * identifier) == (char_literal "'.'" ' character ')) )) (compound_statement "{\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }" { (expression_statement "putc(0x2e,*(FILE **)PTR_stdout_00016fe4);" (call_expression "putc(0x2e,*(FILE **)PTR_stdout_00016fe4)" identifier (argument_list "(0x2e,*(FILE **)PTR_stdout_00016fe4)" ( number_literal , (pointer_expression "*(FILE **)PTR_stdout_00016fe4" * (cast_expression "(FILE **)PTR_stdout_00016fe4" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) })) (expression_statement "printf("%s",__ptr);" (call_expression "printf("%s",__ptr)" identifier (argument_list "("%s",__ptr)" ( (string_literal ""%s"" " string_content ") , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "printf("%s",param_1);" (call_expression "printf("%s",param_1)" identifier (argument_list "("%s",param_1)" ( (string_literal ""%s"" " string_content ") , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) || (binary_expression (pointer_expression * IDENT) == (char_literal ' character '))) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00011ab0(char *param_1)\n\n{\n  uint uVar1;\n  void *__ptr;\n  char *pcVar2;\n  \n  uVar1 = (uint)(*param_1 == '.' || *param_1 == '$');\n  pcVar2 = param_1 + uVar1;\n  if ((DAT_0001f140 != 0) && (*pcVar2 == '_')) {\n    pcVar2 = param_1 + uVar1 + 1;\n  }\n  __ptr = (void *)cplus_demangle(pcVar2,DAT_0001710c);\n  if (__ptr != (void *)0x0) {\n    if (*param_1 == '.') {\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }\n    printf("%s",__ptr);\n    free(__ptr);\n    return;\n  }\n  printf("%s",param_1);\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00011ab0(char *param_1)" (identifier "FUN_00011ab0") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  void *__ptr;\n  char *pcVar2;\n  \n  uVar1 = (uint)(*param_1 == '.' || *param_1 == '$');\n  pcVar2 = param_1 + uVar1;\n  if ((DAT_0001f140 != 0) && (*pcVar2 == '_')) {\n    pcVar2 = param_1 + uVar1 + 1;\n  }\n  __ptr = (void *)cplus_demangle(pcVar2,DAT_0001710c);\n  if (__ptr != (void *)0x0) {\n    if (*param_1 == '.') {\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }\n    printf("%s",__ptr);\n    free(__ptr);\n    return;\n  }\n  printf("%s",param_1);\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (expression_statement "uVar1 = (uint)(*param_1 == '.' || *param_1 == '$');" (assignment_expression "uVar1 = (uint)(*param_1 == '.' || *param_1 == '$')" (identifier "uVar1") (= "=") (call_expression "(uint)(*param_1 == '.' || *param_1 == '$')" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*param_1 == '.' || *param_1 == '$')" (( "(") (binary_expression "*param_1 == '.' || *param_1 == '$'" (binary_expression "*param_1 == '.'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'.'" (' "'") (character ".") (' "'"))) (|| "||") (binary_expression "*param_1 == '$'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'$'" (' "'") (character "$") (' "'")))) () ")")))) (; ";")) (expression_statement "pcVar2 = param_1 + uVar1;" (assignment_expression "pcVar2 = param_1 + uVar1" (identifier "pcVar2") (= "=") (binary_expression "param_1 + uVar1" (identifier "param_1") (+ "+") (identifier "uVar1"))) (; ";")) (if_statement "if ((DAT_0001f140 != 0) && (*pcVar2 == '_')) {\n    pcVar2 = param_1 + uVar1 + 1;\n  }" (if "if") (parenthesized_expression "((DAT_0001f140 != 0) && (*pcVar2 == '_'))" (( "(") (binary_expression "(DAT_0001f140 != 0) && (*pcVar2 == '_')" (parenthesized_expression "(DAT_0001f140 != 0)" (( "(") (binary_expression "DAT_0001f140 != 0" (identifier "DAT_0001f140") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*pcVar2 == '_')" (( "(") (binary_expression "*pcVar2 == '_'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (== "==") (char_literal "'_'" (' "'") (character "_") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    pcVar2 = param_1 + uVar1 + 1;\n  }" ({ "{") (expression_statement "pcVar2 = param_1 + uVar1 + 1;" (assignment_expression "pcVar2 = param_1 + uVar1 + 1" (identifier "pcVar2") (= "=") (binary_expression "param_1 + uVar1 + 1" (binary_expression "param_1 + uVar1" (identifier "param_1") (+ "+") (identifier "uVar1")) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "__ptr = (void *)cplus_demangle(pcVar2,DAT_0001710c);" (assignment_expression "__ptr = (void *)cplus_demangle(pcVar2,DAT_0001710c)" (identifier "__ptr") (= "=") (cast_expression "(void *)cplus_demangle(pcVar2,DAT_0001710c)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "cplus_demangle(pcVar2,DAT_0001710c)" (identifier "cplus_demangle") (argument_list "(pcVar2,DAT_0001710c)" (( "(") (identifier "pcVar2") (, ",") (identifier "DAT_0001710c") () ")"))))) (; ";")) (if_statement "if (__ptr != (void *)0x0) {\n    if (*param_1 == '.') {\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }\n    printf("%s",__ptr);\n    free(__ptr);\n    return;\n  }" (if "if") (parenthesized_expression "(__ptr != (void *)0x0)" (( "(") (binary_expression "__ptr != (void *)0x0" (identifier "__ptr") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if (*param_1 == '.') {\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }\n    printf("%s",__ptr);\n    free(__ptr);\n    return;\n  }" ({ "{") (if_statement "if (*param_1 == '.') {\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }" (if "if") (parenthesized_expression "(*param_1 == '.')" (( "(") (binary_expression "*param_1 == '.'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'.'" (' "'") (character ".") (' "'"))) () ")")) (compound_statement "{\n      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);\n    }" ({ "{") (expression_statement "putc(0x2e,*(FILE **)PTR_stdout_00016fe4);" (call_expression "putc(0x2e,*(FILE **)PTR_stdout_00016fe4)" (identifier "putc") (argument_list "(0x2e,*(FILE **)PTR_stdout_00016fe4)" (( "(") (number_literal "0x2e") (, ",") (pointer_expression "*(FILE **)PTR_stdout_00016fe4" (* "*") (cast_expression "(FILE **)PTR_stdout_00016fe4" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stdout_00016fe4"))) () ")"))) (; ";")) (} "}"))) (expression_statement "printf("%s",__ptr);" (call_expression "printf("%s",__ptr)" (identifier "printf") (argument_list "("%s",__ptr)" (( "(") (string_literal ""%s"" (" """) (string_content "%s") (" """)) (, ",") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "printf("%s",param_1);" (call_expression "printf("%s",param_1)" (identifier "printf") (argument_list "("%s",param_1)" (( "(") (string_literal ""%s"" (" """) (string_content "%s") (" """)) (, ",") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(char *var_1)

{
  type_1 var_2;
  void *var_5;
  char *pcVar2;
  
  var_2 = (type_1)(*var_1 == '.' || *var_1 == '$');
  pcVar2 = var_1 + var_2;
  if ((var_3 != 0) && (*pcVar2 == '_')) {
    pcVar2 = var_1 + var_2 + 1;
  }
  var_5 = (void *)var_4(pcVar2,flags);
  if (var_5 != (void *)0x0) {
    if (*var_1 == '.') {
      var_6(0x2e,*(type_2 **)PTR_stdout_00016fe4);
    }
    var_7("%s",var_5);
    var_8(var_5);
    return;
  }
  var_7("%s",var_1);
  return;
}


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

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

void __regparm3 MASKED(char *param_1)

{
  uint uVar1;
  void *__ptr;
  char *pcVar2;
  
  uVar1 = (uint)(*param_1 == '.' || *param_1 == '$');
  pcVar2 = param_1 + uVar1;
  if ((DAT_0001f140 != 0) && (*pcVar2 == '_')) {
    pcVar2 = param_1 + uVar1 + 1;
  }
  __ptr = (void *)cplus_demangle(pcVar2,DAT_0001710c);
  if (__ptr != (void *)0x0) {
    if (*param_1 == '.') {
      putc(0x2e,*(FILE **)PTR_stdout_00016fe4);
    }
    printf("%s",__ptr);
    free(__ptr);
    return;
  }
  printf("%s",param_1);
  return;
}

