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

void __regparm3 sqlite3Fts3HashClear(Fts3Hash *pH)

{
  Fts3HashElem *p;
  Fts3HashElem *pFVar1;
  
  p = pH->first;
  pH->first = (Fts3HashElem *)0x0;
  sqlite3_free(pH->ht);
  pH->ht = (_fts3ht *)0x0;
  pH->htsize = 0;
  while (p != (Fts3HashElem *)0x0) {
    pFVar1 = p->next;
    if ((pH->copyKey != '\0') && (p->pKey != (void *)0x0)) {
      sqlite3_free(p->pKey);
    }
    sqlite3_free(p);
    p = pFVar1;
  }
  pH->count = 0;
  return;
}



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

void __regparm3 FUN_00025fe0(int param_1)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  
  puVar1 = *(undefined4 **)(param_1 + 8);
  *(undefined4 *)(param_1 + 8) = 0;
  FUN_00024cc0(*(undefined4 *)(param_1 + 0x10));
  *(undefined4 *)(param_1 + 0x10) = 0;
  *(undefined4 *)(param_1 + 0xc) = 0;
  while (puVar1 != (undefined4 *)0x0) {
    puVar2 = (undefined4 *)*puVar1;
    if ((*(char *)(param_1 + 1) != '\0') && (puVar1[3] != 0)) {
      FUN_00024cc0(puVar1[3]);
    }
    FUN_00024cc0(puVar1);
    puVar1 = puVar2;
  }
  *(undefined4 *)(param_1 + 4) = 0;
  return;
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014cf0
ADD EBX,0x122ee9
SUB ESP,0x18
MOV ESI,dword ptr [EAX + 0x8]
MOV dword ptr [EAX + 0x8],0x0
PUSH dword ptr [EAX + 0x10]
CALL 0x00024cc0
MOV dword ptr [EBP + 0x10],0x0
ADD ESP,0x10
MOV dword ptr [EBP + 0xc],0x0
TEST ESI,ESI
JZ 0x0002604d
LEA ESI,[ESI]
NOP
CMP byte ptr [EBP + 0x1],0x0
MOV EDI,dword ptr [ESI]
JZ 0x0002603b
MOV EAX,dword ptr [ESI + 0xc]
TEST EAX,EAX
JZ 0x0002603b
SUB ESP,0xc
PUSH EAX
CALL 0x00024cc0
ADD ESP,0x10
SUB ESP,0xc
PUSH ESI
MOV ESI,EDI
CALL 0x00024cc0
ADD ESP,0x10
TEST EDI,EDI
JNZ 0x00026020
MOV dword ptr [EBP + 0x4],0x0
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00025fe0(int param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  \n  puVar1 = *(undefined4 **)(param_1 + 8);\n  *(undefined4 *)(param_1 + 8) = 0;\n  FUN_00024cc0(*(undefined4 *)(param_1 + 0x10));\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  while (puVar1 != (undefined4 *)0x0) {\n    puVar2 = (undefined4 *)*puVar1;\n    if ((*(char *)(param_1 + 1) != '\0') && (puVar1[3] != 0)) {\n      FUN_00024cc0(puVar1[3]);\n    }\n    FUN_00024cc0(puVar1);\n    puVar1 = puVar2;\n  }\n  *(undefined4 *)(param_1 + 4) = 0;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00025fe0(int param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  \n  puVar1 = *(undefined4 **)(param_1 + 8);\n  *(undefined4 *)(param_1 + 8) = 0;\n  FUN_00024cc0(*(undefined4 *)(param_1 + 0x10));\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  while (puVar1 != (undefined4 *)0x0) {\n    puVar2 = (undefined4 *)*puVar1;\n    if ((*(char *)(param_1 + 1) != '\0') && (puVar1[3] != 0)) {\n      FUN_00024cc0(puVar1[3]);\n    }\n    FUN_00024cc0(puVar1);\n    puVar1 = puVar2;\n  }\n  *(undefined4 *)(param_1 + 4) = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00025fe0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  \n  puVar1 = *(undefined4 **)(param_1 + 8);\n  *(undefined4 *)(param_1 + 8) = 0;\n  FUN_00024cc0(*(undefined4 *)(param_1 + 0x10));\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  while (puVar1 != (undefined4 *)0x0) {\n    puVar2 = (undefined4 *)*puVar1;\n    if ((*(char *)(param_1 + 1) != '\0') && (puVar1[3] != 0)) {\n      FUN_00024cc0(puVar1[3]);\n    }\n    FUN_00024cc0(puVar1);\n    puVar1 = puVar2;\n  }\n  *(undefined4 *)(param_1 + 4) = 0;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 8);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 8)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 8)" * (cast_expression "(undefined4 **)(param_1 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_00024cc0(*(undefined4 *)(param_1 + 0x10));" (call_expression "FUN_00024cc0(*(undefined4 *)(param_1 + 0x10))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (while_statement "while (puVar1 != (undefined4 *)0x0) {\n    puVar2 = (undefined4 *)*puVar1;\n    if ((*(char *)(param_1 + 1) != '\0') && (puVar1[3] != 0)) {\n      FUN_00024cc0(puVar1[3]);\n    }\n    FUN_00024cc0(puVar1);\n    puVar1 = puVar2;\n  }" while (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    puVar2 = (undefined4 *)*puVar1;\n    if ((*(char *)(param_1 + 1) != '\0') && (puVar1[3] != 0)) {\n      FUN_00024cc0(puVar1[3]);\n    }\n    FUN_00024cc0(puVar1);\n    puVar1 = puVar2;\n  }" { (expression_statement "puVar2 = (undefined4 *)*puVar1;" (assignment_expression "puVar2 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (if_statement "if ((*(char *)(param_1 + 1) != '\0') && (puVar1[3] != 0)) {\n      FUN_00024cc0(puVar1[3]);\n    }" if (parenthesized_expression "((*(char *)(param_1 + 1) != '\0') && (puVar1[3] != 0))" ( (binary_expression "(*(char *)(param_1 + 1) != '\0') && (puVar1[3] != 0)" (parenthesized_expression "(*(char *)(param_1 + 1) != '\0')" ( (binary_expression "*(char *)(param_1 + 1) != '\0'" (pointer_expression "*(char *)(param_1 + 1)" * (cast_expression "(char *)(param_1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(puVar1[3] != 0)" ( (binary_expression "puVar1[3] != 0" (subscript_expression "puVar1[3]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n      FUN_00024cc0(puVar1[3]);\n    }" { (expression_statement "FUN_00024cc0(puVar1[3]);" (call_expression "FUN_00024cc0(puVar1[3])" identifier (argument_list "(puVar1[3])" ( (subscript_expression "puVar1[3]" identifier [ number_literal ]) ))) ;) })) (expression_statement "FUN_00024cc0(puVar1);" (call_expression "FUN_00024cc0(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" identifier = identifier) ;) })) (expression_statement "*(undefined4 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 sqlite3Fts3HashClear(Fts3Hash *pH)\n\n{\n  Fts3HashElem *p;\n  Fts3HashElem *pFVar1;\n  \n  p = pH->first;\n  pH->first = (Fts3HashElem *)0x0;\n  sqlite3_free(pH->ht);\n  pH->ht = (_fts3ht *)0x0;\n  pH->htsize = 0;\n  while (p != (Fts3HashElem *)0x0) {\n    pFVar1 = p->next;\n    if ((pH->copyKey != '\0') && (p->pKey != (void *)0x0)) {\n      sqlite3_free(p->pKey);\n    }\n    sqlite3_free(p);\n    p = pFVar1;\n  }\n  pH->count = 0;\n  return;\n}\n\n" comment (function_definition "void __regparm3 sqlite3Fts3HashClear(Fts3Hash *pH)\n\n{\n  Fts3HashElem *p;\n  Fts3HashElem *pFVar1;\n  \n  p = pH->first;\n  pH->first = (Fts3HashElem *)0x0;\n  sqlite3_free(pH->ht);\n  pH->ht = (_fts3ht *)0x0;\n  pH->htsize = 0;\n  while (p != (Fts3HashElem *)0x0) {\n    pFVar1 = p->next;\n    if ((pH->copyKey != '\0') && (p->pKey != (void *)0x0)) {\n      sqlite3_free(p->pKey);\n    }\n    sqlite3_free(p);\n    p = pFVar1;\n  }\n  pH->count = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3Fts3HashClear(Fts3Hash *pH)" identifier (parameter_list "(Fts3Hash *pH)" ( (parameter_declaration "Fts3Hash *pH" type_identifier (pointer_declarator "*pH" * identifier)) ))) (compound_statement "{\n  Fts3HashElem *p;\n  Fts3HashElem *pFVar1;\n  \n  p = pH->first;\n  pH->first = (Fts3HashElem *)0x0;\n  sqlite3_free(pH->ht);\n  pH->ht = (_fts3ht *)0x0;\n  pH->htsize = 0;\n  while (p != (Fts3HashElem *)0x0) {\n    pFVar1 = p->next;\n    if ((pH->copyKey != '\0') && (p->pKey != (void *)0x0)) {\n      sqlite3_free(p->pKey);\n    }\n    sqlite3_free(p);\n    p = pFVar1;\n  }\n  pH->count = 0;\n  return;\n}" { (declaration "Fts3HashElem *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "Fts3HashElem *pFVar1;" type_identifier (pointer_declarator "*pFVar1" * identifier) ;) (expression_statement "p = pH->first;" (assignment_expression "p = pH->first" identifier = (field_expression "pH->first" identifier -> field_identifier)) ;) (expression_statement "pH->first = (Fts3HashElem *)0x0;" (assignment_expression "pH->first = (Fts3HashElem *)0x0" (field_expression "pH->first" identifier -> field_identifier) = (cast_expression "(Fts3HashElem *)0x0" ( (type_descriptor "Fts3HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sqlite3_free(pH->ht);" (call_expression "sqlite3_free(pH->ht)" identifier (argument_list "(pH->ht)" ( (field_expression "pH->ht" identifier -> field_identifier) ))) ;) (expression_statement "pH->ht = (_fts3ht *)0x0;" (assignment_expression "pH->ht = (_fts3ht *)0x0" (field_expression "pH->ht" identifier -> field_identifier) = (cast_expression "(_fts3ht *)0x0" ( (type_descriptor "_fts3ht *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pH->htsize = 0;" (assignment_expression "pH->htsize = 0" (field_expression "pH->htsize" identifier -> field_identifier) = number_literal) ;) (while_statement "while (p != (Fts3HashElem *)0x0) {\n    pFVar1 = p->next;\n    if ((pH->copyKey != '\0') && (p->pKey != (void *)0x0)) {\n      sqlite3_free(p->pKey);\n    }\n    sqlite3_free(p);\n    p = pFVar1;\n  }" while (parenthesized_expression "(p != (Fts3HashElem *)0x0)" ( (binary_expression "p != (Fts3HashElem *)0x0" identifier != (cast_expression "(Fts3HashElem *)0x0" ( (type_descriptor "Fts3HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pFVar1 = p->next;\n    if ((pH->copyKey != '\0') && (p->pKey != (void *)0x0)) {\n      sqlite3_free(p->pKey);\n    }\n    sqlite3_free(p);\n    p = pFVar1;\n  }" { (expression_statement "pFVar1 = p->next;" (assignment_expression "pFVar1 = p->next" identifier = (field_expression "p->next" identifier -> field_identifier)) ;) (if_statement "if ((pH->copyKey != '\0') && (p->pKey != (void *)0x0)) {\n      sqlite3_free(p->pKey);\n    }" if (parenthesized_expression "((pH->copyKey != '\0') && (p->pKey != (void *)0x0))" ( (binary_expression "(pH->copyKey != '\0') && (p->pKey != (void *)0x0)" (parenthesized_expression "(pH->copyKey != '\0')" ( (binary_expression "pH->copyKey != '\0'" (field_expression "pH->copyKey" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(p->pKey != (void *)0x0)" ( (binary_expression "p->pKey != (void *)0x0" (field_expression "p->pKey" identifier -> field_identifier) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      sqlite3_free(p->pKey);\n    }" { (expression_statement "sqlite3_free(p->pKey);" (call_expression "sqlite3_free(p->pKey)" identifier (argument_list "(p->pKey)" ( (field_expression "p->pKey" identifier -> field_identifier) ))) ;) })) (expression_statement "sqlite3_free(p);" (call_expression "sqlite3_free(p)" identifier (argument_list "(p)" ( identifier ))) ;) (expression_statement "p = pFVar1;" (assignment_expression "p = pFVar1" identifier = identifier) ;) })) (expression_statement "pH->count = 0;" (assignment_expression "pH->count = 0" (field_expression "pH->count" identifier -> field_identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00025fe0(int param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  \n  puVar1 = *(undefined4 **)(param_1 + 8);\n  *(undefined4 *)(param_1 + 8) = 0;\n  FUN_00024cc0(*(undefined4 *)(param_1 + 0x10));\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  while (puVar1 != (undefined4 *)0x0) {\n    puVar2 = (undefined4 *)*puVar1;\n    if ((*(char *)(param_1 + 1) != '\0') && (puVar1[3] != 0)) {\n      FUN_00024cc0(puVar1[3]);\n    }\n    FUN_00024cc0(puVar1);\n    puVar1 = puVar2;\n  }\n  *(undefined4 *)(param_1 + 4) = 0;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00025fe0(int param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  \n  puVar1 = *(undefined4 **)(param_1 + 8);\n  *(undefined4 *)(param_1 + 8) = 0;\n  FUN_00024cc0(*(undefined4 *)(param_1 + 0x10));\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  while (puVar1 != (undefined4 *)0x0) {\n    puVar2 = (undefined4 *)*puVar1;\n    if ((*(char *)(param_1 + 1) != '\0') && (puVar1[3] != 0)) {\n      FUN_00024cc0(puVar1[3]);\n    }\n    FUN_00024cc0(puVar1);\n    puVar1 = puVar2;\n  }\n  *(undefined4 *)(param_1 + 4) = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00025fe0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  \n  puVar1 = *(undefined4 **)(param_1 + 8);\n  *(undefined4 *)(param_1 + 8) = 0;\n  FUN_00024cc0(*(undefined4 *)(param_1 + 0x10));\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  while (puVar1 != (undefined4 *)0x0) {\n    puVar2 = (undefined4 *)*puVar1;\n    if ((*(char *)(param_1 + 1) != '\0') && (puVar1[3] != 0)) {\n      FUN_00024cc0(puVar1[3]);\n    }\n    FUN_00024cc0(puVar1);\n    puVar1 = puVar2;\n  }\n  *(undefined4 *)(param_1 + 4) = 0;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 8);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 8)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 8)" * (cast_expression "(undefined4 **)(param_1 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_00024cc0(*(undefined4 *)(param_1 + 0x10));" (call_expression "FUN_00024cc0(*(undefined4 *)(param_1 + 0x10))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (while_statement "while (puVar1 != (undefined4 *)0x0) {\n    puVar2 = (undefined4 *)*puVar1;\n    if ((*(char *)(param_1 + 1) != '\0') && (puVar1[3] != 0)) {\n      FUN_00024cc0(puVar1[3]);\n    }\n    FUN_00024cc0(puVar1);\n    puVar1 = puVar2;\n  }" while (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    puVar2 = (undefined4 *)*puVar1;\n    if ((*(char *)(param_1 + 1) != '\0') && (puVar1[3] != 0)) {\n      FUN_00024cc0(puVar1[3]);\n    }\n    FUN_00024cc0(puVar1);\n    puVar1 = puVar2;\n  }" { (expression_statement "puVar2 = (undefined4 *)*puVar1;" (assignment_expression "puVar2 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (if_statement "if ((*(char *)(param_1 + 1) != '\0') && (puVar1[3] != 0)) {\n      FUN_00024cc0(puVar1[3]);\n    }" if (parenthesized_expression "((*(char *)(param_1 + 1) != '\0') && (puVar1[3] != 0))" ( (binary_expression "(*(char *)(param_1 + 1) != '\0') && (puVar1[3] != 0)" (parenthesized_expression "(*(char *)(param_1 + 1) != '\0')" ( (binary_expression "*(char *)(param_1 + 1) != '\0'" (pointer_expression "*(char *)(param_1 + 1)" * (cast_expression "(char *)(param_1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(puVar1[3] != 0)" ( (binary_expression "puVar1[3] != 0" (subscript_expression "puVar1[3]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n      FUN_00024cc0(puVar1[3]);\n    }" { (expression_statement "FUN_00024cc0(puVar1[3]);" (call_expression "FUN_00024cc0(puVar1[3])" identifier (argument_list "(puVar1[3])" ( (subscript_expression "puVar1[3]" identifier [ number_literal ]) ))) ;) })) (expression_statement "FUN_00024cc0(puVar1);" (call_expression "FUN_00024cc0(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" identifier = identifier) ;) })) (expression_statement "*(undefined4 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (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 IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00025fe0(int param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  \n  puVar1 = *(undefined4 **)(param_1 + 8);\n  *(undefined4 *)(param_1 + 8) = 0;\n  FUN_00024cc0(*(undefined4 *)(param_1 + 0x10));\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  while (puVar1 != (undefined4 *)0x0) {\n    puVar2 = (undefined4 *)*puVar1;\n    if ((*(char *)(param_1 + 1) != '\0') && (puVar1[3] != 0)) {\n      FUN_00024cc0(puVar1[3]);\n    }\n    FUN_00024cc0(puVar1);\n    puVar1 = puVar2;\n  }\n  *(undefined4 *)(param_1 + 4) = 0;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00025fe0(int param_1)" (identifier "FUN_00025fe0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  \n  puVar1 = *(undefined4 **)(param_1 + 8);\n  *(undefined4 *)(param_1 + 8) = 0;\n  FUN_00024cc0(*(undefined4 *)(param_1 + 0x10));\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  *(undefined4 *)(param_1 + 0xc) = 0;\n  while (puVar1 != (undefined4 *)0x0) {\n    puVar2 = (undefined4 *)*puVar1;\n    if ((*(char *)(param_1 + 1) != '\0') && (puVar1[3] != 0)) {\n      FUN_00024cc0(puVar1[3]);\n    }\n    FUN_00024cc0(puVar1);\n    puVar1 = puVar2;\n  }\n  *(undefined4 *)(param_1 + 4) = 0;\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 8);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 8)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 8)" (* "*") (cast_expression "(undefined4 **)(param_1 + 8)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_00024cc0(*(undefined4 *)(param_1 + 0x10));" (call_expression "FUN_00024cc0(*(undefined4 *)(param_1 + 0x10))" (identifier "FUN_00024cc0") (argument_list "(*(undefined4 *)(param_1 + 0x10))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (while_statement "while (puVar1 != (undefined4 *)0x0) {\n    puVar2 = (undefined4 *)*puVar1;\n    if ((*(char *)(param_1 + 1) != '\0') && (puVar1[3] != 0)) {\n      FUN_00024cc0(puVar1[3]);\n    }\n    FUN_00024cc0(puVar1);\n    puVar1 = puVar2;\n  }" (while "while") (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    puVar2 = (undefined4 *)*puVar1;\n    if ((*(char *)(param_1 + 1) != '\0') && (puVar1[3] != 0)) {\n      FUN_00024cc0(puVar1[3]);\n    }\n    FUN_00024cc0(puVar1);\n    puVar1 = puVar2;\n  }" ({ "{") (expression_statement "puVar2 = (undefined4 *)*puVar1;" (assignment_expression "puVar2 = (undefined4 *)*puVar1" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)*puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (if_statement "if ((*(char *)(param_1 + 1) != '\0') && (puVar1[3] != 0)) {\n      FUN_00024cc0(puVar1[3]);\n    }" (if "if") (parenthesized_expression "((*(char *)(param_1 + 1) != '\0') && (puVar1[3] != 0))" (( "(") (binary_expression "(*(char *)(param_1 + 1) != '\0') && (puVar1[3] != 0)" (parenthesized_expression "(*(char *)(param_1 + 1) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 1) != '\0'" (pointer_expression "*(char *)(param_1 + 1)" (* "*") (cast_expression "(char *)(param_1 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(puVar1[3] != 0)" (( "(") (binary_expression "puVar1[3] != 0" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      FUN_00024cc0(puVar1[3]);\n    }" ({ "{") (expression_statement "FUN_00024cc0(puVar1[3]);" (call_expression "FUN_00024cc0(puVar1[3])" (identifier "FUN_00024cc0") (argument_list "(puVar1[3])" (( "(") (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00024cc0(puVar1);" (call_expression "FUN_00024cc0(puVar1)" (identifier "FUN_00024cc0") (argument_list "(puVar1)" (( "(") (identifier "puVar1") () ")"))) (; ";")) (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" (identifier "puVar1") (= "=") (identifier "puVar2")) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *pH)

{
  type_2 *var_2;
  type_2 *pFVar1;
  
  var_2 = pH->first;
  pH->first = (type_2 *)0x0;
  var_1(pH->ht);
  pH->ht = (type_3 *)0x0;
  pH->htsize = 0;
  while (var_2 != (type_2 *)0x0) {
    pFVar1 = var_2->next;
    if ((pH->copyKey != '\0') && (var_2->pKey != (void *)0x0)) {
      var_1(var_2->pKey);
    }
    var_1(var_2);
    var_2 = pFVar1;
  }
  pH->count = 0;
  return;
}


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

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

void __regparm3 MASKED(int param_1)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  
  puVar1 = *(undefined4 **)(param_1 + 8);
  *(undefined4 *)(param_1 + 8) = 0;
  FUN_00024cc0(*(undefined4 *)(param_1 + 0x10));
  *(undefined4 *)(param_1 + 0x10) = 0;
  *(undefined4 *)(param_1 + 0xc) = 0;
  while (puVar1 != (undefined4 *)0x0) {
    puVar2 = (undefined4 *)*puVar1;
    if ((*(char *)(param_1 + 1) != '\0') && (puVar1[3] != 0)) {
      FUN_00024cc0(puVar1[3]);
    }
    FUN_00024cc0(puVar1);
    puVar1 = puVar2;
  }
  *(undefined4 *)(param_1 + 4) = 0;
  return;
}

