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

int gmp_sprintf_reps(char **bufp,int c,int reps)

{
  char *__s;
  
  __s = *bufp;
  *bufp = __s + reps;
  memset(__s,c,reps);
  return reps;
}



size_t __regparm2 FUN_00077b60(undefined4 param_1,undefined4 param_2,int param_3,size_t param_4)

{
  void *__s;
  int *unaff_retaddr;
  
  entry(param_2,0x77b67);
  __s = (void *)*unaff_retaddr;
  *unaff_retaddr = (int)__s + param_4;
  memset(__s,param_3,param_4);
  return param_4;
}


PUSH ESI
PUSH EBX
CALL 0x0001c340
ADD EBX,0x21499
SUB ESP,0x8
MOV EDX,dword ptr [ESP + 0x14]
MOV ESI,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [EDX]
LEA ECX,[EAX + ESI*0x1]
MOV dword ptr [EDX],ECX
PUSH ESI
PUSH dword ptr [ESP + 0x1c]
PUSH EAX
CALL 0x0001bb10
ADD ESP,0x14
MOV EAX,ESI
POP EBX
POP ESI
RET
(translation_unit "size_t __regparm2 FUN_00077b60(undefined4 param_1,undefined4 param_2,int param_3,size_t param_4)\n\n{\n  void *__s;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x77b67);\n  __s = (void *)*unaff_retaddr;\n  *unaff_retaddr = (int)__s + param_4;\n  memset(__s,param_3,param_4);\n  return param_4;\n}\n\n" (function_definition "size_t __regparm2 FUN_00077b60(undefined4 param_1,undefined4 param_2,int param_3,size_t param_4)\n\n{\n  void *__s;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x77b67);\n  __s = (void *)*unaff_retaddr;\n  *unaff_retaddr = (int)__s + param_4;\n  memset(__s,param_3,param_4);\n  return param_4;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_00077b60(undefined4 param_1,undefined4 param_2,int param_3,size_t param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,size_t param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "size_t param_4" primitive_type identifier) ))) (compound_statement "{\n  void *__s;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x77b67);\n  __s = (void *)*unaff_retaddr;\n  *unaff_retaddr = (int)__s + param_4;\n  memset(__s,param_3,param_4);\n  return param_4;\n}" { (declaration "void *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "int *unaff_retaddr;" primitive_type (pointer_declarator "*unaff_retaddr" * identifier) ;) (expression_statement "entry(param_2,0x77b67);" (call_expression "entry(param_2,0x77b67)" identifier (argument_list "(param_2,0x77b67)" ( identifier , number_literal ))) ;) (expression_statement "__s = (void *)*unaff_retaddr;" (assignment_expression "__s = (void *)*unaff_retaddr" identifier = (cast_expression "(void *)*unaff_retaddr" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*unaff_retaddr" * identifier))) ;) (expression_statement "*unaff_retaddr = (int)__s + param_4;" (assignment_expression "*unaff_retaddr = (int)__s + param_4" (pointer_expression "*unaff_retaddr" * identifier) = (binary_expression "(int)__s + param_4" (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier) + identifier)) ;) (expression_statement "memset(__s,param_3,param_4);" (call_expression "memset(__s,param_3,param_4)" identifier (argument_list "(__s,param_3,param_4)" ( identifier , identifier , identifier ))) ;) (return_statement "return param_4;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint gmp_sprintf_reps(char **bufp,int c,int reps)\n\n{\n  char *__s;\n  \n  __s = *bufp;\n  *bufp = __s + reps;\n  memset(__s,c,reps);\n  return reps;\n}\n\n" comment comment (function_definition "int gmp_sprintf_reps(char **bufp,int c,int reps)\n\n{\n  char *__s;\n  \n  __s = *bufp;\n  *bufp = __s + reps;\n  memset(__s,c,reps);\n  return reps;\n}" primitive_type (function_declarator "gmp_sprintf_reps(char **bufp,int c,int reps)" identifier (parameter_list "(char **bufp,int c,int reps)" ( (parameter_declaration "char **bufp" primitive_type (pointer_declarator "**bufp" * (pointer_declarator "*bufp" * identifier))) , (parameter_declaration "int c" primitive_type identifier) , (parameter_declaration "int reps" primitive_type identifier) ))) (compound_statement "{\n  char *__s;\n  \n  __s = *bufp;\n  *bufp = __s + reps;\n  memset(__s,c,reps);\n  return reps;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (expression_statement "__s = *bufp;" (assignment_expression "__s = *bufp" identifier = (pointer_expression "*bufp" * identifier)) ;) (expression_statement "*bufp = __s + reps;" (assignment_expression "*bufp = __s + reps" (pointer_expression "*bufp" * identifier) = (binary_expression "__s + reps" identifier + identifier)) ;) (expression_statement "memset(__s,c,reps);" (call_expression "memset(__s,c,reps)" identifier (argument_list "(__s,c,reps)" ( identifier , identifier , identifier ))) ;) (return_statement "return reps;" return identifier ;) })))
(translation_unit "size_t __regparm2 FUN_00077b60(undefined4 param_1,undefined4 param_2,int param_3,size_t param_4)\n\n{\n  void *__s;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x77b67);\n  __s = (void *)*unaff_retaddr;\n  *unaff_retaddr = (int)__s + param_4;\n  memset(__s,param_3,param_4);\n  return param_4;\n}\n\n" (function_definition "size_t __regparm2 FUN_00077b60(undefined4 param_1,undefined4 param_2,int param_3,size_t param_4)\n\n{\n  void *__s;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x77b67);\n  __s = (void *)*unaff_retaddr;\n  *unaff_retaddr = (int)__s + param_4;\n  memset(__s,param_3,param_4);\n  return param_4;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_00077b60(undefined4 param_1,undefined4 param_2,int param_3,size_t param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,size_t param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "size_t param_4" primitive_type identifier) ))) (compound_statement "{\n  void *__s;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x77b67);\n  __s = (void *)*unaff_retaddr;\n  *unaff_retaddr = (int)__s + param_4;\n  memset(__s,param_3,param_4);\n  return param_4;\n}" { (declaration "void *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "int *unaff_retaddr;" primitive_type (pointer_declarator "*unaff_retaddr" * identifier) ;) (expression_statement "entry(param_2,0x77b67);" (call_expression "entry(param_2,0x77b67)" identifier (argument_list "(param_2,0x77b67)" ( identifier , number_literal ))) ;) (expression_statement "__s = (void *)*unaff_retaddr;" (assignment_expression "__s = (void *)*unaff_retaddr" identifier = (cast_expression "(void *)*unaff_retaddr" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*unaff_retaddr" * identifier))) ;) (expression_statement "*unaff_retaddr = (int)__s + param_4;" (assignment_expression "*unaff_retaddr = (int)__s + param_4" (pointer_expression "*unaff_retaddr" * identifier) = (binary_expression "(int)__s + param_4" (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier) + identifier)) ;) (expression_statement "memset(__s,param_3,param_4);" (call_expression "memset(__s,param_3,param_4)" identifier (argument_list "(__s,param_3,param_4)" ( identifier , identifier , identifier ))) ;) (return_statement "return param_4;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "size_t __regparm2 FUN_00077b60(undefined4 param_1,undefined4 param_2,int param_3,size_t param_4)\n\n{\n  void *__s;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x77b67);\n  __s = (void *)*unaff_retaddr;\n  *unaff_retaddr = (int)__s + param_4;\n  memset(__s,param_3,param_4);\n  return param_4;\n}" (primitive_type "size_t") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_00077b60(undefined4 param_1,undefined4 param_2,int param_3,size_t param_4)" (identifier "FUN_00077b60") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,size_t param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "size_t param_4" (primitive_type "size_t") (identifier "param_4")) () ")"))) (compound_statement "{\n  void *__s;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x77b67);\n  __s = (void *)*unaff_retaddr;\n  *unaff_retaddr = (int)__s + param_4;\n  memset(__s,param_3,param_4);\n  return param_4;\n}" ({ "{") (declaration "void *__s;" (primitive_type "void") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "int *unaff_retaddr;" (primitive_type "int") (pointer_declarator "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (; ";")) (expression_statement "entry(param_2,0x77b67);" (call_expression "entry(param_2,0x77b67)" (identifier "entry") (argument_list "(param_2,0x77b67)" (( "(") (identifier "param_2") (, ",") (number_literal "0x77b67") () ")"))) (; ";")) (expression_statement "__s = (void *)*unaff_retaddr;" (assignment_expression "__s = (void *)*unaff_retaddr" (identifier "__s") (= "=") (cast_expression "(void *)*unaff_retaddr" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")))) (; ";")) (expression_statement "*unaff_retaddr = (int)__s + param_4;" (assignment_expression "*unaff_retaddr = (int)__s + param_4" (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (= "=") (binary_expression "(int)__s + param_4" (cast_expression "(int)__s" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s")) (+ "+") (identifier "param_4"))) (; ";")) (expression_statement "memset(__s,param_3,param_4);" (call_expression "memset(__s,param_3,param_4)" (identifier "memset") (argument_list "(__s,param_3,param_4)" (( "(") (identifier "__s") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (return_statement "return param_4;" (return "return") (identifier "param_4") (; ";")) (} "}")))

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

int function_1(char **bufp,int c,int var_2)

{
  char *var_1;
  
  var_1 = *bufp;
  *bufp = var_1 + var_2;
  var_3(var_1,c,var_2);
  return var_2;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (return_statement (identifier)))))

size_t __regparm2 MASKED(undefined4 param_1,undefined4 param_2,int param_3,size_t param_4)

{
  void *__s;
  int *unaff_retaddr;
  
  entry(param_2,0x77b67);
  __s = (void *)*unaff_retaddr;
  *unaff_retaddr = (int)__s + param_4;
  memset(__s,param_3,param_4);
  return param_4;
}

