
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void __regparm3 scale_addr_delta(addressT *addr_delta)

{
  uint uVar1;
  uint uVar2;
  
  uVar2 = (uint)*addr_delta;
  uVar1 = *(uint *)((int)addr_delta + 4);
  if (((uVar2 & 3) != 0) && (scale_addr_delta::printed_this == 0)) {
    as_bad("unaligned opcodes detected in executable segment");
    scale_addr_delta::printed_this = 1;
    uVar2 = (uint)*addr_delta;
    uVar1 = *(uint *)((int)addr_delta + 4);
  }
  *(uint *)addr_delta = uVar2 >> 2 | uVar1 << 0x1e;
  *(uint *)((int)addr_delta + 4) = uVar1 >> 2;
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void __regparm3 FUN_0001cf10(uint *param_1)

{
  uint uVar1;
  uint uVar2;
  
  uVar2 = *param_1;
  uVar1 = param_1[1];
  if (((uVar2 & 3) != 0) && (DAT_00088728 == 0)) {
    FUN_0002ec90("unaligned opcodes detected in executable segment");
    DAT_00088728 = 1;
    uVar2 = *param_1;
    uVar1 = param_1[1];
  }
  *param_1 = uVar2 >> 2 | uVar1 << 0x1e;
  param_1[1] = uVar1 >> 2;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
CALL 0x00020659
ADD ESI,0x630e8
PUSH EBX
SUB ESP,0x1c
MOV EDI,dword ptr [EAX]
MOV EBP,dword ptr [EAX + 0x4]
MOV EDX,EDI
AND EDX,0x3
JZ 0x0001cf38
MOV ECX,dword ptr [ESI + 0x8728]
TEST ECX,ECX
JZ 0x0001cf50
MOV ECX,EDI
MOV EBX,EBP
SHRD ECX,EBP,0x2
SHR EBX,0x2
MOV dword ptr [EAX],ECX
MOV dword ptr [EAX + 0x4],EBX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0xc],EAX
LEA EDX,[ESI + 0xfffdb314]
SUB ESP,0xc
MOV EBX,ESI
PUSH EDX
CALL 0x0002ec90
MOV EAX,dword ptr [ESP + 0x1c]
ADD ESP,0x10
MOV dword ptr [ESI + 0x8728],0x1
MOV EDI,dword ptr [EAX]
MOV EBP,dword ptr [EAX + 0x4]
JMP 0x0001cf38
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nvoid __regparm3 FUN_0001cf10(uint *param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar2 = *param_1;\n  uVar1 = param_1[1];\n  if (((uVar2 & 3) != 0) && (DAT_00088728 == 0)) {\n    FUN_0002ec90("unaligned opcodes detected in executable segment");\n    DAT_00088728 = 1;\n    uVar2 = *param_1;\n    uVar1 = param_1[1];\n  }\n  *param_1 = uVar2 >> 2 | uVar1 << 0x1e;\n  param_1[1] = uVar1 >> 2;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0001cf10(uint *param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar2 = *param_1;\n  uVar1 = param_1[1];\n  if (((uVar2 & 3) != 0) && (DAT_00088728 == 0)) {\n    FUN_0002ec90("unaligned opcodes detected in executable segment");\n    DAT_00088728 = 1;\n    uVar2 = *param_1;\n    uVar1 = param_1[1];\n  }\n  *param_1 = uVar2 >> 2 | uVar1 << 0x1e;\n  param_1[1] = uVar1 >> 2;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001cf10(uint *param_1)" identifier (parameter_list "(uint *param_1)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar2 = *param_1;\n  uVar1 = param_1[1];\n  if (((uVar2 & 3) != 0) && (DAT_00088728 == 0)) {\n    FUN_0002ec90("unaligned opcodes detected in executable segment");\n    DAT_00088728 = 1;\n    uVar2 = *param_1;\n    uVar1 = param_1[1];\n  }\n  *param_1 = uVar2 >> 2 | uVar1 << 0x1e;\n  param_1[1] = uVar1 >> 2;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (((uVar2 & 3) != 0) && (DAT_00088728 == 0)) {\n    FUN_0002ec90("unaligned opcodes detected in executable segment");\n    DAT_00088728 = 1;\n    uVar2 = *param_1;\n    uVar1 = param_1[1];\n  }" if (parenthesized_expression "(((uVar2 & 3) != 0) && (DAT_00088728 == 0))" ( (binary_expression "((uVar2 & 3) != 0) && (DAT_00088728 == 0)" (parenthesized_expression "((uVar2 & 3) != 0)" ( (binary_expression "(uVar2 & 3) != 0" (parenthesized_expression "(uVar2 & 3)" ( (binary_expression "uVar2 & 3" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(DAT_00088728 == 0)" ( (binary_expression "DAT_00088728 == 0" identifier == number_literal) ))) )) (compound_statement "{\n    FUN_0002ec90("unaligned opcodes detected in executable segment");\n    DAT_00088728 = 1;\n    uVar2 = *param_1;\n    uVar1 = param_1[1];\n  }" { (expression_statement "FUN_0002ec90("unaligned opcodes detected in executable segment");" (call_expression "FUN_0002ec90("unaligned opcodes detected in executable segment")" identifier (argument_list "("unaligned opcodes detected in executable segment")" ( (string_literal ""unaligned opcodes detected in executable segment"" " string_content ") ))) ;) (expression_statement "DAT_00088728 = 1;" (assignment_expression "DAT_00088728 = 1" identifier = number_literal) ;) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) })) (expression_statement "*param_1 = uVar2 >> 2 | uVar1 << 0x1e;" (assignment_expression "*param_1 = uVar2 >> 2 | uVar1 << 0x1e" (pointer_expression "*param_1" * identifier) = (binary_expression "uVar2 >> 2 | uVar1 << 0x1e" (binary_expression "uVar2 >> 2" identifier >> number_literal) | (binary_expression "uVar1 << 0x1e" identifier << number_literal))) ;) (expression_statement "param_1[1] = uVar1 >> 2;" (assignment_expression "param_1[1] = uVar1 >> 2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "uVar1 >> 2" identifier >> number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nvoid __regparm3 scale_addr_delta(addressT *addr_delta)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar2 = (uint)*addr_delta;\n  uVar1 = *(uint *)((int)addr_delta + 4);\n  if (((uVar2 & 3) != 0) && (scale_addr_delta::printed_this == 0)) {\n    as_bad("unaligned opcodes detected in executable segment");\n    scale_addr_delta::printed_this = 1;\n    uVar2 = (uint)*addr_delta;\n    uVar1 = *(uint *)((int)addr_delta + 4);\n  }\n  *(uint *)addr_delta = uVar2 >> 2 | uVar1 << 0x1e;\n  *(uint *)((int)addr_delta + 4) = uVar1 >> 2;\n  return;\n}\n\n" comment (function_definition "void __regparm3 scale_addr_delta(addressT *addr_delta)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar2 = (uint)*addr_delta;\n  uVar1 = *(uint *)((int)addr_delta + 4);\n  if (((uVar2 & 3) != 0) && (scale_addr_delta::printed_this == 0)) {\n    as_bad("unaligned opcodes detected in executable segment");\n    scale_addr_delta::printed_this = 1;\n    uVar2 = (uint)*addr_delta;\n    uVar1 = *(uint *)((int)addr_delta + 4);\n  }\n  *(uint *)addr_delta = uVar2 >> 2 | uVar1 << 0x1e;\n  *(uint *)((int)addr_delta + 4) = uVar1 >> 2;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "scale_addr_delta(addressT *addr_delta)" identifier (parameter_list "(addressT *addr_delta)" ( (parameter_declaration "addressT *addr_delta" type_identifier (pointer_declarator "*addr_delta" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar2 = (uint)*addr_delta;\n  uVar1 = *(uint *)((int)addr_delta + 4);\n  if (((uVar2 & 3) != 0) && (scale_addr_delta::printed_this == 0)) {\n    as_bad("unaligned opcodes detected in executable segment");\n    scale_addr_delta::printed_this = 1;\n    uVar2 = (uint)*addr_delta;\n    uVar1 = *(uint *)((int)addr_delta + 4);\n  }\n  *(uint *)addr_delta = uVar2 >> 2 | uVar1 << 0x1e;\n  *(uint *)((int)addr_delta + 4) = uVar1 >> 2;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = (uint)*addr_delta;" (assignment_expression "uVar2 = (uint)*addr_delta" identifier = (binary_expression "(uint)*addr_delta" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "uVar1 = *(uint *)((int)addr_delta + 4);" (assignment_expression "uVar1 = *(uint *)((int)addr_delta + 4)" identifier = (pointer_expression "*(uint *)((int)addr_delta + 4)" * (cast_expression "(uint *)((int)addr_delta + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)addr_delta + 4)" ( (binary_expression "(int)addr_delta + 4" (cast_expression "(int)addr_delta" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (((uVar2 & 3) != 0) && (scale_addr_delta::printed_this == 0)) {\n    as_bad("unaligned opcodes detected in executable segment");\n    scale_addr_delta::printed_this = 1;\n    uVar2 = (uint)*addr_delta;\n    uVar1 = *(uint *)((int)addr_delta + 4);\n  }" if (parenthesized_expression "(((uVar2 & 3) != 0) && (scale_addr_delta::printed_this == 0))" ( (binary_expression "((uVar2 & 3) != 0) && (scale_addr_delta::printed_this == 0)" (parenthesized_expression "((uVar2 & 3) != 0)" ( (binary_expression "(uVar2 & 3) != 0" (parenthesized_expression "(uVar2 & 3)" ( (binary_expression "uVar2 & 3" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(scale_addr_delta::printed_this == 0)" ( (binary_expression "scale_addr_delta::printed_this == 0" identifier (ERROR "::printed_this" : : identifier) == number_literal) ))) )) (compound_statement "{\n    as_bad("unaligned opcodes detected in executable segment");\n    scale_addr_delta::printed_this = 1;\n    uVar2 = (uint)*addr_delta;\n    uVar1 = *(uint *)((int)addr_delta + 4);\n  }" { (expression_statement "as_bad("unaligned opcodes detected in executable segment");" (call_expression "as_bad("unaligned opcodes detected in executable segment")" identifier (argument_list "("unaligned opcodes detected in executable segment")" ( (string_literal ""unaligned opcodes detected in executable segment"" " string_content ") ))) ;) (labeled_statement "scale_addr_delta::printed_this = 1;" statement_identifier : (ERROR ":" :) (expression_statement "printed_this = 1;" (assignment_expression "printed_this = 1" identifier = number_literal) ;)) (expression_statement "uVar2 = (uint)*addr_delta;" (assignment_expression "uVar2 = (uint)*addr_delta" identifier = (binary_expression "(uint)*addr_delta" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "uVar1 = *(uint *)((int)addr_delta + 4);" (assignment_expression "uVar1 = *(uint *)((int)addr_delta + 4)" identifier = (pointer_expression "*(uint *)((int)addr_delta + 4)" * (cast_expression "(uint *)((int)addr_delta + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)addr_delta + 4)" ( (binary_expression "(int)addr_delta + 4" (cast_expression "(int)addr_delta" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) })) (expression_statement "*(uint *)addr_delta = uVar2 >> 2 | uVar1 << 0x1e;" (assignment_expression "*(uint *)addr_delta = uVar2 >> 2 | uVar1 << 0x1e" (pointer_expression "*(uint *)addr_delta" * (cast_expression "(uint *)addr_delta" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "uVar2 >> 2 | uVar1 << 0x1e" (binary_expression "uVar2 >> 2" identifier >> number_literal) | (binary_expression "uVar1 << 0x1e" identifier << number_literal))) ;) (expression_statement "*(uint *)((int)addr_delta + 4) = uVar1 >> 2;" (assignment_expression "*(uint *)((int)addr_delta + 4) = uVar1 >> 2" (pointer_expression "*(uint *)((int)addr_delta + 4)" * (cast_expression "(uint *)((int)addr_delta + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)addr_delta + 4)" ( (binary_expression "(int)addr_delta + 4" (cast_expression "(int)addr_delta" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "uVar1 >> 2" identifier >> number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0001cf10(uint *param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar2 = *param_1;\n  uVar1 = param_1[1];\n  if (((uVar2 & 3) != 0) && (DAT_00088728 == 0)) {\n    FUN_0002ec90("unaligned opcodes detected in executable segment");\n    DAT_00088728 = 1;\n    uVar2 = *param_1;\n    uVar1 = param_1[1];\n  }\n  *param_1 = uVar2 >> 2 | uVar1 << 0x1e;\n  param_1[1] = uVar1 >> 2;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0001cf10(uint *param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar2 = *param_1;\n  uVar1 = param_1[1];\n  if (((uVar2 & 3) != 0) && (DAT_00088728 == 0)) {\n    FUN_0002ec90("unaligned opcodes detected in executable segment");\n    DAT_00088728 = 1;\n    uVar2 = *param_1;\n    uVar1 = param_1[1];\n  }\n  *param_1 = uVar2 >> 2 | uVar1 << 0x1e;\n  param_1[1] = uVar1 >> 2;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001cf10(uint *param_1)" identifier (parameter_list "(uint *param_1)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar2 = *param_1;\n  uVar1 = param_1[1];\n  if (((uVar2 & 3) != 0) && (DAT_00088728 == 0)) {\n    FUN_0002ec90("unaligned opcodes detected in executable segment");\n    DAT_00088728 = 1;\n    uVar2 = *param_1;\n    uVar1 = param_1[1];\n  }\n  *param_1 = uVar2 >> 2 | uVar1 << 0x1e;\n  param_1[1] = uVar1 >> 2;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (((uVar2 & 3) != 0) && (DAT_00088728 == 0)) {\n    FUN_0002ec90("unaligned opcodes detected in executable segment");\n    DAT_00088728 = 1;\n    uVar2 = *param_1;\n    uVar1 = param_1[1];\n  }" if (parenthesized_expression "(((uVar2 & 3) != 0) && (DAT_00088728 == 0))" ( (binary_expression "((uVar2 & 3) != 0) && (DAT_00088728 == 0)" (parenthesized_expression "((uVar2 & 3) != 0)" ( (binary_expression "(uVar2 & 3) != 0" (parenthesized_expression "(uVar2 & 3)" ( (binary_expression "uVar2 & 3" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(DAT_00088728 == 0)" ( (binary_expression "DAT_00088728 == 0" identifier == number_literal) ))) )) (compound_statement "{\n    FUN_0002ec90("unaligned opcodes detected in executable segment");\n    DAT_00088728 = 1;\n    uVar2 = *param_1;\n    uVar1 = param_1[1];\n  }" { (expression_statement "FUN_0002ec90("unaligned opcodes detected in executable segment");" (call_expression "FUN_0002ec90("unaligned opcodes detected in executable segment")" identifier (argument_list "("unaligned opcodes detected in executable segment")" ( (string_literal ""unaligned opcodes detected in executable segment"" " string_content ") ))) ;) (expression_statement "DAT_00088728 = 1;" (assignment_expression "DAT_00088728 = 1" identifier = number_literal) ;) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) })) (expression_statement "*param_1 = uVar2 >> 2 | uVar1 << 0x1e;" (assignment_expression "*param_1 = uVar2 >> 2 | uVar1 << 0x1e" (pointer_expression "*param_1" * identifier) = (binary_expression "uVar2 >> 2 | uVar1 << 0x1e" (binary_expression "uVar2 >> 2" identifier >> number_literal) | (binary_expression "uVar1 << 0x1e" identifier << number_literal))) ;) (expression_statement "param_1[1] = uVar1 >> 2;" (assignment_expression "param_1[1] = uVar1 >> 2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "uVar1 >> 2" identifier >> number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression IDENT >> LIT) | (binary_expression IDENT << LIT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT >> LIT)) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0001cf10(uint *param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar2 = *param_1;\n  uVar1 = param_1[1];\n  if (((uVar2 & 3) != 0) && (DAT_00088728 == 0)) {\n    FUN_0002ec90("unaligned opcodes detected in executable segment");\n    DAT_00088728 = 1;\n    uVar2 = *param_1;\n    uVar1 = param_1[1];\n  }\n  *param_1 = uVar2 >> 2 | uVar1 << 0x1e;\n  param_1[1] = uVar1 >> 2;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001cf10(uint *param_1)" (identifier "FUN_0001cf10") (parameter_list "(uint *param_1)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar2 = *param_1;\n  uVar1 = param_1[1];\n  if (((uVar2 & 3) != 0) && (DAT_00088728 == 0)) {\n    FUN_0002ec90("unaligned opcodes detected in executable segment");\n    DAT_00088728 = 1;\n    uVar2 = *param_1;\n    uVar1 = param_1[1];\n  }\n  *param_1 = uVar2 >> 2 | uVar1 << 0x1e;\n  param_1[1] = uVar1 >> 2;\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" (identifier "uVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" (identifier "uVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (((uVar2 & 3) != 0) && (DAT_00088728 == 0)) {\n    FUN_0002ec90("unaligned opcodes detected in executable segment");\n    DAT_00088728 = 1;\n    uVar2 = *param_1;\n    uVar1 = param_1[1];\n  }" (if "if") (parenthesized_expression "(((uVar2 & 3) != 0) && (DAT_00088728 == 0))" (( "(") (binary_expression "((uVar2 & 3) != 0) && (DAT_00088728 == 0)" (parenthesized_expression "((uVar2 & 3) != 0)" (( "(") (binary_expression "(uVar2 & 3) != 0" (parenthesized_expression "(uVar2 & 3)" (( "(") (binary_expression "uVar2 & 3" (identifier "uVar2") (& "&") (number_literal "3")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(DAT_00088728 == 0)" (( "(") (binary_expression "DAT_00088728 == 0" (identifier "DAT_00088728") (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    FUN_0002ec90("unaligned opcodes detected in executable segment");\n    DAT_00088728 = 1;\n    uVar2 = *param_1;\n    uVar1 = param_1[1];\n  }" ({ "{") (expression_statement "FUN_0002ec90("unaligned opcodes detected in executable segment");" (call_expression "FUN_0002ec90("unaligned opcodes detected in executable segment")" (identifier "FUN_0002ec90") (argument_list "("unaligned opcodes detected in executable segment")" (( "(") (string_literal ""unaligned opcodes detected in executable segment"" (" """) (string_content "unaligned opcodes detected in executable segment") (" """)) () ")"))) (; ";")) (expression_statement "DAT_00088728 = 1;" (assignment_expression "DAT_00088728 = 1" (identifier "DAT_00088728") (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" (identifier "uVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" (identifier "uVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}"))) (expression_statement "*param_1 = uVar2 >> 2 | uVar1 << 0x1e;" (assignment_expression "*param_1 = uVar2 >> 2 | uVar1 << 0x1e" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "uVar2 >> 2 | uVar1 << 0x1e" (binary_expression "uVar2 >> 2" (identifier "uVar2") (>> ">>") (number_literal "2")) (| "|") (binary_expression "uVar1 << 0x1e" (identifier "uVar1") (<< "<<") (number_literal "0x1e")))) (; ";")) (expression_statement "param_1[1] = uVar1 >> 2;" (assignment_expression "param_1[1] = uVar1 >> 2" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "uVar1 >> 2" (identifier "uVar1") (>> ">>") (number_literal "2"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void __regparm3 function_1(type_1 *var_1)

{
  type_2 var_4;
  type_2 var_2;
  
  var_2 = (type_2)*var_1;
  var_4 = *(type_2 *)((int)var_1 + 4);
  if (((var_2 & 3) != 0) && (function_1::printed_this == 0)) {
    var_3("unaligned opcodes detected in executable segment");
    scale_addr_delta::printed_this = 1;
    var_2 = (type_2)*var_1;
    var_4 = *(type_2 *)((int)var_1 + 4);
  }
  *(type_2 *)var_1 = var_2 >> 2 | var_4 << 0x1e;
  *(type_2 *)((int)var_1 + 4) = var_4 >> 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: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void __regparm3 MASKED(uint *param_1)

{
  uint uVar1;
  uint uVar2;
  
  uVar2 = *param_1;
  uVar1 = param_1[1];
  if (((uVar2 & 3) != 0) && (DAT_00088728 == 0)) {
    FUN_0002ec90("unaligned opcodes detected in executable segment");
    DAT_00088728 = 1;
    uVar2 = *param_1;
    uVar1 = param_1[1];
  }
  *param_1 = uVar2 >> 2 | uVar1 << 0x1e;
  param_1[1] = uVar1 >> 2;
  return;
}

