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

ssize_t hexdecode(char **inptr,void *result)

{
  byte bVar1;
  bool bVar2;
  size_t sVar3;
  undefined1 *ptr;
  ushort **ppuVar4;
  ssize_t sVar5;
  uint uVar6;
  byte *pbVar7;
  byte *__s;
  uint uVar8;
  undefined1 *local_28;
  
  __s = (byte *)*inptr;
  sVar3 = strlen((char *)__s);
  ptr = (undefined1 *)app_malloc(sVar3 >> 1,"hexdecode");
  if (ptr == (undefined1 *)0x0) {
    sVar5 = -1;
  }
  else {
    bVar1 = *__s;
    if (bVar1 == 0) {
      sVar5 = 0;
    }
    else {
      ppuVar4 = __ctype_b_loc();
      uVar6 = (uint)bVar1;
      uVar8 = 0;
      bVar2 = false;
      local_28 = ptr;
      do {
        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {
LAB_00052eaa:
          bVar1 = pbVar7[1];
          uVar6 = (uint)bVar1;
          __s = pbVar7 + 1;
          if (bVar1 == 0) goto LAB_00052f00;
        }
        uVar6 = OPENSSL_hexchar2int(uVar6);
        if ((int)uVar6 < 0) goto LAB_00052f38;
        uVar6 = uVar8 | uVar6;
        if (!bVar2) {
          bVar2 = true;
          uVar8 = uVar6 << 4;
          goto LAB_00052eaa;
        }
        bVar2 = false;
        uVar8 = 0;
        *local_28 = (char)uVar6;
        bVar1 = pbVar7[1];
        uVar6 = (uint)bVar1;
        local_28 = local_28 + 1;
        __s = pbVar7 + 1;
      } while (bVar1 != 0);
LAB_00052f00:
      __s = pbVar7 + 1;
      if (bVar2) {
LAB_00052f38:
        CRYPTO_free(ptr);
        return 0;
      }
      sVar5 = (int)local_28 - (int)ptr;
    }
    *inptr = (char *)__s;
    *(undefined1 **)result = ptr;
  }
  return sVar5;
}



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

int FUN_00052e30(undefined4 *param_1,undefined4 *param_2)

{
  byte bVar1;
  bool bVar2;
  size_t sVar3;
  undefined1 *ptr;
  ushort **ppuVar4;
  int iVar5;
  uint uVar6;
  byte *pbVar7;
  byte *__s;
  uint uVar8;
  undefined1 *local_28;
  
  __s = (byte *)*param_1;
  sVar3 = strlen((char *)__s);
  ptr = (undefined1 *)FUN_00073440(sVar3 >> 1,"hexdecode");
  if (ptr == (undefined1 *)0x0) {
    iVar5 = -1;
  }
  else {
    bVar1 = *__s;
    if (bVar1 == 0) {
      iVar5 = 0;
    }
    else {
      ppuVar4 = __ctype_b_loc();
      uVar6 = (uint)bVar1;
      uVar8 = 0;
      bVar2 = false;
      local_28 = ptr;
      do {
        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {
LAB_00052eaa:
          bVar1 = pbVar7[1];
          uVar6 = (uint)bVar1;
          __s = pbVar7 + 1;
          if (bVar1 == 0) goto LAB_00052f00;
        }
        uVar6 = OPENSSL_hexchar2int(uVar6);
        if ((int)uVar6 < 0) goto LAB_00052f38;
        uVar6 = uVar8 | uVar6;
        if (!bVar2) {
          bVar2 = true;
          uVar8 = uVar6 << 4;
          goto LAB_00052eaa;
        }
        bVar2 = false;
        uVar8 = 0;
        *local_28 = (char)uVar6;
        bVar1 = pbVar7[1];
        uVar6 = (uint)bVar1;
        local_28 = local_28 + 1;
        __s = pbVar7 + 1;
      } while (bVar1 != 0);
LAB_00052f00:
      __s = pbVar7 + 1;
      if (bVar2) {
LAB_00052f38:
        CRYPTO_free(ptr);
        return 0;
      }
      iVar5 = (int)local_28 - (int)ptr;
    }
    *param_1 = __s;
    *param_2 = ptr;
  }
  return iVar5;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0002c7d0
ADD EBX,0x69c3f
SUB ESP,0x28
MOV EAX,dword ptr [ESP + 0x3c]
MOV EBP,dword ptr [EAX]
PUSH EBP
CALL 0x000296b0
POP EDX
LEA EDX,[EBX + 0xfffcc1c9]
POP ECX
SHR EAX,0x1
PUSH EDX
PUSH EAX
CALL 0x00073440
MOV dword ptr [ESP + 0x18],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00052f66
MOVZX EDX,byte ptr [EBP]
TEST DL,DL
MOV byte ptr [ESP + 0xf],DL
JZ 0x00052f62
MOV ESI,EAX
CALL 0x00029080
MOV dword ptr [ESP + 0x4],ESI
MOVZX EDX,byte ptr [ESP + 0xf]
XOR ESI,ESI
MOV EDI,EAX
MOV dword ptr [ESP],0x0
JMP 0x00052eb5
MOV dword ptr [ESP],0x1
SHL ESI,0x4
ADD EBP,0x1
MOVZX EDX,byte ptr [EBP]
TEST DL,DL
JZ 0x00052f00
MOV EAX,dword ptr [EDI]
TEST byte ptr [EAX + EDX*0x2 + 0x1],0x20
JNZ 0x00052eaa
SUB ESP,0xc
PUSH EDX
CALL 0x0002b1c0
ADD ESP,0x10
TEST EAX,EAX
JS 0x00052f30
OR ESI,EAX
CMP dword ptr [ESP],0x1
JNZ 0x00052ea0
MOV ECX,dword ptr [ESP + 0x4]
MOV EAX,ESI
ADD EBP,0x1
MOV dword ptr [ESP],0x0
XOR ESI,ESI
MOV byte ptr [ECX],AL
MOVZX EDX,byte ptr [EBP]
LEA EAX,[ECX + 0x1]
MOV dword ptr [ESP + 0x4],EAX
TEST DL,DL
JNZ 0x00052eb5
LEA ESI,[ESI]
MOV EAX,dword ptr [ESP]
TEST EAX,EAX
JNZ 0x00052f58
MOV EAX,dword ptr [ESP + 0x4]
SUB EAX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [ESP + 0x30]
MOV EDX,dword ptr [ESP + 0x34]
MOV dword ptr [ECX],EBP
MOV ECX,dword ptr [ESP + 0x8]
MOV dword ptr [EDX],ECX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH 0x1c3
LEA EAX,[EBX + 0xfffcc13a]
PUSH EAX
PUSH dword ptr [ESP + 0x14]
CALL 0x00028c20
ADD ESP,0x10
XOR EAX,EAX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH 0x1cf
JMP 0x00052f38
XOR EAX,EAX
JMP 0x00052f0f
MOV EAX,0xffffffff
JMP 0x00052f1f
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00052e30(undefined4 *param_1,undefined4 *param_2)\n\n{\n  byte bVar1;\n  bool bVar2;\n  size_t sVar3;\n  undefined1 *ptr;\n  ushort **ppuVar4;\n  int iVar5;\n  uint uVar6;\n  byte *pbVar7;\n  byte *__s;\n  uint uVar8;\n  undefined1 *local_28;\n  \n  __s = (byte *)*param_1;\n  sVar3 = strlen((char *)__s);\n  ptr = (undefined1 *)FUN_00073440(sVar3 >> 1,"hexdecode");\n  if (ptr == (undefined1 *)0x0) {\n    iVar5 = -1;\n  }\n  else {\n    bVar1 = *__s;\n    if (bVar1 == 0) {\n      iVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }\n    *param_1 = __s;\n    *param_2 = ptr;\n  }\n  return iVar5;\n}\n\n" comment (function_definition "int FUN_00052e30(undefined4 *param_1,undefined4 *param_2)\n\n{\n  byte bVar1;\n  bool bVar2;\n  size_t sVar3;\n  undefined1 *ptr;\n  ushort **ppuVar4;\n  int iVar5;\n  uint uVar6;\n  byte *pbVar7;\n  byte *__s;\n  uint uVar8;\n  undefined1 *local_28;\n  \n  __s = (byte *)*param_1;\n  sVar3 = strlen((char *)__s);\n  ptr = (undefined1 *)FUN_00073440(sVar3 >> 1,"hexdecode");\n  if (ptr == (undefined1 *)0x0) {\n    iVar5 = -1;\n  }\n  else {\n    bVar1 = *__s;\n    if (bVar1 == 0) {\n      iVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }\n    *param_1 = __s;\n    *param_2 = ptr;\n  }\n  return iVar5;\n}" primitive_type (function_declarator "FUN_00052e30(undefined4 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  bool bVar2;\n  size_t sVar3;\n  undefined1 *ptr;\n  ushort **ppuVar4;\n  int iVar5;\n  uint uVar6;\n  byte *pbVar7;\n  byte *__s;\n  uint uVar8;\n  undefined1 *local_28;\n  \n  __s = (byte *)*param_1;\n  sVar3 = strlen((char *)__s);\n  ptr = (undefined1 *)FUN_00073440(sVar3 >> 1,"hexdecode");\n  if (ptr == (undefined1 *)0x0) {\n    iVar5 = -1;\n  }\n  else {\n    bVar1 = *__s;\n    if (bVar1 == 0) {\n      iVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }\n    *param_1 = __s;\n    *param_2 = ptr;\n  }\n  return iVar5;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "undefined1 *ptr;" type_identifier (pointer_declarator "*ptr" * identifier) ;) (declaration "ushort **ppuVar4;" type_identifier (pointer_declarator "**ppuVar4" * (pointer_declarator "*ppuVar4" * identifier)) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "byte *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined1 *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (expression_statement "__s = (byte *)*param_1;" (assignment_expression "__s = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "sVar3 = strlen((char *)__s);" (assignment_expression "sVar3 = strlen((char *)__s)" identifier = (call_expression "strlen((char *)__s)" identifier (argument_list "((char *)__s)" ( (cast_expression "(char *)__s" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "ptr = (undefined1 *)FUN_00073440(sVar3 >> 1,"hexdecode");" (assignment_expression "ptr = (undefined1 *)FUN_00073440(sVar3 >> 1,"hexdecode")" identifier = (cast_expression "(undefined1 *)FUN_00073440(sVar3 >> 1,"hexdecode")" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00073440(sVar3 >> 1,"hexdecode")" identifier (argument_list "(sVar3 >> 1,"hexdecode")" ( (binary_expression "sVar3 >> 1" identifier >> number_literal) , (string_literal ""hexdecode"" " string_content ") ))))) ;) (if_statement "if (ptr == (undefined1 *)0x0) {\n    iVar5 = -1;\n  }\n  else {\n    bVar1 = *__s;\n    if (bVar1 == 0) {\n      iVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }\n    *param_1 = __s;\n    *param_2 = ptr;\n  }" if (parenthesized_expression "(ptr == (undefined1 *)0x0)" ( (binary_expression "ptr == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar5 = -1;\n  }" { (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    bVar1 = *__s;\n    if (bVar1 == 0) {\n      iVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }\n    *param_1 = __s;\n    *param_2 = ptr;\n  }" else (compound_statement "{\n    bVar1 = *__s;\n    if (bVar1 == 0) {\n      iVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }\n    *param_1 = __s;\n    *param_2 = ptr;\n  }" { (expression_statement "bVar1 = *__s;" (assignment_expression "bVar1 = *__s" identifier = (pointer_expression "*__s" * identifier)) ;) (if_statement "if (bVar1 == 0) {\n      iVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar5 = 0;\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }" else (compound_statement "{\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }" { (expression_statement "ppuVar4 = __ctype_b_loc();" (assignment_expression "ppuVar4 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar6 = (uint)bVar1;" (assignment_expression "uVar6 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "local_28 = ptr;" (assignment_expression "local_28 = ptr" identifier = identifier) ;) (do_statement "do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);" do (compound_statement "{\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      }" { (while_statement "while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }" while (parenthesized_expression "(pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0)" ( (comma_expression "pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0" (assignment_expression "pbVar7 = __s" identifier = identifier) , (binary_expression "(*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0" (parenthesized_expression "(*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20)" ( (binary_expression "*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20" (pointer_expression "*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1)" * (cast_expression "(byte *)((int)*ppuVar4 + uVar6 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*ppuVar4 + uVar6 * 2 + 1)" ( (binary_expression "(int)*ppuVar4 + uVar6 * 2 + 1" (binary_expression "(int)*ppuVar4 + uVar6 * 2" (cast_expression "(int)*ppuVar4" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*ppuVar4" * identifier)) + (binary_expression "uVar6 * 2" identifier * number_literal)) + number_literal) )))) & number_literal) )) != number_literal)) )) (compound_statement "{\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }" { (labeled_statement "LAB_00052eaa:\n          bVar1 = pbVar7[1];" statement_identifier : (expression_statement "bVar1 = pbVar7[1];" (assignment_expression "bVar1 = pbVar7[1]" identifier = (subscript_expression "pbVar7[1]" identifier [ number_literal ])) ;)) (expression_statement "uVar6 = (uint)bVar1;" (assignment_expression "uVar6 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "__s = pbVar7 + 1;" (assignment_expression "__s = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (if_statement "if (bVar1 == 0) goto LAB_00052f00;" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00052f00;" goto statement_identifier ;)) })) (expression_statement "uVar6 = OPENSSL_hexchar2int(uVar6);" (assignment_expression "uVar6 = OPENSSL_hexchar2int(uVar6)" identifier = (call_expression "OPENSSL_hexchar2int(uVar6)" identifier (argument_list "(uVar6)" ( identifier )))) ;) (if_statement "if ((int)uVar6 < 0) goto LAB_00052f38;" if (parenthesized_expression "((int)uVar6 < 0)" ( (binary_expression "(int)uVar6 < 0" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_00052f38;" goto statement_identifier ;)) (expression_statement "uVar6 = uVar8 | uVar6;" (assignment_expression "uVar6 = uVar8 | uVar6" identifier = (binary_expression "uVar8 | uVar6" identifier | identifier)) ;) (if_statement "if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }" if (parenthesized_expression "(!bVar2)" ( (unary_expression "!bVar2" ! identifier) )) (compound_statement "{\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }" { (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (expression_statement "uVar8 = uVar6 << 4;" (assignment_expression "uVar8 = uVar6 << 4" identifier = (binary_expression "uVar6 << 4" identifier << number_literal)) ;) (goto_statement "goto LAB_00052eaa;" goto statement_identifier ;) })) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "*local_28 = (char)uVar6;" (assignment_expression "*local_28 = (char)uVar6" (pointer_expression "*local_28" * identifier) = (cast_expression "(char)uVar6" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "bVar1 = pbVar7[1];" (assignment_expression "bVar1 = pbVar7[1]" identifier = (subscript_expression "pbVar7[1]" identifier [ number_literal ])) ;) (expression_statement "uVar6 = (uint)bVar1;" (assignment_expression "uVar6 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "local_28 = local_28 + 1;" (assignment_expression "local_28 = local_28 + 1" identifier = (binary_expression "local_28 + 1" identifier + number_literal)) ;) (expression_statement "__s = pbVar7 + 1;" (assignment_expression "__s = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) ;) (labeled_statement "LAB_00052f00:\n      __s = pbVar7 + 1;" statement_identifier : (expression_statement "__s = pbVar7 + 1;" (assignment_expression "__s = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;)) (if_statement "if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }" { (labeled_statement "LAB_00052f38:\n        CRYPTO_free(ptr);" statement_identifier : (expression_statement "CRYPTO_free(ptr);" (call_expression "CRYPTO_free(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;)) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar5 = (int)local_28 - (int)ptr;" (assignment_expression "iVar5 = (int)local_28 - (int)ptr" identifier = (binary_expression "(int)local_28 - (int)ptr" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)ptr" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }))) (expression_statement "*param_1 = __s;" (assignment_expression "*param_1 = __s" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*param_2 = ptr;" (assignment_expression "*param_2 = ptr" (pointer_expression "*param_2" * identifier) = identifier) ;) }))) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nssize_t hexdecode(char **inptr,void *result)\n\n{\n  byte bVar1;\n  bool bVar2;\n  size_t sVar3;\n  undefined1 *ptr;\n  ushort **ppuVar4;\n  ssize_t sVar5;\n  uint uVar6;\n  byte *pbVar7;\n  byte *__s;\n  uint uVar8;\n  undefined1 *local_28;\n  \n  __s = (byte *)*inptr;\n  sVar3 = strlen((char *)__s);\n  ptr = (undefined1 *)app_malloc(sVar3 >> 1,"hexdecode");\n  if (ptr == (undefined1 *)0x0) {\n    sVar5 = -1;\n  }\n  else {\n    bVar1 = *__s;\n    if (bVar1 == 0) {\n      sVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      sVar5 = (int)local_28 - (int)ptr;\n    }\n    *inptr = (char *)__s;\n    *(undefined1 **)result = ptr;\n  }\n  return sVar5;\n}\n\n" comment comment (function_definition "ssize_t hexdecode(char **inptr,void *result)\n\n{\n  byte bVar1;\n  bool bVar2;\n  size_t sVar3;\n  undefined1 *ptr;\n  ushort **ppuVar4;\n  ssize_t sVar5;\n  uint uVar6;\n  byte *pbVar7;\n  byte *__s;\n  uint uVar8;\n  undefined1 *local_28;\n  \n  __s = (byte *)*inptr;\n  sVar3 = strlen((char *)__s);\n  ptr = (undefined1 *)app_malloc(sVar3 >> 1,"hexdecode");\n  if (ptr == (undefined1 *)0x0) {\n    sVar5 = -1;\n  }\n  else {\n    bVar1 = *__s;\n    if (bVar1 == 0) {\n      sVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      sVar5 = (int)local_28 - (int)ptr;\n    }\n    *inptr = (char *)__s;\n    *(undefined1 **)result = ptr;\n  }\n  return sVar5;\n}" primitive_type (function_declarator "hexdecode(char **inptr,void *result)" identifier (parameter_list "(char **inptr,void *result)" ( (parameter_declaration "char **inptr" primitive_type (pointer_declarator "**inptr" * (pointer_declarator "*inptr" * identifier))) , (parameter_declaration "void *result" primitive_type (pointer_declarator "*result" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  bool bVar2;\n  size_t sVar3;\n  undefined1 *ptr;\n  ushort **ppuVar4;\n  ssize_t sVar5;\n  uint uVar6;\n  byte *pbVar7;\n  byte *__s;\n  uint uVar8;\n  undefined1 *local_28;\n  \n  __s = (byte *)*inptr;\n  sVar3 = strlen((char *)__s);\n  ptr = (undefined1 *)app_malloc(sVar3 >> 1,"hexdecode");\n  if (ptr == (undefined1 *)0x0) {\n    sVar5 = -1;\n  }\n  else {\n    bVar1 = *__s;\n    if (bVar1 == 0) {\n      sVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      sVar5 = (int)local_28 - (int)ptr;\n    }\n    *inptr = (char *)__s;\n    *(undefined1 **)result = ptr;\n  }\n  return sVar5;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "undefined1 *ptr;" type_identifier (pointer_declarator "*ptr" * identifier) ;) (declaration "ushort **ppuVar4;" type_identifier (pointer_declarator "**ppuVar4" * (pointer_declarator "*ppuVar4" * identifier)) ;) (declaration "ssize_t sVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "byte *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined1 *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (expression_statement "__s = (byte *)*inptr;" (assignment_expression "__s = (byte *)*inptr" identifier = (cast_expression "(byte *)*inptr" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*inptr" * identifier))) ;) (expression_statement "sVar3 = strlen((char *)__s);" (assignment_expression "sVar3 = strlen((char *)__s)" identifier = (call_expression "strlen((char *)__s)" identifier (argument_list "((char *)__s)" ( (cast_expression "(char *)__s" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "ptr = (undefined1 *)app_malloc(sVar3 >> 1,"hexdecode");" (assignment_expression "ptr = (undefined1 *)app_malloc(sVar3 >> 1,"hexdecode")" identifier = (cast_expression "(undefined1 *)app_malloc(sVar3 >> 1,"hexdecode")" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "app_malloc(sVar3 >> 1,"hexdecode")" identifier (argument_list "(sVar3 >> 1,"hexdecode")" ( (binary_expression "sVar3 >> 1" identifier >> number_literal) , (string_literal ""hexdecode"" " string_content ") ))))) ;) (if_statement "if (ptr == (undefined1 *)0x0) {\n    sVar5 = -1;\n  }\n  else {\n    bVar1 = *__s;\n    if (bVar1 == 0) {\n      sVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      sVar5 = (int)local_28 - (int)ptr;\n    }\n    *inptr = (char *)__s;\n    *(undefined1 **)result = ptr;\n  }" if (parenthesized_expression "(ptr == (undefined1 *)0x0)" ( (binary_expression "ptr == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar5 = -1;\n  }" { (expression_statement "sVar5 = -1;" (assignment_expression "sVar5 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    bVar1 = *__s;\n    if (bVar1 == 0) {\n      sVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      sVar5 = (int)local_28 - (int)ptr;\n    }\n    *inptr = (char *)__s;\n    *(undefined1 **)result = ptr;\n  }" else (compound_statement "{\n    bVar1 = *__s;\n    if (bVar1 == 0) {\n      sVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      sVar5 = (int)local_28 - (int)ptr;\n    }\n    *inptr = (char *)__s;\n    *(undefined1 **)result = ptr;\n  }" { (expression_statement "bVar1 = *__s;" (assignment_expression "bVar1 = *__s" identifier = (pointer_expression "*__s" * identifier)) ;) (if_statement "if (bVar1 == 0) {\n      sVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      sVar5 = (int)local_28 - (int)ptr;\n    }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      sVar5 = 0;\n    }" { (expression_statement "sVar5 = 0;" (assignment_expression "sVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      sVar5 = (int)local_28 - (int)ptr;\n    }" else (compound_statement "{\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      sVar5 = (int)local_28 - (int)ptr;\n    }" { (expression_statement "ppuVar4 = __ctype_b_loc();" (assignment_expression "ppuVar4 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar6 = (uint)bVar1;" (assignment_expression "uVar6 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "local_28 = ptr;" (assignment_expression "local_28 = ptr" identifier = identifier) ;) (do_statement "do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);" do (compound_statement "{\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      }" { (while_statement "while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }" while (parenthesized_expression "(pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0)" ( (comma_expression "pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0" (assignment_expression "pbVar7 = __s" identifier = identifier) , (binary_expression "(*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0" (parenthesized_expression "(*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20)" ( (binary_expression "*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20" (pointer_expression "*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1)" * (cast_expression "(byte *)((int)*ppuVar4 + uVar6 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*ppuVar4 + uVar6 * 2 + 1)" ( (binary_expression "(int)*ppuVar4 + uVar6 * 2 + 1" (binary_expression "(int)*ppuVar4 + uVar6 * 2" (cast_expression "(int)*ppuVar4" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*ppuVar4" * identifier)) + (binary_expression "uVar6 * 2" identifier * number_literal)) + number_literal) )))) & number_literal) )) != number_literal)) )) (compound_statement "{\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }" { (labeled_statement "LAB_00052eaa:\n          bVar1 = pbVar7[1];" statement_identifier : (expression_statement "bVar1 = pbVar7[1];" (assignment_expression "bVar1 = pbVar7[1]" identifier = (subscript_expression "pbVar7[1]" identifier [ number_literal ])) ;)) (expression_statement "uVar6 = (uint)bVar1;" (assignment_expression "uVar6 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "__s = pbVar7 + 1;" (assignment_expression "__s = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (if_statement "if (bVar1 == 0) goto LAB_00052f00;" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00052f00;" goto statement_identifier ;)) })) (expression_statement "uVar6 = OPENSSL_hexchar2int(uVar6);" (assignment_expression "uVar6 = OPENSSL_hexchar2int(uVar6)" identifier = (call_expression "OPENSSL_hexchar2int(uVar6)" identifier (argument_list "(uVar6)" ( identifier )))) ;) (if_statement "if ((int)uVar6 < 0) goto LAB_00052f38;" if (parenthesized_expression "((int)uVar6 < 0)" ( (binary_expression "(int)uVar6 < 0" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_00052f38;" goto statement_identifier ;)) (expression_statement "uVar6 = uVar8 | uVar6;" (assignment_expression "uVar6 = uVar8 | uVar6" identifier = (binary_expression "uVar8 | uVar6" identifier | identifier)) ;) (if_statement "if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }" if (parenthesized_expression "(!bVar2)" ( (unary_expression "!bVar2" ! identifier) )) (compound_statement "{\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }" { (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (expression_statement "uVar8 = uVar6 << 4;" (assignment_expression "uVar8 = uVar6 << 4" identifier = (binary_expression "uVar6 << 4" identifier << number_literal)) ;) (goto_statement "goto LAB_00052eaa;" goto statement_identifier ;) })) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "*local_28 = (char)uVar6;" (assignment_expression "*local_28 = (char)uVar6" (pointer_expression "*local_28" * identifier) = (cast_expression "(char)uVar6" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "bVar1 = pbVar7[1];" (assignment_expression "bVar1 = pbVar7[1]" identifier = (subscript_expression "pbVar7[1]" identifier [ number_literal ])) ;) (expression_statement "uVar6 = (uint)bVar1;" (assignment_expression "uVar6 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "local_28 = local_28 + 1;" (assignment_expression "local_28 = local_28 + 1" identifier = (binary_expression "local_28 + 1" identifier + number_literal)) ;) (expression_statement "__s = pbVar7 + 1;" (assignment_expression "__s = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) ;) (labeled_statement "LAB_00052f00:\n      __s = pbVar7 + 1;" statement_identifier : (expression_statement "__s = pbVar7 + 1;" (assignment_expression "__s = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;)) (if_statement "if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }" { (labeled_statement "LAB_00052f38:\n        CRYPTO_free(ptr);" statement_identifier : (expression_statement "CRYPTO_free(ptr);" (call_expression "CRYPTO_free(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;)) (return_statement "return 0;" return number_literal ;) })) (expression_statement "sVar5 = (int)local_28 - (int)ptr;" (assignment_expression "sVar5 = (int)local_28 - (int)ptr" identifier = (binary_expression "(int)local_28 - (int)ptr" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)ptr" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }))) (expression_statement "*inptr = (char *)__s;" (assignment_expression "*inptr = (char *)__s" (pointer_expression "*inptr" * identifier) = (cast_expression "(char *)__s" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "*(undefined1 **)result = ptr;" (assignment_expression "*(undefined1 **)result = ptr" (pointer_expression "*(undefined1 **)result" * (cast_expression "(undefined1 **)result" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) }))) (return_statement "return sVar5;" return identifier ;) })))
(translation_unit "int FUN_00052e30(undefined4 *param_1,undefined4 *param_2)\n\n{\n  byte bVar1;\n  bool bVar2;\n  size_t sVar3;\n  undefined1 *ptr;\n  ushort **ppuVar4;\n  int iVar5;\n  uint uVar6;\n  byte *pbVar7;\n  byte *__s;\n  uint uVar8;\n  undefined1 *local_28;\n  \n  __s = (byte *)*param_1;\n  sVar3 = strlen((char *)__s);\n  ptr = (undefined1 *)FUN_00073440(sVar3 >> 1,"hexdecode");\n  if (ptr == (undefined1 *)0x0) {\n    iVar5 = -1;\n  }\n  else {\n    bVar1 = *__s;\n    if (bVar1 == 0) {\n      iVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }\n    *param_1 = __s;\n    *param_2 = ptr;\n  }\n  return iVar5;\n}\n\n" (function_definition "int FUN_00052e30(undefined4 *param_1,undefined4 *param_2)\n\n{\n  byte bVar1;\n  bool bVar2;\n  size_t sVar3;\n  undefined1 *ptr;\n  ushort **ppuVar4;\n  int iVar5;\n  uint uVar6;\n  byte *pbVar7;\n  byte *__s;\n  uint uVar8;\n  undefined1 *local_28;\n  \n  __s = (byte *)*param_1;\n  sVar3 = strlen((char *)__s);\n  ptr = (undefined1 *)FUN_00073440(sVar3 >> 1,"hexdecode");\n  if (ptr == (undefined1 *)0x0) {\n    iVar5 = -1;\n  }\n  else {\n    bVar1 = *__s;\n    if (bVar1 == 0) {\n      iVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }\n    *param_1 = __s;\n    *param_2 = ptr;\n  }\n  return iVar5;\n}" primitive_type (function_declarator "FUN_00052e30(undefined4 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  bool bVar2;\n  size_t sVar3;\n  undefined1 *ptr;\n  ushort **ppuVar4;\n  int iVar5;\n  uint uVar6;\n  byte *pbVar7;\n  byte *__s;\n  uint uVar8;\n  undefined1 *local_28;\n  \n  __s = (byte *)*param_1;\n  sVar3 = strlen((char *)__s);\n  ptr = (undefined1 *)FUN_00073440(sVar3 >> 1,"hexdecode");\n  if (ptr == (undefined1 *)0x0) {\n    iVar5 = -1;\n  }\n  else {\n    bVar1 = *__s;\n    if (bVar1 == 0) {\n      iVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }\n    *param_1 = __s;\n    *param_2 = ptr;\n  }\n  return iVar5;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "undefined1 *ptr;" type_identifier (pointer_declarator "*ptr" * identifier) ;) (declaration "ushort **ppuVar4;" type_identifier (pointer_declarator "**ppuVar4" * (pointer_declarator "*ppuVar4" * identifier)) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "byte *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined1 *local_28;" type_identifier (pointer_declarator "*local_28" * identifier) ;) (expression_statement "__s = (byte *)*param_1;" (assignment_expression "__s = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "sVar3 = strlen((char *)__s);" (assignment_expression "sVar3 = strlen((char *)__s)" identifier = (call_expression "strlen((char *)__s)" identifier (argument_list "((char *)__s)" ( (cast_expression "(char *)__s" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "ptr = (undefined1 *)FUN_00073440(sVar3 >> 1,"hexdecode");" (assignment_expression "ptr = (undefined1 *)FUN_00073440(sVar3 >> 1,"hexdecode")" identifier = (cast_expression "(undefined1 *)FUN_00073440(sVar3 >> 1,"hexdecode")" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00073440(sVar3 >> 1,"hexdecode")" identifier (argument_list "(sVar3 >> 1,"hexdecode")" ( (binary_expression "sVar3 >> 1" identifier >> number_literal) , (string_literal ""hexdecode"" " string_content ") ))))) ;) (if_statement "if (ptr == (undefined1 *)0x0) {\n    iVar5 = -1;\n  }\n  else {\n    bVar1 = *__s;\n    if (bVar1 == 0) {\n      iVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }\n    *param_1 = __s;\n    *param_2 = ptr;\n  }" if (parenthesized_expression "(ptr == (undefined1 *)0x0)" ( (binary_expression "ptr == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar5 = -1;\n  }" { (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    bVar1 = *__s;\n    if (bVar1 == 0) {\n      iVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }\n    *param_1 = __s;\n    *param_2 = ptr;\n  }" else (compound_statement "{\n    bVar1 = *__s;\n    if (bVar1 == 0) {\n      iVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }\n    *param_1 = __s;\n    *param_2 = ptr;\n  }" { (expression_statement "bVar1 = *__s;" (assignment_expression "bVar1 = *__s" identifier = (pointer_expression "*__s" * identifier)) ;) (if_statement "if (bVar1 == 0) {\n      iVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar5 = 0;\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }" else (compound_statement "{\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }" { (expression_statement "ppuVar4 = __ctype_b_loc();" (assignment_expression "ppuVar4 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar6 = (uint)bVar1;" (assignment_expression "uVar6 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "local_28 = ptr;" (assignment_expression "local_28 = ptr" identifier = identifier) ;) (do_statement "do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);" do (compound_statement "{\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      }" { (while_statement "while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }" while (parenthesized_expression "(pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0)" ( (comma_expression "pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0" (assignment_expression "pbVar7 = __s" identifier = identifier) , (binary_expression "(*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0" (parenthesized_expression "(*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20)" ( (binary_expression "*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20" (pointer_expression "*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1)" * (cast_expression "(byte *)((int)*ppuVar4 + uVar6 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*ppuVar4 + uVar6 * 2 + 1)" ( (binary_expression "(int)*ppuVar4 + uVar6 * 2 + 1" (binary_expression "(int)*ppuVar4 + uVar6 * 2" (cast_expression "(int)*ppuVar4" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*ppuVar4" * identifier)) + (binary_expression "uVar6 * 2" identifier * number_literal)) + number_literal) )))) & number_literal) )) != number_literal)) )) (compound_statement "{\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }" { (labeled_statement "LAB_00052eaa:\n          bVar1 = pbVar7[1];" statement_identifier : (expression_statement "bVar1 = pbVar7[1];" (assignment_expression "bVar1 = pbVar7[1]" identifier = (subscript_expression "pbVar7[1]" identifier [ number_literal ])) ;)) (expression_statement "uVar6 = (uint)bVar1;" (assignment_expression "uVar6 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "__s = pbVar7 + 1;" (assignment_expression "__s = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (if_statement "if (bVar1 == 0) goto LAB_00052f00;" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00052f00;" goto statement_identifier ;)) })) (expression_statement "uVar6 = OPENSSL_hexchar2int(uVar6);" (assignment_expression "uVar6 = OPENSSL_hexchar2int(uVar6)" identifier = (call_expression "OPENSSL_hexchar2int(uVar6)" identifier (argument_list "(uVar6)" ( identifier )))) ;) (if_statement "if ((int)uVar6 < 0) goto LAB_00052f38;" if (parenthesized_expression "((int)uVar6 < 0)" ( (binary_expression "(int)uVar6 < 0" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_00052f38;" goto statement_identifier ;)) (expression_statement "uVar6 = uVar8 | uVar6;" (assignment_expression "uVar6 = uVar8 | uVar6" identifier = (binary_expression "uVar8 | uVar6" identifier | identifier)) ;) (if_statement "if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }" if (parenthesized_expression "(!bVar2)" ( (unary_expression "!bVar2" ! identifier) )) (compound_statement "{\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }" { (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (expression_statement "uVar8 = uVar6 << 4;" (assignment_expression "uVar8 = uVar6 << 4" identifier = (binary_expression "uVar6 << 4" identifier << number_literal)) ;) (goto_statement "goto LAB_00052eaa;" goto statement_identifier ;) })) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "*local_28 = (char)uVar6;" (assignment_expression "*local_28 = (char)uVar6" (pointer_expression "*local_28" * identifier) = (cast_expression "(char)uVar6" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "bVar1 = pbVar7[1];" (assignment_expression "bVar1 = pbVar7[1]" identifier = (subscript_expression "pbVar7[1]" identifier [ number_literal ])) ;) (expression_statement "uVar6 = (uint)bVar1;" (assignment_expression "uVar6 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "local_28 = local_28 + 1;" (assignment_expression "local_28 = local_28 + 1" identifier = (binary_expression "local_28 + 1" identifier + number_literal)) ;) (expression_statement "__s = pbVar7 + 1;" (assignment_expression "__s = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) ;) (labeled_statement "LAB_00052f00:\n      __s = pbVar7 + 1;" statement_identifier : (expression_statement "__s = pbVar7 + 1;" (assignment_expression "__s = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;)) (if_statement "if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }" { (labeled_statement "LAB_00052f38:\n        CRYPTO_free(ptr);" statement_identifier : (expression_statement "CRYPTO_free(ptr);" (call_expression "CRYPTO_free(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;)) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar5 = (int)local_28 - (int)ptr;" (assignment_expression "iVar5 = (int)local_28 - (int)ptr" identifier = (binary_expression "(int)local_28 - (int)ptr" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)ptr" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }))) (expression_statement "*param_1 = __s;" (assignment_expression "*param_1 = __s" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*param_2 = ptr;" (assignment_expression "*param_2 = ptr" (pointer_expression "*param_2" * identifier) = identifier) ;) }))) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT >> LIT) , (string_literal " string_content ") ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (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 IDENT * LIT)) + LIT) )))) & LIT) )) != LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | IDENT)) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_00052e30(undefined4 *param_1,undefined4 *param_2)\n\n{\n  byte bVar1;\n  bool bVar2;\n  size_t sVar3;\n  undefined1 *ptr;\n  ushort **ppuVar4;\n  int iVar5;\n  uint uVar6;\n  byte *pbVar7;\n  byte *__s;\n  uint uVar8;\n  undefined1 *local_28;\n  \n  __s = (byte *)*param_1;\n  sVar3 = strlen((char *)__s);\n  ptr = (undefined1 *)FUN_00073440(sVar3 >> 1,"hexdecode");\n  if (ptr == (undefined1 *)0x0) {\n    iVar5 = -1;\n  }\n  else {\n    bVar1 = *__s;\n    if (bVar1 == 0) {\n      iVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }\n    *param_1 = __s;\n    *param_2 = ptr;\n  }\n  return iVar5;\n}" (primitive_type "int") (function_declarator "FUN_00052e30(undefined4 *param_1,undefined4 *param_2)" (identifier "FUN_00052e30") (parameter_list "(undefined4 *param_1,undefined4 *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  bool bVar2;\n  size_t sVar3;\n  undefined1 *ptr;\n  ushort **ppuVar4;\n  int iVar5;\n  uint uVar6;\n  byte *pbVar7;\n  byte *__s;\n  uint uVar8;\n  undefined1 *local_28;\n  \n  __s = (byte *)*param_1;\n  sVar3 = strlen((char *)__s);\n  ptr = (undefined1 *)FUN_00073440(sVar3 >> 1,"hexdecode");\n  if (ptr == (undefined1 *)0x0) {\n    iVar5 = -1;\n  }\n  else {\n    bVar1 = *__s;\n    if (bVar1 == 0) {\n      iVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }\n    *param_1 = __s;\n    *param_2 = ptr;\n  }\n  return iVar5;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "bool bVar2;" (primitive_type "bool") (identifier "bVar2") (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "undefined1 *ptr;" (type_identifier "undefined1") (pointer_declarator "*ptr" (* "*") (identifier "ptr")) (; ";")) (declaration "ushort **ppuVar4;" (type_identifier "ushort") (pointer_declarator "**ppuVar4" (* "*") (pointer_declarator "*ppuVar4" (* "*") (identifier "ppuVar4"))) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "byte *pbVar7;" (type_identifier "byte") (pointer_declarator "*pbVar7" (* "*") (identifier "pbVar7")) (; ";")) (declaration "byte *__s;" (type_identifier "byte") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "undefined1 *local_28;" (type_identifier "undefined1") (pointer_declarator "*local_28" (* "*") (identifier "local_28")) (; ";")) (expression_statement "__s = (byte *)*param_1;" (assignment_expression "__s = (byte *)*param_1" (identifier "__s") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "sVar3 = strlen((char *)__s);" (assignment_expression "sVar3 = strlen((char *)__s)" (identifier "sVar3") (= "=") (call_expression "strlen((char *)__s)" (identifier "strlen") (argument_list "((char *)__s)" (( "(") (cast_expression "(char *)__s" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "__s")) () ")")))) (; ";")) (expression_statement "ptr = (undefined1 *)FUN_00073440(sVar3 >> 1,"hexdecode");" (assignment_expression "ptr = (undefined1 *)FUN_00073440(sVar3 >> 1,"hexdecode")" (identifier "ptr") (= "=") (cast_expression "(undefined1 *)FUN_00073440(sVar3 >> 1,"hexdecode")" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00073440(sVar3 >> 1,"hexdecode")" (identifier "FUN_00073440") (argument_list "(sVar3 >> 1,"hexdecode")" (( "(") (binary_expression "sVar3 >> 1" (identifier "sVar3") (>> ">>") (number_literal "1")) (, ",") (string_literal ""hexdecode"" (" """) (string_content "hexdecode") (" """)) () ")"))))) (; ";")) (if_statement "if (ptr == (undefined1 *)0x0) {\n    iVar5 = -1;\n  }\n  else {\n    bVar1 = *__s;\n    if (bVar1 == 0) {\n      iVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }\n    *param_1 = __s;\n    *param_2 = ptr;\n  }" (if "if") (parenthesized_expression "(ptr == (undefined1 *)0x0)" (( "(") (binary_expression "ptr == (undefined1 *)0x0" (identifier "ptr") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar5 = -1;\n  }" ({ "{") (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" (identifier "iVar5") (= "=") (number_literal "-1")) (; ";")) (} "}")) (else_clause "else {\n    bVar1 = *__s;\n    if (bVar1 == 0) {\n      iVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }\n    *param_1 = __s;\n    *param_2 = ptr;\n  }" (else "else") (compound_statement "{\n    bVar1 = *__s;\n    if (bVar1 == 0) {\n      iVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }\n    *param_1 = __s;\n    *param_2 = ptr;\n  }" ({ "{") (expression_statement "bVar1 = *__s;" (assignment_expression "bVar1 = *__s" (identifier "bVar1") (= "=") (pointer_expression "*__s" (* "*") (identifier "__s"))) (; ";")) (if_statement "if (bVar1 == 0) {\n      iVar5 = 0;\n    }\n    else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }" (if "if") (parenthesized_expression "(bVar1 == 0)" (( "(") (binary_expression "bVar1 == 0" (identifier "bVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar5 = 0;\n    }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }" (else "else") (compound_statement "{\n      ppuVar4 = __ctype_b_loc();\n      uVar6 = (uint)bVar1;\n      uVar8 = 0;\n      bVar2 = false;\n      local_28 = ptr;\n      do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);\nLAB_00052f00:\n      __s = pbVar7 + 1;\n      if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }\n      iVar5 = (int)local_28 - (int)ptr;\n    }" ({ "{") (expression_statement "ppuVar4 = __ctype_b_loc();" (assignment_expression "ppuVar4 = __ctype_b_loc()" (identifier "ppuVar4") (= "=") (call_expression "__ctype_b_loc()" (identifier "__ctype_b_loc") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar6 = (uint)bVar1;" (assignment_expression "uVar6 = (uint)bVar1" (identifier "uVar6") (= "=") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1"))) (; ";")) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" (identifier "uVar8") (= "=") (number_literal "0")) (; ";")) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (expression_statement "local_28 = ptr;" (assignment_expression "local_28 = ptr" (identifier "local_28") (= "=") (identifier "ptr")) (; ";")) (do_statement "do {\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      } while (bVar1 != 0);" (do "do") (compound_statement "{\n        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }\n        uVar6 = OPENSSL_hexchar2int(uVar6);\n        if ((int)uVar6 < 0) goto LAB_00052f38;\n        uVar6 = uVar8 | uVar6;\n        if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }\n        bVar2 = false;\n        uVar8 = 0;\n        *local_28 = (char)uVar6;\n        bVar1 = pbVar7[1];\n        uVar6 = (uint)bVar1;\n        local_28 = local_28 + 1;\n        __s = pbVar7 + 1;\n      }" ({ "{") (while_statement "while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }" (while "while") (parenthesized_expression "(pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0)" (( "(") (comma_expression "pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0" (assignment_expression "pbVar7 = __s" (identifier "pbVar7") (= "=") (identifier "__s")) (, ",") (binary_expression "(*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0" (parenthesized_expression "(*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20)" (( "(") (binary_expression "*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20" (pointer_expression "*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1)" (* "*") (cast_expression "(byte *)((int)*ppuVar4 + uVar6 * 2 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)*ppuVar4 + uVar6 * 2 + 1)" (( "(") (binary_expression "(int)*ppuVar4 + uVar6 * 2 + 1" (binary_expression "(int)*ppuVar4 + uVar6 * 2" (cast_expression "(int)*ppuVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*ppuVar4" (* "*") (identifier "ppuVar4"))) (+ "+") (binary_expression "uVar6 * 2" (identifier "uVar6") (* "*") (number_literal "2"))) (+ "+") (number_literal "1")) () ")")))) (& "&") (number_literal "0x20")) () ")")) (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\nLAB_00052eaa:\n          bVar1 = pbVar7[1];\n          uVar6 = (uint)bVar1;\n          __s = pbVar7 + 1;\n          if (bVar1 == 0) goto LAB_00052f00;\n        }" ({ "{") (labeled_statement "LAB_00052eaa:\n          bVar1 = pbVar7[1];" (statement_identifier "LAB_00052eaa") (: ":") (expression_statement "bVar1 = pbVar7[1];" (assignment_expression "bVar1 = pbVar7[1]" (identifier "bVar1") (= "=") (subscript_expression "pbVar7[1]" (identifier "pbVar7") ([ "[") (number_literal "1") (] "]"))) (; ";"))) (expression_statement "uVar6 = (uint)bVar1;" (assignment_expression "uVar6 = (uint)bVar1" (identifier "uVar6") (= "=") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1"))) (; ";")) (expression_statement "__s = pbVar7 + 1;" (assignment_expression "__s = pbVar7 + 1" (identifier "__s") (= "=") (binary_expression "pbVar7 + 1" (identifier "pbVar7") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (bVar1 == 0) goto LAB_00052f00;" (if "if") (parenthesized_expression "(bVar1 == 0)" (( "(") (binary_expression "bVar1 == 0" (identifier "bVar1") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00052f00;" (goto "goto") (statement_identifier "LAB_00052f00") (; ";"))) (} "}"))) (expression_statement "uVar6 = OPENSSL_hexchar2int(uVar6);" (assignment_expression "uVar6 = OPENSSL_hexchar2int(uVar6)" (identifier "uVar6") (= "=") (call_expression "OPENSSL_hexchar2int(uVar6)" (identifier "OPENSSL_hexchar2int") (argument_list "(uVar6)" (( "(") (identifier "uVar6") () ")")))) (; ";")) (if_statement "if ((int)uVar6 < 0) goto LAB_00052f38;" (if "if") (parenthesized_expression "((int)uVar6 < 0)" (( "(") (binary_expression "(int)uVar6 < 0" (cast_expression "(int)uVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar6")) (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_00052f38;" (goto "goto") (statement_identifier "LAB_00052f38") (; ";"))) (expression_statement "uVar6 = uVar8 | uVar6;" (assignment_expression "uVar6 = uVar8 | uVar6" (identifier "uVar6") (= "=") (binary_expression "uVar8 | uVar6" (identifier "uVar8") (| "|") (identifier "uVar6"))) (; ";")) (if_statement "if (!bVar2) {\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }" (if "if") (parenthesized_expression "(!bVar2)" (( "(") (unary_expression "!bVar2" (! "!") (identifier "bVar2")) () ")")) (compound_statement "{\n          bVar2 = true;\n          uVar8 = uVar6 << 4;\n          goto LAB_00052eaa;\n        }" ({ "{") (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" (identifier "bVar2") (= "=") (true "true")) (; ";")) (expression_statement "uVar8 = uVar6 << 4;" (assignment_expression "uVar8 = uVar6 << 4" (identifier "uVar8") (= "=") (binary_expression "uVar6 << 4" (identifier "uVar6") (<< "<<") (number_literal "4"))) (; ";")) (goto_statement "goto LAB_00052eaa;" (goto "goto") (statement_identifier "LAB_00052eaa") (; ";")) (} "}"))) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" (identifier "uVar8") (= "=") (number_literal "0")) (; ";")) (expression_statement "*local_28 = (char)uVar6;" (assignment_expression "*local_28 = (char)uVar6" (pointer_expression "*local_28" (* "*") (identifier "local_28")) (= "=") (cast_expression "(char)uVar6" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar6"))) (; ";")) (expression_statement "bVar1 = pbVar7[1];" (assignment_expression "bVar1 = pbVar7[1]" (identifier "bVar1") (= "=") (subscript_expression "pbVar7[1]" (identifier "pbVar7") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar6 = (uint)bVar1;" (assignment_expression "uVar6 = (uint)bVar1" (identifier "uVar6") (= "=") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1"))) (; ";")) (expression_statement "local_28 = local_28 + 1;" (assignment_expression "local_28 = local_28 + 1" (identifier "local_28") (= "=") (binary_expression "local_28 + 1" (identifier "local_28") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "__s = pbVar7 + 1;" (assignment_expression "__s = pbVar7 + 1" (identifier "__s") (= "=") (binary_expression "pbVar7 + 1" (identifier "pbVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar1 != 0)" (( "(") (binary_expression "bVar1 != 0" (identifier "bVar1") (!= "!=") (number_literal "0")) () ")")) (; ";")) (labeled_statement "LAB_00052f00:\n      __s = pbVar7 + 1;" (statement_identifier "LAB_00052f00") (: ":") (expression_statement "__s = pbVar7 + 1;" (assignment_expression "__s = pbVar7 + 1" (identifier "__s") (= "=") (binary_expression "pbVar7 + 1" (identifier "pbVar7") (+ "+") (number_literal "1"))) (; ";"))) (if_statement "if (bVar2) {\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }" (if "if") (parenthesized_expression "(bVar2)" (( "(") (identifier "bVar2") () ")")) (compound_statement "{\nLAB_00052f38:\n        CRYPTO_free(ptr);\n        return 0;\n      }" ({ "{") (labeled_statement "LAB_00052f38:\n        CRYPTO_free(ptr);" (statement_identifier "LAB_00052f38") (: ":") (expression_statement "CRYPTO_free(ptr);" (call_expression "CRYPTO_free(ptr)" (identifier "CRYPTO_free") (argument_list "(ptr)" (( "(") (identifier "ptr") () ")"))) (; ";"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar5 = (int)local_28 - (int)ptr;" (assignment_expression "iVar5 = (int)local_28 - (int)ptr" (identifier "iVar5") (= "=") (binary_expression "(int)local_28 - (int)ptr" (cast_expression "(int)local_28" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_28")) (- "-") (cast_expression "(int)ptr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "ptr")))) (; ";")) (} "}")))) (expression_statement "*param_1 = __s;" (assignment_expression "*param_1 = __s" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "__s")) (; ";")) (expression_statement "*param_2 = ptr;" (assignment_expression "*param_2 = ptr" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "ptr")) (; ";")) (} "}")))) (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}")))

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

ssize_t function_1(char **inptr,void *result)

{
  type_1 var_5;
  bool bVar2;
  size_t var_3;
  type_2 *var_4;
  type_3 **ppuVar4;
  ssize_t sVar5;
  type_4 var_7;
  type_1 *var_8;
  type_1 *__s;
  type_4 var_10;
  type_2 *var_11;
  
  __s = (type_1 *)*inptr;
  var_3 = var_1((char *)__s);
  var_4 = (type_2 *)var_2(var_3 >> 1,"hexdecode");
  if (var_4 == (type_2 *)0x0) {
    sVar5 = -1;
  }
  else {
    var_5 = *__s;
    if (var_5 == 0) {
      sVar5 = 0;
    }
    else {
      ppuVar4 = var_6();
      var_7 = (type_4)var_5;
      var_10 = 0;
      bVar2 = false;
      var_11 = var_4;
      do {
        while (var_8 = __s, (*(type_1 *)((int)*ppuVar4 + var_7 * 2 + 1) & 0x20) != 0) {
LAB_00052eaa:
          var_5 = var_8[1];
          var_7 = (type_4)var_5;
          __s = var_8 + 1;
          if (var_5 == 0) goto LAB_00052f00;
        }
        var_7 = var_9(var_7);
        if ((int)var_7 < 0) goto LAB_00052f38;
        var_7 = var_10 | var_7;
        if (!bVar2) {
          bVar2 = true;
          var_10 = var_7 << 4;
          goto LAB_00052eaa;
        }
        bVar2 = false;
        var_10 = 0;
        *var_11 = (char)var_7;
        var_5 = var_8[1];
        var_7 = (type_4)var_5;
        var_11 = var_11 + 1;
        __s = var_8 + 1;
      } while (var_5 != 0);
LAB_00052f00:
      __s = var_8 + 1;
      if (bVar2) {
LAB_00052f38:
        var_12(var_4);
        return 0;
      }
      sVar5 = (int)var_11 - (int)var_4;
    }
    *inptr = (char *)__s;
    *(type_2 **)result = var_4;
  }
  return sVar5;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (pointer_declarator declarator: (identifier)))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (string_literal (string_content))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (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: (identifier) right: (number_literal))) right: (number_literal))))) right: (number_literal))) right: (number_literal)))) body: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (unary_expression argument: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (true))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (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 MASKED(undefined4 *param_1,undefined4 *param_2)

{
  byte bVar1;
  bool bVar2;
  size_t sVar3;
  undefined1 *ptr;
  ushort **ppuVar4;
  int iVar5;
  uint uVar6;
  byte *pbVar7;
  byte *__s;
  uint uVar8;
  undefined1 *local_28;
  
  __s = (byte *)*param_1;
  sVar3 = strlen((char *)__s);
  ptr = (undefined1 *)FUN_00073440(sVar3 >> 1,"hexdecode");
  if (ptr == (undefined1 *)0x0) {
    iVar5 = -1;
  }
  else {
    bVar1 = *__s;
    if (bVar1 == 0) {
      iVar5 = 0;
    }
    else {
      ppuVar4 = __ctype_b_loc();
      uVar6 = (uint)bVar1;
      uVar8 = 0;
      bVar2 = false;
      local_28 = ptr;
      do {
        while (pbVar7 = __s, (*(byte *)((int)*ppuVar4 + uVar6 * 2 + 1) & 0x20) != 0) {
LAB_00052eaa:
          bVar1 = pbVar7[1];
          uVar6 = (uint)bVar1;
          __s = pbVar7 + 1;
          if (bVar1 == 0) goto LAB_00052f00;
        }
        uVar6 = OPENSSL_hexchar2int(uVar6);
        if ((int)uVar6 < 0) goto LAB_00052f38;
        uVar6 = uVar8 | uVar6;
        if (!bVar2) {
          bVar2 = true;
          uVar8 = uVar6 << 4;
          goto LAB_00052eaa;
        }
        bVar2 = false;
        uVar8 = 0;
        *local_28 = (char)uVar6;
        bVar1 = pbVar7[1];
        uVar6 = (uint)bVar1;
        local_28 = local_28 + 1;
        __s = pbVar7 + 1;
      } while (bVar1 != 0);
LAB_00052f00:
      __s = pbVar7 + 1;
      if (bVar2) {
LAB_00052f38:
        CRYPTO_free(ptr);
        return 0;
      }
      iVar5 = (int)local_28 - (int)ptr;
    }
    *param_1 = __s;
    *param_2 = ptr;
  }
  return iVar5;
}

