
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void lang_print_memory_usage(void)

{
  memory_region_struct *pmVar1;
  memory_region_struct *pmVar2;
  bfd_vma sz;
  
  printf("Memory region         Used Size  Region Size  %%age Used\n");
  pmVar1 = lang_memory_region_list->next;
  pmVar2 = lang_memory_region_list;
  while (pmVar1 != (memory_region_struct *)0x0) {
    sz = pmVar2->current - pmVar2->origin;
    printf("%16s: ",(pmVar2->name_list).name);
    lang_print_memory_size(sz);
    lang_print_memory_size(pmVar2->length);
    printf("    %6.2f%%\n",(double)(((float)sz * DAT_0004d084) / (float)pmVar2->length));
    pmVar2 = pmVar2->next;
    pmVar1 = pmVar2->next;
  }
  return;
}



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

void FUN_0002a250(void)

{
  int iVar1;
  int iVar2;
  undefined4 *puVar3;
  
  printf("Memory region         Used Size  Region Size  %%age Used\n");
  iVar1 = DAT_0008c7cc[2];
  puVar3 = DAT_0008c7cc;
  while (iVar1 != 0) {
    iVar1 = puVar3[7];
    iVar2 = puVar3[4];
    printf("%16s: ",*puVar3);
    FUN_00021000();
    FUN_00021000();
    printf("    %6.2f%%\n",
           (double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]));
    puVar3 = (undefined4 *)puVar3[2];
    iVar1 = puVar3[2];
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015a20
ADD EBX,0x61da7
SUB ESP,0x38
LEA EAX,[EBX + 0xfffc1048]
PUSH EAX
CALL 0x00014110
MOV EDI,dword ptr [EBX + 0x7cc]
ADD ESP,0x10
MOV ECX,dword ptr [EDI + 0x8]
TEST ECX,ECX
JZ 0x0002a2f3
LEA EAX,[EBX + 0xfffc01ca]
LEA EBP,[EBX + 0xfffc01c3]
MOV dword ptr [ESP + 0x14],EAX
NOP
SUB ESP,0x8
MOV ESI,dword ptr [EDI + 0x1c]
SUB ESI,dword ptr [EDI + 0x10]
PUSH dword ptr [EDI]
PUSH EBP
CALL 0x00014110
MOV EAX,ESI
CALL 0x00021000
MOV EAX,dword ptr [EDI + 0x14]
CALL 0x00021000
POP EAX
MOV EAX,dword ptr [EDI + 0x14]
XOR EDX,EDX
MOV dword ptr [ESP + 0x14],ESI
MOV dword ptr [ESP + 0x18],0x0
FILD qword ptr [ESP + 0x14]
MOV dword ptr [ESP + 0x18],EDX
FMUL dword ptr [EBX + 0xfffc1084]
MOV dword ptr [ESP + 0x14],EAX
FILD qword ptr [ESP + 0x14]
FDIVP
FSTP qword ptr [ESP]
PUSH dword ptr [ESP + 0x20]
CALL 0x00014110
MOV EDI,dword ptr [EDI + 0x8]
ADD ESP,0x10
MOV EDX,dword ptr [EDI + 0x8]
TEST EDX,EDX
JNZ 0x0002a290
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0002a250(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  \n  printf("Memory region         Used Size  Region Size  %%age Used\n");\n  iVar1 = DAT_0008c7cc[2];\n  puVar3 = DAT_0008c7cc;\n  while (iVar1 != 0) {\n    iVar1 = puVar3[7];\n    iVar2 = puVar3[4];\n    printf("%16s: ",*puVar3);\n    FUN_00021000();\n    FUN_00021000();\n    printf("    %6.2f%%\n",\n           (double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]));\n    puVar3 = (undefined4 *)puVar3[2];\n    iVar1 = puVar3[2];\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0002a250(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  \n  printf("Memory region         Used Size  Region Size  %%age Used\n");\n  iVar1 = DAT_0008c7cc[2];\n  puVar3 = DAT_0008c7cc;\n  while (iVar1 != 0) {\n    iVar1 = puVar3[7];\n    iVar2 = puVar3[4];\n    printf("%16s: ",*puVar3);\n    FUN_00021000();\n    FUN_00021000();\n    printf("    %6.2f%%\n",\n           (double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]));\n    puVar3 = (undefined4 *)puVar3[2];\n    iVar1 = puVar3[2];\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0002a250(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  \n  printf("Memory region         Used Size  Region Size  %%age Used\n");\n  iVar1 = DAT_0008c7cc[2];\n  puVar3 = DAT_0008c7cc;\n  while (iVar1 != 0) {\n    iVar1 = puVar3[7];\n    iVar2 = puVar3[4];\n    printf("%16s: ",*puVar3);\n    FUN_00021000();\n    FUN_00021000();\n    printf("    %6.2f%%\n",\n           (double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]));\n    puVar3 = (undefined4 *)puVar3[2];\n    iVar1 = puVar3[2];\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "printf("Memory region         Used Size  Region Size  %%age Used\n");" (call_expression "printf("Memory region         Used Size  Region Size  %%age Used\n")" identifier (argument_list "("Memory region         Used Size  Region Size  %%age Used\n")" ( (string_literal ""Memory region         Used Size  Region Size  %%age Used\n"" " string_content escape_sequence ") ))) ;) (expression_statement "iVar1 = DAT_0008c7cc[2];" (assignment_expression "iVar1 = DAT_0008c7cc[2]" identifier = (subscript_expression "DAT_0008c7cc[2]" identifier [ number_literal ])) ;) (expression_statement "puVar3 = DAT_0008c7cc;" (assignment_expression "puVar3 = DAT_0008c7cc" identifier = identifier) ;) (while_statement "while (iVar1 != 0) {\n    iVar1 = puVar3[7];\n    iVar2 = puVar3[4];\n    printf("%16s: ",*puVar3);\n    FUN_00021000();\n    FUN_00021000();\n    printf("    %6.2f%%\n",\n           (double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]));\n    puVar3 = (undefined4 *)puVar3[2];\n    iVar1 = puVar3[2];\n  }" while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = puVar3[7];\n    iVar2 = puVar3[4];\n    printf("%16s: ",*puVar3);\n    FUN_00021000();\n    FUN_00021000();\n    printf("    %6.2f%%\n",\n           (double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]));\n    puVar3 = (undefined4 *)puVar3[2];\n    iVar1 = puVar3[2];\n  }" { (expression_statement "iVar1 = puVar3[7];" (assignment_expression "iVar1 = puVar3[7]" identifier = (subscript_expression "puVar3[7]" identifier [ number_literal ])) ;) (expression_statement "iVar2 = puVar3[4];" (assignment_expression "iVar2 = puVar3[4]" identifier = (subscript_expression "puVar3[4]" identifier [ number_literal ])) ;) (expression_statement "printf("%16s: ",*puVar3);" (call_expression "printf("%16s: ",*puVar3)" identifier (argument_list "("%16s: ",*puVar3)" ( (string_literal ""%16s: "" " string_content ") , (pointer_expression "*puVar3" * identifier) ))) ;) (expression_statement "FUN_00021000();" (call_expression "FUN_00021000()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00021000();" (call_expression "FUN_00021000()" identifier (argument_list "()" ( ))) ;) (expression_statement "printf("    %6.2f%%\n",\n           (double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]));" (call_expression "printf("    %6.2f%%\n",\n           (double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]))" identifier (argument_list "("    %6.2f%%\n",\n           (double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]))" ( (string_literal ""    %6.2f%%\n"" " string_content escape_sequence ") , (cast_expression "(double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5])" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5])" ( (binary_expression "((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]" (parenthesized_expression "((float)(uint)(iVar1 - iVar2) * DAT_0004d084)" ( (binary_expression "(float)(uint)(iVar1 - iVar2) * DAT_0004d084" (cast_expression "(float)(uint)(iVar1 - iVar2)" ( (type_descriptor "float" primitive_type) ) (call_expression "(uint)(iVar1 - iVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 - iVar2)" ( (binary_expression "iVar1 - iVar2" identifier - identifier) )))) * identifier) )) / (cast_expression "(float)(uint)puVar3[5]" ( (type_descriptor "float" primitive_type) ) (cast_expression "(uint)puVar3[5]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "puVar3[5]" identifier [ number_literal ])))) ))) ))) ;) (expression_statement "puVar3 = (undefined4 *)puVar3[2];" (assignment_expression "puVar3 = (undefined4 *)puVar3[2]" identifier = (cast_expression "(undefined4 *)puVar3[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[2]" identifier [ number_literal ]))) ;) (expression_statement "iVar1 = puVar3[2];" (assignment_expression "iVar1 = puVar3[2]" identifier = (subscript_expression "puVar3[2]" identifier [ 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 -- yet parameter storage is locked */\n\nvoid lang_print_memory_usage(void)\n\n{\n  memory_region_struct *pmVar1;\n  memory_region_struct *pmVar2;\n  bfd_vma sz;\n  \n  printf("Memory region         Used Size  Region Size  %%age Used\n");\n  pmVar1 = lang_memory_region_list->next;\n  pmVar2 = lang_memory_region_list;\n  while (pmVar1 != (memory_region_struct *)0x0) {\n    sz = pmVar2->current - pmVar2->origin;\n    printf("%16s: ",(pmVar2->name_list).name);\n    lang_print_memory_size(sz);\n    lang_print_memory_size(pmVar2->length);\n    printf("    %6.2f%%\n",(double)(((float)sz * DAT_0004d084) / (float)pmVar2->length));\n    pmVar2 = pmVar2->next;\n    pmVar1 = pmVar2->next;\n  }\n  return;\n}\n\n" comment comment (function_definition "void lang_print_memory_usage(void)\n\n{\n  memory_region_struct *pmVar1;\n  memory_region_struct *pmVar2;\n  bfd_vma sz;\n  \n  printf("Memory region         Used Size  Region Size  %%age Used\n");\n  pmVar1 = lang_memory_region_list->next;\n  pmVar2 = lang_memory_region_list;\n  while (pmVar1 != (memory_region_struct *)0x0) {\n    sz = pmVar2->current - pmVar2->origin;\n    printf("%16s: ",(pmVar2->name_list).name);\n    lang_print_memory_size(sz);\n    lang_print_memory_size(pmVar2->length);\n    printf("    %6.2f%%\n",(double)(((float)sz * DAT_0004d084) / (float)pmVar2->length));\n    pmVar2 = pmVar2->next;\n    pmVar1 = pmVar2->next;\n  }\n  return;\n}" primitive_type (function_declarator "lang_print_memory_usage(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  memory_region_struct *pmVar1;\n  memory_region_struct *pmVar2;\n  bfd_vma sz;\n  \n  printf("Memory region         Used Size  Region Size  %%age Used\n");\n  pmVar1 = lang_memory_region_list->next;\n  pmVar2 = lang_memory_region_list;\n  while (pmVar1 != (memory_region_struct *)0x0) {\n    sz = pmVar2->current - pmVar2->origin;\n    printf("%16s: ",(pmVar2->name_list).name);\n    lang_print_memory_size(sz);\n    lang_print_memory_size(pmVar2->length);\n    printf("    %6.2f%%\n",(double)(((float)sz * DAT_0004d084) / (float)pmVar2->length));\n    pmVar2 = pmVar2->next;\n    pmVar1 = pmVar2->next;\n  }\n  return;\n}" { (declaration "memory_region_struct *pmVar1;" type_identifier (pointer_declarator "*pmVar1" * identifier) ;) (declaration "memory_region_struct *pmVar2;" type_identifier (pointer_declarator "*pmVar2" * identifier) ;) (declaration "bfd_vma sz;" type_identifier identifier ;) (expression_statement "printf("Memory region         Used Size  Region Size  %%age Used\n");" (call_expression "printf("Memory region         Used Size  Region Size  %%age Used\n")" identifier (argument_list "("Memory region         Used Size  Region Size  %%age Used\n")" ( (string_literal ""Memory region         Used Size  Region Size  %%age Used\n"" " string_content escape_sequence ") ))) ;) (expression_statement "pmVar1 = lang_memory_region_list->next;" (assignment_expression "pmVar1 = lang_memory_region_list->next" identifier = (field_expression "lang_memory_region_list->next" identifier -> field_identifier)) ;) (expression_statement "pmVar2 = lang_memory_region_list;" (assignment_expression "pmVar2 = lang_memory_region_list" identifier = identifier) ;) (while_statement "while (pmVar1 != (memory_region_struct *)0x0) {\n    sz = pmVar2->current - pmVar2->origin;\n    printf("%16s: ",(pmVar2->name_list).name);\n    lang_print_memory_size(sz);\n    lang_print_memory_size(pmVar2->length);\n    printf("    %6.2f%%\n",(double)(((float)sz * DAT_0004d084) / (float)pmVar2->length));\n    pmVar2 = pmVar2->next;\n    pmVar1 = pmVar2->next;\n  }" while (parenthesized_expression "(pmVar1 != (memory_region_struct *)0x0)" ( (binary_expression "pmVar1 != (memory_region_struct *)0x0" identifier != (cast_expression "(memory_region_struct *)0x0" ( (type_descriptor "memory_region_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sz = pmVar2->current - pmVar2->origin;\n    printf("%16s: ",(pmVar2->name_list).name);\n    lang_print_memory_size(sz);\n    lang_print_memory_size(pmVar2->length);\n    printf("    %6.2f%%\n",(double)(((float)sz * DAT_0004d084) / (float)pmVar2->length));\n    pmVar2 = pmVar2->next;\n    pmVar1 = pmVar2->next;\n  }" { (expression_statement "sz = pmVar2->current - pmVar2->origin;" (assignment_expression "sz = pmVar2->current - pmVar2->origin" identifier = (binary_expression "pmVar2->current - pmVar2->origin" (field_expression "pmVar2->current" identifier -> field_identifier) - (field_expression "pmVar2->origin" identifier -> field_identifier))) ;) (expression_statement "printf("%16s: ",(pmVar2->name_list).name);" (call_expression "printf("%16s: ",(pmVar2->name_list).name)" identifier (argument_list "("%16s: ",(pmVar2->name_list).name)" ( (string_literal ""%16s: "" " string_content ") , (field_expression "(pmVar2->name_list).name" (parenthesized_expression "(pmVar2->name_list)" ( (field_expression "pmVar2->name_list" identifier -> field_identifier) )) . field_identifier) ))) ;) (expression_statement "lang_print_memory_size(sz);" (call_expression "lang_print_memory_size(sz)" identifier (argument_list "(sz)" ( identifier ))) ;) (expression_statement "lang_print_memory_size(pmVar2->length);" (call_expression "lang_print_memory_size(pmVar2->length)" identifier (argument_list "(pmVar2->length)" ( (field_expression "pmVar2->length" identifier -> field_identifier) ))) ;) (expression_statement "printf("    %6.2f%%\n",(double)(((float)sz * DAT_0004d084) / (float)pmVar2->length));" (call_expression "printf("    %6.2f%%\n",(double)(((float)sz * DAT_0004d084) / (float)pmVar2->length))" identifier (argument_list "("    %6.2f%%\n",(double)(((float)sz * DAT_0004d084) / (float)pmVar2->length))" ( (string_literal ""    %6.2f%%\n"" " string_content escape_sequence ") , (cast_expression "(double)(((float)sz * DAT_0004d084) / (float)pmVar2->length)" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "(((float)sz * DAT_0004d084) / (float)pmVar2->length)" ( (binary_expression "((float)sz * DAT_0004d084) / (float)pmVar2->length" (parenthesized_expression "((float)sz * DAT_0004d084)" ( (binary_expression "(float)sz * DAT_0004d084" (cast_expression "(float)sz" ( (type_descriptor "float" primitive_type) ) identifier) * identifier) )) / (cast_expression "(float)pmVar2->length" ( (type_descriptor "float" primitive_type) ) (field_expression "pmVar2->length" identifier -> field_identifier))) ))) ))) ;) (expression_statement "pmVar2 = pmVar2->next;" (assignment_expression "pmVar2 = pmVar2->next" identifier = (field_expression "pmVar2->next" identifier -> field_identifier)) ;) (expression_statement "pmVar1 = pmVar2->next;" (assignment_expression "pmVar1 = pmVar2->next" identifier = (field_expression "pmVar2->next" identifier -> field_identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0002a250(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  \n  printf("Memory region         Used Size  Region Size  %%age Used\n");\n  iVar1 = DAT_0008c7cc[2];\n  puVar3 = DAT_0008c7cc;\n  while (iVar1 != 0) {\n    iVar1 = puVar3[7];\n    iVar2 = puVar3[4];\n    printf("%16s: ",*puVar3);\n    FUN_00021000();\n    FUN_00021000();\n    printf("    %6.2f%%\n",\n           (double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]));\n    puVar3 = (undefined4 *)puVar3[2];\n    iVar1 = puVar3[2];\n  }\n  return;\n}\n\n" (function_definition "void FUN_0002a250(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  \n  printf("Memory region         Used Size  Region Size  %%age Used\n");\n  iVar1 = DAT_0008c7cc[2];\n  puVar3 = DAT_0008c7cc;\n  while (iVar1 != 0) {\n    iVar1 = puVar3[7];\n    iVar2 = puVar3[4];\n    printf("%16s: ",*puVar3);\n    FUN_00021000();\n    FUN_00021000();\n    printf("    %6.2f%%\n",\n           (double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]));\n    puVar3 = (undefined4 *)puVar3[2];\n    iVar1 = puVar3[2];\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0002a250(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  \n  printf("Memory region         Used Size  Region Size  %%age Used\n");\n  iVar1 = DAT_0008c7cc[2];\n  puVar3 = DAT_0008c7cc;\n  while (iVar1 != 0) {\n    iVar1 = puVar3[7];\n    iVar2 = puVar3[4];\n    printf("%16s: ",*puVar3);\n    FUN_00021000();\n    FUN_00021000();\n    printf("    %6.2f%%\n",\n           (double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]));\n    puVar3 = (undefined4 *)puVar3[2];\n    iVar1 = puVar3[2];\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "printf("Memory region         Used Size  Region Size  %%age Used\n");" (call_expression "printf("Memory region         Used Size  Region Size  %%age Used\n")" identifier (argument_list "("Memory region         Used Size  Region Size  %%age Used\n")" ( (string_literal ""Memory region         Used Size  Region Size  %%age Used\n"" " string_content escape_sequence ") ))) ;) (expression_statement "iVar1 = DAT_0008c7cc[2];" (assignment_expression "iVar1 = DAT_0008c7cc[2]" identifier = (subscript_expression "DAT_0008c7cc[2]" identifier [ number_literal ])) ;) (expression_statement "puVar3 = DAT_0008c7cc;" (assignment_expression "puVar3 = DAT_0008c7cc" identifier = identifier) ;) (while_statement "while (iVar1 != 0) {\n    iVar1 = puVar3[7];\n    iVar2 = puVar3[4];\n    printf("%16s: ",*puVar3);\n    FUN_00021000();\n    FUN_00021000();\n    printf("    %6.2f%%\n",\n           (double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]));\n    puVar3 = (undefined4 *)puVar3[2];\n    iVar1 = puVar3[2];\n  }" while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = puVar3[7];\n    iVar2 = puVar3[4];\n    printf("%16s: ",*puVar3);\n    FUN_00021000();\n    FUN_00021000();\n    printf("    %6.2f%%\n",\n           (double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]));\n    puVar3 = (undefined4 *)puVar3[2];\n    iVar1 = puVar3[2];\n  }" { (expression_statement "iVar1 = puVar3[7];" (assignment_expression "iVar1 = puVar3[7]" identifier = (subscript_expression "puVar3[7]" identifier [ number_literal ])) ;) (expression_statement "iVar2 = puVar3[4];" (assignment_expression "iVar2 = puVar3[4]" identifier = (subscript_expression "puVar3[4]" identifier [ number_literal ])) ;) (expression_statement "printf("%16s: ",*puVar3);" (call_expression "printf("%16s: ",*puVar3)" identifier (argument_list "("%16s: ",*puVar3)" ( (string_literal ""%16s: "" " string_content ") , (pointer_expression "*puVar3" * identifier) ))) ;) (expression_statement "FUN_00021000();" (call_expression "FUN_00021000()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00021000();" (call_expression "FUN_00021000()" identifier (argument_list "()" ( ))) ;) (expression_statement "printf("    %6.2f%%\n",\n           (double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]));" (call_expression "printf("    %6.2f%%\n",\n           (double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]))" identifier (argument_list "("    %6.2f%%\n",\n           (double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]))" ( (string_literal ""    %6.2f%%\n"" " string_content escape_sequence ") , (cast_expression "(double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5])" ( (type_descriptor "double" primitive_type) ) (parenthesized_expression "(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5])" ( (binary_expression "((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]" (parenthesized_expression "((float)(uint)(iVar1 - iVar2) * DAT_0004d084)" ( (binary_expression "(float)(uint)(iVar1 - iVar2) * DAT_0004d084" (cast_expression "(float)(uint)(iVar1 - iVar2)" ( (type_descriptor "float" primitive_type) ) (call_expression "(uint)(iVar1 - iVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 - iVar2)" ( (binary_expression "iVar1 - iVar2" identifier - identifier) )))) * identifier) )) / (cast_expression "(float)(uint)puVar3[5]" ( (type_descriptor "float" primitive_type) ) (cast_expression "(uint)puVar3[5]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "puVar3[5]" identifier [ number_literal ])))) ))) ))) ;) (expression_statement "puVar3 = (undefined4 *)puVar3[2];" (assignment_expression "puVar3 = (undefined4 *)puVar3[2]" identifier = (cast_expression "(undefined4 *)puVar3[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[2]" identifier [ number_literal ]))) ;) (expression_statement "iVar1 = puVar3[2];" (assignment_expression "iVar1 = puVar3[2]" identifier = (subscript_expression "puVar3[2]" identifier [ number_literal ])) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (pointer_expression * IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - IDENT) )))) * IDENT) )) / (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])))) ))) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0002a250(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  \n  printf("Memory region         Used Size  Region Size  %%age Used\n");\n  iVar1 = DAT_0008c7cc[2];\n  puVar3 = DAT_0008c7cc;\n  while (iVar1 != 0) {\n    iVar1 = puVar3[7];\n    iVar2 = puVar3[4];\n    printf("%16s: ",*puVar3);\n    FUN_00021000();\n    FUN_00021000();\n    printf("    %6.2f%%\n",\n           (double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]));\n    puVar3 = (undefined4 *)puVar3[2];\n    iVar1 = puVar3[2];\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0002a250(void)" (identifier "FUN_0002a250") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  \n  printf("Memory region         Used Size  Region Size  %%age Used\n");\n  iVar1 = DAT_0008c7cc[2];\n  puVar3 = DAT_0008c7cc;\n  while (iVar1 != 0) {\n    iVar1 = puVar3[7];\n    iVar2 = puVar3[4];\n    printf("%16s: ",*puVar3);\n    FUN_00021000();\n    FUN_00021000();\n    printf("    %6.2f%%\n",\n           (double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]));\n    puVar3 = (undefined4 *)puVar3[2];\n    iVar1 = puVar3[2];\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (expression_statement "printf("Memory region         Used Size  Region Size  %%age Used\n");" (call_expression "printf("Memory region         Used Size  Region Size  %%age Used\n")" (identifier "printf") (argument_list "("Memory region         Used Size  Region Size  %%age Used\n")" (( "(") (string_literal ""Memory region         Used Size  Region Size  %%age Used\n"" (" """) (string_content "Memory region         Used Size  Region Size  %%age Used") (escape_sequence "\n") (" """)) () ")"))) (; ";")) (expression_statement "iVar1 = DAT_0008c7cc[2];" (assignment_expression "iVar1 = DAT_0008c7cc[2]" (identifier "iVar1") (= "=") (subscript_expression "DAT_0008c7cc[2]" (identifier "DAT_0008c7cc") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "puVar3 = DAT_0008c7cc;" (assignment_expression "puVar3 = DAT_0008c7cc" (identifier "puVar3") (= "=") (identifier "DAT_0008c7cc")) (; ";")) (while_statement "while (iVar1 != 0) {\n    iVar1 = puVar3[7];\n    iVar2 = puVar3[4];\n    printf("%16s: ",*puVar3);\n    FUN_00021000();\n    FUN_00021000();\n    printf("    %6.2f%%\n",\n           (double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]));\n    puVar3 = (undefined4 *)puVar3[2];\n    iVar1 = puVar3[2];\n  }" (while "while") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = puVar3[7];\n    iVar2 = puVar3[4];\n    printf("%16s: ",*puVar3);\n    FUN_00021000();\n    FUN_00021000();\n    printf("    %6.2f%%\n",\n           (double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]));\n    puVar3 = (undefined4 *)puVar3[2];\n    iVar1 = puVar3[2];\n  }" ({ "{") (expression_statement "iVar1 = puVar3[7];" (assignment_expression "iVar1 = puVar3[7]" (identifier "iVar1") (= "=") (subscript_expression "puVar3[7]" (identifier "puVar3") ([ "[") (number_literal "7") (] "]"))) (; ";")) (expression_statement "iVar2 = puVar3[4];" (assignment_expression "iVar2 = puVar3[4]" (identifier "iVar2") (= "=") (subscript_expression "puVar3[4]" (identifier "puVar3") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "printf("%16s: ",*puVar3);" (call_expression "printf("%16s: ",*puVar3)" (identifier "printf") (argument_list "("%16s: ",*puVar3)" (( "(") (string_literal ""%16s: "" (" """) (string_content "%16s: ") (" """)) (, ",") (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) () ")"))) (; ";")) (expression_statement "FUN_00021000();" (call_expression "FUN_00021000()" (identifier "FUN_00021000") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00021000();" (call_expression "FUN_00021000()" (identifier "FUN_00021000") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "printf("    %6.2f%%\n",\n           (double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]));" (call_expression "printf("    %6.2f%%\n",\n           (double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]))" (identifier "printf") (argument_list "("    %6.2f%%\n",\n           (double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]))" (( "(") (string_literal ""    %6.2f%%\n"" (" """) (string_content "    %6.2f%%") (escape_sequence "\n") (" """)) (, ",") (cast_expression "(double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5])" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (parenthesized_expression "(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5])" (( "(") (binary_expression "((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]" (parenthesized_expression "((float)(uint)(iVar1 - iVar2) * DAT_0004d084)" (( "(") (binary_expression "(float)(uint)(iVar1 - iVar2) * DAT_0004d084" (cast_expression "(float)(uint)(iVar1 - iVar2)" (( "(") (type_descriptor "float" (primitive_type "float")) () ")") (call_expression "(uint)(iVar1 - iVar2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar1 - iVar2)" (( "(") (binary_expression "iVar1 - iVar2" (identifier "iVar1") (- "-") (identifier "iVar2")) () ")")))) (* "*") (identifier "DAT_0004d084")) () ")")) (/ "/") (cast_expression "(float)(uint)puVar3[5]" (( "(") (type_descriptor "float" (primitive_type "float")) () ")") (cast_expression "(uint)puVar3[5]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "puVar3[5]" (identifier "puVar3") ([ "[") (number_literal "5") (] "]"))))) () ")"))) () ")"))) (; ";")) (expression_statement "puVar3 = (undefined4 *)puVar3[2];" (assignment_expression "puVar3 = (undefined4 *)puVar3[2]" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)puVar3[2]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "iVar1 = puVar3[2];" (assignment_expression "iVar1 = puVar3[2]" (identifier "iVar1") (= "=") (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  type_1 *var_2;
  type_1 *pmVar2;
  type_2 sz;
  
  var_1("Memory region         Used Size  Region Size  %%age Used\n");
  var_2 = lang_memory_region_list->next;
  pmVar2 = lang_memory_region_list;
  while (var_2 != (type_1 *)0x0) {
    sz = pmVar2->current - pmVar2->origin;
    var_1("%16s: ",(pmVar2->name_list).name);
    var_3(sz);
    var_3(pmVar2->length);
    var_1("    %6.2f%%\n",(double)(((float)sz * var_4) / (float)pmVar2->length));
    pmVar2 = pmVar2->next;
    var_2 = pmVar2->next;
  }
  return;
}


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

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

void MASKED(void)

{
  int iVar1;
  int iVar2;
  undefined4 *puVar3;
  
  printf("Memory region         Used Size  Region Size  %%age Used\n");
  iVar1 = DAT_0008c7cc[2];
  puVar3 = DAT_0008c7cc;
  while (iVar1 != 0) {
    iVar1 = puVar3[7];
    iVar2 = puVar3[4];
    printf("%16s: ",*puVar3);
    FUN_00021000();
    FUN_00021000();
    printf("    %6.2f%%\n",
           (double)(((float)(uint)(iVar1 - iVar2) * DAT_0004d084) / (float)(uint)puVar3[5]));
    puVar3 = (undefined4 *)puVar3[2];
    iVar1 = puVar3[2];
  }
  return;
}

