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

int __regparm3 xtonum(int *pval,char *src,int base,int cnt)

{
  __int32_t **pp_Var1;
  uint uVar2;
  char *pcVar3;
  uint __c;
  int iVar4;
  int iVar5;
  
  iVar5 = 0;
  iVar4 = 0;
  do {
    __c = (uint)(byte)src[iVar4];
    if (0x7f < __c) break;
    uVar2 = __c - 0x30;
    if (9 < uVar2) {
      pcVar3 = strchr("abcdefABCDEF",__c);
      if (pcVar3 == (char *)0x0) break;
      pp_Var1 = __ctype_toupper_loc();
      uVar2 = (*pp_Var1)[__c] - 0x37;
    }
    if (base <= (int)uVar2) break;
    iVar4 = iVar4 + 1;
    iVar5 = uVar2 + iVar5 * base;
  } while (cnt != iVar4);
  *pval = iVar5;
  return iVar4;
}



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

int __regparm3 FUN_0001c260(int *param_1,int param_2,int param_3,int param_4)

{
  __int32_t **pp_Var1;
  uint uVar2;
  char *pcVar3;
  uint __c;
  int iVar4;
  int iVar5;
  
  iVar5 = 0;
  iVar4 = 0;
  do {
    __c = (uint)*(byte *)(param_2 + iVar4);
    if (0x7f < __c) break;
    uVar2 = __c - 0x30;
    if (9 < uVar2) {
      pcVar3 = strchr("abcdefABCDEF",__c);
      if (pcVar3 == (char *)0x0) break;
      pp_Var1 = __ctype_toupper_loc();
      uVar2 = (*pp_Var1)[__c] - 0x37;
    }
    if (param_3 <= (int)uVar2) break;
    iVar4 = iVar4 + 1;
    iVar5 = uVar2 + iVar5 * param_3;
  } while (param_4 != iVar4);
  *param_1 = iVar5;
  return iVar4;
}


PUSH EBP
PUSH EDI
XOR EDI,EDI
PUSH ESI
XOR ESI,ESI
PUSH EBX
CALL 0x00012800
ADD EBX,0x19c03
SUB ESP,0x1c
MOV dword ptr [ESP + 0xc],EAX
MOV dword ptr [ESP],EDX
MOV dword ptr [ESP + 0x4],ECX
LEA EAX,[EBX + 0xffff6344]
MOV dword ptr [ESP + 0x8],EAX
JMP 0x0001c2b6
CALL 0x00012040
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + EBP*0x4]
SUB EAX,0x37
MOV ECX,dword ptr [ESP + 0x4]
CMP EAX,ECX
JGE 0x0001c2de
MOV EDX,EDI
ADD ESI,0x1
IMUL EDX,ECX
LEA EDI,[EAX + EDX*0x1]
CMP dword ptr [ESP + 0x30],ESI
JZ 0x0001c2de
MOV EAX,dword ptr [ESP]
MOVZX EBP,byte ptr [EAX + ESI*0x1]
CMP EBP,0x7f
JG 0x0001c2de
LEA EAX,[EBP + -0x30]
CMP EAX,0x9
JBE 0x0001c29d
SUB ESP,0x8
PUSH EBP
PUSH dword ptr [ESP + 0x14]
CALL 0x00012280
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0001c290
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [EAX],EDI
ADD ESP,0x1c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_0001c260(int *param_1,int param_2,int param_3,int param_4)\n\n{\n  __int32_t **pp_Var1;\n  uint uVar2;\n  char *pcVar3;\n  uint __c;\n  int iVar4;\n  int iVar5;\n  \n  iVar5 = 0;\n  iVar4 = 0;\n  do {\n    __c = (uint)*(byte *)(param_2 + iVar4);\n    if (0x7f < __c) break;\n    uVar2 = __c - 0x30;\n    if (9 < uVar2) {\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }\n    if (param_3 <= (int)uVar2) break;\n    iVar4 = iVar4 + 1;\n    iVar5 = uVar2 + iVar5 * param_3;\n  } while (param_4 != iVar4);\n  *param_1 = iVar5;\n  return iVar4;\n}\n\n" comment (function_definition "int __regparm3 FUN_0001c260(int *param_1,int param_2,int param_3,int param_4)\n\n{\n  __int32_t **pp_Var1;\n  uint uVar2;\n  char *pcVar3;\n  uint __c;\n  int iVar4;\n  int iVar5;\n  \n  iVar5 = 0;\n  iVar4 = 0;\n  do {\n    __c = (uint)*(byte *)(param_2 + iVar4);\n    if (0x7f < __c) break;\n    uVar2 = __c - 0x30;\n    if (9 < uVar2) {\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }\n    if (param_3 <= (int)uVar2) break;\n    iVar4 = iVar4 + 1;\n    iVar5 = uVar2 + iVar5 * param_3;\n  } while (param_4 != iVar4);\n  *param_1 = iVar5;\n  return iVar4;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001c260(int *param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(int *param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  __int32_t **pp_Var1;\n  uint uVar2;\n  char *pcVar3;\n  uint __c;\n  int iVar4;\n  int iVar5;\n  \n  iVar5 = 0;\n  iVar4 = 0;\n  do {\n    __c = (uint)*(byte *)(param_2 + iVar4);\n    if (0x7f < __c) break;\n    uVar2 = __c - 0x30;\n    if (9 < uVar2) {\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }\n    if (param_3 <= (int)uVar2) break;\n    iVar4 = iVar4 + 1;\n    iVar5 = uVar2 + iVar5 * param_3;\n  } while (param_4 != iVar4);\n  *param_1 = iVar5;\n  return iVar4;\n}" { (declaration "__int32_t **pp_Var1;" type_identifier (pointer_declarator "**pp_Var1" * (pointer_declarator "*pp_Var1" * identifier)) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "uint __c;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n    __c = (uint)*(byte *)(param_2 + iVar4);\n    if (0x7f < __c) break;\n    uVar2 = __c - 0x30;\n    if (9 < uVar2) {\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }\n    if (param_3 <= (int)uVar2) break;\n    iVar4 = iVar4 + 1;\n    iVar5 = uVar2 + iVar5 * param_3;\n  } while (param_4 != iVar4);" do (compound_statement "{\n    __c = (uint)*(byte *)(param_2 + iVar4);\n    if (0x7f < __c) break;\n    uVar2 = __c - 0x30;\n    if (9 < uVar2) {\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }\n    if (param_3 <= (int)uVar2) break;\n    iVar4 = iVar4 + 1;\n    iVar5 = uVar2 + iVar5 * param_3;\n  }" { (expression_statement "__c = (uint)*(byte *)(param_2 + iVar4);" (assignment_expression "__c = (uint)*(byte *)(param_2 + iVar4)" identifier = (binary_expression "(uint)*(byte *)(param_2 + iVar4)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_2 + iVar4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar4)" ( (binary_expression "param_2 + iVar4" identifier + identifier) ))))) ;) (if_statement "if (0x7f < __c) break;" if (parenthesized_expression "(0x7f < __c)" ( (binary_expression "0x7f < __c" number_literal < identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar2 = __c - 0x30;" (assignment_expression "uVar2 = __c - 0x30" identifier = (binary_expression "__c - 0x30" identifier - number_literal)) ;) (if_statement "if (9 < uVar2) {\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }" if (parenthesized_expression "(9 < uVar2)" ( (binary_expression "9 < uVar2" number_literal < identifier) )) (compound_statement "{\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }" { (expression_statement "pcVar3 = strchr("abcdefABCDEF",__c);" (assignment_expression "pcVar3 = strchr("abcdefABCDEF",__c)" identifier = (call_expression "strchr("abcdefABCDEF",__c)" identifier (argument_list "("abcdefABCDEF",__c)" ( (string_literal ""abcdefABCDEF"" " string_content ") , identifier )))) ;) (if_statement "if (pcVar3 == (char *)0x0) break;" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pp_Var1 = __ctype_toupper_loc();" (assignment_expression "pp_Var1 = __ctype_toupper_loc()" identifier = (call_expression "__ctype_toupper_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = (*pp_Var1)[__c] - 0x37;" (assignment_expression "uVar2 = (*pp_Var1)[__c] - 0x37" identifier = (binary_expression "(*pp_Var1)[__c] - 0x37" (subscript_expression "(*pp_Var1)[__c]" (parenthesized_expression "(*pp_Var1)" ( (pointer_expression "*pp_Var1" * identifier) )) [ identifier ]) - number_literal)) ;) })) (if_statement "if (param_3 <= (int)uVar2) break;" if (parenthesized_expression "(param_3 <= (int)uVar2)" ( (binary_expression "param_3 <= (int)uVar2" identifier <= (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = uVar2 + iVar5 * param_3;" (assignment_expression "iVar5 = uVar2 + iVar5 * param_3" identifier = (binary_expression "uVar2 + iVar5 * param_3" identifier + (binary_expression "iVar5 * param_3" identifier * identifier))) ;) }) while (parenthesized_expression "(param_4 != iVar4)" ( (binary_expression "param_4 != iVar4" identifier != identifier) )) ;) (expression_statement "*param_1 = iVar5;" (assignment_expression "*param_1 = iVar5" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 xtonum(int *pval,char *src,int base,int cnt)\n\n{\n  __int32_t **pp_Var1;\n  uint uVar2;\n  char *pcVar3;\n  uint __c;\n  int iVar4;\n  int iVar5;\n  \n  iVar5 = 0;\n  iVar4 = 0;\n  do {\n    __c = (uint)(byte)src[iVar4];\n    if (0x7f < __c) break;\n    uVar2 = __c - 0x30;\n    if (9 < uVar2) {\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }\n    if (base <= (int)uVar2) break;\n    iVar4 = iVar4 + 1;\n    iVar5 = uVar2 + iVar5 * base;\n  } while (cnt != iVar4);\n  *pval = iVar5;\n  return iVar4;\n}\n\n" comment (function_definition "int __regparm3 xtonum(int *pval,char *src,int base,int cnt)\n\n{\n  __int32_t **pp_Var1;\n  uint uVar2;\n  char *pcVar3;\n  uint __c;\n  int iVar4;\n  int iVar5;\n  \n  iVar5 = 0;\n  iVar4 = 0;\n  do {\n    __c = (uint)(byte)src[iVar4];\n    if (0x7f < __c) break;\n    uVar2 = __c - 0x30;\n    if (9 < uVar2) {\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }\n    if (base <= (int)uVar2) break;\n    iVar4 = iVar4 + 1;\n    iVar5 = uVar2 + iVar5 * base;\n  } while (cnt != iVar4);\n  *pval = iVar5;\n  return iVar4;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "xtonum(int *pval,char *src,int base,int cnt)" identifier (parameter_list "(int *pval,char *src,int base,int cnt)" ( (parameter_declaration "int *pval" primitive_type (pointer_declarator "*pval" * identifier)) , (parameter_declaration "char *src" primitive_type (pointer_declarator "*src" * identifier)) , (parameter_declaration "int base" primitive_type identifier) , (parameter_declaration "int cnt" primitive_type identifier) ))) (compound_statement "{\n  __int32_t **pp_Var1;\n  uint uVar2;\n  char *pcVar3;\n  uint __c;\n  int iVar4;\n  int iVar5;\n  \n  iVar5 = 0;\n  iVar4 = 0;\n  do {\n    __c = (uint)(byte)src[iVar4];\n    if (0x7f < __c) break;\n    uVar2 = __c - 0x30;\n    if (9 < uVar2) {\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }\n    if (base <= (int)uVar2) break;\n    iVar4 = iVar4 + 1;\n    iVar5 = uVar2 + iVar5 * base;\n  } while (cnt != iVar4);\n  *pval = iVar5;\n  return iVar4;\n}" { (declaration "__int32_t **pp_Var1;" type_identifier (pointer_declarator "**pp_Var1" * (pointer_declarator "*pp_Var1" * identifier)) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "uint __c;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n    __c = (uint)(byte)src[iVar4];\n    if (0x7f < __c) break;\n    uVar2 = __c - 0x30;\n    if (9 < uVar2) {\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }\n    if (base <= (int)uVar2) break;\n    iVar4 = iVar4 + 1;\n    iVar5 = uVar2 + iVar5 * base;\n  } while (cnt != iVar4);" do (compound_statement "{\n    __c = (uint)(byte)src[iVar4];\n    if (0x7f < __c) break;\n    uVar2 = __c - 0x30;\n    if (9 < uVar2) {\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }\n    if (base <= (int)uVar2) break;\n    iVar4 = iVar4 + 1;\n    iVar5 = uVar2 + iVar5 * base;\n  }" { (expression_statement "__c = (uint)(byte)src[iVar4];" (assignment_expression "__c = (uint)(byte)src[iVar4]" identifier = (cast_expression "(uint)(byte)src[iVar4]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)src[iVar4]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "src[iVar4]" identifier [ identifier ])))) ;) (if_statement "if (0x7f < __c) break;" if (parenthesized_expression "(0x7f < __c)" ( (binary_expression "0x7f < __c" number_literal < identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar2 = __c - 0x30;" (assignment_expression "uVar2 = __c - 0x30" identifier = (binary_expression "__c - 0x30" identifier - number_literal)) ;) (if_statement "if (9 < uVar2) {\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }" if (parenthesized_expression "(9 < uVar2)" ( (binary_expression "9 < uVar2" number_literal < identifier) )) (compound_statement "{\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }" { (expression_statement "pcVar3 = strchr("abcdefABCDEF",__c);" (assignment_expression "pcVar3 = strchr("abcdefABCDEF",__c)" identifier = (call_expression "strchr("abcdefABCDEF",__c)" identifier (argument_list "("abcdefABCDEF",__c)" ( (string_literal ""abcdefABCDEF"" " string_content ") , identifier )))) ;) (if_statement "if (pcVar3 == (char *)0x0) break;" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pp_Var1 = __ctype_toupper_loc();" (assignment_expression "pp_Var1 = __ctype_toupper_loc()" identifier = (call_expression "__ctype_toupper_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = (*pp_Var1)[__c] - 0x37;" (assignment_expression "uVar2 = (*pp_Var1)[__c] - 0x37" identifier = (binary_expression "(*pp_Var1)[__c] - 0x37" (subscript_expression "(*pp_Var1)[__c]" (parenthesized_expression "(*pp_Var1)" ( (pointer_expression "*pp_Var1" * identifier) )) [ identifier ]) - number_literal)) ;) })) (if_statement "if (base <= (int)uVar2) break;" if (parenthesized_expression "(base <= (int)uVar2)" ( (binary_expression "base <= (int)uVar2" identifier <= (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = uVar2 + iVar5 * base;" (assignment_expression "iVar5 = uVar2 + iVar5 * base" identifier = (binary_expression "uVar2 + iVar5 * base" identifier + (binary_expression "iVar5 * base" identifier * identifier))) ;) }) while (parenthesized_expression "(cnt != iVar4)" ( (binary_expression "cnt != iVar4" identifier != identifier) )) ;) (expression_statement "*pval = iVar5;" (assignment_expression "*pval = iVar5" (pointer_expression "*pval" * identifier) = identifier) ;) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "int __regparm3 FUN_0001c260(int *param_1,int param_2,int param_3,int param_4)\n\n{\n  __int32_t **pp_Var1;\n  uint uVar2;\n  char *pcVar3;\n  uint __c;\n  int iVar4;\n  int iVar5;\n  \n  iVar5 = 0;\n  iVar4 = 0;\n  do {\n    __c = (uint)*(byte *)(param_2 + iVar4);\n    if (0x7f < __c) break;\n    uVar2 = __c - 0x30;\n    if (9 < uVar2) {\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }\n    if (param_3 <= (int)uVar2) break;\n    iVar4 = iVar4 + 1;\n    iVar5 = uVar2 + iVar5 * param_3;\n  } while (param_4 != iVar4);\n  *param_1 = iVar5;\n  return iVar4;\n}\n\n" (function_definition "int __regparm3 FUN_0001c260(int *param_1,int param_2,int param_3,int param_4)\n\n{\n  __int32_t **pp_Var1;\n  uint uVar2;\n  char *pcVar3;\n  uint __c;\n  int iVar4;\n  int iVar5;\n  \n  iVar5 = 0;\n  iVar4 = 0;\n  do {\n    __c = (uint)*(byte *)(param_2 + iVar4);\n    if (0x7f < __c) break;\n    uVar2 = __c - 0x30;\n    if (9 < uVar2) {\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }\n    if (param_3 <= (int)uVar2) break;\n    iVar4 = iVar4 + 1;\n    iVar5 = uVar2 + iVar5 * param_3;\n  } while (param_4 != iVar4);\n  *param_1 = iVar5;\n  return iVar4;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001c260(int *param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(int *param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  __int32_t **pp_Var1;\n  uint uVar2;\n  char *pcVar3;\n  uint __c;\n  int iVar4;\n  int iVar5;\n  \n  iVar5 = 0;\n  iVar4 = 0;\n  do {\n    __c = (uint)*(byte *)(param_2 + iVar4);\n    if (0x7f < __c) break;\n    uVar2 = __c - 0x30;\n    if (9 < uVar2) {\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }\n    if (param_3 <= (int)uVar2) break;\n    iVar4 = iVar4 + 1;\n    iVar5 = uVar2 + iVar5 * param_3;\n  } while (param_4 != iVar4);\n  *param_1 = iVar5;\n  return iVar4;\n}" { (declaration "__int32_t **pp_Var1;" type_identifier (pointer_declarator "**pp_Var1" * (pointer_declarator "*pp_Var1" * identifier)) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "uint __c;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n    __c = (uint)*(byte *)(param_2 + iVar4);\n    if (0x7f < __c) break;\n    uVar2 = __c - 0x30;\n    if (9 < uVar2) {\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }\n    if (param_3 <= (int)uVar2) break;\n    iVar4 = iVar4 + 1;\n    iVar5 = uVar2 + iVar5 * param_3;\n  } while (param_4 != iVar4);" do (compound_statement "{\n    __c = (uint)*(byte *)(param_2 + iVar4);\n    if (0x7f < __c) break;\n    uVar2 = __c - 0x30;\n    if (9 < uVar2) {\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }\n    if (param_3 <= (int)uVar2) break;\n    iVar4 = iVar4 + 1;\n    iVar5 = uVar2 + iVar5 * param_3;\n  }" { (expression_statement "__c = (uint)*(byte *)(param_2 + iVar4);" (assignment_expression "__c = (uint)*(byte *)(param_2 + iVar4)" identifier = (binary_expression "(uint)*(byte *)(param_2 + iVar4)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_2 + iVar4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar4)" ( (binary_expression "param_2 + iVar4" identifier + identifier) ))))) ;) (if_statement "if (0x7f < __c) break;" if (parenthesized_expression "(0x7f < __c)" ( (binary_expression "0x7f < __c" number_literal < identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar2 = __c - 0x30;" (assignment_expression "uVar2 = __c - 0x30" identifier = (binary_expression "__c - 0x30" identifier - number_literal)) ;) (if_statement "if (9 < uVar2) {\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }" if (parenthesized_expression "(9 < uVar2)" ( (binary_expression "9 < uVar2" number_literal < identifier) )) (compound_statement "{\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }" { (expression_statement "pcVar3 = strchr("abcdefABCDEF",__c);" (assignment_expression "pcVar3 = strchr("abcdefABCDEF",__c)" identifier = (call_expression "strchr("abcdefABCDEF",__c)" identifier (argument_list "("abcdefABCDEF",__c)" ( (string_literal ""abcdefABCDEF"" " string_content ") , identifier )))) ;) (if_statement "if (pcVar3 == (char *)0x0) break;" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pp_Var1 = __ctype_toupper_loc();" (assignment_expression "pp_Var1 = __ctype_toupper_loc()" identifier = (call_expression "__ctype_toupper_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = (*pp_Var1)[__c] - 0x37;" (assignment_expression "uVar2 = (*pp_Var1)[__c] - 0x37" identifier = (binary_expression "(*pp_Var1)[__c] - 0x37" (subscript_expression "(*pp_Var1)[__c]" (parenthesized_expression "(*pp_Var1)" ( (pointer_expression "*pp_Var1" * identifier) )) [ identifier ]) - number_literal)) ;) })) (if_statement "if (param_3 <= (int)uVar2) break;" if (parenthesized_expression "(param_3 <= (int)uVar2)" ( (binary_expression "param_3 <= (int)uVar2" identifier <= (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = uVar2 + iVar5 * param_3;" (assignment_expression "iVar5 = uVar2 + iVar5 * param_3" identifier = (binary_expression "uVar2 + iVar5 * param_3" identifier + (binary_expression "iVar5 * param_3" identifier * identifier))) ;) }) while (parenthesized_expression "(param_4 != iVar4)" ( (binary_expression "param_4 != iVar4" identifier != identifier) )) ;) (expression_statement "*param_1 = iVar5;" (assignment_expression "*param_1 = iVar5" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression (parenthesized_expression ( (pointer_expression * IDENT) )) [ IDENT ]) - LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_0001c260(int *param_1,int param_2,int param_3,int param_4)\n\n{\n  __int32_t **pp_Var1;\n  uint uVar2;\n  char *pcVar3;\n  uint __c;\n  int iVar4;\n  int iVar5;\n  \n  iVar5 = 0;\n  iVar4 = 0;\n  do {\n    __c = (uint)*(byte *)(param_2 + iVar4);\n    if (0x7f < __c) break;\n    uVar2 = __c - 0x30;\n    if (9 < uVar2) {\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }\n    if (param_3 <= (int)uVar2) break;\n    iVar4 = iVar4 + 1;\n    iVar5 = uVar2 + iVar5 * param_3;\n  } while (param_4 != iVar4);\n  *param_1 = iVar5;\n  return iVar4;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001c260(int *param_1,int param_2,int param_3,int param_4)" (identifier "FUN_0001c260") (parameter_list "(int *param_1,int param_2,int param_3,int param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  __int32_t **pp_Var1;\n  uint uVar2;\n  char *pcVar3;\n  uint __c;\n  int iVar4;\n  int iVar5;\n  \n  iVar5 = 0;\n  iVar4 = 0;\n  do {\n    __c = (uint)*(byte *)(param_2 + iVar4);\n    if (0x7f < __c) break;\n    uVar2 = __c - 0x30;\n    if (9 < uVar2) {\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }\n    if (param_3 <= (int)uVar2) break;\n    iVar4 = iVar4 + 1;\n    iVar5 = uVar2 + iVar5 * param_3;\n  } while (param_4 != iVar4);\n  *param_1 = iVar5;\n  return iVar4;\n}" ({ "{") (declaration "__int32_t **pp_Var1;" (type_identifier "__int32_t") (pointer_declarator "**pp_Var1" (* "*") (pointer_declarator "*pp_Var1" (* "*") (identifier "pp_Var1"))) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "uint __c;" (type_identifier "uint") (identifier "__c") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    __c = (uint)*(byte *)(param_2 + iVar4);\n    if (0x7f < __c) break;\n    uVar2 = __c - 0x30;\n    if (9 < uVar2) {\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }\n    if (param_3 <= (int)uVar2) break;\n    iVar4 = iVar4 + 1;\n    iVar5 = uVar2 + iVar5 * param_3;\n  } while (param_4 != iVar4);" (do "do") (compound_statement "{\n    __c = (uint)*(byte *)(param_2 + iVar4);\n    if (0x7f < __c) break;\n    uVar2 = __c - 0x30;\n    if (9 < uVar2) {\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }\n    if (param_3 <= (int)uVar2) break;\n    iVar4 = iVar4 + 1;\n    iVar5 = uVar2 + iVar5 * param_3;\n  }" ({ "{") (expression_statement "__c = (uint)*(byte *)(param_2 + iVar4);" (assignment_expression "__c = (uint)*(byte *)(param_2 + iVar4)" (identifier "__c") (= "=") (binary_expression "(uint)*(byte *)(param_2 + iVar4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(param_2 + iVar4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + iVar4)" (( "(") (binary_expression "param_2 + iVar4" (identifier "param_2") (+ "+") (identifier "iVar4")) () ")"))))) (; ";")) (if_statement "if (0x7f < __c) break;" (if "if") (parenthesized_expression "(0x7f < __c)" (( "(") (binary_expression "0x7f < __c" (number_literal "0x7f") (< "<") (identifier "__c")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar2 = __c - 0x30;" (assignment_expression "uVar2 = __c - 0x30" (identifier "uVar2") (= "=") (binary_expression "__c - 0x30" (identifier "__c") (- "-") (number_literal "0x30"))) (; ";")) (if_statement "if (9 < uVar2) {\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }" (if "if") (parenthesized_expression "(9 < uVar2)" (( "(") (binary_expression "9 < uVar2" (number_literal "9") (< "<") (identifier "uVar2")) () ")")) (compound_statement "{\n      pcVar3 = strchr("abcdefABCDEF",__c);\n      if (pcVar3 == (char *)0x0) break;\n      pp_Var1 = __ctype_toupper_loc();\n      uVar2 = (*pp_Var1)[__c] - 0x37;\n    }" ({ "{") (expression_statement "pcVar3 = strchr("abcdefABCDEF",__c);" (assignment_expression "pcVar3 = strchr("abcdefABCDEF",__c)" (identifier "pcVar3") (= "=") (call_expression "strchr("abcdefABCDEF",__c)" (identifier "strchr") (argument_list "("abcdefABCDEF",__c)" (( "(") (string_literal ""abcdefABCDEF"" (" """) (string_content "abcdefABCDEF") (" """)) (, ",") (identifier "__c") () ")")))) (; ";")) (if_statement "if (pcVar3 == (char *)0x0) break;" (if "if") (parenthesized_expression "(pcVar3 == (char *)0x0)" (( "(") (binary_expression "pcVar3 == (char *)0x0" (identifier "pcVar3") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pp_Var1 = __ctype_toupper_loc();" (assignment_expression "pp_Var1 = __ctype_toupper_loc()" (identifier "pp_Var1") (= "=") (call_expression "__ctype_toupper_loc()" (identifier "__ctype_toupper_loc") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar2 = (*pp_Var1)[__c] - 0x37;" (assignment_expression "uVar2 = (*pp_Var1)[__c] - 0x37" (identifier "uVar2") (= "=") (binary_expression "(*pp_Var1)[__c] - 0x37" (subscript_expression "(*pp_Var1)[__c]" (parenthesized_expression "(*pp_Var1)" (( "(") (pointer_expression "*pp_Var1" (* "*") (identifier "pp_Var1")) () ")")) ([ "[") (identifier "__c") (] "]")) (- "-") (number_literal "0x37"))) (; ";")) (} "}"))) (if_statement "if (param_3 <= (int)uVar2) break;" (if "if") (parenthesized_expression "(param_3 <= (int)uVar2)" (( "(") (binary_expression "param_3 <= (int)uVar2" (identifier "param_3") (<= "<=") (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar5 = uVar2 + iVar5 * param_3;" (assignment_expression "iVar5 = uVar2 + iVar5 * param_3" (identifier "iVar5") (= "=") (binary_expression "uVar2 + iVar5 * param_3" (identifier "uVar2") (+ "+") (binary_expression "iVar5 * param_3" (identifier "iVar5") (* "*") (identifier "param_3")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_4 != iVar4)" (( "(") (binary_expression "param_4 != iVar4" (identifier "param_4") (!= "!=") (identifier "iVar4")) () ")")) (; ";")) (expression_statement "*param_1 = iVar5;" (assignment_expression "*param_1 = iVar5" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar5")) (; ";")) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))

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

int __regparm3 function_1(int *pval,char *src,int var_6,int var_9)

{
  type_1 **pp_Var1;
  type_2 var_2;
  char *var_4;
  type_2 var_1;
  int var_7;
  int var_8;
  
  var_8 = 0;
  var_7 = 0;
  do {
    var_1 = (type_2)(type_3)src[var_7];
    if (0x7f < var_1) break;
    var_2 = var_1 - 0x30;
    if (9 < var_2) {
      var_4 = var_3("abcdefABCDEF",var_1);
      if (var_4 == (char *)0x0) break;
      pp_Var1 = var_5();
      var_2 = (*pp_Var1)[var_1] - 0x37;
    }
    if (var_6 <= (int)var_2) break;
    var_7 = var_7 + 1;
    var_8 = var_2 + var_8 * var_6;
  } while (var_9 != var_7);
  *pval = var_8;
  return var_7;
}


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

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

int __regparm3 MASKED(int *param_1,int param_2,int param_3,int param_4)

{
  __int32_t **pp_Var1;
  uint uVar2;
  char *pcVar3;
  uint __c;
  int iVar4;
  int iVar5;
  
  iVar5 = 0;
  iVar4 = 0;
  do {
    __c = (uint)*(byte *)(param_2 + iVar4);
    if (0x7f < __c) break;
    uVar2 = __c - 0x30;
    if (9 < uVar2) {
      pcVar3 = strchr("abcdefABCDEF",__c);
      if (pcVar3 == (char *)0x0) break;
      pp_Var1 = __ctype_toupper_loc();
      uVar2 = (*pp_Var1)[__c] - 0x37;
    }
    if (param_3 <= (int)uVar2) break;
    iVar4 = iVar4 + 1;
    iVar5 = uVar2 + iVar5 * param_3;
  } while (param_4 != iVar4);
  *param_1 = iVar5;
  return iVar4;
}

