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

symbolS * symbol_find_exact_noref(char *name,int noref)

{
  symbolS *s;
  
  s = (symbolS *)hash_find(local_hash,name);
  if (s == (symbolS *)0x0) {
    s = (symbolS *)hash_find(sy_hash,name);
    if ((s != (symbolS *)0x0) && (noref == 0)) {
      S_CLEAR_WEAKREFD(s);
    }
  }
  return s;
}



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

int FUN_0003a2b0(undefined4 param_1,int param_2)

{
  int iVar1;
  
  iVar1 = FUN_00025440(DAT_00077464,param_1);
  if (iVar1 == 0) {
    iVar1 = FUN_00025440(DAT_00077468,param_1);
    if ((iVar1 != 0) && (param_2 == 0)) {
      FUN_0003a260(iVar1);
    }
  }
  return iVar1;
}


PUSH ESI
PUSH EBX
CALL 0x00016040
ADD EBX,0x33d49
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x28]
PUSH ESI
PUSH dword ptr [EBX + 0x9464]
CALL 0x00025440
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0003a2e0
ADD ESP,0x14
POP EBX
POP ESI
RET
SUB ESP,0x8
PUSH ESI
PUSH dword ptr [EBX + 0x9468]
CALL 0x00025440
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0003a2d7
MOV EDX,dword ptr [ESP + 0x24]
TEST EDX,EDX
JNZ 0x0003a2d7
SUB ESP,0xc
PUSH EAX
MOV dword ptr [ESP + 0x1c],EAX
CALL 0x0003a260
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
JMP 0x0003a2d7
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0003a2b0(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00025440(DAT_00077464,param_1);\n  if (iVar1 == 0) {\n    iVar1 = FUN_00025440(DAT_00077468,param_1);\n    if ((iVar1 != 0) && (param_2 == 0)) {\n      FUN_0003a260(iVar1);\n    }\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int FUN_0003a2b0(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00025440(DAT_00077464,param_1);\n  if (iVar1 == 0) {\n    iVar1 = FUN_00025440(DAT_00077468,param_1);\n    if ((iVar1 != 0) && (param_2 == 0)) {\n      FUN_0003a260(iVar1);\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0003a2b0(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00025440(DAT_00077464,param_1);\n  if (iVar1 == 0) {\n    iVar1 = FUN_00025440(DAT_00077468,param_1);\n    if ((iVar1 != 0) && (param_2 == 0)) {\n      FUN_0003a260(iVar1);\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00025440(DAT_00077464,param_1);" (assignment_expression "iVar1 = FUN_00025440(DAT_00077464,param_1)" identifier = (call_expression "FUN_00025440(DAT_00077464,param_1)" identifier (argument_list "(DAT_00077464,param_1)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = FUN_00025440(DAT_00077468,param_1);\n    if ((iVar1 != 0) && (param_2 == 0)) {\n      FUN_0003a260(iVar1);\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = FUN_00025440(DAT_00077468,param_1);\n    if ((iVar1 != 0) && (param_2 == 0)) {\n      FUN_0003a260(iVar1);\n    }\n  }" { (expression_statement "iVar1 = FUN_00025440(DAT_00077468,param_1);" (assignment_expression "iVar1 = FUN_00025440(DAT_00077468,param_1)" identifier = (call_expression "FUN_00025440(DAT_00077468,param_1)" identifier (argument_list "(DAT_00077468,param_1)" ( identifier , identifier )))) ;) (if_statement "if ((iVar1 != 0) && (param_2 == 0)) {\n      FUN_0003a260(iVar1);\n    }" if (parenthesized_expression "((iVar1 != 0) && (param_2 == 0))" ( (binary_expression "(iVar1 != 0) && (param_2 == 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) ))) )) (compound_statement "{\n      FUN_0003a260(iVar1);\n    }" { (expression_statement "FUN_0003a260(iVar1);" (call_expression "FUN_0003a260(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) })) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nsymbolS * symbol_find_exact_noref(char *name,int noref)\n\n{\n  symbolS *s;\n  \n  s = (symbolS *)hash_find(local_hash,name);\n  if (s == (symbolS *)0x0) {\n    s = (symbolS *)hash_find(sy_hash,name);\n    if ((s != (symbolS *)0x0) && (noref == 0)) {\n      S_CLEAR_WEAKREFD(s);\n    }\n  }\n  return s;\n}\n\n" comment comment (function_definition "symbolS * symbol_find_exact_noref(char *name,int noref)\n\n{\n  symbolS *s;\n  \n  s = (symbolS *)hash_find(local_hash,name);\n  if (s == (symbolS *)0x0) {\n    s = (symbolS *)hash_find(sy_hash,name);\n    if ((s != (symbolS *)0x0) && (noref == 0)) {\n      S_CLEAR_WEAKREFD(s);\n    }\n  }\n  return s;\n}" type_identifier (pointer_declarator "* symbol_find_exact_noref(char *name,int noref)" * (function_declarator "symbol_find_exact_noref(char *name,int noref)" identifier (parameter_list "(char *name,int noref)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "int noref" primitive_type identifier) )))) (compound_statement "{\n  symbolS *s;\n  \n  s = (symbolS *)hash_find(local_hash,name);\n  if (s == (symbolS *)0x0) {\n    s = (symbolS *)hash_find(sy_hash,name);\n    if ((s != (symbolS *)0x0) && (noref == 0)) {\n      S_CLEAR_WEAKREFD(s);\n    }\n  }\n  return s;\n}" { (declaration "symbolS *s;" type_identifier (pointer_declarator "*s" * identifier) ;) (expression_statement "s = (symbolS *)hash_find(local_hash,name);" (assignment_expression "s = (symbolS *)hash_find(local_hash,name)" identifier = (cast_expression "(symbolS *)hash_find(local_hash,name)" ( (type_descriptor "symbolS *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "hash_find(local_hash,name)" identifier (argument_list "(local_hash,name)" ( identifier , identifier ))))) ;) (if_statement "if (s == (symbolS *)0x0) {\n    s = (symbolS *)hash_find(sy_hash,name);\n    if ((s != (symbolS *)0x0) && (noref == 0)) {\n      S_CLEAR_WEAKREFD(s);\n    }\n  }" if (parenthesized_expression "(s == (symbolS *)0x0)" ( (binary_expression "s == (symbolS *)0x0" identifier == (cast_expression "(symbolS *)0x0" ( (type_descriptor "symbolS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    s = (symbolS *)hash_find(sy_hash,name);\n    if ((s != (symbolS *)0x0) && (noref == 0)) {\n      S_CLEAR_WEAKREFD(s);\n    }\n  }" { (expression_statement "s = (symbolS *)hash_find(sy_hash,name);" (assignment_expression "s = (symbolS *)hash_find(sy_hash,name)" identifier = (cast_expression "(symbolS *)hash_find(sy_hash,name)" ( (type_descriptor "symbolS *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "hash_find(sy_hash,name)" identifier (argument_list "(sy_hash,name)" ( identifier , identifier ))))) ;) (if_statement "if ((s != (symbolS *)0x0) && (noref == 0)) {\n      S_CLEAR_WEAKREFD(s);\n    }" if (parenthesized_expression "((s != (symbolS *)0x0) && (noref == 0))" ( (binary_expression "(s != (symbolS *)0x0) && (noref == 0)" (parenthesized_expression "(s != (symbolS *)0x0)" ( (binary_expression "s != (symbolS *)0x0" identifier != (cast_expression "(symbolS *)0x0" ( (type_descriptor "symbolS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(noref == 0)" ( (binary_expression "noref == 0" identifier == number_literal) ))) )) (compound_statement "{\n      S_CLEAR_WEAKREFD(s);\n    }" { (expression_statement "S_CLEAR_WEAKREFD(s);" (call_expression "S_CLEAR_WEAKREFD(s)" identifier (argument_list "(s)" ( identifier ))) ;) })) })) (return_statement "return s;" return identifier ;) })))
(translation_unit "int FUN_0003a2b0(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00025440(DAT_00077464,param_1);\n  if (iVar1 == 0) {\n    iVar1 = FUN_00025440(DAT_00077468,param_1);\n    if ((iVar1 != 0) && (param_2 == 0)) {\n      FUN_0003a260(iVar1);\n    }\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0003a2b0(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00025440(DAT_00077464,param_1);\n  if (iVar1 == 0) {\n    iVar1 = FUN_00025440(DAT_00077468,param_1);\n    if ((iVar1 != 0) && (param_2 == 0)) {\n      FUN_0003a260(iVar1);\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0003a2b0(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00025440(DAT_00077464,param_1);\n  if (iVar1 == 0) {\n    iVar1 = FUN_00025440(DAT_00077468,param_1);\n    if ((iVar1 != 0) && (param_2 == 0)) {\n      FUN_0003a260(iVar1);\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00025440(DAT_00077464,param_1);" (assignment_expression "iVar1 = FUN_00025440(DAT_00077464,param_1)" identifier = (call_expression "FUN_00025440(DAT_00077464,param_1)" identifier (argument_list "(DAT_00077464,param_1)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = FUN_00025440(DAT_00077468,param_1);\n    if ((iVar1 != 0) && (param_2 == 0)) {\n      FUN_0003a260(iVar1);\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = FUN_00025440(DAT_00077468,param_1);\n    if ((iVar1 != 0) && (param_2 == 0)) {\n      FUN_0003a260(iVar1);\n    }\n  }" { (expression_statement "iVar1 = FUN_00025440(DAT_00077468,param_1);" (assignment_expression "iVar1 = FUN_00025440(DAT_00077468,param_1)" identifier = (call_expression "FUN_00025440(DAT_00077468,param_1)" identifier (argument_list "(DAT_00077468,param_1)" ( identifier , identifier )))) ;) (if_statement "if ((iVar1 != 0) && (param_2 == 0)) {\n      FUN_0003a260(iVar1);\n    }" if (parenthesized_expression "((iVar1 != 0) && (param_2 == 0))" ( (binary_expression "(iVar1 != 0) && (param_2 == 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) ))) )) (compound_statement "{\n      FUN_0003a260(iVar1);\n    }" { (expression_statement "FUN_0003a260(iVar1);" (call_expression "FUN_0003a260(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) })) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_0003a2b0(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00025440(DAT_00077464,param_1);\n  if (iVar1 == 0) {\n    iVar1 = FUN_00025440(DAT_00077468,param_1);\n    if ((iVar1 != 0) && (param_2 == 0)) {\n      FUN_0003a260(iVar1);\n    }\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_0003a2b0(undefined4 param_1,int param_2)" (identifier "FUN_0003a2b0") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00025440(DAT_00077464,param_1);\n  if (iVar1 == 0) {\n    iVar1 = FUN_00025440(DAT_00077468,param_1);\n    if ((iVar1 != 0) && (param_2 == 0)) {\n      FUN_0003a260(iVar1);\n    }\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = FUN_00025440(DAT_00077464,param_1);" (assignment_expression "iVar1 = FUN_00025440(DAT_00077464,param_1)" (identifier "iVar1") (= "=") (call_expression "FUN_00025440(DAT_00077464,param_1)" (identifier "FUN_00025440") (argument_list "(DAT_00077464,param_1)" (( "(") (identifier "DAT_00077464") (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    iVar1 = FUN_00025440(DAT_00077468,param_1);\n    if ((iVar1 != 0) && (param_2 == 0)) {\n      FUN_0003a260(iVar1);\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = FUN_00025440(DAT_00077468,param_1);\n    if ((iVar1 != 0) && (param_2 == 0)) {\n      FUN_0003a260(iVar1);\n    }\n  }" ({ "{") (expression_statement "iVar1 = FUN_00025440(DAT_00077468,param_1);" (assignment_expression "iVar1 = FUN_00025440(DAT_00077468,param_1)" (identifier "iVar1") (= "=") (call_expression "FUN_00025440(DAT_00077468,param_1)" (identifier "FUN_00025440") (argument_list "(DAT_00077468,param_1)" (( "(") (identifier "DAT_00077468") (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if ((iVar1 != 0) && (param_2 == 0)) {\n      FUN_0003a260(iVar1);\n    }" (if "if") (parenthesized_expression "((iVar1 != 0) && (param_2 == 0))" (( "(") (binary_expression "(iVar1 != 0) && (param_2 == 0)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      FUN_0003a260(iVar1);\n    }" ({ "{") (expression_statement "FUN_0003a260(iVar1);" (call_expression "FUN_0003a260(iVar1)" (identifier "FUN_0003a260") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

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

type_1 * function_1(char *name,int var_3)

{
  type_1 *var_2;
  
  var_2 = (type_1 *)var_1(local_hash,name);
  if (var_2 == (type_1 *)0x0) {
    var_2 = (type_1 *)var_1(sy_hash,name);
    if ((var_2 != (type_1 *)0x0) && (var_3 == 0)) {
      var_4(var_2);
    }
  }
  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: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))))) (return_statement (identifier)))))

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

int MASKED(undefined4 param_1,int param_2)

{
  int iVar1;
  
  iVar1 = FUN_00025440(DAT_00077464,param_1);
  if (iVar1 == 0) {
    iVar1 = FUN_00025440(DAT_00077468,param_1);
    if ((iVar1 != 0) && (param_2 == 0)) {
      FUN_0003a260(iVar1);
    }
  }
  return iVar1;
}

