
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void Curl_ossl_close_all(Curl_easy *data)

{
  ENGINE *e;
  
  e = (ENGINE *)(data->state).engine;
  if (e != (ENGINE *)0x0) {
    ENGINE_finish(e);
    ENGINE_free((ENGINE *)(data->state).engine);
    (data->state).engine = (void *)0x0;
  }
  return;
}



void __regparm3 FUN_000746e0(undefined4 param_1,undefined4 param_2)

{
  int unaff_retaddr;
  
  entry(param_2,0x746e7);
  if (*(ENGINE **)(unaff_retaddr + 0xd70) != (ENGINE *)0x0) {
    ENGINE_finish(*(ENGINE **)(unaff_retaddr + 0xd70));
    ENGINE_free(*(ENGINE **)(unaff_retaddr + 0xd70));
    *(undefined4 *)(unaff_retaddr + 0xd70) = 0;
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00019ed0
ADD EBX,0x3c0f9
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ESI + 0xd70]
TEST EAX,EAX
JZ 0x00074720
SUB ESP,0xc
PUSH EAX
CALL 0x00018a20
POP EAX
PUSH dword ptr [ESI + 0xd70]
CALL 0x00019230
ADD ESP,0x10
MOV dword ptr [ESI + 0xd70],0x0
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "void __regparm3 FUN_000746e0(undefined4 param_1,undefined4 param_2)\n\n{\n  int unaff_retaddr;\n  \n  entry(param_2,0x746e7);\n  if (*(ENGINE **)(unaff_retaddr + 0xd70) != (ENGINE *)0x0) {\n    ENGINE_finish(*(ENGINE **)(unaff_retaddr + 0xd70));\n    ENGINE_free(*(ENGINE **)(unaff_retaddr + 0xd70));\n    *(undefined4 *)(unaff_retaddr + 0xd70) = 0;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000746e0(undefined4 param_1,undefined4 param_2)\n\n{\n  int unaff_retaddr;\n  \n  entry(param_2,0x746e7);\n  if (*(ENGINE **)(unaff_retaddr + 0xd70) != (ENGINE *)0x0) {\n    ENGINE_finish(*(ENGINE **)(unaff_retaddr + 0xd70));\n    ENGINE_free(*(ENGINE **)(unaff_retaddr + 0xd70));\n    *(undefined4 *)(unaff_retaddr + 0xd70) = 0;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000746e0(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  int unaff_retaddr;\n  \n  entry(param_2,0x746e7);\n  if (*(ENGINE **)(unaff_retaddr + 0xd70) != (ENGINE *)0x0) {\n    ENGINE_finish(*(ENGINE **)(unaff_retaddr + 0xd70));\n    ENGINE_free(*(ENGINE **)(unaff_retaddr + 0xd70));\n    *(undefined4 *)(unaff_retaddr + 0xd70) = 0;\n  }\n  return;\n}" { (declaration "int unaff_retaddr;" primitive_type identifier ;) (expression_statement "entry(param_2,0x746e7);" (call_expression "entry(param_2,0x746e7)" identifier (argument_list "(param_2,0x746e7)" ( identifier , number_literal ))) ;) (if_statement "if (*(ENGINE **)(unaff_retaddr + 0xd70) != (ENGINE *)0x0) {\n    ENGINE_finish(*(ENGINE **)(unaff_retaddr + 0xd70));\n    ENGINE_free(*(ENGINE **)(unaff_retaddr + 0xd70));\n    *(undefined4 *)(unaff_retaddr + 0xd70) = 0;\n  }" if (parenthesized_expression "(*(ENGINE **)(unaff_retaddr + 0xd70) != (ENGINE *)0x0)" ( (binary_expression "*(ENGINE **)(unaff_retaddr + 0xd70) != (ENGINE *)0x0" (pointer_expression "*(ENGINE **)(unaff_retaddr + 0xd70)" * (cast_expression "(ENGINE **)(unaff_retaddr + 0xd70)" ( (type_descriptor "ENGINE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr + 0xd70)" ( (binary_expression "unaff_retaddr + 0xd70" identifier + number_literal) )))) != (cast_expression "(ENGINE *)0x0" ( (type_descriptor "ENGINE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    ENGINE_finish(*(ENGINE **)(unaff_retaddr + 0xd70));\n    ENGINE_free(*(ENGINE **)(unaff_retaddr + 0xd70));\n    *(undefined4 *)(unaff_retaddr + 0xd70) = 0;\n  }" { (expression_statement "ENGINE_finish(*(ENGINE **)(unaff_retaddr + 0xd70));" (call_expression "ENGINE_finish(*(ENGINE **)(unaff_retaddr + 0xd70))" identifier (argument_list "(*(ENGINE **)(unaff_retaddr + 0xd70))" ( (pointer_expression "*(ENGINE **)(unaff_retaddr + 0xd70)" * (cast_expression "(ENGINE **)(unaff_retaddr + 0xd70)" ( (type_descriptor "ENGINE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr + 0xd70)" ( (binary_expression "unaff_retaddr + 0xd70" identifier + number_literal) )))) ))) ;) (expression_statement "ENGINE_free(*(ENGINE **)(unaff_retaddr + 0xd70));" (call_expression "ENGINE_free(*(ENGINE **)(unaff_retaddr + 0xd70))" identifier (argument_list "(*(ENGINE **)(unaff_retaddr + 0xd70))" ( (pointer_expression "*(ENGINE **)(unaff_retaddr + 0xd70)" * (cast_expression "(ENGINE **)(unaff_retaddr + 0xd70)" ( (type_descriptor "ENGINE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr + 0xd70)" ( (binary_expression "unaff_retaddr + 0xd70" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0xd70) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0xd70) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0xd70)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0xd70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0xd70)" ( (binary_expression "unaff_retaddr + 0xd70" 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/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid Curl_ossl_close_all(Curl_easy *data)\n\n{\n  ENGINE *e;\n  \n  e = (ENGINE *)(data->state).engine;\n  if (e != (ENGINE *)0x0) {\n    ENGINE_finish(e);\n    ENGINE_free((ENGINE *)(data->state).engine);\n    (data->state).engine = (void *)0x0;\n  }\n  return;\n}\n\n" comment comment comment (function_definition "void Curl_ossl_close_all(Curl_easy *data)\n\n{\n  ENGINE *e;\n  \n  e = (ENGINE *)(data->state).engine;\n  if (e != (ENGINE *)0x0) {\n    ENGINE_finish(e);\n    ENGINE_free((ENGINE *)(data->state).engine);\n    (data->state).engine = (void *)0x0;\n  }\n  return;\n}" primitive_type (function_declarator "Curl_ossl_close_all(Curl_easy *data)" identifier (parameter_list "(Curl_easy *data)" ( (parameter_declaration "Curl_easy *data" type_identifier (pointer_declarator "*data" * identifier)) ))) (compound_statement "{\n  ENGINE *e;\n  \n  e = (ENGINE *)(data->state).engine;\n  if (e != (ENGINE *)0x0) {\n    ENGINE_finish(e);\n    ENGINE_free((ENGINE *)(data->state).engine);\n    (data->state).engine = (void *)0x0;\n  }\n  return;\n}" { (declaration "ENGINE *e;" type_identifier (pointer_declarator "*e" * identifier) ;) (expression_statement "e = (ENGINE *)(data->state).engine;" (assignment_expression "e = (ENGINE *)(data->state).engine" identifier = (cast_expression "(ENGINE *)(data->state).engine" ( (type_descriptor "ENGINE *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(data->state).engine" (parenthesized_expression "(data->state)" ( (field_expression "data->state" identifier -> field_identifier) )) . field_identifier))) ;) (if_statement "if (e != (ENGINE *)0x0) {\n    ENGINE_finish(e);\n    ENGINE_free((ENGINE *)(data->state).engine);\n    (data->state).engine = (void *)0x0;\n  }" if (parenthesized_expression "(e != (ENGINE *)0x0)" ( (binary_expression "e != (ENGINE *)0x0" identifier != (cast_expression "(ENGINE *)0x0" ( (type_descriptor "ENGINE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    ENGINE_finish(e);\n    ENGINE_free((ENGINE *)(data->state).engine);\n    (data->state).engine = (void *)0x0;\n  }" { (expression_statement "ENGINE_finish(e);" (call_expression "ENGINE_finish(e)" identifier (argument_list "(e)" ( identifier ))) ;) (expression_statement "ENGINE_free((ENGINE *)(data->state).engine);" (call_expression "ENGINE_free((ENGINE *)(data->state).engine)" identifier (argument_list "((ENGINE *)(data->state).engine)" ( (cast_expression "(ENGINE *)(data->state).engine" ( (type_descriptor "ENGINE *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(data->state).engine" (parenthesized_expression "(data->state)" ( (field_expression "data->state" identifier -> field_identifier) )) . field_identifier)) ))) ;) (expression_statement "(data->state).engine = (void *)0x0;" (assignment_expression "(data->state).engine = (void *)0x0" (field_expression "(data->state).engine" (parenthesized_expression "(data->state)" ( (field_expression "data->state" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_000746e0(undefined4 param_1,undefined4 param_2)\n\n{\n  int unaff_retaddr;\n  \n  entry(param_2,0x746e7);\n  if (*(ENGINE **)(unaff_retaddr + 0xd70) != (ENGINE *)0x0) {\n    ENGINE_finish(*(ENGINE **)(unaff_retaddr + 0xd70));\n    ENGINE_free(*(ENGINE **)(unaff_retaddr + 0xd70));\n    *(undefined4 *)(unaff_retaddr + 0xd70) = 0;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000746e0(undefined4 param_1,undefined4 param_2)\n\n{\n  int unaff_retaddr;\n  \n  entry(param_2,0x746e7);\n  if (*(ENGINE **)(unaff_retaddr + 0xd70) != (ENGINE *)0x0) {\n    ENGINE_finish(*(ENGINE **)(unaff_retaddr + 0xd70));\n    ENGINE_free(*(ENGINE **)(unaff_retaddr + 0xd70));\n    *(undefined4 *)(unaff_retaddr + 0xd70) = 0;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000746e0(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  int unaff_retaddr;\n  \n  entry(param_2,0x746e7);\n  if (*(ENGINE **)(unaff_retaddr + 0xd70) != (ENGINE *)0x0) {\n    ENGINE_finish(*(ENGINE **)(unaff_retaddr + 0xd70));\n    ENGINE_free(*(ENGINE **)(unaff_retaddr + 0xd70));\n    *(undefined4 *)(unaff_retaddr + 0xd70) = 0;\n  }\n  return;\n}" { (declaration "int unaff_retaddr;" primitive_type identifier ;) (expression_statement "entry(param_2,0x746e7);" (call_expression "entry(param_2,0x746e7)" identifier (argument_list "(param_2,0x746e7)" ( identifier , number_literal ))) ;) (if_statement "if (*(ENGINE **)(unaff_retaddr + 0xd70) != (ENGINE *)0x0) {\n    ENGINE_finish(*(ENGINE **)(unaff_retaddr + 0xd70));\n    ENGINE_free(*(ENGINE **)(unaff_retaddr + 0xd70));\n    *(undefined4 *)(unaff_retaddr + 0xd70) = 0;\n  }" if (parenthesized_expression "(*(ENGINE **)(unaff_retaddr + 0xd70) != (ENGINE *)0x0)" ( (binary_expression "*(ENGINE **)(unaff_retaddr + 0xd70) != (ENGINE *)0x0" (pointer_expression "*(ENGINE **)(unaff_retaddr + 0xd70)" * (cast_expression "(ENGINE **)(unaff_retaddr + 0xd70)" ( (type_descriptor "ENGINE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr + 0xd70)" ( (binary_expression "unaff_retaddr + 0xd70" identifier + number_literal) )))) != (cast_expression "(ENGINE *)0x0" ( (type_descriptor "ENGINE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    ENGINE_finish(*(ENGINE **)(unaff_retaddr + 0xd70));\n    ENGINE_free(*(ENGINE **)(unaff_retaddr + 0xd70));\n    *(undefined4 *)(unaff_retaddr + 0xd70) = 0;\n  }" { (expression_statement "ENGINE_finish(*(ENGINE **)(unaff_retaddr + 0xd70));" (call_expression "ENGINE_finish(*(ENGINE **)(unaff_retaddr + 0xd70))" identifier (argument_list "(*(ENGINE **)(unaff_retaddr + 0xd70))" ( (pointer_expression "*(ENGINE **)(unaff_retaddr + 0xd70)" * (cast_expression "(ENGINE **)(unaff_retaddr + 0xd70)" ( (type_descriptor "ENGINE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr + 0xd70)" ( (binary_expression "unaff_retaddr + 0xd70" identifier + number_literal) )))) ))) ;) (expression_statement "ENGINE_free(*(ENGINE **)(unaff_retaddr + 0xd70));" (call_expression "ENGINE_free(*(ENGINE **)(unaff_retaddr + 0xd70))" identifier (argument_list "(*(ENGINE **)(unaff_retaddr + 0xd70))" ( (pointer_expression "*(ENGINE **)(unaff_retaddr + 0xd70)" * (cast_expression "(ENGINE **)(unaff_retaddr + 0xd70)" ( (type_descriptor "ENGINE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_retaddr + 0xd70)" ( (binary_expression "unaff_retaddr + 0xd70" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(unaff_retaddr + 0xd70) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0xd70) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0xd70)" * (cast_expression "(undefined4 *)(unaff_retaddr + 0xd70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0xd70)" ( (binary_expression "unaff_retaddr + 0xd70" 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) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (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 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 IDENT + LIT) )))) ))) ;) (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_000746e0(undefined4 param_1,undefined4 param_2)\n\n{\n  int unaff_retaddr;\n  \n  entry(param_2,0x746e7);\n  if (*(ENGINE **)(unaff_retaddr + 0xd70) != (ENGINE *)0x0) {\n    ENGINE_finish(*(ENGINE **)(unaff_retaddr + 0xd70));\n    ENGINE_free(*(ENGINE **)(unaff_retaddr + 0xd70));\n    *(undefined4 *)(unaff_retaddr + 0xd70) = 0;\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000746e0(undefined4 param_1,undefined4 param_2)" (identifier "FUN_000746e0") (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  int unaff_retaddr;\n  \n  entry(param_2,0x746e7);\n  if (*(ENGINE **)(unaff_retaddr + 0xd70) != (ENGINE *)0x0) {\n    ENGINE_finish(*(ENGINE **)(unaff_retaddr + 0xd70));\n    ENGINE_free(*(ENGINE **)(unaff_retaddr + 0xd70));\n    *(undefined4 *)(unaff_retaddr + 0xd70) = 0;\n  }\n  return;\n}" ({ "{") (declaration "int unaff_retaddr;" (primitive_type "int") (identifier "unaff_retaddr") (; ";")) (expression_statement "entry(param_2,0x746e7);" (call_expression "entry(param_2,0x746e7)" (identifier "entry") (argument_list "(param_2,0x746e7)" (( "(") (identifier "param_2") (, ",") (number_literal "0x746e7") () ")"))) (; ";")) (if_statement "if (*(ENGINE **)(unaff_retaddr + 0xd70) != (ENGINE *)0x0) {\n    ENGINE_finish(*(ENGINE **)(unaff_retaddr + 0xd70));\n    ENGINE_free(*(ENGINE **)(unaff_retaddr + 0xd70));\n    *(undefined4 *)(unaff_retaddr + 0xd70) = 0;\n  }" (if "if") (parenthesized_expression "(*(ENGINE **)(unaff_retaddr + 0xd70) != (ENGINE *)0x0)" (( "(") (binary_expression "*(ENGINE **)(unaff_retaddr + 0xd70) != (ENGINE *)0x0" (pointer_expression "*(ENGINE **)(unaff_retaddr + 0xd70)" (* "*") (cast_expression "(ENGINE **)(unaff_retaddr + 0xd70)" (( "(") (type_descriptor "ENGINE **" (type_identifier "ENGINE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_retaddr + 0xd70)" (( "(") (binary_expression "unaff_retaddr + 0xd70" (identifier "unaff_retaddr") (+ "+") (number_literal "0xd70")) () ")")))) (!= "!=") (cast_expression "(ENGINE *)0x0" (( "(") (type_descriptor "ENGINE *" (type_identifier "ENGINE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    ENGINE_finish(*(ENGINE **)(unaff_retaddr + 0xd70));\n    ENGINE_free(*(ENGINE **)(unaff_retaddr + 0xd70));\n    *(undefined4 *)(unaff_retaddr + 0xd70) = 0;\n  }" ({ "{") (expression_statement "ENGINE_finish(*(ENGINE **)(unaff_retaddr + 0xd70));" (call_expression "ENGINE_finish(*(ENGINE **)(unaff_retaddr + 0xd70))" (identifier "ENGINE_finish") (argument_list "(*(ENGINE **)(unaff_retaddr + 0xd70))" (( "(") (pointer_expression "*(ENGINE **)(unaff_retaddr + 0xd70)" (* "*") (cast_expression "(ENGINE **)(unaff_retaddr + 0xd70)" (( "(") (type_descriptor "ENGINE **" (type_identifier "ENGINE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_retaddr + 0xd70)" (( "(") (binary_expression "unaff_retaddr + 0xd70" (identifier "unaff_retaddr") (+ "+") (number_literal "0xd70")) () ")")))) () ")"))) (; ";")) (expression_statement "ENGINE_free(*(ENGINE **)(unaff_retaddr + 0xd70));" (call_expression "ENGINE_free(*(ENGINE **)(unaff_retaddr + 0xd70))" (identifier "ENGINE_free") (argument_list "(*(ENGINE **)(unaff_retaddr + 0xd70))" (( "(") (pointer_expression "*(ENGINE **)(unaff_retaddr + 0xd70)" (* "*") (cast_expression "(ENGINE **)(unaff_retaddr + 0xd70)" (( "(") (type_descriptor "ENGINE **" (type_identifier "ENGINE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_retaddr + 0xd70)" (( "(") (binary_expression "unaff_retaddr + 0xd70" (identifier "unaff_retaddr") (+ "+") (number_literal "0xd70")) () ")")))) () ")"))) (; ";")) (expression_statement "*(undefined4 *)(unaff_retaddr + 0xd70) = 0;" (assignment_expression "*(undefined4 *)(unaff_retaddr + 0xd70) = 0" (pointer_expression "*(undefined4 *)(unaff_retaddr + 0xd70)" (* "*") (cast_expression "(undefined4 *)(unaff_retaddr + 0xd70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0xd70)" (( "(") (binary_expression "unaff_retaddr + 0xd70" (identifier "unaff_retaddr") (+ "+") (number_literal "0xd70")) () ")")))) (= "=") (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 */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(type_1 *data)

{
  type_2 *var_1;
  
  var_1 = (type_2 *)(data->state).engine;
  if (var_1 != (type_2 *)0x0) {
    var_2(var_1);
    var_3((type_2 *)(data->state).engine);
    (data->state).engine = (void *)0x0;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) 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: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (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))))) 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 (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 (call_expression function: (identifier) arguments: (argument_list (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))))) (return_statement))))

void __regparm3 MASKED(undefined4 param_1,undefined4 param_2)

{
  int unaff_retaddr;
  
  entry(param_2,0x746e7);
  if (*(ENGINE **)(unaff_retaddr + 0xd70) != (ENGINE *)0x0) {
    ENGINE_finish(*(ENGINE **)(unaff_retaddr + 0xd70));
    ENGINE_free(*(ENGINE **)(unaff_retaddr + 0xd70));
    *(undefined4 *)(unaff_retaddr + 0xd70) = 0;
  }
  return;
}

