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

int __regparm3 consume_count_with_underscores(char **mangled)

{
  char cVar1;
  char *pcVar2;
  int iVar3;
  
  pcVar2 = *mangled;
  cVar1 = *pcVar2;
  if (cVar1 == '_') {
    *mangled = pcVar2 + 1;
    if ((_sch_istable[(byte)pcVar2[1]] & 4) != 0) {
      iVar3 = consume_count(mangled);
      if (**mangled == '_') {
        *mangled = *mangled + 1;
        return iVar3;
      }
    }
  }
  else if ((byte)(cVar1 - 0x30U) < 10) {
    *mangled = pcVar2 + 1;
    return cVar1 + -0x30;
  }
  return -1;
}



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

int __regparm3 FUN_001cde90(int *param_1)

{
  char cVar1;
  char *pcVar2;
  int iVar3;
  
  pcVar2 = (char *)*param_1;
  cVar1 = *pcVar2;
  if (cVar1 == '_') {
    *param_1 = (int)(pcVar2 + 1);
    if (((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4) != 0) {
      iVar3 = FUN_001cdde0();
      if (*(char *)*param_1 == '_') {
        *param_1 = (int)((char *)*param_1 + 1);
        return iVar3;
      }
    }
  }
  else if ((byte)(cVar1 - 0x30U) < 10) {
    *param_1 = (int)(pcVar2 + 1);
    return cVar1 + -0x30;
  }
  return -1;
}


PUSH EBX
MOV ECX,dword ptr [EAX]
CALL 0x00035840
ADD EBX,0x1c1168
MOVSX EDX,byte ptr [ECX]
CMP DL,0x5f
JZ 0x001cdec0
LEA EBX,[EDX + -0x30]
CMP BL,0x9
JA 0x001cdef0
ADD ECX,0x1
SUB EDX,0x30
MOV dword ptr [EAX],ECX
MOV EAX,EDX
POP EBX
RET
LEA EDX,[ECX + 0x1]
MOV dword ptr [EAX],EDX
LEA EDX,[EBX + 0xfff14600]
MOVZX ECX,byte ptr [ECX + 0x1]
TEST byte ptr [EDX + ECX*0x2],0x4
JZ 0x001cdef0
MOV EBX,EAX
CALL 0x001cdde0
MOV EDX,EAX
MOV EAX,dword ptr [EBX]
CMP byte ptr [EAX],0x5f
JNZ 0x001cdef0
ADD EAX,0x1
MOV dword ptr [EBX],EAX
MOV EAX,EDX
POP EBX
RET
MOV EDX,0xffffffff
JMP 0x001cdeb6
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_001cde90(int *param_1)\n\n{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  \n  pcVar2 = (char *)*param_1;\n  cVar1 = *pcVar2;\n  if (cVar1 == '_') {\n    *param_1 = (int)(pcVar2 + 1);\n    if (((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4) != 0) {\n      iVar3 = FUN_001cdde0();\n      if (*(char *)*param_1 == '_') {\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }\n    }\n  }\n  else if ((byte)(cVar1 - 0x30U) < 10) {\n    *param_1 = (int)(pcVar2 + 1);\n    return cVar1 + -0x30;\n  }\n  return -1;\n}\n\n" comment (function_definition "int __regparm3 FUN_001cde90(int *param_1)\n\n{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  \n  pcVar2 = (char *)*param_1;\n  cVar1 = *pcVar2;\n  if (cVar1 == '_') {\n    *param_1 = (int)(pcVar2 + 1);\n    if (((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4) != 0) {\n      iVar3 = FUN_001cdde0();\n      if (*(char *)*param_1 == '_') {\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }\n    }\n  }\n  else if ((byte)(cVar1 - 0x30U) < 10) {\n    *param_1 = (int)(pcVar2 + 1);\n    return cVar1 + -0x30;\n  }\n  return -1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_001cde90(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  \n  pcVar2 = (char *)*param_1;\n  cVar1 = *pcVar2;\n  if (cVar1 == '_') {\n    *param_1 = (int)(pcVar2 + 1);\n    if (((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4) != 0) {\n      iVar3 = FUN_001cdde0();\n      if (*(char *)*param_1 == '_') {\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }\n    }\n  }\n  else if ((byte)(cVar1 - 0x30U) < 10) {\n    *param_1 = (int)(pcVar2 + 1);\n    return cVar1 + -0x30;\n  }\n  return -1;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "pcVar2 = (char *)*param_1;" (assignment_expression "pcVar2 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (if_statement "if (cVar1 == '_') {\n    *param_1 = (int)(pcVar2 + 1);\n    if (((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4) != 0) {\n      iVar3 = FUN_001cdde0();\n      if (*(char *)*param_1 == '_') {\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }\n    }\n  }\n  else if ((byte)(cVar1 - 0x30U) < 10) {\n    *param_1 = (int)(pcVar2 + 1);\n    return cVar1 + -0x30;\n  }" if (parenthesized_expression "(cVar1 == '_')" ( (binary_expression "cVar1 == '_'" identifier == (char_literal "'_'" ' character ')) )) (compound_statement "{\n    *param_1 = (int)(pcVar2 + 1);\n    if (((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4) != 0) {\n      iVar3 = FUN_001cdde0();\n      if (*(char *)*param_1 == '_') {\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }\n    }\n  }" { (expression_statement "*param_1 = (int)(pcVar2 + 1);" (assignment_expression "*param_1 = (int)(pcVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pcVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar2 + 1)" ( (binary_expression "pcVar2 + 1" identifier + number_literal) )))) ;) (if_statement "if (((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4) != 0) {\n      iVar3 = FUN_001cdde0();\n      if (*(char *)*param_1 == '_') {\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }\n    }" if (parenthesized_expression "(((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4) != 0)" ( (binary_expression "((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4) != 0" (parenthesized_expression "((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4)" ( (binary_expression "(&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4" (subscript_expression "(&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2]" (parenthesized_expression "(&DAT_002a3600)" ( (pointer_expression "&DAT_002a3600" & identifier) )) [ (binary_expression "(uint)(byte)pcVar2[1] * 2" (cast_expression "(uint)(byte)pcVar2[1]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)pcVar2[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "pcVar2[1]" identifier [ number_literal ]))) * number_literal) ]) & number_literal) )) != number_literal) )) (compound_statement "{\n      iVar3 = FUN_001cdde0();\n      if (*(char *)*param_1 == '_') {\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }\n    }" { (expression_statement "iVar3 = FUN_001cdde0();" (assignment_expression "iVar3 = FUN_001cdde0()" identifier = (call_expression "FUN_001cdde0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*(char *)*param_1 == '_') {\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }" if (parenthesized_expression "(*(char *)*param_1 == '_')" ( (binary_expression "*(char *)*param_1 == '_'" (pointer_expression "*(char *)*param_1" * (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) == (char_literal "'_'" ' character ')) )) (compound_statement "{\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }" { (expression_statement "*param_1 = (int)((char *)*param_1 + 1);" (assignment_expression "*param_1 = (int)((char *)*param_1 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)((char *)*param_1 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((char *)*param_1 + 1)" ( (binary_expression "(char *)*param_1 + 1" (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) + number_literal) )))) ;) (return_statement "return iVar3;" return identifier ;) })) })) }) (else_clause "else if ((byte)(cVar1 - 0x30U) < 10) {\n    *param_1 = (int)(pcVar2 + 1);\n    return cVar1 + -0x30;\n  }" else (if_statement "if ((byte)(cVar1 - 0x30U) < 10) {\n    *param_1 = (int)(pcVar2 + 1);\n    return cVar1 + -0x30;\n  }" if (parenthesized_expression "((byte)(cVar1 - 0x30U) < 10)" ( (binary_expression "(byte)(cVar1 - 0x30U) < 10" (call_expression "(byte)(cVar1 - 0x30U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar1 - 0x30U)" ( (binary_expression "cVar1 - 0x30U" identifier - number_literal) ))) < number_literal) )) (compound_statement "{\n    *param_1 = (int)(pcVar2 + 1);\n    return cVar1 + -0x30;\n  }" { (expression_statement "*param_1 = (int)(pcVar2 + 1);" (assignment_expression "*param_1 = (int)(pcVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pcVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar2 + 1)" ( (binary_expression "pcVar2 + 1" identifier + number_literal) )))) ;) (return_statement "return cVar1 + -0x30;" return (binary_expression "cVar1 + -0x30" identifier + number_literal) ;) })))) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 consume_count_with_underscores(char **mangled)\n\n{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  \n  pcVar2 = *mangled;\n  cVar1 = *pcVar2;\n  if (cVar1 == '_') {\n    *mangled = pcVar2 + 1;\n    if ((_sch_istable[(byte)pcVar2[1]] & 4) != 0) {\n      iVar3 = consume_count(mangled);\n      if (**mangled == '_') {\n        *mangled = *mangled + 1;\n        return iVar3;\n      }\n    }\n  }\n  else if ((byte)(cVar1 - 0x30U) < 10) {\n    *mangled = pcVar2 + 1;\n    return cVar1 + -0x30;\n  }\n  return -1;\n}\n\n" comment (function_definition "int __regparm3 consume_count_with_underscores(char **mangled)\n\n{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  \n  pcVar2 = *mangled;\n  cVar1 = *pcVar2;\n  if (cVar1 == '_') {\n    *mangled = pcVar2 + 1;\n    if ((_sch_istable[(byte)pcVar2[1]] & 4) != 0) {\n      iVar3 = consume_count(mangled);\n      if (**mangled == '_') {\n        *mangled = *mangled + 1;\n        return iVar3;\n      }\n    }\n  }\n  else if ((byte)(cVar1 - 0x30U) < 10) {\n    *mangled = pcVar2 + 1;\n    return cVar1 + -0x30;\n  }\n  return -1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "consume_count_with_underscores(char **mangled)" identifier (parameter_list "(char **mangled)" ( (parameter_declaration "char **mangled" primitive_type (pointer_declarator "**mangled" * (pointer_declarator "*mangled" * identifier))) ))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  \n  pcVar2 = *mangled;\n  cVar1 = *pcVar2;\n  if (cVar1 == '_') {\n    *mangled = pcVar2 + 1;\n    if ((_sch_istable[(byte)pcVar2[1]] & 4) != 0) {\n      iVar3 = consume_count(mangled);\n      if (**mangled == '_') {\n        *mangled = *mangled + 1;\n        return iVar3;\n      }\n    }\n  }\n  else if ((byte)(cVar1 - 0x30U) < 10) {\n    *mangled = pcVar2 + 1;\n    return cVar1 + -0x30;\n  }\n  return -1;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "pcVar2 = *mangled;" (assignment_expression "pcVar2 = *mangled" identifier = (pointer_expression "*mangled" * identifier)) ;) (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (if_statement "if (cVar1 == '_') {\n    *mangled = pcVar2 + 1;\n    if ((_sch_istable[(byte)pcVar2[1]] & 4) != 0) {\n      iVar3 = consume_count(mangled);\n      if (**mangled == '_') {\n        *mangled = *mangled + 1;\n        return iVar3;\n      }\n    }\n  }\n  else if ((byte)(cVar1 - 0x30U) < 10) {\n    *mangled = pcVar2 + 1;\n    return cVar1 + -0x30;\n  }" if (parenthesized_expression "(cVar1 == '_')" ( (binary_expression "cVar1 == '_'" identifier == (char_literal "'_'" ' character ')) )) (compound_statement "{\n    *mangled = pcVar2 + 1;\n    if ((_sch_istable[(byte)pcVar2[1]] & 4) != 0) {\n      iVar3 = consume_count(mangled);\n      if (**mangled == '_') {\n        *mangled = *mangled + 1;\n        return iVar3;\n      }\n    }\n  }" { (expression_statement "*mangled = pcVar2 + 1;" (assignment_expression "*mangled = pcVar2 + 1" (pointer_expression "*mangled" * identifier) = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (if_statement "if ((_sch_istable[(byte)pcVar2[1]] & 4) != 0) {\n      iVar3 = consume_count(mangled);\n      if (**mangled == '_') {\n        *mangled = *mangled + 1;\n        return iVar3;\n      }\n    }" if (parenthesized_expression "((_sch_istable[(byte)pcVar2[1]] & 4) != 0)" ( (binary_expression "(_sch_istable[(byte)pcVar2[1]] & 4) != 0" (parenthesized_expression "(_sch_istable[(byte)pcVar2[1]] & 4)" ( (binary_expression "_sch_istable[(byte)pcVar2[1]] & 4" (subscript_expression "_sch_istable[(byte)pcVar2[1]]" identifier [ (cast_expression "(byte)pcVar2[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "pcVar2[1]" identifier [ number_literal ])) ]) & number_literal) )) != number_literal) )) (compound_statement "{\n      iVar3 = consume_count(mangled);\n      if (**mangled == '_') {\n        *mangled = *mangled + 1;\n        return iVar3;\n      }\n    }" { (expression_statement "iVar3 = consume_count(mangled);" (assignment_expression "iVar3 = consume_count(mangled)" identifier = (call_expression "consume_count(mangled)" identifier (argument_list "(mangled)" ( identifier )))) ;) (if_statement "if (**mangled == '_') {\n        *mangled = *mangled + 1;\n        return iVar3;\n      }" if (parenthesized_expression "(**mangled == '_')" ( (binary_expression "**mangled == '_'" (pointer_expression "**mangled" * (pointer_expression "*mangled" * identifier)) == (char_literal "'_'" ' character ')) )) (compound_statement "{\n        *mangled = *mangled + 1;\n        return iVar3;\n      }" { (expression_statement "*mangled = *mangled + 1;" (assignment_expression "*mangled = *mangled + 1" (pointer_expression "*mangled" * identifier) = (binary_expression "*mangled + 1" (pointer_expression "*mangled" * identifier) + number_literal)) ;) (return_statement "return iVar3;" return identifier ;) })) })) }) (else_clause "else if ((byte)(cVar1 - 0x30U) < 10) {\n    *mangled = pcVar2 + 1;\n    return cVar1 + -0x30;\n  }" else (if_statement "if ((byte)(cVar1 - 0x30U) < 10) {\n    *mangled = pcVar2 + 1;\n    return cVar1 + -0x30;\n  }" if (parenthesized_expression "((byte)(cVar1 - 0x30U) < 10)" ( (binary_expression "(byte)(cVar1 - 0x30U) < 10" (call_expression "(byte)(cVar1 - 0x30U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar1 - 0x30U)" ( (binary_expression "cVar1 - 0x30U" identifier - number_literal) ))) < number_literal) )) (compound_statement "{\n    *mangled = pcVar2 + 1;\n    return cVar1 + -0x30;\n  }" { (expression_statement "*mangled = pcVar2 + 1;" (assignment_expression "*mangled = pcVar2 + 1" (pointer_expression "*mangled" * identifier) = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (return_statement "return cVar1 + -0x30;" return (binary_expression "cVar1 + -0x30" identifier + number_literal) ;) })))) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "int __regparm3 FUN_001cde90(int *param_1)\n\n{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  \n  pcVar2 = (char *)*param_1;\n  cVar1 = *pcVar2;\n  if (cVar1 == '_') {\n    *param_1 = (int)(pcVar2 + 1);\n    if (((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4) != 0) {\n      iVar3 = FUN_001cdde0();\n      if (*(char *)*param_1 == '_') {\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }\n    }\n  }\n  else if ((byte)(cVar1 - 0x30U) < 10) {\n    *param_1 = (int)(pcVar2 + 1);\n    return cVar1 + -0x30;\n  }\n  return -1;\n}\n\n" (function_definition "int __regparm3 FUN_001cde90(int *param_1)\n\n{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  \n  pcVar2 = (char *)*param_1;\n  cVar1 = *pcVar2;\n  if (cVar1 == '_') {\n    *param_1 = (int)(pcVar2 + 1);\n    if (((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4) != 0) {\n      iVar3 = FUN_001cdde0();\n      if (*(char *)*param_1 == '_') {\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }\n    }\n  }\n  else if ((byte)(cVar1 - 0x30U) < 10) {\n    *param_1 = (int)(pcVar2 + 1);\n    return cVar1 + -0x30;\n  }\n  return -1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_001cde90(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  \n  pcVar2 = (char *)*param_1;\n  cVar1 = *pcVar2;\n  if (cVar1 == '_') {\n    *param_1 = (int)(pcVar2 + 1);\n    if (((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4) != 0) {\n      iVar3 = FUN_001cdde0();\n      if (*(char *)*param_1 == '_') {\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }\n    }\n  }\n  else if ((byte)(cVar1 - 0x30U) < 10) {\n    *param_1 = (int)(pcVar2 + 1);\n    return cVar1 + -0x30;\n  }\n  return -1;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "pcVar2 = (char *)*param_1;" (assignment_expression "pcVar2 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (if_statement "if (cVar1 == '_') {\n    *param_1 = (int)(pcVar2 + 1);\n    if (((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4) != 0) {\n      iVar3 = FUN_001cdde0();\n      if (*(char *)*param_1 == '_') {\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }\n    }\n  }\n  else if ((byte)(cVar1 - 0x30U) < 10) {\n    *param_1 = (int)(pcVar2 + 1);\n    return cVar1 + -0x30;\n  }" if (parenthesized_expression "(cVar1 == '_')" ( (binary_expression "cVar1 == '_'" identifier == (char_literal "'_'" ' character ')) )) (compound_statement "{\n    *param_1 = (int)(pcVar2 + 1);\n    if (((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4) != 0) {\n      iVar3 = FUN_001cdde0();\n      if (*(char *)*param_1 == '_') {\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }\n    }\n  }" { (expression_statement "*param_1 = (int)(pcVar2 + 1);" (assignment_expression "*param_1 = (int)(pcVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pcVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar2 + 1)" ( (binary_expression "pcVar2 + 1" identifier + number_literal) )))) ;) (if_statement "if (((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4) != 0) {\n      iVar3 = FUN_001cdde0();\n      if (*(char *)*param_1 == '_') {\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }\n    }" if (parenthesized_expression "(((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4) != 0)" ( (binary_expression "((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4) != 0" (parenthesized_expression "((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4)" ( (binary_expression "(&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4" (subscript_expression "(&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2]" (parenthesized_expression "(&DAT_002a3600)" ( (pointer_expression "&DAT_002a3600" & identifier) )) [ (binary_expression "(uint)(byte)pcVar2[1] * 2" (cast_expression "(uint)(byte)pcVar2[1]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)pcVar2[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "pcVar2[1]" identifier [ number_literal ]))) * number_literal) ]) & number_literal) )) != number_literal) )) (compound_statement "{\n      iVar3 = FUN_001cdde0();\n      if (*(char *)*param_1 == '_') {\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }\n    }" { (expression_statement "iVar3 = FUN_001cdde0();" (assignment_expression "iVar3 = FUN_001cdde0()" identifier = (call_expression "FUN_001cdde0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*(char *)*param_1 == '_') {\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }" if (parenthesized_expression "(*(char *)*param_1 == '_')" ( (binary_expression "*(char *)*param_1 == '_'" (pointer_expression "*(char *)*param_1" * (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) == (char_literal "'_'" ' character ')) )) (compound_statement "{\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }" { (expression_statement "*param_1 = (int)((char *)*param_1 + 1);" (assignment_expression "*param_1 = (int)((char *)*param_1 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)((char *)*param_1 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((char *)*param_1 + 1)" ( (binary_expression "(char *)*param_1 + 1" (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) + number_literal) )))) ;) (return_statement "return iVar3;" return identifier ;) })) })) }) (else_clause "else if ((byte)(cVar1 - 0x30U) < 10) {\n    *param_1 = (int)(pcVar2 + 1);\n    return cVar1 + -0x30;\n  }" else (if_statement "if ((byte)(cVar1 - 0x30U) < 10) {\n    *param_1 = (int)(pcVar2 + 1);\n    return cVar1 + -0x30;\n  }" if (parenthesized_expression "((byte)(cVar1 - 0x30U) < 10)" ( (binary_expression "(byte)(cVar1 - 0x30U) < 10" (call_expression "(byte)(cVar1 - 0x30U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar1 - 0x30U)" ( (binary_expression "cVar1 - 0x30U" identifier - number_literal) ))) < number_literal) )) (compound_statement "{\n    *param_1 = (int)(pcVar2 + 1);\n    return cVar1 + -0x30;\n  }" { (expression_statement "*param_1 = (int)(pcVar2 + 1);" (assignment_expression "*param_1 = (int)(pcVar2 + 1)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(pcVar2 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar2 + 1)" ( (binary_expression "pcVar2 + 1" identifier + number_literal) )))) ;) (return_statement "return cVar1 + -0x30;" return (binary_expression "cVar1 + -0x30" identifier + number_literal) ;) })))) (return_statement "return -1;" return number_literal ;) })))
(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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) * LIT) ]) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) + LIT) )))) ;) (return_statement return IDENT ;) })) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - LIT) ))) < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (return_statement return (binary_expression IDENT + LIT) ;) })))) (return_statement return LIT ;) })))
(function_definition "int __regparm3 FUN_001cde90(int *param_1)\n\n{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  \n  pcVar2 = (char *)*param_1;\n  cVar1 = *pcVar2;\n  if (cVar1 == '_') {\n    *param_1 = (int)(pcVar2 + 1);\n    if (((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4) != 0) {\n      iVar3 = FUN_001cdde0();\n      if (*(char *)*param_1 == '_') {\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }\n    }\n  }\n  else if ((byte)(cVar1 - 0x30U) < 10) {\n    *param_1 = (int)(pcVar2 + 1);\n    return cVar1 + -0x30;\n  }\n  return -1;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_001cde90(int *param_1)" (identifier "FUN_001cde90") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  int iVar3;\n  \n  pcVar2 = (char *)*param_1;\n  cVar1 = *pcVar2;\n  if (cVar1 == '_') {\n    *param_1 = (int)(pcVar2 + 1);\n    if (((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4) != 0) {\n      iVar3 = FUN_001cdde0();\n      if (*(char *)*param_1 == '_') {\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }\n    }\n  }\n  else if ((byte)(cVar1 - 0x30U) < 10) {\n    *param_1 = (int)(pcVar2 + 1);\n    return cVar1 + -0x30;\n  }\n  return -1;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "pcVar2 = (char *)*param_1;" (assignment_expression "pcVar2 = (char *)*param_1" (identifier "pcVar2") (= "=") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" (identifier "cVar1") (= "=") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2"))) (; ";")) (if_statement "if (cVar1 == '_') {\n    *param_1 = (int)(pcVar2 + 1);\n    if (((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4) != 0) {\n      iVar3 = FUN_001cdde0();\n      if (*(char *)*param_1 == '_') {\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }\n    }\n  }\n  else if ((byte)(cVar1 - 0x30U) < 10) {\n    *param_1 = (int)(pcVar2 + 1);\n    return cVar1 + -0x30;\n  }" (if "if") (parenthesized_expression "(cVar1 == '_')" (( "(") (binary_expression "cVar1 == '_'" (identifier "cVar1") (== "==") (char_literal "'_'" (' "'") (character "_") (' "'"))) () ")")) (compound_statement "{\n    *param_1 = (int)(pcVar2 + 1);\n    if (((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4) != 0) {\n      iVar3 = FUN_001cdde0();\n      if (*(char *)*param_1 == '_') {\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }\n    }\n  }" ({ "{") (expression_statement "*param_1 = (int)(pcVar2 + 1);" (assignment_expression "*param_1 = (int)(pcVar2 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pcVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pcVar2 + 1)" (( "(") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (if_statement "if (((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4) != 0) {\n      iVar3 = FUN_001cdde0();\n      if (*(char *)*param_1 == '_') {\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }\n    }" (if "if") (parenthesized_expression "(((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4) != 0)" (( "(") (binary_expression "((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4) != 0" (parenthesized_expression "((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4)" (( "(") (binary_expression "(&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4" (subscript_expression "(&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2]" (parenthesized_expression "(&DAT_002a3600)" (( "(") (pointer_expression "&DAT_002a3600" (& "&") (identifier "DAT_002a3600")) () ")")) ([ "[") (binary_expression "(uint)(byte)pcVar2[1] * 2" (cast_expression "(uint)(byte)pcVar2[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)pcVar2[1]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "pcVar2[1]" (identifier "pcVar2") ([ "[") (number_literal "1") (] "]")))) (* "*") (number_literal "2")) (] "]")) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar3 = FUN_001cdde0();\n      if (*(char *)*param_1 == '_') {\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }\n    }" ({ "{") (expression_statement "iVar3 = FUN_001cdde0();" (assignment_expression "iVar3 = FUN_001cdde0()" (identifier "iVar3") (= "=") (call_expression "FUN_001cdde0()" (identifier "FUN_001cdde0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (*(char *)*param_1 == '_') {\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }" (if "if") (parenthesized_expression "(*(char *)*param_1 == '_')" (( "(") (binary_expression "*(char *)*param_1 == '_'" (pointer_expression "*(char *)*param_1" (* "*") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (== "==") (char_literal "'_'" (' "'") (character "_") (' "'"))) () ")")) (compound_statement "{\n        *param_1 = (int)((char *)*param_1 + 1);\n        return iVar3;\n      }" ({ "{") (expression_statement "*param_1 = (int)((char *)*param_1 + 1);" (assignment_expression "*param_1 = (int)((char *)*param_1 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)((char *)*param_1 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((char *)*param_1 + 1)" (( "(") (binary_expression "(char *)*param_1 + 1" (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (+ "+") (number_literal "1")) () ")")))) (; ";")) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}"))) (} "}"))) (} "}")) (else_clause "else if ((byte)(cVar1 - 0x30U) < 10) {\n    *param_1 = (int)(pcVar2 + 1);\n    return cVar1 + -0x30;\n  }" (else "else") (if_statement "if ((byte)(cVar1 - 0x30U) < 10) {\n    *param_1 = (int)(pcVar2 + 1);\n    return cVar1 + -0x30;\n  }" (if "if") (parenthesized_expression "((byte)(cVar1 - 0x30U) < 10)" (( "(") (binary_expression "(byte)(cVar1 - 0x30U) < 10" (call_expression "(byte)(cVar1 - 0x30U)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(cVar1 - 0x30U)" (( "(") (binary_expression "cVar1 - 0x30U" (identifier "cVar1") (- "-") (number_literal "0x30U")) () ")"))) (< "<") (number_literal "10")) () ")")) (compound_statement "{\n    *param_1 = (int)(pcVar2 + 1);\n    return cVar1 + -0x30;\n  }" ({ "{") (expression_statement "*param_1 = (int)(pcVar2 + 1);" (assignment_expression "*param_1 = (int)(pcVar2 + 1)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(pcVar2 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pcVar2 + 1)" (( "(") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (return_statement "return cVar1 + -0x30;" (return "return") (binary_expression "cVar1 + -0x30" (identifier "cVar1") (+ "+") (number_literal "-0x30")) (; ";")) (} "}"))))) (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}")))

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

int __regparm3 function_1(char **mangled)

{
  char var_1;
  char *var_2;
  int iVar3;
  
  var_2 = *mangled;
  var_1 = *var_2;
  if (var_1 == '_') {
    *mangled = var_2 + 1;
    if ((_sch_istable[(type_1)var_2[1]] & 4) != 0) {
      iVar3 = var_3(mangled);
      if (**mangled == '_') {
        *mangled = *mangled + 1;
        return iVar3;
      }
    }
  }
  else if ((type_1)(var_1 - 0x30U) < 10) {
    *mangled = var_2 + 1;
    return var_1 + -0x30;
  }
  return -1;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (number_literal))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) right: (number_literal)))))) (return_statement (identifier))))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (binary_expression left: (identifier) right: (number_literal))))))) (return_statement (number_literal)))))

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

int __regparm3 MASKED(int *param_1)

{
  char cVar1;
  char *pcVar2;
  int iVar3;
  
  pcVar2 = (char *)*param_1;
  cVar1 = *pcVar2;
  if (cVar1 == '_') {
    *param_1 = (int)(pcVar2 + 1);
    if (((&DAT_002a3600)[(uint)(byte)pcVar2[1] * 2] & 4) != 0) {
      iVar3 = FUN_001cdde0();
      if (*(char *)*param_1 == '_') {
        *param_1 = (int)((char *)*param_1 + 1);
        return iVar3;
      }
    }
  }
  else if ((byte)(cVar1 - 0x30U) < 10) {
    *param_1 = (int)(pcVar2 + 1);
    return cVar1 + -0x30;
  }
  return -1;
}

