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

char * assoc_reference(HASH_TABLE *hash,char *string)

{
  BUCKET_CONTENTS *pBVar1;
  
  if (hash != (HASH_TABLE *)0x0) {
    pBVar1 = hash_search(string,hash,0);
    if (pBVar1 != (BUCKET_CONTENTS *)0x0) {
      return (char *)pBVar1->data;
    }
  }
  return (char *)0x0;
}



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

undefined4 assoc_reference(int param_1,undefined4 param_2)

{
  int iVar1;
  
  if (param_1 != 0) {
    iVar1 = hash_search(param_2,param_1,0);
    if (iVar1 != 0) {
      return *(undefined4 *)(iVar1 + 8);
    }
  }
  return 0;
}


PUSH EBX
CALL 0x000312b0
ADD EBX,0xda94a
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JZ 0x000976e8
SUB ESP,0x4
PUSH 0x0
PUSH EAX
PUSH dword ptr [ESP + 0x20]
CALL 0x00088ec0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000976e8
MOV EAX,dword ptr [EAX + 0x8]
ADD ESP,0x8
POP EBX
RET
ADD ESP,0x8
XOR EAX,EAX
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 assoc_reference(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if (param_1 != 0) {\n    iVar1 = hash_search(param_2,param_1,0);\n    if (iVar1 != 0) {\n      return *(undefined4 *)(iVar1 + 8);\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 assoc_reference(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if (param_1 != 0) {\n    iVar1 = hash_search(param_2,param_1,0);\n    if (iVar1 != 0) {\n      return *(undefined4 *)(iVar1 + 8);\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "assoc_reference(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 != 0) {\n    iVar1 = hash_search(param_2,param_1,0);\n    if (iVar1 != 0) {\n      return *(undefined4 *)(iVar1 + 8);\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 != 0) {\n    iVar1 = hash_search(param_2,param_1,0);\n    if (iVar1 != 0) {\n      return *(undefined4 *)(iVar1 + 8);\n    }\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = hash_search(param_2,param_1,0);\n    if (iVar1 != 0) {\n      return *(undefined4 *)(iVar1 + 8);\n    }\n  }" { (expression_statement "iVar1 = hash_search(param_2,param_1,0);" (assignment_expression "iVar1 = hash_search(param_2,param_1,0)" identifier = (call_expression "hash_search(param_2,param_1,0)" identifier (argument_list "(param_2,param_1,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      return *(undefined4 *)(iVar1 + 8);\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return *(undefined4 *)(iVar1 + 8);\n    }" { (return_statement "return *(undefined4 *)(iVar1 + 8);" return (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * assoc_reference(HASH_TABLE *hash,char *string)\n\n{\n  BUCKET_CONTENTS *pBVar1;\n  \n  if (hash != (HASH_TABLE *)0x0) {\n    pBVar1 = hash_search(string,hash,0);\n    if (pBVar1 != (BUCKET_CONTENTS *)0x0) {\n      return (char *)pBVar1->data;\n    }\n  }\n  return (char *)0x0;\n}\n\n" comment comment (function_definition "char * assoc_reference(HASH_TABLE *hash,char *string)\n\n{\n  BUCKET_CONTENTS *pBVar1;\n  \n  if (hash != (HASH_TABLE *)0x0) {\n    pBVar1 = hash_search(string,hash,0);\n    if (pBVar1 != (BUCKET_CONTENTS *)0x0) {\n      return (char *)pBVar1->data;\n    }\n  }\n  return (char *)0x0;\n}" primitive_type (pointer_declarator "* assoc_reference(HASH_TABLE *hash,char *string)" * (function_declarator "assoc_reference(HASH_TABLE *hash,char *string)" identifier (parameter_list "(HASH_TABLE *hash,char *string)" ( (parameter_declaration "HASH_TABLE *hash" type_identifier (pointer_declarator "*hash" * identifier)) , (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) )))) (compound_statement "{\n  BUCKET_CONTENTS *pBVar1;\n  \n  if (hash != (HASH_TABLE *)0x0) {\n    pBVar1 = hash_search(string,hash,0);\n    if (pBVar1 != (BUCKET_CONTENTS *)0x0) {\n      return (char *)pBVar1->data;\n    }\n  }\n  return (char *)0x0;\n}" { (declaration "BUCKET_CONTENTS *pBVar1;" type_identifier (pointer_declarator "*pBVar1" * identifier) ;) (if_statement "if (hash != (HASH_TABLE *)0x0) {\n    pBVar1 = hash_search(string,hash,0);\n    if (pBVar1 != (BUCKET_CONTENTS *)0x0) {\n      return (char *)pBVar1->data;\n    }\n  }" if (parenthesized_expression "(hash != (HASH_TABLE *)0x0)" ( (binary_expression "hash != (HASH_TABLE *)0x0" identifier != (cast_expression "(HASH_TABLE *)0x0" ( (type_descriptor "HASH_TABLE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pBVar1 = hash_search(string,hash,0);\n    if (pBVar1 != (BUCKET_CONTENTS *)0x0) {\n      return (char *)pBVar1->data;\n    }\n  }" { (expression_statement "pBVar1 = hash_search(string,hash,0);" (assignment_expression "pBVar1 = hash_search(string,hash,0)" identifier = (call_expression "hash_search(string,hash,0)" identifier (argument_list "(string,hash,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (pBVar1 != (BUCKET_CONTENTS *)0x0) {\n      return (char *)pBVar1->data;\n    }" if (parenthesized_expression "(pBVar1 != (BUCKET_CONTENTS *)0x0)" ( (binary_expression "pBVar1 != (BUCKET_CONTENTS *)0x0" identifier != (cast_expression "(BUCKET_CONTENTS *)0x0" ( (type_descriptor "BUCKET_CONTENTS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return (char *)pBVar1->data;\n    }" { (return_statement "return (char *)pBVar1->data;" return (cast_expression "(char *)pBVar1->data" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "pBVar1->data" identifier -> field_identifier)) ;) })) })) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 assoc_reference(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if (param_1 != 0) {\n    iVar1 = hash_search(param_2,param_1,0);\n    if (iVar1 != 0) {\n      return *(undefined4 *)(iVar1 + 8);\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 assoc_reference(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if (param_1 != 0) {\n    iVar1 = hash_search(param_2,param_1,0);\n    if (iVar1 != 0) {\n      return *(undefined4 *)(iVar1 + 8);\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "assoc_reference(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 != 0) {\n    iVar1 = hash_search(param_2,param_1,0);\n    if (iVar1 != 0) {\n      return *(undefined4 *)(iVar1 + 8);\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 != 0) {\n    iVar1 = hash_search(param_2,param_1,0);\n    if (iVar1 != 0) {\n      return *(undefined4 *)(iVar1 + 8);\n    }\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = hash_search(param_2,param_1,0);\n    if (iVar1 != 0) {\n      return *(undefined4 *)(iVar1 + 8);\n    }\n  }" { (expression_statement "iVar1 = hash_search(param_2,param_1,0);" (assignment_expression "iVar1 = hash_search(param_2,param_1,0)" identifier = (call_expression "hash_search(param_2,param_1,0)" identifier (argument_list "(param_2,param_1,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      return *(undefined4 *)(iVar1 + 8);\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return *(undefined4 *)(iVar1 + 8);\n    }" { (return_statement "return *(undefined4 *)(iVar1 + 8);" return (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + 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 IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) })) (return_statement return LIT ;) })))
(function_definition "undefined4 assoc_reference(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  if (param_1 != 0) {\n    iVar1 = hash_search(param_2,param_1,0);\n    if (iVar1 != 0) {\n      return *(undefined4 *)(iVar1 + 8);\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "assoc_reference(int param_1,undefined4 param_2)" (identifier "assoc_reference") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 != 0) {\n    iVar1 = hash_search(param_2,param_1,0);\n    if (iVar1 != 0) {\n      return *(undefined4 *)(iVar1 + 8);\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (param_1 != 0) {\n    iVar1 = hash_search(param_2,param_1,0);\n    if (iVar1 != 0) {\n      return *(undefined4 *)(iVar1 + 8);\n    }\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = hash_search(param_2,param_1,0);\n    if (iVar1 != 0) {\n      return *(undefined4 *)(iVar1 + 8);\n    }\n  }" ({ "{") (expression_statement "iVar1 = hash_search(param_2,param_1,0);" (assignment_expression "iVar1 = hash_search(param_2,param_1,0)" (identifier "iVar1") (= "=") (call_expression "hash_search(param_2,param_1,0)" (identifier "hash_search") (argument_list "(param_2,param_1,0)" (( "(") (identifier "param_2") (, ",") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      return *(undefined4 *)(iVar1 + 8);\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return *(undefined4 *)(iVar1 + 8);\n    }" ({ "{") (return_statement "return *(undefined4 *)(iVar1 + 8);" (return "return") (pointer_expression "*(undefined4 *)(iVar1 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (; ";")) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

char * function_1(type_1 *var_1,char *string)

{
  type_2 *var_3;
  
  if (var_1 != (type_1 *)0x0) {
    var_3 = var_2(string,var_1,0);
    if (var_3 != (type_2 *)0x0) {
      return (char *)var_3->data;
    }
  }
  return (char *)0x0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (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) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (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)))))))))) (return_statement (number_literal)))))

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

undefined4 MASKED(int param_1,undefined4 param_2)

{
  int iVar1;
  
  if (param_1 != 0) {
    iVar1 = hash_search(param_2,param_1,0);
    if (iVar1 != 0) {
      return *(undefined4 *)(iVar1 + 8);
    }
  }
  return 0;
}

