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

bfd_boolean pr_int_constant(void *p,char *name,bfd_vma val)

{
  uint uVar1;
  char ab [22];
  
  ab[0x12] = -0x48;
  ab[0x13] = -0x59;
  ab[0x14] = '\x03';
  ab[0x15] = '\0';
  if (*(int *)((int)p + 4) != 0) {
    uVar1 = 0;
    do {
                    /* WARNING: Load size is inaccurate */
      uVar1 = uVar1 + 1;
      putc(0x20,*p);
    } while (uVar1 < *(uint *)((int)p + 4));
  }
  sprintf(ab,"%lld",(undefined4)val,val._4_4_);
                    /* WARNING: Load size is inaccurate */
  fprintf(*p,"const int %s = %s;\n",name,ab);
  return 1;
}



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

undefined4
FUN_0003a7b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  uint uVar1;
  char local_22 [18];
  undefined4 uStack_10;
  
  uStack_10 = 0x3a7b8;
  if (param_1[1] != 0) {
    uVar1 = 0;
    do {
      uVar1 = uVar1 + 1;
      putc(0x20,(FILE *)*param_1);
    } while (uVar1 < (uint)param_1[1]);
  }
  sprintf(local_22,"%lld",param_3,param_4);
  fprintf((FILE *)*param_1,"const int %s = %s;\n",param_2,local_22);
  return 1;
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000153d0
ADD EBX,0x38848
SUB ESP,0x30
MOV EAX,dword ptr [ESP + 0x48]
MOV ESI,dword ptr [ESP + 0x40]
MOV EDX,dword ptr [ESP + 0x4c]
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [ESI + 0x4]
MOV dword ptr [ESP + 0xc],EDX
TEST EAX,EAX
JZ 0x0003a7f7
XOR EDI,EDI
NOP
SUB ESP,0x8
PUSH dword ptr [ESI]
ADD EDI,0x1
PUSH 0x20
CALL 0x000146a0
ADD ESP,0x10
CMP EDI,dword ptr [ESI + 0x4]
JC 0x0003a7e0
LEA EAX,[EBX + 0xfffe09fe]
PUSH dword ptr [ESP + 0xc]
PUSH dword ptr [ESP + 0xc]
PUSH EAX
LEA EDI,[ESP + 0x26]
PUSH EDI
CALL 0x000146d0
LEA EAX,[EBX + 0xfffe446c]
PUSH EDI
PUSH dword ptr [ESP + 0x58]
PUSH EAX
PUSH dword ptr [ESI]
CALL 0x00014878
ADD ESP,0x50
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\nFUN_0003a7b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  uint uVar1;\n  char local_22 [18];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x3a7b8;\n  if (param_1[1] != 0) {\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }\n  sprintf(local_22,"%lld",param_3,param_4);\n  fprintf((FILE *)*param_1,"const int %s = %s;\n",param_2,local_22);\n  return 1;\n}\n\n" comment (function_definition "undefined4\nFUN_0003a7b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  uint uVar1;\n  char local_22 [18];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x3a7b8;\n  if (param_1[1] != 0) {\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }\n  sprintf(local_22,"%lld",param_3,param_4);\n  fprintf((FILE *)*param_1,"const int %s = %s;\n",param_2,local_22);\n  return 1;\n}" type_identifier (function_declarator "FUN_0003a7b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (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) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  char local_22 [18];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x3a7b8;\n  if (param_1[1] != 0) {\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }\n  sprintf(local_22,"%lld",param_3,param_4);\n  fprintf((FILE *)*param_1,"const int %s = %s;\n",param_2,local_22);\n  return 1;\n}" { (declaration "uint uVar1;" 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 = 0x3a7b8;" (assignment_expression "uStack_10 = 0x3a7b8" identifier = number_literal) ;) (if_statement "if (param_1[1] != 0) {\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }" if (parenthesized_expression "(param_1[1] != 0)" ( (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);" do (compound_statement "{\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    }" { (expression_statement "uVar1 = uVar1 + 1;" (assignment_expression "uVar1 = uVar1 + 1" identifier = (binary_expression "uVar1 + 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 "(uVar1 < (uint)param_1[1])" ( (binary_expression "uVar1 < (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,"%lld",param_3,param_4);" (call_expression "sprintf(local_22,"%lld",param_3,param_4)" identifier (argument_list "(local_22,"%lld",param_3,param_4)" ( identifier , (string_literal ""%lld"" " string_content ") , identifier , identifier ))) ;) (expression_statement "fprintf((FILE *)*param_1,"const int %s = %s;\n",param_2,local_22);" (call_expression "fprintf((FILE *)*param_1,"const int %s = %s;\n",param_2,local_22)" identifier (argument_list "((FILE *)*param_1,"const int %s = %s;\n",param_2,local_22)" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (string_literal ""const int %s = %s;\n"" " string_content escape_sequence ") , identifier , 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_int_constant(void *p,char *name,bfd_vma val)\n\n{\n  uint uVar1;\n  char ab [22];\n  \n  ab[0x12] = -0x48;\n  ab[0x13] = -0x59;\n  ab[0x14] = '\x03';\n  ab[0x15] = '\0';\n  if (*(int *)((int)p + 4) != 0) {\n    uVar1 = 0;\n    do {\n                    /* WARNING: Load size is inaccurate */\n      uVar1 = uVar1 + 1;\n      putc(0x20,*p);\n    } while (uVar1 < *(uint *)((int)p + 4));\n  }\n  sprintf(ab,"%lld",(undefined4)val,val._4_4_);\n                    /* WARNING: Load size is inaccurate */\n  fprintf(*p,"const int %s = %s;\n",name,ab);\n  return 1;\n}\n\n" comment comment (function_definition "bfd_boolean pr_int_constant(void *p,char *name,bfd_vma val)\n\n{\n  uint uVar1;\n  char ab [22];\n  \n  ab[0x12] = -0x48;\n  ab[0x13] = -0x59;\n  ab[0x14] = '\x03';\n  ab[0x15] = '\0';\n  if (*(int *)((int)p + 4) != 0) {\n    uVar1 = 0;\n    do {\n                    /* WARNING: Load size is inaccurate */\n      uVar1 = uVar1 + 1;\n      putc(0x20,*p);\n    } while (uVar1 < *(uint *)((int)p + 4));\n  }\n  sprintf(ab,"%lld",(undefined4)val,val._4_4_);\n                    /* WARNING: Load size is inaccurate */\n  fprintf(*p,"const int %s = %s;\n",name,ab);\n  return 1;\n}" type_identifier (function_declarator "pr_int_constant(void *p,char *name,bfd_vma val)" identifier (parameter_list "(void *p,char *name,bfd_vma val)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "bfd_vma val" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  char ab [22];\n  \n  ab[0x12] = -0x48;\n  ab[0x13] = -0x59;\n  ab[0x14] = '\x03';\n  ab[0x15] = '\0';\n  if (*(int *)((int)p + 4) != 0) {\n    uVar1 = 0;\n    do {\n                    /* WARNING: Load size is inaccurate */\n      uVar1 = uVar1 + 1;\n      putc(0x20,*p);\n    } while (uVar1 < *(uint *)((int)p + 4));\n  }\n  sprintf(ab,"%lld",(undefined4)val,val._4_4_);\n                    /* WARNING: Load size is inaccurate */\n  fprintf(*p,"const int %s = %s;\n",name,ab);\n  return 1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char ab [22];" primitive_type (array_declarator "ab [22]" identifier [ number_literal ]) ;) (expression_statement "ab[0x12] = -0x48;" (assignment_expression "ab[0x12] = -0x48" (subscript_expression "ab[0x12]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "ab[0x13] = -0x59;" (assignment_expression "ab[0x13] = -0x59" (subscript_expression "ab[0x13]" identifier [ number_literal ]) = number_literal) ;) (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 ')) ;) (if_statement "if (*(int *)((int)p + 4) != 0) {\n    uVar1 = 0;\n    do {\n                    /* WARNING: Load size is inaccurate */\n      uVar1 = uVar1 + 1;\n      putc(0x20,*p);\n    } while (uVar1 < *(uint *)((int)p + 4));\n  }" if (parenthesized_expression "(*(int *)((int)p + 4) != 0)" ( (binary_expression "*(int *)((int)p + 4) != 0" (pointer_expression "*(int *)((int)p + 4)" * (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) )))) != number_literal) )) (compound_statement "{\n    uVar1 = 0;\n    do {\n                    /* WARNING: Load size is inaccurate */\n      uVar1 = uVar1 + 1;\n      putc(0x20,*p);\n    } while (uVar1 < *(uint *)((int)p + 4));\n  }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n                    /* WARNING: Load size is inaccurate */\n      uVar1 = uVar1 + 1;\n      putc(0x20,*p);\n    } while (uVar1 < *(uint *)((int)p + 4));" do (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n      uVar1 = uVar1 + 1;\n      putc(0x20,*p);\n    }" { comment (expression_statement "uVar1 = uVar1 + 1;" (assignment_expression "uVar1 = uVar1 + 1" identifier = (binary_expression "uVar1 + 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 "(uVar1 < *(uint *)((int)p + 4))" ( (binary_expression "uVar1 < *(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,"%lld",(undefined4)val,val._4_4_);" (call_expression "sprintf(ab,"%lld",(undefined4)val,val._4_4_)" identifier (argument_list "(ab,"%lld",(undefined4)val,val._4_4_)" ( identifier , (string_literal ""%lld"" " string_content ") , (cast_expression "(undefined4)val" ( (type_descriptor "undefined4" type_identifier) ) identifier) , (field_expression "val._4_4_" identifier . field_identifier) ))) ;) comment (expression_statement "fprintf(*p,"const int %s = %s;\n",name,ab);" (call_expression "fprintf(*p,"const int %s = %s;\n",name,ab)" identifier (argument_list "(*p,"const int %s = %s;\n",name,ab)" ( (pointer_expression "*p" * identifier) , (string_literal ""const int %s = %s;\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4\nFUN_0003a7b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  uint uVar1;\n  char local_22 [18];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x3a7b8;\n  if (param_1[1] != 0) {\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }\n  sprintf(local_22,"%lld",param_3,param_4);\n  fprintf((FILE *)*param_1,"const int %s = %s;\n",param_2,local_22);\n  return 1;\n}\n\n" (function_definition "undefined4\nFUN_0003a7b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  uint uVar1;\n  char local_22 [18];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x3a7b8;\n  if (param_1[1] != 0) {\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }\n  sprintf(local_22,"%lld",param_3,param_4);\n  fprintf((FILE *)*param_1,"const int %s = %s;\n",param_2,local_22);\n  return 1;\n}" type_identifier (function_declarator "FUN_0003a7b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (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) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  char local_22 [18];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x3a7b8;\n  if (param_1[1] != 0) {\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }\n  sprintf(local_22,"%lld",param_3,param_4);\n  fprintf((FILE *)*param_1,"const int %s = %s;\n",param_2,local_22);\n  return 1;\n}" { (declaration "uint uVar1;" 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 = 0x3a7b8;" (assignment_expression "uStack_10 = 0x3a7b8" identifier = number_literal) ;) (if_statement "if (param_1[1] != 0) {\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }" if (parenthesized_expression "(param_1[1] != 0)" ( (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);" do (compound_statement "{\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    }" { (expression_statement "uVar1 = uVar1 + 1;" (assignment_expression "uVar1 = uVar1 + 1" identifier = (binary_expression "uVar1 + 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 "(uVar1 < (uint)param_1[1])" ( (binary_expression "uVar1 < (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,"%lld",param_3,param_4);" (call_expression "sprintf(local_22,"%lld",param_3,param_4)" identifier (argument_list "(local_22,"%lld",param_3,param_4)" ( identifier , (string_literal ""%lld"" " string_content ") , identifier , identifier ))) ;) (expression_statement "fprintf((FILE *)*param_1,"const int %s = %s;\n",param_2,local_22);" (call_expression "fprintf((FILE *)*param_1,"const int %s = %s;\n",param_2,local_22)" identifier (argument_list "((FILE *)*param_1,"const int %s = %s;\n",param_2,local_22)" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (string_literal ""const int %s = %s;\n"" " string_content escape_sequence ") , identifier , 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) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != 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 , IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4\nFUN_0003a7b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  uint uVar1;\n  char local_22 [18];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x3a7b8;\n  if (param_1[1] != 0) {\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }\n  sprintf(local_22,"%lld",param_3,param_4);\n  fprintf((FILE *)*param_1,"const int %s = %s;\n",param_2,local_22);\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_0003a7b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_0003a7b0") (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (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")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  uint uVar1;\n  char local_22 [18];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x3a7b8;\n  if (param_1[1] != 0) {\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }\n  sprintf(local_22,"%lld",param_3,param_4);\n  fprintf((FILE *)*param_1,"const int %s = %s;\n",param_2,local_22);\n  return 1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (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 = 0x3a7b8;" (assignment_expression "uStack_10 = 0x3a7b8" (identifier "uStack_10") (= "=") (number_literal "0x3a7b8")) (; ";")) (if_statement "if (param_1[1] != 0) {\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }" (if "if") (parenthesized_expression "(param_1[1] != 0)" (( "(") (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);\n  }" ({ "{") (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    } while (uVar1 < (uint)param_1[1]);" (do "do") (compound_statement "{\n      uVar1 = uVar1 + 1;\n      putc(0x20,(FILE *)*param_1);\n    }" ({ "{") (expression_statement "uVar1 = uVar1 + 1;" (assignment_expression "uVar1 = uVar1 + 1" (identifier "uVar1") (= "=") (binary_expression "uVar1 + 1" (identifier "uVar1") (+ "+") (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 "(uVar1 < (uint)param_1[1])" (( "(") (binary_expression "uVar1 < (uint)param_1[1]" (identifier "uVar1") (< "<") (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,"%lld",param_3,param_4);" (call_expression "sprintf(local_22,"%lld",param_3,param_4)" (identifier "sprintf") (argument_list "(local_22,"%lld",param_3,param_4)" (( "(") (identifier "local_22") (, ",") (string_literal ""%lld"" (" """) (string_content "%lld") (" """)) (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (expression_statement "fprintf((FILE *)*param_1,"const int %s = %s;\n",param_2,local_22);" (call_expression "fprintf((FILE *)*param_1,"const int %s = %s;\n",param_2,local_22)" (identifier "fprintf") (argument_list "((FILE *)*param_1,"const int %s = %s;\n",param_2,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 ""const int %s = %s;\n"" (" """) (string_content "const int %s = %s;") (escape_sequence "\n") (" """)) (, ",") (identifier "param_2") (, ",") (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,char *name,type_2 val)

{
  type_3 var_1;
  char ab [22];
  
  ab[0x12] = -0x48;
  ab[0x13] = -0x59;
  ab[0x14] = '\x03';
  ab[0x15] = '\0';
  if (*(int *)((int)p + 4) != 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,"%lld",(type_4)val,val._4_4_);
                    /* WARNING: Load size is inaccurate */
  var_4(*p,"const int %s = %s;\n",name,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)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (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))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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) (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,undefined4 param_4)

{
  uint uVar1;
  char local_22 [18];
  undefined4 uStack_10;
  
  uStack_10 = 0x3a7b8;
  if (param_1[1] != 0) {
    uVar1 = 0;
    do {
      uVar1 = uVar1 + 1;
      putc(0x20,(FILE *)*param_1);
    } while (uVar1 < (uint)param_1[1]);
  }
  sprintf(local_22,"%lld",param_3,param_4);
  fprintf((FILE *)*param_1,"const int %s = %s;\n",param_2,local_22);
  return 1;
}

