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

char * lrealpath(char *filename)

{
  char *pcVar1;
  char local_100c [4096];
  undefined4 uStack_c;
  
  uStack_c = 0x1e4377;
  pcVar1 = realpath(filename,local_100c);
  if (pcVar1 == (char *)0x0) {
    pcVar1 = filename;
  }
  pcVar1 = strdup(pcVar1);
  return pcVar1;
}



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

void FUN_001e4370(char *param_1)

{
  char *__s;
  char local_100c [4096];
  undefined4 uStack_c;
  
  uStack_c = 0x1e4377;
  __s = realpath(param_1,local_100c);
  if (__s == (char *)0x0) {
    __s = param_1;
  }
  strdup(__s);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x1aac89
SUB ESP,0x100c
MOV ESI,dword ptr [ESP + 0x1018]
LEA EAX,[ESP + 0x8]
PUSH EAX
PUSH ESI
CALL 0x00029530
TEST EAX,EAX
CMOVZ EAX,ESI
MOV dword ptr [ESP],EAX
CALL 0x00029aa0
ADD ESP,0x1014
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001e4370(char *param_1)\n\n{\n  char *__s;\n  char local_100c [4096];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1e4377;\n  __s = realpath(param_1,local_100c);\n  if (__s == (char *)0x0) {\n    __s = param_1;\n  }\n  strdup(__s);\n  return;\n}\n\n" comment (function_definition "void FUN_001e4370(char *param_1)\n\n{\n  char *__s;\n  char local_100c [4096];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1e4377;\n  __s = realpath(param_1,local_100c);\n  if (__s == (char *)0x0) {\n    __s = param_1;\n  }\n  strdup(__s);\n  return;\n}" primitive_type (function_declarator "FUN_001e4370(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char *__s;\n  char local_100c [4096];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1e4377;\n  __s = realpath(param_1,local_100c);\n  if (__s == (char *)0x0) {\n    __s = param_1;\n  }\n  strdup(__s);\n  return;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char local_100c [4096];" primitive_type (array_declarator "local_100c [4096]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x1e4377;" (assignment_expression "uStack_c = 0x1e4377" identifier = number_literal) ;) (expression_statement "__s = realpath(param_1,local_100c);" (assignment_expression "__s = realpath(param_1,local_100c)" identifier = (call_expression "realpath(param_1,local_100c)" identifier (argument_list "(param_1,local_100c)" ( identifier , identifier )))) ;) (if_statement "if (__s == (char *)0x0) {\n    __s = param_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    __s = param_1;\n  }" { (expression_statement "__s = param_1;" (assignment_expression "__s = param_1" identifier = identifier) ;) })) (expression_statement "strdup(__s);" (call_expression "strdup(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * lrealpath(char *filename)\n\n{\n  char *pcVar1;\n  char local_100c [4096];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1e4377;\n  pcVar1 = realpath(filename,local_100c);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = filename;\n  }\n  pcVar1 = strdup(pcVar1);\n  return pcVar1;\n}\n\n" comment comment (function_definition "char * lrealpath(char *filename)\n\n{\n  char *pcVar1;\n  char local_100c [4096];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1e4377;\n  pcVar1 = realpath(filename,local_100c);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = filename;\n  }\n  pcVar1 = strdup(pcVar1);\n  return pcVar1;\n}" primitive_type (pointer_declarator "* lrealpath(char *filename)" * (function_declarator "lrealpath(char *filename)" identifier (parameter_list "(char *filename)" ( (parameter_declaration "char *filename" primitive_type (pointer_declarator "*filename" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  char local_100c [4096];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1e4377;\n  pcVar1 = realpath(filename,local_100c);\n  if (pcVar1 == (char *)0x0) {\n    pcVar1 = filename;\n  }\n  pcVar1 = strdup(pcVar1);\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char local_100c [4096];" primitive_type (array_declarator "local_100c [4096]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x1e4377;" (assignment_expression "uStack_c = 0x1e4377" identifier = number_literal) ;) (expression_statement "pcVar1 = realpath(filename,local_100c);" (assignment_expression "pcVar1 = realpath(filename,local_100c)" identifier = (call_expression "realpath(filename,local_100c)" identifier (argument_list "(filename,local_100c)" ( identifier , identifier )))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n    pcVar1 = filename;\n  }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar1 = filename;\n  }" { (expression_statement "pcVar1 = filename;" (assignment_expression "pcVar1 = filename" identifier = identifier) ;) })) (expression_statement "pcVar1 = strdup(pcVar1);" (assignment_expression "pcVar1 = strdup(pcVar1)" identifier = (call_expression "strdup(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "void FUN_001e4370(char *param_1)\n\n{\n  char *__s;\n  char local_100c [4096];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1e4377;\n  __s = realpath(param_1,local_100c);\n  if (__s == (char *)0x0) {\n    __s = param_1;\n  }\n  strdup(__s);\n  return;\n}\n\n" (function_definition "void FUN_001e4370(char *param_1)\n\n{\n  char *__s;\n  char local_100c [4096];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1e4377;\n  __s = realpath(param_1,local_100c);\n  if (__s == (char *)0x0) {\n    __s = param_1;\n  }\n  strdup(__s);\n  return;\n}" primitive_type (function_declarator "FUN_001e4370(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char *__s;\n  char local_100c [4096];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1e4377;\n  __s = realpath(param_1,local_100c);\n  if (__s == (char *)0x0) {\n    __s = param_1;\n  }\n  strdup(__s);\n  return;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char local_100c [4096];" primitive_type (array_declarator "local_100c [4096]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x1e4377;" (assignment_expression "uStack_c = 0x1e4377" identifier = number_literal) ;) (expression_statement "__s = realpath(param_1,local_100c);" (assignment_expression "__s = realpath(param_1,local_100c)" identifier = (call_expression "realpath(param_1,local_100c)" identifier (argument_list "(param_1,local_100c)" ( identifier , identifier )))) ;) (if_statement "if (__s == (char *)0x0) {\n    __s = param_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    __s = param_1;\n  }" { (expression_statement "__s = param_1;" (assignment_expression "__s = param_1" identifier = identifier) ;) })) (expression_statement "strdup(__s);" (call_expression "strdup(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (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 { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_001e4370(char *param_1)\n\n{\n  char *__s;\n  char local_100c [4096];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1e4377;\n  __s = realpath(param_1,local_100c);\n  if (__s == (char *)0x0) {\n    __s = param_1;\n  }\n  strdup(__s);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001e4370(char *param_1)" (identifier "FUN_001e4370") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  char *__s;\n  char local_100c [4096];\n  undefined4 uStack_c;\n  \n  uStack_c = 0x1e4377;\n  __s = realpath(param_1,local_100c);\n  if (__s == (char *)0x0) {\n    __s = param_1;\n  }\n  strdup(__s);\n  return;\n}" ({ "{") (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "char local_100c [4096];" (primitive_type "char") (array_declarator "local_100c [4096]" (identifier "local_100c") ([ "[") (number_literal "4096") (] "]")) (; ";")) (declaration "undefined4 uStack_c;" (type_identifier "undefined4") (identifier "uStack_c") (; ";")) (expression_statement "uStack_c = 0x1e4377;" (assignment_expression "uStack_c = 0x1e4377" (identifier "uStack_c") (= "=") (number_literal "0x1e4377")) (; ";")) (expression_statement "__s = realpath(param_1,local_100c);" (assignment_expression "__s = realpath(param_1,local_100c)" (identifier "__s") (= "=") (call_expression "realpath(param_1,local_100c)" (identifier "realpath") (argument_list "(param_1,local_100c)" (( "(") (identifier "param_1") (, ",") (identifier "local_100c") () ")")))) (; ";")) (if_statement "if (__s == (char *)0x0) {\n    __s = param_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    __s = param_1;\n  }" ({ "{") (expression_statement "__s = param_1;" (assignment_expression "__s = param_1" (identifier "__s") (= "=") (identifier "param_1")) (; ";")) (} "}"))) (expression_statement "strdup(__s);" (call_expression "strdup(__s)" (identifier "strdup") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

char * function_1(char *filename)

{
  char *var_2;
  char local_100c [4096];
  type_1 uStack_c;
  
  uStack_c = 0x1e4377;
  var_2 = var_1(filename,local_100c);
  if (var_2 == (char *)0x0) {
    var_2 = filename;
  }
  var_2 = var_3(var_2);
  return var_2;
}


(translation_unit (function_definition type: (primitive_type) 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: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (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 (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))))

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

void MASKED(char *param_1)

{
  char *__s;
  char local_100c [4096];
  undefined4 uStack_c;
  
  uStack_c = 0x1e4377;
  __s = realpath(param_1,local_100c);
  if (__s == (char *)0x0) {
    __s = param_1;
  }
  strdup(__s);
  return;
}

