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

config * Configtable_find(config *key)

{
  int iVar1;
  s_x4node *psVar2;
  config *pcVar3;
  
  pcVar3 = (config *)x4a;
  if (x4a != (s_x4 *)0x0) {
    iVar1 = key->rp->index;
    psVar2 = x4a->ht[x4a->size - 1U & iVar1 * 0x25 + key->dot];
    while( true ) {
      if (psVar2 == (s_x4node *)0x0) {
        return (config *)0x0;
      }
      pcVar3 = psVar2->data;
      if ((iVar1 == pcVar3->rp->index) && (key->dot == pcVar3->dot)) break;
      psVar2 = psVar2->next;
    }
  }
  return pcVar3;
}



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

int * FUN_0001c820(int *param_1)

{
  undefined4 *puVar1;
  int *piVar2;
  
  piVar2 = DAT_000251a0;
  if (DAT_000251a0 != (int *)0x0) {
    puVar1 = *(undefined4 **)
              (DAT_000251a0[3] +
              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4);
    while( true ) {
      if (puVar1 == (undefined4 *)0x0) {
        return (int *)0x0;
      }
      piVar2 = (int *)*puVar1;
      if ((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))
      break;
      puVar1 = (undefined4 *)puVar1[1];
    }
  }
  return piVar2;
}


CALL 0x0001d174
ADD EAX,0x871b
PUSH ESI
PUSH EBX
MOV EDX,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [EAX + 0x260]
TEST EAX,EAX
JZ 0x0001c875
MOV ECX,dword ptr [EDX]
MOV ESI,dword ptr [EDX + 0x4]
MOV EBX,dword ptr [ECX + 0x38]
MOV ECX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0xc]
LEA EDX,[ECX + -0x1]
LEA ECX,[EBX + EBX*0x8]
LEA ECX,[EBX + ECX*0x4]
ADD ECX,ESI
AND EDX,ECX
MOV EDX,dword ptr [EAX + EDX*0x4]
TEST EDX,EDX
JNZ 0x0001c867
JMP 0x0001c880
MOV EDX,dword ptr [EDX + 0x4]
TEST EDX,EDX
JZ 0x0001c880
MOV EAX,dword ptr [EDX]
MOV ECX,dword ptr [EAX]
CMP EBX,dword ptr [ECX + 0x38]
JNZ 0x0001c860
CMP ESI,dword ptr [EAX + 0x4]
JNZ 0x0001c860
POP EBX
POP ESI
RET
XOR EAX,EAX
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nint * FUN_0001c820(int *param_1)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  \n  piVar2 = DAT_000251a0;\n  if (DAT_000251a0 != (int *)0x0) {\n    puVar1 = *(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return (int *)0x0;\n      }\n      piVar2 = (int *)*puVar1;\n      if ((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))\n      break;\n      puVar1 = (undefined4 *)puVar1[1];\n    }\n  }\n  return piVar2;\n}\n\n" comment (function_definition "int * FUN_0001c820(int *param_1)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  \n  piVar2 = DAT_000251a0;\n  if (DAT_000251a0 != (int *)0x0) {\n    puVar1 = *(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return (int *)0x0;\n      }\n      piVar2 = (int *)*puVar1;\n      if ((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))\n      break;\n      puVar1 = (undefined4 *)puVar1[1];\n    }\n  }\n  return piVar2;\n}" primitive_type (pointer_declarator "* FUN_0001c820(int *param_1)" * (function_declarator "FUN_0001c820(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  \n  piVar2 = DAT_000251a0;\n  if (DAT_000251a0 != (int *)0x0) {\n    puVar1 = *(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return (int *)0x0;\n      }\n      piVar2 = (int *)*puVar1;\n      if ((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))\n      break;\n      puVar1 = (undefined4 *)puVar1[1];\n    }\n  }\n  return piVar2;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (expression_statement "piVar2 = DAT_000251a0;" (assignment_expression "piVar2 = DAT_000251a0" identifier = identifier) ;) (if_statement "if (DAT_000251a0 != (int *)0x0) {\n    puVar1 = *(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return (int *)0x0;\n      }\n      piVar2 = (int *)*puVar1;\n      if ((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))\n      break;\n      puVar1 = (undefined4 *)puVar1[1];\n    }\n  }" if (parenthesized_expression "(DAT_000251a0 != (int *)0x0)" ( (binary_expression "DAT_000251a0 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1 = *(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return (int *)0x0;\n      }\n      piVar2 = (int *)*puVar1;\n      if ((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))\n      break;\n      puVar1 = (undefined4 *)puVar1[1];\n    }\n  }" { (expression_statement "puVar1 = *(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4);" (assignment_expression "puVar1 = *(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4)" identifier = (pointer_expression "*(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4)" * (cast_expression "(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4)" ( (binary_expression "DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4" (subscript_expression "DAT_000251a0[3]" identifier [ number_literal ]) + (binary_expression "(*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4" (parenthesized_expression "(*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1])" ( (binary_expression "*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]" (binary_expression "*DAT_000251a0 - 1U" (pointer_expression "*DAT_000251a0" * identifier) - number_literal) & (binary_expression "*(int *)(*param_1 + 0x38) * 0x25 + param_1[1]" (binary_expression "*(int *)(*param_1 + 0x38) * 0x25" (pointer_expression "*(int *)(*param_1 + 0x38)" * (cast_expression "(int *)(*param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x38)" ( (binary_expression "*param_1 + 0x38" (pointer_expression "*param_1" * identifier) + number_literal) )))) * number_literal) + (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) * number_literal)) ))))) ;) (while_statement "while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return (int *)0x0;\n      }\n      piVar2 = (int *)*puVar1;\n      if ((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))\n      break;\n      puVar1 = (undefined4 *)puVar1[1];\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (puVar1 == (undefined4 *)0x0) {\n        return (int *)0x0;\n      }\n      piVar2 = (int *)*puVar1;\n      if ((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))\n      break;\n      puVar1 = (undefined4 *)puVar1[1];\n    }" { (if_statement "if (puVar1 == (undefined4 *)0x0) {\n        return (int *)0x0;\n      }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return (int *)0x0;\n      }" { (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "piVar2 = (int *)*puVar1;" (assignment_expression "piVar2 = (int *)*puVar1" identifier = (cast_expression "(int *)*puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (if_statement "if ((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))\n      break;" if (parenthesized_expression "((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))" ( (binary_expression "(*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1])" (parenthesized_expression "(*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38))" ( (binary_expression "*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)" (pointer_expression "*(int *)(*param_1 + 0x38)" * (cast_expression "(int *)(*param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x38)" ( (binary_expression "*param_1 + 0x38" (pointer_expression "*param_1" * identifier) + number_literal) )))) == (pointer_expression "*(int *)(*piVar2 + 0x38)" * (cast_expression "(int *)(*piVar2 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + 0x38)" ( (binary_expression "*piVar2 + 0x38" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) && (parenthesized_expression "(param_1[1] == piVar2[1])" ( (binary_expression "param_1[1] == piVar2[1]" (subscript_expression "param_1[1]" identifier [ number_literal ]) == (subscript_expression "piVar2[1]" identifier [ number_literal ])) ))) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = (undefined4 *)puVar1[1];" (assignment_expression "puVar1 = (undefined4 *)puVar1[1]" identifier = (cast_expression "(undefined4 *)puVar1[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ]))) ;) })) })) (return_statement "return piVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Unknown calling convention */\n\nconfig * Configtable_find(config *key)\n\n{\n  int iVar1;\n  s_x4node *psVar2;\n  config *pcVar3;\n  \n  pcVar3 = (config *)x4a;\n  if (x4a != (s_x4 *)0x0) {\n    iVar1 = key->rp->index;\n    psVar2 = x4a->ht[x4a->size - 1U & iVar1 * 0x25 + key->dot];\n    while( true ) {\n      if (psVar2 == (s_x4node *)0x0) {\n        return (config *)0x0;\n      }\n      pcVar3 = psVar2->data;\n      if ((iVar1 == pcVar3->rp->index) && (key->dot == pcVar3->dot)) break;\n      psVar2 = psVar2->next;\n    }\n  }\n  return pcVar3;\n}\n\n" comment comment (function_definition "config * Configtable_find(config *key)\n\n{\n  int iVar1;\n  s_x4node *psVar2;\n  config *pcVar3;\n  \n  pcVar3 = (config *)x4a;\n  if (x4a != (s_x4 *)0x0) {\n    iVar1 = key->rp->index;\n    psVar2 = x4a->ht[x4a->size - 1U & iVar1 * 0x25 + key->dot];\n    while( true ) {\n      if (psVar2 == (s_x4node *)0x0) {\n        return (config *)0x0;\n      }\n      pcVar3 = psVar2->data;\n      if ((iVar1 == pcVar3->rp->index) && (key->dot == pcVar3->dot)) break;\n      psVar2 = psVar2->next;\n    }\n  }\n  return pcVar3;\n}" type_identifier (pointer_declarator "* Configtable_find(config *key)" * (function_declarator "Configtable_find(config *key)" identifier (parameter_list "(config *key)" ( (parameter_declaration "config *key" type_identifier (pointer_declarator "*key" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  s_x4node *psVar2;\n  config *pcVar3;\n  \n  pcVar3 = (config *)x4a;\n  if (x4a != (s_x4 *)0x0) {\n    iVar1 = key->rp->index;\n    psVar2 = x4a->ht[x4a->size - 1U & iVar1 * 0x25 + key->dot];\n    while( true ) {\n      if (psVar2 == (s_x4node *)0x0) {\n        return (config *)0x0;\n      }\n      pcVar3 = psVar2->data;\n      if ((iVar1 == pcVar3->rp->index) && (key->dot == pcVar3->dot)) break;\n      psVar2 = psVar2->next;\n    }\n  }\n  return pcVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "s_x4node *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (declaration "config *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "pcVar3 = (config *)x4a;" (assignment_expression "pcVar3 = (config *)x4a" identifier = (cast_expression "(config *)x4a" ( (type_descriptor "config *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (x4a != (s_x4 *)0x0) {\n    iVar1 = key->rp->index;\n    psVar2 = x4a->ht[x4a->size - 1U & iVar1 * 0x25 + key->dot];\n    while( true ) {\n      if (psVar2 == (s_x4node *)0x0) {\n        return (config *)0x0;\n      }\n      pcVar3 = psVar2->data;\n      if ((iVar1 == pcVar3->rp->index) && (key->dot == pcVar3->dot)) break;\n      psVar2 = psVar2->next;\n    }\n  }" if (parenthesized_expression "(x4a != (s_x4 *)0x0)" ( (binary_expression "x4a != (s_x4 *)0x0" identifier != (cast_expression "(s_x4 *)0x0" ( (type_descriptor "s_x4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = key->rp->index;\n    psVar2 = x4a->ht[x4a->size - 1U & iVar1 * 0x25 + key->dot];\n    while( true ) {\n      if (psVar2 == (s_x4node *)0x0) {\n        return (config *)0x0;\n      }\n      pcVar3 = psVar2->data;\n      if ((iVar1 == pcVar3->rp->index) && (key->dot == pcVar3->dot)) break;\n      psVar2 = psVar2->next;\n    }\n  }" { (expression_statement "iVar1 = key->rp->index;" (assignment_expression "iVar1 = key->rp->index" identifier = (field_expression "key->rp->index" (field_expression "key->rp" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "psVar2 = x4a->ht[x4a->size - 1U & iVar1 * 0x25 + key->dot];" (assignment_expression "psVar2 = x4a->ht[x4a->size - 1U & iVar1 * 0x25 + key->dot]" identifier = (subscript_expression "x4a->ht[x4a->size - 1U & iVar1 * 0x25 + key->dot]" (field_expression "x4a->ht" identifier -> field_identifier) [ (binary_expression "x4a->size - 1U & iVar1 * 0x25 + key->dot" (binary_expression "x4a->size - 1U" (field_expression "x4a->size" identifier -> field_identifier) - number_literal) & (binary_expression "iVar1 * 0x25 + key->dot" (binary_expression "iVar1 * 0x25" identifier * number_literal) + (field_expression "key->dot" identifier -> field_identifier))) ])) ;) (while_statement "while( true ) {\n      if (psVar2 == (s_x4node *)0x0) {\n        return (config *)0x0;\n      }\n      pcVar3 = psVar2->data;\n      if ((iVar1 == pcVar3->rp->index) && (key->dot == pcVar3->dot)) break;\n      psVar2 = psVar2->next;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (psVar2 == (s_x4node *)0x0) {\n        return (config *)0x0;\n      }\n      pcVar3 = psVar2->data;\n      if ((iVar1 == pcVar3->rp->index) && (key->dot == pcVar3->dot)) break;\n      psVar2 = psVar2->next;\n    }" { (if_statement "if (psVar2 == (s_x4node *)0x0) {\n        return (config *)0x0;\n      }" if (parenthesized_expression "(psVar2 == (s_x4node *)0x0)" ( (binary_expression "psVar2 == (s_x4node *)0x0" identifier == (cast_expression "(s_x4node *)0x0" ( (type_descriptor "s_x4node *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return (config *)0x0;\n      }" { (return_statement "return (config *)0x0;" return (cast_expression "(config *)0x0" ( (type_descriptor "config *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pcVar3 = psVar2->data;" (assignment_expression "pcVar3 = psVar2->data" identifier = (field_expression "psVar2->data" identifier -> field_identifier)) ;) (if_statement "if ((iVar1 == pcVar3->rp->index) && (key->dot == pcVar3->dot)) break;" if (parenthesized_expression "((iVar1 == pcVar3->rp->index) && (key->dot == pcVar3->dot))" ( (binary_expression "(iVar1 == pcVar3->rp->index) && (key->dot == pcVar3->dot)" (parenthesized_expression "(iVar1 == pcVar3->rp->index)" ( (binary_expression "iVar1 == pcVar3->rp->index" identifier == (field_expression "pcVar3->rp->index" (field_expression "pcVar3->rp" identifier -> field_identifier) -> field_identifier)) )) && (parenthesized_expression "(key->dot == pcVar3->dot)" ( (binary_expression "key->dot == pcVar3->dot" (field_expression "key->dot" identifier -> field_identifier) == (field_expression "pcVar3->dot" identifier -> field_identifier)) ))) )) (break_statement "break;" break ;)) (expression_statement "psVar2 = psVar2->next;" (assignment_expression "psVar2 = psVar2->next" identifier = (field_expression "psVar2->next" identifier -> field_identifier)) ;) })) })) (return_statement "return pcVar3;" return identifier ;) })))
(translation_unit "int * FUN_0001c820(int *param_1)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  \n  piVar2 = DAT_000251a0;\n  if (DAT_000251a0 != (int *)0x0) {\n    puVar1 = *(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return (int *)0x0;\n      }\n      piVar2 = (int *)*puVar1;\n      if ((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))\n      break;\n      puVar1 = (undefined4 *)puVar1[1];\n    }\n  }\n  return piVar2;\n}\n\n" (function_definition "int * FUN_0001c820(int *param_1)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  \n  piVar2 = DAT_000251a0;\n  if (DAT_000251a0 != (int *)0x0) {\n    puVar1 = *(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return (int *)0x0;\n      }\n      piVar2 = (int *)*puVar1;\n      if ((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))\n      break;\n      puVar1 = (undefined4 *)puVar1[1];\n    }\n  }\n  return piVar2;\n}" primitive_type (pointer_declarator "* FUN_0001c820(int *param_1)" * (function_declarator "FUN_0001c820(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  \n  piVar2 = DAT_000251a0;\n  if (DAT_000251a0 != (int *)0x0) {\n    puVar1 = *(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return (int *)0x0;\n      }\n      piVar2 = (int *)*puVar1;\n      if ((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))\n      break;\n      puVar1 = (undefined4 *)puVar1[1];\n    }\n  }\n  return piVar2;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (expression_statement "piVar2 = DAT_000251a0;" (assignment_expression "piVar2 = DAT_000251a0" identifier = identifier) ;) (if_statement "if (DAT_000251a0 != (int *)0x0) {\n    puVar1 = *(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return (int *)0x0;\n      }\n      piVar2 = (int *)*puVar1;\n      if ((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))\n      break;\n      puVar1 = (undefined4 *)puVar1[1];\n    }\n  }" if (parenthesized_expression "(DAT_000251a0 != (int *)0x0)" ( (binary_expression "DAT_000251a0 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1 = *(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return (int *)0x0;\n      }\n      piVar2 = (int *)*puVar1;\n      if ((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))\n      break;\n      puVar1 = (undefined4 *)puVar1[1];\n    }\n  }" { (expression_statement "puVar1 = *(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4);" (assignment_expression "puVar1 = *(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4)" identifier = (pointer_expression "*(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4)" * (cast_expression "(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4)" ( (binary_expression "DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4" (subscript_expression "DAT_000251a0[3]" identifier [ number_literal ]) + (binary_expression "(*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4" (parenthesized_expression "(*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1])" ( (binary_expression "*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]" (binary_expression "*DAT_000251a0 - 1U" (pointer_expression "*DAT_000251a0" * identifier) - number_literal) & (binary_expression "*(int *)(*param_1 + 0x38) * 0x25 + param_1[1]" (binary_expression "*(int *)(*param_1 + 0x38) * 0x25" (pointer_expression "*(int *)(*param_1 + 0x38)" * (cast_expression "(int *)(*param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x38)" ( (binary_expression "*param_1 + 0x38" (pointer_expression "*param_1" * identifier) + number_literal) )))) * number_literal) + (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) * number_literal)) ))))) ;) (while_statement "while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return (int *)0x0;\n      }\n      piVar2 = (int *)*puVar1;\n      if ((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))\n      break;\n      puVar1 = (undefined4 *)puVar1[1];\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (puVar1 == (undefined4 *)0x0) {\n        return (int *)0x0;\n      }\n      piVar2 = (int *)*puVar1;\n      if ((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))\n      break;\n      puVar1 = (undefined4 *)puVar1[1];\n    }" { (if_statement "if (puVar1 == (undefined4 *)0x0) {\n        return (int *)0x0;\n      }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return (int *)0x0;\n      }" { (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "piVar2 = (int *)*puVar1;" (assignment_expression "piVar2 = (int *)*puVar1" identifier = (cast_expression "(int *)*puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (if_statement "if ((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))\n      break;" if (parenthesized_expression "((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))" ( (binary_expression "(*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1])" (parenthesized_expression "(*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38))" ( (binary_expression "*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)" (pointer_expression "*(int *)(*param_1 + 0x38)" * (cast_expression "(int *)(*param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x38)" ( (binary_expression "*param_1 + 0x38" (pointer_expression "*param_1" * identifier) + number_literal) )))) == (pointer_expression "*(int *)(*piVar2 + 0x38)" * (cast_expression "(int *)(*piVar2 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar2 + 0x38)" ( (binary_expression "*piVar2 + 0x38" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) && (parenthesized_expression "(param_1[1] == piVar2[1])" ( (binary_expression "param_1[1] == piVar2[1]" (subscript_expression "param_1[1]" identifier [ number_literal ]) == (subscript_expression "piVar2[1]" identifier [ number_literal ])) ))) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = (undefined4 *)puVar1[1];" (assignment_expression "puVar1 = (undefined4 *)puVar1[1]" identifier = (cast_expression "(undefined4 *)puVar1[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ]))) ;) })) })) (return_statement "return piVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) - LIT) & (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) * LIT) + (subscript_expression IDENT [ LIT ]))) )) * LIT)) ))))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (subscript_expression IDENT [ LIT ])) ))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "int * FUN_0001c820(int *param_1)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  \n  piVar2 = DAT_000251a0;\n  if (DAT_000251a0 != (int *)0x0) {\n    puVar1 = *(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return (int *)0x0;\n      }\n      piVar2 = (int *)*puVar1;\n      if ((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))\n      break;\n      puVar1 = (undefined4 *)puVar1[1];\n    }\n  }\n  return piVar2;\n}" (primitive_type "int") (pointer_declarator "* FUN_0001c820(int *param_1)" (* "*") (function_declarator "FUN_0001c820(int *param_1)" (identifier "FUN_0001c820") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  \n  piVar2 = DAT_000251a0;\n  if (DAT_000251a0 != (int *)0x0) {\n    puVar1 = *(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return (int *)0x0;\n      }\n      piVar2 = (int *)*puVar1;\n      if ((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))\n      break;\n      puVar1 = (undefined4 *)puVar1[1];\n    }\n  }\n  return piVar2;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (expression_statement "piVar2 = DAT_000251a0;" (assignment_expression "piVar2 = DAT_000251a0" (identifier "piVar2") (= "=") (identifier "DAT_000251a0")) (; ";")) (if_statement "if (DAT_000251a0 != (int *)0x0) {\n    puVar1 = *(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return (int *)0x0;\n      }\n      piVar2 = (int *)*puVar1;\n      if ((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))\n      break;\n      puVar1 = (undefined4 *)puVar1[1];\n    }\n  }" (if "if") (parenthesized_expression "(DAT_000251a0 != (int *)0x0)" (( "(") (binary_expression "DAT_000251a0 != (int *)0x0" (identifier "DAT_000251a0") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    puVar1 = *(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return (int *)0x0;\n      }\n      piVar2 = (int *)*puVar1;\n      if ((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))\n      break;\n      puVar1 = (undefined4 *)puVar1[1];\n    }\n  }" ({ "{") (expression_statement "puVar1 = *(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4);" (assignment_expression "puVar1 = *(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4)" (* "*") (cast_expression "(undefined4 **)\n              (DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4)" (( "(") (binary_expression "DAT_000251a0[3] +\n              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4" (subscript_expression "DAT_000251a0[3]" (identifier "DAT_000251a0") ([ "[") (number_literal "3") (] "]")) (+ "+") (binary_expression "(*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4" (parenthesized_expression "(*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1])" (( "(") (binary_expression "*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]" (binary_expression "*DAT_000251a0 - 1U" (pointer_expression "*DAT_000251a0" (* "*") (identifier "DAT_000251a0")) (- "-") (number_literal "1U")) (& "&") (binary_expression "*(int *)(*param_1 + 0x38) * 0x25 + param_1[1]" (binary_expression "*(int *)(*param_1 + 0x38) * 0x25" (pointer_expression "*(int *)(*param_1 + 0x38)" (* "*") (cast_expression "(int *)(*param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x38)" (( "(") (binary_expression "*param_1 + 0x38" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x38")) () ")")))) (* "*") (number_literal "0x25")) (+ "+") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (* "*") (number_literal "4"))) () ")"))))) (; ";")) (while_statement "while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        return (int *)0x0;\n      }\n      piVar2 = (int *)*puVar1;\n      if ((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))\n      break;\n      puVar1 = (undefined4 *)puVar1[1];\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if (puVar1 == (undefined4 *)0x0) {\n        return (int *)0x0;\n      }\n      piVar2 = (int *)*puVar1;\n      if ((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))\n      break;\n      puVar1 = (undefined4 *)puVar1[1];\n    }" ({ "{") (if_statement "if (puVar1 == (undefined4 *)0x0) {\n        return (int *)0x0;\n      }" (if "if") (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 == (undefined4 *)0x0" (identifier "puVar1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return (int *)0x0;\n      }" ({ "{") (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "piVar2 = (int *)*puVar1;" (assignment_expression "piVar2 = (int *)*puVar1" (identifier "piVar2") (= "=") (cast_expression "(int *)*puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (if_statement "if ((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))\n      break;" (if "if") (parenthesized_expression "((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))" (( "(") (binary_expression "(*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1])" (parenthesized_expression "(*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38))" (( "(") (binary_expression "*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)" (pointer_expression "*(int *)(*param_1 + 0x38)" (* "*") (cast_expression "(int *)(*param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x38)" (( "(") (binary_expression "*param_1 + 0x38" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x38")) () ")")))) (== "==") (pointer_expression "*(int *)(*piVar2 + 0x38)" (* "*") (cast_expression "(int *)(*piVar2 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar2 + 0x38)" (( "(") (binary_expression "*piVar2 + 0x38" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "0x38")) () ")"))))) () ")")) (&& "&&") (parenthesized_expression "(param_1[1] == piVar2[1])" (( "(") (binary_expression "param_1[1] == piVar2[1]" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]"))) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "puVar1 = (undefined4 *)puVar1[1];" (assignment_expression "puVar1 = (undefined4 *)puVar1[1]" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)puVar1[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (} "}"))) (} "}"))) (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}")))

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

type_1 * function_1(type_1 *key)

{
  int var_2;
  type_2 *var_3;
  type_1 *pcVar3;
  
  pcVar3 = (type_1 *)var_1;
  if (var_1 != (type_3 *)0x0) {
    var_2 = key->rp->index;
    var_3 = var_1->ht[var_1->size - 1U & var_2 * 0x25 + key->dot];
    while( true ) {
      if (var_3 == (type_2 *)0x0) {
        return (type_1 *)0x0;
      }
      pcVar3 = var_3->data;
      if ((var_2 == pcVar3->rp->index) && (key->dot == pcVar3->dot)) break;
      var_3 = var_3->next;
    }
  }
  return pcVar3;
}


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

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

int * MASKED(int *param_1)

{
  undefined4 *puVar1;
  int *piVar2;
  
  piVar2 = DAT_000251a0;
  if (DAT_000251a0 != (int *)0x0) {
    puVar1 = *(undefined4 **)
              (DAT_000251a0[3] +
              (*DAT_000251a0 - 1U & *(int *)(*param_1 + 0x38) * 0x25 + param_1[1]) * 4);
    while( true ) {
      if (puVar1 == (undefined4 *)0x0) {
        return (int *)0x0;
      }
      piVar2 = (int *)*puVar1;
      if ((*(int *)(*param_1 + 0x38) == *(int *)(*piVar2 + 0x38)) && (param_1[1] == piVar2[1]))
      break;
      puVar1 = (undefined4 *)puVar1[1];
    }
  }
  return piVar2;
}

