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

void * __gmp_default_allocate(size_t size)

{
  void *pvVar1;
  
  pvVar1 = malloc(size);
  if (pvVar1 != (void *)0x0) {
    return pvVar1;
  }
  __fprintf_chk(*(undefined4 *)PTR_stderr_00098d54,1,"GNU MP: Cannot allocate memory (size=%lu)\n",
                size);
                    /* WARNING: Subroutine does not return */
  abort();
}



void __regparm3 __gmp_default_allocate(undefined4 param_1,undefined4 param_2)

{
  void *pvVar1;
  int unaff_EBX;
  size_t unaff_retaddr;
  
  entry(param_2,0x1c787);
  pvVar1 = malloc(unaff_retaddr);
  if (pvVar1 != (void *)0x0) {
    return;
  }
  __fprintf_chk(**(undefined4 **)(&DAT_0007c5cd + unaff_EBX),1,unaff_EBX + 0x5d8a1,unaff_retaddr);
                    /* WARNING: Subroutine does not return */
  abort();
}


PUSH ESI
PUSH EBX
CALL 0x0001c340
ADD EBX,0x7c879
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x1c]
PUSH ESI
CALL 0x0001b810
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001c7a7
ADD ESP,0x4
POP EBX
POP ESI
RET
LEA EAX,[EBX + 0xfffe1028]
PUSH ESI
PUSH EAX
MOV EAX,dword ptr [EBX + 0xfffffd54]
PUSH 0x1
PUSH dword ptr [EAX]
CALL 0x0001c050
CALL 0x0001c170
(translation_unit "void __regparm3 __gmp_default_allocate(undefined4 param_1,undefined4 param_2)\n\n{\n  void *pvVar1;\n  int unaff_EBX;\n  size_t unaff_retaddr;\n  \n  entry(param_2,0x1c787);\n  pvVar1 = malloc(unaff_retaddr);\n  if (pvVar1 != (void *)0x0) {\n    return;\n  }\n  __fprintf_chk(**(undefined4 **)(&DAT_0007c5cd + unaff_EBX),1,unaff_EBX + 0x5d8a1,unaff_retaddr);\n                    /* WARNING: Subroutine does not return */\n  abort();\n}\n\n" (function_definition "void __regparm3 __gmp_default_allocate(undefined4 param_1,undefined4 param_2)\n\n{\n  void *pvVar1;\n  int unaff_EBX;\n  size_t unaff_retaddr;\n  \n  entry(param_2,0x1c787);\n  pvVar1 = malloc(unaff_retaddr);\n  if (pvVar1 != (void *)0x0) {\n    return;\n  }\n  __fprintf_chk(**(undefined4 **)(&DAT_0007c5cd + unaff_EBX),1,unaff_EBX + 0x5d8a1,unaff_retaddr);\n                    /* WARNING: Subroutine does not return */\n  abort();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "__gmp_default_allocate(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  void *pvVar1;\n  int unaff_EBX;\n  size_t unaff_retaddr;\n  \n  entry(param_2,0x1c787);\n  pvVar1 = malloc(unaff_retaddr);\n  if (pvVar1 != (void *)0x0) {\n    return;\n  }\n  __fprintf_chk(**(undefined4 **)(&DAT_0007c5cd + unaff_EBX),1,unaff_EBX + 0x5d8a1,unaff_retaddr);\n                    /* WARNING: Subroutine does not return */\n  abort();\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "size_t unaff_retaddr;" primitive_type identifier ;) (expression_statement "entry(param_2,0x1c787);" (call_expression "entry(param_2,0x1c787)" identifier (argument_list "(param_2,0x1c787)" ( identifier , number_literal ))) ;) (expression_statement "pvVar1 = malloc(unaff_retaddr);" (assignment_expression "pvVar1 = malloc(unaff_retaddr)" identifier = (call_expression "malloc(unaff_retaddr)" identifier (argument_list "(unaff_retaddr)" ( identifier )))) ;) (if_statement "if (pvVar1 != (void *)0x0) {\n    return;\n  }" if (parenthesized_expression "(pvVar1 != (void *)0x0)" ( (binary_expression "pvVar1 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "__fprintf_chk(**(undefined4 **)(&DAT_0007c5cd + unaff_EBX),1,unaff_EBX + 0x5d8a1,unaff_retaddr);" (call_expression "__fprintf_chk(**(undefined4 **)(&DAT_0007c5cd + unaff_EBX),1,unaff_EBX + 0x5d8a1,unaff_retaddr)" identifier (argument_list "(**(undefined4 **)(&DAT_0007c5cd + unaff_EBX),1,unaff_EBX + 0x5d8a1,unaff_retaddr)" ( (pointer_expression "**(undefined4 **)(&DAT_0007c5cd + unaff_EBX)" * (pointer_expression "*(undefined4 **)(&DAT_0007c5cd + unaff_EBX)" * (cast_expression "(undefined4 **)(&DAT_0007c5cd + unaff_EBX)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_0007c5cd + unaff_EBX)" ( (binary_expression "&DAT_0007c5cd + unaff_EBX" (pointer_expression "&DAT_0007c5cd" & identifier) + identifier) ))))) , number_literal , (binary_expression "unaff_EBX + 0x5d8a1" identifier + number_literal) , identifier ))) ;) comment (expression_statement "abort();" (call_expression "abort()" 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\nvoid * __gmp_default_allocate(size_t size)\n\n{\n  void *pvVar1;\n  \n  pvVar1 = malloc(size);\n  if (pvVar1 != (void *)0x0) {\n    return pvVar1;\n  }\n  __fprintf_chk(*(undefined4 *)PTR_stderr_00098d54,1,"GNU MP: Cannot allocate memory (size=%lu)\n",\n                size);\n                    /* WARNING: Subroutine does not return */\n  abort();\n}\n\n" comment comment (function_definition "void * __gmp_default_allocate(size_t size)\n\n{\n  void *pvVar1;\n  \n  pvVar1 = malloc(size);\n  if (pvVar1 != (void *)0x0) {\n    return pvVar1;\n  }\n  __fprintf_chk(*(undefined4 *)PTR_stderr_00098d54,1,"GNU MP: Cannot allocate memory (size=%lu)\n",\n                size);\n                    /* WARNING: Subroutine does not return */\n  abort();\n}" primitive_type (pointer_declarator "* __gmp_default_allocate(size_t size)" * (function_declarator "__gmp_default_allocate(size_t size)" identifier (parameter_list "(size_t size)" ( (parameter_declaration "size_t size" primitive_type identifier) )))) (compound_statement "{\n  void *pvVar1;\n  \n  pvVar1 = malloc(size);\n  if (pvVar1 != (void *)0x0) {\n    return pvVar1;\n  }\n  __fprintf_chk(*(undefined4 *)PTR_stderr_00098d54,1,"GNU MP: Cannot allocate memory (size=%lu)\n",\n                size);\n                    /* WARNING: Subroutine does not return */\n  abort();\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (expression_statement "pvVar1 = malloc(size);" (assignment_expression "pvVar1 = malloc(size)" identifier = (call_expression "malloc(size)" identifier (argument_list "(size)" ( identifier )))) ;) (if_statement "if (pvVar1 != (void *)0x0) {\n    return pvVar1;\n  }" if (parenthesized_expression "(pvVar1 != (void *)0x0)" ( (binary_expression "pvVar1 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return pvVar1;\n  }" { (return_statement "return pvVar1;" return identifier ;) })) (expression_statement "__fprintf_chk(*(undefined4 *)PTR_stderr_00098d54,1,"GNU MP: Cannot allocate memory (size=%lu)\n",\n                size);" (call_expression "__fprintf_chk(*(undefined4 *)PTR_stderr_00098d54,1,"GNU MP: Cannot allocate memory (size=%lu)\n",\n                size)" identifier (argument_list "(*(undefined4 *)PTR_stderr_00098d54,1,"GNU MP: Cannot allocate memory (size=%lu)\n",\n                size)" ( (pointer_expression "*(undefined4 *)PTR_stderr_00098d54" * (cast_expression "(undefined4 *)PTR_stderr_00098d54" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal , (string_literal ""GNU MP: Cannot allocate memory (size=%lu)\n"" " string_content escape_sequence ") , identifier ))) ;) comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void __regparm3 __gmp_default_allocate(undefined4 param_1,undefined4 param_2)\n\n{\n  void *pvVar1;\n  int unaff_EBX;\n  size_t unaff_retaddr;\n  \n  entry(param_2,0x1c787);\n  pvVar1 = malloc(unaff_retaddr);\n  if (pvVar1 != (void *)0x0) {\n    return;\n  }\n  __fprintf_chk(**(undefined4 **)(&DAT_0007c5cd + unaff_EBX),1,unaff_EBX + 0x5d8a1,unaff_retaddr);\n                    \n  abort();\n}\n\n" (function_definition "void __regparm3 __gmp_default_allocate(undefined4 param_1,undefined4 param_2)\n\n{\n  void *pvVar1;\n  int unaff_EBX;\n  size_t unaff_retaddr;\n  \n  entry(param_2,0x1c787);\n  pvVar1 = malloc(unaff_retaddr);\n  if (pvVar1 != (void *)0x0) {\n    return;\n  }\n  __fprintf_chk(**(undefined4 **)(&DAT_0007c5cd + unaff_EBX),1,unaff_EBX + 0x5d8a1,unaff_retaddr);\n                    \n  abort();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "__gmp_default_allocate(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  void *pvVar1;\n  int unaff_EBX;\n  size_t unaff_retaddr;\n  \n  entry(param_2,0x1c787);\n  pvVar1 = malloc(unaff_retaddr);\n  if (pvVar1 != (void *)0x0) {\n    return;\n  }\n  __fprintf_chk(**(undefined4 **)(&DAT_0007c5cd + unaff_EBX),1,unaff_EBX + 0x5d8a1,unaff_retaddr);\n                    \n  abort();\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "size_t unaff_retaddr;" primitive_type identifier ;) (expression_statement "entry(param_2,0x1c787);" (call_expression "entry(param_2,0x1c787)" identifier (argument_list "(param_2,0x1c787)" ( identifier , number_literal ))) ;) (expression_statement "pvVar1 = malloc(unaff_retaddr);" (assignment_expression "pvVar1 = malloc(unaff_retaddr)" identifier = (call_expression "malloc(unaff_retaddr)" identifier (argument_list "(unaff_retaddr)" ( identifier )))) ;) (if_statement "if (pvVar1 != (void *)0x0) {\n    return;\n  }" if (parenthesized_expression "(pvVar1 != (void *)0x0)" ( (binary_expression "pvVar1 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "__fprintf_chk(**(undefined4 **)(&DAT_0007c5cd + unaff_EBX),1,unaff_EBX + 0x5d8a1,unaff_retaddr);" (call_expression "__fprintf_chk(**(undefined4 **)(&DAT_0007c5cd + unaff_EBX),1,unaff_EBX + 0x5d8a1,unaff_retaddr)" identifier (argument_list "(**(undefined4 **)(&DAT_0007c5cd + unaff_EBX),1,unaff_EBX + 0x5d8a1,unaff_retaddr)" ( (pointer_expression "**(undefined4 **)(&DAT_0007c5cd + unaff_EBX)" * (pointer_expression "*(undefined4 **)(&DAT_0007c5cd + unaff_EBX)" * (cast_expression "(undefined4 **)(&DAT_0007c5cd + unaff_EBX)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_0007c5cd + unaff_EBX)" ( (binary_expression "&DAT_0007c5cd + unaff_EBX" (pointer_expression "&DAT_0007c5cd" & identifier) + identifier) ))))) , number_literal , (binary_expression "unaff_EBX + 0x5d8a1" identifier + number_literal) , identifier ))) ;) (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( 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 ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) ))))) , LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void __regparm3 __gmp_default_allocate(undefined4 param_1,undefined4 param_2)\n\n{\n  void *pvVar1;\n  int unaff_EBX;\n  size_t unaff_retaddr;\n  \n  entry(param_2,0x1c787);\n  pvVar1 = malloc(unaff_retaddr);\n  if (pvVar1 != (void *)0x0) {\n    return;\n  }\n  __fprintf_chk(**(undefined4 **)(&DAT_0007c5cd + unaff_EBX),1,unaff_EBX + 0x5d8a1,unaff_retaddr);\n                    \n  abort();\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "__gmp_default_allocate(undefined4 param_1,undefined4 param_2)" (identifier "__gmp_default_allocate") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  void *pvVar1;\n  int unaff_EBX;\n  size_t unaff_retaddr;\n  \n  entry(param_2,0x1c787);\n  pvVar1 = malloc(unaff_retaddr);\n  if (pvVar1 != (void *)0x0) {\n    return;\n  }\n  __fprintf_chk(**(undefined4 **)(&DAT_0007c5cd + unaff_EBX),1,unaff_EBX + 0x5d8a1,unaff_retaddr);\n                    \n  abort();\n}" ({ "{") (declaration "void *pvVar1;" (primitive_type "void") (pointer_declarator "*pvVar1" (* "*") (identifier "pvVar1")) (; ";")) (declaration "int unaff_EBX;" (primitive_type "int") (identifier "unaff_EBX") (; ";")) (declaration "size_t unaff_retaddr;" (primitive_type "size_t") (identifier "unaff_retaddr") (; ";")) (expression_statement "entry(param_2,0x1c787);" (call_expression "entry(param_2,0x1c787)" (identifier "entry") (argument_list "(param_2,0x1c787)" (( "(") (identifier "param_2") (, ",") (number_literal "0x1c787") () ")"))) (; ";")) (expression_statement "pvVar1 = malloc(unaff_retaddr);" (assignment_expression "pvVar1 = malloc(unaff_retaddr)" (identifier "pvVar1") (= "=") (call_expression "malloc(unaff_retaddr)" (identifier "malloc") (argument_list "(unaff_retaddr)" (( "(") (identifier "unaff_retaddr") () ")")))) (; ";")) (if_statement "if (pvVar1 != (void *)0x0) {\n    return;\n  }" (if "if") (parenthesized_expression "(pvVar1 != (void *)0x0)" (( "(") (binary_expression "pvVar1 != (void *)0x0" (identifier "pvVar1") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__fprintf_chk(**(undefined4 **)(&DAT_0007c5cd + unaff_EBX),1,unaff_EBX + 0x5d8a1,unaff_retaddr);" (call_expression "__fprintf_chk(**(undefined4 **)(&DAT_0007c5cd + unaff_EBX),1,unaff_EBX + 0x5d8a1,unaff_retaddr)" (identifier "__fprintf_chk") (argument_list "(**(undefined4 **)(&DAT_0007c5cd + unaff_EBX),1,unaff_EBX + 0x5d8a1,unaff_retaddr)" (( "(") (pointer_expression "**(undefined4 **)(&DAT_0007c5cd + unaff_EBX)" (* "*") (pointer_expression "*(undefined4 **)(&DAT_0007c5cd + unaff_EBX)" (* "*") (cast_expression "(undefined4 **)(&DAT_0007c5cd + unaff_EBX)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(&DAT_0007c5cd + unaff_EBX)" (( "(") (binary_expression "&DAT_0007c5cd + unaff_EBX" (pointer_expression "&DAT_0007c5cd" (& "&") (identifier "DAT_0007c5cd")) (+ "+") (identifier "unaff_EBX")) () ")"))))) (, ",") (number_literal "1") (, ",") (binary_expression "unaff_EBX + 0x5d8a1" (identifier "unaff_EBX") (+ "+") (number_literal "0x5d8a1")) (, ",") (identifier "unaff_retaddr") () ")"))) (; ";")) (expression_statement "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void * function_1(size_t size)

{
  void *var_2;
  
  var_2 = var_1(size);
  if (var_2 != (void *)0x0) {
    return var_2;
  }
  var_3(*(type_1 *)PTR_stderr_00098d54,1,"GNU MP: Cannot allocate memory (size=%lu)\n",
                size);
                    /* WARNING: Subroutine does not return */
  var_4();
}


(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)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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 (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))))) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

void __regparm3 MASKED(undefined4 param_1,undefined4 param_2)

{
  void *pvVar1;
  int unaff_EBX;
  size_t unaff_retaddr;
  
  entry(param_2,0x1c787);
  pvVar1 = malloc(unaff_retaddr);
  if (pvVar1 != (void *)0x0) {
    return;
  }
  __fprintf_chk(**(undefined4 **)(&DAT_0007c5cd + unaff_EBX),1,unaff_EBX + 0x5d8a1,unaff_retaddr);
                    /* WARNING: Subroutine does not return */
  abort();
}

