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

void __regparm3 string_append_template_idx(string *s,int idx)

{
  char buf [33];
  
  builtin_strncpy(buf + 0x1d,"J9\x19",4);
  sprintf(buf,"T%d",idx);
  if (buf[0] != '\0') {
    string_append(s,buf);
  }
  return;
}



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

void __regparm3 FUN_00193940(undefined4 param_1,undefined4 param_2)

{
  char local_2d [29];
  undefined4 uStack_10;
  
  uStack_10 = 0x19394a;
  sprintf(local_2d,"T%d",param_2);
  if (local_2d[0] != '\0') {
    FUN_001938f0();
  }
  return;
}


PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x1ab6b6
SUB ESP,0x34
PUSH EDX
LEA EAX,[EBX + 0xfff2a418]
PUSH EAX
LEA ESI,[ESP + 0x1b]
PUSH ESI
CALL 0x000280c0
ADD ESP,0x10
CMP byte ptr [ESP + 0xf],0x0
JZ 0x00193978
MOV EDX,ESI
MOV EAX,EDI
CALL 0x001938f0
ADD ESP,0x30
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00193940(undefined4 param_1,undefined4 param_2)\n\n{\n  char local_2d [29];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x19394a;\n  sprintf(local_2d,"T%d",param_2);\n  if (local_2d[0] != '\0') {\n    FUN_001938f0();\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00193940(undefined4 param_1,undefined4 param_2)\n\n{\n  char local_2d [29];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x19394a;\n  sprintf(local_2d,"T%d",param_2);\n  if (local_2d[0] != '\0') {\n    FUN_001938f0();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00193940(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  char local_2d [29];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x19394a;\n  sprintf(local_2d,"T%d",param_2);\n  if (local_2d[0] != '\0') {\n    FUN_001938f0();\n  }\n  return;\n}" { (declaration "char local_2d [29];" primitive_type (array_declarator "local_2d [29]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_10;" type_identifier identifier ;) (expression_statement "uStack_10 = 0x19394a;" (assignment_expression "uStack_10 = 0x19394a" identifier = number_literal) ;) (expression_statement "sprintf(local_2d,"T%d",param_2);" (call_expression "sprintf(local_2d,"T%d",param_2)" identifier (argument_list "(local_2d,"T%d",param_2)" ( identifier , (string_literal ""T%d"" " string_content ") , identifier ))) ;) (if_statement "if (local_2d[0] != '\0') {\n    FUN_001938f0();\n  }" if (parenthesized_expression "(local_2d[0] != '\0')" ( (binary_expression "local_2d[0] != '\0'" (subscript_expression "local_2d[0]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_001938f0();\n  }" { (expression_statement "FUN_001938f0();" (call_expression "FUN_001938f0()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 string_append_template_idx(string *s,int idx)\n\n{\n  char buf [33];\n  \n  builtin_strncpy(buf + 0x1d,"J9\x19",4);\n  sprintf(buf,"T%d",idx);\n  if (buf[0] != '\0') {\n    string_append(s,buf);\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 string_append_template_idx(string *s,int idx)\n\n{\n  char buf [33];\n  \n  builtin_strncpy(buf + 0x1d,"J9\x19",4);\n  sprintf(buf,"T%d",idx);\n  if (buf[0] != '\0') {\n    string_append(s,buf);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "string_append_template_idx(string *s,int idx)" identifier (parameter_list "(string *s,int idx)" ( (parameter_declaration "string *s" type_identifier (pointer_declarator "*s" * identifier)) , (parameter_declaration "int idx" primitive_type identifier) ))) (compound_statement "{\n  char buf [33];\n  \n  builtin_strncpy(buf + 0x1d,"J9\x19",4);\n  sprintf(buf,"T%d",idx);\n  if (buf[0] != '\0') {\n    string_append(s,buf);\n  }\n  return;\n}" { (declaration "char buf [33];" primitive_type (array_declarator "buf [33]" identifier [ number_literal ]) ;) (expression_statement "builtin_strncpy(buf + 0x1d,"J9\x19",4);" (call_expression "builtin_strncpy(buf + 0x1d,"J9\x19",4)" identifier (argument_list "(buf + 0x1d,"J9\x19",4)" ( (binary_expression "buf + 0x1d" identifier + number_literal) , (string_literal ""J9\x19"" " string_content escape_sequence ") , number_literal ))) ;) (expression_statement "sprintf(buf,"T%d",idx);" (call_expression "sprintf(buf,"T%d",idx)" identifier (argument_list "(buf,"T%d",idx)" ( identifier , (string_literal ""T%d"" " string_content ") , identifier ))) ;) (if_statement "if (buf[0] != '\0') {\n    string_append(s,buf);\n  }" if (parenthesized_expression "(buf[0] != '\0')" ( (binary_expression "buf[0] != '\0'" (subscript_expression "buf[0]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    string_append(s,buf);\n  }" { (expression_statement "string_append(s,buf);" (call_expression "string_append(s,buf)" identifier (argument_list "(s,buf)" ( identifier , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00193940(undefined4 param_1,undefined4 param_2)\n\n{\n  char local_2d [29];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x19394a;\n  sprintf(local_2d,"T%d",param_2);\n  if (local_2d[0] != '\0') {\n    FUN_001938f0();\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00193940(undefined4 param_1,undefined4 param_2)\n\n{\n  char local_2d [29];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x19394a;\n  sprintf(local_2d,"T%d",param_2);\n  if (local_2d[0] != '\0') {\n    FUN_001938f0();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00193940(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  char local_2d [29];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x19394a;\n  sprintf(local_2d,"T%d",param_2);\n  if (local_2d[0] != '\0') {\n    FUN_001938f0();\n  }\n  return;\n}" { (declaration "char local_2d [29];" primitive_type (array_declarator "local_2d [29]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_10;" type_identifier identifier ;) (expression_statement "uStack_10 = 0x19394a;" (assignment_expression "uStack_10 = 0x19394a" identifier = number_literal) ;) (expression_statement "sprintf(local_2d,"T%d",param_2);" (call_expression "sprintf(local_2d,"T%d",param_2)" identifier (argument_list "(local_2d,"T%d",param_2)" ( identifier , (string_literal ""T%d"" " string_content ") , identifier ))) ;) (if_statement "if (local_2d[0] != '\0') {\n    FUN_001938f0();\n  }" if (parenthesized_expression "(local_2d[0] != '\0')" ( (binary_expression "local_2d[0] != '\0'" (subscript_expression "local_2d[0]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_001938f0();\n  }" { (expression_statement "FUN_001938f0();" (call_expression "FUN_001938f0()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00193940(undefined4 param_1,undefined4 param_2)\n\n{\n  char local_2d [29];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x19394a;\n  sprintf(local_2d,"T%d",param_2);\n  if (local_2d[0] != '\0') {\n    FUN_001938f0();\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00193940(undefined4 param_1,undefined4 param_2)" (identifier "FUN_00193940") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  char local_2d [29];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x19394a;\n  sprintf(local_2d,"T%d",param_2);\n  if (local_2d[0] != '\0') {\n    FUN_001938f0();\n  }\n  return;\n}" ({ "{") (declaration "char local_2d [29];" (primitive_type "char") (array_declarator "local_2d [29]" (identifier "local_2d") ([ "[") (number_literal "29") (] "]")) (; ";")) (declaration "undefined4 uStack_10;" (type_identifier "undefined4") (identifier "uStack_10") (; ";")) (expression_statement "uStack_10 = 0x19394a;" (assignment_expression "uStack_10 = 0x19394a" (identifier "uStack_10") (= "=") (number_literal "0x19394a")) (; ";")) (expression_statement "sprintf(local_2d,"T%d",param_2);" (call_expression "sprintf(local_2d,"T%d",param_2)" (identifier "sprintf") (argument_list "(local_2d,"T%d",param_2)" (( "(") (identifier "local_2d") (, ",") (string_literal ""T%d"" (" """) (string_content "T%d") (" """)) (, ",") (identifier "param_2") () ")"))) (; ";")) (if_statement "if (local_2d[0] != '\0') {\n    FUN_001938f0();\n  }" (if "if") (parenthesized_expression "(local_2d[0] != '\0')" (( "(") (binary_expression "local_2d[0] != '\0'" (subscript_expression "local_2d[0]" (identifier "local_2d") ([ "[") (number_literal "0") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_001938f0();\n  }" ({ "{") (expression_statement "FUN_001938f0();" (call_expression "FUN_001938f0()" (identifier "FUN_001938f0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *s,int idx)

{
  char var_2 [33];
  
  var_1(var_2 + 0x1d,"J9\x19",4);
  var_3(var_2,"T%d",idx);
  if (var_2[0] != '\0') {
    var_4(s,var_2);
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (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 (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (return_statement))))

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

void __regparm3 MASKED(undefined4 param_1,undefined4 param_2)

{
  char local_2d [29];
  undefined4 uStack_10;
  
  uStack_10 = 0x19394a;
  sprintf(local_2d,"T%d",param_2);
  if (local_2d[0] != '\0') {
    FUN_001938f0();
  }
  return;
}

