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

int print_attribs(BIO *out,stack_st_X509_ATTRIBUTE *attrlst,char *name)

{
  int iVar1;
  
  if (attrlst == (stack_st_X509_ATTRIBUTE *)0x0) {
    BIO_printf((BIO *)out,"%s: <No Attributes>\n",name);
    return 1;
  }
  iVar1 = OPENSSL_sk_num(attrlst);
  if (iVar1 != 0) {
    print_attribs(out,attrlst,name);
    return 1;
  }
  BIO_printf((BIO *)out,"%s: <Empty Attributes>\n",name);
  return 1;
}



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

undefined4 FUN_0004a400(BIO *param_1,int param_2,undefined4 param_3)

{
  int iVar1;
  
  if (param_2 == 0) {
    BIO_printf(param_1,"%s: <No Attributes>\n",param_3);
    return 1;
  }
  iVar1 = OPENSSL_sk_num(param_2);
  if (iVar1 != 0) {
    FUN_00047c90();
    return 1;
  }
  BIO_printf(param_1,"%s: <Empty Attributes>\n",param_3);
  return 1;
}


PUSH ESI
PUSH EBX
CALL 0x0002c850
ADD EBX,0x7a671
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x14]
TEST ESI,ESI
JZ 0x0004a470
SUB ESP,0xc
PUSH ESI
CALL 0x0002b920
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0004a448
MOV EAX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [ESP + 0x18]
MOV EDX,ESI
CALL 0x00047c90
ADD ESP,0x4
MOV EAX,0x1
POP EBX
POP ESI
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffc790a]
PUSH dword ptr [ESP + 0x1c]
PUSH EAX
PUSH dword ptr [ESP + 0x1c]
CALL 0x00027240
ADD ESP,0x10
MOV EAX,0x1
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffc78f5]
PUSH dword ptr [ESP + 0x1c]
PUSH EAX
PUSH dword ptr [ESP + 0x1c]
CALL 0x00027240
ADD ESP,0x10
MOV EAX,0x1
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\nundefined4 FUN_0004a400(BIO *param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  if (param_2 == 0) {\n    BIO_printf(param_1,"%s: <No Attributes>\n",param_3);\n    return 1;\n  }\n  iVar1 = OPENSSL_sk_num(param_2);\n  if (iVar1 != 0) {\n    FUN_00047c90();\n    return 1;\n  }\n  BIO_printf(param_1,"%s: <Empty Attributes>\n",param_3);\n  return 1;\n}\n\n" comment (function_definition "undefined4 FUN_0004a400(BIO *param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  if (param_2 == 0) {\n    BIO_printf(param_1,"%s: <No Attributes>\n",param_3);\n    return 1;\n  }\n  iVar1 = OPENSSL_sk_num(param_2);\n  if (iVar1 != 0) {\n    FUN_00047c90();\n    return 1;\n  }\n  BIO_printf(param_1,"%s: <Empty Attributes>\n",param_3);\n  return 1;\n}" type_identifier (function_declarator "FUN_0004a400(BIO *param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(BIO *param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "BIO *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_2 == 0) {\n    BIO_printf(param_1,"%s: <No Attributes>\n",param_3);\n    return 1;\n  }\n  iVar1 = OPENSSL_sk_num(param_2);\n  if (iVar1 != 0) {\n    FUN_00047c90();\n    return 1;\n  }\n  BIO_printf(param_1,"%s: <Empty Attributes>\n",param_3);\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_2 == 0) {\n    BIO_printf(param_1,"%s: <No Attributes>\n",param_3);\n    return 1;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    BIO_printf(param_1,"%s: <No Attributes>\n",param_3);\n    return 1;\n  }" { (expression_statement "BIO_printf(param_1,"%s: <No Attributes>\n",param_3);" (call_expression "BIO_printf(param_1,"%s: <No Attributes>\n",param_3)" identifier (argument_list "(param_1,"%s: <No Attributes>\n",param_3)" ( identifier , (string_literal ""%s: <No Attributes>\n"" " string_content escape_sequence ") , identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar1 = OPENSSL_sk_num(param_2);" (assignment_expression "iVar1 = OPENSSL_sk_num(param_2)" identifier = (call_expression "OPENSSL_sk_num(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    FUN_00047c90();\n    return 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00047c90();\n    return 1;\n  }" { (expression_statement "FUN_00047c90();" (call_expression "FUN_00047c90()" identifier (argument_list "()" ( ))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "BIO_printf(param_1,"%s: <Empty Attributes>\n",param_3);" (call_expression "BIO_printf(param_1,"%s: <Empty Attributes>\n",param_3)" identifier (argument_list "(param_1,"%s: <Empty Attributes>\n",param_3)" ( identifier , (string_literal ""%s: <Empty Attributes>\n"" " string_content escape_sequence ") , identifier ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint print_attribs(BIO *out,stack_st_X509_ATTRIBUTE *attrlst,char *name)\n\n{\n  int iVar1;\n  \n  if (attrlst == (stack_st_X509_ATTRIBUTE *)0x0) {\n    BIO_printf((BIO *)out,"%s: <No Attributes>\n",name);\n    return 1;\n  }\n  iVar1 = OPENSSL_sk_num(attrlst);\n  if (iVar1 != 0) {\n    print_attribs(out,attrlst,name);\n    return 1;\n  }\n  BIO_printf((BIO *)out,"%s: <Empty Attributes>\n",name);\n  return 1;\n}\n\n" comment comment (function_definition "int print_attribs(BIO *out,stack_st_X509_ATTRIBUTE *attrlst,char *name)\n\n{\n  int iVar1;\n  \n  if (attrlst == (stack_st_X509_ATTRIBUTE *)0x0) {\n    BIO_printf((BIO *)out,"%s: <No Attributes>\n",name);\n    return 1;\n  }\n  iVar1 = OPENSSL_sk_num(attrlst);\n  if (iVar1 != 0) {\n    print_attribs(out,attrlst,name);\n    return 1;\n  }\n  BIO_printf((BIO *)out,"%s: <Empty Attributes>\n",name);\n  return 1;\n}" primitive_type (function_declarator "print_attribs(BIO *out,stack_st_X509_ATTRIBUTE *attrlst,char *name)" identifier (parameter_list "(BIO *out,stack_st_X509_ATTRIBUTE *attrlst,char *name)" ( (parameter_declaration "BIO *out" type_identifier (pointer_declarator "*out" * identifier)) , (parameter_declaration "stack_st_X509_ATTRIBUTE *attrlst" type_identifier (pointer_declarator "*attrlst" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (attrlst == (stack_st_X509_ATTRIBUTE *)0x0) {\n    BIO_printf((BIO *)out,"%s: <No Attributes>\n",name);\n    return 1;\n  }\n  iVar1 = OPENSSL_sk_num(attrlst);\n  if (iVar1 != 0) {\n    print_attribs(out,attrlst,name);\n    return 1;\n  }\n  BIO_printf((BIO *)out,"%s: <Empty Attributes>\n",name);\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (attrlst == (stack_st_X509_ATTRIBUTE *)0x0) {\n    BIO_printf((BIO *)out,"%s: <No Attributes>\n",name);\n    return 1;\n  }" if (parenthesized_expression "(attrlst == (stack_st_X509_ATTRIBUTE *)0x0)" ( (binary_expression "attrlst == (stack_st_X509_ATTRIBUTE *)0x0" identifier == (cast_expression "(stack_st_X509_ATTRIBUTE *)0x0" ( (type_descriptor "stack_st_X509_ATTRIBUTE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    BIO_printf((BIO *)out,"%s: <No Attributes>\n",name);\n    return 1;\n  }" { (expression_statement "BIO_printf((BIO *)out,"%s: <No Attributes>\n",name);" (call_expression "BIO_printf((BIO *)out,"%s: <No Attributes>\n",name)" identifier (argument_list "((BIO *)out,"%s: <No Attributes>\n",name)" ( (cast_expression "(BIO *)out" ( (type_descriptor "BIO *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""%s: <No Attributes>\n"" " string_content escape_sequence ") , identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar1 = OPENSSL_sk_num(attrlst);" (assignment_expression "iVar1 = OPENSSL_sk_num(attrlst)" identifier = (call_expression "OPENSSL_sk_num(attrlst)" identifier (argument_list "(attrlst)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    print_attribs(out,attrlst,name);\n    return 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    print_attribs(out,attrlst,name);\n    return 1;\n  }" { (expression_statement "print_attribs(out,attrlst,name);" (call_expression "print_attribs(out,attrlst,name)" identifier (argument_list "(out,attrlst,name)" ( identifier , identifier , identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "BIO_printf((BIO *)out,"%s: <Empty Attributes>\n",name);" (call_expression "BIO_printf((BIO *)out,"%s: <Empty Attributes>\n",name)" identifier (argument_list "((BIO *)out,"%s: <Empty Attributes>\n",name)" ( (cast_expression "(BIO *)out" ( (type_descriptor "BIO *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""%s: <Empty Attributes>\n"" " string_content escape_sequence ") , identifier ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0004a400(BIO *param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  if (param_2 == 0) {\n    BIO_printf(param_1,"%s: <No Attributes>\n",param_3);\n    return 1;\n  }\n  iVar1 = OPENSSL_sk_num(param_2);\n  if (iVar1 != 0) {\n    FUN_00047c90();\n    return 1;\n  }\n  BIO_printf(param_1,"%s: <Empty Attributes>\n",param_3);\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_0004a400(BIO *param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  if (param_2 == 0) {\n    BIO_printf(param_1,"%s: <No Attributes>\n",param_3);\n    return 1;\n  }\n  iVar1 = OPENSSL_sk_num(param_2);\n  if (iVar1 != 0) {\n    FUN_00047c90();\n    return 1;\n  }\n  BIO_printf(param_1,"%s: <Empty Attributes>\n",param_3);\n  return 1;\n}" type_identifier (function_declarator "FUN_0004a400(BIO *param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(BIO *param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "BIO *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_2 == 0) {\n    BIO_printf(param_1,"%s: <No Attributes>\n",param_3);\n    return 1;\n  }\n  iVar1 = OPENSSL_sk_num(param_2);\n  if (iVar1 != 0) {\n    FUN_00047c90();\n    return 1;\n  }\n  BIO_printf(param_1,"%s: <Empty Attributes>\n",param_3);\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_2 == 0) {\n    BIO_printf(param_1,"%s: <No Attributes>\n",param_3);\n    return 1;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    BIO_printf(param_1,"%s: <No Attributes>\n",param_3);\n    return 1;\n  }" { (expression_statement "BIO_printf(param_1,"%s: <No Attributes>\n",param_3);" (call_expression "BIO_printf(param_1,"%s: <No Attributes>\n",param_3)" identifier (argument_list "(param_1,"%s: <No Attributes>\n",param_3)" ( identifier , (string_literal ""%s: <No Attributes>\n"" " string_content escape_sequence ") , identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar1 = OPENSSL_sk_num(param_2);" (assignment_expression "iVar1 = OPENSSL_sk_num(param_2)" identifier = (call_expression "OPENSSL_sk_num(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    FUN_00047c90();\n    return 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00047c90();\n    return 1;\n  }" { (expression_statement "FUN_00047c90();" (call_expression "FUN_00047c90()" identifier (argument_list "()" ( ))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "BIO_printf(param_1,"%s: <Empty Attributes>\n",param_3);" (call_expression "BIO_printf(param_1,"%s: <Empty Attributes>\n",param_3)" identifier (argument_list "(param_1,"%s: <Empty Attributes>\n",param_3)" ( identifier , (string_literal ""%s: <Empty Attributes>\n"" " string_content escape_sequence ") , identifier ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content escape_sequence ") , IDENT ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content escape_sequence ") , IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0004a400(BIO *param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  if (param_2 == 0) {\n    BIO_printf(param_1,"%s: <No Attributes>\n",param_3);\n    return 1;\n  }\n  iVar1 = OPENSSL_sk_num(param_2);\n  if (iVar1 != 0) {\n    FUN_00047c90();\n    return 1;\n  }\n  BIO_printf(param_1,"%s: <Empty Attributes>\n",param_3);\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_0004a400(BIO *param_1,int param_2,undefined4 param_3)" (identifier "FUN_0004a400") (parameter_list "(BIO *param_1,int param_2,undefined4 param_3)" (( "(") (parameter_declaration "BIO *param_1" (type_identifier "BIO") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (param_2 == 0) {\n    BIO_printf(param_1,"%s: <No Attributes>\n",param_3);\n    return 1;\n  }\n  iVar1 = OPENSSL_sk_num(param_2);\n  if (iVar1 != 0) {\n    FUN_00047c90();\n    return 1;\n  }\n  BIO_printf(param_1,"%s: <Empty Attributes>\n",param_3);\n  return 1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (param_2 == 0) {\n    BIO_printf(param_1,"%s: <No Attributes>\n",param_3);\n    return 1;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    BIO_printf(param_1,"%s: <No Attributes>\n",param_3);\n    return 1;\n  }" ({ "{") (expression_statement "BIO_printf(param_1,"%s: <No Attributes>\n",param_3);" (call_expression "BIO_printf(param_1,"%s: <No Attributes>\n",param_3)" (identifier "BIO_printf") (argument_list "(param_1,"%s: <No Attributes>\n",param_3)" (( "(") (identifier "param_1") (, ",") (string_literal ""%s: <No Attributes>\n"" (" """) (string_content "%s: <No Attributes>") (escape_sequence "\n") (" """)) (, ",") (identifier "param_3") () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "iVar1 = OPENSSL_sk_num(param_2);" (assignment_expression "iVar1 = OPENSSL_sk_num(param_2)" (identifier "iVar1") (= "=") (call_expression "OPENSSL_sk_num(param_2)" (identifier "OPENSSL_sk_num") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    FUN_00047c90();\n    return 1;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00047c90();\n    return 1;\n  }" ({ "{") (expression_statement "FUN_00047c90();" (call_expression "FUN_00047c90()" (identifier "FUN_00047c90") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "BIO_printf(param_1,"%s: <Empty Attributes>\n",param_3);" (call_expression "BIO_printf(param_1,"%s: <Empty Attributes>\n",param_3)" (identifier "BIO_printf") (argument_list "(param_1,"%s: <Empty Attributes>\n",param_3)" (( "(") (identifier "param_1") (, ",") (string_literal ""%s: <Empty Attributes>\n"" (" """) (string_content "%s: <Empty Attributes>") (escape_sequence "\n") (" """)) (, ",") (identifier "param_3") () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

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

int function_1(type_1 *out,type_2 *var_1,char *name)

{
  int var_4;
  
  if (var_1 == (type_2 *)0x0) {
    var_2((type_1 *)out,"%s: <No Attributes>\n",name);
    return 1;
  }
  var_4 = var_3(var_1);
  if (var_4 != 0) {
    function_1(out,var_1,name);
    return 1;
  }
  var_2((type_1 *)out,"%s: <Empty Attributes>\n",name);
  return 1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content) (escape_sequence)) (identifier)))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content) (escape_sequence)) (identifier)))) (return_statement (number_literal)))))

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

undefined4 MASKED(BIO *param_1,int param_2,undefined4 param_3)

{
  int iVar1;
  
  if (param_2 == 0) {
    BIO_printf(param_1,"%s: <No Attributes>\n",param_3);
    return 1;
  }
  iVar1 = OPENSSL_sk_num(param_2);
  if (iVar1 != 0) {
    FUN_00047c90();
    return 1;
  }
  BIO_printf(param_1,"%s: <Empty Attributes>\n",param_3);
  return 1;
}

