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

hashval_t filename_hash(void *s)

{
  byte bVar1;
  hashval_t hVar2;
  uint uVar3;
  
                    /* WARNING: Load size is inaccurate */
  bVar1 = *s;
  if (bVar1 != 0) {
    hVar2 = 0;
    do {
      uVar3 = (uint)bVar1;
      s = (void *)((int)s + 1);
      if (bVar1 == 0x5c) {
        uVar3 = 0x2f;
      }
      hVar2 = hVar2 * 0x43 + -0x71 + (uint)""[uVar3];
                    /* WARNING: Load size is inaccurate */
      bVar1 = *s;
    } while (bVar1 != 0);
    return hVar2;
  }
  return 0;
}



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

int FUN_0017dbc0(byte *param_1)

{
  byte bVar1;
  int iVar2;
  uint uVar3;
  
  bVar1 = *param_1;
  if (bVar1 != 0) {
    iVar2 = 0;
    do {
      uVar3 = (uint)bVar1;
      param_1 = param_1 + 1;
      if (bVar1 == 0x5c) {
        uVar3 = 0x2f;
      }
      iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3];
      bVar1 = *param_1;
    } while (bVar1 != 0);
    return iVar2;
  }
  return 0;
}


PUSH ESI
PUSH EBX
MOV EAX,dword ptr [ESP + 0xc]
CALL 0x00032730
ADD EBX,0x184435
MOVZX EDX,byte ptr [EAX]
TEST DL,DL
JZ 0x0017dc10
LEA ECX,[EAX + 0x1]
LEA ESI,[EBX + 0xfff38060]
XOR EAX,EAX
MOV EBX,0x2f
LEA ESI,[ESI]
NOP
CMP DL,0x5c
CMOVZ EDX,EBX
IMUL EAX,EAX,0x43
ADD ECX,0x1
MOVZX EDX,byte ptr [ESI + EDX*0x1]
LEA EAX,[EAX + EDX*0x1 + -0x71]
MOVZX EDX,byte ptr [ECX + -0x1]
TEST DL,DL
JNZ 0x0017dbf0
POP EBX
POP ESI
RET
XOR EAX,EAX
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0017dbc0(byte *param_1)\n\n{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  \n  bVar1 = *param_1;\n  if (bVar1 != 0) {\n    iVar2 = 0;\n    do {\n      uVar3 = (uint)bVar1;\n      param_1 = param_1 + 1;\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3];\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }\n  return 0;\n}\n\n" comment (function_definition "int FUN_0017dbc0(byte *param_1)\n\n{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  \n  bVar1 = *param_1;\n  if (bVar1 != 0) {\n    iVar2 = 0;\n    do {\n      uVar3 = (uint)bVar1;\n      param_1 = param_1 + 1;\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3];\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_0017dbc0(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  \n  bVar1 = *param_1;\n  if (bVar1 != 0) {\n    iVar2 = 0;\n    do {\n      uVar3 = (uint)bVar1;\n      param_1 = param_1 + 1;\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3];\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }\n  return 0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (bVar1 != 0) {\n    iVar2 = 0;\n    do {\n      uVar3 = (uint)bVar1;\n      param_1 = param_1 + 1;\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3];\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = 0;\n    do {\n      uVar3 = (uint)bVar1;\n      param_1 = param_1 + 1;\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3];\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar3 = (uint)bVar1;\n      param_1 = param_1 + 1;\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3];\n      bVar1 = *param_1;\n    } while (bVar1 != 0);" do (compound_statement "{\n      uVar3 = (uint)bVar1;\n      param_1 = param_1 + 1;\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3];\n      bVar1 = *param_1;\n    }" { (expression_statement "uVar3 = (uint)bVar1;" (assignment_expression "uVar3 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }" if (parenthesized_expression "(bVar1 == 0x5c)" ( (binary_expression "bVar1 == 0x5c" identifier == number_literal) )) (compound_statement "{\n        uVar3 = 0x2f;\n      }" { (expression_statement "uVar3 = 0x2f;" (assignment_expression "uVar3 = 0x2f" identifier = number_literal) ;) })) (expression_statement "iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3];" (assignment_expression "iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3]" identifier = (binary_expression "iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3]" (binary_expression "iVar2 * 0x43 + -0x71" (binary_expression "iVar2 * 0x43" identifier * number_literal) + number_literal) + (subscript_expression "(uint)(byte)(&DAT_0023a060)[uVar3]" (call_expression "(uint)(byte)(&DAT_0023a060)" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) (argument_list "(&DAT_0023a060)" ( (pointer_expression "&DAT_0023a060" & identifier) ))) [ identifier ]))) ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }) while (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) ;) (return_statement "return iVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nhashval_t filename_hash(void *s)\n\n{\n  byte bVar1;\n  hashval_t hVar2;\n  uint uVar3;\n  \n                    /* WARNING: Load size is inaccurate */\n  bVar1 = *s;\n  if (bVar1 != 0) {\n    hVar2 = 0;\n    do {\n      uVar3 = (uint)bVar1;\n      s = (void *)((int)s + 1);\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      hVar2 = hVar2 * 0x43 + -0x71 + (uint)""[uVar3];\n                    /* WARNING: Load size is inaccurate */\n      bVar1 = *s;\n    } while (bVar1 != 0);\n    return hVar2;\n  }\n  return 0;\n}\n\n" comment (function_definition "hashval_t filename_hash(void *s)\n\n{\n  byte bVar1;\n  hashval_t hVar2;\n  uint uVar3;\n  \n                    /* WARNING: Load size is inaccurate */\n  bVar1 = *s;\n  if (bVar1 != 0) {\n    hVar2 = 0;\n    do {\n      uVar3 = (uint)bVar1;\n      s = (void *)((int)s + 1);\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      hVar2 = hVar2 * 0x43 + -0x71 + (uint)""[uVar3];\n                    /* WARNING: Load size is inaccurate */\n      bVar1 = *s;\n    } while (bVar1 != 0);\n    return hVar2;\n  }\n  return 0;\n}" type_identifier (function_declarator "filename_hash(void *s)" identifier (parameter_list "(void *s)" ( (parameter_declaration "void *s" primitive_type (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  hashval_t hVar2;\n  uint uVar3;\n  \n                    /* WARNING: Load size is inaccurate */\n  bVar1 = *s;\n  if (bVar1 != 0) {\n    hVar2 = 0;\n    do {\n      uVar3 = (uint)bVar1;\n      s = (void *)((int)s + 1);\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      hVar2 = hVar2 * 0x43 + -0x71 + (uint)""[uVar3];\n                    /* WARNING: Load size is inaccurate */\n      bVar1 = *s;\n    } while (bVar1 != 0);\n    return hVar2;\n  }\n  return 0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "hashval_t hVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) comment (expression_statement "bVar1 = *s;" (assignment_expression "bVar1 = *s" identifier = (pointer_expression "*s" * identifier)) ;) (if_statement "if (bVar1 != 0) {\n    hVar2 = 0;\n    do {\n      uVar3 = (uint)bVar1;\n      s = (void *)((int)s + 1);\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      hVar2 = hVar2 * 0x43 + -0x71 + (uint)""[uVar3];\n                    /* WARNING: Load size is inaccurate */\n      bVar1 = *s;\n    } while (bVar1 != 0);\n    return hVar2;\n  }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    hVar2 = 0;\n    do {\n      uVar3 = (uint)bVar1;\n      s = (void *)((int)s + 1);\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      hVar2 = hVar2 * 0x43 + -0x71 + (uint)""[uVar3];\n                    /* WARNING: Load size is inaccurate */\n      bVar1 = *s;\n    } while (bVar1 != 0);\n    return hVar2;\n  }" { (expression_statement "hVar2 = 0;" (assignment_expression "hVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar3 = (uint)bVar1;\n      s = (void *)((int)s + 1);\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      hVar2 = hVar2 * 0x43 + -0x71 + (uint)""[uVar3];\n                    /* WARNING: Load size is inaccurate */\n      bVar1 = *s;\n    } while (bVar1 != 0);" do (compound_statement "{\n      uVar3 = (uint)bVar1;\n      s = (void *)((int)s + 1);\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      hVar2 = hVar2 * 0x43 + -0x71 + (uint)""[uVar3];\n                    /* WARNING: Load size is inaccurate */\n      bVar1 = *s;\n    }" { (expression_statement "uVar3 = (uint)bVar1;" (assignment_expression "uVar3 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "s = (void *)((int)s + 1);" (assignment_expression "s = (void *)((int)s + 1)" identifier = (cast_expression "(void *)((int)s + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)s + 1)" ( (binary_expression "(int)s + 1" (cast_expression "(int)s" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }" if (parenthesized_expression "(bVar1 == 0x5c)" ( (binary_expression "bVar1 == 0x5c" identifier == number_literal) )) (compound_statement "{\n        uVar3 = 0x2f;\n      }" { (expression_statement "uVar3 = 0x2f;" (assignment_expression "uVar3 = 0x2f" identifier = number_literal) ;) })) (expression_statement "hVar2 = hVar2 * 0x43 + -0x71 + (uint)""[uVar3];" (assignment_expression "hVar2 = hVar2 * 0x43 + -0x71 + (uint)""[uVar3]" identifier = (binary_expression "hVar2 * 0x43 + -0x71 + (uint)""[uVar3]" (binary_expression "hVar2 * 0x43 + -0x71" (binary_expression "hVar2 * 0x43" identifier * number_literal) + number_literal) + (cast_expression "(uint)""[uVar3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression """[uVar3]" (string_literal """" " ") [ identifier ])))) ;) comment (expression_statement "bVar1 = *s;" (assignment_expression "bVar1 = *s" identifier = (pointer_expression "*s" * identifier)) ;) }) while (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) ;) (return_statement "return hVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int FUN_0017dbc0(byte *param_1)\n\n{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  \n  bVar1 = *param_1;\n  if (bVar1 != 0) {\n    iVar2 = 0;\n    do {\n      uVar3 = (uint)bVar1;\n      param_1 = param_1 + 1;\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3];\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_0017dbc0(byte *param_1)\n\n{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  \n  bVar1 = *param_1;\n  if (bVar1 != 0) {\n    iVar2 = 0;\n    do {\n      uVar3 = (uint)bVar1;\n      param_1 = param_1 + 1;\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3];\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_0017dbc0(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  \n  bVar1 = *param_1;\n  if (bVar1 != 0) {\n    iVar2 = 0;\n    do {\n      uVar3 = (uint)bVar1;\n      param_1 = param_1 + 1;\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3];\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }\n  return 0;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (bVar1 != 0) {\n    iVar2 = 0;\n    do {\n      uVar3 = (uint)bVar1;\n      param_1 = param_1 + 1;\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3];\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = 0;\n    do {\n      uVar3 = (uint)bVar1;\n      param_1 = param_1 + 1;\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3];\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar3 = (uint)bVar1;\n      param_1 = param_1 + 1;\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3];\n      bVar1 = *param_1;\n    } while (bVar1 != 0);" do (compound_statement "{\n      uVar3 = (uint)bVar1;\n      param_1 = param_1 + 1;\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3];\n      bVar1 = *param_1;\n    }" { (expression_statement "uVar3 = (uint)bVar1;" (assignment_expression "uVar3 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }" if (parenthesized_expression "(bVar1 == 0x5c)" ( (binary_expression "bVar1 == 0x5c" identifier == number_literal) )) (compound_statement "{\n        uVar3 = 0x2f;\n      }" { (expression_statement "uVar3 = 0x2f;" (assignment_expression "uVar3 = 0x2f" identifier = number_literal) ;) })) (expression_statement "iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3];" (assignment_expression "iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3]" identifier = (binary_expression "iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3]" (binary_expression "iVar2 * 0x43 + -0x71" (binary_expression "iVar2 * 0x43" identifier * number_literal) + number_literal) + (subscript_expression "(uint)(byte)(&DAT_0023a060)[uVar3]" (call_expression "(uint)(byte)(&DAT_0023a060)" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) (argument_list "(&DAT_0023a060)" ( (pointer_expression "&DAT_0023a060" & identifier) ))) [ identifier ]))) ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }) while (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) ;) (return_statement "return iVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * 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) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression IDENT * LIT) + LIT) + (subscript_expression (call_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) (argument_list ( (pointer_expression & IDENT) ))) [ IDENT ]))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "int FUN_0017dbc0(byte *param_1)\n\n{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  \n  bVar1 = *param_1;\n  if (bVar1 != 0) {\n    iVar2 = 0;\n    do {\n      uVar3 = (uint)bVar1;\n      param_1 = param_1 + 1;\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3];\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_0017dbc0(byte *param_1)" (identifier "FUN_0017dbc0") (parameter_list "(byte *param_1)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  \n  bVar1 = *param_1;\n  if (bVar1 != 0) {\n    iVar2 = 0;\n    do {\n      uVar3 = (uint)bVar1;\n      param_1 = param_1 + 1;\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3];\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }\n  return 0;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" (identifier "bVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (bVar1 != 0) {\n    iVar2 = 0;\n    do {\n      uVar3 = (uint)bVar1;\n      param_1 = param_1 + 1;\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3];\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }" (if "if") (parenthesized_expression "(bVar1 != 0)" (( "(") (binary_expression "bVar1 != 0" (identifier "bVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = 0;\n    do {\n      uVar3 = (uint)bVar1;\n      param_1 = param_1 + 1;\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3];\n      bVar1 = *param_1;\n    } while (bVar1 != 0);\n    return iVar2;\n  }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      uVar3 = (uint)bVar1;\n      param_1 = param_1 + 1;\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3];\n      bVar1 = *param_1;\n    } while (bVar1 != 0);" (do "do") (compound_statement "{\n      uVar3 = (uint)bVar1;\n      param_1 = param_1 + 1;\n      if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }\n      iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3];\n      bVar1 = *param_1;\n    }" ({ "{") (expression_statement "uVar3 = (uint)bVar1;" (assignment_expression "uVar3 = (uint)bVar1" (identifier "uVar3") (= "=") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1"))) (; ";")) (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"))) (; ";")) (if_statement "if (bVar1 == 0x5c) {\n        uVar3 = 0x2f;\n      }" (if "if") (parenthesized_expression "(bVar1 == 0x5c)" (( "(") (binary_expression "bVar1 == 0x5c" (identifier "bVar1") (== "==") (number_literal "0x5c")) () ")")) (compound_statement "{\n        uVar3 = 0x2f;\n      }" ({ "{") (expression_statement "uVar3 = 0x2f;" (assignment_expression "uVar3 = 0x2f" (identifier "uVar3") (= "=") (number_literal "0x2f")) (; ";")) (} "}"))) (expression_statement "iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3];" (assignment_expression "iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3]" (identifier "iVar2") (= "=") (binary_expression "iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3]" (binary_expression "iVar2 * 0x43 + -0x71" (binary_expression "iVar2 * 0x43" (identifier "iVar2") (* "*") (number_literal "0x43")) (+ "+") (number_literal "-0x71")) (+ "+") (subscript_expression "(uint)(byte)(&DAT_0023a060)[uVar3]" (call_expression "(uint)(byte)(&DAT_0023a060)" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(byte)" (( "(") (identifier "byte") () ")"))) (argument_list "(&DAT_0023a060)" (( "(") (pointer_expression "&DAT_0023a060" (& "&") (identifier "DAT_0023a060")) () ")"))) ([ "[") (identifier "uVar3") (] "]")))) (; ";")) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" (identifier "bVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar1 != 0)" (( "(") (binary_expression "bVar1 != 0" (identifier "bVar1") (!= "!=") (number_literal "0")) () ")")) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

type_1 function_1(void *s)

{
  type_2 var_1;
  type_1 var_2;
  type_3 uVar3;
  
                    /* WARNING: Load size is inaccurate */
  var_1 = *s;
  if (var_1 != 0) {
    var_2 = 0;
    do {
      uVar3 = (type_3)var_1;
      s = (void *)((int)s + 1);
      if (var_1 == 0x5c) {
        uVar3 = 0x2f;
      }
      var_2 = var_2 * 0x43 + -0x71 + (type_3)""[uVar3];
                    /* WARNING: Load size is inaccurate */
      var_1 = *s;
    } while (var_1 != 0);
    return var_2;
  }
  return 0;
}


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

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

int MASKED(byte *param_1)

{
  byte bVar1;
  int iVar2;
  uint uVar3;
  
  bVar1 = *param_1;
  if (bVar1 != 0) {
    iVar2 = 0;
    do {
      uVar3 = (uint)bVar1;
      param_1 = param_1 + 1;
      if (bVar1 == 0x5c) {
        uVar3 = 0x2f;
      }
      iVar2 = iVar2 * 0x43 + -0x71 + (uint)(byte)(&DAT_0023a060)[uVar3];
      bVar1 = *param_1;
    } while (bVar1 != 0);
    return iVar2;
  }
  return 0;
}

