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

void * xmemdup(void *p,size_t s)

{
  void *pvVar1;
  
  pvVar1 = xmalloc(s);
  pvVar1 = memcpy(pvVar1,p,s);
  return pvVar1;
}



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

void FUN_00016f70(void *param_1,size_t param_2)

{
  void *__dest;
  
  __dest = (void *)FUN_00016cd0(param_2);
  memcpy(__dest,param_1,param_2);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00011b10
ADD EBX,0x8089
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x20]
PUSH ESI
CALL 0x00016cd0
ADD ESP,0xc
PUSH ESI
PUSH dword ptr [ESP + 0x18]
PUSH EAX
CALL 0x00011090
ADD ESP,0x14
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00016f70(void *param_1,size_t param_2)\n\n{\n  void *__dest;\n  \n  __dest = (void *)FUN_00016cd0(param_2);\n  memcpy(__dest,param_1,param_2);\n  return;\n}\n\n" comment (function_definition "void FUN_00016f70(void *param_1,size_t param_2)\n\n{\n  void *__dest;\n  \n  __dest = (void *)FUN_00016cd0(param_2);\n  memcpy(__dest,param_1,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_00016f70(void *param_1,size_t param_2)" identifier (parameter_list "(void *param_1,size_t param_2)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) ))) (compound_statement "{\n  void *__dest;\n  \n  __dest = (void *)FUN_00016cd0(param_2);\n  memcpy(__dest,param_1,param_2);\n  return;\n}" { (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "__dest = (void *)FUN_00016cd0(param_2);" (assignment_expression "__dest = (void *)FUN_00016cd0(param_2)" identifier = (cast_expression "(void *)FUN_00016cd0(param_2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00016cd0(param_2)" identifier (argument_list "(param_2)" ( identifier ))))) ;) (expression_statement "memcpy(__dest,param_1,param_2);" (call_expression "memcpy(__dest,param_1,param_2)" identifier (argument_list "(__dest,param_1,param_2)" ( identifier , identifier , 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\nvoid * xmemdup(void *p,size_t s)\n\n{\n  void *pvVar1;\n  \n  pvVar1 = xmalloc(s);\n  pvVar1 = memcpy(pvVar1,p,s);\n  return pvVar1;\n}\n\n" comment comment (function_definition "void * xmemdup(void *p,size_t s)\n\n{\n  void *pvVar1;\n  \n  pvVar1 = xmalloc(s);\n  pvVar1 = memcpy(pvVar1,p,s);\n  return pvVar1;\n}" primitive_type (pointer_declarator "* xmemdup(void *p,size_t s)" * (function_declarator "xmemdup(void *p,size_t s)" identifier (parameter_list "(void *p,size_t s)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "size_t s" primitive_type identifier) )))) (compound_statement "{\n  void *pvVar1;\n  \n  pvVar1 = xmalloc(s);\n  pvVar1 = memcpy(pvVar1,p,s);\n  return pvVar1;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (expression_statement "pvVar1 = xmalloc(s);" (assignment_expression "pvVar1 = xmalloc(s)" identifier = (call_expression "xmalloc(s)" identifier (argument_list "(s)" ( identifier )))) ;) (expression_statement "pvVar1 = memcpy(pvVar1,p,s);" (assignment_expression "pvVar1 = memcpy(pvVar1,p,s)" identifier = (call_expression "memcpy(pvVar1,p,s)" identifier (argument_list "(pvVar1,p,s)" ( identifier , identifier , identifier )))) ;) (return_statement "return pvVar1;" return identifier ;) })))
(translation_unit "void FUN_00016f70(void *param_1,size_t param_2)\n\n{\n  void *__dest;\n  \n  __dest = (void *)FUN_00016cd0(param_2);\n  memcpy(__dest,param_1,param_2);\n  return;\n}\n\n" (function_definition "void FUN_00016f70(void *param_1,size_t param_2)\n\n{\n  void *__dest;\n  \n  __dest = (void *)FUN_00016cd0(param_2);\n  memcpy(__dest,param_1,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_00016f70(void *param_1,size_t param_2)" identifier (parameter_list "(void *param_1,size_t param_2)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) ))) (compound_statement "{\n  void *__dest;\n  \n  __dest = (void *)FUN_00016cd0(param_2);\n  memcpy(__dest,param_1,param_2);\n  return;\n}" { (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "__dest = (void *)FUN_00016cd0(param_2);" (assignment_expression "__dest = (void *)FUN_00016cd0(param_2)" identifier = (cast_expression "(void *)FUN_00016cd0(param_2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00016cd0(param_2)" identifier (argument_list "(param_2)" ( identifier ))))) ;) (expression_statement "memcpy(__dest,param_1,param_2);" (call_expression "memcpy(__dest,param_1,param_2)" identifier (argument_list "(__dest,param_1,param_2)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00016f70(void *param_1,size_t param_2)\n\n{\n  void *__dest;\n  \n  __dest = (void *)FUN_00016cd0(param_2);\n  memcpy(__dest,param_1,param_2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00016f70(void *param_1,size_t param_2)" (identifier "FUN_00016f70") (parameter_list "(void *param_1,size_t param_2)" (( "(") (parameter_declaration "void *param_1" (primitive_type "void") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "size_t param_2" (primitive_type "size_t") (identifier "param_2")) () ")"))) (compound_statement "{\n  void *__dest;\n  \n  __dest = (void *)FUN_00016cd0(param_2);\n  memcpy(__dest,param_1,param_2);\n  return;\n}" ({ "{") (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (expression_statement "__dest = (void *)FUN_00016cd0(param_2);" (assignment_expression "__dest = (void *)FUN_00016cd0(param_2)" (identifier "__dest") (= "=") (cast_expression "(void *)FUN_00016cd0(param_2)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00016cd0(param_2)" (identifier "FUN_00016cd0") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))))) (; ";")) (expression_statement "memcpy(__dest,param_1,param_2);" (call_expression "memcpy(__dest,param_1,param_2)" (identifier "memcpy") (argument_list "(__dest,param_1,param_2)" (( "(") (identifier "__dest") (, ",") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void * function_1(void *p,size_t s)

{
  void *pvVar1;
  
  pvVar1 = var_1(s);
  pvVar1 = var_2(pvVar1,p,s);
  return pvVar1;
}


(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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (return_statement))))

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

void MASKED(void *param_1,size_t param_2)

{
  void *__dest;
  
  __dest = (void *)FUN_00016cd0(param_2);
  memcpy(__dest,param_1,param_2);
  return;
}

