
/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

uint xcrc32(uchar *buf,int len,uint init)

{
  byte bVar1;
  byte *pbVar2;
  
  if (len != 0) {
    pbVar2 = buf + len;
    do {
      bVar1 = *buf;
      buf = buf + 1;
      init = init << 8 ^ crc32_table[init >> 0x18 ^ (uint)bVar1];
    } while (buf != pbVar2);
    return init;
  }
  return init;
}



/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

uint FUN_001e1d00(byte *param_1,int param_2,uint param_3)

{
  byte bVar1;
  byte *pbVar2;
  
  if (param_2 != 0) {
    pbVar2 = param_1 + param_2;
    do {
      bVar1 = *param_1;
      param_1 = param_1 + 1;
      param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4);
    } while (param_1 != pbVar2);
    return param_3;
  }
  return param_3;
}


CALL 0x000650b8
ADD ECX,0x1ad2fb
PUSH EDI
PUSH ESI
PUSH EBX
MOV EBX,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [ESP + 0x10]
TEST EBX,EBX
JZ 0x001e1d50
MOV EAX,dword ptr [ESP + 0x18]
ADD EBX,EDX
LEA ESI,[ECX + 0xfff13680]
LEA ESI,[ESI]
LEA ESI,[ESI]
MOVZX EDI,byte ptr [EDX]
MOV ECX,EAX
SHR EAX,0x18
ADD EDX,0x1
SHL ECX,0x8
XOR EAX,EDI
XOR ECX,dword ptr [ESI + EAX*0x4]
MOV EAX,ECX
CMP EDX,EBX
JNZ 0x001e1d30
POP EBX
POP ESI
POP EDI
RET
MOV EAX,dword ptr [ESP + 0x18]
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nuint FUN_001e1d00(byte *param_1,int param_2,uint param_3)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  \n  if (param_2 != 0) {\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }\n  return param_3;\n}\n\n" comment (function_definition "uint FUN_001e1d00(byte *param_1,int param_2,uint param_3)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  \n  if (param_2 != 0) {\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }\n  return param_3;\n}" type_identifier (function_declarator "FUN_001e1d00(byte *param_1,int param_2,uint param_3)" identifier (parameter_list "(byte *param_1,int param_2,uint param_3)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  \n  if (param_2 != 0) {\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }\n  return param_3;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (if_statement "if (param_2 != 0) {\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }" { (expression_statement "pbVar2 = param_1 + param_2;" (assignment_expression "pbVar2 = param_1 + param_2" identifier = (binary_expression "param_1 + param_2" identifier + identifier)) ;) (do_statement "do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4);\n    } while (param_1 != pbVar2);" do (compound_statement "{\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4);\n    }" { (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4);" (assignment_expression "param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4)" identifier = (binary_expression "param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4)" (binary_expression "param_3 << 8" identifier << number_literal) ^ (pointer_expression "*(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4)" * (cast_expression "(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4)" ( (binary_expression "&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4" (pointer_expression "&DAT_002a2680" & identifier) + (binary_expression "(param_3 >> 0x18 ^ (uint)bVar1) * 4" (parenthesized_expression "(param_3 >> 0x18 ^ (uint)bVar1)" ( (binary_expression "param_3 >> 0x18 ^ (uint)bVar1" (binary_expression "param_3 >> 0x18" identifier >> number_literal) ^ (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) )) * number_literal)) )))))) ;) }) while (parenthesized_expression "(param_1 != pbVar2)" ( (binary_expression "param_1 != pbVar2" identifier != identifier) )) ;) (return_statement "return param_3;" return identifier ;) })) (return_statement "return param_3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nuint xcrc32(uchar *buf,int len,uint init)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  \n  if (len != 0) {\n    pbVar2 = buf + len;\n    do {\n      bVar1 = *buf;\n      buf = buf + 1;\n      init = init << 8 ^ crc32_table[init >> 0x18 ^ (uint)bVar1];\n    } while (buf != pbVar2);\n    return init;\n  }\n  return init;\n}\n\n" comment (function_definition "uint xcrc32(uchar *buf,int len,uint init)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  \n  if (len != 0) {\n    pbVar2 = buf + len;\n    do {\n      bVar1 = *buf;\n      buf = buf + 1;\n      init = init << 8 ^ crc32_table[init >> 0x18 ^ (uint)bVar1];\n    } while (buf != pbVar2);\n    return init;\n  }\n  return init;\n}" type_identifier (function_declarator "xcrc32(uchar *buf,int len,uint init)" identifier (parameter_list "(uchar *buf,int len,uint init)" ( (parameter_declaration "uchar *buf" type_identifier (pointer_declarator "*buf" * identifier)) , (parameter_declaration "int len" primitive_type identifier) , (parameter_declaration "uint init" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  \n  if (len != 0) {\n    pbVar2 = buf + len;\n    do {\n      bVar1 = *buf;\n      buf = buf + 1;\n      init = init << 8 ^ crc32_table[init >> 0x18 ^ (uint)bVar1];\n    } while (buf != pbVar2);\n    return init;\n  }\n  return init;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (if_statement "if (len != 0) {\n    pbVar2 = buf + len;\n    do {\n      bVar1 = *buf;\n      buf = buf + 1;\n      init = init << 8 ^ crc32_table[init >> 0x18 ^ (uint)bVar1];\n    } while (buf != pbVar2);\n    return init;\n  }" if (parenthesized_expression "(len != 0)" ( (binary_expression "len != 0" identifier != number_literal) )) (compound_statement "{\n    pbVar2 = buf + len;\n    do {\n      bVar1 = *buf;\n      buf = buf + 1;\n      init = init << 8 ^ crc32_table[init >> 0x18 ^ (uint)bVar1];\n    } while (buf != pbVar2);\n    return init;\n  }" { (expression_statement "pbVar2 = buf + len;" (assignment_expression "pbVar2 = buf + len" identifier = (binary_expression "buf + len" identifier + identifier)) ;) (do_statement "do {\n      bVar1 = *buf;\n      buf = buf + 1;\n      init = init << 8 ^ crc32_table[init >> 0x18 ^ (uint)bVar1];\n    } while (buf != pbVar2);" do (compound_statement "{\n      bVar1 = *buf;\n      buf = buf + 1;\n      init = init << 8 ^ crc32_table[init >> 0x18 ^ (uint)bVar1];\n    }" { (expression_statement "bVar1 = *buf;" (assignment_expression "bVar1 = *buf" identifier = (pointer_expression "*buf" * identifier)) ;) (expression_statement "buf = buf + 1;" (assignment_expression "buf = buf + 1" identifier = (binary_expression "buf + 1" identifier + number_literal)) ;) (expression_statement "init = init << 8 ^ crc32_table[init >> 0x18 ^ (uint)bVar1];" (assignment_expression "init = init << 8 ^ crc32_table[init >> 0x18 ^ (uint)bVar1]" identifier = (binary_expression "init << 8 ^ crc32_table[init >> 0x18 ^ (uint)bVar1]" (binary_expression "init << 8" identifier << number_literal) ^ (subscript_expression "crc32_table[init >> 0x18 ^ (uint)bVar1]" identifier [ (binary_expression "init >> 0x18 ^ (uint)bVar1" (binary_expression "init >> 0x18" identifier >> number_literal) ^ (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ]))) ;) }) while (parenthesized_expression "(buf != pbVar2)" ( (binary_expression "buf != pbVar2" identifier != identifier) )) ;) (return_statement "return init;" return identifier ;) })) (return_statement "return init;" return identifier ;) })))
(translation_unit "uint FUN_001e1d00(byte *param_1,int param_2,uint param_3)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  \n  if (param_2 != 0) {\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }\n  return param_3;\n}\n\n" (function_definition "uint FUN_001e1d00(byte *param_1,int param_2,uint param_3)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  \n  if (param_2 != 0) {\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }\n  return param_3;\n}" type_identifier (function_declarator "FUN_001e1d00(byte *param_1,int param_2,uint param_3)" identifier (parameter_list "(byte *param_1,int param_2,uint param_3)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  \n  if (param_2 != 0) {\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }\n  return param_3;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (if_statement "if (param_2 != 0) {\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }" { (expression_statement "pbVar2 = param_1 + param_2;" (assignment_expression "pbVar2 = param_1 + param_2" identifier = (binary_expression "param_1 + param_2" identifier + identifier)) ;) (do_statement "do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4);\n    } while (param_1 != pbVar2);" do (compound_statement "{\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4);\n    }" { (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4);" (assignment_expression "param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4)" identifier = (binary_expression "param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4)" (binary_expression "param_3 << 8" identifier << number_literal) ^ (pointer_expression "*(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4)" * (cast_expression "(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4)" ( (binary_expression "&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4" (pointer_expression "&DAT_002a2680" & identifier) + (binary_expression "(param_3 >> 0x18 ^ (uint)bVar1) * 4" (parenthesized_expression "(param_3 >> 0x18 ^ (uint)bVar1)" ( (binary_expression "param_3 >> 0x18 ^ (uint)bVar1" (binary_expression "param_3 >> 0x18" identifier >> number_literal) ^ (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) )) * number_literal)) )))))) ;) }) while (parenthesized_expression "(param_1 != pbVar2)" ( (binary_expression "param_1 != pbVar2" identifier != identifier) )) ;) (return_statement "return param_3;" return identifier ;) })) (return_statement "return param_3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT << LIT) ^ (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT >> LIT) ^ (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) * LIT)) )))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (return_statement return IDENT ;) })) (return_statement return IDENT ;) })))
(function_definition "uint FUN_001e1d00(byte *param_1,int param_2,uint param_3)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  \n  if (param_2 != 0) {\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }\n  return param_3;\n}" (type_identifier "uint") (function_declarator "FUN_001e1d00(byte *param_1,int param_2,uint param_3)" (identifier "FUN_001e1d00") (parameter_list "(byte *param_1,int param_2,uint param_3)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  \n  if (param_2 != 0) {\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }\n  return param_3;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (if_statement "if (param_2 != 0) {\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }" ({ "{") (expression_statement "pbVar2 = param_1 + param_2;" (assignment_expression "pbVar2 = param_1 + param_2" (identifier "pbVar2") (= "=") (binary_expression "param_1 + param_2" (identifier "param_1") (+ "+") (identifier "param_2"))) (; ";")) (do_statement "do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4);\n    } while (param_1 != pbVar2);" (do "do") (compound_statement "{\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4);\n    }" ({ "{") (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" (identifier "bVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4);" (assignment_expression "param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4)" (identifier "param_3") (= "=") (binary_expression "param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4)" (binary_expression "param_3 << 8" (identifier "param_3") (<< "<<") (number_literal "8")) (^ "^") (pointer_expression "*(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4)" (* "*") (cast_expression "(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4)" (( "(") (binary_expression "&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4" (pointer_expression "&DAT_002a2680" (& "&") (identifier "DAT_002a2680")) (+ "+") (binary_expression "(param_3 >> 0x18 ^ (uint)bVar1) * 4" (parenthesized_expression "(param_3 >> 0x18 ^ (uint)bVar1)" (( "(") (binary_expression "param_3 >> 0x18 ^ (uint)bVar1" (binary_expression "param_3 >> 0x18" (identifier "param_3") (>> ">>") (number_literal "0x18")) (^ "^") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1"))) () ")")) (* "*") (number_literal "4"))) () ")")))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1 != pbVar2)" (( "(") (binary_expression "param_1 != pbVar2" (identifier "param_1") (!= "!=") (identifier "pbVar2")) () ")")) (; ";")) (return_statement "return param_3;" (return "return") (identifier "param_3") (; ";")) (} "}"))) (return_statement "return param_3;" (return "return") (identifier "param_3") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

type_1 function_1(type_2 *var_2,int var_1,type_1 var_3)

{
  type_3 bVar1;
  type_3 *var_4;
  
  if (var_1 != 0) {
    var_4 = var_2 + var_1;
    do {
      bVar1 = *var_2;
      var_2 = var_2 + 1;
      var_3 = var_3 << 8 ^ crc32_table[var_3 >> 0x18 ^ (type_1)bVar1];
    } while (var_2 != var_4);
    return var_3;
  }
  return var_3;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) right: (number_literal)))))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (return_statement (identifier)))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

uint MASKED(byte *param_1,int param_2,uint param_3)

{
  byte bVar1;
  byte *pbVar2;
  
  if (param_2 != 0) {
    pbVar2 = param_1 + param_2;
    do {
      bVar1 = *param_1;
      param_1 = param_1 + 1;
      param_3 = param_3 << 8 ^ *(uint *)(&DAT_002a2680 + (param_3 >> 0x18 ^ (uint)bVar1) * 4);
    } while (param_1 != pbVar2);
    return param_3;
  }
  return param_3;
}

