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

char * xstrndup(char *string,size_t n)

{
  char *pcVar1;
  
  pcVar1 = strndup(string,n);
  if (pcVar1 != (char *)0x0) {
    return pcVar1;
  }
                    /* WARNING: Subroutine does not return */
  xalloc_die();
}



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

void FUN_000630b0(char *param_1,size_t param_2)

{
  char *pcVar1;
  
  pcVar1 = strndup(param_1,param_2);
  if (pcVar1 != (char *)0x0) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00063070();
}


PUSH EBX
CALL 0x000190b0
ADD EBX,0x4bb1a
SUB ESP,0x10
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESP + 0x1c]
CALL 0x00016c00
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000630d8
ADD ESP,0x8
POP EBX
RET
CALL 0x00063070
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000630b0(char *param_1,size_t param_2)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = strndup(param_1,param_2);\n  if (pcVar1 != (char *)0x0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00063070();\n}\n\n" comment (function_definition "void FUN_000630b0(char *param_1,size_t param_2)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = strndup(param_1,param_2);\n  if (pcVar1 != (char *)0x0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00063070();\n}" primitive_type (function_declarator "FUN_000630b0(char *param_1,size_t param_2)" identifier (parameter_list "(char *param_1,size_t param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = strndup(param_1,param_2);\n  if (pcVar1 != (char *)0x0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00063070();\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = strndup(param_1,param_2);" (assignment_expression "pcVar1 = strndup(param_1,param_2)" identifier = (call_expression "strndup(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (pcVar1 != (char *)0x0) {\n    return;\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    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_00063070();" (call_expression "FUN_00063070()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * xstrndup(char *string,size_t n)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = strndup(string,n);\n  if (pcVar1 != (char *)0x0) {\n    return pcVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  xalloc_die();\n}\n\n" comment comment (function_definition "char * xstrndup(char *string,size_t n)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = strndup(string,n);\n  if (pcVar1 != (char *)0x0) {\n    return pcVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  xalloc_die();\n}" primitive_type (pointer_declarator "* xstrndup(char *string,size_t n)" * (function_declarator "xstrndup(char *string,size_t n)" identifier (parameter_list "(char *string,size_t n)" ( (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) , (parameter_declaration "size_t n" primitive_type identifier) )))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = strndup(string,n);\n  if (pcVar1 != (char *)0x0) {\n    return pcVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  xalloc_die();\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = strndup(string,n);" (assignment_expression "pcVar1 = strndup(string,n)" identifier = (call_expression "strndup(string,n)" identifier (argument_list "(string,n)" ( identifier , identifier )))) ;) (if_statement "if (pcVar1 != (char *)0x0) {\n    return pcVar1;\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    return pcVar1;\n  }" { (return_statement "return pcVar1;" return identifier ;) })) comment (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_000630b0(char *param_1,size_t param_2)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = strndup(param_1,param_2);\n  if (pcVar1 != (char *)0x0) {\n    return;\n  }\n                    \n  FUN_00063070();\n}\n\n" (function_definition "void FUN_000630b0(char *param_1,size_t param_2)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = strndup(param_1,param_2);\n  if (pcVar1 != (char *)0x0) {\n    return;\n  }\n                    \n  FUN_00063070();\n}" primitive_type (function_declarator "FUN_000630b0(char *param_1,size_t param_2)" identifier (parameter_list "(char *param_1,size_t param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = strndup(param_1,param_2);\n  if (pcVar1 != (char *)0x0) {\n    return;\n  }\n                    \n  FUN_00063070();\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = strndup(param_1,param_2);" (assignment_expression "pcVar1 = strndup(param_1,param_2)" identifier = (call_expression "strndup(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (pcVar1 != (char *)0x0) {\n    return;\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    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00063070();" (call_expression "FUN_00063070()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (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 { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_000630b0(char *param_1,size_t param_2)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = strndup(param_1,param_2);\n  if (pcVar1 != (char *)0x0) {\n    return;\n  }\n                    \n  FUN_00063070();\n}" (primitive_type "void") (function_declarator "FUN_000630b0(char *param_1,size_t param_2)" (identifier "FUN_000630b0") (parameter_list "(char *param_1,size_t param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "size_t param_2" (primitive_type "size_t") (identifier "param_2")) () ")"))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = strndup(param_1,param_2);\n  if (pcVar1 != (char *)0x0) {\n    return;\n  }\n                    \n  FUN_00063070();\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (expression_statement "pcVar1 = strndup(param_1,param_2);" (assignment_expression "pcVar1 = strndup(param_1,param_2)" (identifier "pcVar1") (= "=") (call_expression "strndup(param_1,param_2)" (identifier "strndup") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (pcVar1 != (char *)0x0) {\n    return;\n  }" (if "if") (parenthesized_expression "(pcVar1 != (char *)0x0)" (( "(") (binary_expression "pcVar1 != (char *)0x0" (identifier "pcVar1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00063070();" (call_expression "FUN_00063070()" (identifier "FUN_00063070") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

char * function_1(char *string,size_t n)

{
  char *var_2;
  
  var_2 = var_1(string,n);
  if (var_2 != (char *)0x0) {
    return var_2;
  }
                    /* WARNING: Subroutine does not return */
  var_3();
}


(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))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (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 (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

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

void MASKED(char *param_1,size_t param_2)

{
  char *pcVar1;
  
  pcVar1 = strndup(param_1,param_2);
  if (pcVar1 != (char *)0x0) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00063070();
}

