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

bfd_boolean pr_end_block(void *p,bfd_vma addr)

{
  int *piVar1;
  uint uVar2;
  char ab [22];
  
  ab[0x12] = -8;
  ab[0x13] = 'j';
  ab[0x14] = '\x03';
  ab[0x15] = '\0';
  piVar1 = (int *)((int)p + 4);
  *piVar1 = *piVar1 + -2;
  if (*piVar1 != 0) {
    uVar2 = 0;
    do {
                    /* WARNING: Load size is inaccurate */
      uVar2 = uVar2 + 1;
      putc(0x20,*p);
    } while (uVar2 < *(uint *)((int)p + 4));
  }
  sprintf(ab,"0x%llx",(undefined4)addr,addr._4_4_);
                    /* WARNING: Load size is inaccurate */
  fprintf(*p,"} /* %s */\n",ab);
  return 1;
}



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

undefined4 FUN_00036af0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)

{
  int *piVar1;
  uint uVar2;
  char local_22 [18];
  undefined4 uStack_10;
  
  uStack_10 = 0x36af8;
  piVar1 = param_1 + 1;
  *piVar1 = *piVar1 + -2;
  if (*piVar1 != 0) {
    uVar2 = 0;
    do {
      uVar2 = uVar2 + 1;
      putc(0x20,(FILE *)*param_1);
    } while (uVar2 < (uint)param_1[1]);
  }
  sprintf(local_22,"0x%llx",param_2,param_3);
  fprintf((FILE *)*param_1,"} /* %s */\n",local_22);
  return 1;
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000153d0
ADD EBX,0x3c508
SUB ESP,0x30
MOV EDI,dword ptr [ESP + 0x40]
MOV EAX,dword ptr [ESP + 0x44]
MOV EDX,dword ptr [ESP + 0x48]
SUB dword ptr [EDI + 0x4],0x2
MOV dword ptr [ESP + 0x8],EAX
MOV dword ptr [ESP + 0xc],EDX
JZ 0x00036b37
XOR ESI,ESI
LEA ESI,[ESI]
SUB ESP,0x8
PUSH dword ptr [EDI]
ADD ESI,0x1
PUSH 0x20
CALL 0x000146a0
ADD ESP,0x10
CMP ESI,dword ptr [EDI + 0x4]
JC 0x00036b20
LEA EAX,[EBX + 0xfffe4117]
PUSH dword ptr [ESP + 0xc]
PUSH dword ptr [ESP + 0xc]
PUSH EAX
LEA ESI,[ESP + 0x26]
PUSH ESI
CALL 0x000146d0
ADD ESP,0xc
LEA EAX,[EBX + 0xfffe411e]
PUSH ESI
PUSH EAX
PUSH dword ptr [EDI]
CALL 0x00014878
ADD ESP,0x40
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00036af0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  char local_22 [18];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x36af8;\n  piVar1 = param_1 + 1;\n  *piVar1 = *piVar1 + -2;\n  if (*piVar1 != 0) {\n    uVar2 = 0;\n    do {\n      uVar2 = uVar2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar2 < (uint)param_1[1]);\n  }\n  sprintf(local_22,"0x%llx",param_2,param_3);\n  fprintf((FILE *)*param_1,"} /* %s */\n",local_22);\n  return 1;\n}\n\n" comment (function_definition "undefined4 FUN_00036af0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  char local_22 [18];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x36af8;\n  piVar1 = param_1 + 1;\n  *piVar1 = *piVar1 + -2;\n  if (*piVar1 != 0) {\n    uVar2 = 0;\n    do {\n      uVar2 = uVar2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar2 < (uint)param_1[1]);\n  }\n  sprintf(local_22,"0x%llx",param_2,param_3);\n  fprintf((FILE *)*param_1,"} /* %s */\n",local_22);\n  return 1;\n}" type_identifier (function_declarator "FUN_00036af0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  char local_22 [18];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x36af8;\n  piVar1 = param_1 + 1;\n  *piVar1 = *piVar1 + -2;\n  if (*piVar1 != 0) {\n    uVar2 = 0;\n    do {\n      uVar2 = uVar2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar2 < (uint)param_1[1]);\n  }\n  sprintf(local_22,"0x%llx",param_2,param_3);\n  fprintf((FILE *)*param_1,"} /* %s */\n",local_22);\n  return 1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "char local_22 [18];" primitive_type (array_declarator "local_22 [18]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_10;" type_identifier identifier ;) (expression_statement "uStack_10 = 0x36af8;" (assignment_expression "uStack_10 = 0x36af8" identifier = number_literal) ;) (expression_statement "piVar1 = param_1 + 1;" (assignment_expression "piVar1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "*piVar1 = *piVar1 + -2;" (assignment_expression "*piVar1 = *piVar1 + -2" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -2" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (if_statement "if (*piVar1 != 0) {\n    uVar2 = 0;\n    do {\n      uVar2 = uVar2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar2 < (uint)param_1[1]);\n  }" if (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) (compound_statement "{\n    uVar2 = 0;\n    do {\n      uVar2 = uVar2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar2 < (uint)param_1[1]);\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar2 = uVar2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar2 < (uint)param_1[1]);" do (compound_statement "{\n      uVar2 = uVar2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    }" { (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (expression_statement "putc(0x20,(FILE *)*param_1);" (call_expression "putc(0x20,(FILE *)*param_1)" identifier (argument_list "(0x20,(FILE *)*param_1)" ( number_literal , (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) }) while (parenthesized_expression "(uVar2 < (uint)param_1[1])" ( (binary_expression "uVar2 < (uint)param_1[1]" identifier < (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) ;) })) (expression_statement "sprintf(local_22,"0x%llx",param_2,param_3);" (call_expression "sprintf(local_22,"0x%llx",param_2,param_3)" identifier (argument_list "(local_22,"0x%llx",param_2,param_3)" ( identifier , (string_literal ""0x%llx"" " string_content ") , identifier , identifier ))) ;) (expression_statement "fprintf((FILE *)*param_1,"} /* %s */\n",local_22);" (call_expression "fprintf((FILE *)*param_1,"} /* %s */\n",local_22)" identifier (argument_list "((FILE *)*param_1,"} /* %s */\n",local_22)" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (string_literal ""} /* %s */\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\nbfd_boolean pr_end_block(void *p,bfd_vma addr)\n\n{\n  int *piVar1;\n  uint uVar2;\n  char ab [22];\n  \n  ab[0x12] = -8;\n  ab[0x13] = 'j';\n  ab[0x14] = '\x03';\n  ab[0x15] = '\0';\n  piVar1 = (int *)((int)p + 4);\n  *piVar1 = *piVar1 + -2;\n  if (*piVar1 != 0) {\n    uVar2 = 0;\n    do {\n                    /* WARNING: Load size is inaccurate */\n      uVar2 = uVar2 + 1;\n      putc(0x20,*p);\n    } while (uVar2 < *(uint *)((int)p + 4));\n  }\n  sprintf(ab,"0x%llx",(undefined4)addr,addr._4_4_);\n                    /* WARNING: Load size is inaccurate */\n  fprintf(*p,"} /* %s */\n",ab);\n  return 1;\n}\n\n" comment comment (function_definition "bfd_boolean pr_end_block(void *p,bfd_vma addr)\n\n{\n  int *piVar1;\n  uint uVar2;\n  char ab [22];\n  \n  ab[0x12] = -8;\n  ab[0x13] = 'j';\n  ab[0x14] = '\x03';\n  ab[0x15] = '\0';\n  piVar1 = (int *)((int)p + 4);\n  *piVar1 = *piVar1 + -2;\n  if (*piVar1 != 0) {\n    uVar2 = 0;\n    do {\n                    /* WARNING: Load size is inaccurate */\n      uVar2 = uVar2 + 1;\n      putc(0x20,*p);\n    } while (uVar2 < *(uint *)((int)p + 4));\n  }\n  sprintf(ab,"0x%llx",(undefined4)addr,addr._4_4_);\n                    /* WARNING: Load size is inaccurate */\n  fprintf(*p,"} /* %s */\n",ab);\n  return 1;\n}" type_identifier (function_declarator "pr_end_block(void *p,bfd_vma addr)" identifier (parameter_list "(void *p,bfd_vma addr)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "bfd_vma addr" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  char ab [22];\n  \n  ab[0x12] = -8;\n  ab[0x13] = 'j';\n  ab[0x14] = '\x03';\n  ab[0x15] = '\0';\n  piVar1 = (int *)((int)p + 4);\n  *piVar1 = *piVar1 + -2;\n  if (*piVar1 != 0) {\n    uVar2 = 0;\n    do {\n                    /* WARNING: Load size is inaccurate */\n      uVar2 = uVar2 + 1;\n      putc(0x20,*p);\n    } while (uVar2 < *(uint *)((int)p + 4));\n  }\n  sprintf(ab,"0x%llx",(undefined4)addr,addr._4_4_);\n                    /* WARNING: Load size is inaccurate */\n  fprintf(*p,"} /* %s */\n",ab);\n  return 1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "char ab [22];" primitive_type (array_declarator "ab [22]" identifier [ number_literal ]) ;) (expression_statement "ab[0x12] = -8;" (assignment_expression "ab[0x12] = -8" (subscript_expression "ab[0x12]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "ab[0x13] = 'j';" (assignment_expression "ab[0x13] = 'j'" (subscript_expression "ab[0x13]" identifier [ number_literal ]) = (char_literal "'j'" ' character ')) ;) (expression_statement "ab[0x14] = '\x03';" (assignment_expression "ab[0x14] = '\x03'" (subscript_expression "ab[0x14]" identifier [ number_literal ]) = (char_literal "'\x03'" ' escape_sequence ')) ;) (expression_statement "ab[0x15] = '\0';" (assignment_expression "ab[0x15] = '\0'" (subscript_expression "ab[0x15]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "piVar1 = (int *)((int)p + 4);" (assignment_expression "piVar1 = (int *)((int)p + 4)" identifier = (cast_expression "(int *)((int)p + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 4)" ( (binary_expression "(int)p + 4" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "*piVar1 = *piVar1 + -2;" (assignment_expression "*piVar1 = *piVar1 + -2" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -2" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (if_statement "if (*piVar1 != 0) {\n    uVar2 = 0;\n    do {\n                    /* WARNING: Load size is inaccurate */\n      uVar2 = uVar2 + 1;\n      putc(0x20,*p);\n    } while (uVar2 < *(uint *)((int)p + 4));\n  }" if (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) (compound_statement "{\n    uVar2 = 0;\n    do {\n                    /* WARNING: Load size is inaccurate */\n      uVar2 = uVar2 + 1;\n      putc(0x20,*p);\n    } while (uVar2 < *(uint *)((int)p + 4));\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n                    /* WARNING: Load size is inaccurate */\n      uVar2 = uVar2 + 1;\n      putc(0x20,*p);\n    } while (uVar2 < *(uint *)((int)p + 4));" do (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n      uVar2 = uVar2 + 1;\n      putc(0x20,*p);\n    }" { comment (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (expression_statement "putc(0x20,*p);" (call_expression "putc(0x20,*p)" identifier (argument_list "(0x20,*p)" ( number_literal , (pointer_expression "*p" * identifier) ))) ;) }) while (parenthesized_expression "(uVar2 < *(uint *)((int)p + 4))" ( (binary_expression "uVar2 < *(uint *)((int)p + 4)" identifier < (pointer_expression "*(uint *)((int)p + 4)" * (cast_expression "(uint *)((int)p + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 4)" ( (binary_expression "(int)p + 4" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) ;) })) (expression_statement "sprintf(ab,"0x%llx",(undefined4)addr,addr._4_4_);" (call_expression "sprintf(ab,"0x%llx",(undefined4)addr,addr._4_4_)" identifier (argument_list "(ab,"0x%llx",(undefined4)addr,addr._4_4_)" ( identifier , (string_literal ""0x%llx"" " string_content ") , (cast_expression "(undefined4)addr" ( (type_descriptor "undefined4" type_identifier) ) identifier) , (field_expression "addr._4_4_" identifier . field_identifier) ))) ;) comment (expression_statement "fprintf(*p,"} /* %s */\n",ab);" (call_expression "fprintf(*p,"} /* %s */\n",ab)" identifier (argument_list "(*p,"} /* %s */\n",ab)" ( (pointer_expression "*p" * identifier) , (string_literal ""} /* %s */\n"" " string_content escape_sequence ") , identifier ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00036af0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  char local_22 [18];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x36af8;\n  piVar1 = param_1 + 1;\n  *piVar1 = *piVar1 + -2;\n  if (*piVar1 != 0) {\n    uVar2 = 0;\n    do {\n      uVar2 = uVar2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar2 < (uint)param_1[1]);\n  }\n  sprintf(local_22,"0x%llx",param_2,param_3);\n  fprintf((FILE *)*param_1,"} \n",local_22);\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00036af0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  char local_22 [18];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x36af8;\n  piVar1 = param_1 + 1;\n  *piVar1 = *piVar1 + -2;\n  if (*piVar1 != 0) {\n    uVar2 = 0;\n    do {\n      uVar2 = uVar2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar2 < (uint)param_1[1]);\n  }\n  sprintf(local_22,"0x%llx",param_2,param_3);\n  fprintf((FILE *)*param_1,"} \n",local_22);\n  return 1;\n}" type_identifier (function_declarator "FUN_00036af0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  char local_22 [18];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x36af8;\n  piVar1 = param_1 + 1;\n  *piVar1 = *piVar1 + -2;\n  if (*piVar1 != 0) {\n    uVar2 = 0;\n    do {\n      uVar2 = uVar2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar2 < (uint)param_1[1]);\n  }\n  sprintf(local_22,"0x%llx",param_2,param_3);\n  fprintf((FILE *)*param_1,"} \n",local_22);\n  return 1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "char local_22 [18];" primitive_type (array_declarator "local_22 [18]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_10;" type_identifier identifier ;) (expression_statement "uStack_10 = 0x36af8;" (assignment_expression "uStack_10 = 0x36af8" identifier = number_literal) ;) (expression_statement "piVar1 = param_1 + 1;" (assignment_expression "piVar1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "*piVar1 = *piVar1 + -2;" (assignment_expression "*piVar1 = *piVar1 + -2" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -2" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (if_statement "if (*piVar1 != 0) {\n    uVar2 = 0;\n    do {\n      uVar2 = uVar2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar2 < (uint)param_1[1]);\n  }" if (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) (compound_statement "{\n    uVar2 = 0;\n    do {\n      uVar2 = uVar2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar2 < (uint)param_1[1]);\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar2 = uVar2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar2 < (uint)param_1[1]);" do (compound_statement "{\n      uVar2 = uVar2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    }" { (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (expression_statement "putc(0x20,(FILE *)*param_1);" (call_expression "putc(0x20,(FILE *)*param_1)" identifier (argument_list "(0x20,(FILE *)*param_1)" ( number_literal , (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) }) while (parenthesized_expression "(uVar2 < (uint)param_1[1])" ( (binary_expression "uVar2 < (uint)param_1[1]" identifier < (cast_expression "(uint)param_1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) ;) })) (expression_statement "sprintf(local_22,"0x%llx",param_2,param_3);" (call_expression "sprintf(local_22,"0x%llx",param_2,param_3)" identifier (argument_list "(local_22,"0x%llx",param_2,param_3)" ( identifier , (string_literal ""0x%llx"" " string_content ") , identifier , identifier ))) ;) (expression_statement "fprintf((FILE *)*param_1,"} \n",local_22);" (call_expression "fprintf((FILE *)*param_1,"} \n",local_22)" identifier (argument_list "((FILE *)*param_1,"} \n",local_22)" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (string_literal ""} \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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , (string_literal " string_content escape_sequence ") , IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00036af0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  char local_22 [18];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x36af8;\n  piVar1 = param_1 + 1;\n  *piVar1 = *piVar1 + -2;\n  if (*piVar1 != 0) {\n    uVar2 = 0;\n    do {\n      uVar2 = uVar2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar2 < (uint)param_1[1]);\n  }\n  sprintf(local_22,"0x%llx",param_2,param_3);\n  fprintf((FILE *)*param_1,"} \n",local_22);\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00036af0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_00036af0") (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  char local_22 [18];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x36af8;\n  piVar1 = param_1 + 1;\n  *piVar1 = *piVar1 + -2;\n  if (*piVar1 != 0) {\n    uVar2 = 0;\n    do {\n      uVar2 = uVar2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar2 < (uint)param_1[1]);\n  }\n  sprintf(local_22,"0x%llx",param_2,param_3);\n  fprintf((FILE *)*param_1,"} \n",local_22);\n  return 1;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "char local_22 [18];" (primitive_type "char") (array_declarator "local_22 [18]" (identifier "local_22") ([ "[") (number_literal "18") (] "]")) (; ";")) (declaration "undefined4 uStack_10;" (type_identifier "undefined4") (identifier "uStack_10") (; ";")) (expression_statement "uStack_10 = 0x36af8;" (assignment_expression "uStack_10 = 0x36af8" (identifier "uStack_10") (= "=") (number_literal "0x36af8")) (; ";")) (expression_statement "piVar1 = param_1 + 1;" (assignment_expression "piVar1 = param_1 + 1" (identifier "piVar1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*piVar1 = *piVar1 + -2;" (assignment_expression "*piVar1 = *piVar1 + -2" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "*piVar1 + -2" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "-2"))) (; ";")) (if_statement "if (*piVar1 != 0) {\n    uVar2 = 0;\n    do {\n      uVar2 = uVar2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar2 < (uint)param_1[1]);\n  }" (if "if") (parenthesized_expression "(*piVar1 != 0)" (( "(") (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = 0;\n    do {\n      uVar2 = uVar2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar2 < (uint)param_1[1]);\n  }" ({ "{") (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      uVar2 = uVar2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar2 < (uint)param_1[1]);" (do "do") (compound_statement "{\n      uVar2 = uVar2 + 1;\n      putc(0x20,(FILE *)*param_1);\n    }" ({ "{") (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" (identifier "uVar2") (= "=") (binary_expression "uVar2 + 1" (identifier "uVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "putc(0x20,(FILE *)*param_1);" (call_expression "putc(0x20,(FILE *)*param_1)" (identifier "putc") (argument_list "(0x20,(FILE *)*param_1)" (( "(") (number_literal "0x20") (, ",") (cast_expression "(FILE *)*param_1" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar2 < (uint)param_1[1])" (( "(") (binary_expression "uVar2 < (uint)param_1[1]" (identifier "uVar2") (< "<") (cast_expression "(uint)param_1[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (; ";")) (} "}"))) (expression_statement "sprintf(local_22,"0x%llx",param_2,param_3);" (call_expression "sprintf(local_22,"0x%llx",param_2,param_3)" (identifier "sprintf") (argument_list "(local_22,"0x%llx",param_2,param_3)" (( "(") (identifier "local_22") (, ",") (string_literal ""0x%llx"" (" """) (string_content "0x%llx") (" """)) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "fprintf((FILE *)*param_1,"} \n",local_22);" (call_expression "fprintf((FILE *)*param_1,"} \n",local_22)" (identifier "fprintf") (argument_list "((FILE *)*param_1,"} \n",local_22)" (( "(") (cast_expression "(FILE *)*param_1" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (string_literal ""} \n"" (" """) (string_content "} ") (escape_sequence "\n") (" """)) (, ",") (identifier "local_22") () ")"))) (; ";")) (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 */

type_1 function_1(void *p,type_2 addr)

{
  int *piVar1;
  type_3 var_1;
  char ab [22];
  
  ab[0x12] = -8;
  ab[0x13] = 'j';
  ab[0x14] = '\x03';
  ab[0x15] = '\0';
  piVar1 = (int *)((int)p + 4);
  *piVar1 = *piVar1 + -2;
  if (*piVar1 != 0) {
    var_1 = 0;
    do {
                    /* WARNING: Load size is inaccurate */
      var_1 = var_1 + 1;
      var_2(0x20,*p);
    } while (var_1 < *(type_3 *)((int)p + 4));
  }
  var_3(ab,"0x%llx",(type_4)addr,addr._4_4_);
                    /* WARNING: Load size is inaccurate */
  var_4(*p,"} /* %s */\n",ab);
  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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement 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 (number_literal) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (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(undefined4 *param_1,undefined4 param_2,undefined4 param_3)

{
  int *piVar1;
  uint uVar2;
  char local_22 [18];
  undefined4 uStack_10;
  
  uStack_10 = 0x36af8;
  piVar1 = param_1 + 1;
  *piVar1 = *piVar1 + -2;
  if (*piVar1 != 0) {
    uVar2 = 0;
    do {
      uVar2 = uVar2 + 1;
      putc(0x20,(FILE *)*param_1);
    } while (uVar2 < (uint)param_1[1]);
  }
  sprintf(local_22,"0x%llx",param_2,param_3);
  fprintf((FILE *)*param_1,"} /* %s */\n",local_22);
  return 1;
}

