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

void * xnrealloc(void *p,size_t n,size_t s)

{
  size_t n_00;
  void *pvVar1;
  
  n_00 = (size_t)((ulonglong)n * (ulonglong)s);
  if ((-1 < (int)n_00) && ((int)((ulonglong)n * (ulonglong)s >> 0x20) == 0)) {
    pvVar1 = xrealloc(p,n_00);
    return pvVar1;
  }
                    /* WARNING: Subroutine does not return */
  xalloc_die();
}



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

void FUN_0001e370(undefined4 param_1,uint param_2,uint param_3)

{
  if ((-1 < (int)((ulonglong)param_2 * (ulonglong)param_3)) &&
     ((int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20) == 0)) {
    FUN_0001e310();
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0001c7d0();
}


PUSH EBX
CALL 0x00012e10
ADD EBX,0xac8a
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x14]
MUL dword ptr [ESP + 0x18]
SETO DL
TEST EAX,EAX
JS 0x0001e3a2
MOVZX EDX,DL
TEST EDX,EDX
JNZ 0x0001e3a2
MOV dword ptr [ESP + 0x14],EAX
ADD ESP,0x8
POP EBX
JMP 0x0001e310
CALL 0x0001c7d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001e370(undefined4 param_1,uint param_2,uint param_3)\n\n{\n  if ((-1 < (int)((ulonglong)param_2 * (ulonglong)param_3)) &&\n     ((int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20) == 0)) {\n    FUN_0001e310();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0001c7d0();\n}\n\n" comment (function_definition "void FUN_0001e370(undefined4 param_1,uint param_2,uint param_3)\n\n{\n  if ((-1 < (int)((ulonglong)param_2 * (ulonglong)param_3)) &&\n     ((int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20) == 0)) {\n    FUN_0001e310();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0001c7d0();\n}" primitive_type (function_declarator "FUN_0001e370(undefined4 param_1,uint param_2,uint param_3)" identifier (parameter_list "(undefined4 param_1,uint param_2,uint param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  if ((-1 < (int)((ulonglong)param_2 * (ulonglong)param_3)) &&\n     ((int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20) == 0)) {\n    FUN_0001e310();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0001c7d0();\n}" { (if_statement "if ((-1 < (int)((ulonglong)param_2 * (ulonglong)param_3)) &&\n     ((int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20) == 0)) {\n    FUN_0001e310();\n    return;\n  }" if (parenthesized_expression "((-1 < (int)((ulonglong)param_2 * (ulonglong)param_3)) &&\n     ((int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20) == 0))" ( (binary_expression "(-1 < (int)((ulonglong)param_2 * (ulonglong)param_3)) &&\n     ((int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20) == 0)" (parenthesized_expression "(-1 < (int)((ulonglong)param_2 * (ulonglong)param_3))" ( (binary_expression "-1 < (int)((ulonglong)param_2 * (ulonglong)param_3)" number_literal < (cast_expression "(int)((ulonglong)param_2 * (ulonglong)param_3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)param_2 * (ulonglong)param_3)" ( (binary_expression "(ulonglong)param_2 * (ulonglong)param_3" (cast_expression "(ulonglong)param_2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) )) && (parenthesized_expression "((int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20) == 0" (cast_expression "(int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)param_2 * (ulonglong)param_3 >> 0x20)" ( (binary_expression "(ulonglong)param_2 * (ulonglong)param_3 >> 0x20" (binary_expression "(ulonglong)param_2 * (ulonglong)param_3" (cast_expression "(ulonglong)param_2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) ))) == number_literal) ))) )) (compound_statement "{\n    FUN_0001e310();\n    return;\n  }" { (expression_statement "FUN_0001e310();" (call_expression "FUN_0001e310()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_0001c7d0();" (call_expression "FUN_0001c7d0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid * xnrealloc(void *p,size_t n,size_t s)\n\n{\n  size_t n_00;\n  void *pvVar1;\n  \n  n_00 = (size_t)((ulonglong)n * (ulonglong)s);\n  if ((-1 < (int)n_00) && ((int)((ulonglong)n * (ulonglong)s >> 0x20) == 0)) {\n    pvVar1 = xrealloc(p,n_00);\n    return pvVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  xalloc_die();\n}\n\n" comment (function_definition "void * xnrealloc(void *p,size_t n,size_t s)\n\n{\n  size_t n_00;\n  void *pvVar1;\n  \n  n_00 = (size_t)((ulonglong)n * (ulonglong)s);\n  if ((-1 < (int)n_00) && ((int)((ulonglong)n * (ulonglong)s >> 0x20) == 0)) {\n    pvVar1 = xrealloc(p,n_00);\n    return pvVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  xalloc_die();\n}" primitive_type (pointer_declarator "* xnrealloc(void *p,size_t n,size_t s)" * (function_declarator "xnrealloc(void *p,size_t n,size_t s)" identifier (parameter_list "(void *p,size_t n,size_t s)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "size_t n" primitive_type identifier) , (parameter_declaration "size_t s" primitive_type identifier) )))) (compound_statement "{\n  size_t n_00;\n  void *pvVar1;\n  \n  n_00 = (size_t)((ulonglong)n * (ulonglong)s);\n  if ((-1 < (int)n_00) && ((int)((ulonglong)n * (ulonglong)s >> 0x20) == 0)) {\n    pvVar1 = xrealloc(p,n_00);\n    return pvVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  xalloc_die();\n}" { (declaration "size_t n_00;" primitive_type identifier ;) (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (expression_statement "n_00 = (size_t)((ulonglong)n * (ulonglong)s);" (assignment_expression "n_00 = (size_t)((ulonglong)n * (ulonglong)s)" identifier = (cast_expression "(size_t)((ulonglong)n * (ulonglong)s)" ( (type_descriptor "size_t" primitive_type) ) (parenthesized_expression "((ulonglong)n * (ulonglong)s)" ( (binary_expression "(ulonglong)n * (ulonglong)s" (cast_expression "(ulonglong)n" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)s" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ;) (if_statement "if ((-1 < (int)n_00) && ((int)((ulonglong)n * (ulonglong)s >> 0x20) == 0)) {\n    pvVar1 = xrealloc(p,n_00);\n    return pvVar1;\n  }" if (parenthesized_expression "((-1 < (int)n_00) && ((int)((ulonglong)n * (ulonglong)s >> 0x20) == 0))" ( (binary_expression "(-1 < (int)n_00) && ((int)((ulonglong)n * (ulonglong)s >> 0x20) == 0)" (parenthesized_expression "(-1 < (int)n_00)" ( (binary_expression "-1 < (int)n_00" number_literal < (cast_expression "(int)n_00" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "((int)((ulonglong)n * (ulonglong)s >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)n * (ulonglong)s >> 0x20) == 0" (cast_expression "(int)((ulonglong)n * (ulonglong)s >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)n * (ulonglong)s >> 0x20)" ( (binary_expression "(ulonglong)n * (ulonglong)s >> 0x20" (binary_expression "(ulonglong)n * (ulonglong)s" (cast_expression "(ulonglong)n" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)s" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) ))) == number_literal) ))) )) (compound_statement "{\n    pvVar1 = xrealloc(p,n_00);\n    return pvVar1;\n  }" { (expression_statement "pvVar1 = xrealloc(p,n_00);" (assignment_expression "pvVar1 = xrealloc(p,n_00)" identifier = (call_expression "xrealloc(p,n_00)" identifier (argument_list "(p,n_00)" ( identifier , identifier )))) ;) (return_statement "return pvVar1;" return identifier ;) })) comment (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_0001e370(undefined4 param_1,uint param_2,uint param_3)\n\n{\n  if ((-1 < (int)((ulonglong)param_2 * (ulonglong)param_3)) &&\n     ((int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20) == 0)) {\n    FUN_0001e310();\n    return;\n  }\n                    \n  FUN_0001c7d0();\n}\n\n" (function_definition "void FUN_0001e370(undefined4 param_1,uint param_2,uint param_3)\n\n{\n  if ((-1 < (int)((ulonglong)param_2 * (ulonglong)param_3)) &&\n     ((int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20) == 0)) {\n    FUN_0001e310();\n    return;\n  }\n                    \n  FUN_0001c7d0();\n}" primitive_type (function_declarator "FUN_0001e370(undefined4 param_1,uint param_2,uint param_3)" identifier (parameter_list "(undefined4 param_1,uint param_2,uint param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  if ((-1 < (int)((ulonglong)param_2 * (ulonglong)param_3)) &&\n     ((int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20) == 0)) {\n    FUN_0001e310();\n    return;\n  }\n                    \n  FUN_0001c7d0();\n}" { (if_statement "if ((-1 < (int)((ulonglong)param_2 * (ulonglong)param_3)) &&\n     ((int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20) == 0)) {\n    FUN_0001e310();\n    return;\n  }" if (parenthesized_expression "((-1 < (int)((ulonglong)param_2 * (ulonglong)param_3)) &&\n     ((int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20) == 0))" ( (binary_expression "(-1 < (int)((ulonglong)param_2 * (ulonglong)param_3)) &&\n     ((int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20) == 0)" (parenthesized_expression "(-1 < (int)((ulonglong)param_2 * (ulonglong)param_3))" ( (binary_expression "-1 < (int)((ulonglong)param_2 * (ulonglong)param_3)" number_literal < (cast_expression "(int)((ulonglong)param_2 * (ulonglong)param_3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)param_2 * (ulonglong)param_3)" ( (binary_expression "(ulonglong)param_2 * (ulonglong)param_3" (cast_expression "(ulonglong)param_2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) )) && (parenthesized_expression "((int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20) == 0)" ( (binary_expression "(int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20) == 0" (cast_expression "(int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)param_2 * (ulonglong)param_3 >> 0x20)" ( (binary_expression "(ulonglong)param_2 * (ulonglong)param_3 >> 0x20" (binary_expression "(ulonglong)param_2 * (ulonglong)param_3" (cast_expression "(ulonglong)param_2" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)param_3" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) ))) == number_literal) ))) )) (compound_statement "{\n    FUN_0001e310();\n    return;\n  }" { (expression_statement "FUN_0001e310();" (call_expression "FUN_0001e310()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_0001c7d0();" (call_expression "FUN_0001c7d0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) )) && (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> LIT) ))) == LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_0001e370(undefined4 param_1,uint param_2,uint param_3)\n\n{\n  if ((-1 < (int)((ulonglong)param_2 * (ulonglong)param_3)) &&\n     ((int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20) == 0)) {\n    FUN_0001e310();\n    return;\n  }\n                    \n  FUN_0001c7d0();\n}" (primitive_type "void") (function_declarator "FUN_0001e370(undefined4 param_1,uint param_2,uint param_3)" (identifier "FUN_0001e370") (parameter_list "(undefined4 param_1,uint param_2,uint param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (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  if ((-1 < (int)((ulonglong)param_2 * (ulonglong)param_3)) &&\n     ((int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20) == 0)) {\n    FUN_0001e310();\n    return;\n  }\n                    \n  FUN_0001c7d0();\n}" ({ "{") (if_statement "if ((-1 < (int)((ulonglong)param_2 * (ulonglong)param_3)) &&\n     ((int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20) == 0)) {\n    FUN_0001e310();\n    return;\n  }" (if "if") (parenthesized_expression "((-1 < (int)((ulonglong)param_2 * (ulonglong)param_3)) &&\n     ((int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20) == 0))" (( "(") (binary_expression "(-1 < (int)((ulonglong)param_2 * (ulonglong)param_3)) &&\n     ((int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20) == 0)" (parenthesized_expression "(-1 < (int)((ulonglong)param_2 * (ulonglong)param_3))" (( "(") (binary_expression "-1 < (int)((ulonglong)param_2 * (ulonglong)param_3)" (number_literal "-1") (< "<") (cast_expression "(int)((ulonglong)param_2 * (ulonglong)param_3)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)param_2 * (ulonglong)param_3)" (( "(") (binary_expression "(ulonglong)param_2 * (ulonglong)param_3" (cast_expression "(ulonglong)param_2" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_2")) (* "*") (cast_expression "(ulonglong)param_3" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_3"))) () ")")))) () ")")) (&& "&&") (parenthesized_expression "((int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20) == 0)" (( "(") (binary_expression "(int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20) == 0" (cast_expression "(int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)param_2 * (ulonglong)param_3 >> 0x20)" (( "(") (binary_expression "(ulonglong)param_2 * (ulonglong)param_3 >> 0x20" (binary_expression "(ulonglong)param_2 * (ulonglong)param_3" (cast_expression "(ulonglong)param_2" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_2")) (* "*") (cast_expression "(ulonglong)param_3" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "param_3"))) (>> ">>") (number_literal "0x20")) () ")"))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    FUN_0001e310();\n    return;\n  }" ({ "{") (expression_statement "FUN_0001e310();" (call_expression "FUN_0001e310()" (identifier "FUN_0001e310") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0001c7d0();" (call_expression "FUN_0001c7d0()" (identifier "FUN_0001c7d0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void * function_1(void *p,size_t n,size_t s)

{
  size_t n_00;
  void *pvVar1;
  
  n_00 = (size_t)((type_1)n * (type_1)s);
  if ((-1 < (int)n_00) && ((int)((type_1)n * (type_1)s >> 0x20) == 0)) {
    pvVar1 = var_1(p,n_00);
    return pvVar1;
  }
                    /* WARNING: Subroutine does not return */
  var_2();
}


(translation_unit (function_definition type: (primitive_type) 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: (type_identifier) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))))) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))) right: (number_literal)))) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (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(undefined4 param_1,uint param_2,uint param_3)

{
  if ((-1 < (int)((ulonglong)param_2 * (ulonglong)param_3)) &&
     ((int)((ulonglong)param_2 * (ulonglong)param_3 >> 0x20) == 0)) {
    FUN_0001e310();
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0001c7d0();
}

