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

void * hash_get_next(Hash_table *table,void *entry)

{
  void **ppvVar1;
  size_t sVar2;
  hash_entry *phVar3;
  hash_entry *phVar4;
  
  sVar2 = (*table->hasher)(entry,table->n_buckets);
  if (table->n_buckets <= sVar2) {
                    /* WARNING: Subroutine does not return */
    abort();
  }
  phVar4 = table->bucket + sVar2;
  phVar3 = phVar4;
  do {
    ppvVar1 = &phVar3->data;
    phVar3 = phVar3->next;
    if (*ppvVar1 == entry) {
      if (phVar3 != (hash_entry *)0x0) {
        return phVar3->data;
      }
      break;
    }
  } while (phVar3 != (hash_entry *)0x0);
  do {
    phVar4 = phVar4 + 1;
    if (table->bucket_limit <= phVar4) {
      return (void *)0x0;
    }
  } while (phVar4->data == (void *)0x0);
  return phVar4->data;
}



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

int FUN_0001e0b0(int *param_1,int param_2)

{
  int iVar1;
  uint uVar2;
  int *piVar3;
  int *piVar4;
  
  uVar2 = (*(code *)param_1[6])(param_2,param_1[2]);
  if ((uint)param_1[2] <= uVar2) {
                    /* WARNING: Subroutine does not return */
    abort();
  }
  piVar4 = (int *)(*param_1 + uVar2 * 8);
  piVar3 = piVar4;
  do {
    iVar1 = *piVar3;
    piVar3 = (int *)piVar3[1];
    if (iVar1 == param_2) {
      if (piVar3 != (int *)0x0) {
        return *piVar3;
      }
      break;
    }
  } while (piVar3 != (int *)0x0);
  do {
    piVar4 = piVar4 + 2;
    if ((int *)param_1[1] <= piVar4) {
      return 0;
    }
  } while (*piVar4 == 0);
  return *piVar4;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x10]
CALL 0x00015920
ADD EBX,0x14f44
MOV ESI,dword ptr [ESP + 0x14]
SUB ESP,0x8
PUSH dword ptr [EDI + 0x8]
PUSH ESI
CALL dword ptr [EDI + 0x18]
ADD ESP,0x10
CMP EAX,dword ptr [EDI + 0x8]
JNC 0x000127a8
MOV EDX,dword ptr [EDI]
LEA EDX,[EDX + EAX*0x8]
MOV EAX,EDX
JMP 0x0001e0ec
TEST EAX,EAX
JZ 0x0001e0f9
MOV ECX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0x4]
CMP ECX,ESI
JNZ 0x0001e0e8
TEST EAX,EAX
JNZ 0x0001e118
MOV ECX,dword ptr [EDI + 0x4]
JMP 0x0001e106
MOV EAX,dword ptr [EDX]
TEST EAX,EAX
JNZ 0x0001e10f
ADD EDX,0x8
CMP ECX,EDX
JA 0x0001e100
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
RET
POP EBX
MOV EAX,dword ptr [EAX]
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0001e0b0(int *param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  int *piVar4;\n  \n  uVar2 = (*(code *)param_1[6])(param_2,param_1[2]);\n  if ((uint)param_1[2] <= uVar2) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  piVar4 = (int *)(*param_1 + uVar2 * 8);\n  piVar3 = piVar4;\n  do {\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  } while (piVar3 != (int *)0x0);\n  do {\n    piVar4 = piVar4 + 2;\n    if ((int *)param_1[1] <= piVar4) {\n      return 0;\n    }\n  } while (*piVar4 == 0);\n  return *piVar4;\n}\n\n" comment (function_definition "int FUN_0001e0b0(int *param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  int *piVar4;\n  \n  uVar2 = (*(code *)param_1[6])(param_2,param_1[2]);\n  if ((uint)param_1[2] <= uVar2) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  piVar4 = (int *)(*param_1 + uVar2 * 8);\n  piVar3 = piVar4;\n  do {\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  } while (piVar3 != (int *)0x0);\n  do {\n    piVar4 = piVar4 + 2;\n    if ((int *)param_1[1] <= piVar4) {\n      return 0;\n    }\n  } while (*piVar4 == 0);\n  return *piVar4;\n}" primitive_type (function_declarator "FUN_0001e0b0(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  int *piVar4;\n  \n  uVar2 = (*(code *)param_1[6])(param_2,param_1[2]);\n  if ((uint)param_1[2] <= uVar2) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  piVar4 = (int *)(*param_1 + uVar2 * 8);\n  piVar3 = piVar4;\n  do {\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  } while (piVar3 != (int *)0x0);\n  do {\n    piVar4 = piVar4 + 2;\n    if ((int *)param_1[1] <= piVar4) {\n      return 0;\n    }\n  } while (*piVar4 == 0);\n  return *piVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "uVar2 = (*(code *)param_1[6])(param_2,param_1[2]);" (assignment_expression "uVar2 = (*(code *)param_1[6])(param_2,param_1[2])" identifier = (call_expression "(*(code *)param_1[6])(param_2,param_1[2])" (parenthesized_expression "(*(code *)param_1[6])" ( (pointer_expression "*(code *)param_1[6]" * (cast_expression "(code *)param_1[6]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[6]" identifier [ number_literal ]))) )) (argument_list "(param_2,param_1[2])" ( identifier , (subscript_expression "param_1[2]" identifier [ number_literal ]) )))) ;) (if_statement "if ((uint)param_1[2] <= uVar2) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" if (parenthesized_expression "((uint)param_1[2] <= uVar2)" ( (binary_expression "(uint)param_1[2] <= uVar2" (cast_expression "(uint)param_1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) <= identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" { comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "piVar4 = (int *)(*param_1 + uVar2 * 8);" (assignment_expression "piVar4 = (int *)(*param_1 + uVar2 * 8)" identifier = (cast_expression "(int *)(*param_1 + uVar2 * 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + uVar2 * 8)" ( (binary_expression "*param_1 + uVar2 * 8" (pointer_expression "*param_1" * identifier) + (binary_expression "uVar2 * 8" identifier * number_literal)) )))) ;) (expression_statement "piVar3 = piVar4;" (assignment_expression "piVar3 = piVar4" identifier = identifier) ;) (do_statement "do {\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  } while (piVar3 != (int *)0x0);" do (compound_statement "{\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  }" { (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "piVar3 = (int *)piVar3[1];" (assignment_expression "piVar3 = (int *)piVar3[1]" identifier = (cast_expression "(int *)piVar3[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) ;) (if_statement "if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }" if (parenthesized_expression "(iVar1 == param_2)" ( (binary_expression "iVar1 == param_2" identifier == identifier) )) (compound_statement "{\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }" { (if_statement "if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return *piVar3;\n      }" { (return_statement "return *piVar3;" return (pointer_expression "*piVar3" * identifier) ;) })) (break_statement "break;" break ;) })) }) while (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (do_statement "do {\n    piVar4 = piVar4 + 2;\n    if ((int *)param_1[1] <= piVar4) {\n      return 0;\n    }\n  } while (*piVar4 == 0);" do (compound_statement "{\n    piVar4 = piVar4 + 2;\n    if ((int *)param_1[1] <= piVar4) {\n      return 0;\n    }\n  }" { (expression_statement "piVar4 = piVar4 + 2;" (assignment_expression "piVar4 = piVar4 + 2" identifier = (binary_expression "piVar4 + 2" identifier + number_literal)) ;) (if_statement "if ((int *)param_1[1] <= piVar4) {\n      return 0;\n    }" if (parenthesized_expression "((int *)param_1[1] <= piVar4)" ( (binary_expression "(int *)param_1[1] <= piVar4" (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) <= identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "(*piVar4 == 0)" ( (binary_expression "*piVar4 == 0" (pointer_expression "*piVar4" * identifier) == number_literal) )) ;) (return_statement "return *piVar4;" return (pointer_expression "*piVar4" * identifier) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid * hash_get_next(Hash_table *table,void *entry)\n\n{\n  void **ppvVar1;\n  size_t sVar2;\n  hash_entry *phVar3;\n  hash_entry *phVar4;\n  \n  sVar2 = (*table->hasher)(entry,table->n_buckets);\n  if (table->n_buckets <= sVar2) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  phVar4 = table->bucket + sVar2;\n  phVar3 = phVar4;\n  do {\n    ppvVar1 = &phVar3->data;\n    phVar3 = phVar3->next;\n    if (*ppvVar1 == entry) {\n      if (phVar3 != (hash_entry *)0x0) {\n        return phVar3->data;\n      }\n      break;\n    }\n  } while (phVar3 != (hash_entry *)0x0);\n  do {\n    phVar4 = phVar4 + 1;\n    if (table->bucket_limit <= phVar4) {\n      return (void *)0x0;\n    }\n  } while (phVar4->data == (void *)0x0);\n  return phVar4->data;\n}\n\n" comment comment (function_definition "void * hash_get_next(Hash_table *table,void *entry)\n\n{\n  void **ppvVar1;\n  size_t sVar2;\n  hash_entry *phVar3;\n  hash_entry *phVar4;\n  \n  sVar2 = (*table->hasher)(entry,table->n_buckets);\n  if (table->n_buckets <= sVar2) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  phVar4 = table->bucket + sVar2;\n  phVar3 = phVar4;\n  do {\n    ppvVar1 = &phVar3->data;\n    phVar3 = phVar3->next;\n    if (*ppvVar1 == entry) {\n      if (phVar3 != (hash_entry *)0x0) {\n        return phVar3->data;\n      }\n      break;\n    }\n  } while (phVar3 != (hash_entry *)0x0);\n  do {\n    phVar4 = phVar4 + 1;\n    if (table->bucket_limit <= phVar4) {\n      return (void *)0x0;\n    }\n  } while (phVar4->data == (void *)0x0);\n  return phVar4->data;\n}" primitive_type (pointer_declarator "* hash_get_next(Hash_table *table,void *entry)" * (function_declarator "hash_get_next(Hash_table *table,void *entry)" identifier (parameter_list "(Hash_table *table,void *entry)" ( (parameter_declaration "Hash_table *table" type_identifier (pointer_declarator "*table" * identifier)) , (parameter_declaration "void *entry" primitive_type (pointer_declarator "*entry" * identifier)) )))) (compound_statement "{\n  void **ppvVar1;\n  size_t sVar2;\n  hash_entry *phVar3;\n  hash_entry *phVar4;\n  \n  sVar2 = (*table->hasher)(entry,table->n_buckets);\n  if (table->n_buckets <= sVar2) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }\n  phVar4 = table->bucket + sVar2;\n  phVar3 = phVar4;\n  do {\n    ppvVar1 = &phVar3->data;\n    phVar3 = phVar3->next;\n    if (*ppvVar1 == entry) {\n      if (phVar3 != (hash_entry *)0x0) {\n        return phVar3->data;\n      }\n      break;\n    }\n  } while (phVar3 != (hash_entry *)0x0);\n  do {\n    phVar4 = phVar4 + 1;\n    if (table->bucket_limit <= phVar4) {\n      return (void *)0x0;\n    }\n  } while (phVar4->data == (void *)0x0);\n  return phVar4->data;\n}" { (declaration "void **ppvVar1;" primitive_type (pointer_declarator "**ppvVar1" * (pointer_declarator "*ppvVar1" * identifier)) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "hash_entry *phVar3;" type_identifier (pointer_declarator "*phVar3" * identifier) ;) (declaration "hash_entry *phVar4;" type_identifier (pointer_declarator "*phVar4" * identifier) ;) (expression_statement "sVar2 = (*table->hasher)(entry,table->n_buckets);" (assignment_expression "sVar2 = (*table->hasher)(entry,table->n_buckets)" identifier = (call_expression "(*table->hasher)(entry,table->n_buckets)" (parenthesized_expression "(*table->hasher)" ( (pointer_expression "*table->hasher" * (field_expression "table->hasher" identifier -> field_identifier)) )) (argument_list "(entry,table->n_buckets)" ( identifier , (field_expression "table->n_buckets" identifier -> field_identifier) )))) ;) (if_statement "if (table->n_buckets <= sVar2) {\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" if (parenthesized_expression "(table->n_buckets <= sVar2)" ( (binary_expression "table->n_buckets <= sVar2" (field_expression "table->n_buckets" identifier -> field_identifier) <= identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    abort();\n  }" { comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "phVar4 = table->bucket + sVar2;" (assignment_expression "phVar4 = table->bucket + sVar2" identifier = (binary_expression "table->bucket + sVar2" (field_expression "table->bucket" identifier -> field_identifier) + identifier)) ;) (expression_statement "phVar3 = phVar4;" (assignment_expression "phVar3 = phVar4" identifier = identifier) ;) (do_statement "do {\n    ppvVar1 = &phVar3->data;\n    phVar3 = phVar3->next;\n    if (*ppvVar1 == entry) {\n      if (phVar3 != (hash_entry *)0x0) {\n        return phVar3->data;\n      }\n      break;\n    }\n  } while (phVar3 != (hash_entry *)0x0);" do (compound_statement "{\n    ppvVar1 = &phVar3->data;\n    phVar3 = phVar3->next;\n    if (*ppvVar1 == entry) {\n      if (phVar3 != (hash_entry *)0x0) {\n        return phVar3->data;\n      }\n      break;\n    }\n  }" { (expression_statement "ppvVar1 = &phVar3->data;" (assignment_expression "ppvVar1 = &phVar3->data" identifier = (pointer_expression "&phVar3->data" & (field_expression "phVar3->data" identifier -> field_identifier))) ;) (expression_statement "phVar3 = phVar3->next;" (assignment_expression "phVar3 = phVar3->next" identifier = (field_expression "phVar3->next" identifier -> field_identifier)) ;) (if_statement "if (*ppvVar1 == entry) {\n      if (phVar3 != (hash_entry *)0x0) {\n        return phVar3->data;\n      }\n      break;\n    }" if (parenthesized_expression "(*ppvVar1 == entry)" ( (binary_expression "*ppvVar1 == entry" (pointer_expression "*ppvVar1" * identifier) == identifier) )) (compound_statement "{\n      if (phVar3 != (hash_entry *)0x0) {\n        return phVar3->data;\n      }\n      break;\n    }" { (if_statement "if (phVar3 != (hash_entry *)0x0) {\n        return phVar3->data;\n      }" if (parenthesized_expression "(phVar3 != (hash_entry *)0x0)" ( (binary_expression "phVar3 != (hash_entry *)0x0" identifier != (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return phVar3->data;\n      }" { (return_statement "return phVar3->data;" return (field_expression "phVar3->data" identifier -> field_identifier) ;) })) (break_statement "break;" break ;) })) }) while (parenthesized_expression "(phVar3 != (hash_entry *)0x0)" ( (binary_expression "phVar3 != (hash_entry *)0x0" identifier != (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (do_statement "do {\n    phVar4 = phVar4 + 1;\n    if (table->bucket_limit <= phVar4) {\n      return (void *)0x0;\n    }\n  } while (phVar4->data == (void *)0x0);" do (compound_statement "{\n    phVar4 = phVar4 + 1;\n    if (table->bucket_limit <= phVar4) {\n      return (void *)0x0;\n    }\n  }" { (expression_statement "phVar4 = phVar4 + 1;" (assignment_expression "phVar4 = phVar4 + 1" identifier = (binary_expression "phVar4 + 1" identifier + number_literal)) ;) (if_statement "if (table->bucket_limit <= phVar4) {\n      return (void *)0x0;\n    }" if (parenthesized_expression "(table->bucket_limit <= phVar4)" ( (binary_expression "table->bucket_limit <= phVar4" (field_expression "table->bucket_limit" identifier -> field_identifier) <= identifier) )) (compound_statement "{\n      return (void *)0x0;\n    }" { (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) }) while (parenthesized_expression "(phVar4->data == (void *)0x0)" ( (binary_expression "phVar4->data == (void *)0x0" (field_expression "phVar4->data" identifier -> field_identifier) == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (return_statement "return phVar4->data;" return (field_expression "phVar4->data" identifier -> field_identifier) ;) })))
(translation_unit "int FUN_0001e0b0(int *param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  int *piVar4;\n  \n  uVar2 = (*(code *)param_1[6])(param_2,param_1[2]);\n  if ((uint)param_1[2] <= uVar2) {\n                    \n    abort();\n  }\n  piVar4 = (int *)(*param_1 + uVar2 * 8);\n  piVar3 = piVar4;\n  do {\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  } while (piVar3 != (int *)0x0);\n  do {\n    piVar4 = piVar4 + 2;\n    if ((int *)param_1[1] <= piVar4) {\n      return 0;\n    }\n  } while (*piVar4 == 0);\n  return *piVar4;\n}\n\n" (function_definition "int FUN_0001e0b0(int *param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  int *piVar4;\n  \n  uVar2 = (*(code *)param_1[6])(param_2,param_1[2]);\n  if ((uint)param_1[2] <= uVar2) {\n                    \n    abort();\n  }\n  piVar4 = (int *)(*param_1 + uVar2 * 8);\n  piVar3 = piVar4;\n  do {\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  } while (piVar3 != (int *)0x0);\n  do {\n    piVar4 = piVar4 + 2;\n    if ((int *)param_1[1] <= piVar4) {\n      return 0;\n    }\n  } while (*piVar4 == 0);\n  return *piVar4;\n}" primitive_type (function_declarator "FUN_0001e0b0(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  int *piVar4;\n  \n  uVar2 = (*(code *)param_1[6])(param_2,param_1[2]);\n  if ((uint)param_1[2] <= uVar2) {\n                    \n    abort();\n  }\n  piVar4 = (int *)(*param_1 + uVar2 * 8);\n  piVar3 = piVar4;\n  do {\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  } while (piVar3 != (int *)0x0);\n  do {\n    piVar4 = piVar4 + 2;\n    if ((int *)param_1[1] <= piVar4) {\n      return 0;\n    }\n  } while (*piVar4 == 0);\n  return *piVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "uVar2 = (*(code *)param_1[6])(param_2,param_1[2]);" (assignment_expression "uVar2 = (*(code *)param_1[6])(param_2,param_1[2])" identifier = (call_expression "(*(code *)param_1[6])(param_2,param_1[2])" (parenthesized_expression "(*(code *)param_1[6])" ( (pointer_expression "*(code *)param_1[6]" * (cast_expression "(code *)param_1[6]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[6]" identifier [ number_literal ]))) )) (argument_list "(param_2,param_1[2])" ( identifier , (subscript_expression "param_1[2]" identifier [ number_literal ]) )))) ;) (if_statement "if ((uint)param_1[2] <= uVar2) {\n                    \n    abort();\n  }" if (parenthesized_expression "((uint)param_1[2] <= uVar2)" ( (binary_expression "(uint)param_1[2] <= uVar2" (cast_expression "(uint)param_1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) <= identifier) )) (compound_statement "{\n                    \n    abort();\n  }" { (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "piVar4 = (int *)(*param_1 + uVar2 * 8);" (assignment_expression "piVar4 = (int *)(*param_1 + uVar2 * 8)" identifier = (cast_expression "(int *)(*param_1 + uVar2 * 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + uVar2 * 8)" ( (binary_expression "*param_1 + uVar2 * 8" (pointer_expression "*param_1" * identifier) + (binary_expression "uVar2 * 8" identifier * number_literal)) )))) ;) (expression_statement "piVar3 = piVar4;" (assignment_expression "piVar3 = piVar4" identifier = identifier) ;) (do_statement "do {\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  } while (piVar3 != (int *)0x0);" do (compound_statement "{\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  }" { (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "piVar3 = (int *)piVar3[1];" (assignment_expression "piVar3 = (int *)piVar3[1]" identifier = (cast_expression "(int *)piVar3[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) ;) (if_statement "if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }" if (parenthesized_expression "(iVar1 == param_2)" ( (binary_expression "iVar1 == param_2" identifier == identifier) )) (compound_statement "{\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }" { (if_statement "if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return *piVar3;\n      }" { (return_statement "return *piVar3;" return (pointer_expression "*piVar3" * identifier) ;) })) (break_statement "break;" break ;) })) }) while (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (do_statement "do {\n    piVar4 = piVar4 + 2;\n    if ((int *)param_1[1] <= piVar4) {\n      return 0;\n    }\n  } while (*piVar4 == 0);" do (compound_statement "{\n    piVar4 = piVar4 + 2;\n    if ((int *)param_1[1] <= piVar4) {\n      return 0;\n    }\n  }" { (expression_statement "piVar4 = piVar4 + 2;" (assignment_expression "piVar4 = piVar4 + 2" identifier = (binary_expression "piVar4 + 2" identifier + number_literal)) ;) (if_statement "if ((int *)param_1[1] <= piVar4) {\n      return 0;\n    }" if (parenthesized_expression "((int *)param_1[1] <= piVar4)" ( (binary_expression "(int *)param_1[1] <= piVar4" (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) <= identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "(*piVar4 == 0)" ( (binary_expression "*piVar4 == 0" (pointer_expression "*piVar4" * identifier) == number_literal) )) ;) (return_statement "return *piVar4;" return (pointer_expression "*piVar4" * identifier) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) <= IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return (pointer_expression * IDENT) ;) })) (break_statement break ;) })) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) <= IDENT) )) (compound_statement { (return_statement return LIT ;) })) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) ;) (return_statement return (pointer_expression * IDENT) ;) })))
(function_definition "int FUN_0001e0b0(int *param_1,int param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  int *piVar4;\n  \n  uVar2 = (*(code *)param_1[6])(param_2,param_1[2]);\n  if ((uint)param_1[2] <= uVar2) {\n                    \n    abort();\n  }\n  piVar4 = (int *)(*param_1 + uVar2 * 8);\n  piVar3 = piVar4;\n  do {\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  } while (piVar3 != (int *)0x0);\n  do {\n    piVar4 = piVar4 + 2;\n    if ((int *)param_1[1] <= piVar4) {\n      return 0;\n    }\n  } while (*piVar4 == 0);\n  return *piVar4;\n}" (primitive_type "int") (function_declarator "FUN_0001e0b0(int *param_1,int param_2)" (identifier "FUN_0001e0b0") (parameter_list "(int *param_1,int param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  int *piVar4;\n  \n  uVar2 = (*(code *)param_1[6])(param_2,param_1[2]);\n  if ((uint)param_1[2] <= uVar2) {\n                    \n    abort();\n  }\n  piVar4 = (int *)(*param_1 + uVar2 * 8);\n  piVar3 = piVar4;\n  do {\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  } while (piVar3 != (int *)0x0);\n  do {\n    piVar4 = piVar4 + 2;\n    if ((int *)param_1[1] <= piVar4) {\n      return 0;\n    }\n  } while (*piVar4 == 0);\n  return *piVar4;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (expression_statement "uVar2 = (*(code *)param_1[6])(param_2,param_1[2]);" (assignment_expression "uVar2 = (*(code *)param_1[6])(param_2,param_1[2])" (identifier "uVar2") (= "=") (call_expression "(*(code *)param_1[6])(param_2,param_1[2])" (parenthesized_expression "(*(code *)param_1[6])" (( "(") (pointer_expression "*(code *)param_1[6]" (* "*") (cast_expression "(code *)param_1[6]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")))) () ")")) (argument_list "(param_2,param_1[2])" (( "(") (identifier "param_2") (, ",") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) () ")")))) (; ";")) (if_statement "if ((uint)param_1[2] <= uVar2) {\n                    \n    abort();\n  }" (if "if") (parenthesized_expression "((uint)param_1[2] <= uVar2)" (( "(") (binary_expression "(uint)param_1[2] <= uVar2" (cast_expression "(uint)param_1[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (<= "<=") (identifier "uVar2")) () ")")) (compound_statement "{\n                    \n    abort();\n  }" ({ "{") (expression_statement "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "piVar4 = (int *)(*param_1 + uVar2 * 8);" (assignment_expression "piVar4 = (int *)(*param_1 + uVar2 * 8)" (identifier "piVar4") (= "=") (cast_expression "(int *)(*param_1 + uVar2 * 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + uVar2 * 8)" (( "(") (binary_expression "*param_1 + uVar2 * 8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (binary_expression "uVar2 * 8" (identifier "uVar2") (* "*") (number_literal "8"))) () ")")))) (; ";")) (expression_statement "piVar3 = piVar4;" (assignment_expression "piVar3 = piVar4" (identifier "piVar3") (= "=") (identifier "piVar4")) (; ";")) (do_statement "do {\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  } while (piVar3 != (int *)0x0);" (do "do") (compound_statement "{\n    iVar1 = *piVar3;\n    piVar3 = (int *)piVar3[1];\n    if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }\n  }" ({ "{") (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" (identifier "iVar1") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (expression_statement "piVar3 = (int *)piVar3[1];" (assignment_expression "piVar3 = (int *)piVar3[1]" (identifier "piVar3") (= "=") (cast_expression "(int *)piVar3[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (iVar1 == param_2) {\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }" (if "if") (parenthesized_expression "(iVar1 == param_2)" (( "(") (binary_expression "iVar1 == param_2" (identifier "iVar1") (== "==") (identifier "param_2")) () ")")) (compound_statement "{\n      if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }\n      break;\n    }" ({ "{") (if_statement "if (piVar3 != (int *)0x0) {\n        return *piVar3;\n      }" (if "if") (parenthesized_expression "(piVar3 != (int *)0x0)" (( "(") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return *piVar3;\n      }" ({ "{") (return_statement "return *piVar3;" (return "return") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(piVar3 != (int *)0x0)" (( "(") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (do_statement "do {\n    piVar4 = piVar4 + 2;\n    if ((int *)param_1[1] <= piVar4) {\n      return 0;\n    }\n  } while (*piVar4 == 0);" (do "do") (compound_statement "{\n    piVar4 = piVar4 + 2;\n    if ((int *)param_1[1] <= piVar4) {\n      return 0;\n    }\n  }" ({ "{") (expression_statement "piVar4 = piVar4 + 2;" (assignment_expression "piVar4 = piVar4 + 2" (identifier "piVar4") (= "=") (binary_expression "piVar4 + 2" (identifier "piVar4") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if ((int *)param_1[1] <= piVar4) {\n      return 0;\n    }" (if "if") (parenthesized_expression "((int *)param_1[1] <= piVar4)" (( "(") (binary_expression "(int *)param_1[1] <= piVar4" (cast_expression "(int *)param_1[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (<= "<=") (identifier "piVar4")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(*piVar4 == 0)" (( "(") (binary_expression "*piVar4 == 0" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (== "==") (number_literal "0")) () ")")) (; ";")) (return_statement "return *piVar4;" (return "return") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (} "}")))

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

void * function_1(type_1 *table,void *var_3)

{
  void **ppvVar1;
  size_t var_1;
  type_2 *var_4;
  type_2 *var_5;
  
  var_1 = (*table->hasher)(var_3,table->n_buckets);
  if (table->n_buckets <= var_1) {
                    /* WARNING: Subroutine does not return */
    var_2();
  }
  var_5 = table->bucket + var_1;
  var_4 = var_5;
  do {
    ppvVar1 = &var_4->data;
    var_4 = var_4->next;
    if (*ppvVar1 == var_3) {
      if (var_4 != (type_2 *)0x0) {
        return var_4->data;
      }
      break;
    }
  } while (var_4 != (type_2 *)0x0);
  do {
    var_5 = var_5 + 1;
    if (table->bucket_limit <= var_5) {
      return (void *)0x0;
    }
  } while (var_5->data == (void *)0x0);
  return var_5->data;
}


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

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

int MASKED(int *param_1,int param_2)

{
  int iVar1;
  uint uVar2;
  int *piVar3;
  int *piVar4;
  
  uVar2 = (*(code *)param_1[6])(param_2,param_1[2]);
  if ((uint)param_1[2] <= uVar2) {
                    /* WARNING: Subroutine does not return */
    abort();
  }
  piVar4 = (int *)(*param_1 + uVar2 * 8);
  piVar3 = piVar4;
  do {
    iVar1 = *piVar3;
    piVar3 = (int *)piVar3[1];
    if (iVar1 == param_2) {
      if (piVar3 != (int *)0x0) {
        return *piVar3;
      }
      break;
    }
  } while (piVar3 != (int *)0x0);
  do {
    piVar4 = piVar4 + 2;
    if ((int *)param_1[1] <= piVar4) {
      return 0;
    }
  } while (*piVar4 == 0);
  return *piVar4;
}

