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

char * xmalloc_realpath_coreutils(char *path)

{
}



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

int __regparm3 FUN_0001afb8(char *param_1)

{
  int *piVar1;
  int iVar2;
  char *pcVar3;
  char *__s;
  size_t sVar4;
  
  piVar1 = DAT_000dc6fc;
  *DAT_000dc6fc = 0;
  iVar2 = FUN_0001af9c();
  if ((iVar2 == 0) && (*piVar1 == 2)) {
    pcVar3 = strrchr(param_1,0x2f);
    if (pcVar3 != (char *)0x0) {
      *pcVar3 = '\0';
      __s = (char *)FUN_0001af9c();
      if (__s != (char *)0x0) {
        sVar4 = strlen(__s);
        strlen(pcVar3 + 1);
        iVar2 = FUN_0001a2be();
        *(undefined1 *)(iVar2 + sVar4) = 0x2f;
        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);
      }
    }
  }
  return iVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
CALL 0x00017650
ADD EBX,0xc0a5c
MOV EDI,EAX
MOV EBP,dword ptr [EBX + 0xcdc]
MOV dword ptr [EBP],0x0
CALL 0x0001af9c
MOV ESI,EAX
TEST EAX,EAX
JNZ 0x0001b058
CMP dword ptr [EBP],0x2
JNZ 0x0001b058
SUB ESP,0x8
PUSH 0x2f
PUSH EDI
CALL 0x000170d0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001b058
MOV byte ptr [EAX],0x0
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,EDI
CALL 0x0001af9c
MOV EBP,EAX
TEST EAX,EAX
JZ 0x0001b058
MOV EDX,dword ptr [ESP + 0xc]
LEA EAX,[EDX + 0x1]
MOV ESI,EAX
SUB ESP,0xc
PUSH EBP
CALL 0x00016b40
MOV EDI,EAX
MOV dword ptr [ESP + 0x1c],ESI
MOV dword ptr [ESP],ESI
CALL 0x00016b40
ADD ESP,0x10
LEA EDX,[EAX + EDI*0x1 + 0x2]
MOV EAX,EBP
CALL 0x0001a2be
MOV ESI,EAX
MOV byte ptr [EAX + EDI*0x1],0x2f
SUB ESP,0x8
PUSH dword ptr [ESP + 0x14]
LEA EAX,[EAX + EDI*0x1 + 0x1]
PUSH EAX
CALL 0x000167f0
ADD ESP,0x10
MOV EAX,ESI
ADD ESP,0x1c
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 __regparm3 FUN_0001afb8(char *param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  char *pcVar3;\n  char *__s;\n  size_t sVar4;\n  \n  piVar1 = DAT_000dc6fc;\n  *DAT_000dc6fc = 0;\n  iVar2 = FUN_0001af9c();\n  if ((iVar2 == 0) && (*piVar1 == 2)) {\n    pcVar3 = strrchr(param_1,0x2f);\n    if (pcVar3 != (char *)0x0) {\n      *pcVar3 = '\0';\n      __s = (char *)FUN_0001af9c();\n      if (__s != (char *)0x0) {\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }\n    }\n  }\n  return iVar2;\n}\n\n" comment (function_definition "int __regparm3 FUN_0001afb8(char *param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  char *pcVar3;\n  char *__s;\n  size_t sVar4;\n  \n  piVar1 = DAT_000dc6fc;\n  *DAT_000dc6fc = 0;\n  iVar2 = FUN_0001af9c();\n  if ((iVar2 == 0) && (*piVar1 == 2)) {\n    pcVar3 = strrchr(param_1,0x2f);\n    if (pcVar3 != (char *)0x0) {\n      *pcVar3 = '\0';\n      __s = (char *)FUN_0001af9c();\n      if (__s != (char *)0x0) {\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }\n    }\n  }\n  return iVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001afb8(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  char *pcVar3;\n  char *__s;\n  size_t sVar4;\n  \n  piVar1 = DAT_000dc6fc;\n  *DAT_000dc6fc = 0;\n  iVar2 = FUN_0001af9c();\n  if ((iVar2 == 0) && (*piVar1 == 2)) {\n    pcVar3 = strrchr(param_1,0x2f);\n    if (pcVar3 != (char *)0x0) {\n      *pcVar3 = '\0';\n      __s = (char *)FUN_0001af9c();\n      if (__s != (char *)0x0) {\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }\n    }\n  }\n  return iVar2;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar4;" primitive_type identifier ;) (expression_statement "piVar1 = DAT_000dc6fc;" (assignment_expression "piVar1 = DAT_000dc6fc" identifier = identifier) ;) (expression_statement "*DAT_000dc6fc = 0;" (assignment_expression "*DAT_000dc6fc = 0" (pointer_expression "*DAT_000dc6fc" * identifier) = number_literal) ;) (expression_statement "iVar2 = FUN_0001af9c();" (assignment_expression "iVar2 = FUN_0001af9c()" identifier = (call_expression "FUN_0001af9c()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar2 == 0) && (*piVar1 == 2)) {\n    pcVar3 = strrchr(param_1,0x2f);\n    if (pcVar3 != (char *)0x0) {\n      *pcVar3 = '\0';\n      __s = (char *)FUN_0001af9c();\n      if (__s != (char *)0x0) {\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }\n    }\n  }" if (parenthesized_expression "((iVar2 == 0) && (*piVar1 == 2))" ( (binary_expression "(iVar2 == 0) && (*piVar1 == 2)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "(*piVar1 == 2)" ( (binary_expression "*piVar1 == 2" (pointer_expression "*piVar1" * identifier) == number_literal) ))) )) (compound_statement "{\n    pcVar3 = strrchr(param_1,0x2f);\n    if (pcVar3 != (char *)0x0) {\n      *pcVar3 = '\0';\n      __s = (char *)FUN_0001af9c();\n      if (__s != (char *)0x0) {\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }\n    }\n  }" { (expression_statement "pcVar3 = strrchr(param_1,0x2f);" (assignment_expression "pcVar3 = strrchr(param_1,0x2f)" identifier = (call_expression "strrchr(param_1,0x2f)" identifier (argument_list "(param_1,0x2f)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n      *pcVar3 = '\0';\n      __s = (char *)FUN_0001af9c();\n      if (__s != (char *)0x0) {\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }\n    }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *pcVar3 = '\0';\n      __s = (char *)FUN_0001af9c();\n      if (__s != (char *)0x0) {\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }\n    }" { (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "__s = (char *)FUN_0001af9c();" (assignment_expression "__s = (char *)FUN_0001af9c()" identifier = (cast_expression "(char *)FUN_0001af9c()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001af9c()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (__s != (char *)0x0) {\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }" { (expression_statement "sVar4 = strlen(__s);" (assignment_expression "sVar4 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "strlen(pcVar3 + 1);" (call_expression "strlen(pcVar3 + 1)" identifier (argument_list "(pcVar3 + 1)" ( (binary_expression "pcVar3 + 1" identifier + number_literal) ))) ;) (expression_statement "iVar2 = FUN_0001a2be();" (assignment_expression "iVar2 = FUN_0001a2be()" identifier = (call_expression "FUN_0001a2be()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined1 *)(iVar2 + sVar4) = 0x2f;" (assignment_expression "*(undefined1 *)(iVar2 + sVar4) = 0x2f" (pointer_expression "*(undefined1 *)(iVar2 + sVar4)" * (cast_expression "(undefined1 *)(iVar2 + sVar4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + sVar4)" ( (binary_expression "iVar2 + sVar4" identifier + identifier) )))) = number_literal) ;) (expression_statement "strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);" (call_expression "strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1)" identifier (argument_list "((char *)(iVar2 + 1 + sVar4),pcVar3 + 1)" ( (cast_expression "(char *)(iVar2 + 1 + sVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 1 + sVar4)" ( (binary_expression "iVar2 + 1 + sVar4" (binary_expression "iVar2 + 1" identifier + number_literal) + identifier) ))) , (binary_expression "pcVar3 + 1" identifier + number_literal) ))) ;) })) })) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * xmalloc_realpath_coreutils(char *path)\n\n{\n}\n\n" comment (function_definition "char * xmalloc_realpath_coreutils(char *path)\n\n{\n}" primitive_type (pointer_declarator "* xmalloc_realpath_coreutils(char *path)" * (function_declarator "xmalloc_realpath_coreutils(char *path)" identifier (parameter_list "(char *path)" ( (parameter_declaration "char *path" primitive_type (pointer_declarator "*path" * identifier)) )))) (compound_statement "{\n}" { })))
(translation_unit "int __regparm3 FUN_0001afb8(char *param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  char *pcVar3;\n  char *__s;\n  size_t sVar4;\n  \n  piVar1 = DAT_000dc6fc;\n  *DAT_000dc6fc = 0;\n  iVar2 = FUN_0001af9c();\n  if ((iVar2 == 0) && (*piVar1 == 2)) {\n    pcVar3 = strrchr(param_1,0x2f);\n    if (pcVar3 != (char *)0x0) {\n      *pcVar3 = '\0';\n      __s = (char *)FUN_0001af9c();\n      if (__s != (char *)0x0) {\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }\n    }\n  }\n  return iVar2;\n}\n\n" (function_definition "int __regparm3 FUN_0001afb8(char *param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  char *pcVar3;\n  char *__s;\n  size_t sVar4;\n  \n  piVar1 = DAT_000dc6fc;\n  *DAT_000dc6fc = 0;\n  iVar2 = FUN_0001af9c();\n  if ((iVar2 == 0) && (*piVar1 == 2)) {\n    pcVar3 = strrchr(param_1,0x2f);\n    if (pcVar3 != (char *)0x0) {\n      *pcVar3 = '\0';\n      __s = (char *)FUN_0001af9c();\n      if (__s != (char *)0x0) {\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }\n    }\n  }\n  return iVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001afb8(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  char *pcVar3;\n  char *__s;\n  size_t sVar4;\n  \n  piVar1 = DAT_000dc6fc;\n  *DAT_000dc6fc = 0;\n  iVar2 = FUN_0001af9c();\n  if ((iVar2 == 0) && (*piVar1 == 2)) {\n    pcVar3 = strrchr(param_1,0x2f);\n    if (pcVar3 != (char *)0x0) {\n      *pcVar3 = '\0';\n      __s = (char *)FUN_0001af9c();\n      if (__s != (char *)0x0) {\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }\n    }\n  }\n  return iVar2;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar4;" primitive_type identifier ;) (expression_statement "piVar1 = DAT_000dc6fc;" (assignment_expression "piVar1 = DAT_000dc6fc" identifier = identifier) ;) (expression_statement "*DAT_000dc6fc = 0;" (assignment_expression "*DAT_000dc6fc = 0" (pointer_expression "*DAT_000dc6fc" * identifier) = number_literal) ;) (expression_statement "iVar2 = FUN_0001af9c();" (assignment_expression "iVar2 = FUN_0001af9c()" identifier = (call_expression "FUN_0001af9c()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar2 == 0) && (*piVar1 == 2)) {\n    pcVar3 = strrchr(param_1,0x2f);\n    if (pcVar3 != (char *)0x0) {\n      *pcVar3 = '\0';\n      __s = (char *)FUN_0001af9c();\n      if (__s != (char *)0x0) {\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }\n    }\n  }" if (parenthesized_expression "((iVar2 == 0) && (*piVar1 == 2))" ( (binary_expression "(iVar2 == 0) && (*piVar1 == 2)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "(*piVar1 == 2)" ( (binary_expression "*piVar1 == 2" (pointer_expression "*piVar1" * identifier) == number_literal) ))) )) (compound_statement "{\n    pcVar3 = strrchr(param_1,0x2f);\n    if (pcVar3 != (char *)0x0) {\n      *pcVar3 = '\0';\n      __s = (char *)FUN_0001af9c();\n      if (__s != (char *)0x0) {\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }\n    }\n  }" { (expression_statement "pcVar3 = strrchr(param_1,0x2f);" (assignment_expression "pcVar3 = strrchr(param_1,0x2f)" identifier = (call_expression "strrchr(param_1,0x2f)" identifier (argument_list "(param_1,0x2f)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n      *pcVar3 = '\0';\n      __s = (char *)FUN_0001af9c();\n      if (__s != (char *)0x0) {\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }\n    }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *pcVar3 = '\0';\n      __s = (char *)FUN_0001af9c();\n      if (__s != (char *)0x0) {\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }\n    }" { (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "__s = (char *)FUN_0001af9c();" (assignment_expression "__s = (char *)FUN_0001af9c()" identifier = (cast_expression "(char *)FUN_0001af9c()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001af9c()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (__s != (char *)0x0) {\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }" { (expression_statement "sVar4 = strlen(__s);" (assignment_expression "sVar4 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "strlen(pcVar3 + 1);" (call_expression "strlen(pcVar3 + 1)" identifier (argument_list "(pcVar3 + 1)" ( (binary_expression "pcVar3 + 1" identifier + number_literal) ))) ;) (expression_statement "iVar2 = FUN_0001a2be();" (assignment_expression "iVar2 = FUN_0001a2be()" identifier = (call_expression "FUN_0001a2be()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined1 *)(iVar2 + sVar4) = 0x2f;" (assignment_expression "*(undefined1 *)(iVar2 + sVar4) = 0x2f" (pointer_expression "*(undefined1 *)(iVar2 + sVar4)" * (cast_expression "(undefined1 *)(iVar2 + sVar4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + sVar4)" ( (binary_expression "iVar2 + sVar4" identifier + identifier) )))) = number_literal) ;) (expression_statement "strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);" (call_expression "strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1)" identifier (argument_list "((char *)(iVar2 + 1 + sVar4),pcVar3 + 1)" ( (cast_expression "(char *)(iVar2 + 1 + sVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 1 + sVar4)" ( (binary_expression "iVar2 + 1 + sVar4" (binary_expression "iVar2 + 1" identifier + number_literal) + identifier) ))) , (binary_expression "pcVar3 + 1" identifier + number_literal) ))) ;) })) })) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))) , (binary_expression IDENT + LIT) ))) ;) })) })) })) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_0001afb8(char *param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  char *pcVar3;\n  char *__s;\n  size_t sVar4;\n  \n  piVar1 = DAT_000dc6fc;\n  *DAT_000dc6fc = 0;\n  iVar2 = FUN_0001af9c();\n  if ((iVar2 == 0) && (*piVar1 == 2)) {\n    pcVar3 = strrchr(param_1,0x2f);\n    if (pcVar3 != (char *)0x0) {\n      *pcVar3 = '\0';\n      __s = (char *)FUN_0001af9c();\n      if (__s != (char *)0x0) {\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }\n    }\n  }\n  return iVar2;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001afb8(char *param_1)" (identifier "FUN_0001afb8") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  char *pcVar3;\n  char *__s;\n  size_t sVar4;\n  \n  piVar1 = DAT_000dc6fc;\n  *DAT_000dc6fc = 0;\n  iVar2 = FUN_0001af9c();\n  if ((iVar2 == 0) && (*piVar1 == 2)) {\n    pcVar3 = strrchr(param_1,0x2f);\n    if (pcVar3 != (char *)0x0) {\n      *pcVar3 = '\0';\n      __s = (char *)FUN_0001af9c();\n      if (__s != (char *)0x0) {\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }\n    }\n  }\n  return iVar2;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "size_t sVar4;" (primitive_type "size_t") (identifier "sVar4") (; ";")) (expression_statement "piVar1 = DAT_000dc6fc;" (assignment_expression "piVar1 = DAT_000dc6fc" (identifier "piVar1") (= "=") (identifier "DAT_000dc6fc")) (; ";")) (expression_statement "*DAT_000dc6fc = 0;" (assignment_expression "*DAT_000dc6fc = 0" (pointer_expression "*DAT_000dc6fc" (* "*") (identifier "DAT_000dc6fc")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = FUN_0001af9c();" (assignment_expression "iVar2 = FUN_0001af9c()" (identifier "iVar2") (= "=") (call_expression "FUN_0001af9c()" (identifier "FUN_0001af9c") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar2 == 0) && (*piVar1 == 2)) {\n    pcVar3 = strrchr(param_1,0x2f);\n    if (pcVar3 != (char *)0x0) {\n      *pcVar3 = '\0';\n      __s = (char *)FUN_0001af9c();\n      if (__s != (char *)0x0) {\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }\n    }\n  }" (if "if") (parenthesized_expression "((iVar2 == 0) && (*piVar1 == 2))" (( "(") (binary_expression "(iVar2 == 0) && (*piVar1 == 2)" (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*piVar1 == 2)" (( "(") (binary_expression "*piVar1 == 2" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (== "==") (number_literal "2")) () ")"))) () ")")) (compound_statement "{\n    pcVar3 = strrchr(param_1,0x2f);\n    if (pcVar3 != (char *)0x0) {\n      *pcVar3 = '\0';\n      __s = (char *)FUN_0001af9c();\n      if (__s != (char *)0x0) {\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }\n    }\n  }" ({ "{") (expression_statement "pcVar3 = strrchr(param_1,0x2f);" (assignment_expression "pcVar3 = strrchr(param_1,0x2f)" (identifier "pcVar3") (= "=") (call_expression "strrchr(param_1,0x2f)" (identifier "strrchr") (argument_list "(param_1,0x2f)" (( "(") (identifier "param_1") (, ",") (number_literal "0x2f") () ")")))) (; ";")) (if_statement "if (pcVar3 != (char *)0x0) {\n      *pcVar3 = '\0';\n      __s = (char *)FUN_0001af9c();\n      if (__s != (char *)0x0) {\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }\n    }" (if "if") (parenthesized_expression "(pcVar3 != (char *)0x0)" (( "(") (binary_expression "pcVar3 != (char *)0x0" (identifier "pcVar3") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *pcVar3 = '\0';\n      __s = (char *)FUN_0001af9c();\n      if (__s != (char *)0x0) {\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }\n    }" ({ "{") (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "__s = (char *)FUN_0001af9c();" (assignment_expression "__s = (char *)FUN_0001af9c()" (identifier "__s") (= "=") (cast_expression "(char *)FUN_0001af9c()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001af9c()" (identifier "FUN_0001af9c") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (__s != (char *)0x0) {\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }" (if "if") (parenthesized_expression "(__s != (char *)0x0)" (( "(") (binary_expression "__s != (char *)0x0" (identifier "__s") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        sVar4 = strlen(__s);\n        strlen(pcVar3 + 1);\n        iVar2 = FUN_0001a2be();\n        *(undefined1 *)(iVar2 + sVar4) = 0x2f;\n        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);\n      }" ({ "{") (expression_statement "sVar4 = strlen(__s);" (assignment_expression "sVar4 = strlen(__s)" (identifier "sVar4") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "strlen(pcVar3 + 1);" (call_expression "strlen(pcVar3 + 1)" (identifier "strlen") (argument_list "(pcVar3 + 1)" (( "(") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "iVar2 = FUN_0001a2be();" (assignment_expression "iVar2 = FUN_0001a2be()" (identifier "iVar2") (= "=") (call_expression "FUN_0001a2be()" (identifier "FUN_0001a2be") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined1 *)(iVar2 + sVar4) = 0x2f;" (assignment_expression "*(undefined1 *)(iVar2 + sVar4) = 0x2f" (pointer_expression "*(undefined1 *)(iVar2 + sVar4)" (* "*") (cast_expression "(undefined1 *)(iVar2 + sVar4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + sVar4)" (( "(") (binary_expression "iVar2 + sVar4" (identifier "iVar2") (+ "+") (identifier "sVar4")) () ")")))) (= "=") (number_literal "0x2f")) (; ";")) (expression_statement "strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);" (call_expression "strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1)" (identifier "strcpy") (argument_list "((char *)(iVar2 + 1 + sVar4),pcVar3 + 1)" (( "(") (cast_expression "(char *)(iVar2 + 1 + sVar4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 1 + sVar4)" (( "(") (binary_expression "iVar2 + 1 + sVar4" (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1")) (+ "+") (identifier "sVar4")) () ")"))) (, ",") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1")) () ")"))) (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

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

char * function_1(char *path)

{
}


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

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

int __regparm3 MASKED(char *param_1)

{
  int *piVar1;
  int iVar2;
  char *pcVar3;
  char *__s;
  size_t sVar4;
  
  piVar1 = DAT_000dc6fc;
  *DAT_000dc6fc = 0;
  iVar2 = FUN_0001af9c();
  if ((iVar2 == 0) && (*piVar1 == 2)) {
    pcVar3 = strrchr(param_1,0x2f);
    if (pcVar3 != (char *)0x0) {
      *pcVar3 = '\0';
      __s = (char *)FUN_0001af9c();
      if (__s != (char *)0x0) {
        sVar4 = strlen(__s);
        strlen(pcVar3 + 1);
        iVar2 = FUN_0001a2be();
        *(undefined1 *)(iVar2 + sVar4) = 0x2f;
        strcpy((char *)(iVar2 + 1 + sVar4),pcVar3 + 1);
      }
    }
  }
  return iVar2;
}

