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

void assoc_remove(HASH_TABLE *hash,char *string)

{
  BUCKET_CONTENTS *__ptr;
  
  __ptr = hash_remove(string,hash,0);
  if (__ptr != (BUCKET_CONTENTS *)0x0) {
    free(__ptr->data);
    free(__ptr->key);
    free(__ptr);
  }
  return;
}



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

void assoc_remove(undefined4 param_1,undefined4 param_2)

{
  void *__ptr;
  
  __ptr = (void *)hash_remove(param_2,param_1,0);
  if (__ptr != (void *)0x0) {
    free(*(void **)((int)__ptr + 8));
    free(*(void **)((int)__ptr + 4));
    free(__ptr);
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00031ed0
ADD EBX,0xc44c9
SUB ESP,0x8
PUSH 0x0
PUSH dword ptr [ESP + 0x18]
PUSH dword ptr [ESP + 0x20]
CALL 0x00079cb0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00085b77
SUB ESP,0xc
PUSH dword ptr [EAX + 0x8]
MOV ESI,EAX
CALL 0x0002f200
POP EAX
PUSH dword ptr [ESI + 0x4]
CALL 0x0002f200
MOV dword ptr [ESP],ESI
CALL 0x0002f200
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid assoc_remove(undefined4 param_1,undefined4 param_2)\n\n{\n  void *__ptr;\n  \n  __ptr = (void *)hash_remove(param_2,param_1,0);\n  if (__ptr != (void *)0x0) {\n    free(*(void **)((int)__ptr + 8));\n    free(*(void **)((int)__ptr + 4));\n    free(__ptr);\n  }\n  return;\n}\n\n" comment (function_definition "void assoc_remove(undefined4 param_1,undefined4 param_2)\n\n{\n  void *__ptr;\n  \n  __ptr = (void *)hash_remove(param_2,param_1,0);\n  if (__ptr != (void *)0x0) {\n    free(*(void **)((int)__ptr + 8));\n    free(*(void **)((int)__ptr + 4));\n    free(__ptr);\n  }\n  return;\n}" primitive_type (function_declarator "assoc_remove(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  void *__ptr;\n  \n  __ptr = (void *)hash_remove(param_2,param_1,0);\n  if (__ptr != (void *)0x0) {\n    free(*(void **)((int)__ptr + 8));\n    free(*(void **)((int)__ptr + 4));\n    free(__ptr);\n  }\n  return;\n}" { (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (expression_statement "__ptr = (void *)hash_remove(param_2,param_1,0);" (assignment_expression "__ptr = (void *)hash_remove(param_2,param_1,0)" identifier = (cast_expression "(void *)hash_remove(param_2,param_1,0)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "hash_remove(param_2,param_1,0)" identifier (argument_list "(param_2,param_1,0)" ( identifier , identifier , number_literal ))))) ;) (if_statement "if (__ptr != (void *)0x0) {\n    free(*(void **)((int)__ptr + 8));\n    free(*(void **)((int)__ptr + 4));\n    free(__ptr);\n  }" if (parenthesized_expression "(__ptr != (void *)0x0)" ( (binary_expression "__ptr != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(*(void **)((int)__ptr + 8));\n    free(*(void **)((int)__ptr + 4));\n    free(__ptr);\n  }" { (expression_statement "free(*(void **)((int)__ptr + 8));" (call_expression "free(*(void **)((int)__ptr + 8))" identifier (argument_list "(*(void **)((int)__ptr + 8))" ( (pointer_expression "*(void **)((int)__ptr + 8)" * (cast_expression "(void **)((int)__ptr + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)__ptr + 8)" ( (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "free(*(void **)((int)__ptr + 4));" (call_expression "free(*(void **)((int)__ptr + 4))" identifier (argument_list "(*(void **)((int)__ptr + 4))" ( (pointer_expression "*(void **)((int)__ptr + 4)" * (cast_expression "(void **)((int)__ptr + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)__ptr + 4)" ( (binary_expression "(int)__ptr + 4" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid assoc_remove(HASH_TABLE *hash,char *string)\n\n{\n  BUCKET_CONTENTS *__ptr;\n  \n  __ptr = hash_remove(string,hash,0);\n  if (__ptr != (BUCKET_CONTENTS *)0x0) {\n    free(__ptr->data);\n    free(__ptr->key);\n    free(__ptr);\n  }\n  return;\n}\n\n" comment comment (function_definition "void assoc_remove(HASH_TABLE *hash,char *string)\n\n{\n  BUCKET_CONTENTS *__ptr;\n  \n  __ptr = hash_remove(string,hash,0);\n  if (__ptr != (BUCKET_CONTENTS *)0x0) {\n    free(__ptr->data);\n    free(__ptr->key);\n    free(__ptr);\n  }\n  return;\n}" primitive_type (function_declarator "assoc_remove(HASH_TABLE *hash,char *string)" identifier (parameter_list "(HASH_TABLE *hash,char *string)" ( (parameter_declaration "HASH_TABLE *hash" type_identifier (pointer_declarator "*hash" * identifier)) , (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) ))) (compound_statement "{\n  BUCKET_CONTENTS *__ptr;\n  \n  __ptr = hash_remove(string,hash,0);\n  if (__ptr != (BUCKET_CONTENTS *)0x0) {\n    free(__ptr->data);\n    free(__ptr->key);\n    free(__ptr);\n  }\n  return;\n}" { (declaration "BUCKET_CONTENTS *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (expression_statement "__ptr = hash_remove(string,hash,0);" (assignment_expression "__ptr = hash_remove(string,hash,0)" identifier = (call_expression "hash_remove(string,hash,0)" identifier (argument_list "(string,hash,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (__ptr != (BUCKET_CONTENTS *)0x0) {\n    free(__ptr->data);\n    free(__ptr->key);\n    free(__ptr);\n  }" if (parenthesized_expression "(__ptr != (BUCKET_CONTENTS *)0x0)" ( (binary_expression "__ptr != (BUCKET_CONTENTS *)0x0" identifier != (cast_expression "(BUCKET_CONTENTS *)0x0" ( (type_descriptor "BUCKET_CONTENTS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(__ptr->data);\n    free(__ptr->key);\n    free(__ptr);\n  }" { (expression_statement "free(__ptr->data);" (call_expression "free(__ptr->data)" identifier (argument_list "(__ptr->data)" ( (field_expression "__ptr->data" identifier -> field_identifier) ))) ;) (expression_statement "free(__ptr->key);" (call_expression "free(__ptr->key)" identifier (argument_list "(__ptr->key)" ( (field_expression "__ptr->key" identifier -> field_identifier) ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void assoc_remove(undefined4 param_1,undefined4 param_2)\n\n{\n  void *__ptr;\n  \n  __ptr = (void *)hash_remove(param_2,param_1,0);\n  if (__ptr != (void *)0x0) {\n    free(*(void **)((int)__ptr + 8));\n    free(*(void **)((int)__ptr + 4));\n    free(__ptr);\n  }\n  return;\n}\n\n" (function_definition "void assoc_remove(undefined4 param_1,undefined4 param_2)\n\n{\n  void *__ptr;\n  \n  __ptr = (void *)hash_remove(param_2,param_1,0);\n  if (__ptr != (void *)0x0) {\n    free(*(void **)((int)__ptr + 8));\n    free(*(void **)((int)__ptr + 4));\n    free(__ptr);\n  }\n  return;\n}" primitive_type (function_declarator "assoc_remove(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  void *__ptr;\n  \n  __ptr = (void *)hash_remove(param_2,param_1,0);\n  if (__ptr != (void *)0x0) {\n    free(*(void **)((int)__ptr + 8));\n    free(*(void **)((int)__ptr + 4));\n    free(__ptr);\n  }\n  return;\n}" { (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (expression_statement "__ptr = (void *)hash_remove(param_2,param_1,0);" (assignment_expression "__ptr = (void *)hash_remove(param_2,param_1,0)" identifier = (cast_expression "(void *)hash_remove(param_2,param_1,0)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "hash_remove(param_2,param_1,0)" identifier (argument_list "(param_2,param_1,0)" ( identifier , identifier , number_literal ))))) ;) (if_statement "if (__ptr != (void *)0x0) {\n    free(*(void **)((int)__ptr + 8));\n    free(*(void **)((int)__ptr + 4));\n    free(__ptr);\n  }" if (parenthesized_expression "(__ptr != (void *)0x0)" ( (binary_expression "__ptr != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(*(void **)((int)__ptr + 8));\n    free(*(void **)((int)__ptr + 4));\n    free(__ptr);\n  }" { (expression_statement "free(*(void **)((int)__ptr + 8));" (call_expression "free(*(void **)((int)__ptr + 8))" identifier (argument_list "(*(void **)((int)__ptr + 8))" ( (pointer_expression "*(void **)((int)__ptr + 8)" * (cast_expression "(void **)((int)__ptr + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)__ptr + 8)" ( (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "free(*(void **)((int)__ptr + 4));" (call_expression "free(*(void **)((int)__ptr + 4))" identifier (argument_list "(*(void **)((int)__ptr + 4))" ( (pointer_expression "*(void **)((int)__ptr + 4)" * (cast_expression "(void **)((int)__ptr + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)__ptr + 4)" ( (binary_expression "(int)__ptr + 4" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void assoc_remove(undefined4 param_1,undefined4 param_2)\n\n{\n  void *__ptr;\n  \n  __ptr = (void *)hash_remove(param_2,param_1,0);\n  if (__ptr != (void *)0x0) {\n    free(*(void **)((int)__ptr + 8));\n    free(*(void **)((int)__ptr + 4));\n    free(__ptr);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "assoc_remove(undefined4 param_1,undefined4 param_2)" (identifier "assoc_remove") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  void *__ptr;\n  \n  __ptr = (void *)hash_remove(param_2,param_1,0);\n  if (__ptr != (void *)0x0) {\n    free(*(void **)((int)__ptr + 8));\n    free(*(void **)((int)__ptr + 4));\n    free(__ptr);\n  }\n  return;\n}" ({ "{") (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (expression_statement "__ptr = (void *)hash_remove(param_2,param_1,0);" (assignment_expression "__ptr = (void *)hash_remove(param_2,param_1,0)" (identifier "__ptr") (= "=") (cast_expression "(void *)hash_remove(param_2,param_1,0)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "hash_remove(param_2,param_1,0)" (identifier "hash_remove") (argument_list "(param_2,param_1,0)" (( "(") (identifier "param_2") (, ",") (identifier "param_1") (, ",") (number_literal "0") () ")"))))) (; ";")) (if_statement "if (__ptr != (void *)0x0) {\n    free(*(void **)((int)__ptr + 8));\n    free(*(void **)((int)__ptr + 4));\n    free(__ptr);\n  }" (if "if") (parenthesized_expression "(__ptr != (void *)0x0)" (( "(") (binary_expression "__ptr != (void *)0x0" (identifier "__ptr") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    free(*(void **)((int)__ptr + 8));\n    free(*(void **)((int)__ptr + 4));\n    free(__ptr);\n  }" ({ "{") (expression_statement "free(*(void **)((int)__ptr + 8));" (call_expression "free(*(void **)((int)__ptr + 8))" (identifier "free") (argument_list "(*(void **)((int)__ptr + 8))" (( "(") (pointer_expression "*(void **)((int)__ptr + 8)" (* "*") (cast_expression "(void **)((int)__ptr + 8)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)__ptr + 8)" (( "(") (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__ptr")) (+ "+") (number_literal "8")) () ")")))) () ")"))) (; ";")) (expression_statement "free(*(void **)((int)__ptr + 4));" (call_expression "free(*(void **)((int)__ptr + 4))" (identifier "free") (argument_list "(*(void **)((int)__ptr + 4))" (( "(") (pointer_expression "*(void **)((int)__ptr + 4)" (* "*") (cast_expression "(void **)((int)__ptr + 4)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)__ptr + 4)" (( "(") (binary_expression "(int)__ptr + 4" (cast_expression "(int)__ptr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__ptr")) (+ "+") (number_literal "4")) () ")")))) () ")"))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *hash,char *string)

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


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

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

void MASKED(undefined4 param_1,undefined4 param_2)

{
  void *__ptr;
  
  __ptr = (void *)hash_remove(param_2,param_1,0);
  if (__ptr != (void *)0x0) {
    free(*(void **)((int)__ptr + 8));
    free(*(void **)((int)__ptr + 4));
    free(__ptr);
  }
  return;
}

