
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

void add_back_pos(POSITION pos)

{
  POSITION *pPVar1;
  POSITION *pPVar2;
  bool bVar3;
  
  pPVar1 = table;
  pPVar2 = table + sc_height + -2;
  if (1 < sc_height) {
    do {
      *(int *)(pPVar2 + 1) = (int)*pPVar2;
      *(undefined4 *)((int)pPVar2 + 0xc) = *(undefined4 *)((int)pPVar2 + 4);
      bVar3 = pPVar2 != pPVar1;
      pPVar2 = pPVar2 + -1;
    } while (bVar3);
  }
  *pPVar1 = pos;
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void FUN_0002b380(undefined4 param_1,undefined4 param_2)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  bool bVar3;
  
  puVar1 = DAT_00048004;
  puVar2 = DAT_00048004 + DAT_000488e4 * 2 + -4;
  if (1 < DAT_000488e4) {
    do {
      puVar2[2] = *puVar2;
      puVar2[3] = puVar2[1];
      bVar3 = puVar2 != puVar1;
      puVar2 = puVar2 + -2;
    } while (bVar3);
  }
  *puVar1 = param_1;
  puVar1[1] = param_2;
  return;
}


CALL 0x00015187
ADD EAX,0x17b07
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
MOV ECX,dword ptr [ESP + 0x14]
MOV EBX,dword ptr [ESP + 0x18]
LEA EDX,[EAX + 0x5a58]
MOV ESI,dword ptr [EAX + 0x5178]
MOV EDX,dword ptr [EDX]
LEA EAX,[ESI + EDX*0x8 + -0x10]
CMP EDX,0x1
JG 0x0002b3b2
JMP 0x0002b3c4
MOV EAX,EDX
MOV EDI,dword ptr [EAX]
MOV EBP,dword ptr [EAX + 0x4]
LEA EDX,[EAX + -0x8]
MOV dword ptr [EAX + 0x8],EDI
MOV dword ptr [EAX + 0xc],EBP
CMP EAX,ESI
JNZ 0x0002b3b0
MOV dword ptr [ESI],ECX
MOV dword ptr [ESI + 0x4],EBX
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid FUN_0002b380(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  bool bVar3;\n  \n  puVar1 = DAT_00048004;\n  puVar2 = DAT_00048004 + DAT_000488e4 * 2 + -4;\n  if (1 < DAT_000488e4) {\n    do {\n      puVar2[2] = *puVar2;\n      puVar2[3] = puVar2[1];\n      bVar3 = puVar2 != puVar1;\n      puVar2 = puVar2 + -2;\n    } while (bVar3);\n  }\n  *puVar1 = param_1;\n  puVar1[1] = param_2;\n  return;\n}\n\n" comment (function_definition "void FUN_0002b380(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  bool bVar3;\n  \n  puVar1 = DAT_00048004;\n  puVar2 = DAT_00048004 + DAT_000488e4 * 2 + -4;\n  if (1 < DAT_000488e4) {\n    do {\n      puVar2[2] = *puVar2;\n      puVar2[3] = puVar2[1];\n      bVar3 = puVar2 != puVar1;\n      puVar2 = puVar2 + -2;\n    } while (bVar3);\n  }\n  *puVar1 = param_1;\n  puVar1[1] = param_2;\n  return;\n}" primitive_type (function_declarator "FUN_0002b380(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  undefined4 *puVar1;\n  undefined4 *puVar2;\n  bool bVar3;\n  \n  puVar1 = DAT_00048004;\n  puVar2 = DAT_00048004 + DAT_000488e4 * 2 + -4;\n  if (1 < DAT_000488e4) {\n    do {\n      puVar2[2] = *puVar2;\n      puVar2[3] = puVar2[1];\n      bVar3 = puVar2 != puVar1;\n      puVar2 = puVar2 + -2;\n    } while (bVar3);\n  }\n  *puVar1 = param_1;\n  puVar1[1] = param_2;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "bool bVar3;" primitive_type identifier ;) (expression_statement "puVar1 = DAT_00048004;" (assignment_expression "puVar1 = DAT_00048004" identifier = identifier) ;) (expression_statement "puVar2 = DAT_00048004 + DAT_000488e4 * 2 + -4;" (assignment_expression "puVar2 = DAT_00048004 + DAT_000488e4 * 2 + -4" identifier = (binary_expression "DAT_00048004 + DAT_000488e4 * 2 + -4" (binary_expression "DAT_00048004 + DAT_000488e4 * 2" identifier + (binary_expression "DAT_000488e4 * 2" identifier * number_literal)) + number_literal)) ;) (if_statement "if (1 < DAT_000488e4) {\n    do {\n      puVar2[2] = *puVar2;\n      puVar2[3] = puVar2[1];\n      bVar3 = puVar2 != puVar1;\n      puVar2 = puVar2 + -2;\n    } while (bVar3);\n  }" if (parenthesized_expression "(1 < DAT_000488e4)" ( (binary_expression "1 < DAT_000488e4" number_literal < identifier) )) (compound_statement "{\n    do {\n      puVar2[2] = *puVar2;\n      puVar2[3] = puVar2[1];\n      bVar3 = puVar2 != puVar1;\n      puVar2 = puVar2 + -2;\n    } while (bVar3);\n  }" { (do_statement "do {\n      puVar2[2] = *puVar2;\n      puVar2[3] = puVar2[1];\n      bVar3 = puVar2 != puVar1;\n      puVar2 = puVar2 + -2;\n    } while (bVar3);" do (compound_statement "{\n      puVar2[2] = *puVar2;\n      puVar2[3] = puVar2[1];\n      bVar3 = puVar2 != puVar1;\n      puVar2 = puVar2 + -2;\n    }" { (expression_statement "puVar2[2] = *puVar2;" (assignment_expression "puVar2[2] = *puVar2" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "puVar2[3] = puVar2[1];" (assignment_expression "puVar2[3] = puVar2[1]" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = (subscript_expression "puVar2[1]" identifier [ number_literal ])) ;) (expression_statement "bVar3 = puVar2 != puVar1;" (assignment_expression "bVar3 = puVar2 != puVar1" identifier = (binary_expression "puVar2 != puVar1" identifier != identifier)) ;) (expression_statement "puVar2 = puVar2 + -2;" (assignment_expression "puVar2 = puVar2 + -2" identifier = (binary_expression "puVar2 + -2" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar3)" ( identifier )) ;) })) (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = param_2;" (assignment_expression "puVar1[1] = param_2" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Unknown calling convention */\n\nvoid add_back_pos(POSITION pos)\n\n{\n  POSITION *pPVar1;\n  POSITION *pPVar2;\n  bool bVar3;\n  \n  pPVar1 = table;\n  pPVar2 = table + sc_height + -2;\n  if (1 < sc_height) {\n    do {\n      *(int *)(pPVar2 + 1) = (int)*pPVar2;\n      *(undefined4 *)((int)pPVar2 + 0xc) = *(undefined4 *)((int)pPVar2 + 4);\n      bVar3 = pPVar2 != pPVar1;\n      pPVar2 = pPVar2 + -1;\n    } while (bVar3);\n  }\n  *pPVar1 = pos;\n  return;\n}\n\n" comment comment (function_definition "void add_back_pos(POSITION pos)\n\n{\n  POSITION *pPVar1;\n  POSITION *pPVar2;\n  bool bVar3;\n  \n  pPVar1 = table;\n  pPVar2 = table + sc_height + -2;\n  if (1 < sc_height) {\n    do {\n      *(int *)(pPVar2 + 1) = (int)*pPVar2;\n      *(undefined4 *)((int)pPVar2 + 0xc) = *(undefined4 *)((int)pPVar2 + 4);\n      bVar3 = pPVar2 != pPVar1;\n      pPVar2 = pPVar2 + -1;\n    } while (bVar3);\n  }\n  *pPVar1 = pos;\n  return;\n}" primitive_type (function_declarator "add_back_pos(POSITION pos)" identifier (parameter_list "(POSITION pos)" ( (parameter_declaration "POSITION pos" type_identifier identifier) ))) (compound_statement "{\n  POSITION *pPVar1;\n  POSITION *pPVar2;\n  bool bVar3;\n  \n  pPVar1 = table;\n  pPVar2 = table + sc_height + -2;\n  if (1 < sc_height) {\n    do {\n      *(int *)(pPVar2 + 1) = (int)*pPVar2;\n      *(undefined4 *)((int)pPVar2 + 0xc) = *(undefined4 *)((int)pPVar2 + 4);\n      bVar3 = pPVar2 != pPVar1;\n      pPVar2 = pPVar2 + -1;\n    } while (bVar3);\n  }\n  *pPVar1 = pos;\n  return;\n}" { (declaration "POSITION *pPVar1;" type_identifier (pointer_declarator "*pPVar1" * identifier) ;) (declaration "POSITION *pPVar2;" type_identifier (pointer_declarator "*pPVar2" * identifier) ;) (declaration "bool bVar3;" primitive_type identifier ;) (expression_statement "pPVar1 = table;" (assignment_expression "pPVar1 = table" identifier = identifier) ;) (expression_statement "pPVar2 = table + sc_height + -2;" (assignment_expression "pPVar2 = table + sc_height + -2" identifier = (binary_expression "table + sc_height + -2" (binary_expression "table + sc_height" identifier + identifier) + number_literal)) ;) (if_statement "if (1 < sc_height) {\n    do {\n      *(int *)(pPVar2 + 1) = (int)*pPVar2;\n      *(undefined4 *)((int)pPVar2 + 0xc) = *(undefined4 *)((int)pPVar2 + 4);\n      bVar3 = pPVar2 != pPVar1;\n      pPVar2 = pPVar2 + -1;\n    } while (bVar3);\n  }" if (parenthesized_expression "(1 < sc_height)" ( (binary_expression "1 < sc_height" number_literal < identifier) )) (compound_statement "{\n    do {\n      *(int *)(pPVar2 + 1) = (int)*pPVar2;\n      *(undefined4 *)((int)pPVar2 + 0xc) = *(undefined4 *)((int)pPVar2 + 4);\n      bVar3 = pPVar2 != pPVar1;\n      pPVar2 = pPVar2 + -1;\n    } while (bVar3);\n  }" { (do_statement "do {\n      *(int *)(pPVar2 + 1) = (int)*pPVar2;\n      *(undefined4 *)((int)pPVar2 + 0xc) = *(undefined4 *)((int)pPVar2 + 4);\n      bVar3 = pPVar2 != pPVar1;\n      pPVar2 = pPVar2 + -1;\n    } while (bVar3);" do (compound_statement "{\n      *(int *)(pPVar2 + 1) = (int)*pPVar2;\n      *(undefined4 *)((int)pPVar2 + 0xc) = *(undefined4 *)((int)pPVar2 + 4);\n      bVar3 = pPVar2 != pPVar1;\n      pPVar2 = pPVar2 + -1;\n    }" { (expression_statement "*(int *)(pPVar2 + 1) = (int)*pPVar2;" (assignment_expression "*(int *)(pPVar2 + 1) = (int)*pPVar2" (pointer_expression "*(int *)(pPVar2 + 1)" * (cast_expression "(int *)(pPVar2 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pPVar2 + 1)" ( (binary_expression "pPVar2 + 1" identifier + number_literal) )))) = (cast_expression "(int)*pPVar2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pPVar2" * identifier))) ;) (expression_statement "*(undefined4 *)((int)pPVar2 + 0xc) = *(undefined4 *)((int)pPVar2 + 4);" (assignment_expression "*(undefined4 *)((int)pPVar2 + 0xc) = *(undefined4 *)((int)pPVar2 + 4)" (pointer_expression "*(undefined4 *)((int)pPVar2 + 0xc)" * (cast_expression "(undefined4 *)((int)pPVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pPVar2 + 0xc)" ( (binary_expression "(int)pPVar2 + 0xc" (cast_expression "(int)pPVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (pointer_expression "*(undefined4 *)((int)pPVar2 + 4)" * (cast_expression "(undefined4 *)((int)pPVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pPVar2 + 4)" ( (binary_expression "(int)pPVar2 + 4" (cast_expression "(int)pPVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "bVar3 = pPVar2 != pPVar1;" (assignment_expression "bVar3 = pPVar2 != pPVar1" identifier = (binary_expression "pPVar2 != pPVar1" identifier != identifier)) ;) (expression_statement "pPVar2 = pPVar2 + -1;" (assignment_expression "pPVar2 = pPVar2 + -1" identifier = (binary_expression "pPVar2 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar3)" ( identifier )) ;) })) (expression_statement "*pPVar1 = pos;" (assignment_expression "*pPVar1 = pos" (pointer_expression "*pPVar1" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0002b380(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  bool bVar3;\n  \n  puVar1 = DAT_00048004;\n  puVar2 = DAT_00048004 + DAT_000488e4 * 2 + -4;\n  if (1 < DAT_000488e4) {\n    do {\n      puVar2[2] = *puVar2;\n      puVar2[3] = puVar2[1];\n      bVar3 = puVar2 != puVar1;\n      puVar2 = puVar2 + -2;\n    } while (bVar3);\n  }\n  *puVar1 = param_1;\n  puVar1[1] = param_2;\n  return;\n}\n\n" (function_definition "void FUN_0002b380(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  bool bVar3;\n  \n  puVar1 = DAT_00048004;\n  puVar2 = DAT_00048004 + DAT_000488e4 * 2 + -4;\n  if (1 < DAT_000488e4) {\n    do {\n      puVar2[2] = *puVar2;\n      puVar2[3] = puVar2[1];\n      bVar3 = puVar2 != puVar1;\n      puVar2 = puVar2 + -2;\n    } while (bVar3);\n  }\n  *puVar1 = param_1;\n  puVar1[1] = param_2;\n  return;\n}" primitive_type (function_declarator "FUN_0002b380(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  undefined4 *puVar1;\n  undefined4 *puVar2;\n  bool bVar3;\n  \n  puVar1 = DAT_00048004;\n  puVar2 = DAT_00048004 + DAT_000488e4 * 2 + -4;\n  if (1 < DAT_000488e4) {\n    do {\n      puVar2[2] = *puVar2;\n      puVar2[3] = puVar2[1];\n      bVar3 = puVar2 != puVar1;\n      puVar2 = puVar2 + -2;\n    } while (bVar3);\n  }\n  *puVar1 = param_1;\n  puVar1[1] = param_2;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "bool bVar3;" primitive_type identifier ;) (expression_statement "puVar1 = DAT_00048004;" (assignment_expression "puVar1 = DAT_00048004" identifier = identifier) ;) (expression_statement "puVar2 = DAT_00048004 + DAT_000488e4 * 2 + -4;" (assignment_expression "puVar2 = DAT_00048004 + DAT_000488e4 * 2 + -4" identifier = (binary_expression "DAT_00048004 + DAT_000488e4 * 2 + -4" (binary_expression "DAT_00048004 + DAT_000488e4 * 2" identifier + (binary_expression "DAT_000488e4 * 2" identifier * number_literal)) + number_literal)) ;) (if_statement "if (1 < DAT_000488e4) {\n    do {\n      puVar2[2] = *puVar2;\n      puVar2[3] = puVar2[1];\n      bVar3 = puVar2 != puVar1;\n      puVar2 = puVar2 + -2;\n    } while (bVar3);\n  }" if (parenthesized_expression "(1 < DAT_000488e4)" ( (binary_expression "1 < DAT_000488e4" number_literal < identifier) )) (compound_statement "{\n    do {\n      puVar2[2] = *puVar2;\n      puVar2[3] = puVar2[1];\n      bVar3 = puVar2 != puVar1;\n      puVar2 = puVar2 + -2;\n    } while (bVar3);\n  }" { (do_statement "do {\n      puVar2[2] = *puVar2;\n      puVar2[3] = puVar2[1];\n      bVar3 = puVar2 != puVar1;\n      puVar2 = puVar2 + -2;\n    } while (bVar3);" do (compound_statement "{\n      puVar2[2] = *puVar2;\n      puVar2[3] = puVar2[1];\n      bVar3 = puVar2 != puVar1;\n      puVar2 = puVar2 + -2;\n    }" { (expression_statement "puVar2[2] = *puVar2;" (assignment_expression "puVar2[2] = *puVar2" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "puVar2[3] = puVar2[1];" (assignment_expression "puVar2[3] = puVar2[1]" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = (subscript_expression "puVar2[1]" identifier [ number_literal ])) ;) (expression_statement "bVar3 = puVar2 != puVar1;" (assignment_expression "bVar3 = puVar2 != puVar1" identifier = (binary_expression "puVar2 != puVar1" identifier != identifier)) ;) (expression_statement "puVar2 = puVar2 + -2;" (assignment_expression "puVar2 = puVar2 + -2" identifier = (binary_expression "puVar2 + -2" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar3)" ( identifier )) ;) })) (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = param_2;" (assignment_expression "puVar1[1] = param_2" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT != IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_0002b380(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  bool bVar3;\n  \n  puVar1 = DAT_00048004;\n  puVar2 = DAT_00048004 + DAT_000488e4 * 2 + -4;\n  if (1 < DAT_000488e4) {\n    do {\n      puVar2[2] = *puVar2;\n      puVar2[3] = puVar2[1];\n      bVar3 = puVar2 != puVar1;\n      puVar2 = puVar2 + -2;\n    } while (bVar3);\n  }\n  *puVar1 = param_1;\n  puVar1[1] = param_2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0002b380(undefined4 param_1,undefined4 param_2)" (identifier "FUN_0002b380") (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  undefined4 *puVar1;\n  undefined4 *puVar2;\n  bool bVar3;\n  \n  puVar1 = DAT_00048004;\n  puVar2 = DAT_00048004 + DAT_000488e4 * 2 + -4;\n  if (1 < DAT_000488e4) {\n    do {\n      puVar2[2] = *puVar2;\n      puVar2[3] = puVar2[1];\n      bVar3 = puVar2 != puVar1;\n      puVar2 = puVar2 + -2;\n    } while (bVar3);\n  }\n  *puVar1 = param_1;\n  puVar1[1] = param_2;\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "bool bVar3;" (primitive_type "bool") (identifier "bVar3") (; ";")) (expression_statement "puVar1 = DAT_00048004;" (assignment_expression "puVar1 = DAT_00048004" (identifier "puVar1") (= "=") (identifier "DAT_00048004")) (; ";")) (expression_statement "puVar2 = DAT_00048004 + DAT_000488e4 * 2 + -4;" (assignment_expression "puVar2 = DAT_00048004 + DAT_000488e4 * 2 + -4" (identifier "puVar2") (= "=") (binary_expression "DAT_00048004 + DAT_000488e4 * 2 + -4" (binary_expression "DAT_00048004 + DAT_000488e4 * 2" (identifier "DAT_00048004") (+ "+") (binary_expression "DAT_000488e4 * 2" (identifier "DAT_000488e4") (* "*") (number_literal "2"))) (+ "+") (number_literal "-4"))) (; ";")) (if_statement "if (1 < DAT_000488e4) {\n    do {\n      puVar2[2] = *puVar2;\n      puVar2[3] = puVar2[1];\n      bVar3 = puVar2 != puVar1;\n      puVar2 = puVar2 + -2;\n    } while (bVar3);\n  }" (if "if") (parenthesized_expression "(1 < DAT_000488e4)" (( "(") (binary_expression "1 < DAT_000488e4" (number_literal "1") (< "<") (identifier "DAT_000488e4")) () ")")) (compound_statement "{\n    do {\n      puVar2[2] = *puVar2;\n      puVar2[3] = puVar2[1];\n      bVar3 = puVar2 != puVar1;\n      puVar2 = puVar2 + -2;\n    } while (bVar3);\n  }" ({ "{") (do_statement "do {\n      puVar2[2] = *puVar2;\n      puVar2[3] = puVar2[1];\n      bVar3 = puVar2 != puVar1;\n      puVar2 = puVar2 + -2;\n    } while (bVar3);" (do "do") (compound_statement "{\n      puVar2[2] = *puVar2;\n      puVar2[3] = puVar2[1];\n      bVar3 = puVar2 != puVar1;\n      puVar2 = puVar2 + -2;\n    }" ({ "{") (expression_statement "puVar2[2] = *puVar2;" (assignment_expression "puVar2[2] = *puVar2" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "puVar2[3] = puVar2[1];" (assignment_expression "puVar2[3] = puVar2[1]" (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "bVar3 = puVar2 != puVar1;" (assignment_expression "bVar3 = puVar2 != puVar1" (identifier "bVar3") (= "=") (binary_expression "puVar2 != puVar1" (identifier "puVar2") (!= "!=") (identifier "puVar1"))) (; ";")) (expression_statement "puVar2 = puVar2 + -2;" (assignment_expression "puVar2 = puVar2 + -2" (identifier "puVar2") (= "=") (binary_expression "puVar2 + -2" (identifier "puVar2") (+ "+") (number_literal "-2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar3)" (( "(") (identifier "bVar3") () ")")) (; ";")) (} "}"))) (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "puVar1[1] = param_2;" (assignment_expression "puVar1[1] = param_2" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

void function_1(type_1 pos)

{
  type_1 *var_4;
  type_1 *var_3;
  bool bVar3;
  
  var_4 = var_1;
  var_3 = var_1 + var_2 + -2;
  if (1 < var_2) {
    do {
      *(int *)(var_3 + 1) = (int)*var_3;
      *(type_2 *)((int)var_3 + 0xc) = *(type_2 *)((int)var_3 + 4);
      bVar3 = var_3 != var_4;
      var_3 = var_3 + -1;
    } while (bVar3);
  }
  *var_4 = pos;
  return;
}


(translation_unit (function_definition type: (primitive_type) 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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (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))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void MASKED(undefined4 param_1,undefined4 param_2)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  bool bVar3;
  
  puVar1 = DAT_00048004;
  puVar2 = DAT_00048004 + DAT_000488e4 * 2 + -4;
  if (1 < DAT_000488e4) {
    do {
      puVar2[2] = *puVar2;
      puVar2[3] = puVar2[1];
      bVar3 = puVar2 != puVar1;
      puVar2 = puVar2 + -2;
    } while (bVar3);
  }
  *puVar1 = param_1;
  puVar1[1] = param_2;
  return;
}

