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

void __regparm3 declare_register_set(char *prefix,uint num_regs,uint base_regnum)

{
  uint regnum;
  uint uVar1;
  char name [8];
  
  uVar1 = 0;
  do {
    snprintf(name,8,"%s%u",prefix,uVar1);
    regnum = base_regnum + uVar1;
    uVar1 = uVar1 + 1;
    declare_register(name,regnum);
  } while (num_regs != uVar1);
  return;
}



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

void __regparm3 FUN_00041fd0(undefined4 param_1,int param_2)

{
  int iVar1;
  char local_24 [16];
  undefined4 uStack_14;
  
  iVar1 = 0;
  uStack_14 = 0x41fdd;
  do {
    snprintf(local_24,8,"%s%u",param_1,iVar1);
    iVar1 = iVar1 + 1;
    FUN_00041f60();
  } while (param_2 != iVar1);
  return;
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
XOR EDI,EDI
PUSH ESI
PUSH EBX
CALL 0x00016030
ADD EBX,0x3c023
SUB ESP,0x2c
MOV dword ptr [ESP + 0x4],EDX
LEA ESI,[ESP + 0x18]
MOV dword ptr [ESP + 0x8],ECX
LEA EAX,[EBX + 0xfffe5674]
MOV dword ptr [ESP + 0xc],EAX
LEA ESI,[ESI]
SUB ESP,0xc
PUSH EDI
PUSH EBP
PUSH dword ptr [ESP + 0x20]
PUSH 0x8
PUSH ESI
CALL 0x000144b0
ADD ESP,0x20
MOV EAX,dword ptr [ESP + 0x8]
LEA EDX,[EAX + EDI*0x1]
MOV EAX,ESI
ADD EDI,0x1
CALL 0x00041f60
CMP dword ptr [ESP + 0x4],EDI
JNZ 0x00042000
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 __regparm3 FUN_00041fd0(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  char local_24 [16];\n  undefined4 uStack_14;\n  \n  iVar1 = 0;\n  uStack_14 = 0x41fdd;\n  do {\n    snprintf(local_24,8,"%s%u",param_1,iVar1);\n    iVar1 = iVar1 + 1;\n    FUN_00041f60();\n  } while (param_2 != iVar1);\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00041fd0(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  char local_24 [16];\n  undefined4 uStack_14;\n  \n  iVar1 = 0;\n  uStack_14 = 0x41fdd;\n  do {\n    snprintf(local_24,8,"%s%u",param_1,iVar1);\n    iVar1 = iVar1 + 1;\n    FUN_00041f60();\n  } while (param_2 != iVar1);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00041fd0(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char local_24 [16];\n  undefined4 uStack_14;\n  \n  iVar1 = 0;\n  uStack_14 = 0x41fdd;\n  do {\n    snprintf(local_24,8,"%s%u",param_1,iVar1);\n    iVar1 = iVar1 + 1;\n    FUN_00041f60();\n  } while (param_2 != iVar1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char local_24 [16];" primitive_type (array_declarator "local_24 [16]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x41fdd;" (assignment_expression "uStack_14 = 0x41fdd" identifier = number_literal) ;) (do_statement "do {\n    snprintf(local_24,8,"%s%u",param_1,iVar1);\n    iVar1 = iVar1 + 1;\n    FUN_00041f60();\n  } while (param_2 != iVar1);" do (compound_statement "{\n    snprintf(local_24,8,"%s%u",param_1,iVar1);\n    iVar1 = iVar1 + 1;\n    FUN_00041f60();\n  }" { (expression_statement "snprintf(local_24,8,"%s%u",param_1,iVar1);" (call_expression "snprintf(local_24,8,"%s%u",param_1,iVar1)" identifier (argument_list "(local_24,8,"%s%u",param_1,iVar1)" ( identifier , number_literal , (string_literal ""%s%u"" " string_content ") , identifier , identifier ))) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00041f60();" (call_expression "FUN_00041f60()" identifier (argument_list "()" ( ))) ;) }) while (parenthesized_expression "(param_2 != iVar1)" ( (binary_expression "param_2 != iVar1" identifier != identifier) )) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 declare_register_set(char *prefix,uint num_regs,uint base_regnum)\n\n{\n  uint regnum;\n  uint uVar1;\n  char name [8];\n  \n  uVar1 = 0;\n  do {\n    snprintf(name,8,"%s%u",prefix,uVar1);\n    regnum = base_regnum + uVar1;\n    uVar1 = uVar1 + 1;\n    declare_register(name,regnum);\n  } while (num_regs != uVar1);\n  return;\n}\n\n" comment (function_definition "void __regparm3 declare_register_set(char *prefix,uint num_regs,uint base_regnum)\n\n{\n  uint regnum;\n  uint uVar1;\n  char name [8];\n  \n  uVar1 = 0;\n  do {\n    snprintf(name,8,"%s%u",prefix,uVar1);\n    regnum = base_regnum + uVar1;\n    uVar1 = uVar1 + 1;\n    declare_register(name,regnum);\n  } while (num_regs != uVar1);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "declare_register_set(char *prefix,uint num_regs,uint base_regnum)" identifier (parameter_list "(char *prefix,uint num_regs,uint base_regnum)" ( (parameter_declaration "char *prefix" primitive_type (pointer_declarator "*prefix" * identifier)) , (parameter_declaration "uint num_regs" type_identifier identifier) , (parameter_declaration "uint base_regnum" type_identifier identifier) ))) (compound_statement "{\n  uint regnum;\n  uint uVar1;\n  char name [8];\n  \n  uVar1 = 0;\n  do {\n    snprintf(name,8,"%s%u",prefix,uVar1);\n    regnum = base_regnum + uVar1;\n    uVar1 = uVar1 + 1;\n    declare_register(name,regnum);\n  } while (num_regs != uVar1);\n  return;\n}" { (declaration "uint regnum;" type_identifier identifier ;) (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char name [8];" primitive_type (array_declarator "name [8]" identifier [ number_literal ]) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n    snprintf(name,8,"%s%u",prefix,uVar1);\n    regnum = base_regnum + uVar1;\n    uVar1 = uVar1 + 1;\n    declare_register(name,regnum);\n  } while (num_regs != uVar1);" do (compound_statement "{\n    snprintf(name,8,"%s%u",prefix,uVar1);\n    regnum = base_regnum + uVar1;\n    uVar1 = uVar1 + 1;\n    declare_register(name,regnum);\n  }" { (expression_statement "snprintf(name,8,"%s%u",prefix,uVar1);" (call_expression "snprintf(name,8,"%s%u",prefix,uVar1)" identifier (argument_list "(name,8,"%s%u",prefix,uVar1)" ( identifier , number_literal , (string_literal ""%s%u"" " string_content ") , identifier , identifier ))) ;) (expression_statement "regnum = base_regnum + uVar1;" (assignment_expression "regnum = base_regnum + uVar1" identifier = (binary_expression "base_regnum + uVar1" identifier + identifier)) ;) (expression_statement "uVar1 = uVar1 + 1;" (assignment_expression "uVar1 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) (expression_statement "declare_register(name,regnum);" (call_expression "declare_register(name,regnum)" identifier (argument_list "(name,regnum)" ( identifier , identifier ))) ;) }) while (parenthesized_expression "(num_regs != uVar1)" ( (binary_expression "num_regs != uVar1" identifier != identifier) )) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00041fd0(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  char local_24 [16];\n  undefined4 uStack_14;\n  \n  iVar1 = 0;\n  uStack_14 = 0x41fdd;\n  do {\n    snprintf(local_24,8,"%s%u",param_1,iVar1);\n    iVar1 = iVar1 + 1;\n    FUN_00041f60();\n  } while (param_2 != iVar1);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00041fd0(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  char local_24 [16];\n  undefined4 uStack_14;\n  \n  iVar1 = 0;\n  uStack_14 = 0x41fdd;\n  do {\n    snprintf(local_24,8,"%s%u",param_1,iVar1);\n    iVar1 = iVar1 + 1;\n    FUN_00041f60();\n  } while (param_2 != iVar1);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00041fd0(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char local_24 [16];\n  undefined4 uStack_14;\n  \n  iVar1 = 0;\n  uStack_14 = 0x41fdd;\n  do {\n    snprintf(local_24,8,"%s%u",param_1,iVar1);\n    iVar1 = iVar1 + 1;\n    FUN_00041f60();\n  } while (param_2 != iVar1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char local_24 [16];" primitive_type (array_declarator "local_24 [16]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x41fdd;" (assignment_expression "uStack_14 = 0x41fdd" identifier = number_literal) ;) (do_statement "do {\n    snprintf(local_24,8,"%s%u",param_1,iVar1);\n    iVar1 = iVar1 + 1;\n    FUN_00041f60();\n  } while (param_2 != iVar1);" do (compound_statement "{\n    snprintf(local_24,8,"%s%u",param_1,iVar1);\n    iVar1 = iVar1 + 1;\n    FUN_00041f60();\n  }" { (expression_statement "snprintf(local_24,8,"%s%u",param_1,iVar1);" (call_expression "snprintf(local_24,8,"%s%u",param_1,iVar1)" identifier (argument_list "(local_24,8,"%s%u",param_1,iVar1)" ( identifier , number_literal , (string_literal ""%s%u"" " string_content ") , identifier , identifier ))) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00041f60();" (call_expression "FUN_00041f60()" identifier (argument_list "()" ( ))) ;) }) while (parenthesized_expression "(param_2 != iVar1)" ( (binary_expression "param_2 != iVar1" identifier != identifier) )) ;) (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 IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00041fd0(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  char local_24 [16];\n  undefined4 uStack_14;\n  \n  iVar1 = 0;\n  uStack_14 = 0x41fdd;\n  do {\n    snprintf(local_24,8,"%s%u",param_1,iVar1);\n    iVar1 = iVar1 + 1;\n    FUN_00041f60();\n  } while (param_2 != iVar1);\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00041fd0(undefined4 param_1,int param_2)" (identifier "FUN_00041fd0") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  char local_24 [16];\n  undefined4 uStack_14;\n  \n  iVar1 = 0;\n  uStack_14 = 0x41fdd;\n  do {\n    snprintf(local_24,8,"%s%u",param_1,iVar1);\n    iVar1 = iVar1 + 1;\n    FUN_00041f60();\n  } while (param_2 != iVar1);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char local_24 [16];" (primitive_type "char") (array_declarator "local_24 [16]" (identifier "local_24") ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "uStack_14 = 0x41fdd;" (assignment_expression "uStack_14 = 0x41fdd" (identifier "uStack_14") (= "=") (number_literal "0x41fdd")) (; ";")) (do_statement "do {\n    snprintf(local_24,8,"%s%u",param_1,iVar1);\n    iVar1 = iVar1 + 1;\n    FUN_00041f60();\n  } while (param_2 != iVar1);" (do "do") (compound_statement "{\n    snprintf(local_24,8,"%s%u",param_1,iVar1);\n    iVar1 = iVar1 + 1;\n    FUN_00041f60();\n  }" ({ "{") (expression_statement "snprintf(local_24,8,"%s%u",param_1,iVar1);" (call_expression "snprintf(local_24,8,"%s%u",param_1,iVar1)" (identifier "snprintf") (argument_list "(local_24,8,"%s%u",param_1,iVar1)" (( "(") (identifier "local_24") (, ",") (number_literal "8") (, ",") (string_literal ""%s%u"" (" """) (string_content "%s%u") (" """)) (, ",") (identifier "param_1") (, ",") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_00041f60();" (call_expression "FUN_00041f60()" (identifier "FUN_00041f60") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 != iVar1)" (( "(") (binary_expression "param_2 != iVar1" (identifier "param_2") (!= "!=") (identifier "iVar1")) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(char *prefix,type_1 var_5,type_1 var_2)

{
  type_1 regnum;
  type_1 var_3;
  char name [8];
  
  var_3 = 0;
  do {
    var_1(name,8,"%s%u",prefix,var_3);
    regnum = var_2 + var_3;
    var_3 = var_3 + 1;
    var_4(name,regnum);
  } while (var_5 != var_3);
  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: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) 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: (number_literal))) (do_statement body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (string_literal (string_content)) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (return_statement))))

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

void __regparm3 MASKED(undefined4 param_1,int param_2)

{
  int iVar1;
  char local_24 [16];
  undefined4 uStack_14;
  
  iVar1 = 0;
  uStack_14 = 0x41fdd;
  do {
    snprintf(local_24,8,"%s%u",param_1,iVar1);
    iVar1 = iVar1 + 1;
    FUN_00041f60();
  } while (param_2 != iVar1);
  return;
}

