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

void * xmemdup(void *input,size_t copy_size,size_t alloc_size)

{
}



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

void FUN_003ac080(void *param_1,uint param_2,uint param_3)

{
  void *__dest;
  
  __dest = (void *)FUN_003abf90(param_3);
  if (param_2 < param_3) {
    memset((void *)((int)__dest + param_2),0,param_3 - param_2);
  }
  memcpy(__dest,param_1,param_2);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00050b50
ADD EBX,0x23df77
SUB ESP,0x18
MOV ESI,dword ptr [ESP + 0x34]
MOV EDI,dword ptr [ESP + 0x30]
PUSH ESI
CALL 0x003abf90
ADD ESP,0x10
MOV EBP,EAX
CMP ESI,EDI
JA 0x003ac0c0
SUB ESP,0x4
PUSH EDI
PUSH dword ptr [ESP + 0x28]
PUSH EBP
CALL 0x000392d0
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EAX + EDI*0x1]
SUB ESI,EDI
PUSH ESI
PUSH 0x0
PUSH EAX
CALL 0x00039900
ADD ESP,0x10
JMP 0x003ac0a9
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_003ac080(void *param_1,uint param_2,uint param_3)\n\n{\n  void *__dest;\n  \n  __dest = (void *)FUN_003abf90(param_3);\n  if (param_2 < param_3) {\n    memset((void *)((int)__dest + param_2),0,param_3 - param_2);\n  }\n  memcpy(__dest,param_1,param_2);\n  return;\n}\n\n" comment (function_definition "void FUN_003ac080(void *param_1,uint param_2,uint param_3)\n\n{\n  void *__dest;\n  \n  __dest = (void *)FUN_003abf90(param_3);\n  if (param_2 < param_3) {\n    memset((void *)((int)__dest + param_2),0,param_3 - param_2);\n  }\n  memcpy(__dest,param_1,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_003ac080(void *param_1,uint param_2,uint param_3)" identifier (parameter_list "(void *param_1,uint param_2,uint param_3)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  void *__dest;\n  \n  __dest = (void *)FUN_003abf90(param_3);\n  if (param_2 < param_3) {\n    memset((void *)((int)__dest + param_2),0,param_3 - param_2);\n  }\n  memcpy(__dest,param_1,param_2);\n  return;\n}" { (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "__dest = (void *)FUN_003abf90(param_3);" (assignment_expression "__dest = (void *)FUN_003abf90(param_3)" identifier = (cast_expression "(void *)FUN_003abf90(param_3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003abf90(param_3)" identifier (argument_list "(param_3)" ( identifier ))))) ;) (if_statement "if (param_2 < param_3) {\n    memset((void *)((int)__dest + param_2),0,param_3 - param_2);\n  }" if (parenthesized_expression "(param_2 < param_3)" ( (binary_expression "param_2 < param_3" identifier < identifier) )) (compound_statement "{\n    memset((void *)((int)__dest + param_2),0,param_3 - param_2);\n  }" { (expression_statement "memset((void *)((int)__dest + param_2),0,param_3 - param_2);" (call_expression "memset((void *)((int)__dest + param_2),0,param_3 - param_2)" identifier (argument_list "((void *)((int)__dest + param_2),0,param_3 - param_2)" ( (cast_expression "(void *)((int)__dest + param_2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + param_2)" ( (binary_expression "(int)__dest + param_2" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))) , number_literal , (binary_expression "param_3 - param_2" identifier - 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 *input,size_t copy_size,size_t alloc_size)\n\n{\n}\n\n" comment comment (function_definition "void * xmemdup(void *input,size_t copy_size,size_t alloc_size)\n\n{\n}" primitive_type (pointer_declarator "* xmemdup(void *input,size_t copy_size,size_t alloc_size)" * (function_declarator "xmemdup(void *input,size_t copy_size,size_t alloc_size)" identifier (parameter_list "(void *input,size_t copy_size,size_t alloc_size)" ( (parameter_declaration "void *input" primitive_type (pointer_declarator "*input" * identifier)) , (parameter_declaration "size_t copy_size" primitive_type identifier) , (parameter_declaration "size_t alloc_size" primitive_type identifier) )))) (compound_statement "{\n}" { })))
(translation_unit "void FUN_003ac080(void *param_1,uint param_2,uint param_3)\n\n{\n  void *__dest;\n  \n  __dest = (void *)FUN_003abf90(param_3);\n  if (param_2 < param_3) {\n    memset((void *)((int)__dest + param_2),0,param_3 - param_2);\n  }\n  memcpy(__dest,param_1,param_2);\n  return;\n}\n\n" (function_definition "void FUN_003ac080(void *param_1,uint param_2,uint param_3)\n\n{\n  void *__dest;\n  \n  __dest = (void *)FUN_003abf90(param_3);\n  if (param_2 < param_3) {\n    memset((void *)((int)__dest + param_2),0,param_3 - param_2);\n  }\n  memcpy(__dest,param_1,param_2);\n  return;\n}" primitive_type (function_declarator "FUN_003ac080(void *param_1,uint param_2,uint param_3)" identifier (parameter_list "(void *param_1,uint param_2,uint param_3)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  void *__dest;\n  \n  __dest = (void *)FUN_003abf90(param_3);\n  if (param_2 < param_3) {\n    memset((void *)((int)__dest + param_2),0,param_3 - param_2);\n  }\n  memcpy(__dest,param_1,param_2);\n  return;\n}" { (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "__dest = (void *)FUN_003abf90(param_3);" (assignment_expression "__dest = (void *)FUN_003abf90(param_3)" identifier = (cast_expression "(void *)FUN_003abf90(param_3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003abf90(param_3)" identifier (argument_list "(param_3)" ( identifier ))))) ;) (if_statement "if (param_2 < param_3) {\n    memset((void *)((int)__dest + param_2),0,param_3 - param_2);\n  }" if (parenthesized_expression "(param_2 < param_3)" ( (binary_expression "param_2 < param_3" identifier < identifier) )) (compound_statement "{\n    memset((void *)((int)__dest + param_2),0,param_3 - param_2);\n  }" { (expression_statement "memset((void *)((int)__dest + param_2),0,param_3 - param_2);" (call_expression "memset((void *)((int)__dest + param_2),0,param_3 - param_2)" identifier (argument_list "((void *)((int)__dest + param_2),0,param_3 - param_2)" ( (cast_expression "(void *)((int)__dest + param_2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + param_2)" ( (binary_expression "(int)__dest + param_2" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))) , number_literal , (binary_expression "param_3 - param_2" identifier - 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) , (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 ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) ))) , LIT , (binary_expression IDENT - IDENT) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_003ac080(void *param_1,uint param_2,uint param_3)\n\n{\n  void *__dest;\n  \n  __dest = (void *)FUN_003abf90(param_3);\n  if (param_2 < param_3) {\n    memset((void *)((int)__dest + param_2),0,param_3 - param_2);\n  }\n  memcpy(__dest,param_1,param_2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_003ac080(void *param_1,uint param_2,uint param_3)" (identifier "FUN_003ac080") (parameter_list "(void *param_1,uint param_2,uint param_3)" (( "(") (parameter_declaration "void *param_1" (primitive_type "void") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  void *__dest;\n  \n  __dest = (void *)FUN_003abf90(param_3);\n  if (param_2 < param_3) {\n    memset((void *)((int)__dest + param_2),0,param_3 - param_2);\n  }\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_003abf90(param_3);" (assignment_expression "__dest = (void *)FUN_003abf90(param_3)" (identifier "__dest") (= "=") (cast_expression "(void *)FUN_003abf90(param_3)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_003abf90(param_3)" (identifier "FUN_003abf90") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")"))))) (; ";")) (if_statement "if (param_2 < param_3) {\n    memset((void *)((int)__dest + param_2),0,param_3 - param_2);\n  }" (if "if") (parenthesized_expression "(param_2 < param_3)" (( "(") (binary_expression "param_2 < param_3" (identifier "param_2") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n    memset((void *)((int)__dest + param_2),0,param_3 - param_2);\n  }" ({ "{") (expression_statement "memset((void *)((int)__dest + param_2),0,param_3 - param_2);" (call_expression "memset((void *)((int)__dest + param_2),0,param_3 - param_2)" (identifier "memset") (argument_list "((void *)((int)__dest + param_2),0,param_3 - param_2)" (( "(") (cast_expression "(void *)((int)__dest + param_2)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + param_2)" (( "(") (binary_expression "(int)__dest + param_2" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (identifier "param_2")) () ")"))) (, ",") (number_literal "0") (, ",") (binary_expression "param_3 - param_2" (identifier "param_3") (- "-") (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 *input,size_t copy_size,size_t alloc_size)

{
}


(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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) 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)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier)))) (number_literal) (binary_expression left: (identifier) right: (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,uint param_2,uint param_3)

{
  void *__dest;
  
  __dest = (void *)FUN_003abf90(param_3);
  if (param_2 < param_3) {
    memset((void *)((int)__dest + param_2),0,param_3 - param_2);
  }
  memcpy(__dest,param_1,param_2);
  return;
}

