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

void rpl_regfree(regex_t *preg)

{
  re_dfa_t *dfa;
  
  dfa = preg->buffer;
  if (dfa != (re_dfa_t *)0x0) {
    if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {
      pthread_mutex_destroy((pthread_mutex_t *)&dfa->lock);
    }
    free_dfa_content(dfa);
  }
  preg->buffer = (re_dfa_t *)0x0;
  preg->allocated = 0;
  free(preg->fastmap);
  preg->fastmap = (char *)0x0;
  free(preg->translate);
  preg->translate = (uchar *)0x0;
  return;
}



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

void FUN_0002f2c0(int *param_1)

{
  if (*param_1 != 0) {
    if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {
      pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88));
    }
    FUN_00026950();
  }
  *param_1 = 0;
  param_1[1] = 0;
  free((void *)param_1[4]);
  param_1[4] = 0;
  free((void *)param_1[5]);
  param_1[5] = 0;
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x000134d0
ADD EBX,0xeb38
MOV EDI,dword ptr [ESI]
TEST EDI,EDI
JZ 0x0002f2fb
MOV EDX,dword ptr [EBX + 0x1e8]
TEST EDX,EDX
JZ 0x0002f2f4
SUB ESP,0xc
LEA EAX,[EDI + 0x88]
PUSH EAX
CALL 0x000120a0
ADD ESP,0x10
MOV EAX,EDI
CALL 0x00026950
SUB ESP,0xc
MOV dword ptr [ESI],0x0
MOV dword ptr [ESI + 0x4],0x0
PUSH dword ptr [ESI + 0x10]
CALL 0x000120f0
MOV dword ptr [ESI + 0x10],0x0
POP EAX
PUSH dword ptr [ESI + 0x14]
CALL 0x000120f0
ADD ESP,0x10
MOV dword ptr [ESI + 0x14],0x0
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0002f2c0(int *param_1)\n\n{\n  if (*param_1 != 0) {\n    if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88));\n    }\n    FUN_00026950();\n  }\n  *param_1 = 0;\n  param_1[1] = 0;\n  free((void *)param_1[4]);\n  param_1[4] = 0;\n  free((void *)param_1[5]);\n  param_1[5] = 0;\n  return;\n}\n\n" comment (function_definition "void FUN_0002f2c0(int *param_1)\n\n{\n  if (*param_1 != 0) {\n    if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88));\n    }\n    FUN_00026950();\n  }\n  *param_1 = 0;\n  param_1[1] = 0;\n  free((void *)param_1[4]);\n  param_1[4] = 0;\n  free((void *)param_1[5]);\n  param_1[5] = 0;\n  return;\n}" primitive_type (function_declarator "FUN_0002f2c0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if (*param_1 != 0) {\n    if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88));\n    }\n    FUN_00026950();\n  }\n  *param_1 = 0;\n  param_1[1] = 0;\n  free((void *)param_1[4]);\n  param_1[4] = 0;\n  free((void *)param_1[5]);\n  param_1[5] = 0;\n  return;\n}" { (if_statement "if (*param_1 != 0) {\n    if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88));\n    }\n    FUN_00026950();\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88));\n    }\n    FUN_00026950();\n  }" { (if_statement "if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88));\n    }" if (parenthesized_expression "(PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0)" ( (binary_expression "PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88));\n    }" { (expression_statement "pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88));" (call_expression "pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88))" identifier (argument_list "((pthread_mutex_t *)(*param_1 + 0x88))" ( (cast_expression "(pthread_mutex_t *)(*param_1 + 0x88)" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x88)" ( (binary_expression "*param_1 + 0x88" (pointer_expression "*param_1" * identifier) + number_literal) ))) ))) ;) })) (expression_statement "FUN_00026950();" (call_expression "FUN_00026950()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "free((void *)param_1[4]);" (call_expression "free((void *)param_1[4])" identifier (argument_list "((void *)param_1[4])" ( (cast_expression "(void *)param_1[4]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) ))) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "free((void *)param_1[5]);" (call_expression "free((void *)param_1[5])" identifier (argument_list "((void *)param_1[5])" ( (cast_expression "(void *)param_1[5]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[5]" identifier [ number_literal ])) ))) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" 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/* WARNING: Unknown calling convention */\n\nvoid rpl_regfree(regex_t *preg)\n\n{\n  re_dfa_t *dfa;\n  \n  dfa = preg->buffer;\n  if (dfa != (re_dfa_t *)0x0) {\n    if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)&dfa->lock);\n    }\n    free_dfa_content(dfa);\n  }\n  preg->buffer = (re_dfa_t *)0x0;\n  preg->allocated = 0;\n  free(preg->fastmap);\n  preg->fastmap = (char *)0x0;\n  free(preg->translate);\n  preg->translate = (uchar *)0x0;\n  return;\n}\n\n" comment comment (function_definition "void rpl_regfree(regex_t *preg)\n\n{\n  re_dfa_t *dfa;\n  \n  dfa = preg->buffer;\n  if (dfa != (re_dfa_t *)0x0) {\n    if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)&dfa->lock);\n    }\n    free_dfa_content(dfa);\n  }\n  preg->buffer = (re_dfa_t *)0x0;\n  preg->allocated = 0;\n  free(preg->fastmap);\n  preg->fastmap = (char *)0x0;\n  free(preg->translate);\n  preg->translate = (uchar *)0x0;\n  return;\n}" primitive_type (function_declarator "rpl_regfree(regex_t *preg)" identifier (parameter_list "(regex_t *preg)" ( (parameter_declaration "regex_t *preg" type_identifier (pointer_declarator "*preg" * identifier)) ))) (compound_statement "{\n  re_dfa_t *dfa;\n  \n  dfa = preg->buffer;\n  if (dfa != (re_dfa_t *)0x0) {\n    if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)&dfa->lock);\n    }\n    free_dfa_content(dfa);\n  }\n  preg->buffer = (re_dfa_t *)0x0;\n  preg->allocated = 0;\n  free(preg->fastmap);\n  preg->fastmap = (char *)0x0;\n  free(preg->translate);\n  preg->translate = (uchar *)0x0;\n  return;\n}" { (declaration "re_dfa_t *dfa;" type_identifier (pointer_declarator "*dfa" * identifier) ;) (expression_statement "dfa = preg->buffer;" (assignment_expression "dfa = preg->buffer" identifier = (field_expression "preg->buffer" identifier -> field_identifier)) ;) (if_statement "if (dfa != (re_dfa_t *)0x0) {\n    if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)&dfa->lock);\n    }\n    free_dfa_content(dfa);\n  }" if (parenthesized_expression "(dfa != (re_dfa_t *)0x0)" ( (binary_expression "dfa != (re_dfa_t *)0x0" identifier != (cast_expression "(re_dfa_t *)0x0" ( (type_descriptor "re_dfa_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)&dfa->lock);\n    }\n    free_dfa_content(dfa);\n  }" { (if_statement "if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)&dfa->lock);\n    }" if (parenthesized_expression "(PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0)" ( (binary_expression "PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pthread_mutex_destroy((pthread_mutex_t *)&dfa->lock);\n    }" { (expression_statement "pthread_mutex_destroy((pthread_mutex_t *)&dfa->lock);" (call_expression "pthread_mutex_destroy((pthread_mutex_t *)&dfa->lock)" identifier (argument_list "((pthread_mutex_t *)&dfa->lock)" ( (cast_expression "(pthread_mutex_t *)&dfa->lock" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&dfa->lock" & (field_expression "dfa->lock" identifier -> field_identifier))) ))) ;) })) (expression_statement "free_dfa_content(dfa);" (call_expression "free_dfa_content(dfa)" identifier (argument_list "(dfa)" ( identifier ))) ;) })) (expression_statement "preg->buffer = (re_dfa_t *)0x0;" (assignment_expression "preg->buffer = (re_dfa_t *)0x0" (field_expression "preg->buffer" identifier -> field_identifier) = (cast_expression "(re_dfa_t *)0x0" ( (type_descriptor "re_dfa_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "preg->allocated = 0;" (assignment_expression "preg->allocated = 0" (field_expression "preg->allocated" identifier -> field_identifier) = number_literal) ;) (expression_statement "free(preg->fastmap);" (call_expression "free(preg->fastmap)" identifier (argument_list "(preg->fastmap)" ( (field_expression "preg->fastmap" identifier -> field_identifier) ))) ;) (expression_statement "preg->fastmap = (char *)0x0;" (assignment_expression "preg->fastmap = (char *)0x0" (field_expression "preg->fastmap" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "free(preg->translate);" (call_expression "free(preg->translate)" identifier (argument_list "(preg->translate)" ( (field_expression "preg->translate" identifier -> field_identifier) ))) ;) (expression_statement "preg->translate = (uchar *)0x0;" (assignment_expression "preg->translate = (uchar *)0x0" (field_expression "preg->translate" identifier -> field_identifier) = (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0002f2c0(int *param_1)\n\n{\n  if (*param_1 != 0) {\n    if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88));\n    }\n    FUN_00026950();\n  }\n  *param_1 = 0;\n  param_1[1] = 0;\n  free((void *)param_1[4]);\n  param_1[4] = 0;\n  free((void *)param_1[5]);\n  param_1[5] = 0;\n  return;\n}\n\n" (function_definition "void FUN_0002f2c0(int *param_1)\n\n{\n  if (*param_1 != 0) {\n    if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88));\n    }\n    FUN_00026950();\n  }\n  *param_1 = 0;\n  param_1[1] = 0;\n  free((void *)param_1[4]);\n  param_1[4] = 0;\n  free((void *)param_1[5]);\n  param_1[5] = 0;\n  return;\n}" primitive_type (function_declarator "FUN_0002f2c0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if (*param_1 != 0) {\n    if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88));\n    }\n    FUN_00026950();\n  }\n  *param_1 = 0;\n  param_1[1] = 0;\n  free((void *)param_1[4]);\n  param_1[4] = 0;\n  free((void *)param_1[5]);\n  param_1[5] = 0;\n  return;\n}" { (if_statement "if (*param_1 != 0) {\n    if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88));\n    }\n    FUN_00026950();\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88));\n    }\n    FUN_00026950();\n  }" { (if_statement "if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88));\n    }" if (parenthesized_expression "(PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0)" ( (binary_expression "PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88));\n    }" { (expression_statement "pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88));" (call_expression "pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88))" identifier (argument_list "((pthread_mutex_t *)(*param_1 + 0x88))" ( (cast_expression "(pthread_mutex_t *)(*param_1 + 0x88)" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x88)" ( (binary_expression "*param_1 + 0x88" (pointer_expression "*param_1" * identifier) + number_literal) ))) ))) ;) })) (expression_statement "FUN_00026950();" (call_expression "FUN_00026950()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "free((void *)param_1[4]);" (call_expression "free((void *)param_1[4])" identifier (argument_list "((void *)param_1[4])" ( (cast_expression "(void *)param_1[4]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) ))) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "free((void *)param_1[5]);" (call_expression "free((void *)param_1[5])" identifier (argument_list "((void *)param_1[5])" ( (cast_expression "(void *)param_1[5]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[5]" identifier [ number_literal ])) ))) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (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 ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_0002f2c0(int *param_1)\n\n{\n  if (*param_1 != 0) {\n    if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88));\n    }\n    FUN_00026950();\n  }\n  *param_1 = 0;\n  param_1[1] = 0;\n  free((void *)param_1[4]);\n  param_1[4] = 0;\n  free((void *)param_1[5]);\n  param_1[5] = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0002f2c0(int *param_1)" (identifier "FUN_0002f2c0") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  if (*param_1 != 0) {\n    if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88));\n    }\n    FUN_00026950();\n  }\n  *param_1 = 0;\n  param_1[1] = 0;\n  free((void *)param_1[4]);\n  param_1[4] = 0;\n  free((void *)param_1[5]);\n  param_1[5] = 0;\n  return;\n}" ({ "{") (if_statement "if (*param_1 != 0) {\n    if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88));\n    }\n    FUN_00026950();\n  }" (if "if") (parenthesized_expression "(*param_1 != 0)" (( "(") (binary_expression "*param_1 != 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88));\n    }\n    FUN_00026950();\n  }" ({ "{") (if_statement "if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88));\n    }" (if "if") (parenthesized_expression "(PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0)" (( "(") (binary_expression "PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0" (identifier "PTR_pthread_mutexattr_gettype_0003dfec") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88));\n    }" ({ "{") (expression_statement "pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88));" (call_expression "pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88))" (identifier "pthread_mutex_destroy") (argument_list "((pthread_mutex_t *)(*param_1 + 0x88))" (( "(") (cast_expression "(pthread_mutex_t *)(*param_1 + 0x88)" (( "(") (type_descriptor "pthread_mutex_t *" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x88)" (( "(") (binary_expression "*param_1 + 0x88" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x88")) () ")"))) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00026950();" (call_expression "FUN_00026950()" (identifier "FUN_00026950") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "free((void *)param_1[4]);" (call_expression "free((void *)param_1[4])" (identifier "free") (argument_list "((void *)param_1[4])" (( "(") (cast_expression "(void *)param_1[4]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) () ")"))) (; ";")) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "free((void *)param_1[5]);" (call_expression "free((void *)param_1[5])" (identifier "free") (argument_list "((void *)param_1[5])" (( "(") (cast_expression "(void *)param_1[5]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]"))) () ")"))) (; ";")) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (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 *preg)

{
  type_2 *var_1;
  
  var_1 = preg->buffer;
  if (var_1 != (type_2 *)0x0) {
    if (var_2 != (type_3 *)0x0) {
      var_3((type_4 *)&var_1->lock);
    }
    var_4(var_1);
  }
  preg->buffer = (type_2 *)0x0;
  preg->allocated = 0;
  var_5(preg->fastmap);
  preg->fastmap = (char *)0x0;
  var_5(preg->translate);
  preg->translate = (type_5 *)0x0;
  return;
}


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

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

void MASKED(int *param_1)

{
  if (*param_1 != 0) {
    if (PTR_pthread_mutexattr_gettype_0003dfec != (undefined *)0x0) {
      pthread_mutex_destroy((pthread_mutex_t *)(*param_1 + 0x88));
    }
    FUN_00026950();
  }
  *param_1 = 0;
  param_1[1] = 0;
  free((void *)param_1[4]);
  param_1[4] = 0;
  free((void *)param_1[5]);
  param_1[5] = 0;
  return;
}

