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

char * mdir_name(char *file)

{
  size_t __n;
  char *__dest;
  
  __n = dir_len(file);
  __dest = (char *)malloc(__n + 1 + (uint)(__n == 0));
  if (__dest != (char *)0x0) {
    memcpy(__dest,file,__n);
    if (__n == 0) {
      *__dest = '.';
      __n = 1;
    }
    __dest[__n] = '\0';
  }
  return __dest;
}



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

undefined1 * FUN_00014300(void *param_1)

{
  size_t __n;
  undefined1 *__dest;
  
  __n = FUN_00014290(param_1);
  __dest = (undefined1 *)malloc(__n + 1 + (uint)(__n == 0));
  if (__dest != (undefined1 *)0x0) {
    memcpy(__dest,param_1,__n);
    if (__n == 0) {
      *__dest = 0x2e;
      __n = 1;
    }
    __dest[__n] = 0;
  }
  return __dest;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00012a80
ADD EBX,0x14cf7
SUB ESP,0x18
MOV EBP,dword ptr [ESP + 0x2c]
PUSH EBP
CALL 0x00014290
TEST EAX,EAX
MOV ESI,EAX
SETZ AL
MOVZX EAX,AL
LEA EAX,[ESI + EAX*0x1 + 0x1]
MOV dword ptr [ESP],EAX
CALL 0x000122c0
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x00014351
SUB ESP,0x4
PUSH ESI
PUSH EBP
PUSH EAX
CALL 0x00012100
ADD ESP,0x10
TEST ESI,ESI
JZ 0x00014360
MOV byte ptr [EDI + ESI*0x1],0x0
ADD ESP,0xc
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV byte ptr [EDI],0x2e
MOV ESI,0x1
JMP 0x0001434d
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined1 * FUN_00014300(void *param_1)\n\n{\n  size_t __n;\n  undefined1 *__dest;\n  \n  __n = FUN_00014290(param_1);\n  __dest = (undefined1 *)malloc(__n + 1 + (uint)(__n == 0));\n  if (__dest != (undefined1 *)0x0) {\n    memcpy(__dest,param_1,__n);\n    if (__n == 0) {\n      *__dest = 0x2e;\n      __n = 1;\n    }\n    __dest[__n] = 0;\n  }\n  return __dest;\n}\n\n" comment (function_definition "undefined1 * FUN_00014300(void *param_1)\n\n{\n  size_t __n;\n  undefined1 *__dest;\n  \n  __n = FUN_00014290(param_1);\n  __dest = (undefined1 *)malloc(__n + 1 + (uint)(__n == 0));\n  if (__dest != (undefined1 *)0x0) {\n    memcpy(__dest,param_1,__n);\n    if (__n == 0) {\n      *__dest = 0x2e;\n      __n = 1;\n    }\n    __dest[__n] = 0;\n  }\n  return __dest;\n}" type_identifier (pointer_declarator "* FUN_00014300(void *param_1)" * (function_declarator "FUN_00014300(void *param_1)" identifier (parameter_list "(void *param_1)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  size_t __n;\n  undefined1 *__dest;\n  \n  __n = FUN_00014290(param_1);\n  __dest = (undefined1 *)malloc(__n + 1 + (uint)(__n == 0));\n  if (__dest != (undefined1 *)0x0) {\n    memcpy(__dest,param_1,__n);\n    if (__n == 0) {\n      *__dest = 0x2e;\n      __n = 1;\n    }\n    __dest[__n] = 0;\n  }\n  return __dest;\n}" { (declaration "size_t __n;" primitive_type identifier ;) (declaration "undefined1 *__dest;" type_identifier (pointer_declarator "*__dest" * identifier) ;) (expression_statement "__n = FUN_00014290(param_1);" (assignment_expression "__n = FUN_00014290(param_1)" identifier = (call_expression "FUN_00014290(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "__dest = (undefined1 *)malloc(__n + 1 + (uint)(__n == 0));" (assignment_expression "__dest = (undefined1 *)malloc(__n + 1 + (uint)(__n == 0))" identifier = (cast_expression "(undefined1 *)malloc(__n + 1 + (uint)(__n == 0))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(__n + 1 + (uint)(__n == 0))" identifier (argument_list "(__n + 1 + (uint)(__n == 0))" ( (binary_expression "__n + 1 + (uint)(__n == 0)" (binary_expression "__n + 1" identifier + number_literal) + (call_expression "(uint)(__n == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )))) ))))) ;) (if_statement "if (__dest != (undefined1 *)0x0) {\n    memcpy(__dest,param_1,__n);\n    if (__n == 0) {\n      *__dest = 0x2e;\n      __n = 1;\n    }\n    __dest[__n] = 0;\n  }" if (parenthesized_expression "(__dest != (undefined1 *)0x0)" ( (binary_expression "__dest != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    memcpy(__dest,param_1,__n);\n    if (__n == 0) {\n      *__dest = 0x2e;\n      __n = 1;\n    }\n    __dest[__n] = 0;\n  }" { (expression_statement "memcpy(__dest,param_1,__n);" (call_expression "memcpy(__dest,param_1,__n)" identifier (argument_list "(__dest,param_1,__n)" ( identifier , identifier , identifier ))) ;) (if_statement "if (__n == 0) {\n      *__dest = 0x2e;\n      __n = 1;\n    }" if (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) (compound_statement "{\n      *__dest = 0x2e;\n      __n = 1;\n    }" { (expression_statement "*__dest = 0x2e;" (assignment_expression "*__dest = 0x2e" (pointer_expression "*__dest" * identifier) = number_literal) ;) (expression_statement "__n = 1;" (assignment_expression "__n = 1" identifier = number_literal) ;) })) (expression_statement "__dest[__n] = 0;" (assignment_expression "__dest[__n] = 0" (subscript_expression "__dest[__n]" identifier [ identifier ]) = number_literal) ;) })) (return_statement "return __dest;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * mdir_name(char *file)\n\n{\n  size_t __n;\n  char *__dest;\n  \n  __n = dir_len(file);\n  __dest = (char *)malloc(__n + 1 + (uint)(__n == 0));\n  if (__dest != (char *)0x0) {\n    memcpy(__dest,file,__n);\n    if (__n == 0) {\n      *__dest = '.';\n      __n = 1;\n    }\n    __dest[__n] = '\0';\n  }\n  return __dest;\n}\n\n" comment comment (function_definition "char * mdir_name(char *file)\n\n{\n  size_t __n;\n  char *__dest;\n  \n  __n = dir_len(file);\n  __dest = (char *)malloc(__n + 1 + (uint)(__n == 0));\n  if (__dest != (char *)0x0) {\n    memcpy(__dest,file,__n);\n    if (__n == 0) {\n      *__dest = '.';\n      __n = 1;\n    }\n    __dest[__n] = '\0';\n  }\n  return __dest;\n}" primitive_type (pointer_declarator "* mdir_name(char *file)" * (function_declarator "mdir_name(char *file)" identifier (parameter_list "(char *file)" ( (parameter_declaration "char *file" primitive_type (pointer_declarator "*file" * identifier)) )))) (compound_statement "{\n  size_t __n;\n  char *__dest;\n  \n  __n = dir_len(file);\n  __dest = (char *)malloc(__n + 1 + (uint)(__n == 0));\n  if (__dest != (char *)0x0) {\n    memcpy(__dest,file,__n);\n    if (__n == 0) {\n      *__dest = '.';\n      __n = 1;\n    }\n    __dest[__n] = '\0';\n  }\n  return __dest;\n}" { (declaration "size_t __n;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "__n = dir_len(file);" (assignment_expression "__n = dir_len(file)" identifier = (call_expression "dir_len(file)" identifier (argument_list "(file)" ( identifier )))) ;) (expression_statement "__dest = (char *)malloc(__n + 1 + (uint)(__n == 0));" (assignment_expression "__dest = (char *)malloc(__n + 1 + (uint)(__n == 0))" identifier = (cast_expression "(char *)malloc(__n + 1 + (uint)(__n == 0))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(__n + 1 + (uint)(__n == 0))" identifier (argument_list "(__n + 1 + (uint)(__n == 0))" ( (binary_expression "__n + 1 + (uint)(__n == 0)" (binary_expression "__n + 1" identifier + number_literal) + (call_expression "(uint)(__n == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )))) ))))) ;) (if_statement "if (__dest != (char *)0x0) {\n    memcpy(__dest,file,__n);\n    if (__n == 0) {\n      *__dest = '.';\n      __n = 1;\n    }\n    __dest[__n] = '\0';\n  }" if (parenthesized_expression "(__dest != (char *)0x0)" ( (binary_expression "__dest != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    memcpy(__dest,file,__n);\n    if (__n == 0) {\n      *__dest = '.';\n      __n = 1;\n    }\n    __dest[__n] = '\0';\n  }" { (expression_statement "memcpy(__dest,file,__n);" (call_expression "memcpy(__dest,file,__n)" identifier (argument_list "(__dest,file,__n)" ( identifier , identifier , identifier ))) ;) (if_statement "if (__n == 0) {\n      *__dest = '.';\n      __n = 1;\n    }" if (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) (compound_statement "{\n      *__dest = '.';\n      __n = 1;\n    }" { (expression_statement "*__dest = '.';" (assignment_expression "*__dest = '.'" (pointer_expression "*__dest" * identifier) = (char_literal "'.'" ' character ')) ;) (expression_statement "__n = 1;" (assignment_expression "__n = 1" identifier = number_literal) ;) })) (expression_statement "__dest[__n] = '\0';" (assignment_expression "__dest[__n] = '\0'" (subscript_expression "__dest[__n]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (return_statement "return __dest;" return identifier ;) })))
(translation_unit "undefined1 * FUN_00014300(void *param_1)\n\n{\n  size_t __n;\n  undefined1 *__dest;\n  \n  __n = FUN_00014290(param_1);\n  __dest = (undefined1 *)malloc(__n + 1 + (uint)(__n == 0));\n  if (__dest != (undefined1 *)0x0) {\n    memcpy(__dest,param_1,__n);\n    if (__n == 0) {\n      *__dest = 0x2e;\n      __n = 1;\n    }\n    __dest[__n] = 0;\n  }\n  return __dest;\n}\n\n" (function_definition "undefined1 * FUN_00014300(void *param_1)\n\n{\n  size_t __n;\n  undefined1 *__dest;\n  \n  __n = FUN_00014290(param_1);\n  __dest = (undefined1 *)malloc(__n + 1 + (uint)(__n == 0));\n  if (__dest != (undefined1 *)0x0) {\n    memcpy(__dest,param_1,__n);\n    if (__n == 0) {\n      *__dest = 0x2e;\n      __n = 1;\n    }\n    __dest[__n] = 0;\n  }\n  return __dest;\n}" type_identifier (pointer_declarator "* FUN_00014300(void *param_1)" * (function_declarator "FUN_00014300(void *param_1)" identifier (parameter_list "(void *param_1)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  size_t __n;\n  undefined1 *__dest;\n  \n  __n = FUN_00014290(param_1);\n  __dest = (undefined1 *)malloc(__n + 1 + (uint)(__n == 0));\n  if (__dest != (undefined1 *)0x0) {\n    memcpy(__dest,param_1,__n);\n    if (__n == 0) {\n      *__dest = 0x2e;\n      __n = 1;\n    }\n    __dest[__n] = 0;\n  }\n  return __dest;\n}" { (declaration "size_t __n;" primitive_type identifier ;) (declaration "undefined1 *__dest;" type_identifier (pointer_declarator "*__dest" * identifier) ;) (expression_statement "__n = FUN_00014290(param_1);" (assignment_expression "__n = FUN_00014290(param_1)" identifier = (call_expression "FUN_00014290(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "__dest = (undefined1 *)malloc(__n + 1 + (uint)(__n == 0));" (assignment_expression "__dest = (undefined1 *)malloc(__n + 1 + (uint)(__n == 0))" identifier = (cast_expression "(undefined1 *)malloc(__n + 1 + (uint)(__n == 0))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(__n + 1 + (uint)(__n == 0))" identifier (argument_list "(__n + 1 + (uint)(__n == 0))" ( (binary_expression "__n + 1 + (uint)(__n == 0)" (binary_expression "__n + 1" identifier + number_literal) + (call_expression "(uint)(__n == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )))) ))))) ;) (if_statement "if (__dest != (undefined1 *)0x0) {\n    memcpy(__dest,param_1,__n);\n    if (__n == 0) {\n      *__dest = 0x2e;\n      __n = 1;\n    }\n    __dest[__n] = 0;\n  }" if (parenthesized_expression "(__dest != (undefined1 *)0x0)" ( (binary_expression "__dest != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    memcpy(__dest,param_1,__n);\n    if (__n == 0) {\n      *__dest = 0x2e;\n      __n = 1;\n    }\n    __dest[__n] = 0;\n  }" { (expression_statement "memcpy(__dest,param_1,__n);" (call_expression "memcpy(__dest,param_1,__n)" identifier (argument_list "(__dest,param_1,__n)" ( identifier , identifier , identifier ))) ;) (if_statement "if (__n == 0) {\n      *__dest = 0x2e;\n      __n = 1;\n    }" if (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) (compound_statement "{\n      *__dest = 0x2e;\n      __n = 1;\n    }" { (expression_statement "*__dest = 0x2e;" (assignment_expression "*__dest = 0x2e" (pointer_expression "*__dest" * identifier) = number_literal) ;) (expression_statement "__n = 1;" (assignment_expression "__n = 1" identifier = number_literal) ;) })) (expression_statement "__dest[__n] = 0;" (assignment_expression "__dest[__n] = 0" (subscript_expression "__dest[__n]" identifier [ identifier ]) = number_literal) ;) })) (return_statement "return __dest;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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 (binary_expression IDENT + LIT) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) )))) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined1 * FUN_00014300(void *param_1)\n\n{\n  size_t __n;\n  undefined1 *__dest;\n  \n  __n = FUN_00014290(param_1);\n  __dest = (undefined1 *)malloc(__n + 1 + (uint)(__n == 0));\n  if (__dest != (undefined1 *)0x0) {\n    memcpy(__dest,param_1,__n);\n    if (__n == 0) {\n      *__dest = 0x2e;\n      __n = 1;\n    }\n    __dest[__n] = 0;\n  }\n  return __dest;\n}" (type_identifier "undefined1") (pointer_declarator "* FUN_00014300(void *param_1)" (* "*") (function_declarator "FUN_00014300(void *param_1)" (identifier "FUN_00014300") (parameter_list "(void *param_1)" (( "(") (parameter_declaration "void *param_1" (primitive_type "void") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  size_t __n;\n  undefined1 *__dest;\n  \n  __n = FUN_00014290(param_1);\n  __dest = (undefined1 *)malloc(__n + 1 + (uint)(__n == 0));\n  if (__dest != (undefined1 *)0x0) {\n    memcpy(__dest,param_1,__n);\n    if (__n == 0) {\n      *__dest = 0x2e;\n      __n = 1;\n    }\n    __dest[__n] = 0;\n  }\n  return __dest;\n}" ({ "{") (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "undefined1 *__dest;" (type_identifier "undefined1") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (expression_statement "__n = FUN_00014290(param_1);" (assignment_expression "__n = FUN_00014290(param_1)" (identifier "__n") (= "=") (call_expression "FUN_00014290(param_1)" (identifier "FUN_00014290") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "__dest = (undefined1 *)malloc(__n + 1 + (uint)(__n == 0));" (assignment_expression "__dest = (undefined1 *)malloc(__n + 1 + (uint)(__n == 0))" (identifier "__dest") (= "=") (cast_expression "(undefined1 *)malloc(__n + 1 + (uint)(__n == 0))" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "malloc(__n + 1 + (uint)(__n == 0))" (identifier "malloc") (argument_list "(__n + 1 + (uint)(__n == 0))" (( "(") (binary_expression "__n + 1 + (uint)(__n == 0)" (binary_expression "__n + 1" (identifier "__n") (+ "+") (number_literal "1")) (+ "+") (call_expression "(uint)(__n == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(__n == 0)" (( "(") (binary_expression "__n == 0" (identifier "__n") (== "==") (number_literal "0")) () ")")))) () ")"))))) (; ";")) (if_statement "if (__dest != (undefined1 *)0x0) {\n    memcpy(__dest,param_1,__n);\n    if (__n == 0) {\n      *__dest = 0x2e;\n      __n = 1;\n    }\n    __dest[__n] = 0;\n  }" (if "if") (parenthesized_expression "(__dest != (undefined1 *)0x0)" (( "(") (binary_expression "__dest != (undefined1 *)0x0" (identifier "__dest") (!= "!=") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    memcpy(__dest,param_1,__n);\n    if (__n == 0) {\n      *__dest = 0x2e;\n      __n = 1;\n    }\n    __dest[__n] = 0;\n  }" ({ "{") (expression_statement "memcpy(__dest,param_1,__n);" (call_expression "memcpy(__dest,param_1,__n)" (identifier "memcpy") (argument_list "(__dest,param_1,__n)" (( "(") (identifier "__dest") (, ",") (identifier "param_1") (, ",") (identifier "__n") () ")"))) (; ";")) (if_statement "if (__n == 0) {\n      *__dest = 0x2e;\n      __n = 1;\n    }" (if "if") (parenthesized_expression "(__n == 0)" (( "(") (binary_expression "__n == 0" (identifier "__n") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *__dest = 0x2e;\n      __n = 1;\n    }" ({ "{") (expression_statement "*__dest = 0x2e;" (assignment_expression "*__dest = 0x2e" (pointer_expression "*__dest" (* "*") (identifier "__dest")) (= "=") (number_literal "0x2e")) (; ";")) (expression_statement "__n = 1;" (assignment_expression "__n = 1" (identifier "__n") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "__dest[__n] = 0;" (assignment_expression "__dest[__n] = 0" (subscript_expression "__dest[__n]" (identifier "__dest") ([ "[") (identifier "__n") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return __dest;" (return "return") (identifier "__dest") (; ";")) (} "}")))

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

char * function_1(char *file)

{
  size_t var_3;
  char *var_4;
  
  var_3 = var_1(file);
  var_4 = (char *)var_2(var_3 + 1 + (uint)(var_3 == 0));
  if (var_4 != (char *)0x0) {
    var_5(var_4,file,var_3);
    if (var_3 == 0) {
      *var_4 = '.';
      var_3 = 1;
    }
    var_4[var_3] = '\0';
  }
  return var_4;
}


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

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

undefined1 * MASKED(void *param_1)

{
  size_t __n;
  undefined1 *__dest;
  
  __n = FUN_00014290(param_1);
  __dest = (undefined1 *)malloc(__n + 1 + (uint)(__n == 0));
  if (__dest != (undefined1 *)0x0) {
    memcpy(__dest,param_1,__n);
    if (__n == 0) {
      *__dest = 0x2e;
      __n = 1;
    }
    __dest[__n] = 0;
  }
  return __dest;
}

