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

int expr_symbol_where(symbolS *sym,char **pfile,uint *pline)

{
  symbolS *psVar1;
  expr_symbol_line *peVar2;
  
  if (expr_symbol_lines == (expr_symbol_line *)0x0) {
    return 0;
  }
  psVar1 = expr_symbol_lines->sym;
  peVar2 = expr_symbol_lines;
  while( true ) {
    if (sym == psVar1) {
      *pfile = peVar2->file;
      *pline = peVar2->line;
      return 1;
    }
    peVar2 = peVar2->next;
    if (peVar2 == (expr_symbol_line *)0x0) break;
    psVar1 = peVar2->sym;
  }
  return (int)peVar2;
}



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

int FUN_00021590(int param_1,int *param_2,int *param_3)

{
  int iVar1;
  int *piVar2;
  
  if (DAT_000777c4 == (int *)0x0) {
    return 0;
  }
  iVar1 = DAT_000777c4[1];
  piVar2 = DAT_000777c4;
  while( true ) {
    if (param_1 == iVar1) {
      *param_2 = piVar2[2];
      *param_3 = piVar2[3];
      return 1;
    }
    piVar2 = (int *)*piVar2;
    if (piVar2 == (int *)0x0) break;
    iVar1 = piVar2[1];
  }
  return (int)piVar2;
}


CALL 0x00017d9a
ADD EAX,0x4da6b
MOV EDX,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [EAX + 0x87c4]
TEST EAX,EAX
JZ 0x000215d8
CMP EDX,dword ptr [EAX + 0x4]
JNZ 0x000215b5
JMP 0x000215c0
CMP dword ptr [EAX + 0x4],EDX
JZ 0x000215c0
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JNZ 0x000215b0
RET
MOV ECX,dword ptr [EAX + 0x8]
MOV EDX,dword ptr [ESP + 0x8]
MOV dword ptr [EDX],ECX
MOV EDX,dword ptr [EAX + 0xc]
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [EAX],EDX
MOV EAX,0x1
RET
XOR EAX,EAX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nint FUN_00021590(int param_1,int *param_2,int *param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (DAT_000777c4 == (int *)0x0) {\n    return 0;\n  }\n  iVar1 = DAT_000777c4[1];\n  piVar2 = DAT_000777c4;\n  while( true ) {\n    if (param_1 == iVar1) {\n      *param_2 = piVar2[2];\n      *param_3 = piVar2[3];\n      return 1;\n    }\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = piVar2[1];\n  }\n  return (int)piVar2;\n}\n\n" comment (function_definition "int FUN_00021590(int param_1,int *param_2,int *param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (DAT_000777c4 == (int *)0x0) {\n    return 0;\n  }\n  iVar1 = DAT_000777c4[1];\n  piVar2 = DAT_000777c4;\n  while( true ) {\n    if (param_1 == iVar1) {\n      *param_2 = piVar2[2];\n      *param_3 = piVar2[3];\n      return 1;\n    }\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = piVar2[1];\n  }\n  return (int)piVar2;\n}" primitive_type (function_declarator "FUN_00021590(int param_1,int *param_2,int *param_3)" identifier (parameter_list "(int param_1,int *param_2,int *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  if (DAT_000777c4 == (int *)0x0) {\n    return 0;\n  }\n  iVar1 = DAT_000777c4[1];\n  piVar2 = DAT_000777c4;\n  while( true ) {\n    if (param_1 == iVar1) {\n      *param_2 = piVar2[2];\n      *param_3 = piVar2[3];\n      return 1;\n    }\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = piVar2[1];\n  }\n  return (int)piVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (if_statement "if (DAT_000777c4 == (int *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(DAT_000777c4 == (int *)0x0)" ( (binary_expression "DAT_000777c4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = DAT_000777c4[1];" (assignment_expression "iVar1 = DAT_000777c4[1]" identifier = (subscript_expression "DAT_000777c4[1]" identifier [ number_literal ])) ;) (expression_statement "piVar2 = DAT_000777c4;" (assignment_expression "piVar2 = DAT_000777c4" identifier = identifier) ;) (while_statement "while( true ) {\n    if (param_1 == iVar1) {\n      *param_2 = piVar2[2];\n      *param_3 = piVar2[3];\n      return 1;\n    }\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = piVar2[1];\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (param_1 == iVar1) {\n      *param_2 = piVar2[2];\n      *param_3 = piVar2[3];\n      return 1;\n    }\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = piVar2[1];\n  }" { (if_statement "if (param_1 == iVar1) {\n      *param_2 = piVar2[2];\n      *param_3 = piVar2[3];\n      return 1;\n    }" if (parenthesized_expression "(param_1 == iVar1)" ( (binary_expression "param_1 == iVar1" identifier == identifier) )) (compound_statement "{\n      *param_2 = piVar2[2];\n      *param_3 = piVar2[3];\n      return 1;\n    }" { (expression_statement "*param_2 = piVar2[2];" (assignment_expression "*param_2 = piVar2[2]" (pointer_expression "*param_2" * identifier) = (subscript_expression "piVar2[2]" identifier [ number_literal ])) ;) (expression_statement "*param_3 = piVar2[3];" (assignment_expression "*param_3 = piVar2[3]" (pointer_expression "*param_3" * identifier) = (subscript_expression "piVar2[3]" identifier [ number_literal ])) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "piVar2 = (int *)*piVar2;" (assignment_expression "piVar2 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (if_statement "if (piVar2 == (int *)0x0) break;" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = piVar2[1];" (assignment_expression "iVar1 = piVar2[1]" identifier = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) })) (return_statement "return (int)piVar2;" return (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nint expr_symbol_where(symbolS *sym,char **pfile,uint *pline)\n\n{\n  symbolS *psVar1;\n  expr_symbol_line *peVar2;\n  \n  if (expr_symbol_lines == (expr_symbol_line *)0x0) {\n    return 0;\n  }\n  psVar1 = expr_symbol_lines->sym;\n  peVar2 = expr_symbol_lines;\n  while( true ) {\n    if (sym == psVar1) {\n      *pfile = peVar2->file;\n      *pline = peVar2->line;\n      return 1;\n    }\n    peVar2 = peVar2->next;\n    if (peVar2 == (expr_symbol_line *)0x0) break;\n    psVar1 = peVar2->sym;\n  }\n  return (int)peVar2;\n}\n\n" comment (function_definition "int expr_symbol_where(symbolS *sym,char **pfile,uint *pline)\n\n{\n  symbolS *psVar1;\n  expr_symbol_line *peVar2;\n  \n  if (expr_symbol_lines == (expr_symbol_line *)0x0) {\n    return 0;\n  }\n  psVar1 = expr_symbol_lines->sym;\n  peVar2 = expr_symbol_lines;\n  while( true ) {\n    if (sym == psVar1) {\n      *pfile = peVar2->file;\n      *pline = peVar2->line;\n      return 1;\n    }\n    peVar2 = peVar2->next;\n    if (peVar2 == (expr_symbol_line *)0x0) break;\n    psVar1 = peVar2->sym;\n  }\n  return (int)peVar2;\n}" primitive_type (function_declarator "expr_symbol_where(symbolS *sym,char **pfile,uint *pline)" identifier (parameter_list "(symbolS *sym,char **pfile,uint *pline)" ( (parameter_declaration "symbolS *sym" type_identifier (pointer_declarator "*sym" * identifier)) , (parameter_declaration "char **pfile" primitive_type (pointer_declarator "**pfile" * (pointer_declarator "*pfile" * identifier))) , (parameter_declaration "uint *pline" type_identifier (pointer_declarator "*pline" * identifier)) ))) (compound_statement "{\n  symbolS *psVar1;\n  expr_symbol_line *peVar2;\n  \n  if (expr_symbol_lines == (expr_symbol_line *)0x0) {\n    return 0;\n  }\n  psVar1 = expr_symbol_lines->sym;\n  peVar2 = expr_symbol_lines;\n  while( true ) {\n    if (sym == psVar1) {\n      *pfile = peVar2->file;\n      *pline = peVar2->line;\n      return 1;\n    }\n    peVar2 = peVar2->next;\n    if (peVar2 == (expr_symbol_line *)0x0) break;\n    psVar1 = peVar2->sym;\n  }\n  return (int)peVar2;\n}" { (declaration "symbolS *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "expr_symbol_line *peVar2;" type_identifier (pointer_declarator "*peVar2" * identifier) ;) (if_statement "if (expr_symbol_lines == (expr_symbol_line *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(expr_symbol_lines == (expr_symbol_line *)0x0)" ( (binary_expression "expr_symbol_lines == (expr_symbol_line *)0x0" identifier == (cast_expression "(expr_symbol_line *)0x0" ( (type_descriptor "expr_symbol_line *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "psVar1 = expr_symbol_lines->sym;" (assignment_expression "psVar1 = expr_symbol_lines->sym" identifier = (field_expression "expr_symbol_lines->sym" identifier -> field_identifier)) ;) (expression_statement "peVar2 = expr_symbol_lines;" (assignment_expression "peVar2 = expr_symbol_lines" identifier = identifier) ;) (while_statement "while( true ) {\n    if (sym == psVar1) {\n      *pfile = peVar2->file;\n      *pline = peVar2->line;\n      return 1;\n    }\n    peVar2 = peVar2->next;\n    if (peVar2 == (expr_symbol_line *)0x0) break;\n    psVar1 = peVar2->sym;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (sym == psVar1) {\n      *pfile = peVar2->file;\n      *pline = peVar2->line;\n      return 1;\n    }\n    peVar2 = peVar2->next;\n    if (peVar2 == (expr_symbol_line *)0x0) break;\n    psVar1 = peVar2->sym;\n  }" { (if_statement "if (sym == psVar1) {\n      *pfile = peVar2->file;\n      *pline = peVar2->line;\n      return 1;\n    }" if (parenthesized_expression "(sym == psVar1)" ( (binary_expression "sym == psVar1" identifier == identifier) )) (compound_statement "{\n      *pfile = peVar2->file;\n      *pline = peVar2->line;\n      return 1;\n    }" { (expression_statement "*pfile = peVar2->file;" (assignment_expression "*pfile = peVar2->file" (pointer_expression "*pfile" * identifier) = (field_expression "peVar2->file" identifier -> field_identifier)) ;) (expression_statement "*pline = peVar2->line;" (assignment_expression "*pline = peVar2->line" (pointer_expression "*pline" * identifier) = (field_expression "peVar2->line" identifier -> field_identifier)) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "peVar2 = peVar2->next;" (assignment_expression "peVar2 = peVar2->next" identifier = (field_expression "peVar2->next" identifier -> field_identifier)) ;) (if_statement "if (peVar2 == (expr_symbol_line *)0x0) break;" if (parenthesized_expression "(peVar2 == (expr_symbol_line *)0x0)" ( (binary_expression "peVar2 == (expr_symbol_line *)0x0" identifier == (cast_expression "(expr_symbol_line *)0x0" ( (type_descriptor "expr_symbol_line *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "psVar1 = peVar2->sym;" (assignment_expression "psVar1 = peVar2->sym" identifier = (field_expression "peVar2->sym" identifier -> field_identifier)) ;) })) (return_statement "return (int)peVar2;" return (cast_expression "(int)peVar2" ( (type_descriptor "int" primitive_type) ) identifier) ;) })))
(translation_unit "int FUN_00021590(int param_1,int *param_2,int *param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (DAT_000777c4 == (int *)0x0) {\n    return 0;\n  }\n  iVar1 = DAT_000777c4[1];\n  piVar2 = DAT_000777c4;\n  while( true ) {\n    if (param_1 == iVar1) {\n      *param_2 = piVar2[2];\n      *param_3 = piVar2[3];\n      return 1;\n    }\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = piVar2[1];\n  }\n  return (int)piVar2;\n}\n\n" (function_definition "int FUN_00021590(int param_1,int *param_2,int *param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (DAT_000777c4 == (int *)0x0) {\n    return 0;\n  }\n  iVar1 = DAT_000777c4[1];\n  piVar2 = DAT_000777c4;\n  while( true ) {\n    if (param_1 == iVar1) {\n      *param_2 = piVar2[2];\n      *param_3 = piVar2[3];\n      return 1;\n    }\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = piVar2[1];\n  }\n  return (int)piVar2;\n}" primitive_type (function_declarator "FUN_00021590(int param_1,int *param_2,int *param_3)" identifier (parameter_list "(int param_1,int *param_2,int *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  if (DAT_000777c4 == (int *)0x0) {\n    return 0;\n  }\n  iVar1 = DAT_000777c4[1];\n  piVar2 = DAT_000777c4;\n  while( true ) {\n    if (param_1 == iVar1) {\n      *param_2 = piVar2[2];\n      *param_3 = piVar2[3];\n      return 1;\n    }\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = piVar2[1];\n  }\n  return (int)piVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (if_statement "if (DAT_000777c4 == (int *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(DAT_000777c4 == (int *)0x0)" ( (binary_expression "DAT_000777c4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = DAT_000777c4[1];" (assignment_expression "iVar1 = DAT_000777c4[1]" identifier = (subscript_expression "DAT_000777c4[1]" identifier [ number_literal ])) ;) (expression_statement "piVar2 = DAT_000777c4;" (assignment_expression "piVar2 = DAT_000777c4" identifier = identifier) ;) (while_statement "while( true ) {\n    if (param_1 == iVar1) {\n      *param_2 = piVar2[2];\n      *param_3 = piVar2[3];\n      return 1;\n    }\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = piVar2[1];\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (param_1 == iVar1) {\n      *param_2 = piVar2[2];\n      *param_3 = piVar2[3];\n      return 1;\n    }\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = piVar2[1];\n  }" { (if_statement "if (param_1 == iVar1) {\n      *param_2 = piVar2[2];\n      *param_3 = piVar2[3];\n      return 1;\n    }" if (parenthesized_expression "(param_1 == iVar1)" ( (binary_expression "param_1 == iVar1" identifier == identifier) )) (compound_statement "{\n      *param_2 = piVar2[2];\n      *param_3 = piVar2[3];\n      return 1;\n    }" { (expression_statement "*param_2 = piVar2[2];" (assignment_expression "*param_2 = piVar2[2]" (pointer_expression "*param_2" * identifier) = (subscript_expression "piVar2[2]" identifier [ number_literal ])) ;) (expression_statement "*param_3 = piVar2[3];" (assignment_expression "*param_3 = piVar2[3]" (pointer_expression "*param_3" * identifier) = (subscript_expression "piVar2[3]" identifier [ number_literal ])) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "piVar2 = (int *)*piVar2;" (assignment_expression "piVar2 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (if_statement "if (piVar2 == (int *)0x0) break;" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = piVar2[1];" (assignment_expression "iVar1 = piVar2[1]" identifier = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) })) (return_statement "return (int)piVar2;" return (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ LIT ])) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (return_statement return (cast_expression ( (type_descriptor TYPE) ) IDENT) ;) })))
(function_definition "int FUN_00021590(int param_1,int *param_2,int *param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if (DAT_000777c4 == (int *)0x0) {\n    return 0;\n  }\n  iVar1 = DAT_000777c4[1];\n  piVar2 = DAT_000777c4;\n  while( true ) {\n    if (param_1 == iVar1) {\n      *param_2 = piVar2[2];\n      *param_3 = piVar2[3];\n      return 1;\n    }\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = piVar2[1];\n  }\n  return (int)piVar2;\n}" (primitive_type "int") (function_declarator "FUN_00021590(int param_1,int *param_2,int *param_3)" (identifier "FUN_00021590") (parameter_list "(int param_1,int *param_2,int *param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  if (DAT_000777c4 == (int *)0x0) {\n    return 0;\n  }\n  iVar1 = DAT_000777c4[1];\n  piVar2 = DAT_000777c4;\n  while( true ) {\n    if (param_1 == iVar1) {\n      *param_2 = piVar2[2];\n      *param_3 = piVar2[3];\n      return 1;\n    }\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = piVar2[1];\n  }\n  return (int)piVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (if_statement "if (DAT_000777c4 == (int *)0x0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(DAT_000777c4 == (int *)0x0)" (( "(") (binary_expression "DAT_000777c4 == (int *)0x0" (identifier "DAT_000777c4") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar1 = DAT_000777c4[1];" (assignment_expression "iVar1 = DAT_000777c4[1]" (identifier "iVar1") (= "=") (subscript_expression "DAT_000777c4[1]" (identifier "DAT_000777c4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar2 = DAT_000777c4;" (assignment_expression "piVar2 = DAT_000777c4" (identifier "piVar2") (= "=") (identifier "DAT_000777c4")) (; ";")) (while_statement "while( true ) {\n    if (param_1 == iVar1) {\n      *param_2 = piVar2[2];\n      *param_3 = piVar2[3];\n      return 1;\n    }\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = piVar2[1];\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (param_1 == iVar1) {\n      *param_2 = piVar2[2];\n      *param_3 = piVar2[3];\n      return 1;\n    }\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) break;\n    iVar1 = piVar2[1];\n  }" ({ "{") (if_statement "if (param_1 == iVar1) {\n      *param_2 = piVar2[2];\n      *param_3 = piVar2[3];\n      return 1;\n    }" (if "if") (parenthesized_expression "(param_1 == iVar1)" (( "(") (binary_expression "param_1 == iVar1" (identifier "param_1") (== "==") (identifier "iVar1")) () ")")) (compound_statement "{\n      *param_2 = piVar2[2];\n      *param_3 = piVar2[3];\n      return 1;\n    }" ({ "{") (expression_statement "*param_2 = piVar2[2];" (assignment_expression "*param_2 = piVar2[2]" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "*param_3 = piVar2[3];" (assignment_expression "*param_3 = piVar2[3]" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (subscript_expression "piVar2[3]" (identifier "piVar2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "piVar2 = (int *)*piVar2;" (assignment_expression "piVar2 = (int *)*piVar2" (identifier "piVar2") (= "=") (cast_expression "(int *)*piVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")))) (; ";")) (if_statement "if (piVar2 == (int *)0x0) break;" (if "if") (parenthesized_expression "(piVar2 == (int *)0x0)" (( "(") (binary_expression "piVar2 == (int *)0x0" (identifier "piVar2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar1 = piVar2[1];" (assignment_expression "iVar1 = piVar2[1]" (identifier "iVar1") (= "=") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}"))) (return_statement "return (int)piVar2;" (return "return") (cast_expression "(int)piVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar2")) (; ";")) (} "}")))

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

int function_1(type_1 *var_2,char **pfile,type_2 *pline)

{
  type_1 *var_3;
  type_3 *var_4;
  
  if (var_1 == (type_3 *)0x0) {
    return 0;
  }
  var_3 = var_1->var_2;
  var_4 = var_1;
  while( true ) {
    if (var_2 == var_3) {
      *pfile = var_4->file;
      *pline = var_4->line;
      return 1;
    }
    var_4 = var_4->next;
    if (var_4 == (type_3 *)0x0) break;
    var_3 = var_4->var_2;
  }
  return (int)var_4;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (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 (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (return_statement (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))))) (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: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))))) (return_statement (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))

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

int MASKED(int param_1,int *param_2,int *param_3)

{
  int iVar1;
  int *piVar2;
  
  if (DAT_000777c4 == (int *)0x0) {
    return 0;
  }
  iVar1 = DAT_000777c4[1];
  piVar2 = DAT_000777c4;
  while( true ) {
    if (param_1 == iVar1) {
      *param_2 = piVar2[2];
      *param_3 = piVar2[3];
      return 1;
    }
    piVar2 = (int *)*piVar2;
    if (piVar2 == (int *)0x0) break;
    iVar1 = piVar2[1];
  }
  return (int)piVar2;
}

