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

void string_need(string *s,int n)

{
}



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

void __regparm3 FUN_0022f520(int *param_1,int param_2)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  iVar2 = *param_1;
  if (iVar2 == 0) {
    iVar2 = 0x20;
    if (0x1f < param_2) {
      iVar2 = param_2;
    }
    iVar3 = FUN_00246130(iVar2);
    *param_1 = iVar3;
    param_1[1] = iVar3;
    param_1[2] = iVar3 + iVar2;
    return;
  }
  if (param_1[2] - param_1[1] < param_2) {
    iVar3 = param_1[1] - iVar2;
    if (0x3fffffff - iVar3 < param_2) {
                    /* WARNING: Subroutine does not return */
      FUN_002460b0(0x7fffffff);
    }
    iVar1 = (param_2 + iVar3) * 2;
    iVar2 = FUN_002461c0(iVar2,iVar1);
    *param_1 = iVar2;
    param_1[1] = iVar3 + iVar2;
    param_1[2] = iVar2 + iVar1;
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x0003a210
ADD EBX,0x1e4ad5
SUB ESP,0xc
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x0022f580
MOV EBP,dword ptr [ESI + 0x4]
MOV ECX,dword ptr [ESI + 0x8]
SUB ECX,EBP
CMP ECX,EDX
JGE 0x0022f571
SUB EBP,EAX
MOV ECX,0x3fffffff
SUB ECX,EBP
CMP ECX,EDX
JL 0x0022f5ab
ADD EDX,EBP
SUB ESP,0x8
LEA EDI,[EDX + EDX*0x1]
PUSH EDI
PUSH EAX
CALL 0x002461c0
ADD ESP,0x10
ADD EBP,EAX
MOV dword ptr [ESI],EAX
ADD EAX,EDI
MOV dword ptr [ESI + 0x4],EBP
MOV dword ptr [ESI + 0x8],EAX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP EDX,0x20
MOV EAX,0x20
CMOVGE EAX,EDX
SUB ESP,0xc
PUSH EAX
MOV EDI,EAX
CALL 0x00246130
ADD ESP,0x10
MOV dword ptr [ESI],EAX
MOV dword ptr [ESI + 0x4],EAX
ADD EAX,EDI
MOV dword ptr [ESI + 0x8],EAX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH 0x7fffffff
CALL 0x002460b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0022f520(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = *param_1;\n  if (iVar2 == 0) {\n    iVar2 = 0x20;\n    if (0x1f < param_2) {\n      iVar2 = param_2;\n    }\n    iVar3 = FUN_00246130(iVar2);\n    *param_1 = iVar3;\n    param_1[1] = iVar3;\n    param_1[2] = iVar3 + iVar2;\n    return;\n  }\n  if (param_1[2] - param_1[1] < param_2) {\n    iVar3 = param_1[1] - iVar2;\n    if (0x3fffffff - iVar3 < param_2) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002460b0(0x7fffffff);\n    }\n    iVar1 = (param_2 + iVar3) * 2;\n    iVar2 = FUN_002461c0(iVar2,iVar1);\n    *param_1 = iVar2;\n    param_1[1] = iVar3 + iVar2;\n    param_1[2] = iVar2 + iVar1;\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0022f520(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = *param_1;\n  if (iVar2 == 0) {\n    iVar2 = 0x20;\n    if (0x1f < param_2) {\n      iVar2 = param_2;\n    }\n    iVar3 = FUN_00246130(iVar2);\n    *param_1 = iVar3;\n    param_1[1] = iVar3;\n    param_1[2] = iVar3 + iVar2;\n    return;\n  }\n  if (param_1[2] - param_1[1] < param_2) {\n    iVar3 = param_1[1] - iVar2;\n    if (0x3fffffff - iVar3 < param_2) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002460b0(0x7fffffff);\n    }\n    iVar1 = (param_2 + iVar3) * 2;\n    iVar2 = FUN_002461c0(iVar2,iVar1);\n    *param_1 = iVar2;\n    param_1[1] = iVar3 + iVar2;\n    param_1[2] = iVar2 + iVar1;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0022f520(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = *param_1;\n  if (iVar2 == 0) {\n    iVar2 = 0x20;\n    if (0x1f < param_2) {\n      iVar2 = param_2;\n    }\n    iVar3 = FUN_00246130(iVar2);\n    *param_1 = iVar3;\n    param_1[1] = iVar3;\n    param_1[2] = iVar3 + iVar2;\n    return;\n  }\n  if (param_1[2] - param_1[1] < param_2) {\n    iVar3 = param_1[1] - iVar2;\n    if (0x3fffffff - iVar3 < param_2) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002460b0(0x7fffffff);\n    }\n    iVar1 = (param_2 + iVar3) * 2;\n    iVar2 = FUN_002461c0(iVar2,iVar1);\n    *param_1 = iVar2;\n    param_1[1] = iVar3 + iVar2;\n    param_1[2] = iVar2 + iVar1;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar2 == 0) {\n    iVar2 = 0x20;\n    if (0x1f < param_2) {\n      iVar2 = param_2;\n    }\n    iVar3 = FUN_00246130(iVar2);\n    *param_1 = iVar3;\n    param_1[1] = iVar3;\n    param_1[2] = iVar3 + iVar2;\n    return;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = 0x20;\n    if (0x1f < param_2) {\n      iVar2 = param_2;\n    }\n    iVar3 = FUN_00246130(iVar2);\n    *param_1 = iVar3;\n    param_1[1] = iVar3;\n    param_1[2] = iVar3 + iVar2;\n    return;\n  }" { (expression_statement "iVar2 = 0x20;" (assignment_expression "iVar2 = 0x20" identifier = number_literal) ;) (if_statement "if (0x1f < param_2) {\n      iVar2 = param_2;\n    }" if (parenthesized_expression "(0x1f < param_2)" ( (binary_expression "0x1f < param_2" number_literal < identifier) )) (compound_statement "{\n      iVar2 = param_2;\n    }" { (expression_statement "iVar2 = param_2;" (assignment_expression "iVar2 = param_2" identifier = identifier) ;) })) (expression_statement "iVar3 = FUN_00246130(iVar2);" (assignment_expression "iVar3 = FUN_00246130(iVar2)" identifier = (call_expression "FUN_00246130(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = iVar3;" (assignment_expression "param_1[1] = iVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = iVar3 + iVar2;" (assignment_expression "param_1[2] = iVar3 + iVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "iVar3 + iVar2" identifier + identifier)) ;) (return_statement "return;" return ;) })) (if_statement "if (param_1[2] - param_1[1] < param_2) {\n    iVar3 = param_1[1] - iVar2;\n    if (0x3fffffff - iVar3 < param_2) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002460b0(0x7fffffff);\n    }\n    iVar1 = (param_2 + iVar3) * 2;\n    iVar2 = FUN_002461c0(iVar2,iVar1);\n    *param_1 = iVar2;\n    param_1[1] = iVar3 + iVar2;\n    param_1[2] = iVar2 + iVar1;\n  }" if (parenthesized_expression "(param_1[2] - param_1[1] < param_2)" ( (binary_expression "param_1[2] - param_1[1] < param_2" (binary_expression "param_1[2] - param_1[1]" (subscript_expression "param_1[2]" identifier [ number_literal ]) - (subscript_expression "param_1[1]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n    iVar3 = param_1[1] - iVar2;\n    if (0x3fffffff - iVar3 < param_2) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002460b0(0x7fffffff);\n    }\n    iVar1 = (param_2 + iVar3) * 2;\n    iVar2 = FUN_002461c0(iVar2,iVar1);\n    *param_1 = iVar2;\n    param_1[1] = iVar3 + iVar2;\n    param_1[2] = iVar2 + iVar1;\n  }" { (expression_statement "iVar3 = param_1[1] - iVar2;" (assignment_expression "iVar3 = param_1[1] - iVar2" identifier = (binary_expression "param_1[1] - iVar2" (subscript_expression "param_1[1]" identifier [ number_literal ]) - identifier)) ;) (if_statement "if (0x3fffffff - iVar3 < param_2) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002460b0(0x7fffffff);\n    }" if (parenthesized_expression "(0x3fffffff - iVar3 < param_2)" ( (binary_expression "0x3fffffff - iVar3 < param_2" (binary_expression "0x3fffffff - iVar3" number_literal - identifier) < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_002460b0(0x7fffffff);\n    }" { comment (expression_statement "FUN_002460b0(0x7fffffff);" (call_expression "FUN_002460b0(0x7fffffff)" identifier (argument_list "(0x7fffffff)" ( number_literal ))) ;) })) (expression_statement "iVar1 = (param_2 + iVar3) * 2;" (assignment_expression "iVar1 = (param_2 + iVar3) * 2" identifier = (binary_expression "(param_2 + iVar3) * 2" (parenthesized_expression "(param_2 + iVar3)" ( (binary_expression "param_2 + iVar3" identifier + identifier) )) * number_literal)) ;) (expression_statement "iVar2 = FUN_002461c0(iVar2,iVar1);" (assignment_expression "iVar2 = FUN_002461c0(iVar2,iVar1)" identifier = (call_expression "FUN_002461c0(iVar2,iVar1)" identifier (argument_list "(iVar2,iVar1)" ( identifier , identifier )))) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = iVar3 + iVar2;" (assignment_expression "param_1[1] = iVar3 + iVar2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar3 + iVar2" identifier + identifier)) ;) (expression_statement "param_1[2] = iVar2 + iVar1;" (assignment_expression "param_1[2] = iVar2 + iVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "iVar2 + 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 string_need(string *s,int n)\n\n{\n}\n\n" comment (function_definition "void string_need(string *s,int n)\n\n{\n}" primitive_type (function_declarator "string_need(string *s,int n)" identifier (parameter_list "(string *s,int n)" ( (parameter_declaration "string *s" type_identifier (pointer_declarator "*s" * identifier)) , (parameter_declaration "int n" primitive_type identifier) ))) (compound_statement "{\n}" { })))
(translation_unit "void __regparm3 FUN_0022f520(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = *param_1;\n  if (iVar2 == 0) {\n    iVar2 = 0x20;\n    if (0x1f < param_2) {\n      iVar2 = param_2;\n    }\n    iVar3 = FUN_00246130(iVar2);\n    *param_1 = iVar3;\n    param_1[1] = iVar3;\n    param_1[2] = iVar3 + iVar2;\n    return;\n  }\n  if (param_1[2] - param_1[1] < param_2) {\n    iVar3 = param_1[1] - iVar2;\n    if (0x3fffffff - iVar3 < param_2) {\n                    \n      FUN_002460b0(0x7fffffff);\n    }\n    iVar1 = (param_2 + iVar3) * 2;\n    iVar2 = FUN_002461c0(iVar2,iVar1);\n    *param_1 = iVar2;\n    param_1[1] = iVar3 + iVar2;\n    param_1[2] = iVar2 + iVar1;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0022f520(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = *param_1;\n  if (iVar2 == 0) {\n    iVar2 = 0x20;\n    if (0x1f < param_2) {\n      iVar2 = param_2;\n    }\n    iVar3 = FUN_00246130(iVar2);\n    *param_1 = iVar3;\n    param_1[1] = iVar3;\n    param_1[2] = iVar3 + iVar2;\n    return;\n  }\n  if (param_1[2] - param_1[1] < param_2) {\n    iVar3 = param_1[1] - iVar2;\n    if (0x3fffffff - iVar3 < param_2) {\n                    \n      FUN_002460b0(0x7fffffff);\n    }\n    iVar1 = (param_2 + iVar3) * 2;\n    iVar2 = FUN_002461c0(iVar2,iVar1);\n    *param_1 = iVar2;\n    param_1[1] = iVar3 + iVar2;\n    param_1[2] = iVar2 + iVar1;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0022f520(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = *param_1;\n  if (iVar2 == 0) {\n    iVar2 = 0x20;\n    if (0x1f < param_2) {\n      iVar2 = param_2;\n    }\n    iVar3 = FUN_00246130(iVar2);\n    *param_1 = iVar3;\n    param_1[1] = iVar3;\n    param_1[2] = iVar3 + iVar2;\n    return;\n  }\n  if (param_1[2] - param_1[1] < param_2) {\n    iVar3 = param_1[1] - iVar2;\n    if (0x3fffffff - iVar3 < param_2) {\n                    \n      FUN_002460b0(0x7fffffff);\n    }\n    iVar1 = (param_2 + iVar3) * 2;\n    iVar2 = FUN_002461c0(iVar2,iVar1);\n    *param_1 = iVar2;\n    param_1[1] = iVar3 + iVar2;\n    param_1[2] = iVar2 + iVar1;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar2 == 0) {\n    iVar2 = 0x20;\n    if (0x1f < param_2) {\n      iVar2 = param_2;\n    }\n    iVar3 = FUN_00246130(iVar2);\n    *param_1 = iVar3;\n    param_1[1] = iVar3;\n    param_1[2] = iVar3 + iVar2;\n    return;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = 0x20;\n    if (0x1f < param_2) {\n      iVar2 = param_2;\n    }\n    iVar3 = FUN_00246130(iVar2);\n    *param_1 = iVar3;\n    param_1[1] = iVar3;\n    param_1[2] = iVar3 + iVar2;\n    return;\n  }" { (expression_statement "iVar2 = 0x20;" (assignment_expression "iVar2 = 0x20" identifier = number_literal) ;) (if_statement "if (0x1f < param_2) {\n      iVar2 = param_2;\n    }" if (parenthesized_expression "(0x1f < param_2)" ( (binary_expression "0x1f < param_2" number_literal < identifier) )) (compound_statement "{\n      iVar2 = param_2;\n    }" { (expression_statement "iVar2 = param_2;" (assignment_expression "iVar2 = param_2" identifier = identifier) ;) })) (expression_statement "iVar3 = FUN_00246130(iVar2);" (assignment_expression "iVar3 = FUN_00246130(iVar2)" identifier = (call_expression "FUN_00246130(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = iVar3;" (assignment_expression "param_1[1] = iVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = iVar3 + iVar2;" (assignment_expression "param_1[2] = iVar3 + iVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "iVar3 + iVar2" identifier + identifier)) ;) (return_statement "return;" return ;) })) (if_statement "if (param_1[2] - param_1[1] < param_2) {\n    iVar3 = param_1[1] - iVar2;\n    if (0x3fffffff - iVar3 < param_2) {\n                    \n      FUN_002460b0(0x7fffffff);\n    }\n    iVar1 = (param_2 + iVar3) * 2;\n    iVar2 = FUN_002461c0(iVar2,iVar1);\n    *param_1 = iVar2;\n    param_1[1] = iVar3 + iVar2;\n    param_1[2] = iVar2 + iVar1;\n  }" if (parenthesized_expression "(param_1[2] - param_1[1] < param_2)" ( (binary_expression "param_1[2] - param_1[1] < param_2" (binary_expression "param_1[2] - param_1[1]" (subscript_expression "param_1[2]" identifier [ number_literal ]) - (subscript_expression "param_1[1]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n    iVar3 = param_1[1] - iVar2;\n    if (0x3fffffff - iVar3 < param_2) {\n                    \n      FUN_002460b0(0x7fffffff);\n    }\n    iVar1 = (param_2 + iVar3) * 2;\n    iVar2 = FUN_002461c0(iVar2,iVar1);\n    *param_1 = iVar2;\n    param_1[1] = iVar3 + iVar2;\n    param_1[2] = iVar2 + iVar1;\n  }" { (expression_statement "iVar3 = param_1[1] - iVar2;" (assignment_expression "iVar3 = param_1[1] - iVar2" identifier = (binary_expression "param_1[1] - iVar2" (subscript_expression "param_1[1]" identifier [ number_literal ]) - identifier)) ;) (if_statement "if (0x3fffffff - iVar3 < param_2) {\n                    \n      FUN_002460b0(0x7fffffff);\n    }" if (parenthesized_expression "(0x3fffffff - iVar3 < param_2)" ( (binary_expression "0x3fffffff - iVar3 < param_2" (binary_expression "0x3fffffff - iVar3" number_literal - identifier) < identifier) )) (compound_statement "{\n                    \n      FUN_002460b0(0x7fffffff);\n    }" { (expression_statement "FUN_002460b0(0x7fffffff);" (call_expression "FUN_002460b0(0x7fffffff)" identifier (argument_list "(0x7fffffff)" ( number_literal ))) ;) })) (expression_statement "iVar1 = (param_2 + iVar3) * 2;" (assignment_expression "iVar1 = (param_2 + iVar3) * 2" identifier = (binary_expression "(param_2 + iVar3) * 2" (parenthesized_expression "(param_2 + iVar3)" ( (binary_expression "param_2 + iVar3" identifier + identifier) )) * number_literal)) ;) (expression_statement "iVar2 = FUN_002461c0(iVar2,iVar1);" (assignment_expression "iVar2 = FUN_002461c0(iVar2,iVar1)" identifier = (call_expression "FUN_002461c0(iVar2,iVar1)" identifier (argument_list "(iVar2,iVar1)" ( identifier , identifier )))) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = iVar3 + iVar2;" (assignment_expression "param_1[1] = iVar3 + iVar2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar3 + iVar2" identifier + identifier)) ;) (expression_statement "param_1[2] = iVar2 + iVar1;" (assignment_expression "param_1[2] = iVar2 + iVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "iVar2 + iVar1" identifier + identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + IDENT)) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) - (subscript_expression IDENT [ LIT ])) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression LIT - IDENT) < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + IDENT)) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0022f520(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = *param_1;\n  if (iVar2 == 0) {\n    iVar2 = 0x20;\n    if (0x1f < param_2) {\n      iVar2 = param_2;\n    }\n    iVar3 = FUN_00246130(iVar2);\n    *param_1 = iVar3;\n    param_1[1] = iVar3;\n    param_1[2] = iVar3 + iVar2;\n    return;\n  }\n  if (param_1[2] - param_1[1] < param_2) {\n    iVar3 = param_1[1] - iVar2;\n    if (0x3fffffff - iVar3 < param_2) {\n                    \n      FUN_002460b0(0x7fffffff);\n    }\n    iVar1 = (param_2 + iVar3) * 2;\n    iVar2 = FUN_002461c0(iVar2,iVar1);\n    *param_1 = iVar2;\n    param_1[1] = iVar3 + iVar2;\n    param_1[2] = iVar2 + iVar1;\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0022f520(int *param_1,int param_2)" (identifier "FUN_0022f520") (parameter_list "(int *param_1,int param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = *param_1;\n  if (iVar2 == 0) {\n    iVar2 = 0x20;\n    if (0x1f < param_2) {\n      iVar2 = param_2;\n    }\n    iVar3 = FUN_00246130(iVar2);\n    *param_1 = iVar3;\n    param_1[1] = iVar3;\n    param_1[2] = iVar3 + iVar2;\n    return;\n  }\n  if (param_1[2] - param_1[1] < param_2) {\n    iVar3 = param_1[1] - iVar2;\n    if (0x3fffffff - iVar3 < param_2) {\n                    \n      FUN_002460b0(0x7fffffff);\n    }\n    iVar1 = (param_2 + iVar3) * 2;\n    iVar2 = FUN_002461c0(iVar2,iVar1);\n    *param_1 = iVar2;\n    param_1[1] = iVar3 + iVar2;\n    param_1[2] = iVar2 + iVar1;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" (identifier "iVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (iVar2 == 0) {\n    iVar2 = 0x20;\n    if (0x1f < param_2) {\n      iVar2 = param_2;\n    }\n    iVar3 = FUN_00246130(iVar2);\n    *param_1 = iVar3;\n    param_1[1] = iVar3;\n    param_1[2] = iVar3 + iVar2;\n    return;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = 0x20;\n    if (0x1f < param_2) {\n      iVar2 = param_2;\n    }\n    iVar3 = FUN_00246130(iVar2);\n    *param_1 = iVar3;\n    param_1[1] = iVar3;\n    param_1[2] = iVar3 + iVar2;\n    return;\n  }" ({ "{") (expression_statement "iVar2 = 0x20;" (assignment_expression "iVar2 = 0x20" (identifier "iVar2") (= "=") (number_literal "0x20")) (; ";")) (if_statement "if (0x1f < param_2) {\n      iVar2 = param_2;\n    }" (if "if") (parenthesized_expression "(0x1f < param_2)" (( "(") (binary_expression "0x1f < param_2" (number_literal "0x1f") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n      iVar2 = param_2;\n    }" ({ "{") (expression_statement "iVar2 = param_2;" (assignment_expression "iVar2 = param_2" (identifier "iVar2") (= "=") (identifier "param_2")) (; ";")) (} "}"))) (expression_statement "iVar3 = FUN_00246130(iVar2);" (assignment_expression "iVar3 = FUN_00246130(iVar2)" (identifier "iVar3") (= "=") (call_expression "FUN_00246130(iVar2)" (identifier "FUN_00246130") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "param_1[1] = iVar3;" (assignment_expression "param_1[1] = iVar3" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "param_1[2] = iVar3 + iVar2;" (assignment_expression "param_1[2] = iVar3 + iVar2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "iVar3 + iVar2" (identifier "iVar3") (+ "+") (identifier "iVar2"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (param_1[2] - param_1[1] < param_2) {\n    iVar3 = param_1[1] - iVar2;\n    if (0x3fffffff - iVar3 < param_2) {\n                    \n      FUN_002460b0(0x7fffffff);\n    }\n    iVar1 = (param_2 + iVar3) * 2;\n    iVar2 = FUN_002461c0(iVar2,iVar1);\n    *param_1 = iVar2;\n    param_1[1] = iVar3 + iVar2;\n    param_1[2] = iVar2 + iVar1;\n  }" (if "if") (parenthesized_expression "(param_1[2] - param_1[1] < param_2)" (( "(") (binary_expression "param_1[2] - param_1[1] < param_2" (binary_expression "param_1[2] - param_1[1]" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (- "-") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n    iVar3 = param_1[1] - iVar2;\n    if (0x3fffffff - iVar3 < param_2) {\n                    \n      FUN_002460b0(0x7fffffff);\n    }\n    iVar1 = (param_2 + iVar3) * 2;\n    iVar2 = FUN_002461c0(iVar2,iVar1);\n    *param_1 = iVar2;\n    param_1[1] = iVar3 + iVar2;\n    param_1[2] = iVar2 + iVar1;\n  }" ({ "{") (expression_statement "iVar3 = param_1[1] - iVar2;" (assignment_expression "iVar3 = param_1[1] - iVar2" (identifier "iVar3") (= "=") (binary_expression "param_1[1] - iVar2" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (- "-") (identifier "iVar2"))) (; ";")) (if_statement "if (0x3fffffff - iVar3 < param_2) {\n                    \n      FUN_002460b0(0x7fffffff);\n    }" (if "if") (parenthesized_expression "(0x3fffffff - iVar3 < param_2)" (( "(") (binary_expression "0x3fffffff - iVar3 < param_2" (binary_expression "0x3fffffff - iVar3" (number_literal "0x3fffffff") (- "-") (identifier "iVar3")) (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n                    \n      FUN_002460b0(0x7fffffff);\n    }" ({ "{") (expression_statement "FUN_002460b0(0x7fffffff);" (call_expression "FUN_002460b0(0x7fffffff)" (identifier "FUN_002460b0") (argument_list "(0x7fffffff)" (( "(") (number_literal "0x7fffffff") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = (param_2 + iVar3) * 2;" (assignment_expression "iVar1 = (param_2 + iVar3) * 2" (identifier "iVar1") (= "=") (binary_expression "(param_2 + iVar3) * 2" (parenthesized_expression "(param_2 + iVar3)" (( "(") (binary_expression "param_2 + iVar3" (identifier "param_2") (+ "+") (identifier "iVar3")) () ")")) (* "*") (number_literal "2"))) (; ";")) (expression_statement "iVar2 = FUN_002461c0(iVar2,iVar1);" (assignment_expression "iVar2 = FUN_002461c0(iVar2,iVar1)" (identifier "iVar2") (= "=") (call_expression "FUN_002461c0(iVar2,iVar1)" (identifier "FUN_002461c0") (argument_list "(iVar2,iVar1)" (( "(") (identifier "iVar2") (, ",") (identifier "iVar1") () ")")))) (; ";")) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "param_1[1] = iVar3 + iVar2;" (assignment_expression "param_1[1] = iVar3 + iVar2" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar3 + iVar2" (identifier "iVar3") (+ "+") (identifier "iVar2"))) (; ";")) (expression_statement "param_1[2] = iVar2 + iVar1;" (assignment_expression "param_1[2] = iVar2 + iVar1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "iVar2 + iVar1" (identifier "iVar2") (+ "+") (identifier "iVar1"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *s,int n)

{
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (identifier)))) (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (number_literal) right: (identifier)) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (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(int *param_1,int param_2)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  iVar2 = *param_1;
  if (iVar2 == 0) {
    iVar2 = 0x20;
    if (0x1f < param_2) {
      iVar2 = param_2;
    }
    iVar3 = FUN_00246130(iVar2);
    *param_1 = iVar3;
    param_1[1] = iVar3;
    param_1[2] = iVar3 + iVar2;
    return;
  }
  if (param_1[2] - param_1[1] < param_2) {
    iVar3 = param_1[1] - iVar2;
    if (0x3fffffff - iVar3 < param_2) {
                    /* WARNING: Subroutine does not return */
      FUN_002460b0(0x7fffffff);
    }
    iVar1 = (param_2 + iVar3) * 2;
    iVar2 = FUN_002461c0(iVar2,iVar1);
    *param_1 = iVar2;
    param_1[1] = iVar3 + iVar2;
    param_1[2] = iVar2 + iVar1;
  }
  return;
}

