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

_Bool __regparm3 hex_digits(uchar *s)

{
  byte *pbVar1;
  size_t sVar2;
  ushort **ppuVar3;
  byte *pbVar4;
  
  sVar2 = digest_hex_bytes;
  if (digest_hex_bytes != 0) {
    ppuVar3 = __ctype_b_loc();
    pbVar1 = s + sVar2;
    pbVar4 = s;
    do {
      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {
        return false;
      }
      pbVar4 = pbVar4 + 1;
      s = pbVar1;
    } while (pbVar4 != pbVar1);
  }
  return *s == 0;
}



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

bool __regparm3 FUN_00012710(byte *param_1)

{
  byte *pbVar1;
  int iVar2;
  ushort **ppuVar3;
  byte *pbVar4;
  
  iVar2 = DAT_0001d190;
  if (DAT_0001d190 != 0) {
    ppuVar3 = __ctype_b_loc();
    pbVar1 = param_1 + iVar2;
    pbVar4 = param_1;
    do {
      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {
        return false;
      }
      pbVar4 = pbVar4 + 1;
      param_1 = pbVar1;
    } while (pbVar4 != pbVar1);
  }
  return *param_1 == 0;
}


PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x000125d0
ADD EBX,0xa8e6
MOV EDI,dword ptr [EBX + 0x190]
TEST EDI,EDI
JZ 0x00012757
CALL 0x000113b0
LEA EDX,[ESI + EDI*0x1]
MOV ECX,dword ptr [EAX]
JMP 0x00012747
ADD ESI,0x1
CMP ESI,EDX
JZ 0x00012759
MOVZX EAX,byte ptr [ESI]
TEST byte ptr [ECX + EAX*0x2 + 0x1],0x10
JNZ 0x00012740
POP EBX
XOR EAX,EAX
POP ESI
POP EDI
RET
MOV EDX,EAX
CMP byte ptr [EDX],0x0
POP EBX
SETZ AL
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool __regparm3 FUN_00012710(byte *param_1)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  ushort **ppuVar3;\n  byte *pbVar4;\n  \n  iVar2 = DAT_0001d190;\n  if (DAT_0001d190 != 0) {\n    ppuVar3 = __ctype_b_loc();\n    pbVar1 = param_1 + iVar2;\n    pbVar4 = param_1;\n    do {\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      param_1 = pbVar1;\n    } while (pbVar4 != pbVar1);\n  }\n  return *param_1 == 0;\n}\n\n" comment (function_definition "bool __regparm3 FUN_00012710(byte *param_1)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  ushort **ppuVar3;\n  byte *pbVar4;\n  \n  iVar2 = DAT_0001d190;\n  if (DAT_0001d190 != 0) {\n    ppuVar3 = __ctype_b_loc();\n    pbVar1 = param_1 + iVar2;\n    pbVar4 = param_1;\n    do {\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      param_1 = pbVar1;\n    } while (pbVar4 != pbVar1);\n  }\n  return *param_1 == 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00012710(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 *pbVar1;\n  int iVar2;\n  ushort **ppuVar3;\n  byte *pbVar4;\n  \n  iVar2 = DAT_0001d190;\n  if (DAT_0001d190 != 0) {\n    ppuVar3 = __ctype_b_loc();\n    pbVar1 = param_1 + iVar2;\n    pbVar4 = param_1;\n    do {\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      param_1 = pbVar1;\n    } while (pbVar4 != pbVar1);\n  }\n  return *param_1 == 0;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "ushort **ppuVar3;" type_identifier (pointer_declarator "**ppuVar3" * (pointer_declarator "*ppuVar3" * identifier)) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (expression_statement "iVar2 = DAT_0001d190;" (assignment_expression "iVar2 = DAT_0001d190" identifier = identifier) ;) (if_statement "if (DAT_0001d190 != 0) {\n    ppuVar3 = __ctype_b_loc();\n    pbVar1 = param_1 + iVar2;\n    pbVar4 = param_1;\n    do {\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      param_1 = pbVar1;\n    } while (pbVar4 != pbVar1);\n  }" if (parenthesized_expression "(DAT_0001d190 != 0)" ( (binary_expression "DAT_0001d190 != 0" identifier != number_literal) )) (compound_statement "{\n    ppuVar3 = __ctype_b_loc();\n    pbVar1 = param_1 + iVar2;\n    pbVar4 = param_1;\n    do {\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      param_1 = pbVar1;\n    } while (pbVar4 != pbVar1);\n  }" { (expression_statement "ppuVar3 = __ctype_b_loc();" (assignment_expression "ppuVar3 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "pbVar1 = param_1 + iVar2;" (assignment_expression "pbVar1 = param_1 + iVar2" identifier = (binary_expression "param_1 + iVar2" identifier + identifier)) ;) (expression_statement "pbVar4 = param_1;" (assignment_expression "pbVar4 = param_1" identifier = identifier) ;) (do_statement "do {\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      param_1 = pbVar1;\n    } while (pbVar4 != pbVar1);" do (compound_statement "{\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      param_1 = pbVar1;\n    }" { (if_statement "if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }" if (parenthesized_expression "((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0)" ( (binary_expression "(*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0" (parenthesized_expression "(*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10)" ( (binary_expression "*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10" (pointer_expression "*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1)" * (cast_expression "(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1)" ( (binary_expression "(int)*ppuVar3 + (uint)*pbVar4 * 2 + 1" (binary_expression "(int)*ppuVar3 + (uint)*pbVar4 * 2" (cast_expression "(int)*ppuVar3" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*ppuVar3" * identifier)) + (binary_expression "(uint)*pbVar4 * 2" (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "param_1 = pbVar1;" (assignment_expression "param_1 = pbVar1" identifier = identifier) ;) }) while (parenthesized_expression "(pbVar4 != pbVar1)" ( (binary_expression "pbVar4 != pbVar1" identifier != identifier) )) ;) })) (return_statement "return *param_1 == 0;" return (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\n_Bool __regparm3 hex_digits(uchar *s)\n\n{\n  byte *pbVar1;\n  size_t sVar2;\n  ushort **ppuVar3;\n  byte *pbVar4;\n  \n  sVar2 = digest_hex_bytes;\n  if (digest_hex_bytes != 0) {\n    ppuVar3 = __ctype_b_loc();\n    pbVar1 = s + sVar2;\n    pbVar4 = s;\n    do {\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      s = pbVar1;\n    } while (pbVar4 != pbVar1);\n  }\n  return *s == 0;\n}\n\n" comment (function_definition "_Bool __regparm3 hex_digits(uchar *s)\n\n{\n  byte *pbVar1;\n  size_t sVar2;\n  ushort **ppuVar3;\n  byte *pbVar4;\n  \n  sVar2 = digest_hex_bytes;\n  if (digest_hex_bytes != 0) {\n    ppuVar3 = __ctype_b_loc();\n    pbVar1 = s + sVar2;\n    pbVar4 = s;\n    do {\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      s = pbVar1;\n    } while (pbVar4 != pbVar1);\n  }\n  return *s == 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "hex_digits(uchar *s)" identifier (parameter_list "(uchar *s)" ( (parameter_declaration "uchar *s" type_identifier (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  size_t sVar2;\n  ushort **ppuVar3;\n  byte *pbVar4;\n  \n  sVar2 = digest_hex_bytes;\n  if (digest_hex_bytes != 0) {\n    ppuVar3 = __ctype_b_loc();\n    pbVar1 = s + sVar2;\n    pbVar4 = s;\n    do {\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      s = pbVar1;\n    } while (pbVar4 != pbVar1);\n  }\n  return *s == 0;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "ushort **ppuVar3;" type_identifier (pointer_declarator "**ppuVar3" * (pointer_declarator "*ppuVar3" * identifier)) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (expression_statement "sVar2 = digest_hex_bytes;" (assignment_expression "sVar2 = digest_hex_bytes" identifier = identifier) ;) (if_statement "if (digest_hex_bytes != 0) {\n    ppuVar3 = __ctype_b_loc();\n    pbVar1 = s + sVar2;\n    pbVar4 = s;\n    do {\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      s = pbVar1;\n    } while (pbVar4 != pbVar1);\n  }" if (parenthesized_expression "(digest_hex_bytes != 0)" ( (binary_expression "digest_hex_bytes != 0" identifier != number_literal) )) (compound_statement "{\n    ppuVar3 = __ctype_b_loc();\n    pbVar1 = s + sVar2;\n    pbVar4 = s;\n    do {\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      s = pbVar1;\n    } while (pbVar4 != pbVar1);\n  }" { (expression_statement "ppuVar3 = __ctype_b_loc();" (assignment_expression "ppuVar3 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "pbVar1 = s + sVar2;" (assignment_expression "pbVar1 = s + sVar2" identifier = (binary_expression "s + sVar2" identifier + identifier)) ;) (expression_statement "pbVar4 = s;" (assignment_expression "pbVar4 = s" identifier = identifier) ;) (do_statement "do {\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      s = pbVar1;\n    } while (pbVar4 != pbVar1);" do (compound_statement "{\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      s = pbVar1;\n    }" { (if_statement "if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }" if (parenthesized_expression "((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0)" ( (binary_expression "(*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0" (parenthesized_expression "(*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10)" ( (binary_expression "*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10" (pointer_expression "*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1)" * (cast_expression "(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1)" ( (binary_expression "(int)*ppuVar3 + (uint)*pbVar4 * 2 + 1" (binary_expression "(int)*ppuVar3 + (uint)*pbVar4 * 2" (cast_expression "(int)*ppuVar3" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*ppuVar3" * identifier)) + (binary_expression "(uint)*pbVar4 * 2" (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "s = pbVar1;" (assignment_expression "s = pbVar1" identifier = identifier) ;) }) while (parenthesized_expression "(pbVar4 != pbVar1)" ( (binary_expression "pbVar4 != pbVar1" identifier != identifier) )) ;) })) (return_statement "return *s == 0;" return (binary_expression "*s == 0" (pointer_expression "*s" * identifier) == number_literal) ;) })))
(translation_unit "bool __regparm3 FUN_00012710(byte *param_1)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  ushort **ppuVar3;\n  byte *pbVar4;\n  \n  iVar2 = DAT_0001d190;\n  if (DAT_0001d190 != 0) {\n    ppuVar3 = __ctype_b_loc();\n    pbVar1 = param_1 + iVar2;\n    pbVar4 = param_1;\n    do {\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      param_1 = pbVar1;\n    } while (pbVar4 != pbVar1);\n  }\n  return *param_1 == 0;\n}\n\n" (function_definition "bool __regparm3 FUN_00012710(byte *param_1)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  ushort **ppuVar3;\n  byte *pbVar4;\n  \n  iVar2 = DAT_0001d190;\n  if (DAT_0001d190 != 0) {\n    ppuVar3 = __ctype_b_loc();\n    pbVar1 = param_1 + iVar2;\n    pbVar4 = param_1;\n    do {\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      param_1 = pbVar1;\n    } while (pbVar4 != pbVar1);\n  }\n  return *param_1 == 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00012710(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 *pbVar1;\n  int iVar2;\n  ushort **ppuVar3;\n  byte *pbVar4;\n  \n  iVar2 = DAT_0001d190;\n  if (DAT_0001d190 != 0) {\n    ppuVar3 = __ctype_b_loc();\n    pbVar1 = param_1 + iVar2;\n    pbVar4 = param_1;\n    do {\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      param_1 = pbVar1;\n    } while (pbVar4 != pbVar1);\n  }\n  return *param_1 == 0;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "ushort **ppuVar3;" type_identifier (pointer_declarator "**ppuVar3" * (pointer_declarator "*ppuVar3" * identifier)) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (expression_statement "iVar2 = DAT_0001d190;" (assignment_expression "iVar2 = DAT_0001d190" identifier = identifier) ;) (if_statement "if (DAT_0001d190 != 0) {\n    ppuVar3 = __ctype_b_loc();\n    pbVar1 = param_1 + iVar2;\n    pbVar4 = param_1;\n    do {\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      param_1 = pbVar1;\n    } while (pbVar4 != pbVar1);\n  }" if (parenthesized_expression "(DAT_0001d190 != 0)" ( (binary_expression "DAT_0001d190 != 0" identifier != number_literal) )) (compound_statement "{\n    ppuVar3 = __ctype_b_loc();\n    pbVar1 = param_1 + iVar2;\n    pbVar4 = param_1;\n    do {\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      param_1 = pbVar1;\n    } while (pbVar4 != pbVar1);\n  }" { (expression_statement "ppuVar3 = __ctype_b_loc();" (assignment_expression "ppuVar3 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "pbVar1 = param_1 + iVar2;" (assignment_expression "pbVar1 = param_1 + iVar2" identifier = (binary_expression "param_1 + iVar2" identifier + identifier)) ;) (expression_statement "pbVar4 = param_1;" (assignment_expression "pbVar4 = param_1" identifier = identifier) ;) (do_statement "do {\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      param_1 = pbVar1;\n    } while (pbVar4 != pbVar1);" do (compound_statement "{\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      param_1 = pbVar1;\n    }" { (if_statement "if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }" if (parenthesized_expression "((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0)" ( (binary_expression "(*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0" (parenthesized_expression "(*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10)" ( (binary_expression "*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10" (pointer_expression "*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1)" * (cast_expression "(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1)" ( (binary_expression "(int)*ppuVar3 + (uint)*pbVar4 * 2 + 1" (binary_expression "(int)*ppuVar3 + (uint)*pbVar4 * 2" (cast_expression "(int)*ppuVar3" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*ppuVar3" * identifier)) + (binary_expression "(uint)*pbVar4 * 2" (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "param_1 = pbVar1;" (assignment_expression "param_1 = pbVar1" identifier = identifier) ;) }) while (parenthesized_expression "(pbVar4 != pbVar1)" ( (binary_expression "pbVar4 != pbVar1" identifier != identifier) )) ;) })) (return_statement "return *param_1 == 0;" return (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) + (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) * LIT)) + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (return_statement return BOOL ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (return_statement return (binary_expression (pointer_expression * IDENT) == LIT) ;) })))
(function_definition "bool __regparm3 FUN_00012710(byte *param_1)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  ushort **ppuVar3;\n  byte *pbVar4;\n  \n  iVar2 = DAT_0001d190;\n  if (DAT_0001d190 != 0) {\n    ppuVar3 = __ctype_b_loc();\n    pbVar1 = param_1 + iVar2;\n    pbVar4 = param_1;\n    do {\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      param_1 = pbVar1;\n    } while (pbVar4 != pbVar1);\n  }\n  return *param_1 == 0;\n}" (primitive_type "bool") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00012710(byte *param_1)" (identifier "FUN_00012710") (parameter_list "(byte *param_1)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  byte *pbVar1;\n  int iVar2;\n  ushort **ppuVar3;\n  byte *pbVar4;\n  \n  iVar2 = DAT_0001d190;\n  if (DAT_0001d190 != 0) {\n    ppuVar3 = __ctype_b_loc();\n    pbVar1 = param_1 + iVar2;\n    pbVar4 = param_1;\n    do {\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      param_1 = pbVar1;\n    } while (pbVar4 != pbVar1);\n  }\n  return *param_1 == 0;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "ushort **ppuVar3;" (type_identifier "ushort") (pointer_declarator "**ppuVar3" (* "*") (pointer_declarator "*ppuVar3" (* "*") (identifier "ppuVar3"))) (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (expression_statement "iVar2 = DAT_0001d190;" (assignment_expression "iVar2 = DAT_0001d190" (identifier "iVar2") (= "=") (identifier "DAT_0001d190")) (; ";")) (if_statement "if (DAT_0001d190 != 0) {\n    ppuVar3 = __ctype_b_loc();\n    pbVar1 = param_1 + iVar2;\n    pbVar4 = param_1;\n    do {\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      param_1 = pbVar1;\n    } while (pbVar4 != pbVar1);\n  }" (if "if") (parenthesized_expression "(DAT_0001d190 != 0)" (( "(") (binary_expression "DAT_0001d190 != 0" (identifier "DAT_0001d190") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    ppuVar3 = __ctype_b_loc();\n    pbVar1 = param_1 + iVar2;\n    pbVar4 = param_1;\n    do {\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      param_1 = pbVar1;\n    } while (pbVar4 != pbVar1);\n  }" ({ "{") (expression_statement "ppuVar3 = __ctype_b_loc();" (assignment_expression "ppuVar3 = __ctype_b_loc()" (identifier "ppuVar3") (= "=") (call_expression "__ctype_b_loc()" (identifier "__ctype_b_loc") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pbVar1 = param_1 + iVar2;" (assignment_expression "pbVar1 = param_1 + iVar2" (identifier "pbVar1") (= "=") (binary_expression "param_1 + iVar2" (identifier "param_1") (+ "+") (identifier "iVar2"))) (; ";")) (expression_statement "pbVar4 = param_1;" (assignment_expression "pbVar4 = param_1" (identifier "pbVar4") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      param_1 = pbVar1;\n    } while (pbVar4 != pbVar1);" (do "do") (compound_statement "{\n      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }\n      pbVar4 = pbVar4 + 1;\n      param_1 = pbVar1;\n    }" ({ "{") (if_statement "if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {\n        return false;\n      }" (if "if") (parenthesized_expression "((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0)" (( "(") (binary_expression "(*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0" (parenthesized_expression "(*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10)" (( "(") (binary_expression "*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10" (pointer_expression "*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1)" (* "*") (cast_expression "(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1)" (( "(") (binary_expression "(int)*ppuVar3 + (uint)*pbVar4 * 2 + 1" (binary_expression "(int)*ppuVar3 + (uint)*pbVar4 * 2" (cast_expression "(int)*ppuVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*ppuVar3" (* "*") (identifier "ppuVar3"))) (+ "+") (binary_expression "(uint)*pbVar4 * 2" (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar4")) (* "*") (number_literal "2"))) (+ "+") (number_literal "1")) () ")")))) (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return false;\n      }" ({ "{") (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}"))) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" (identifier "pbVar4") (= "=") (binary_expression "pbVar4 + 1" (identifier "pbVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_1 = pbVar1;" (assignment_expression "param_1 = pbVar1" (identifier "param_1") (= "=") (identifier "pbVar1")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pbVar4 != pbVar1)" (( "(") (binary_expression "pbVar4 != pbVar1" (identifier "pbVar4") (!= "!=") (identifier "pbVar1")) () ")")) (; ";")) (} "}"))) (return_statement "return *param_1 == 0;" (return "return") (binary_expression "*param_1 == 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "0")) (; ";")) (} "}")))

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

type_1 __regparm3 function_1(type_2 *var_3)

{
  type_3 *var_6;
  size_t var_4;
  type_4 **ppuVar3;
  type_3 *var_5;
  
  var_4 = var_1;
  if (var_1 != 0) {
    ppuVar3 = var_2();
    var_6 = var_3 + var_4;
    var_5 = var_3;
    do {
      if ((*(type_3 *)((int)*ppuVar3 + (uint)*var_5 * 2 + 1) & 0x10) == 0) {
        return false;
      }
      var_5 = var_5 + 1;
      var_3 = var_6;
    } while (var_5 != var_6);
  }
  return *var_3 == 0;
}


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

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

bool __regparm3 MASKED(byte *param_1)

{
  byte *pbVar1;
  int iVar2;
  ushort **ppuVar3;
  byte *pbVar4;
  
  iVar2 = DAT_0001d190;
  if (DAT_0001d190 != 0) {
    ppuVar3 = __ctype_b_loc();
    pbVar1 = param_1 + iVar2;
    pbVar4 = param_1;
    do {
      if ((*(byte *)((int)*ppuVar3 + (uint)*pbVar4 * 2 + 1) & 0x10) == 0) {
        return false;
      }
      pbVar4 = pbVar4 + 1;
      param_1 = pbVar1;
    } while (pbVar4 != pbVar1);
  }
  return *param_1 == 0;
}

