
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

sc * first_sc_for(int menu,_func_void *func)

{
  sc *psVar1;
  
  psVar1 = sclist;
  if (sclist != (sc *)0x0) {
    do {
      if (((psVar1->menus & menu) != 0) && (psVar1->func == func)) {
        return psVar1;
      }
      psVar1 = psVar1->next;
    } while (psVar1 != (sc *)0x0);
  }
  return psVar1;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void FUN_0001e5d0(uint param_1,int param_2)

{
  int *piVar1;
  int iVar2;
  
  iVar2 = DAT_0006b600;
  if (DAT_0006b600 != 0) {
    do {
      if (((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)) {
        return;
      }
      piVar1 = (int *)(iVar2 + 0x20);
      iVar2 = *piVar1;
    } while (*piVar1 != 0);
  }
  return;
}


CALL 0x00016a01
ADD EAX,0x4c5fb
MOV EDX,dword ptr [ESP + 0x4]
MOV ECX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [EAX + 0xa30]
TEST EAX,EAX
JZ 0x0001e601
LEA ESI,[ESI]
TEST dword ptr [EAX + 0xc],EDX
JZ 0x0001e5fa
CMP dword ptr [EAX + 0x10],ECX
JZ 0x0001e601
MOV EAX,dword ptr [EAX + 0x20]
TEST EAX,EAX
JNZ 0x0001e5f0
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid FUN_0001e5d0(uint param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  iVar2 = DAT_0006b600;\n  if (DAT_0006b600 != 0) {\n    do {\n      if (((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)) {\n        return;\n      }\n      piVar1 = (int *)(iVar2 + 0x20);\n      iVar2 = *piVar1;\n    } while (*piVar1 != 0);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0001e5d0(uint param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  iVar2 = DAT_0006b600;\n  if (DAT_0006b600 != 0) {\n    do {\n      if (((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)) {\n        return;\n      }\n      piVar1 = (int *)(iVar2 + 0x20);\n      iVar2 = *piVar1;\n    } while (*piVar1 != 0);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0001e5d0(uint param_1,int param_2)" identifier (parameter_list "(uint param_1,int param_2)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  iVar2 = DAT_0006b600;\n  if (DAT_0006b600 != 0) {\n    do {\n      if (((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)) {\n        return;\n      }\n      piVar1 = (int *)(iVar2 + 0x20);\n      iVar2 = *piVar1;\n    } while (*piVar1 != 0);\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = DAT_0006b600;" (assignment_expression "iVar2 = DAT_0006b600" identifier = identifier) ;) (if_statement "if (DAT_0006b600 != 0) {\n    do {\n      if (((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)) {\n        return;\n      }\n      piVar1 = (int *)(iVar2 + 0x20);\n      iVar2 = *piVar1;\n    } while (*piVar1 != 0);\n  }" if (parenthesized_expression "(DAT_0006b600 != 0)" ( (binary_expression "DAT_0006b600 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      if (((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)) {\n        return;\n      }\n      piVar1 = (int *)(iVar2 + 0x20);\n      iVar2 = *piVar1;\n    } while (*piVar1 != 0);\n  }" { (do_statement "do {\n      if (((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)) {\n        return;\n      }\n      piVar1 = (int *)(iVar2 + 0x20);\n      iVar2 = *piVar1;\n    } while (*piVar1 != 0);" do (compound_statement "{\n      if (((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)) {\n        return;\n      }\n      piVar1 = (int *)(iVar2 + 0x20);\n      iVar2 = *piVar1;\n    }" { (if_statement "if (((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)) {\n        return;\n      }" if (parenthesized_expression "(((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2))" ( (binary_expression "((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)" (parenthesized_expression "((*(uint *)(iVar2 + 0xc) & param_1) != 0)" ( (binary_expression "(*(uint *)(iVar2 + 0xc) & param_1) != 0" (parenthesized_expression "(*(uint *)(iVar2 + 0xc) & param_1)" ( (binary_expression "*(uint *)(iVar2 + 0xc) & param_1" (pointer_expression "*(uint *)(iVar2 + 0xc)" * (cast_expression "(uint *)(iVar2 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) & identifier) )) != number_literal) )) && (parenthesized_expression "(*(int *)(iVar2 + 0x10) == param_2)" ( (binary_expression "*(int *)(iVar2 + 0x10) == param_2" (pointer_expression "*(int *)(iVar2 + 0x10)" * (cast_expression "(int *)(iVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) == identifier) ))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "piVar1 = (int *)(iVar2 + 0x20);" (assignment_expression "piVar1 = (int *)(iVar2 + 0x20)" identifier = (cast_expression "(int *)(iVar2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x20)" ( (binary_expression "iVar2 + 0x20" identifier + number_literal) )))) ;) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) }) while (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nsc * first_sc_for(int menu,_func_void *func)\n\n{\n  sc *psVar1;\n  \n  psVar1 = sclist;\n  if (sclist != (sc *)0x0) {\n    do {\n      if (((psVar1->menus & menu) != 0) && (psVar1->func == func)) {\n        return psVar1;\n      }\n      psVar1 = psVar1->next;\n    } while (psVar1 != (sc *)0x0);\n  }\n  return psVar1;\n}\n\n" comment (function_definition "sc * first_sc_for(int menu,_func_void *func)\n\n{\n  sc *psVar1;\n  \n  psVar1 = sclist;\n  if (sclist != (sc *)0x0) {\n    do {\n      if (((psVar1->menus & menu) != 0) && (psVar1->func == func)) {\n        return psVar1;\n      }\n      psVar1 = psVar1->next;\n    } while (psVar1 != (sc *)0x0);\n  }\n  return psVar1;\n}" type_identifier (pointer_declarator "* first_sc_for(int menu,_func_void *func)" * (function_declarator "first_sc_for(int menu,_func_void *func)" identifier (parameter_list "(int menu,_func_void *func)" ( (parameter_declaration "int menu" primitive_type identifier) , (parameter_declaration "_func_void *func" type_identifier (pointer_declarator "*func" * identifier)) )))) (compound_statement "{\n  sc *psVar1;\n  \n  psVar1 = sclist;\n  if (sclist != (sc *)0x0) {\n    do {\n      if (((psVar1->menus & menu) != 0) && (psVar1->func == func)) {\n        return psVar1;\n      }\n      psVar1 = psVar1->next;\n    } while (psVar1 != (sc *)0x0);\n  }\n  return psVar1;\n}" { (declaration "sc *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (expression_statement "psVar1 = sclist;" (assignment_expression "psVar1 = sclist" identifier = identifier) ;) (if_statement "if (sclist != (sc *)0x0) {\n    do {\n      if (((psVar1->menus & menu) != 0) && (psVar1->func == func)) {\n        return psVar1;\n      }\n      psVar1 = psVar1->next;\n    } while (psVar1 != (sc *)0x0);\n  }" if (parenthesized_expression "(sclist != (sc *)0x0)" ( (binary_expression "sclist != (sc *)0x0" identifier != (cast_expression "(sc *)0x0" ( (type_descriptor "sc *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      if (((psVar1->menus & menu) != 0) && (psVar1->func == func)) {\n        return psVar1;\n      }\n      psVar1 = psVar1->next;\n    } while (psVar1 != (sc *)0x0);\n  }" { (do_statement "do {\n      if (((psVar1->menus & menu) != 0) && (psVar1->func == func)) {\n        return psVar1;\n      }\n      psVar1 = psVar1->next;\n    } while (psVar1 != (sc *)0x0);" do (compound_statement "{\n      if (((psVar1->menus & menu) != 0) && (psVar1->func == func)) {\n        return psVar1;\n      }\n      psVar1 = psVar1->next;\n    }" { (if_statement "if (((psVar1->menus & menu) != 0) && (psVar1->func == func)) {\n        return psVar1;\n      }" if (parenthesized_expression "(((psVar1->menus & menu) != 0) && (psVar1->func == func))" ( (binary_expression "((psVar1->menus & menu) != 0) && (psVar1->func == func)" (parenthesized_expression "((psVar1->menus & menu) != 0)" ( (binary_expression "(psVar1->menus & menu) != 0" (parenthesized_expression "(psVar1->menus & menu)" ( (binary_expression "psVar1->menus & menu" (field_expression "psVar1->menus" identifier -> field_identifier) & identifier) )) != number_literal) )) && (parenthesized_expression "(psVar1->func == func)" ( (binary_expression "psVar1->func == func" (field_expression "psVar1->func" identifier -> field_identifier) == identifier) ))) )) (compound_statement "{\n        return psVar1;\n      }" { (return_statement "return psVar1;" return identifier ;) })) (expression_statement "psVar1 = psVar1->next;" (assignment_expression "psVar1 = psVar1->next" identifier = (field_expression "psVar1->next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(psVar1 != (sc *)0x0)" ( (binary_expression "psVar1 != (sc *)0x0" identifier != (cast_expression "(sc *)0x0" ( (type_descriptor "sc *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (return_statement "return psVar1;" return identifier ;) })))
(translation_unit "void FUN_0001e5d0(uint param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  iVar2 = DAT_0006b600;\n  if (DAT_0006b600 != 0) {\n    do {\n      if (((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)) {\n        return;\n      }\n      piVar1 = (int *)(iVar2 + 0x20);\n      iVar2 = *piVar1;\n    } while (*piVar1 != 0);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0001e5d0(uint param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  iVar2 = DAT_0006b600;\n  if (DAT_0006b600 != 0) {\n    do {\n      if (((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)) {\n        return;\n      }\n      piVar1 = (int *)(iVar2 + 0x20);\n      iVar2 = *piVar1;\n    } while (*piVar1 != 0);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0001e5d0(uint param_1,int param_2)" identifier (parameter_list "(uint param_1,int param_2)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  iVar2 = DAT_0006b600;\n  if (DAT_0006b600 != 0) {\n    do {\n      if (((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)) {\n        return;\n      }\n      piVar1 = (int *)(iVar2 + 0x20);\n      iVar2 = *piVar1;\n    } while (*piVar1 != 0);\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = DAT_0006b600;" (assignment_expression "iVar2 = DAT_0006b600" identifier = identifier) ;) (if_statement "if (DAT_0006b600 != 0) {\n    do {\n      if (((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)) {\n        return;\n      }\n      piVar1 = (int *)(iVar2 + 0x20);\n      iVar2 = *piVar1;\n    } while (*piVar1 != 0);\n  }" if (parenthesized_expression "(DAT_0006b600 != 0)" ( (binary_expression "DAT_0006b600 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      if (((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)) {\n        return;\n      }\n      piVar1 = (int *)(iVar2 + 0x20);\n      iVar2 = *piVar1;\n    } while (*piVar1 != 0);\n  }" { (do_statement "do {\n      if (((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)) {\n        return;\n      }\n      piVar1 = (int *)(iVar2 + 0x20);\n      iVar2 = *piVar1;\n    } while (*piVar1 != 0);" do (compound_statement "{\n      if (((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)) {\n        return;\n      }\n      piVar1 = (int *)(iVar2 + 0x20);\n      iVar2 = *piVar1;\n    }" { (if_statement "if (((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)) {\n        return;\n      }" if (parenthesized_expression "(((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2))" ( (binary_expression "((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)" (parenthesized_expression "((*(uint *)(iVar2 + 0xc) & param_1) != 0)" ( (binary_expression "(*(uint *)(iVar2 + 0xc) & param_1) != 0" (parenthesized_expression "(*(uint *)(iVar2 + 0xc) & param_1)" ( (binary_expression "*(uint *)(iVar2 + 0xc) & param_1" (pointer_expression "*(uint *)(iVar2 + 0xc)" * (cast_expression "(uint *)(iVar2 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) & identifier) )) != number_literal) )) && (parenthesized_expression "(*(int *)(iVar2 + 0x10) == param_2)" ( (binary_expression "*(int *)(iVar2 + 0x10) == param_2" (pointer_expression "*(int *)(iVar2 + 0x10)" * (cast_expression "(int *)(iVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) == identifier) ))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "piVar1 = (int *)(iVar2 + 0x20);" (assignment_expression "piVar1 = (int *)(iVar2 + 0x20)" identifier = (cast_expression "(int *)(iVar2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x20)" ( (binary_expression "iVar2 + 0x20" identifier + number_literal) )))) ;) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) }) while (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & IDENT) )) != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) ))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0001e5d0(uint param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  iVar2 = DAT_0006b600;\n  if (DAT_0006b600 != 0) {\n    do {\n      if (((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)) {\n        return;\n      }\n      piVar1 = (int *)(iVar2 + 0x20);\n      iVar2 = *piVar1;\n    } while (*piVar1 != 0);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001e5d0(uint param_1,int param_2)" (identifier "FUN_0001e5d0") (parameter_list "(uint param_1,int param_2)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  iVar2 = DAT_0006b600;\n  if (DAT_0006b600 != 0) {\n    do {\n      if (((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)) {\n        return;\n      }\n      piVar1 = (int *)(iVar2 + 0x20);\n      iVar2 = *piVar1;\n    } while (*piVar1 != 0);\n  }\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = DAT_0006b600;" (assignment_expression "iVar2 = DAT_0006b600" (identifier "iVar2") (= "=") (identifier "DAT_0006b600")) (; ";")) (if_statement "if (DAT_0006b600 != 0) {\n    do {\n      if (((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)) {\n        return;\n      }\n      piVar1 = (int *)(iVar2 + 0x20);\n      iVar2 = *piVar1;\n    } while (*piVar1 != 0);\n  }" (if "if") (parenthesized_expression "(DAT_0006b600 != 0)" (( "(") (binary_expression "DAT_0006b600 != 0" (identifier "DAT_0006b600") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      if (((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)) {\n        return;\n      }\n      piVar1 = (int *)(iVar2 + 0x20);\n      iVar2 = *piVar1;\n    } while (*piVar1 != 0);\n  }" ({ "{") (do_statement "do {\n      if (((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)) {\n        return;\n      }\n      piVar1 = (int *)(iVar2 + 0x20);\n      iVar2 = *piVar1;\n    } while (*piVar1 != 0);" (do "do") (compound_statement "{\n      if (((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)) {\n        return;\n      }\n      piVar1 = (int *)(iVar2 + 0x20);\n      iVar2 = *piVar1;\n    }" ({ "{") (if_statement "if (((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)) {\n        return;\n      }" (if "if") (parenthesized_expression "(((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2))" (( "(") (binary_expression "((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)" (parenthesized_expression "((*(uint *)(iVar2 + 0xc) & param_1) != 0)" (( "(") (binary_expression "(*(uint *)(iVar2 + 0xc) & param_1) != 0" (parenthesized_expression "(*(uint *)(iVar2 + 0xc) & param_1)" (( "(") (binary_expression "*(uint *)(iVar2 + 0xc) & param_1" (pointer_expression "*(uint *)(iVar2 + 0xc)" (* "*") (cast_expression "(uint *)(iVar2 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xc)" (( "(") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) () ")")))) (& "&") (identifier "param_1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(iVar2 + 0x10) == param_2)" (( "(") (binary_expression "*(int *)(iVar2 + 0x10) == param_2" (pointer_expression "*(int *)(iVar2 + 0x10)" (* "*") (cast_expression "(int *)(iVar2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")")))) (== "==") (identifier "param_2")) () ")"))) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "piVar1 = (int *)(iVar2 + 0x20);" (assignment_expression "piVar1 = (int *)(iVar2 + 0x20)" (identifier "piVar1") (= "=") (cast_expression "(int *)(iVar2 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x20)" (( "(") (binary_expression "iVar2 + 0x20" (identifier "iVar2") (+ "+") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" (identifier "iVar2") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*piVar1 != 0)" (( "(") (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

type_1 * function_1(int var_2,type_2 *var_3)

{
  type_1 *var_4;
  
  var_4 = var_1;
  if (var_1 != (type_1 *)0x0) {
    do {
      if (((var_4->menus & var_2) != 0) && (var_4->var_3 == var_3)) {
        return var_4;
      }
      var_4 = var_4->next;
    } while (var_4 != (type_1 *)0x0);
  }
  return var_4;
}


(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: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void MASKED(uint param_1,int param_2)

{
  int *piVar1;
  int iVar2;
  
  iVar2 = DAT_0006b600;
  if (DAT_0006b600 != 0) {
    do {
      if (((*(uint *)(iVar2 + 0xc) & param_1) != 0) && (*(int *)(iVar2 + 0x10) == param_2)) {
        return;
      }
      piVar1 = (int *)(iVar2 + 0x20);
      iVar2 = *piVar1;
    } while (*piVar1 != 0);
  }
  return;
}

