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

char * decode_base64(char **pp_dst,char *src)

{
  uchar six_bit [4];
  
}



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

byte * __regparm3 FUN_000b2b78(undefined4 *param_1,byte *param_2)

{
  byte bVar1;
  byte *pbVar2;
  char *pcVar3;
  byte *pbVar4;
  byte *pbVar5;
  int iVar6;
  int in_GS_OFFSET;
  char local_24 [4];
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  pbVar2 = (byte *)*param_1;
LAB_000b2ba7:
  do {
    pbVar5 = pbVar2;
    iVar6 = 0;
    pbVar4 = param_2;
    do {
      do {
        bVar1 = *pbVar4;
        if (bVar1 == 0) {
          if (iVar6 == 0) {
            param_2 = pbVar4;
          }
          *param_1 = pbVar5;
          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
            FUN_00017e10();
          }
          return param_2;
        }
        pbVar4 = pbVar4 + 1;
        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
                        (uint)bVar1);
      } while (pcVar3 == (char *)0x0);
      if (pcVar3 + -0xcdfe5 == (char *)0x40) {
        param_2 = pbVar4;
        pbVar2 = pbVar5;
        if (1 < iVar6) {
          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;
          pbVar2 = pbVar5 + 1;
          if (iVar6 == 3) {
            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;
            pbVar2 = pbVar5 + 2;
          }
        }
        goto LAB_000b2ba7;
      }
      local_24[iVar6] = (char)(pcVar3 + -0xcdfe5);
      iVar6 = iVar6 + 1;
    } while (iVar6 != 4);
    *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] * '\x04';
    pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;
    pbVar5[2] = local_24[2] << 6 | local_24[3];
    param_2 = pbVar4;
    pbVar2 = pbVar5 + 3;
  } while( true );
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x2c
CALL 0x00017640
ADD EBX,0x1de9c
MOV dword ptr [ESP + 0xc],EAX
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x1c],ECX
XOR ECX,ECX
MOV ESI,dword ptr [EAX]
LEA EAX,[EBX + 0xffffd5c5]
MOV dword ptr [ESP + 0x4],EAX
MOV EBP,EDX
XOR EDI,EDI
MOVZX EAX,byte ptr [EBP]
TEST EAX,EAX
JNZ 0x000b2bda
TEST EDI,EDI
JNZ 0x000b2bb9
MOV EDX,EBP
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [EAX],ESI
MOV EAX,EDX
MOV EBX,dword ptr [ESP + 0x1c]
XOR EBX,dword ptr GS:[0x14]
JNZ 0x000b2c9a
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x8],EDX
INC EBP
SUB ESP,0x8
PUSH EAX
PUSH dword ptr [ESP + 0x10]
CALL 0x00016ad0
ADD ESP,0x10
TEST EAX,EAX
MOV EDX,dword ptr [ESP + 0x8]
JZ 0x000b2bab
SUB EAX,dword ptr [ESP + 0x4]
CMP EAX,0x40
JNZ 0x000b2c3f
CMP EDI,0x1
JLE 0x000b2c38
MOV AL,byte ptr [ESP + 0x19]
LEA ECX,[ESI + 0x1]
MOV dword ptr [ESP + 0x8],ECX
MOVZX ECX,byte ptr [ESP + 0x18]
SHL ECX,0x2
MOV DL,AL
SHR DL,0x4
OR EDX,ECX
MOV byte ptr [ESI],DL
CMP EDI,0x3
JNZ 0x000b2c8f
MOV DL,byte ptr [ESP + 0x1a]
SHR DL,0x2
SHL EAX,0x4
OR EAX,EDX
MOV byte ptr [ESI + 0x1],AL
ADD ESI,0x2
MOV EDX,EBP
JMP 0x000b2ba7
MOV byte ptr [ESP + EDI*0x1 + 0x18],AL
INC EDI
CMP EDI,0x4
JNZ 0x000b2bab
MOVZX EAX,byte ptr [ESP + 0x18]
LEA EDX,[EAX*0x4 + 0x0]
MOV AL,byte ptr [ESP + 0x19]
SHR AL,0x4
OR EAX,EDX
MOV byte ptr [ESI],AL
MOV DL,byte ptr [ESP + 0x1a]
SHR DL,0x2
MOV AL,byte ptr [ESP + 0x19]
SHL EAX,0x4
OR EAX,EDX
MOV byte ptr [ESI + 0x1],AL
MOV AL,byte ptr [ESP + 0x1a]
SHL EAX,0x6
OR AL,byte ptr [ESP + 0x1b]
MOV byte ptr [ESI + 0x2],AL
ADD ESI,0x3
MOV EDX,EBP
JMP 0x000b2ba7
MOV ESI,dword ptr [ESP + 0x8]
MOV EDX,EBP
JMP 0x000b2ba7
CALL 0x00017e10
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbyte * __regparm3 FUN_000b2b78(undefined4 *param_1,byte *param_2)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  char local_24 [4];\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pbVar2 = (byte *)*param_1;\nLAB_000b2ba7:\n  do {\n    pbVar5 = pbVar2;\n    iVar6 = 0;\n    pbVar4 = param_2;\n    do {\n      do {\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      } while (pcVar3 == (char *)0x0);\n      if (pcVar3 + -0xcdfe5 == (char *)0x40) {\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }\n      local_24[iVar6] = (char)(pcVar3 + -0xcdfe5);\n      iVar6 = iVar6 + 1;\n    } while (iVar6 != 4);\n    *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] * '\x04';\n    pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n    pbVar5[2] = local_24[2] << 6 | local_24[3];\n    param_2 = pbVar4;\n    pbVar2 = pbVar5 + 3;\n  } while( true );\n}\n\n" comment (ERROR "byte * __regparm3 FUN_000b2b78(undefined4 *param_1,byte *param_2)" (binary_expression "byte * __regparm3 FUN_000b2b78(undefined4 *param_1,byte *param_2)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_000b2b78(undefined4 *param_1,byte *param_2)" identifier (argument_list "(undefined4 *param_1,byte *param_2)" ( (binary_expression "undefined4 *param_1" identifier * identifier) , (binary_expression "byte *param_2" identifier * identifier) ))))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  char local_24 [4];\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pbVar2 = (byte *)*param_1;\nLAB_000b2ba7:\n  do {\n    pbVar5 = pbVar2;\n    iVar6 = 0;\n    pbVar4 = param_2;\n    do {\n      do {\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      } while (pcVar3 == (char *)0x0);\n      if (pcVar3 + -0xcdfe5 == (char *)0x40) {\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }\n      local_24[iVar6] = (char)(pcVar3 + -0xcdfe5);\n      iVar6 = iVar6 + 1;\n    } while (iVar6 != 4);\n    *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] * '\x04';\n    pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n    pbVar5[2] = local_24[2] << 6 | local_24[3];\n    param_2 = pbVar4;\n    pbVar2 = pbVar5 + 3;\n  } while( true );\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char local_24 [4];" primitive_type (array_declarator "local_24 [4]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (labeled_statement "LAB_000b2ba7:\n  do {\n    pbVar5 = pbVar2;\n    iVar6 = 0;\n    pbVar4 = param_2;\n    do {\n      do {\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      } while (pcVar3 == (char *)0x0);\n      if (pcVar3 + -0xcdfe5 == (char *)0x40) {\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }\n      local_24[iVar6] = (char)(pcVar3 + -0xcdfe5);\n      iVar6 = iVar6 + 1;\n    } while (iVar6 != 4);\n    *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] * '\x04';\n    pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n    pbVar5[2] = local_24[2] << 6 | local_24[3];\n    param_2 = pbVar4;\n    pbVar2 = pbVar5 + 3;\n  } while( true );" statement_identifier : (do_statement "do {\n    pbVar5 = pbVar2;\n    iVar6 = 0;\n    pbVar4 = param_2;\n    do {\n      do {\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      } while (pcVar3 == (char *)0x0);\n      if (pcVar3 + -0xcdfe5 == (char *)0x40) {\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }\n      local_24[iVar6] = (char)(pcVar3 + -0xcdfe5);\n      iVar6 = iVar6 + 1;\n    } while (iVar6 != 4);\n    *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] * '\x04';\n    pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n    pbVar5[2] = local_24[2] << 6 | local_24[3];\n    param_2 = pbVar4;\n    pbVar2 = pbVar5 + 3;\n  } while( true );" do (compound_statement "{\n    pbVar5 = pbVar2;\n    iVar6 = 0;\n    pbVar4 = param_2;\n    do {\n      do {\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      } while (pcVar3 == (char *)0x0);\n      if (pcVar3 + -0xcdfe5 == (char *)0x40) {\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }\n      local_24[iVar6] = (char)(pcVar3 + -0xcdfe5);\n      iVar6 = iVar6 + 1;\n    } while (iVar6 != 4);\n    *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] * '\x04';\n    pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n    pbVar5[2] = local_24[2] << 6 | local_24[3];\n    param_2 = pbVar4;\n    pbVar2 = pbVar5 + 3;\n  }" { (expression_statement "pbVar5 = pbVar2;" (assignment_expression "pbVar5 = pbVar2" identifier = identifier) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "pbVar4 = param_2;" (assignment_expression "pbVar4 = param_2" identifier = identifier) ;) (do_statement "do {\n      do {\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      } while (pcVar3 == (char *)0x0);\n      if (pcVar3 + -0xcdfe5 == (char *)0x40) {\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }\n      local_24[iVar6] = (char)(pcVar3 + -0xcdfe5);\n      iVar6 = iVar6 + 1;\n    } while (iVar6 != 4);" do (compound_statement "{\n      do {\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      } while (pcVar3 == (char *)0x0);\n      if (pcVar3 + -0xcdfe5 == (char *)0x40) {\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }\n      local_24[iVar6] = (char)(pcVar3 + -0xcdfe5);\n      iVar6 = iVar6 + 1;\n    }" { (do_statement "do {\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      } while (pcVar3 == (char *)0x0);" do (compound_statement "{\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      }" { (expression_statement "bVar1 = *pbVar4;" (assignment_expression "bVar1 = *pbVar4" identifier = (pointer_expression "*pbVar4" * identifier)) ;) (if_statement "if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00017e10();\n          }\n          return param_2;\n        }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00017e10();\n          }\n          return param_2;\n        }" { (if_statement "if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n            param_2 = pbVar4;\n          }" { (expression_statement "param_2 = pbVar4;" (assignment_expression "param_2 = pbVar4" identifier = identifier) ;) })) (expression_statement "*param_1 = pbVar5;" (assignment_expression "*param_1 = pbVar5" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n            FUN_00017e10();\n          }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n            FUN_00017e10();\n          }" { comment (expression_statement "FUN_00017e10();" (call_expression "FUN_00017e10()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return param_2;" return identifier ;) })) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);" (assignment_expression "pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1)" identifier = (call_expression "strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1)" identifier (argument_list "("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1)" ( (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="" " string_content ") , (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) )))) ;) }) while (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if (pcVar3 + -0xcdfe5 == (char *)0x40) {\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }" if (parenthesized_expression "(pcVar3 + -0xcdfe5 == (char *)0x40)" ( (binary_expression "pcVar3 + -0xcdfe5 == (char *)0x40" (binary_expression "pcVar3 + -0xcdfe5" identifier + number_literal) == (cast_expression "(char *)0x40" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }" { (expression_statement "param_2 = pbVar4;" (assignment_expression "param_2 = pbVar4" identifier = identifier) ;) (expression_statement "pbVar2 = pbVar5;" (assignment_expression "pbVar2 = pbVar5" identifier = identifier) ;) (if_statement "if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }" if (parenthesized_expression "(1 < iVar6)" ( (binary_expression "1 < iVar6" number_literal < identifier) )) (compound_statement "{\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }" { (expression_statement "*pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;" (assignment_expression "*pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2" (pointer_expression "*pbVar5" * identifier) = (binary_expression "(byte)local_24[1] >> 4 | local_24[0] << 2" (binary_expression "(byte)local_24[1] >> 4" (cast_expression "(byte)local_24[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "local_24[1]" identifier [ number_literal ])) >> number_literal) | (binary_expression "local_24[0] << 2" (subscript_expression "local_24[0]" identifier [ number_literal ]) << number_literal))) ;) (expression_statement "pbVar2 = pbVar5 + 1;" (assignment_expression "pbVar2 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) (if_statement "if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }" if (parenthesized_expression "(iVar6 == 3)" ( (binary_expression "iVar6 == 3" identifier == number_literal) )) (compound_statement "{\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }" { (expression_statement "pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;" (assignment_expression "pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2" (subscript_expression "pbVar5[1]" identifier [ number_literal ]) = (binary_expression "local_24[1] << 4 | (byte)local_24[2] >> 2" (binary_expression "local_24[1] << 4" (subscript_expression "local_24[1]" identifier [ number_literal ]) << number_literal) | (binary_expression "(byte)local_24[2] >> 2" (cast_expression "(byte)local_24[2]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "local_24[2]" identifier [ number_literal ])) >> number_literal))) ;) (expression_statement "pbVar2 = pbVar5 + 2;" (assignment_expression "pbVar2 = pbVar5 + 2" identifier = (binary_expression "pbVar5 + 2" identifier + number_literal)) ;) })) })) (goto_statement "goto LAB_000b2ba7;" goto statement_identifier ;) })) (expression_statement "local_24[iVar6] = (char)(pcVar3 + -0xcdfe5);" (assignment_expression "local_24[iVar6] = (char)(pcVar3 + -0xcdfe5)" (subscript_expression "local_24[iVar6]" identifier [ identifier ]) = (cast_expression "(char)(pcVar3 + -0xcdfe5)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(pcVar3 + -0xcdfe5)" ( (binary_expression "pcVar3 + -0xcdfe5" identifier + number_literal) )))) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != 4)" ( (binary_expression "iVar6 != 4" identifier != number_literal) )) ;) (expression_statement "*pbVar5 = (byte)local_24[1] >> 4 | local_24[0] * '\x04';" (assignment_expression "*pbVar5 = (byte)local_24[1] >> 4 | local_24[0] * '\x04'" (pointer_expression "*pbVar5" * identifier) = (binary_expression "(byte)local_24[1] >> 4 | local_24[0] * '\x04'" (binary_expression "(byte)local_24[1] >> 4" (cast_expression "(byte)local_24[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "local_24[1]" identifier [ number_literal ])) >> number_literal) | (binary_expression "local_24[0] * '\x04'" (subscript_expression "local_24[0]" identifier [ number_literal ]) * (char_literal "'\x04'" ' escape_sequence ')))) ;) (expression_statement "pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;" (assignment_expression "pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2" (subscript_expression "pbVar5[1]" identifier [ number_literal ]) = (binary_expression "local_24[1] << 4 | (byte)local_24[2] >> 2" (binary_expression "local_24[1] << 4" (subscript_expression "local_24[1]" identifier [ number_literal ]) << number_literal) | (binary_expression "(byte)local_24[2] >> 2" (cast_expression "(byte)local_24[2]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "local_24[2]" identifier [ number_literal ])) >> number_literal))) ;) (expression_statement "pbVar5[2] = local_24[2] << 6 | local_24[3];" (assignment_expression "pbVar5[2] = local_24[2] << 6 | local_24[3]" (subscript_expression "pbVar5[2]" identifier [ number_literal ]) = (binary_expression "local_24[2] << 6 | local_24[3]" (binary_expression "local_24[2] << 6" (subscript_expression "local_24[2]" identifier [ number_literal ]) << number_literal) | (subscript_expression "local_24[3]" identifier [ number_literal ]))) ;) (expression_statement "param_2 = pbVar4;" (assignment_expression "param_2 = pbVar4" identifier = identifier) ;) (expression_statement "pbVar2 = pbVar5 + 3;" (assignment_expression "pbVar2 = pbVar5 + 3" identifier = (binary_expression "pbVar5 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;)) }))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * decode_base64(char **pp_dst,char *src)\n\n{\n  uchar six_bit [4];\n  \n}\n\n" comment (function_definition "char * decode_base64(char **pp_dst,char *src)\n\n{\n  uchar six_bit [4];\n  \n}" primitive_type (pointer_declarator "* decode_base64(char **pp_dst,char *src)" * (function_declarator "decode_base64(char **pp_dst,char *src)" identifier (parameter_list "(char **pp_dst,char *src)" ( (parameter_declaration "char **pp_dst" primitive_type (pointer_declarator "**pp_dst" * (pointer_declarator "*pp_dst" * identifier))) , (parameter_declaration "char *src" primitive_type (pointer_declarator "*src" * identifier)) )))) (compound_statement "{\n  uchar six_bit [4];\n  \n}" { (declaration "uchar six_bit [4];" type_identifier (array_declarator "six_bit [4]" identifier [ number_literal ]) ;) })))
(translation_unit "byte * __regparm3 FUN_000b2b78(undefined4 *param_1,byte *param_2)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  char local_24 [4];\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pbVar2 = (byte *)*param_1;\nLAB_000b2ba7:\n  do {\n    pbVar5 = pbVar2;\n    iVar6 = 0;\n    pbVar4 = param_2;\n    do {\n      do {\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      } while (pcVar3 == (char *)0x0);\n      if (pcVar3 + -0xcdfe5 == (char *)0x40) {\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }\n      local_24[iVar6] = (char)(pcVar3 + -0xcdfe5);\n      iVar6 = iVar6 + 1;\n    } while (iVar6 != 4);\n    *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] * '\x04';\n    pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n    pbVar5[2] = local_24[2] << 6 | local_24[3];\n    param_2 = pbVar4;\n    pbVar2 = pbVar5 + 3;\n  } while( true );\n}\n\n" (ERROR "byte * __regparm3 FUN_000b2b78(undefined4 *param_1,byte *param_2)" (binary_expression "byte * __regparm3 FUN_000b2b78(undefined4 *param_1,byte *param_2)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_000b2b78(undefined4 *param_1,byte *param_2)" identifier (argument_list "(undefined4 *param_1,byte *param_2)" ( (binary_expression "undefined4 *param_1" identifier * identifier) , (binary_expression "byte *param_2" identifier * identifier) ))))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  char local_24 [4];\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pbVar2 = (byte *)*param_1;\nLAB_000b2ba7:\n  do {\n    pbVar5 = pbVar2;\n    iVar6 = 0;\n    pbVar4 = param_2;\n    do {\n      do {\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      } while (pcVar3 == (char *)0x0);\n      if (pcVar3 + -0xcdfe5 == (char *)0x40) {\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }\n      local_24[iVar6] = (char)(pcVar3 + -0xcdfe5);\n      iVar6 = iVar6 + 1;\n    } while (iVar6 != 4);\n    *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] * '\x04';\n    pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n    pbVar5[2] = local_24[2] << 6 | local_24[3];\n    param_2 = pbVar4;\n    pbVar2 = pbVar5 + 3;\n  } while( true );\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char local_24 [4];" primitive_type (array_declarator "local_24 [4]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (labeled_statement "LAB_000b2ba7:\n  do {\n    pbVar5 = pbVar2;\n    iVar6 = 0;\n    pbVar4 = param_2;\n    do {\n      do {\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      } while (pcVar3 == (char *)0x0);\n      if (pcVar3 + -0xcdfe5 == (char *)0x40) {\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }\n      local_24[iVar6] = (char)(pcVar3 + -0xcdfe5);\n      iVar6 = iVar6 + 1;\n    } while (iVar6 != 4);\n    *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] * '\x04';\n    pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n    pbVar5[2] = local_24[2] << 6 | local_24[3];\n    param_2 = pbVar4;\n    pbVar2 = pbVar5 + 3;\n  } while( true );" statement_identifier : (do_statement "do {\n    pbVar5 = pbVar2;\n    iVar6 = 0;\n    pbVar4 = param_2;\n    do {\n      do {\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      } while (pcVar3 == (char *)0x0);\n      if (pcVar3 + -0xcdfe5 == (char *)0x40) {\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }\n      local_24[iVar6] = (char)(pcVar3 + -0xcdfe5);\n      iVar6 = iVar6 + 1;\n    } while (iVar6 != 4);\n    *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] * '\x04';\n    pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n    pbVar5[2] = local_24[2] << 6 | local_24[3];\n    param_2 = pbVar4;\n    pbVar2 = pbVar5 + 3;\n  } while( true );" do (compound_statement "{\n    pbVar5 = pbVar2;\n    iVar6 = 0;\n    pbVar4 = param_2;\n    do {\n      do {\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      } while (pcVar3 == (char *)0x0);\n      if (pcVar3 + -0xcdfe5 == (char *)0x40) {\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }\n      local_24[iVar6] = (char)(pcVar3 + -0xcdfe5);\n      iVar6 = iVar6 + 1;\n    } while (iVar6 != 4);\n    *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] * '\x04';\n    pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n    pbVar5[2] = local_24[2] << 6 | local_24[3];\n    param_2 = pbVar4;\n    pbVar2 = pbVar5 + 3;\n  }" { (expression_statement "pbVar5 = pbVar2;" (assignment_expression "pbVar5 = pbVar2" identifier = identifier) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "pbVar4 = param_2;" (assignment_expression "pbVar4 = param_2" identifier = identifier) ;) (do_statement "do {\n      do {\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      } while (pcVar3 == (char *)0x0);\n      if (pcVar3 + -0xcdfe5 == (char *)0x40) {\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }\n      local_24[iVar6] = (char)(pcVar3 + -0xcdfe5);\n      iVar6 = iVar6 + 1;\n    } while (iVar6 != 4);" do (compound_statement "{\n      do {\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      } while (pcVar3 == (char *)0x0);\n      if (pcVar3 + -0xcdfe5 == (char *)0x40) {\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }\n      local_24[iVar6] = (char)(pcVar3 + -0xcdfe5);\n      iVar6 = iVar6 + 1;\n    }" { (do_statement "do {\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      } while (pcVar3 == (char *)0x0);" do (compound_statement "{\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      }" { (expression_statement "bVar1 = *pbVar4;" (assignment_expression "bVar1 = *pbVar4" identifier = (pointer_expression "*pbVar4" * identifier)) ;) (if_statement "if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n            FUN_00017e10();\n          }\n          return param_2;\n        }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n            FUN_00017e10();\n          }\n          return param_2;\n        }" { (if_statement "if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n            param_2 = pbVar4;\n          }" { (expression_statement "param_2 = pbVar4;" (assignment_expression "param_2 = pbVar4" identifier = identifier) ;) })) (expression_statement "*param_1 = pbVar5;" (assignment_expression "*param_1 = pbVar5" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n            FUN_00017e10();\n          }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n            FUN_00017e10();\n          }" { (expression_statement "FUN_00017e10();" (call_expression "FUN_00017e10()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return param_2;" return identifier ;) })) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);" (assignment_expression "pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1)" identifier = (call_expression "strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1)" identifier (argument_list "("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1)" ( (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="" " string_content ") , (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) )))) ;) }) while (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if (pcVar3 + -0xcdfe5 == (char *)0x40) {\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }" if (parenthesized_expression "(pcVar3 + -0xcdfe5 == (char *)0x40)" ( (binary_expression "pcVar3 + -0xcdfe5 == (char *)0x40" (binary_expression "pcVar3 + -0xcdfe5" identifier + number_literal) == (cast_expression "(char *)0x40" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }" { (expression_statement "param_2 = pbVar4;" (assignment_expression "param_2 = pbVar4" identifier = identifier) ;) (expression_statement "pbVar2 = pbVar5;" (assignment_expression "pbVar2 = pbVar5" identifier = identifier) ;) (if_statement "if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }" if (parenthesized_expression "(1 < iVar6)" ( (binary_expression "1 < iVar6" number_literal < identifier) )) (compound_statement "{\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }" { (expression_statement "*pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;" (assignment_expression "*pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2" (pointer_expression "*pbVar5" * identifier) = (binary_expression "(byte)local_24[1] >> 4 | local_24[0] << 2" (binary_expression "(byte)local_24[1] >> 4" (cast_expression "(byte)local_24[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "local_24[1]" identifier [ number_literal ])) >> number_literal) | (binary_expression "local_24[0] << 2" (subscript_expression "local_24[0]" identifier [ number_literal ]) << number_literal))) ;) (expression_statement "pbVar2 = pbVar5 + 1;" (assignment_expression "pbVar2 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) (if_statement "if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }" if (parenthesized_expression "(iVar6 == 3)" ( (binary_expression "iVar6 == 3" identifier == number_literal) )) (compound_statement "{\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }" { (expression_statement "pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;" (assignment_expression "pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2" (subscript_expression "pbVar5[1]" identifier [ number_literal ]) = (binary_expression "local_24[1] << 4 | (byte)local_24[2] >> 2" (binary_expression "local_24[1] << 4" (subscript_expression "local_24[1]" identifier [ number_literal ]) << number_literal) | (binary_expression "(byte)local_24[2] >> 2" (cast_expression "(byte)local_24[2]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "local_24[2]" identifier [ number_literal ])) >> number_literal))) ;) (expression_statement "pbVar2 = pbVar5 + 2;" (assignment_expression "pbVar2 = pbVar5 + 2" identifier = (binary_expression "pbVar5 + 2" identifier + number_literal)) ;) })) })) (goto_statement "goto LAB_000b2ba7;" goto statement_identifier ;) })) (expression_statement "local_24[iVar6] = (char)(pcVar3 + -0xcdfe5);" (assignment_expression "local_24[iVar6] = (char)(pcVar3 + -0xcdfe5)" (subscript_expression "local_24[iVar6]" identifier [ identifier ]) = (cast_expression "(char)(pcVar3 + -0xcdfe5)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(pcVar3 + -0xcdfe5)" ( (binary_expression "pcVar3 + -0xcdfe5" identifier + number_literal) )))) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != 4)" ( (binary_expression "iVar6 != 4" identifier != number_literal) )) ;) (expression_statement "*pbVar5 = (byte)local_24[1] >> 4 | local_24[0] * '\x04';" (assignment_expression "*pbVar5 = (byte)local_24[1] >> 4 | local_24[0] * '\x04'" (pointer_expression "*pbVar5" * identifier) = (binary_expression "(byte)local_24[1] >> 4 | local_24[0] * '\x04'" (binary_expression "(byte)local_24[1] >> 4" (cast_expression "(byte)local_24[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "local_24[1]" identifier [ number_literal ])) >> number_literal) | (binary_expression "local_24[0] * '\x04'" (subscript_expression "local_24[0]" identifier [ number_literal ]) * (char_literal "'\x04'" ' escape_sequence ')))) ;) (expression_statement "pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;" (assignment_expression "pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2" (subscript_expression "pbVar5[1]" identifier [ number_literal ]) = (binary_expression "local_24[1] << 4 | (byte)local_24[2] >> 2" (binary_expression "local_24[1] << 4" (subscript_expression "local_24[1]" identifier [ number_literal ]) << number_literal) | (binary_expression "(byte)local_24[2] >> 2" (cast_expression "(byte)local_24[2]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "local_24[2]" identifier [ number_literal ])) >> number_literal))) ;) (expression_statement "pbVar5[2] = local_24[2] << 6 | local_24[3];" (assignment_expression "pbVar5[2] = local_24[2] << 6 | local_24[3]" (subscript_expression "pbVar5[2]" identifier [ number_literal ]) = (binary_expression "local_24[2] << 6 | local_24[3]" (binary_expression "local_24[2] << 6" (subscript_expression "local_24[2]" identifier [ number_literal ]) << number_literal) | (subscript_expression "local_24[3]" identifier [ number_literal ]))) ;) (expression_statement "param_2 = pbVar4;" (assignment_expression "param_2 = pbVar4" identifier = identifier) ;) (expression_statement "pbVar2 = pbVar5 + 3;" (assignment_expression "pbVar2 = pbVar5 + 3" identifier = (binary_expression "pbVar5 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;)) }))
(translation_unit (ERROR (binary_expression IDENT * (ERROR IDENT) (call_expression IDENT (argument_list ( (binary_expression IDENT * IDENT) , (binary_expression IDENT * IDENT) ))))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (labeled_statement statement_identifier : (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , (cast_expression ( (type_descriptor TYPE) ) IDENT) )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) >> LIT) | (binary_expression (subscript_expression IDENT [ LIT ]) << LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) << LIT) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) >> LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) >> LIT) | (binary_expression (subscript_expression IDENT [ LIT ]) * (char_literal ' escape_sequence ')))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) << LIT) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) >> LIT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) << LIT) | (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( BOOL )) ;)) }))
(ERROR "byte * __regparm3 FUN_000b2b78(undefined4 *param_1,byte *param_2)" (binary_expression "byte * __regparm3 FUN_000b2b78(undefined4 *param_1,byte *param_2)" (identifier "byte") (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (call_expression "FUN_000b2b78(undefined4 *param_1,byte *param_2)" (identifier "FUN_000b2b78") (argument_list "(undefined4 *param_1,byte *param_2)" (( "(") (binary_expression "undefined4 *param_1" (identifier "undefined4") (* "*") (identifier "param_1")) (, ",") (binary_expression "byte *param_2" (identifier "byte") (* "*") (identifier "param_2")) () ")"))))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  char local_24 [4];\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pbVar2 = (byte *)*param_1;\nLAB_000b2ba7:\n  do {\n    pbVar5 = pbVar2;\n    iVar6 = 0;\n    pbVar4 = param_2;\n    do {\n      do {\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      } while (pcVar3 == (char *)0x0);\n      if (pcVar3 + -0xcdfe5 == (char *)0x40) {\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }\n      local_24[iVar6] = (char)(pcVar3 + -0xcdfe5);\n      iVar6 = iVar6 + 1;\n    } while (iVar6 != 4);\n    *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] * '\x04';\n    pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n    pbVar5[2] = local_24[2] << 6 | local_24[3];\n    param_2 = pbVar4;\n    pbVar2 = pbVar5 + 3;\n  } while( true );\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "char local_24 [4];" (primitive_type "char") (array_declarator "local_24 [4]" (identifier "local_24") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "pbVar2 = (byte *)*param_1;" (assignment_expression "pbVar2 = (byte *)*param_1" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (labeled_statement "LAB_000b2ba7:\n  do {\n    pbVar5 = pbVar2;\n    iVar6 = 0;\n    pbVar4 = param_2;\n    do {\n      do {\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      } while (pcVar3 == (char *)0x0);\n      if (pcVar3 + -0xcdfe5 == (char *)0x40) {\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }\n      local_24[iVar6] = (char)(pcVar3 + -0xcdfe5);\n      iVar6 = iVar6 + 1;\n    } while (iVar6 != 4);\n    *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] * '\x04';\n    pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n    pbVar5[2] = local_24[2] << 6 | local_24[3];\n    param_2 = pbVar4;\n    pbVar2 = pbVar5 + 3;\n  } while( true );" (statement_identifier "LAB_000b2ba7") (: ":") (do_statement "do {\n    pbVar5 = pbVar2;\n    iVar6 = 0;\n    pbVar4 = param_2;\n    do {\n      do {\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      } while (pcVar3 == (char *)0x0);\n      if (pcVar3 + -0xcdfe5 == (char *)0x40) {\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }\n      local_24[iVar6] = (char)(pcVar3 + -0xcdfe5);\n      iVar6 = iVar6 + 1;\n    } while (iVar6 != 4);\n    *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] * '\x04';\n    pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n    pbVar5[2] = local_24[2] << 6 | local_24[3];\n    param_2 = pbVar4;\n    pbVar2 = pbVar5 + 3;\n  } while( true );" (do "do") (compound_statement "{\n    pbVar5 = pbVar2;\n    iVar6 = 0;\n    pbVar4 = param_2;\n    do {\n      do {\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      } while (pcVar3 == (char *)0x0);\n      if (pcVar3 + -0xcdfe5 == (char *)0x40) {\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }\n      local_24[iVar6] = (char)(pcVar3 + -0xcdfe5);\n      iVar6 = iVar6 + 1;\n    } while (iVar6 != 4);\n    *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] * '\x04';\n    pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n    pbVar5[2] = local_24[2] << 6 | local_24[3];\n    param_2 = pbVar4;\n    pbVar2 = pbVar5 + 3;\n  }" ({ "{") (expression_statement "pbVar5 = pbVar2;" (assignment_expression "pbVar5 = pbVar2" (identifier "pbVar5") (= "=") (identifier "pbVar2")) (; ";")) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar4 = param_2;" (assignment_expression "pbVar4 = param_2" (identifier "pbVar4") (= "=") (identifier "param_2")) (; ";")) (do_statement "do {\n      do {\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      } while (pcVar3 == (char *)0x0);\n      if (pcVar3 + -0xcdfe5 == (char *)0x40) {\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }\n      local_24[iVar6] = (char)(pcVar3 + -0xcdfe5);\n      iVar6 = iVar6 + 1;\n    } while (iVar6 != 4);" (do "do") (compound_statement "{\n      do {\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      } while (pcVar3 == (char *)0x0);\n      if (pcVar3 + -0xcdfe5 == (char *)0x40) {\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }\n      local_24[iVar6] = (char)(pcVar3 + -0xcdfe5);\n      iVar6 = iVar6 + 1;\n    }" ({ "{") (do_statement "do {\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      } while (pcVar3 == (char *)0x0);" (do "do") (compound_statement "{\n        bVar1 = *pbVar4;\n        if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n            FUN_00017e10();\n          }\n          return param_2;\n        }\n        pbVar4 = pbVar4 + 1;\n        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);\n      }" ({ "{") (expression_statement "bVar1 = *pbVar4;" (assignment_expression "bVar1 = *pbVar4" (identifier "bVar1") (= "=") (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4"))) (; ";")) (if_statement "if (bVar1 == 0) {\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n            FUN_00017e10();\n          }\n          return param_2;\n        }" (if "if") (parenthesized_expression "(bVar1 == 0)" (( "(") (binary_expression "bVar1 == 0" (identifier "bVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }\n          *param_1 = pbVar5;\n          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n            FUN_00017e10();\n          }\n          return param_2;\n        }" ({ "{") (if_statement "if (iVar6 == 0) {\n            param_2 = pbVar4;\n          }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            param_2 = pbVar4;\n          }" ({ "{") (expression_statement "param_2 = pbVar4;" (assignment_expression "param_2 = pbVar4" (identifier "param_2") (= "=") (identifier "pbVar4")) (; ";")) (} "}"))) (expression_statement "*param_1 = pbVar5;" (assignment_expression "*param_1 = pbVar5" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "pbVar5")) (; ";")) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n            FUN_00017e10();\n          }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n            FUN_00017e10();\n          }" ({ "{") (expression_statement "FUN_00017e10();" (call_expression "FUN_00017e10()" (identifier "FUN_00017e10") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}"))) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" (identifier "pbVar4") (= "=") (binary_expression "pbVar4 + 1" (identifier "pbVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1);" (assignment_expression "pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1)" (identifier "pcVar3") (= "=") (call_expression "strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1)" (identifier "strchr") (argument_list "("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",\n                        (uint)bVar1)" (( "(") (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="" (" """) (string_content "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=") (" """)) (, ",") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1")) () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar3 == (char *)0x0)" (( "(") (binary_expression "pcVar3 == (char *)0x0" (identifier "pcVar3") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (if_statement "if (pcVar3 + -0xcdfe5 == (char *)0x40) {\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }" (if "if") (parenthesized_expression "(pcVar3 + -0xcdfe5 == (char *)0x40)" (( "(") (binary_expression "pcVar3 + -0xcdfe5 == (char *)0x40" (binary_expression "pcVar3 + -0xcdfe5" (identifier "pcVar3") (+ "+") (number_literal "-0xcdfe5")) (== "==") (cast_expression "(char *)0x40" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x40"))) () ")")) (compound_statement "{\n        param_2 = pbVar4;\n        pbVar2 = pbVar5;\n        if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }\n        goto LAB_000b2ba7;\n      }" ({ "{") (expression_statement "param_2 = pbVar4;" (assignment_expression "param_2 = pbVar4" (identifier "param_2") (= "=") (identifier "pbVar4")) (; ";")) (expression_statement "pbVar2 = pbVar5;" (assignment_expression "pbVar2 = pbVar5" (identifier "pbVar2") (= "=") (identifier "pbVar5")) (; ";")) (if_statement "if (1 < iVar6) {\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }" (if "if") (parenthesized_expression "(1 < iVar6)" (( "(") (binary_expression "1 < iVar6" (number_literal "1") (< "<") (identifier "iVar6")) () ")")) (compound_statement "{\n          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;\n          pbVar2 = pbVar5 + 1;\n          if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }\n        }" ({ "{") (expression_statement "*pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;" (assignment_expression "*pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2" (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5")) (= "=") (binary_expression "(byte)local_24[1] >> 4 | local_24[0] << 2" (binary_expression "(byte)local_24[1] >> 4" (cast_expression "(byte)local_24[1]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "local_24[1]" (identifier "local_24") ([ "[") (number_literal "1") (] "]"))) (>> ">>") (number_literal "4")) (| "|") (binary_expression "local_24[0] << 2" (subscript_expression "local_24[0]" (identifier "local_24") ([ "[") (number_literal "0") (] "]")) (<< "<<") (number_literal "2")))) (; ";")) (expression_statement "pbVar2 = pbVar5 + 1;" (assignment_expression "pbVar2 = pbVar5 + 1" (identifier "pbVar2") (= "=") (binary_expression "pbVar5 + 1" (identifier "pbVar5") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar6 == 3) {\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }" (if "if") (parenthesized_expression "(iVar6 == 3)" (( "(") (binary_expression "iVar6 == 3" (identifier "iVar6") (== "==") (number_literal "3")) () ")")) (compound_statement "{\n            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;\n            pbVar2 = pbVar5 + 2;\n          }" ({ "{") (expression_statement "pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;" (assignment_expression "pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2" (subscript_expression "pbVar5[1]" (identifier "pbVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "local_24[1] << 4 | (byte)local_24[2] >> 2" (binary_expression "local_24[1] << 4" (subscript_expression "local_24[1]" (identifier "local_24") ([ "[") (number_literal "1") (] "]")) (<< "<<") (number_literal "4")) (| "|") (binary_expression "(byte)local_24[2] >> 2" (cast_expression "(byte)local_24[2]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "local_24[2]" (identifier "local_24") ([ "[") (number_literal "2") (] "]"))) (>> ">>") (number_literal "2")))) (; ";")) (expression_statement "pbVar2 = pbVar5 + 2;" (assignment_expression "pbVar2 = pbVar5 + 2" (identifier "pbVar2") (= "=") (binary_expression "pbVar5 + 2" (identifier "pbVar5") (+ "+") (number_literal "2"))) (; ";")) (} "}"))) (} "}"))) (goto_statement "goto LAB_000b2ba7;" (goto "goto") (statement_identifier "LAB_000b2ba7") (; ";")) (} "}"))) (expression_statement "local_24[iVar6] = (char)(pcVar3 + -0xcdfe5);" (assignment_expression "local_24[iVar6] = (char)(pcVar3 + -0xcdfe5)" (subscript_expression "local_24[iVar6]" (identifier "local_24") ([ "[") (identifier "iVar6") (] "]")) (= "=") (cast_expression "(char)(pcVar3 + -0xcdfe5)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(pcVar3 + -0xcdfe5)" (( "(") (binary_expression "pcVar3 + -0xcdfe5" (identifier "pcVar3") (+ "+") (number_literal "-0xcdfe5")) () ")")))) (; ";")) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar6 != 4)" (( "(") (binary_expression "iVar6 != 4" (identifier "iVar6") (!= "!=") (number_literal "4")) () ")")) (; ";")) (expression_statement "*pbVar5 = (byte)local_24[1] >> 4 | local_24[0] * '\x04';" (assignment_expression "*pbVar5 = (byte)local_24[1] >> 4 | local_24[0] * '\x04'" (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5")) (= "=") (binary_expression "(byte)local_24[1] >> 4 | local_24[0] * '\x04'" (binary_expression "(byte)local_24[1] >> 4" (cast_expression "(byte)local_24[1]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "local_24[1]" (identifier "local_24") ([ "[") (number_literal "1") (] "]"))) (>> ">>") (number_literal "4")) (| "|") (binary_expression "local_24[0] * '\x04'" (subscript_expression "local_24[0]" (identifier "local_24") ([ "[") (number_literal "0") (] "]")) (* "*") (char_literal "'\x04'" (' "'") (escape_sequence "\x04") (' "'"))))) (; ";")) (expression_statement "pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;" (assignment_expression "pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2" (subscript_expression "pbVar5[1]" (identifier "pbVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "local_24[1] << 4 | (byte)local_24[2] >> 2" (binary_expression "local_24[1] << 4" (subscript_expression "local_24[1]" (identifier "local_24") ([ "[") (number_literal "1") (] "]")) (<< "<<") (number_literal "4")) (| "|") (binary_expression "(byte)local_24[2] >> 2" (cast_expression "(byte)local_24[2]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "local_24[2]" (identifier "local_24") ([ "[") (number_literal "2") (] "]"))) (>> ">>") (number_literal "2")))) (; ";")) (expression_statement "pbVar5[2] = local_24[2] << 6 | local_24[3];" (assignment_expression "pbVar5[2] = local_24[2] << 6 | local_24[3]" (subscript_expression "pbVar5[2]" (identifier "pbVar5") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "local_24[2] << 6 | local_24[3]" (binary_expression "local_24[2] << 6" (subscript_expression "local_24[2]" (identifier "local_24") ([ "[") (number_literal "2") (] "]")) (<< "<<") (number_literal "6")) (| "|") (subscript_expression "local_24[3]" (identifier "local_24") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "param_2 = pbVar4;" (assignment_expression "param_2 = pbVar4" (identifier "param_2") (= "=") (identifier "pbVar4")) (; ";")) (expression_statement "pbVar2 = pbVar5 + 3;" (assignment_expression "pbVar2 = pbVar5 + 3" (identifier "pbVar2") (= "=") (binary_expression "pbVar5 + 3" (identifier "pbVar5") (+ "+") (number_literal "3"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";"))) (} "}"))

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

char * function_1(char **pp_dst,char *src)

{
  type_1 six_bit [4];
  
}


(translation_unit (ERROR (binary_expression left: (identifier) (ERROR (identifier)) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (binary_expression left: (identifier) right: (identifier)))))) (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (labeled_statement label: (statement_identifier) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (do_statement body: (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 (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (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)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (true))))))

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

byte * __regparm3 MASKED(undefined4 *param_1,byte *param_2)

{
  byte bVar1;
  byte *pbVar2;
  char *pcVar3;
  byte *pbVar4;
  byte *pbVar5;
  int iVar6;
  int in_GS_OFFSET;
  char local_24 [4];
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  pbVar2 = (byte *)*param_1;
LAB_000b2ba7:
  do {
    pbVar5 = pbVar2;
    iVar6 = 0;
    pbVar4 = param_2;
    do {
      do {
        bVar1 = *pbVar4;
        if (bVar1 == 0) {
          if (iVar6 == 0) {
            param_2 = pbVar4;
          }
          *param_1 = pbVar5;
          if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
            FUN_00017e10();
          }
          return param_2;
        }
        pbVar4 = pbVar4 + 1;
        pcVar3 = strchr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
                        (uint)bVar1);
      } while (pcVar3 == (char *)0x0);
      if (pcVar3 + -0xcdfe5 == (char *)0x40) {
        param_2 = pbVar4;
        pbVar2 = pbVar5;
        if (1 < iVar6) {
          *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] << 2;
          pbVar2 = pbVar5 + 1;
          if (iVar6 == 3) {
            pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;
            pbVar2 = pbVar5 + 2;
          }
        }
        goto LAB_000b2ba7;
      }
      local_24[iVar6] = (char)(pcVar3 + -0xcdfe5);
      iVar6 = iVar6 + 1;
    } while (iVar6 != 4);
    *pbVar5 = (byte)local_24[1] >> 4 | local_24[0] * '\x04';
    pbVar5[1] = local_24[1] << 4 | (byte)local_24[2] >> 2;
    pbVar5[2] = local_24[2] << 6 | local_24[3];
    param_2 = pbVar4;
    pbVar2 = pbVar5 + 3;
  } while( true );
}

