
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Unknown calling convention */

size_t wget_base64_encode(void *data,size_t length,char *dest)

{
  byte *pbVar1;
  byte bVar2;
  byte *pbVar3;
  char *pcVar4;
  char *pcVar5;
  
  pbVar1 = (byte *)((int)data + (length - 2));
  pbVar3 = (byte *)data;
  pcVar4 = dest;
  pcVar5 = dest;
  if (data < pbVar1) {
    do {
      pcVar4 = pcVar5 + 4;
      data = pbVar3 + 3;
      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*pbVar3 >> 2];
      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];
      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];
      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
                  [pbVar3[2] & 0x3f];
      pbVar3 = (byte *)data;
      pcVar5 = pcVar4;
    } while (data < pbVar1);
  }
  if (length % 3 == 1) {
                    /* WARNING: Load size is inaccurate */
    pcVar5 = pcVar4 + 4;
    *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*data >> 2];
                    /* WARNING: Load size is inaccurate */
    pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
                [(*data & 3) * 0x10];
    pcVar4[2] = '=';
    pcVar4[3] = '=';
  }
  else {
    pcVar5 = pcVar4;
    if (length % 3 == 2) {
                    /* WARNING: Load size is inaccurate */
      pcVar5 = pcVar4 + 4;
      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*data >> 2];
                    /* WARNING: Load size is inaccurate */
      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
                  [(*data & 3) * 0x10 + (uint)(*(byte *)((int)data + 1) >> 4)];
      bVar2 = *(byte *)((int)data + 1);
      pcVar4[3] = '=';
      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
                  [(bVar2 & 0xf) * 4];
    }
  }
  *pcVar5 = '\0';
  return (int)pcVar5 - (int)dest;
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

int FUN_0004db70(byte *param_1,uint param_2,char *param_3)

{
  byte *pbVar1;
  byte bVar2;
  byte *pbVar3;
  char *pcVar4;
  char *pcVar5;
  
  pbVar1 = param_1 + (param_2 - 2);
  pbVar3 = param_1;
  pcVar4 = param_3;
  pcVar5 = param_3;
  if (param_1 < pbVar1) {
    do {
      pcVar4 = pcVar5 + 4;
      param_1 = pbVar3 + 3;
      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"
                [*pbVar3 >> 2];
      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"
                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];
      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"
                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];
      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"
                  [pbVar3[2] & 0x3f];
      pbVar3 = param_1;
      pcVar5 = pcVar4;
    } while (param_1 < pbVar1);
  }
  if (param_2 % 3 == 1) {
    pcVar5 = pcVar4 + 4;
    *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"
              [*param_1 >> 2];
    pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"
                [(*param_1 & 3) * 0x10];
    pcVar4[2] = '=';
    pcVar4[3] = '=';
  }
  else {
    pcVar5 = pcVar4;
    if (param_2 % 3 == 2) {
      pcVar5 = pcVar4 + 4;
      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"
                [*param_1 >> 2];
      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"
                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];
      bVar2 = param_1[1];
      pcVar4[3] = '=';
      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"
                  [(bVar2 & 0xf) * 4];
    }
  }
  *pcVar5 = '\0';
  return (int)pcVar5 - (int)param_3;
}


PUSH EBP
PUSH EDI
PUSH ESI
CALL 0x000247f1
ADD ESI,0x53058
PUSH EBX
SUB ESP,0x4
MOV ECX,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [ESP + 0x1c]
MOV EBX,dword ptr [ESP + 0x20]
LEA EDI,[ECX + EAX*0x1 + -0x2]
CMP ECX,EDI
JNC 0x0004dc0b
LEA EAX,[ESI + 0xfffe1f50]
MOV dword ptr [ESP],EAX
NOP
MOVZX EDX,byte ptr [ECX]
MOV EAX,dword ptr [ESP]
ADD EBX,0x4
ADD ECX,0x3
SHR DL,0x2
MOVZX EDX,DL
MOVZX EDX,byte ptr [EAX + EDX*0x1]
MOV byte ptr [EBX + -0x4],DL
MOVZX EDX,byte ptr [ECX + -0x3]
MOVZX EAX,byte ptr [ECX + -0x2]
SHL EDX,0x4
SHR AL,0x4
AND EDX,0x30
MOVZX EBP,AL
MOV EAX,dword ptr [ESP]
ADD EDX,EBP
MOVZX EDX,byte ptr [EAX + EDX*0x1]
MOV byte ptr [EBX + -0x3],DL
MOVZX EDX,byte ptr [ECX + -0x2]
MOVZX EAX,byte ptr [ECX + -0x1]
SHL EDX,0x2
SHR AL,0x6
AND EDX,0x3c
MOVZX EBP,AL
MOV EAX,dword ptr [ESP]
ADD EDX,EBP
MOVZX EDX,byte ptr [EAX + EDX*0x1]
MOV byte ptr [EBX + -0x2],DL
MOVZX EDX,byte ptr [ECX + -0x1]
AND EDX,0x3f
MOVZX EDX,byte ptr [EAX + EDX*0x1]
MOV byte ptr [EBX + -0x1],DL
CMP EDI,ECX
JA 0x0004dba0
MOV EDX,0xaaaaaaab
MOV EAX,EDX
MUL dword ptr [ESP + 0x1c]
SHR EDX,0x1
LEA EAX,[EDX + EDX*0x2]
MOV EDX,dword ptr [ESP + 0x1c]
SUB EDX,EAX
CMP EDX,0x1
JZ 0x0004dc90
CMP EDX,0x2
JNZ 0x0004dc7b
MOVZX EAX,byte ptr [ECX]
ADD EBX,0x4
SHR AL,0x2
MOVZX EAX,AL
MOVZX EAX,byte ptr [ESI + EAX*0x1 + 0xfffe1f50]
MOV byte ptr [EBX + -0x4],AL
MOVZX EAX,byte ptr [ECX]
MOVZX EDX,byte ptr [ECX + 0x1]
SHL EAX,0x4
SHR DL,0x4
AND EAX,0x30
MOVZX EDX,DL
ADD EAX,EDX
MOVZX EAX,byte ptr [ESI + EAX*0x1 + 0xfffe1f50]
MOV byte ptr [EBX + -0x3],AL
MOVZX EAX,byte ptr [ECX + 0x1]
MOV byte ptr [EBX + -0x1],0x3d
SHL EAX,0x2
AND EAX,0x3c
MOVZX EAX,byte ptr [ESI + EAX*0x1 + 0xfffe1f50]
MOV byte ptr [EBX + -0x2],AL
MOV byte ptr [EBX],0x0
MOV EAX,EBX
SUB EAX,dword ptr [ESP + 0x20]
ADD ESP,0x4
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOVZX EAX,byte ptr [ECX]
ADD EBX,0x4
SHR AL,0x2
MOVZX EAX,AL
MOVZX EAX,byte ptr [ESI + EAX*0x1 + 0xfffe1f50]
MOV byte ptr [EBX + -0x4],AL
MOVZX EAX,byte ptr [ECX]
SHL EAX,0x4
AND EAX,0x30
MOVZX EAX,byte ptr [ESI + EAX*0x1 + 0xfffe1f50]
MOV byte ptr [EBX + -0x3],AL
MOV EAX,0x3d3d
MOV word ptr [EBX + -0x2],AX
JMP 0x0004dc7b
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nint FUN_0004db70(byte *param_1,uint param_2,char *param_3)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  byte *pbVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  pbVar1 = param_1 + (param_2 - 2);\n  pbVar3 = param_1;\n  pcVar4 = param_3;\n  pcVar5 = param_3;\n  if (param_1 < pbVar1) {\n    do {\n      pcVar4 = pcVar5 + 4;\n      param_1 = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = param_1;\n      pcVar5 = pcVar4;\n    } while (param_1 < pbVar1);\n  }\n  if (param_2 % 3 == 1) {\n    pcVar5 = pcVar4 + 4;\n    *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n              [*param_1 >> 2];\n    pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [(*param_1 & 3) * 0x10];\n    pcVar4[2] = '=';\n    pcVar4[3] = '=';\n  }\n  else {\n    pcVar5 = pcVar4;\n    if (param_2 % 3 == 2) {\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];\n      bVar2 = param_1[1];\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];\n    }\n  }\n  *pcVar5 = '\0';\n  return (int)pcVar5 - (int)param_3;\n}\n\n" comment (function_definition "int FUN_0004db70(byte *param_1,uint param_2,char *param_3)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  byte *pbVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  pbVar1 = param_1 + (param_2 - 2);\n  pbVar3 = param_1;\n  pcVar4 = param_3;\n  pcVar5 = param_3;\n  if (param_1 < pbVar1) {\n    do {\n      pcVar4 = pcVar5 + 4;\n      param_1 = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = param_1;\n      pcVar5 = pcVar4;\n    } while (param_1 < pbVar1);\n  }\n  if (param_2 % 3 == 1) {\n    pcVar5 = pcVar4 + 4;\n    *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n              [*param_1 >> 2];\n    pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [(*param_1 & 3) * 0x10];\n    pcVar4[2] = '=';\n    pcVar4[3] = '=';\n  }\n  else {\n    pcVar5 = pcVar4;\n    if (param_2 % 3 == 2) {\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];\n      bVar2 = param_1[1];\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];\n    }\n  }\n  *pcVar5 = '\0';\n  return (int)pcVar5 - (int)param_3;\n}" primitive_type (function_declarator "FUN_0004db70(byte *param_1,uint param_2,char *param_3)" identifier (parameter_list "(byte *param_1,uint param_2,char *param_3)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  byte bVar2;\n  byte *pbVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  pbVar1 = param_1 + (param_2 - 2);\n  pbVar3 = param_1;\n  pcVar4 = param_3;\n  pcVar5 = param_3;\n  if (param_1 < pbVar1) {\n    do {\n      pcVar4 = pcVar5 + 4;\n      param_1 = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = param_1;\n      pcVar5 = pcVar4;\n    } while (param_1 < pbVar1);\n  }\n  if (param_2 % 3 == 1) {\n    pcVar5 = pcVar4 + 4;\n    *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n              [*param_1 >> 2];\n    pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [(*param_1 & 3) * 0x10];\n    pcVar4[2] = '=';\n    pcVar4[3] = '=';\n  }\n  else {\n    pcVar5 = pcVar4;\n    if (param_2 % 3 == 2) {\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];\n      bVar2 = param_1[1];\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];\n    }\n  }\n  *pcVar5 = '\0';\n  return (int)pcVar5 - (int)param_3;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (expression_statement "pbVar1 = param_1 + (param_2 - 2);" (assignment_expression "pbVar1 = param_1 + (param_2 - 2)" identifier = (binary_expression "param_1 + (param_2 - 2)" identifier + (parenthesized_expression "(param_2 - 2)" ( (binary_expression "param_2 - 2" identifier - number_literal) )))) ;) (expression_statement "pbVar3 = param_1;" (assignment_expression "pbVar3 = param_1" identifier = identifier) ;) (expression_statement "pcVar4 = param_3;" (assignment_expression "pcVar4 = param_3" identifier = identifier) ;) (expression_statement "pcVar5 = param_3;" (assignment_expression "pcVar5 = param_3" identifier = identifier) ;) (if_statement "if (param_1 < pbVar1) {\n    do {\n      pcVar4 = pcVar5 + 4;\n      param_1 = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = param_1;\n      pcVar5 = pcVar4;\n    } while (param_1 < pbVar1);\n  }" if (parenthesized_expression "(param_1 < pbVar1)" ( (binary_expression "param_1 < pbVar1" identifier < identifier) )) (compound_statement "{\n    do {\n      pcVar4 = pcVar5 + 4;\n      param_1 = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = param_1;\n      pcVar5 = pcVar4;\n    } while (param_1 < pbVar1);\n  }" { (do_statement "do {\n      pcVar4 = pcVar5 + 4;\n      param_1 = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = param_1;\n      pcVar5 = pcVar4;\n    } while (param_1 < pbVar1);" do (compound_statement "{\n      pcVar4 = pcVar5 + 4;\n      param_1 = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = param_1;\n      pcVar5 = pcVar4;\n    }" { (expression_statement "pcVar4 = pcVar5 + 4;" (assignment_expression "pcVar4 = pcVar5 + 4" identifier = (binary_expression "pcVar5 + 4" identifier + number_literal)) ;) (expression_statement "param_1 = pbVar3 + 3;" (assignment_expression "param_1 = pbVar3 + 3" identifier = (binary_expression "pbVar3 + 3" identifier + number_literal)) ;) (expression_statement "*pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2];" (assignment_expression "*pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2]" (pointer_expression "*pcVar5" * identifier) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" " string_content ") [ (binary_expression "*pbVar3 >> 2" (pointer_expression "*pbVar3" * identifier) >> number_literal) ])) ;) (expression_statement "pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];" (assignment_expression "pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)]" (subscript_expression "pcVar5[1]" identifier [ number_literal ]) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" " string_content ") [ (binary_expression "(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)" (binary_expression "(*pbVar3 & 3) * 0x10" (parenthesized_expression "(*pbVar3 & 3)" ( (binary_expression "*pbVar3 & 3" (pointer_expression "*pbVar3" * identifier) & number_literal) )) * number_literal) + (call_expression "(uint)(pbVar3[1] >> 4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pbVar3[1] >> 4)" ( (binary_expression "pbVar3[1] >> 4" (subscript_expression "pbVar3[1]" identifier [ number_literal ]) >> number_literal) )))) ])) ;) (expression_statement "pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];" (assignment_expression "pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)]" (subscript_expression "pcVar5[2]" identifier [ number_literal ]) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" " string_content ") [ (binary_expression "(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)" (binary_expression "(pbVar3[1] & 0xf) * 4" (parenthesized_expression "(pbVar3[1] & 0xf)" ( (binary_expression "pbVar3[1] & 0xf" (subscript_expression "pbVar3[1]" identifier [ number_literal ]) & number_literal) )) * number_literal) + (call_expression "(uint)(pbVar3[2] >> 6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pbVar3[2] >> 6)" ( (binary_expression "pbVar3[2] >> 6" (subscript_expression "pbVar3[2]" identifier [ number_literal ]) >> number_literal) )))) ])) ;) (expression_statement "pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f];" (assignment_expression "pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f]" (subscript_expression "pcVar5[3]" identifier [ number_literal ]) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" " string_content ") [ (binary_expression "pbVar3[2] & 0x3f" (subscript_expression "pbVar3[2]" identifier [ number_literal ]) & number_literal) ])) ;) (expression_statement "pbVar3 = param_1;" (assignment_expression "pbVar3 = param_1" identifier = identifier) ;) (expression_statement "pcVar5 = pcVar4;" (assignment_expression "pcVar5 = pcVar4" identifier = identifier) ;) }) while (parenthesized_expression "(param_1 < pbVar1)" ( (binary_expression "param_1 < pbVar1" identifier < identifier) )) ;) })) (if_statement "if (param_2 % 3 == 1) {\n    pcVar5 = pcVar4 + 4;\n    *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n              [*param_1 >> 2];\n    pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [(*param_1 & 3) * 0x10];\n    pcVar4[2] = '=';\n    pcVar4[3] = '=';\n  }\n  else {\n    pcVar5 = pcVar4;\n    if (param_2 % 3 == 2) {\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];\n      bVar2 = param_1[1];\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];\n    }\n  }" if (parenthesized_expression "(param_2 % 3 == 1)" ( (binary_expression "param_2 % 3 == 1" (binary_expression "param_2 % 3" identifier % number_literal) == number_literal) )) (compound_statement "{\n    pcVar5 = pcVar4 + 4;\n    *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n              [*param_1 >> 2];\n    pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [(*param_1 & 3) * 0x10];\n    pcVar4[2] = '=';\n    pcVar4[3] = '=';\n  }" { (expression_statement "pcVar5 = pcVar4 + 4;" (assignment_expression "pcVar5 = pcVar4 + 4" identifier = (binary_expression "pcVar4 + 4" identifier + number_literal)) ;) (expression_statement "*pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n              [*param_1 >> 2];" (assignment_expression "*pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n              [*param_1 >> 2]" (pointer_expression "*pcVar4" * identifier) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n              [*param_1 >> 2]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" " string_content ") [ (binary_expression "*param_1 >> 2" (pointer_expression "*param_1" * identifier) >> number_literal) ])) ;) (expression_statement "pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [(*param_1 & 3) * 0x10];" (assignment_expression "pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [(*param_1 & 3) * 0x10]" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [(*param_1 & 3) * 0x10]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" " string_content ") [ (binary_expression "(*param_1 & 3) * 0x10" (parenthesized_expression "(*param_1 & 3)" ( (binary_expression "*param_1 & 3" (pointer_expression "*param_1" * identifier) & number_literal) )) * number_literal) ])) ;) (expression_statement "pcVar4[2] = '=';" (assignment_expression "pcVar4[2] = '='" (subscript_expression "pcVar4[2]" identifier [ number_literal ]) = (char_literal "'='" ' character ')) ;) (expression_statement "pcVar4[3] = '=';" (assignment_expression "pcVar4[3] = '='" (subscript_expression "pcVar4[3]" identifier [ number_literal ]) = (char_literal "'='" ' character ')) ;) }) (else_clause "else {\n    pcVar5 = pcVar4;\n    if (param_2 % 3 == 2) {\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];\n      bVar2 = param_1[1];\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];\n    }\n  }" else (compound_statement "{\n    pcVar5 = pcVar4;\n    if (param_2 % 3 == 2) {\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];\n      bVar2 = param_1[1];\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];\n    }\n  }" { (expression_statement "pcVar5 = pcVar4;" (assignment_expression "pcVar5 = pcVar4" identifier = identifier) ;) (if_statement "if (param_2 % 3 == 2) {\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];\n      bVar2 = param_1[1];\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];\n    }" if (parenthesized_expression "(param_2 % 3 == 2)" ( (binary_expression "param_2 % 3 == 2" (binary_expression "param_2 % 3" identifier % number_literal) == number_literal) )) (compound_statement "{\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];\n      bVar2 = param_1[1];\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];\n    }" { (expression_statement "pcVar5 = pcVar4 + 4;" (assignment_expression "pcVar5 = pcVar4 + 4" identifier = (binary_expression "pcVar4 + 4" identifier + number_literal)) ;) (expression_statement "*pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];" (assignment_expression "*pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2]" (pointer_expression "*pcVar4" * identifier) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" " string_content ") [ (binary_expression "*param_1 >> 2" (pointer_expression "*param_1" * identifier) >> number_literal) ])) ;) (expression_statement "pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];" (assignment_expression "pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)]" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" " string_content ") [ (binary_expression "(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)" (binary_expression "(*param_1 & 3) * 0x10" (parenthesized_expression "(*param_1 & 3)" ( (binary_expression "*param_1 & 3" (pointer_expression "*param_1" * identifier) & number_literal) )) * number_literal) + (call_expression "(uint)(param_1[1] >> 4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[1] >> 4)" ( (binary_expression "param_1[1] >> 4" (subscript_expression "param_1[1]" identifier [ number_literal ]) >> number_literal) )))) ])) ;) (expression_statement "bVar2 = param_1[1];" (assignment_expression "bVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar4[3] = '=';" (assignment_expression "pcVar4[3] = '='" (subscript_expression "pcVar4[3]" identifier [ number_literal ]) = (char_literal "'='" ' character ')) ;) (expression_statement "pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];" (assignment_expression "pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4]" (subscript_expression "pcVar4[2]" identifier [ number_literal ]) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" " string_content ") [ (binary_expression "(bVar2 & 0xf) * 4" (parenthesized_expression "(bVar2 & 0xf)" ( (binary_expression "bVar2 & 0xf" identifier & number_literal) )) * number_literal) ])) ;) })) }))) (expression_statement "*pcVar5 = '\0';" (assignment_expression "*pcVar5 = '\0'" (pointer_expression "*pcVar5" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return (int)pcVar5 - (int)param_3;" return (binary_expression "(int)pcVar5 - (int)param_3" (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* WARNING: Unknown calling convention */\n\nsize_t wget_base64_encode(void *data,size_t length,char *dest)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  byte *pbVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  pbVar1 = (byte *)((int)data + (length - 2));\n  pbVar3 = (byte *)data;\n  pcVar4 = dest;\n  pcVar5 = dest;\n  if (data < pbVar1) {\n    do {\n      pcVar4 = pcVar5 + 4;\n      data = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = (byte *)data;\n      pcVar5 = pcVar4;\n    } while (data < pbVar1);\n  }\n  if (length % 3 == 1) {\n                    /* WARNING: Load size is inaccurate */\n    pcVar5 = pcVar4 + 4;\n    *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*data >> 2];\n                    /* WARNING: Load size is inaccurate */\n    pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                [(*data & 3) * 0x10];\n    pcVar4[2] = '=';\n    pcVar4[3] = '=';\n  }\n  else {\n    pcVar5 = pcVar4;\n    if (length % 3 == 2) {\n                    /* WARNING: Load size is inaccurate */\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*data >> 2];\n                    /* WARNING: Load size is inaccurate */\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(*data & 3) * 0x10 + (uint)(*(byte *)((int)data + 1) >> 4)];\n      bVar2 = *(byte *)((int)data + 1);\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(bVar2 & 0xf) * 4];\n    }\n  }\n  *pcVar5 = '\0';\n  return (int)pcVar5 - (int)dest;\n}\n\n" comment comment (function_definition "size_t wget_base64_encode(void *data,size_t length,char *dest)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  byte *pbVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  pbVar1 = (byte *)((int)data + (length - 2));\n  pbVar3 = (byte *)data;\n  pcVar4 = dest;\n  pcVar5 = dest;\n  if (data < pbVar1) {\n    do {\n      pcVar4 = pcVar5 + 4;\n      data = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = (byte *)data;\n      pcVar5 = pcVar4;\n    } while (data < pbVar1);\n  }\n  if (length % 3 == 1) {\n                    /* WARNING: Load size is inaccurate */\n    pcVar5 = pcVar4 + 4;\n    *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*data >> 2];\n                    /* WARNING: Load size is inaccurate */\n    pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                [(*data & 3) * 0x10];\n    pcVar4[2] = '=';\n    pcVar4[3] = '=';\n  }\n  else {\n    pcVar5 = pcVar4;\n    if (length % 3 == 2) {\n                    /* WARNING: Load size is inaccurate */\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*data >> 2];\n                    /* WARNING: Load size is inaccurate */\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(*data & 3) * 0x10 + (uint)(*(byte *)((int)data + 1) >> 4)];\n      bVar2 = *(byte *)((int)data + 1);\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(bVar2 & 0xf) * 4];\n    }\n  }\n  *pcVar5 = '\0';\n  return (int)pcVar5 - (int)dest;\n}" primitive_type (function_declarator "wget_base64_encode(void *data,size_t length,char *dest)" identifier (parameter_list "(void *data,size_t length,char *dest)" ( (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) , (parameter_declaration "size_t length" primitive_type identifier) , (parameter_declaration "char *dest" primitive_type (pointer_declarator "*dest" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  byte bVar2;\n  byte *pbVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  pbVar1 = (byte *)((int)data + (length - 2));\n  pbVar3 = (byte *)data;\n  pcVar4 = dest;\n  pcVar5 = dest;\n  if (data < pbVar1) {\n    do {\n      pcVar4 = pcVar5 + 4;\n      data = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = (byte *)data;\n      pcVar5 = pcVar4;\n    } while (data < pbVar1);\n  }\n  if (length % 3 == 1) {\n                    /* WARNING: Load size is inaccurate */\n    pcVar5 = pcVar4 + 4;\n    *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*data >> 2];\n                    /* WARNING: Load size is inaccurate */\n    pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                [(*data & 3) * 0x10];\n    pcVar4[2] = '=';\n    pcVar4[3] = '=';\n  }\n  else {\n    pcVar5 = pcVar4;\n    if (length % 3 == 2) {\n                    /* WARNING: Load size is inaccurate */\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*data >> 2];\n                    /* WARNING: Load size is inaccurate */\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(*data & 3) * 0x10 + (uint)(*(byte *)((int)data + 1) >> 4)];\n      bVar2 = *(byte *)((int)data + 1);\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(bVar2 & 0xf) * 4];\n    }\n  }\n  *pcVar5 = '\0';\n  return (int)pcVar5 - (int)dest;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (expression_statement "pbVar1 = (byte *)((int)data + (length - 2));" (assignment_expression "pbVar1 = (byte *)((int)data + (length - 2))" identifier = (cast_expression "(byte *)((int)data + (length - 2))" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + (length - 2))" ( (binary_expression "(int)data + (length - 2)" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(length - 2)" ( (binary_expression "length - 2" identifier - number_literal) ))) )))) ;) (expression_statement "pbVar3 = (byte *)data;" (assignment_expression "pbVar3 = (byte *)data" identifier = (cast_expression "(byte *)data" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pcVar4 = dest;" (assignment_expression "pcVar4 = dest" identifier = identifier) ;) (expression_statement "pcVar5 = dest;" (assignment_expression "pcVar5 = dest" identifier = identifier) ;) (if_statement "if (data < pbVar1) {\n    do {\n      pcVar4 = pcVar5 + 4;\n      data = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = (byte *)data;\n      pcVar5 = pcVar4;\n    } while (data < pbVar1);\n  }" if (parenthesized_expression "(data < pbVar1)" ( (binary_expression "data < pbVar1" identifier < identifier) )) (compound_statement "{\n    do {\n      pcVar4 = pcVar5 + 4;\n      data = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = (byte *)data;\n      pcVar5 = pcVar4;\n    } while (data < pbVar1);\n  }" { (do_statement "do {\n      pcVar4 = pcVar5 + 4;\n      data = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = (byte *)data;\n      pcVar5 = pcVar4;\n    } while (data < pbVar1);" do (compound_statement "{\n      pcVar4 = pcVar5 + 4;\n      data = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = (byte *)data;\n      pcVar5 = pcVar4;\n    }" { (expression_statement "pcVar4 = pcVar5 + 4;" (assignment_expression "pcVar4 = pcVar5 + 4" identifier = (binary_expression "pcVar5 + 4" identifier + number_literal)) ;) (expression_statement "data = pbVar3 + 3;" (assignment_expression "data = pbVar3 + 3" identifier = (binary_expression "pbVar3 + 3" identifier + number_literal)) ;) (expression_statement "*pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*pbVar3 >> 2];" (assignment_expression "*pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*pbVar3 >> 2]" (pointer_expression "*pcVar5" * identifier) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*pbVar3 >> 2]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"" " string_content ") [ (binary_expression "*pbVar3 >> 2" (pointer_expression "*pbVar3" * identifier) >> number_literal) ])) ;) (expression_statement "pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];" (assignment_expression "pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)]" (subscript_expression "pcVar5[1]" identifier [ number_literal ]) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"" " string_content ") [ (binary_expression "(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)" (binary_expression "(*pbVar3 & 3) * 0x10" (parenthesized_expression "(*pbVar3 & 3)" ( (binary_expression "*pbVar3 & 3" (pointer_expression "*pbVar3" * identifier) & number_literal) )) * number_literal) + (call_expression "(uint)(pbVar3[1] >> 4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pbVar3[1] >> 4)" ( (binary_expression "pbVar3[1] >> 4" (subscript_expression "pbVar3[1]" identifier [ number_literal ]) >> number_literal) )))) ])) ;) (expression_statement "pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];" (assignment_expression "pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)]" (subscript_expression "pcVar5[2]" identifier [ number_literal ]) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"" " string_content ") [ (binary_expression "(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)" (binary_expression "(pbVar3[1] & 0xf) * 4" (parenthesized_expression "(pbVar3[1] & 0xf)" ( (binary_expression "pbVar3[1] & 0xf" (subscript_expression "pbVar3[1]" identifier [ number_literal ]) & number_literal) )) * number_literal) + (call_expression "(uint)(pbVar3[2] >> 6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pbVar3[2] >> 6)" ( (binary_expression "pbVar3[2] >> 6" (subscript_expression "pbVar3[2]" identifier [ number_literal ]) >> number_literal) )))) ])) ;) (expression_statement "pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [pbVar3[2] & 0x3f];" (assignment_expression "pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [pbVar3[2] & 0x3f]" (subscript_expression "pcVar5[3]" identifier [ number_literal ]) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [pbVar3[2] & 0x3f]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"" " string_content ") [ (binary_expression "pbVar3[2] & 0x3f" (subscript_expression "pbVar3[2]" identifier [ number_literal ]) & number_literal) ])) ;) (expression_statement "pbVar3 = (byte *)data;" (assignment_expression "pbVar3 = (byte *)data" identifier = (cast_expression "(byte *)data" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pcVar5 = pcVar4;" (assignment_expression "pcVar5 = pcVar4" identifier = identifier) ;) }) while (parenthesized_expression "(data < pbVar1)" ( (binary_expression "data < pbVar1" identifier < identifier) )) ;) })) (if_statement "if (length % 3 == 1) {\n                    /* WARNING: Load size is inaccurate */\n    pcVar5 = pcVar4 + 4;\n    *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*data >> 2];\n                    /* WARNING: Load size is inaccurate */\n    pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                [(*data & 3) * 0x10];\n    pcVar4[2] = '=';\n    pcVar4[3] = '=';\n  }\n  else {\n    pcVar5 = pcVar4;\n    if (length % 3 == 2) {\n                    /* WARNING: Load size is inaccurate */\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*data >> 2];\n                    /* WARNING: Load size is inaccurate */\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(*data & 3) * 0x10 + (uint)(*(byte *)((int)data + 1) >> 4)];\n      bVar2 = *(byte *)((int)data + 1);\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(bVar2 & 0xf) * 4];\n    }\n  }" if (parenthesized_expression "(length % 3 == 1)" ( (binary_expression "length % 3 == 1" (binary_expression "length % 3" identifier % number_literal) == number_literal) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n    pcVar5 = pcVar4 + 4;\n    *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*data >> 2];\n                    /* WARNING: Load size is inaccurate */\n    pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                [(*data & 3) * 0x10];\n    pcVar4[2] = '=';\n    pcVar4[3] = '=';\n  }" { comment (expression_statement "pcVar5 = pcVar4 + 4;" (assignment_expression "pcVar5 = pcVar4 + 4" identifier = (binary_expression "pcVar4 + 4" identifier + number_literal)) ;) (expression_statement "*pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*data >> 2];" (assignment_expression "*pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*data >> 2]" (pointer_expression "*pcVar4" * identifier) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*data >> 2]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"" " string_content ") [ (binary_expression "*data >> 2" (pointer_expression "*data" * identifier) >> number_literal) ])) ;) comment (expression_statement "pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                [(*data & 3) * 0x10];" (assignment_expression "pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                [(*data & 3) * 0x10]" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                [(*data & 3) * 0x10]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"" " string_content ") [ (binary_expression "(*data & 3) * 0x10" (parenthesized_expression "(*data & 3)" ( (binary_expression "*data & 3" (pointer_expression "*data" * identifier) & number_literal) )) * number_literal) ])) ;) (expression_statement "pcVar4[2] = '=';" (assignment_expression "pcVar4[2] = '='" (subscript_expression "pcVar4[2]" identifier [ number_literal ]) = (char_literal "'='" ' character ')) ;) (expression_statement "pcVar4[3] = '=';" (assignment_expression "pcVar4[3] = '='" (subscript_expression "pcVar4[3]" identifier [ number_literal ]) = (char_literal "'='" ' character ')) ;) }) (else_clause "else {\n    pcVar5 = pcVar4;\n    if (length % 3 == 2) {\n                    /* WARNING: Load size is inaccurate */\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*data >> 2];\n                    /* WARNING: Load size is inaccurate */\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(*data & 3) * 0x10 + (uint)(*(byte *)((int)data + 1) >> 4)];\n      bVar2 = *(byte *)((int)data + 1);\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(bVar2 & 0xf) * 4];\n    }\n  }" else (compound_statement "{\n    pcVar5 = pcVar4;\n    if (length % 3 == 2) {\n                    /* WARNING: Load size is inaccurate */\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*data >> 2];\n                    /* WARNING: Load size is inaccurate */\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(*data & 3) * 0x10 + (uint)(*(byte *)((int)data + 1) >> 4)];\n      bVar2 = *(byte *)((int)data + 1);\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(bVar2 & 0xf) * 4];\n    }\n  }" { (expression_statement "pcVar5 = pcVar4;" (assignment_expression "pcVar5 = pcVar4" identifier = identifier) ;) (if_statement "if (length % 3 == 2) {\n                    /* WARNING: Load size is inaccurate */\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*data >> 2];\n                    /* WARNING: Load size is inaccurate */\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(*data & 3) * 0x10 + (uint)(*(byte *)((int)data + 1) >> 4)];\n      bVar2 = *(byte *)((int)data + 1);\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(bVar2 & 0xf) * 4];\n    }" if (parenthesized_expression "(length % 3 == 2)" ( (binary_expression "length % 3 == 2" (binary_expression "length % 3" identifier % number_literal) == number_literal) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*data >> 2];\n                    /* WARNING: Load size is inaccurate */\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(*data & 3) * 0x10 + (uint)(*(byte *)((int)data + 1) >> 4)];\n      bVar2 = *(byte *)((int)data + 1);\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(bVar2 & 0xf) * 4];\n    }" { comment (expression_statement "pcVar5 = pcVar4 + 4;" (assignment_expression "pcVar5 = pcVar4 + 4" identifier = (binary_expression "pcVar4 + 4" identifier + number_literal)) ;) (expression_statement "*pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*data >> 2];" (assignment_expression "*pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*data >> 2]" (pointer_expression "*pcVar4" * identifier) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*data >> 2]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"" " string_content ") [ (binary_expression "*data >> 2" (pointer_expression "*data" * identifier) >> number_literal) ])) ;) comment (expression_statement "pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(*data & 3) * 0x10 + (uint)(*(byte *)((int)data + 1) >> 4)];" (assignment_expression "pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(*data & 3) * 0x10 + (uint)(*(byte *)((int)data + 1) >> 4)]" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(*data & 3) * 0x10 + (uint)(*(byte *)((int)data + 1) >> 4)]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"" " string_content ") [ (binary_expression "(*data & 3) * 0x10 + (uint)(*(byte *)((int)data + 1) >> 4)" (binary_expression "(*data & 3) * 0x10" (parenthesized_expression "(*data & 3)" ( (binary_expression "*data & 3" (pointer_expression "*data" * identifier) & number_literal) )) * number_literal) + (call_expression "(uint)(*(byte *)((int)data + 1) >> 4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(byte *)((int)data + 1) >> 4)" ( (binary_expression "*(byte *)((int)data + 1) >> 4" (pointer_expression "*(byte *)((int)data + 1)" * (cast_expression "(byte *)((int)data + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 1)" ( (binary_expression "(int)data + 1" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) >> number_literal) )))) ])) ;) (expression_statement "bVar2 = *(byte *)((int)data + 1);" (assignment_expression "bVar2 = *(byte *)((int)data + 1)" identifier = (pointer_expression "*(byte *)((int)data + 1)" * (cast_expression "(byte *)((int)data + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 1)" ( (binary_expression "(int)data + 1" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "pcVar4[3] = '=';" (assignment_expression "pcVar4[3] = '='" (subscript_expression "pcVar4[3]" identifier [ number_literal ]) = (char_literal "'='" ' character ')) ;) (expression_statement "pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(bVar2 & 0xf) * 4];" (assignment_expression "pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(bVar2 & 0xf) * 4]" (subscript_expression "pcVar4[2]" identifier [ number_literal ]) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n                  [(bVar2 & 0xf) * 4]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"" " string_content ") [ (binary_expression "(bVar2 & 0xf) * 4" (parenthesized_expression "(bVar2 & 0xf)" ( (binary_expression "bVar2 & 0xf" identifier & number_literal) )) * number_literal) ])) ;) })) }))) (expression_statement "*pcVar5 = '\0';" (assignment_expression "*pcVar5 = '\0'" (pointer_expression "*pcVar5" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return (int)pcVar5 - (int)dest;" return (binary_expression "(int)pcVar5 - (int)dest" (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)dest" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })))
(translation_unit "int FUN_0004db70(byte *param_1,uint param_2,char *param_3)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  byte *pbVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  pbVar1 = param_1 + (param_2 - 2);\n  pbVar3 = param_1;\n  pcVar4 = param_3;\n  pcVar5 = param_3;\n  if (param_1 < pbVar1) {\n    do {\n      pcVar4 = pcVar5 + 4;\n      param_1 = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = param_1;\n      pcVar5 = pcVar4;\n    } while (param_1 < pbVar1);\n  }\n  if (param_2 % 3 == 1) {\n    pcVar5 = pcVar4 + 4;\n    *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n              [*param_1 >> 2];\n    pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [(*param_1 & 3) * 0x10];\n    pcVar4[2] = '=';\n    pcVar4[3] = '=';\n  }\n  else {\n    pcVar5 = pcVar4;\n    if (param_2 % 3 == 2) {\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];\n      bVar2 = param_1[1];\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];\n    }\n  }\n  *pcVar5 = '\0';\n  return (int)pcVar5 - (int)param_3;\n}\n\n" (function_definition "int FUN_0004db70(byte *param_1,uint param_2,char *param_3)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  byte *pbVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  pbVar1 = param_1 + (param_2 - 2);\n  pbVar3 = param_1;\n  pcVar4 = param_3;\n  pcVar5 = param_3;\n  if (param_1 < pbVar1) {\n    do {\n      pcVar4 = pcVar5 + 4;\n      param_1 = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = param_1;\n      pcVar5 = pcVar4;\n    } while (param_1 < pbVar1);\n  }\n  if (param_2 % 3 == 1) {\n    pcVar5 = pcVar4 + 4;\n    *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n              [*param_1 >> 2];\n    pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [(*param_1 & 3) * 0x10];\n    pcVar4[2] = '=';\n    pcVar4[3] = '=';\n  }\n  else {\n    pcVar5 = pcVar4;\n    if (param_2 % 3 == 2) {\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];\n      bVar2 = param_1[1];\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];\n    }\n  }\n  *pcVar5 = '\0';\n  return (int)pcVar5 - (int)param_3;\n}" primitive_type (function_declarator "FUN_0004db70(byte *param_1,uint param_2,char *param_3)" identifier (parameter_list "(byte *param_1,uint param_2,char *param_3)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  byte bVar2;\n  byte *pbVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  pbVar1 = param_1 + (param_2 - 2);\n  pbVar3 = param_1;\n  pcVar4 = param_3;\n  pcVar5 = param_3;\n  if (param_1 < pbVar1) {\n    do {\n      pcVar4 = pcVar5 + 4;\n      param_1 = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = param_1;\n      pcVar5 = pcVar4;\n    } while (param_1 < pbVar1);\n  }\n  if (param_2 % 3 == 1) {\n    pcVar5 = pcVar4 + 4;\n    *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n              [*param_1 >> 2];\n    pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [(*param_1 & 3) * 0x10];\n    pcVar4[2] = '=';\n    pcVar4[3] = '=';\n  }\n  else {\n    pcVar5 = pcVar4;\n    if (param_2 % 3 == 2) {\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];\n      bVar2 = param_1[1];\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];\n    }\n  }\n  *pcVar5 = '\0';\n  return (int)pcVar5 - (int)param_3;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (expression_statement "pbVar1 = param_1 + (param_2 - 2);" (assignment_expression "pbVar1 = param_1 + (param_2 - 2)" identifier = (binary_expression "param_1 + (param_2 - 2)" identifier + (parenthesized_expression "(param_2 - 2)" ( (binary_expression "param_2 - 2" identifier - number_literal) )))) ;) (expression_statement "pbVar3 = param_1;" (assignment_expression "pbVar3 = param_1" identifier = identifier) ;) (expression_statement "pcVar4 = param_3;" (assignment_expression "pcVar4 = param_3" identifier = identifier) ;) (expression_statement "pcVar5 = param_3;" (assignment_expression "pcVar5 = param_3" identifier = identifier) ;) (if_statement "if (param_1 < pbVar1) {\n    do {\n      pcVar4 = pcVar5 + 4;\n      param_1 = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = param_1;\n      pcVar5 = pcVar4;\n    } while (param_1 < pbVar1);\n  }" if (parenthesized_expression "(param_1 < pbVar1)" ( (binary_expression "param_1 < pbVar1" identifier < identifier) )) (compound_statement "{\n    do {\n      pcVar4 = pcVar5 + 4;\n      param_1 = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = param_1;\n      pcVar5 = pcVar4;\n    } while (param_1 < pbVar1);\n  }" { (do_statement "do {\n      pcVar4 = pcVar5 + 4;\n      param_1 = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = param_1;\n      pcVar5 = pcVar4;\n    } while (param_1 < pbVar1);" do (compound_statement "{\n      pcVar4 = pcVar5 + 4;\n      param_1 = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = param_1;\n      pcVar5 = pcVar4;\n    }" { (expression_statement "pcVar4 = pcVar5 + 4;" (assignment_expression "pcVar4 = pcVar5 + 4" identifier = (binary_expression "pcVar5 + 4" identifier + number_literal)) ;) (expression_statement "param_1 = pbVar3 + 3;" (assignment_expression "param_1 = pbVar3 + 3" identifier = (binary_expression "pbVar3 + 3" identifier + number_literal)) ;) (expression_statement "*pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2];" (assignment_expression "*pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2]" (pointer_expression "*pcVar5" * identifier) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" " string_content ") [ (binary_expression "*pbVar3 >> 2" (pointer_expression "*pbVar3" * identifier) >> number_literal) ])) ;) (expression_statement "pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];" (assignment_expression "pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)]" (subscript_expression "pcVar5[1]" identifier [ number_literal ]) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" " string_content ") [ (binary_expression "(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)" (binary_expression "(*pbVar3 & 3) * 0x10" (parenthesized_expression "(*pbVar3 & 3)" ( (binary_expression "*pbVar3 & 3" (pointer_expression "*pbVar3" * identifier) & number_literal) )) * number_literal) + (call_expression "(uint)(pbVar3[1] >> 4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pbVar3[1] >> 4)" ( (binary_expression "pbVar3[1] >> 4" (subscript_expression "pbVar3[1]" identifier [ number_literal ]) >> number_literal) )))) ])) ;) (expression_statement "pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];" (assignment_expression "pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)]" (subscript_expression "pcVar5[2]" identifier [ number_literal ]) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" " string_content ") [ (binary_expression "(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)" (binary_expression "(pbVar3[1] & 0xf) * 4" (parenthesized_expression "(pbVar3[1] & 0xf)" ( (binary_expression "pbVar3[1] & 0xf" (subscript_expression "pbVar3[1]" identifier [ number_literal ]) & number_literal) )) * number_literal) + (call_expression "(uint)(pbVar3[2] >> 6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pbVar3[2] >> 6)" ( (binary_expression "pbVar3[2] >> 6" (subscript_expression "pbVar3[2]" identifier [ number_literal ]) >> number_literal) )))) ])) ;) (expression_statement "pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f];" (assignment_expression "pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f]" (subscript_expression "pcVar5[3]" identifier [ number_literal ]) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" " string_content ") [ (binary_expression "pbVar3[2] & 0x3f" (subscript_expression "pbVar3[2]" identifier [ number_literal ]) & number_literal) ])) ;) (expression_statement "pbVar3 = param_1;" (assignment_expression "pbVar3 = param_1" identifier = identifier) ;) (expression_statement "pcVar5 = pcVar4;" (assignment_expression "pcVar5 = pcVar4" identifier = identifier) ;) }) while (parenthesized_expression "(param_1 < pbVar1)" ( (binary_expression "param_1 < pbVar1" identifier < identifier) )) ;) })) (if_statement "if (param_2 % 3 == 1) {\n    pcVar5 = pcVar4 + 4;\n    *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n              [*param_1 >> 2];\n    pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [(*param_1 & 3) * 0x10];\n    pcVar4[2] = '=';\n    pcVar4[3] = '=';\n  }\n  else {\n    pcVar5 = pcVar4;\n    if (param_2 % 3 == 2) {\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];\n      bVar2 = param_1[1];\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];\n    }\n  }" if (parenthesized_expression "(param_2 % 3 == 1)" ( (binary_expression "param_2 % 3 == 1" (binary_expression "param_2 % 3" identifier % number_literal) == number_literal) )) (compound_statement "{\n    pcVar5 = pcVar4 + 4;\n    *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n              [*param_1 >> 2];\n    pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [(*param_1 & 3) * 0x10];\n    pcVar4[2] = '=';\n    pcVar4[3] = '=';\n  }" { (expression_statement "pcVar5 = pcVar4 + 4;" (assignment_expression "pcVar5 = pcVar4 + 4" identifier = (binary_expression "pcVar4 + 4" identifier + number_literal)) ;) (expression_statement "*pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n              [*param_1 >> 2];" (assignment_expression "*pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n              [*param_1 >> 2]" (pointer_expression "*pcVar4" * identifier) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n              [*param_1 >> 2]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" " string_content ") [ (binary_expression "*param_1 >> 2" (pointer_expression "*param_1" * identifier) >> number_literal) ])) ;) (expression_statement "pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [(*param_1 & 3) * 0x10];" (assignment_expression "pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [(*param_1 & 3) * 0x10]" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [(*param_1 & 3) * 0x10]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" " string_content ") [ (binary_expression "(*param_1 & 3) * 0x10" (parenthesized_expression "(*param_1 & 3)" ( (binary_expression "*param_1 & 3" (pointer_expression "*param_1" * identifier) & number_literal) )) * number_literal) ])) ;) (expression_statement "pcVar4[2] = '=';" (assignment_expression "pcVar4[2] = '='" (subscript_expression "pcVar4[2]" identifier [ number_literal ]) = (char_literal "'='" ' character ')) ;) (expression_statement "pcVar4[3] = '=';" (assignment_expression "pcVar4[3] = '='" (subscript_expression "pcVar4[3]" identifier [ number_literal ]) = (char_literal "'='" ' character ')) ;) }) (else_clause "else {\n    pcVar5 = pcVar4;\n    if (param_2 % 3 == 2) {\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];\n      bVar2 = param_1[1];\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];\n    }\n  }" else (compound_statement "{\n    pcVar5 = pcVar4;\n    if (param_2 % 3 == 2) {\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];\n      bVar2 = param_1[1];\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];\n    }\n  }" { (expression_statement "pcVar5 = pcVar4;" (assignment_expression "pcVar5 = pcVar4" identifier = identifier) ;) (if_statement "if (param_2 % 3 == 2) {\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];\n      bVar2 = param_1[1];\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];\n    }" if (parenthesized_expression "(param_2 % 3 == 2)" ( (binary_expression "param_2 % 3 == 2" (binary_expression "param_2 % 3" identifier % number_literal) == number_literal) )) (compound_statement "{\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];\n      bVar2 = param_1[1];\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];\n    }" { (expression_statement "pcVar5 = pcVar4 + 4;" (assignment_expression "pcVar5 = pcVar4 + 4" identifier = (binary_expression "pcVar4 + 4" identifier + number_literal)) ;) (expression_statement "*pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];" (assignment_expression "*pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2]" (pointer_expression "*pcVar4" * identifier) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" " string_content ") [ (binary_expression "*param_1 >> 2" (pointer_expression "*param_1" * identifier) >> number_literal) ])) ;) (expression_statement "pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];" (assignment_expression "pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)]" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" " string_content ") [ (binary_expression "(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)" (binary_expression "(*param_1 & 3) * 0x10" (parenthesized_expression "(*param_1 & 3)" ( (binary_expression "*param_1 & 3" (pointer_expression "*param_1" * identifier) & number_literal) )) * number_literal) + (call_expression "(uint)(param_1[1] >> 4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_1[1] >> 4)" ( (binary_expression "param_1[1] >> 4" (subscript_expression "param_1[1]" identifier [ number_literal ]) >> number_literal) )))) ])) ;) (expression_statement "bVar2 = param_1[1];" (assignment_expression "bVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar4[3] = '=';" (assignment_expression "pcVar4[3] = '='" (subscript_expression "pcVar4[3]" identifier [ number_literal ]) = (char_literal "'='" ' character ')) ;) (expression_statement "pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];" (assignment_expression "pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4]" (subscript_expression "pcVar4[2]" identifier [ number_literal ]) = (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" " string_content ") [ (binary_expression "(bVar2 & 0xf) * 4" (parenthesized_expression "(bVar2 & 0xf)" ( (binary_expression "bVar2 & 0xf" identifier & number_literal) )) * number_literal) ])) ;) })) }))) (expression_statement "*pcVar5 = '\0';" (assignment_expression "*pcVar5 = '\0'" (pointer_expression "*pcVar5" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return (int)pcVar5 - (int)param_3;" return (binary_expression "(int)pcVar5 - (int)param_3" (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT - LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression (string_literal " string_content ") [ (binary_expression (pointer_expression * IDENT) >> LIT) ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression (string_literal " string_content ") [ (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) * LIT) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) >> LIT) )))) ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression (string_literal " string_content ") [ (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) * LIT) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) >> LIT) )))) ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression (string_literal " string_content ") [ (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT % LIT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression (string_literal " string_content ") [ (binary_expression (pointer_expression * IDENT) >> LIT) ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression (string_literal " string_content ") [ (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) * LIT) ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' character ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' character ')) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT % LIT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression (string_literal " string_content ") [ (binary_expression (pointer_expression * IDENT) >> LIT) ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression (string_literal " string_content ") [ (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) * LIT) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) >> LIT) )))) ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' character ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression (string_literal " string_content ") [ (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) * LIT) ])) ;) })) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (return_statement return (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })))
(function_definition "int FUN_0004db70(byte *param_1,uint param_2,char *param_3)\n\n{\n  byte *pbVar1;\n  byte bVar2;\n  byte *pbVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  pbVar1 = param_1 + (param_2 - 2);\n  pbVar3 = param_1;\n  pcVar4 = param_3;\n  pcVar5 = param_3;\n  if (param_1 < pbVar1) {\n    do {\n      pcVar4 = pcVar5 + 4;\n      param_1 = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = param_1;\n      pcVar5 = pcVar4;\n    } while (param_1 < pbVar1);\n  }\n  if (param_2 % 3 == 1) {\n    pcVar5 = pcVar4 + 4;\n    *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n              [*param_1 >> 2];\n    pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [(*param_1 & 3) * 0x10];\n    pcVar4[2] = '=';\n    pcVar4[3] = '=';\n  }\n  else {\n    pcVar5 = pcVar4;\n    if (param_2 % 3 == 2) {\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];\n      bVar2 = param_1[1];\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];\n    }\n  }\n  *pcVar5 = '\0';\n  return (int)pcVar5 - (int)param_3;\n}" (primitive_type "int") (function_declarator "FUN_0004db70(byte *param_1,uint param_2,char *param_3)" (identifier "FUN_0004db70") (parameter_list "(byte *param_1,uint param_2,char *param_3)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  byte *pbVar1;\n  byte bVar2;\n  byte *pbVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  pbVar1 = param_1 + (param_2 - 2);\n  pbVar3 = param_1;\n  pcVar4 = param_3;\n  pcVar5 = param_3;\n  if (param_1 < pbVar1) {\n    do {\n      pcVar4 = pcVar5 + 4;\n      param_1 = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = param_1;\n      pcVar5 = pcVar4;\n    } while (param_1 < pbVar1);\n  }\n  if (param_2 % 3 == 1) {\n    pcVar5 = pcVar4 + 4;\n    *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n              [*param_1 >> 2];\n    pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [(*param_1 & 3) * 0x10];\n    pcVar4[2] = '=';\n    pcVar4[3] = '=';\n  }\n  else {\n    pcVar5 = pcVar4;\n    if (param_2 % 3 == 2) {\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];\n      bVar2 = param_1[1];\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];\n    }\n  }\n  *pcVar5 = '\0';\n  return (int)pcVar5 - (int)param_3;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (expression_statement "pbVar1 = param_1 + (param_2 - 2);" (assignment_expression "pbVar1 = param_1 + (param_2 - 2)" (identifier "pbVar1") (= "=") (binary_expression "param_1 + (param_2 - 2)" (identifier "param_1") (+ "+") (parenthesized_expression "(param_2 - 2)" (( "(") (binary_expression "param_2 - 2" (identifier "param_2") (- "-") (number_literal "2")) () ")")))) (; ";")) (expression_statement "pbVar3 = param_1;" (assignment_expression "pbVar3 = param_1" (identifier "pbVar3") (= "=") (identifier "param_1")) (; ";")) (expression_statement "pcVar4 = param_3;" (assignment_expression "pcVar4 = param_3" (identifier "pcVar4") (= "=") (identifier "param_3")) (; ";")) (expression_statement "pcVar5 = param_3;" (assignment_expression "pcVar5 = param_3" (identifier "pcVar5") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (param_1 < pbVar1) {\n    do {\n      pcVar4 = pcVar5 + 4;\n      param_1 = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = param_1;\n      pcVar5 = pcVar4;\n    } while (param_1 < pbVar1);\n  }" (if "if") (parenthesized_expression "(param_1 < pbVar1)" (( "(") (binary_expression "param_1 < pbVar1" (identifier "param_1") (< "<") (identifier "pbVar1")) () ")")) (compound_statement "{\n    do {\n      pcVar4 = pcVar5 + 4;\n      param_1 = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = param_1;\n      pcVar5 = pcVar4;\n    } while (param_1 < pbVar1);\n  }" ({ "{") (do_statement "do {\n      pcVar4 = pcVar5 + 4;\n      param_1 = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = param_1;\n      pcVar5 = pcVar4;\n    } while (param_1 < pbVar1);" (do "do") (compound_statement "{\n      pcVar4 = pcVar5 + 4;\n      param_1 = pbVar3 + 3;\n      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2];\n      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];\n      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];\n      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f];\n      pbVar3 = param_1;\n      pcVar5 = pcVar4;\n    }" ({ "{") (expression_statement "pcVar4 = pcVar5 + 4;" (assignment_expression "pcVar4 = pcVar5 + 4" (identifier "pcVar4") (= "=") (binary_expression "pcVar5 + 4" (identifier "pcVar5") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "param_1 = pbVar3 + 3;" (assignment_expression "param_1 = pbVar3 + 3" (identifier "param_1") (= "=") (binary_expression "pbVar3 + 3" (identifier "pbVar3") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "*pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2];" (assignment_expression "*pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2]" (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5")) (= "=") (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*pbVar3 >> 2]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" (" """) (string_content "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE") (" """)) ([ "[") (binary_expression "*pbVar3 >> 2" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (>> ">>") (number_literal "2")) (] "]"))) (; ";")) (expression_statement "pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];" (assignment_expression "pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)]" (subscript_expression "pcVar5[1]" (identifier "pcVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" (" """) (string_content "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE") (" """)) ([ "[") (binary_expression "(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)" (binary_expression "(*pbVar3 & 3) * 0x10" (parenthesized_expression "(*pbVar3 & 3)" (( "(") (binary_expression "*pbVar3 & 3" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (& "&") (number_literal "3")) () ")")) (* "*") (number_literal "0x10")) (+ "+") (call_expression "(uint)(pbVar3[1] >> 4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(pbVar3[1] >> 4)" (( "(") (binary_expression "pbVar3[1] >> 4" (subscript_expression "pbVar3[1]" (identifier "pbVar3") ([ "[") (number_literal "1") (] "]")) (>> ">>") (number_literal "4")) () ")")))) (] "]"))) (; ";")) (expression_statement "pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];" (assignment_expression "pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)]" (subscript_expression "pcVar5[2]" (identifier "pcVar5") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" (" """) (string_content "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE") (" """)) ([ "[") (binary_expression "(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)" (binary_expression "(pbVar3[1] & 0xf) * 4" (parenthesized_expression "(pbVar3[1] & 0xf)" (( "(") (binary_expression "pbVar3[1] & 0xf" (subscript_expression "pbVar3[1]" (identifier "pbVar3") ([ "[") (number_literal "1") (] "]")) (& "&") (number_literal "0xf")) () ")")) (* "*") (number_literal "4")) (+ "+") (call_expression "(uint)(pbVar3[2] >> 6)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(pbVar3[2] >> 6)" (( "(") (binary_expression "pbVar3[2] >> 6" (subscript_expression "pbVar3[2]" (identifier "pbVar3") ([ "[") (number_literal "2") (] "]")) (>> ">>") (number_literal "6")) () ")")))) (] "]"))) (; ";")) (expression_statement "pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f];" (assignment_expression "pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f]" (subscript_expression "pcVar5[3]" (identifier "pcVar5") ([ "[") (number_literal "3") (] "]")) (= "=") (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [pbVar3[2] & 0x3f]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" (" """) (string_content "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE") (" """)) ([ "[") (binary_expression "pbVar3[2] & 0x3f" (subscript_expression "pbVar3[2]" (identifier "pbVar3") ([ "[") (number_literal "2") (] "]")) (& "&") (number_literal "0x3f")) (] "]"))) (; ";")) (expression_statement "pbVar3 = param_1;" (assignment_expression "pbVar3 = param_1" (identifier "pbVar3") (= "=") (identifier "param_1")) (; ";")) (expression_statement "pcVar5 = pcVar4;" (assignment_expression "pcVar5 = pcVar4" (identifier "pcVar5") (= "=") (identifier "pcVar4")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1 < pbVar1)" (( "(") (binary_expression "param_1 < pbVar1" (identifier "param_1") (< "<") (identifier "pbVar1")) () ")")) (; ";")) (} "}"))) (if_statement "if (param_2 % 3 == 1) {\n    pcVar5 = pcVar4 + 4;\n    *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n              [*param_1 >> 2];\n    pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [(*param_1 & 3) * 0x10];\n    pcVar4[2] = '=';\n    pcVar4[3] = '=';\n  }\n  else {\n    pcVar5 = pcVar4;\n    if (param_2 % 3 == 2) {\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];\n      bVar2 = param_1[1];\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];\n    }\n  }" (if "if") (parenthesized_expression "(param_2 % 3 == 1)" (( "(") (binary_expression "param_2 % 3 == 1" (binary_expression "param_2 % 3" (identifier "param_2") (% "%") (number_literal "3")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    pcVar5 = pcVar4 + 4;\n    *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n              [*param_1 >> 2];\n    pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [(*param_1 & 3) * 0x10];\n    pcVar4[2] = '=';\n    pcVar4[3] = '=';\n  }" ({ "{") (expression_statement "pcVar5 = pcVar4 + 4;" (assignment_expression "pcVar5 = pcVar4 + 4" (identifier "pcVar5") (= "=") (binary_expression "pcVar4 + 4" (identifier "pcVar4") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "*pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n              [*param_1 >> 2];" (assignment_expression "*pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n              [*param_1 >> 2]" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (= "=") (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n              [*param_1 >> 2]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" (" """) (string_content "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE") (" """)) ([ "[") (binary_expression "*param_1 >> 2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (>> ">>") (number_literal "2")) (] "]"))) (; ";")) (expression_statement "pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [(*param_1 & 3) * 0x10];" (assignment_expression "pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [(*param_1 & 3) * 0x10]" (subscript_expression "pcVar4[1]" (identifier "pcVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [(*param_1 & 3) * 0x10]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" (" """) (string_content "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE") (" """)) ([ "[") (binary_expression "(*param_1 & 3) * 0x10" (parenthesized_expression "(*param_1 & 3)" (( "(") (binary_expression "*param_1 & 3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (& "&") (number_literal "3")) () ")")) (* "*") (number_literal "0x10")) (] "]"))) (; ";")) (expression_statement "pcVar4[2] = '=';" (assignment_expression "pcVar4[2] = '='" (subscript_expression "pcVar4[2]" (identifier "pcVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (char_literal "'='" (' "'") (character "=") (' "'"))) (; ";")) (expression_statement "pcVar4[3] = '=';" (assignment_expression "pcVar4[3] = '='" (subscript_expression "pcVar4[3]" (identifier "pcVar4") ([ "[") (number_literal "3") (] "]")) (= "=") (char_literal "'='" (' "'") (character "=") (' "'"))) (; ";")) (} "}")) (else_clause "else {\n    pcVar5 = pcVar4;\n    if (param_2 % 3 == 2) {\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];\n      bVar2 = param_1[1];\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];\n    }\n  }" (else "else") (compound_statement "{\n    pcVar5 = pcVar4;\n    if (param_2 % 3 == 2) {\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];\n      bVar2 = param_1[1];\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];\n    }\n  }" ({ "{") (expression_statement "pcVar5 = pcVar4;" (assignment_expression "pcVar5 = pcVar4" (identifier "pcVar5") (= "=") (identifier "pcVar4")) (; ";")) (if_statement "if (param_2 % 3 == 2) {\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];\n      bVar2 = param_1[1];\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];\n    }" (if "if") (parenthesized_expression "(param_2 % 3 == 2)" (( "(") (binary_expression "param_2 % 3 == 2" (binary_expression "param_2 % 3" (identifier "param_2") (% "%") (number_literal "3")) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n      pcVar5 = pcVar4 + 4;\n      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];\n      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];\n      bVar2 = param_1[1];\n      pcVar4[3] = '=';\n      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];\n    }" ({ "{") (expression_statement "pcVar5 = pcVar4 + 4;" (assignment_expression "pcVar5 = pcVar4 + 4" (identifier "pcVar5") (= "=") (binary_expression "pcVar4 + 4" (identifier "pcVar4") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "*pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2];" (assignment_expression "*pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2]" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (= "=") (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                [*param_1 >> 2]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" (" """) (string_content "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE") (" """)) ([ "[") (binary_expression "*param_1 >> 2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (>> ">>") (number_literal "2")) (] "]"))) (; ";")) (expression_statement "pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];" (assignment_expression "pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)]" (subscript_expression "pcVar4[1]" (identifier "pcVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" (" """) (string_content "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE") (" """)) ([ "[") (binary_expression "(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)" (binary_expression "(*param_1 & 3) * 0x10" (parenthesized_expression "(*param_1 & 3)" (( "(") (binary_expression "*param_1 & 3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (& "&") (number_literal "3")) () ")")) (* "*") (number_literal "0x10")) (+ "+") (call_expression "(uint)(param_1[1] >> 4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_1[1] >> 4)" (( "(") (binary_expression "param_1[1] >> 4" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (>> ">>") (number_literal "4")) () ")")))) (] "]"))) (; ";")) (expression_statement "bVar2 = param_1[1];" (assignment_expression "bVar2 = param_1[1]" (identifier "bVar2") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "pcVar4[3] = '=';" (assignment_expression "pcVar4[3] = '='" (subscript_expression "pcVar4[3]" (identifier "pcVar4") ([ "[") (number_literal "3") (] "]")) (= "=") (char_literal "'='" (' "'") (character "=") (' "'"))) (; ";")) (expression_statement "pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4];" (assignment_expression "pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4]" (subscript_expression "pcVar4[2]" (identifier "pcVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"\n                  [(bVar2 & 0xf) * 4]" (string_literal ""ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"" (" """) (string_content "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE") (" """)) ([ "[") (binary_expression "(bVar2 & 0xf) * 4" (parenthesized_expression "(bVar2 & 0xf)" (( "(") (binary_expression "bVar2 & 0xf" (identifier "bVar2") (& "&") (number_literal "0xf")) () ")")) (* "*") (number_literal "4")) (] "]"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "*pcVar5 = '\0';" (assignment_expression "*pcVar5 = '\0'" (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (return_statement "return (int)pcVar5 - (int)param_3;" (return "return") (binary_expression "(int)pcVar5 - (int)param_3" (cast_expression "(int)pcVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar5")) (- "-") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Unknown calling convention */

size_t function_1(void *var_2,size_t var_1,char *dest)

{
  type_1 *var_3;
  type_1 var_7;
  type_1 *var_5;
  char *var_6;
  char *var_4;
  
  var_3 = (type_1 *)((int)var_2 + (var_1 - 2));
  var_5 = (type_1 *)var_2;
  var_6 = dest;
  var_4 = dest;
  if (var_2 < var_3) {
    do {
      var_6 = var_4 + 4;
      var_2 = var_5 + 3;
      *var_4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*var_5 >> 2];
      var_4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
                  [(*var_5 & 3) * 0x10 + (uint)(var_5[1] >> 4)];
      var_4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
                  [(var_5[1] & 0xf) * 4 + (uint)(var_5[2] >> 6)];
      var_4[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
                  [var_5[2] & 0x3f];
      var_5 = (type_1 *)var_2;
      var_4 = var_6;
    } while (var_2 < var_3);
  }
  if (var_1 % 3 == 1) {
                    /* WARNING: Load size is inaccurate */
    var_4 = var_6 + 4;
    *var_6 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*var_2 >> 2];
                    /* WARNING: Load size is inaccurate */
    var_6[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
                [(*var_2 & 3) * 0x10];
    var_6[2] = '=';
    var_6[3] = '=';
  }
  else {
    var_4 = var_6;
    if (var_1 % 3 == 2) {
                    /* WARNING: Load size is inaccurate */
      var_4 = var_6 + 4;
      *var_6 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[*var_2 >> 2];
                    /* WARNING: Load size is inaccurate */
      var_6[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
                  [(*var_2 & 3) * 0x10 + (uint)(*(type_1 *)((int)var_2 + 1) >> 4)];
      var_7 = *(type_1 *)((int)var_2 + 1);
      var_6[3] = '=';
      var_6[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
                  [(var_7 & 0xf) * 4];
    }
  }
  *var_4 = '\0';
  return (int)var_4 - (int)dest;
}


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

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

int MASKED(byte *param_1,uint param_2,char *param_3)

{
  byte *pbVar1;
  byte bVar2;
  byte *pbVar3;
  char *pcVar4;
  char *pcVar5;
  
  pbVar1 = param_1 + (param_2 - 2);
  pbVar3 = param_1;
  pcVar4 = param_3;
  pcVar5 = param_3;
  if (param_1 < pbVar1) {
    do {
      pcVar4 = pcVar5 + 4;
      param_1 = pbVar3 + 3;
      *pcVar5 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"
                [*pbVar3 >> 2];
      pcVar5[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"
                  [(*pbVar3 & 3) * 0x10 + (uint)(pbVar3[1] >> 4)];
      pcVar5[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"
                  [(pbVar3[1] & 0xf) * 4 + (uint)(pbVar3[2] >> 6)];
      pcVar5[3] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"
                  [pbVar3[2] & 0x3f];
      pbVar3 = param_1;
      pcVar5 = pcVar4;
    } while (param_1 < pbVar1);
  }
  if (param_2 % 3 == 1) {
    pcVar5 = pcVar4 + 4;
    *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"
              [*param_1 >> 2];
    pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"
                [(*param_1 & 3) * 0x10];
    pcVar4[2] = '=';
    pcVar4[3] = '=';
  }
  else {
    pcVar5 = pcVar4;
    if (param_2 % 3 == 2) {
      pcVar5 = pcVar4 + 4;
      *pcVar4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"
                [*param_1 >> 2];
      pcVar4[1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"
                  [(*param_1 & 3) * 0x10 + (uint)(param_1[1] >> 4)];
      bVar2 = param_1[1];
      pcVar4[3] = '=';
      pcVar4[2] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/KMGTPE"
                  [(bVar2 & 0xf) * 4];
    }
  }
  *pcVar5 = '\0';
  return (int)pcVar5 - (int)param_3;
}

