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

void list_supported_architectures(char *name,FILE *f)

{
  int iVar1;
  char *pcVar2;
  int *__ptr;
  int *piVar3;
  
  if (name == (char *)0x0) {
    pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);
    fprintf((FILE *)f,pcVar2);
  }
  else {
    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);
    fprintf((FILE *)f,pcVar2,name);
  }
  __ptr = (int *)bfd_arch_list();
  iVar1 = *__ptr;
  piVar3 = __ptr;
  while (iVar1 != 0) {
    piVar3 = piVar3 + 1;
    fprintf((FILE *)f," %s",iVar1);
    iVar1 = *piVar3;
  }
  fputc(10,(FILE *)f);
  free(__ptr);
  return;
}



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

void FUN_000180f0(int param_1,FILE *param_2)

{
  int iVar1;
  char *pcVar2;
  int *__ptr;
  int *piVar3;
  
  if (param_1 == 0) {
    pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);
    fprintf(param_2,pcVar2);
  }
  else {
    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);
    fprintf(param_2,pcVar2,param_1);
  }
  __ptr = (int *)bfd_arch_list();
  iVar1 = *__ptr;
  piVar3 = __ptr;
  while (iVar1 != 0) {
    piVar3 = piVar3 + 1;
    fprintf(param_2," %s",iVar1);
    iVar1 = *piVar3;
  }
  fputc(10,param_2);
  free(__ptr);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013710
ADD EBX,0x8f07
SUB ESP,0x1c
MOV EDI,dword ptr [ESP + 0x30]
MOV ESI,dword ptr [ESP + 0x34]
TEST EDI,EDI
JZ 0x00018188
SUB ESP,0x4
LEA EAX,[EBX + 0xffffb2a2]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00012180
ADD ESP,0xc
PUSH EDI
PUSH EAX
PUSH ESI
CALL 0x00012390
ADD ESP,0x10
CALL 0x000120d0
MOV EBP,EAX
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x00018168
LEA EDI,[EBX + 0xffffb147]
LEA ESI,[ESI]
LEA ESI,[ESI]
SUB ESP,0x4
ADD EBP,0x4
PUSH EAX
PUSH EDI
PUSH ESI
CALL 0x00012390
MOV EAX,dword ptr [EBP]
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00018150
SUB ESP,0x8
PUSH ESI
PUSH 0xa
CALL 0x00012490
POP EAX
PUSH dword ptr [ESP + 0x18]
CALL 0x00012100
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xffffb289]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00012180
POP EDX
POP ECX
PUSH EAX
PUSH ESI
CALL 0x00012390
ADD ESP,0x10
JMP 0x0001812f
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000180f0(int param_1,FILE *param_2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int *__ptr;\n  int *piVar3;\n  \n  if (param_1 == 0) {\n    pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);\n    fprintf(param_2,pcVar2);\n  }\n  else {\n    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);\n    fprintf(param_2,pcVar2,param_1);\n  }\n  __ptr = (int *)bfd_arch_list();\n  iVar1 = *__ptr;\n  piVar3 = __ptr;\n  while (iVar1 != 0) {\n    piVar3 = piVar3 + 1;\n    fprintf(param_2," %s",iVar1);\n    iVar1 = *piVar3;\n  }\n  fputc(10,param_2);\n  free(__ptr);\n  return;\n}\n\n" comment (function_definition "void FUN_000180f0(int param_1,FILE *param_2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int *__ptr;\n  int *piVar3;\n  \n  if (param_1 == 0) {\n    pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);\n    fprintf(param_2,pcVar2);\n  }\n  else {\n    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);\n    fprintf(param_2,pcVar2,param_1);\n  }\n  __ptr = (int *)bfd_arch_list();\n  iVar1 = *__ptr;\n  piVar3 = __ptr;\n  while (iVar1 != 0) {\n    piVar3 = piVar3 + 1;\n    fprintf(param_2," %s",iVar1);\n    iVar1 = *piVar3;\n  }\n  fputc(10,param_2);\n  free(__ptr);\n  return;\n}" primitive_type (function_declarator "FUN_000180f0(int param_1,FILE *param_2)" identifier (parameter_list "(int param_1,FILE *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "FILE *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  int *__ptr;\n  int *piVar3;\n  \n  if (param_1 == 0) {\n    pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);\n    fprintf(param_2,pcVar2);\n  }\n  else {\n    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);\n    fprintf(param_2,pcVar2,param_1);\n  }\n  __ptr = (int *)bfd_arch_list();\n  iVar1 = *__ptr;\n  piVar3 = __ptr;\n  while (iVar1 != 0) {\n    piVar3 = piVar3 + 1;\n    fprintf(param_2," %s",iVar1);\n    iVar1 = *piVar3;\n  }\n  fputc(10,param_2);\n  free(__ptr);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (if_statement "if (param_1 == 0) {\n    pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);\n    fprintf(param_2,pcVar2);\n  }\n  else {\n    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);\n    fprintf(param_2,pcVar2,param_1);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);\n    fprintf(param_2,pcVar2);\n  }" { (expression_statement "pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);" (assignment_expression "pcVar2 = (char *)dcgettext(0,"Supported architectures:",5)" identifier = (cast_expression "(char *)dcgettext(0,"Supported architectures:",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Supported architectures:",5)" identifier (argument_list "(0,"Supported architectures:",5)" ( number_literal , (string_literal ""Supported architectures:"" " string_content ") , number_literal ))))) ;) (expression_statement "fprintf(param_2,pcVar2);" (call_expression "fprintf(param_2,pcVar2)" identifier (argument_list "(param_2,pcVar2)" ( identifier , identifier ))) ;) }) (else_clause "else {\n    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);\n    fprintf(param_2,pcVar2,param_1);\n  }" else (compound_statement "{\n    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);\n    fprintf(param_2,pcVar2,param_1);\n  }" { (expression_statement "pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);" (assignment_expression "pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5)" identifier = (cast_expression "(char *)dcgettext(0,"%s: supported architectures:",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%s: supported architectures:",5)" identifier (argument_list "(0,"%s: supported architectures:",5)" ( number_literal , (string_literal ""%s: supported architectures:"" " string_content ") , number_literal ))))) ;) (expression_statement "fprintf(param_2,pcVar2,param_1);" (call_expression "fprintf(param_2,pcVar2,param_1)" identifier (argument_list "(param_2,pcVar2,param_1)" ( identifier , identifier , identifier ))) ;) }))) (expression_statement "__ptr = (int *)bfd_arch_list();" (assignment_expression "__ptr = (int *)bfd_arch_list()" identifier = (cast_expression "(int *)bfd_arch_list()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_arch_list()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = *__ptr;" (assignment_expression "iVar1 = *__ptr" identifier = (pointer_expression "*__ptr" * identifier)) ;) (expression_statement "piVar3 = __ptr;" (assignment_expression "piVar3 = __ptr" identifier = identifier) ;) (while_statement "while (iVar1 != 0) {\n    piVar3 = piVar3 + 1;\n    fprintf(param_2," %s",iVar1);\n    iVar1 = *piVar3;\n  }" while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar3 = piVar3 + 1;\n    fprintf(param_2," %s",iVar1);\n    iVar1 = *piVar3;\n  }" { (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) (expression_statement "fprintf(param_2," %s",iVar1);" (call_expression "fprintf(param_2," %s",iVar1)" identifier (argument_list "(param_2," %s",iVar1)" ( identifier , (string_literal "" %s"" " string_content ") , identifier ))) ;) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) })) (expression_statement "fputc(10,param_2);" (call_expression "fputc(10,param_2)" identifier (argument_list "(10,param_2)" ( number_literal , identifier ))) ;) (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 list_supported_architectures(char *name,FILE *f)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int *__ptr;\n  int *piVar3;\n  \n  if (name == (char *)0x0) {\n    pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);\n    fprintf((FILE *)f,pcVar2);\n  }\n  else {\n    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);\n    fprintf((FILE *)f,pcVar2,name);\n  }\n  __ptr = (int *)bfd_arch_list();\n  iVar1 = *__ptr;\n  piVar3 = __ptr;\n  while (iVar1 != 0) {\n    piVar3 = piVar3 + 1;\n    fprintf((FILE *)f," %s",iVar1);\n    iVar1 = *piVar3;\n  }\n  fputc(10,(FILE *)f);\n  free(__ptr);\n  return;\n}\n\n" comment comment (function_definition "void list_supported_architectures(char *name,FILE *f)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int *__ptr;\n  int *piVar3;\n  \n  if (name == (char *)0x0) {\n    pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);\n    fprintf((FILE *)f,pcVar2);\n  }\n  else {\n    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);\n    fprintf((FILE *)f,pcVar2,name);\n  }\n  __ptr = (int *)bfd_arch_list();\n  iVar1 = *__ptr;\n  piVar3 = __ptr;\n  while (iVar1 != 0) {\n    piVar3 = piVar3 + 1;\n    fprintf((FILE *)f," %s",iVar1);\n    iVar1 = *piVar3;\n  }\n  fputc(10,(FILE *)f);\n  free(__ptr);\n  return;\n}" primitive_type (function_declarator "list_supported_architectures(char *name,FILE *f)" identifier (parameter_list "(char *name,FILE *f)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "FILE *f" type_identifier (pointer_declarator "*f" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  int *__ptr;\n  int *piVar3;\n  \n  if (name == (char *)0x0) {\n    pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);\n    fprintf((FILE *)f,pcVar2);\n  }\n  else {\n    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);\n    fprintf((FILE *)f,pcVar2,name);\n  }\n  __ptr = (int *)bfd_arch_list();\n  iVar1 = *__ptr;\n  piVar3 = __ptr;\n  while (iVar1 != 0) {\n    piVar3 = piVar3 + 1;\n    fprintf((FILE *)f," %s",iVar1);\n    iVar1 = *piVar3;\n  }\n  fputc(10,(FILE *)f);\n  free(__ptr);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (if_statement "if (name == (char *)0x0) {\n    pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);\n    fprintf((FILE *)f,pcVar2);\n  }\n  else {\n    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);\n    fprintf((FILE *)f,pcVar2,name);\n  }" if (parenthesized_expression "(name == (char *)0x0)" ( (binary_expression "name == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);\n    fprintf((FILE *)f,pcVar2);\n  }" { (expression_statement "pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);" (assignment_expression "pcVar2 = (char *)dcgettext(0,"Supported architectures:",5)" identifier = (cast_expression "(char *)dcgettext(0,"Supported architectures:",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Supported architectures:",5)" identifier (argument_list "(0,"Supported architectures:",5)" ( number_literal , (string_literal ""Supported architectures:"" " string_content ") , number_literal ))))) ;) (expression_statement "fprintf((FILE *)f,pcVar2);" (call_expression "fprintf((FILE *)f,pcVar2)" identifier (argument_list "((FILE *)f,pcVar2)" ( (cast_expression "(FILE *)f" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) }) (else_clause "else {\n    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);\n    fprintf((FILE *)f,pcVar2,name);\n  }" else (compound_statement "{\n    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);\n    fprintf((FILE *)f,pcVar2,name);\n  }" { (expression_statement "pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);" (assignment_expression "pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5)" identifier = (cast_expression "(char *)dcgettext(0,"%s: supported architectures:",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%s: supported architectures:",5)" identifier (argument_list "(0,"%s: supported architectures:",5)" ( number_literal , (string_literal ""%s: supported architectures:"" " string_content ") , number_literal ))))) ;) (expression_statement "fprintf((FILE *)f,pcVar2,name);" (call_expression "fprintf((FILE *)f,pcVar2,name)" identifier (argument_list "((FILE *)f,pcVar2,name)" ( (cast_expression "(FILE *)f" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))) ;) }))) (expression_statement "__ptr = (int *)bfd_arch_list();" (assignment_expression "__ptr = (int *)bfd_arch_list()" identifier = (cast_expression "(int *)bfd_arch_list()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_arch_list()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = *__ptr;" (assignment_expression "iVar1 = *__ptr" identifier = (pointer_expression "*__ptr" * identifier)) ;) (expression_statement "piVar3 = __ptr;" (assignment_expression "piVar3 = __ptr" identifier = identifier) ;) (while_statement "while (iVar1 != 0) {\n    piVar3 = piVar3 + 1;\n    fprintf((FILE *)f," %s",iVar1);\n    iVar1 = *piVar3;\n  }" while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar3 = piVar3 + 1;\n    fprintf((FILE *)f," %s",iVar1);\n    iVar1 = *piVar3;\n  }" { (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) (expression_statement "fprintf((FILE *)f," %s",iVar1);" (call_expression "fprintf((FILE *)f," %s",iVar1)" identifier (argument_list "((FILE *)f," %s",iVar1)" ( (cast_expression "(FILE *)f" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal "" %s"" " string_content ") , identifier ))) ;) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) })) (expression_statement "fputc(10,(FILE *)f);" (call_expression "fputc(10,(FILE *)f)" identifier (argument_list "(10,(FILE *)f)" ( number_literal , (cast_expression "(FILE *)f" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000180f0(int param_1,FILE *param_2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int *__ptr;\n  int *piVar3;\n  \n  if (param_1 == 0) {\n    pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);\n    fprintf(param_2,pcVar2);\n  }\n  else {\n    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);\n    fprintf(param_2,pcVar2,param_1);\n  }\n  __ptr = (int *)bfd_arch_list();\n  iVar1 = *__ptr;\n  piVar3 = __ptr;\n  while (iVar1 != 0) {\n    piVar3 = piVar3 + 1;\n    fprintf(param_2," %s",iVar1);\n    iVar1 = *piVar3;\n  }\n  fputc(10,param_2);\n  free(__ptr);\n  return;\n}\n\n" (function_definition "void FUN_000180f0(int param_1,FILE *param_2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int *__ptr;\n  int *piVar3;\n  \n  if (param_1 == 0) {\n    pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);\n    fprintf(param_2,pcVar2);\n  }\n  else {\n    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);\n    fprintf(param_2,pcVar2,param_1);\n  }\n  __ptr = (int *)bfd_arch_list();\n  iVar1 = *__ptr;\n  piVar3 = __ptr;\n  while (iVar1 != 0) {\n    piVar3 = piVar3 + 1;\n    fprintf(param_2," %s",iVar1);\n    iVar1 = *piVar3;\n  }\n  fputc(10,param_2);\n  free(__ptr);\n  return;\n}" primitive_type (function_declarator "FUN_000180f0(int param_1,FILE *param_2)" identifier (parameter_list "(int param_1,FILE *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "FILE *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  int *__ptr;\n  int *piVar3;\n  \n  if (param_1 == 0) {\n    pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);\n    fprintf(param_2,pcVar2);\n  }\n  else {\n    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);\n    fprintf(param_2,pcVar2,param_1);\n  }\n  __ptr = (int *)bfd_arch_list();\n  iVar1 = *__ptr;\n  piVar3 = __ptr;\n  while (iVar1 != 0) {\n    piVar3 = piVar3 + 1;\n    fprintf(param_2," %s",iVar1);\n    iVar1 = *piVar3;\n  }\n  fputc(10,param_2);\n  free(__ptr);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (if_statement "if (param_1 == 0) {\n    pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);\n    fprintf(param_2,pcVar2);\n  }\n  else {\n    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);\n    fprintf(param_2,pcVar2,param_1);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);\n    fprintf(param_2,pcVar2);\n  }" { (expression_statement "pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);" (assignment_expression "pcVar2 = (char *)dcgettext(0,"Supported architectures:",5)" identifier = (cast_expression "(char *)dcgettext(0,"Supported architectures:",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Supported architectures:",5)" identifier (argument_list "(0,"Supported architectures:",5)" ( number_literal , (string_literal ""Supported architectures:"" " string_content ") , number_literal ))))) ;) (expression_statement "fprintf(param_2,pcVar2);" (call_expression "fprintf(param_2,pcVar2)" identifier (argument_list "(param_2,pcVar2)" ( identifier , identifier ))) ;) }) (else_clause "else {\n    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);\n    fprintf(param_2,pcVar2,param_1);\n  }" else (compound_statement "{\n    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);\n    fprintf(param_2,pcVar2,param_1);\n  }" { (expression_statement "pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);" (assignment_expression "pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5)" identifier = (cast_expression "(char *)dcgettext(0,"%s: supported architectures:",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%s: supported architectures:",5)" identifier (argument_list "(0,"%s: supported architectures:",5)" ( number_literal , (string_literal ""%s: supported architectures:"" " string_content ") , number_literal ))))) ;) (expression_statement "fprintf(param_2,pcVar2,param_1);" (call_expression "fprintf(param_2,pcVar2,param_1)" identifier (argument_list "(param_2,pcVar2,param_1)" ( identifier , identifier , identifier ))) ;) }))) (expression_statement "__ptr = (int *)bfd_arch_list();" (assignment_expression "__ptr = (int *)bfd_arch_list()" identifier = (cast_expression "(int *)bfd_arch_list()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_arch_list()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = *__ptr;" (assignment_expression "iVar1 = *__ptr" identifier = (pointer_expression "*__ptr" * identifier)) ;) (expression_statement "piVar3 = __ptr;" (assignment_expression "piVar3 = __ptr" identifier = identifier) ;) (while_statement "while (iVar1 != 0) {\n    piVar3 = piVar3 + 1;\n    fprintf(param_2," %s",iVar1);\n    iVar1 = *piVar3;\n  }" while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar3 = piVar3 + 1;\n    fprintf(param_2," %s",iVar1);\n    iVar1 = *piVar3;\n  }" { (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) (expression_statement "fprintf(param_2," %s",iVar1);" (call_expression "fprintf(param_2," %s",iVar1)" identifier (argument_list "(param_2," %s",iVar1)" ( identifier , (string_literal "" %s"" " string_content ") , identifier ))) ;) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) })) (expression_statement "fputc(10,param_2);" (call_expression "fputc(10,param_2)" identifier (argument_list "(10,param_2)" ( number_literal , identifier ))) ;) (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 (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000180f0(int param_1,FILE *param_2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int *__ptr;\n  int *piVar3;\n  \n  if (param_1 == 0) {\n    pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);\n    fprintf(param_2,pcVar2);\n  }\n  else {\n    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);\n    fprintf(param_2,pcVar2,param_1);\n  }\n  __ptr = (int *)bfd_arch_list();\n  iVar1 = *__ptr;\n  piVar3 = __ptr;\n  while (iVar1 != 0) {\n    piVar3 = piVar3 + 1;\n    fprintf(param_2," %s",iVar1);\n    iVar1 = *piVar3;\n  }\n  fputc(10,param_2);\n  free(__ptr);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000180f0(int param_1,FILE *param_2)" (identifier "FUN_000180f0") (parameter_list "(int param_1,FILE *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "FILE *param_2" (type_identifier "FILE") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  int *__ptr;\n  int *piVar3;\n  \n  if (param_1 == 0) {\n    pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);\n    fprintf(param_2,pcVar2);\n  }\n  else {\n    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);\n    fprintf(param_2,pcVar2,param_1);\n  }\n  __ptr = (int *)bfd_arch_list();\n  iVar1 = *__ptr;\n  piVar3 = __ptr;\n  while (iVar1 != 0) {\n    piVar3 = piVar3 + 1;\n    fprintf(param_2," %s",iVar1);\n    iVar1 = *piVar3;\n  }\n  fputc(10,param_2);\n  free(__ptr);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "int *__ptr;" (primitive_type "int") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (if_statement "if (param_1 == 0) {\n    pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);\n    fprintf(param_2,pcVar2);\n  }\n  else {\n    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);\n    fprintf(param_2,pcVar2,param_1);\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);\n    fprintf(param_2,pcVar2);\n  }" ({ "{") (expression_statement "pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);" (assignment_expression "pcVar2 = (char *)dcgettext(0,"Supported architectures:",5)" (identifier "pcVar2") (= "=") (cast_expression "(char *)dcgettext(0,"Supported architectures:",5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dcgettext(0,"Supported architectures:",5)" (identifier "dcgettext") (argument_list "(0,"Supported architectures:",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Supported architectures:"" (" """) (string_content "Supported architectures:") (" """)) (, ",") (number_literal "5") () ")"))))) (; ";")) (expression_statement "fprintf(param_2,pcVar2);" (call_expression "fprintf(param_2,pcVar2)" (identifier "fprintf") (argument_list "(param_2,pcVar2)" (( "(") (identifier "param_2") (, ",") (identifier "pcVar2") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);\n    fprintf(param_2,pcVar2,param_1);\n  }" (else "else") (compound_statement "{\n    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);\n    fprintf(param_2,pcVar2,param_1);\n  }" ({ "{") (expression_statement "pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);" (assignment_expression "pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5)" (identifier "pcVar2") (= "=") (cast_expression "(char *)dcgettext(0,"%s: supported architectures:",5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dcgettext(0,"%s: supported architectures:",5)" (identifier "dcgettext") (argument_list "(0,"%s: supported architectures:",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%s: supported architectures:"" (" """) (string_content "%s: supported architectures:") (" """)) (, ",") (number_literal "5") () ")"))))) (; ";")) (expression_statement "fprintf(param_2,pcVar2,param_1);" (call_expression "fprintf(param_2,pcVar2,param_1)" (identifier "fprintf") (argument_list "(param_2,pcVar2,param_1)" (( "(") (identifier "param_2") (, ",") (identifier "pcVar2") (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}")))) (expression_statement "__ptr = (int *)bfd_arch_list();" (assignment_expression "__ptr = (int *)bfd_arch_list()" (identifier "__ptr") (= "=") (cast_expression "(int *)bfd_arch_list()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "bfd_arch_list()" (identifier "bfd_arch_list") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar1 = *__ptr;" (assignment_expression "iVar1 = *__ptr" (identifier "iVar1") (= "=") (pointer_expression "*__ptr" (* "*") (identifier "__ptr"))) (; ";")) (expression_statement "piVar3 = __ptr;" (assignment_expression "piVar3 = __ptr" (identifier "piVar3") (= "=") (identifier "__ptr")) (; ";")) (while_statement "while (iVar1 != 0) {\n    piVar3 = piVar3 + 1;\n    fprintf(param_2," %s",iVar1);\n    iVar1 = *piVar3;\n  }" (while "while") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    piVar3 = piVar3 + 1;\n    fprintf(param_2," %s",iVar1);\n    iVar1 = *piVar3;\n  }" ({ "{") (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" (identifier "piVar3") (= "=") (binary_expression "piVar3 + 1" (identifier "piVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "fprintf(param_2," %s",iVar1);" (call_expression "fprintf(param_2," %s",iVar1)" (identifier "fprintf") (argument_list "(param_2," %s",iVar1)" (( "(") (identifier "param_2") (, ",") (string_literal "" %s"" (" """) (string_content " %s") (" """)) (, ",") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" (identifier "iVar1") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (} "}"))) (expression_statement "fputc(10,param_2);" (call_expression "fputc(10,param_2)" (identifier "fputc") (argument_list "(10,param_2)" (( "(") (number_literal "10") (, ",") (identifier "param_2") () ")"))) (; ";")) (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(char *var_1,type_1 *f)

{
  int var_5;
  char *pcVar2;
  int *__ptr;
  int *var_6;
  
  if (var_1 == (char *)0x0) {
    pcVar2 = (char *)var_2(0,"Supported architectures:",5);
    var_3((type_1 *)f,pcVar2);
  }
  else {
    pcVar2 = (char *)var_2(0,"%s: supported architectures:",5);
    var_3((type_1 *)f,pcVar2,var_1);
  }
  __ptr = (int *)var_4();
  var_5 = *__ptr;
  var_6 = __ptr;
  while (var_5 != 0) {
    var_6 = var_6 + 1;
    var_3((type_1 *)f," %s",var_5);
    var_5 = *var_6;
  }
  var_7(10,(type_1 *)f);
  var_8(__ptr);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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 (number_literal) (string_literal (string_content)) (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) alternative: (else_clause (compound_statement (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 (number_literal) (string_literal (string_content)) (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (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))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier)))) (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(int param_1,FILE *param_2)

{
  int iVar1;
  char *pcVar2;
  int *__ptr;
  int *piVar3;
  
  if (param_1 == 0) {
    pcVar2 = (char *)dcgettext(0,"Supported architectures:",5);
    fprintf(param_2,pcVar2);
  }
  else {
    pcVar2 = (char *)dcgettext(0,"%s: supported architectures:",5);
    fprintf(param_2,pcVar2,param_1);
  }
  __ptr = (int *)bfd_arch_list();
  iVar1 = *__ptr;
  piVar3 = __ptr;
  while (iVar1 != 0) {
    piVar3 = piVar3 + 1;
    fprintf(param_2," %s",iVar1);
    iVar1 = *piVar3;
  }
  fputc(10,param_2);
  free(__ptr);
  return;
}

