
/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */
/* WARNING: Unknown calling convention */

LINENUM find_linenum(POSITION pos)

{
  LINENUM LVar1;
  
  if ((linenums != 0) && (pos != -1)) {
    if (-pos._4_4_ < (int)(uint)((int)pos != 0)) {
      LVar1 = find_linenum(pos);
      return LVar1;
    }
    return 1;
  }
  return 0;
}



/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

undefined4 FUN_00025e00(uint param_1,uint param_2)

{
  undefined4 uVar1;
  
  if ((DAT_00048960 != 0) && ((param_1 & param_2) != 0xffffffff)) {
    if ((int)-param_2 < (int)(uint)(param_1 != 0)) {
      uVar1 = FUN_000259e0();
      return uVar1;
    }
    return 1;
  }
  return 0;
}


CALL 0x0001518b
ADD ECX,0x1d087
MOV EAX,dword ptr [ESP + 0x4]
MOV EDX,dword ptr [ESP + 0x8]
LEA ECX,[ECX + 0x5ad4]
MOV ECX,dword ptr [ECX]
TEST ECX,ECX
JZ 0x00025e38
MOV ECX,EAX
AND ECX,EDX
CMP ECX,-0x1
JZ 0x00025e38
XOR ECX,ECX
CMP ECX,EAX
SBB ECX,EDX
JGE 0x00025e40
JMP 0x000259e0
XOR EAX,EAX
XOR EDX,EDX
RET
MOV EAX,0x1
XOR EDX,EDX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nundefined4 FUN_00025e00(uint param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  \n  if ((DAT_00048960 != 0) && ((param_1 & param_2) != 0xffffffff)) {\n    if ((int)-param_2 < (int)(uint)(param_1 != 0)) {\n      uVar1 = FUN_000259e0();\n      return uVar1;\n    }\n    return 1;\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_00025e00(uint param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  \n  if ((DAT_00048960 != 0) && ((param_1 & param_2) != 0xffffffff)) {\n    if ((int)-param_2 < (int)(uint)(param_1 != 0)) {\n      uVar1 = FUN_000259e0();\n      return uVar1;\n    }\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00025e00(uint param_1,uint param_2)" identifier (parameter_list "(uint param_1,uint param_2)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if ((DAT_00048960 != 0) && ((param_1 & param_2) != 0xffffffff)) {\n    if ((int)-param_2 < (int)(uint)(param_1 != 0)) {\n      uVar1 = FUN_000259e0();\n      return uVar1;\n    }\n    return 1;\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if ((DAT_00048960 != 0) && ((param_1 & param_2) != 0xffffffff)) {\n    if ((int)-param_2 < (int)(uint)(param_1 != 0)) {\n      uVar1 = FUN_000259e0();\n      return uVar1;\n    }\n    return 1;\n  }" if (parenthesized_expression "((DAT_00048960 != 0) && ((param_1 & param_2) != 0xffffffff))" ( (binary_expression "(DAT_00048960 != 0) && ((param_1 & param_2) != 0xffffffff)" (parenthesized_expression "(DAT_00048960 != 0)" ( (binary_expression "DAT_00048960 != 0" identifier != number_literal) )) && (parenthesized_expression "((param_1 & param_2) != 0xffffffff)" ( (binary_expression "(param_1 & param_2) != 0xffffffff" (parenthesized_expression "(param_1 & param_2)" ( (binary_expression "param_1 & param_2" identifier & identifier) )) != number_literal) ))) )) (compound_statement "{\n    if ((int)-param_2 < (int)(uint)(param_1 != 0)) {\n      uVar1 = FUN_000259e0();\n      return uVar1;\n    }\n    return 1;\n  }" { (if_statement "if ((int)-param_2 < (int)(uint)(param_1 != 0)) {\n      uVar1 = FUN_000259e0();\n      return uVar1;\n    }" if (parenthesized_expression "((int)-param_2 < (int)(uint)(param_1 != 0))" ( (binary_expression "(int)-param_2 < (int)(uint)(param_1 != 0)" (cast_expression "(int)-param_2" ( (type_descriptor "int" primitive_type) ) (unary_expression "-param_2" - identifier)) < (cast_expression "(int)(uint)(param_1 != 0)" ( (type_descriptor "int" primitive_type) ) (call_expression "(uint)(param_1 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) ))))) )) (compound_statement "{\n      uVar1 = FUN_000259e0();\n      return uVar1;\n    }" { (expression_statement "uVar1 = FUN_000259e0();" (assignment_expression "uVar1 = FUN_000259e0()" identifier = (call_expression "FUN_000259e0()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n/* WARNING: Unknown calling convention */\n\nLINENUM find_linenum(POSITION pos)\n\n{\n  LINENUM LVar1;\n  \n  if ((linenums != 0) && (pos != -1)) {\n    if (-pos._4_4_ < (int)(uint)((int)pos != 0)) {\n      LVar1 = find_linenum(pos);\n      return LVar1;\n    }\n    return 1;\n  }\n  return 0;\n}\n\n" comment comment (function_definition "LINENUM find_linenum(POSITION pos)\n\n{\n  LINENUM LVar1;\n  \n  if ((linenums != 0) && (pos != -1)) {\n    if (-pos._4_4_ < (int)(uint)((int)pos != 0)) {\n      LVar1 = find_linenum(pos);\n      return LVar1;\n    }\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "find_linenum(POSITION pos)" identifier (parameter_list "(POSITION pos)" ( (parameter_declaration "POSITION pos" type_identifier identifier) ))) (compound_statement "{\n  LINENUM LVar1;\n  \n  if ((linenums != 0) && (pos != -1)) {\n    if (-pos._4_4_ < (int)(uint)((int)pos != 0)) {\n      LVar1 = find_linenum(pos);\n      return LVar1;\n    }\n    return 1;\n  }\n  return 0;\n}" { (declaration "LINENUM LVar1;" type_identifier identifier ;) (if_statement "if ((linenums != 0) && (pos != -1)) {\n    if (-pos._4_4_ < (int)(uint)((int)pos != 0)) {\n      LVar1 = find_linenum(pos);\n      return LVar1;\n    }\n    return 1;\n  }" if (parenthesized_expression "((linenums != 0) && (pos != -1))" ( (binary_expression "(linenums != 0) && (pos != -1)" (parenthesized_expression "(linenums != 0)" ( (binary_expression "linenums != 0" identifier != number_literal) )) && (parenthesized_expression "(pos != -1)" ( (binary_expression "pos != -1" identifier != number_literal) ))) )) (compound_statement "{\n    if (-pos._4_4_ < (int)(uint)((int)pos != 0)) {\n      LVar1 = find_linenum(pos);\n      return LVar1;\n    }\n    return 1;\n  }" { (if_statement "if (-pos._4_4_ < (int)(uint)((int)pos != 0)) {\n      LVar1 = find_linenum(pos);\n      return LVar1;\n    }" if (parenthesized_expression "(-pos._4_4_ < (int)(uint)((int)pos != 0))" ( (binary_expression "-pos._4_4_ < (int)(uint)((int)pos != 0)" (unary_expression "-pos._4_4_" - (field_expression "pos._4_4_" identifier . field_identifier)) < (cast_expression "(int)(uint)((int)pos != 0)" ( (type_descriptor "int" primitive_type) ) (call_expression "(uint)((int)pos != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pos != 0)" ( (binary_expression "(int)pos != 0" (cast_expression "(int)pos" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) ))))) )) (compound_statement "{\n      LVar1 = find_linenum(pos);\n      return LVar1;\n    }" { (expression_statement "LVar1 = find_linenum(pos);" (assignment_expression "LVar1 = find_linenum(pos)" identifier = (call_expression "find_linenum(pos)" identifier (argument_list "(pos)" ( identifier )))) ;) (return_statement "return LVar1;" return identifier ;) })) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00025e00(uint param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  \n  if ((DAT_00048960 != 0) && ((param_1 & param_2) != 0xffffffff)) {\n    if ((int)-param_2 < (int)(uint)(param_1 != 0)) {\n      uVar1 = FUN_000259e0();\n      return uVar1;\n    }\n    return 1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00025e00(uint param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  \n  if ((DAT_00048960 != 0) && ((param_1 & param_2) != 0xffffffff)) {\n    if ((int)-param_2 < (int)(uint)(param_1 != 0)) {\n      uVar1 = FUN_000259e0();\n      return uVar1;\n    }\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00025e00(uint param_1,uint param_2)" identifier (parameter_list "(uint param_1,uint param_2)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if ((DAT_00048960 != 0) && ((param_1 & param_2) != 0xffffffff)) {\n    if ((int)-param_2 < (int)(uint)(param_1 != 0)) {\n      uVar1 = FUN_000259e0();\n      return uVar1;\n    }\n    return 1;\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if ((DAT_00048960 != 0) && ((param_1 & param_2) != 0xffffffff)) {\n    if ((int)-param_2 < (int)(uint)(param_1 != 0)) {\n      uVar1 = FUN_000259e0();\n      return uVar1;\n    }\n    return 1;\n  }" if (parenthesized_expression "((DAT_00048960 != 0) && ((param_1 & param_2) != 0xffffffff))" ( (binary_expression "(DAT_00048960 != 0) && ((param_1 & param_2) != 0xffffffff)" (parenthesized_expression "(DAT_00048960 != 0)" ( (binary_expression "DAT_00048960 != 0" identifier != number_literal) )) && (parenthesized_expression "((param_1 & param_2) != 0xffffffff)" ( (binary_expression "(param_1 & param_2) != 0xffffffff" (parenthesized_expression "(param_1 & param_2)" ( (binary_expression "param_1 & param_2" identifier & identifier) )) != number_literal) ))) )) (compound_statement "{\n    if ((int)-param_2 < (int)(uint)(param_1 != 0)) {\n      uVar1 = FUN_000259e0();\n      return uVar1;\n    }\n    return 1;\n  }" { (if_statement "if ((int)-param_2 < (int)(uint)(param_1 != 0)) {\n      uVar1 = FUN_000259e0();\n      return uVar1;\n    }" if (parenthesized_expression "((int)-param_2 < (int)(uint)(param_1 != 0))" ( (binary_expression "(int)-param_2 < (int)(uint)(param_1 != 0)" (cast_expression "(int)-param_2" ( (type_descriptor "int" primitive_type) ) (unary_expression "-param_2" - identifier)) < (cast_expression "(int)(uint)(param_1 != 0)" ( (type_descriptor "int" primitive_type) ) (call_expression "(uint)(param_1 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) ))))) )) (compound_statement "{\n      uVar1 = FUN_000259e0();\n      return uVar1;\n    }" { (expression_statement "uVar1 = FUN_000259e0();" (assignment_expression "uVar1 = FUN_000259e0()" identifier = (call_expression "FUN_000259e0()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & IDENT) )) != LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (unary_expression - IDENT)) < (cast_expression ( (type_descriptor TYPE) ) (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00025e00(uint param_1,uint param_2)\n\n{\n  undefined4 uVar1;\n  \n  if ((DAT_00048960 != 0) && ((param_1 & param_2) != 0xffffffff)) {\n    if ((int)-param_2 < (int)(uint)(param_1 != 0)) {\n      uVar1 = FUN_000259e0();\n      return uVar1;\n    }\n    return 1;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00025e00(uint param_1,uint param_2)" (identifier "FUN_00025e00") (parameter_list "(uint param_1,uint param_2)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if ((DAT_00048960 != 0) && ((param_1 & param_2) != 0xffffffff)) {\n    if ((int)-param_2 < (int)(uint)(param_1 != 0)) {\n      uVar1 = FUN_000259e0();\n      return uVar1;\n    }\n    return 1;\n  }\n  return 0;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if ((DAT_00048960 != 0) && ((param_1 & param_2) != 0xffffffff)) {\n    if ((int)-param_2 < (int)(uint)(param_1 != 0)) {\n      uVar1 = FUN_000259e0();\n      return uVar1;\n    }\n    return 1;\n  }" (if "if") (parenthesized_expression "((DAT_00048960 != 0) && ((param_1 & param_2) != 0xffffffff))" (( "(") (binary_expression "(DAT_00048960 != 0) && ((param_1 & param_2) != 0xffffffff)" (parenthesized_expression "(DAT_00048960 != 0)" (( "(") (binary_expression "DAT_00048960 != 0" (identifier "DAT_00048960") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((param_1 & param_2) != 0xffffffff)" (( "(") (binary_expression "(param_1 & param_2) != 0xffffffff" (parenthesized_expression "(param_1 & param_2)" (( "(") (binary_expression "param_1 & param_2" (identifier "param_1") (& "&") (identifier "param_2")) () ")")) (!= "!=") (number_literal "0xffffffff")) () ")"))) () ")")) (compound_statement "{\n    if ((int)-param_2 < (int)(uint)(param_1 != 0)) {\n      uVar1 = FUN_000259e0();\n      return uVar1;\n    }\n    return 1;\n  }" ({ "{") (if_statement "if ((int)-param_2 < (int)(uint)(param_1 != 0)) {\n      uVar1 = FUN_000259e0();\n      return uVar1;\n    }" (if "if") (parenthesized_expression "((int)-param_2 < (int)(uint)(param_1 != 0))" (( "(") (binary_expression "(int)-param_2 < (int)(uint)(param_1 != 0)" (cast_expression "(int)-param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (unary_expression "-param_2" (- "-") (identifier "param_2"))) (< "<") (cast_expression "(int)(uint)(param_1 != 0)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (call_expression "(uint)(param_1 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")"))))) () ")")) (compound_statement "{\n      uVar1 = FUN_000259e0();\n      return uVar1;\n    }" ({ "{") (expression_statement "uVar1 = FUN_000259e0();" (assignment_expression "uVar1 = FUN_000259e0()" (identifier "uVar1") (= "=") (call_expression "FUN_000259e0()" (identifier "FUN_000259e0") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */
/* WARNING: Unknown calling convention */

type_1 function_1(type_2 var_2)

{
  type_1 LVar1;
  
  if ((var_1 != 0) && (var_2 != -1)) {
    if (-var_2._4_4_ < (int)(uint)((int)var_2 != 0)) {
      LVar1 = function_1(var_2);
      return LVar1;
    }
    return 1;
  }
  return 0;
}


(translation_unit (function_definition type: (type_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: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (unary_expression argument: (identifier))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (return_statement (identifier)))) (return_statement (number_literal)))) (return_statement (number_literal)))))

/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

undefined4 MASKED(uint param_1,uint param_2)

{
  undefined4 uVar1;
  
  if ((DAT_00048960 != 0) && ((param_1 & param_2) != 0xffffffff)) {
    if ((int)-param_2 < (int)(uint)(param_1 != 0)) {
      uVar1 = FUN_000259e0();
      return uVar1;
    }
    return 1;
  }
  return 0;
}

