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

HMAC_context * Curl_HMAC_init(HMAC_params *hashparams,uchar *key,uint keylen)

{
  uint uVar1;
  HMAC_context *pHVar2;
  HMAC_context *pHVar3;
  HMAC_hinit_func p_Var4;
  byte *pbVar5;
  byte *pbVar6;
  int in_GS_OFFSET;
  uchar b;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  pHVar2 = (HMAC_context *)
           (*Curl_cmalloc)(hashparams->hmac_resultlen + 0xc + hashparams->hmac_ctxtsize * 2);
  if (pHVar2 != (HMAC_context *)0x0) {
    uVar1 = hashparams->hmac_ctxtsize;
    pHVar2->hmac_hash = hashparams;
    pHVar3 = pHVar2 + 1;
    pHVar2->hmac_hashctxt1 = pHVar3;
    pHVar2->hmac_hashctxt2 = (void *)((int)&pHVar3->hmac_hash + uVar1);
    p_Var4 = hashparams->hmac_hinit;
    if (hashparams->hmac_maxkeylen < keylen) {
      (*p_Var4)(pHVar3);
      (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,key,keylen);
      key = (uchar *)((int)pHVar2->hmac_hashctxt2 + hashparams->hmac_ctxtsize);
      (*hashparams->hmac_hfinal)(key,pHVar2->hmac_hashctxt1);
      keylen = hashparams->hmac_resultlen;
      p_Var4 = hashparams->hmac_hinit;
      pHVar3 = (HMAC_context *)pHVar2->hmac_hashctxt1;
    }
    (*p_Var4)(pHVar3);
    (*hashparams->hmac_hinit)(pHVar2->hmac_hashctxt2);
    if (keylen != 0) {
      pbVar5 = key;
      do {
        pbVar6 = pbVar5 + 1;
        b = *pbVar5 ^ 0x36;
        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,&b,1);
        b = *pbVar5 ^ 0x5c;
        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt2,&b,1);
        pbVar5 = pbVar6;
      } while (key + keylen != pbVar6);
    }
    if (keylen < hashparams->hmac_maxkeylen) {
      do {
        keylen = keylen + 1;
        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,"6RTMPTS",1);
        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt2,"\\6RTMPTS",1);
      } while (keylen < hashparams->hmac_maxkeylen);
    }
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return pHVar2;
}



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

undefined4 * FUN_0005f9d0(undefined4 *param_1,byte *param_2,uint param_3)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  code *pcVar4;
  byte *pbVar5;
  byte *pbVar6;
  int in_GS_OFFSET;
  byte local_21;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  puVar2 = (undefined4 *)(*(code *)PTR_malloc_000b7070)(param_1[5] + 0xc + param_1[3] * 2);
  if (puVar2 != (undefined4 *)0x0) {
    iVar1 = param_1[3];
    *puVar2 = param_1;
    puVar3 = puVar2 + 3;
    puVar2[1] = puVar3;
    puVar2[2] = iVar1 + (int)puVar3;
    pcVar4 = (code *)*param_1;
    if ((uint)param_1[4] < param_3) {
      (*pcVar4)(puVar3);
      (*(code *)param_1[1])(puVar2[1],param_2,param_3);
      param_2 = (byte *)(puVar2[2] + param_1[3]);
      (*(code *)param_1[2])(param_2,puVar2[1]);
      param_3 = param_1[5];
      pcVar4 = (code *)*param_1;
      puVar3 = (undefined4 *)puVar2[1];
    }
    (*pcVar4)(puVar3);
    (*(code *)*param_1)(puVar2[2]);
    if (param_3 != 0) {
      pbVar5 = param_2;
      do {
        pbVar6 = pbVar5 + 1;
        local_21 = *pbVar5 ^ 0x36;
        (*(code *)param_1[1])(puVar2[1],&local_21,1);
        local_21 = *pbVar5 ^ 0x5c;
        (*(code *)param_1[1])(puVar2[2],&local_21,1);
        pbVar5 = pbVar6;
      } while (param_2 + param_3 != pbVar6);
    }
    if (param_3 < (uint)param_1[4]) {
      do {
        param_3 = param_3 + 1;
        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);
        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);
      } while (param_3 < (uint)param_1[4]);
    }
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00082f60();
  }
  return puVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
CALL 0x0001d807
ADD ESI,0x56e08
PUSH EBX
SUB ESP,0x38
MOV EBX,dword ptr [ESP + 0x4c]
MOV EDI,dword ptr [ESP + 0x50]
MOV EBP,dword ptr [ESP + 0x54]
MOV dword ptr [ESP + 0x18],ESI
MOV ECX,dword ptr [EBX + 0xc]
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x28],EAX
XOR EAX,EAX
MOV EAX,dword ptr [EBX + 0x14]
LEA EAX,[EAX + ECX*0x2 + 0xc]
PUSH EAX
LEA EAX,[ESI + 0x890]
CALL dword ptr [EAX]
MOV ESI,EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0005fae6
MOV ECX,dword ptr [EBX + 0xc]
MOV dword ptr [EAX],EBX
LEA EAX,[EAX + 0xc]
MOV dword ptr [ESI + 0x4],EAX
ADD ECX,EAX
MOV dword ptr [ESI + 0x8],ECX
MOV ECX,dword ptr [EBX]
CMP dword ptr [EBX + 0x10],EBP
JC 0x0005fb00
SUB ESP,0xc
PUSH EAX
CALL ECX
POP EAX
PUSH dword ptr [ESI + 0x8]
CALL dword ptr [EBX]
ADD ESP,0x10
TEST EBP,EBP
JZ 0x0005fa9d
LEA EAX,[EDI + EBP*0x1]
MOV dword ptr [ESP + 0x48],EBP
MOV dword ptr [ESP + 0x8],EAX
LEA EAX,[ESP + 0x1b]
MOV EBP,EAX
LEA ESI,[ESI]
MOVZX EDX,byte ptr [EDI]
SUB ESP,0x4
ADD EDI,0x1
XOR EDX,0x36
MOV byte ptr [ESP + 0x1f],DL
PUSH 0x1
PUSH EBP
PUSH dword ptr [ESI + 0x4]
CALL dword ptr [EBX + 0x4]
MOVZX EDX,byte ptr [EDI + -0x1]
XOR EDX,0x5c
MOV byte ptr [ESP + 0x2b],DL
ADD ESP,0xc
PUSH 0x1
PUSH EBP
PUSH dword ptr [ESI + 0x8]
CALL dword ptr [EBX + 0x4]
ADD ESP,0x10
CMP dword ptr [ESP + 0x8],EDI
JNZ 0x0005fa60
MOV EBP,dword ptr [ESP + 0x48]
CMP EBP,dword ptr [EBX + 0x10]
JNC 0x0005fae6
MOV EAX,dword ptr [ESP + 0xc]
LEA ECX,[EAX + 0xfffd5755]
LEA EDI,[EAX + 0xfffd5754]
MOV dword ptr [ESP + 0x8],ECX
LEA ESI,[ESI]
LEA ESI,[ESI]
SUB ESP,0x4
ADD EBP,0x1
PUSH 0x1
PUSH dword ptr [ESP + 0x10]
PUSH dword ptr [ESI + 0x4]
CALL dword ptr [EBX + 0x4]
ADD ESP,0xc
PUSH 0x1
PUSH EDI
PUSH dword ptr [ESI + 0x8]
CALL dword ptr [EBX + 0x4]
ADD ESP,0x10
CMP dword ptr [EBX + 0x10],EBP
JA 0x0005fac0
MOV ECX,dword ptr [ESP + 0x1c]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x0005fb32
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH EAX
CALL ECX
ADD ESP,0xc
PUSH EBP
PUSH EDI
PUSH dword ptr [ESI + 0x4]
CALL dword ptr [EBX + 0x4]
MOV EDX,dword ptr [EBX + 0xc]
MOV EDI,dword ptr [ESI + 0x8]
ADD EDI,EDX
POP EDX
POP ECX
PUSH dword ptr [ESI + 0x4]
PUSH EDI
CALL dword ptr [EBX + 0x8]
MOV EBP,dword ptr [EBX + 0x14]
MOV ECX,dword ptr [EBX]
MOV EAX,dword ptr [ESI + 0x4]
ADD ESP,0x10
JMP 0x0005fa39
CALL 0x00082f60
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nundefined4 * FUN_0005f9d0(undefined4 *param_1,byte *param_2,uint param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  code *pcVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  int in_GS_OFFSET;\n  byte local_21;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar2 = (undefined4 *)(*(code *)PTR_malloc_000b7070)(param_1[5] + 0xc + param_1[3] * 2);\n  if (puVar2 != (undefined4 *)0x0) {\n    iVar1 = param_1[3];\n    *puVar2 = param_1;\n    puVar3 = puVar2 + 3;\n    puVar2[1] = puVar3;\n    puVar2[2] = iVar1 + (int)puVar3;\n    pcVar4 = (code *)*param_1;\n    if ((uint)param_1[4] < param_3) {\n      (*pcVar4)(puVar3);\n      (*(code *)param_1[1])(puVar2[1],param_2,param_3);\n      param_2 = (byte *)(puVar2[2] + param_1[3]);\n      (*(code *)param_1[2])(param_2,puVar2[1]);\n      param_3 = param_1[5];\n      pcVar4 = (code *)*param_1;\n      puVar3 = (undefined4 *)puVar2[1];\n    }\n    (*pcVar4)(puVar3);\n    (*(code *)*param_1)(puVar2[2]);\n    if (param_3 != 0) {\n      pbVar5 = param_2;\n      do {\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      } while (param_2 + param_3 != pbVar6);\n    }\n    if (param_3 < (uint)param_1[4]) {\n      do {\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      } while (param_3 < (uint)param_1[4]);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00082f60();\n  }\n  return puVar2;\n}\n\n" comment (function_definition "undefined4 * FUN_0005f9d0(undefined4 *param_1,byte *param_2,uint param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  code *pcVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  int in_GS_OFFSET;\n  byte local_21;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar2 = (undefined4 *)(*(code *)PTR_malloc_000b7070)(param_1[5] + 0xc + param_1[3] * 2);\n  if (puVar2 != (undefined4 *)0x0) {\n    iVar1 = param_1[3];\n    *puVar2 = param_1;\n    puVar3 = puVar2 + 3;\n    puVar2[1] = puVar3;\n    puVar2[2] = iVar1 + (int)puVar3;\n    pcVar4 = (code *)*param_1;\n    if ((uint)param_1[4] < param_3) {\n      (*pcVar4)(puVar3);\n      (*(code *)param_1[1])(puVar2[1],param_2,param_3);\n      param_2 = (byte *)(puVar2[2] + param_1[3]);\n      (*(code *)param_1[2])(param_2,puVar2[1]);\n      param_3 = param_1[5];\n      pcVar4 = (code *)*param_1;\n      puVar3 = (undefined4 *)puVar2[1];\n    }\n    (*pcVar4)(puVar3);\n    (*(code *)*param_1)(puVar2[2]);\n    if (param_3 != 0) {\n      pbVar5 = param_2;\n      do {\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      } while (param_2 + param_3 != pbVar6);\n    }\n    if (param_3 < (uint)param_1[4]) {\n      do {\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      } while (param_3 < (uint)param_1[4]);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00082f60();\n  }\n  return puVar2;\n}" type_identifier (pointer_declarator "* FUN_0005f9d0(undefined4 *param_1,byte *param_2,uint param_3)" * (function_declarator "FUN_0005f9d0(undefined4 *param_1,byte *param_2,uint param_3)" identifier (parameter_list "(undefined4 *param_1,byte *param_2,uint param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) )))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  code *pcVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  int in_GS_OFFSET;\n  byte local_21;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar2 = (undefined4 *)(*(code *)PTR_malloc_000b7070)(param_1[5] + 0xc + param_1[3] * 2);\n  if (puVar2 != (undefined4 *)0x0) {\n    iVar1 = param_1[3];\n    *puVar2 = param_1;\n    puVar3 = puVar2 + 3;\n    puVar2[1] = puVar3;\n    puVar2[2] = iVar1 + (int)puVar3;\n    pcVar4 = (code *)*param_1;\n    if ((uint)param_1[4] < param_3) {\n      (*pcVar4)(puVar3);\n      (*(code *)param_1[1])(puVar2[1],param_2,param_3);\n      param_2 = (byte *)(puVar2[2] + param_1[3]);\n      (*(code *)param_1[2])(param_2,puVar2[1]);\n      param_3 = param_1[5];\n      pcVar4 = (code *)*param_1;\n      puVar3 = (undefined4 *)puVar2[1];\n    }\n    (*pcVar4)(puVar3);\n    (*(code *)*param_1)(puVar2[2]);\n    if (param_3 != 0) {\n      pbVar5 = param_2;\n      do {\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      } while (param_2 + param_3 != pbVar6);\n    }\n    if (param_3 < (uint)param_1[4]) {\n      do {\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      } while (param_3 < (uint)param_1[4]);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00082f60();\n  }\n  return puVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "code *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte local_21;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_malloc_000b7070)(param_1[5] + 0xc + param_1[3] * 2);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_malloc_000b7070)(param_1[5] + 0xc + param_1[3] * 2)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_malloc_000b7070)(param_1[5] + 0xc + param_1[3] * 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_000b7070)(param_1[5] + 0xc + param_1[3] * 2)" (parenthesized_expression "(*(code *)PTR_malloc_000b7070)" ( (pointer_expression "*(code *)PTR_malloc_000b7070" * (cast_expression "(code *)PTR_malloc_000b7070" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[5] + 0xc + param_1[3] * 2)" ( (binary_expression "param_1[5] + 0xc + param_1[3] * 2" (binary_expression "param_1[5] + 0xc" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal) + (binary_expression "param_1[3] * 2" (subscript_expression "param_1[3]" identifier [ number_literal ]) * number_literal)) ))))) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n    iVar1 = param_1[3];\n    *puVar2 = param_1;\n    puVar3 = puVar2 + 3;\n    puVar2[1] = puVar3;\n    puVar2[2] = iVar1 + (int)puVar3;\n    pcVar4 = (code *)*param_1;\n    if ((uint)param_1[4] < param_3) {\n      (*pcVar4)(puVar3);\n      (*(code *)param_1[1])(puVar2[1],param_2,param_3);\n      param_2 = (byte *)(puVar2[2] + param_1[3]);\n      (*(code *)param_1[2])(param_2,puVar2[1]);\n      param_3 = param_1[5];\n      pcVar4 = (code *)*param_1;\n      puVar3 = (undefined4 *)puVar2[1];\n    }\n    (*pcVar4)(puVar3);\n    (*(code *)*param_1)(puVar2[2]);\n    if (param_3 != 0) {\n      pbVar5 = param_2;\n      do {\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      } while (param_2 + param_3 != pbVar6);\n    }\n    if (param_3 < (uint)param_1[4]) {\n      do {\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      } while (param_3 < (uint)param_1[4]);\n    }\n  }" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = param_1[3];\n    *puVar2 = param_1;\n    puVar3 = puVar2 + 3;\n    puVar2[1] = puVar3;\n    puVar2[2] = iVar1 + (int)puVar3;\n    pcVar4 = (code *)*param_1;\n    if ((uint)param_1[4] < param_3) {\n      (*pcVar4)(puVar3);\n      (*(code *)param_1[1])(puVar2[1],param_2,param_3);\n      param_2 = (byte *)(puVar2[2] + param_1[3]);\n      (*(code *)param_1[2])(param_2,puVar2[1]);\n      param_3 = param_1[5];\n      pcVar4 = (code *)*param_1;\n      puVar3 = (undefined4 *)puVar2[1];\n    }\n    (*pcVar4)(puVar3);\n    (*(code *)*param_1)(puVar2[2]);\n    if (param_3 != 0) {\n      pbVar5 = param_2;\n      do {\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      } while (param_2 + param_3 != pbVar6);\n    }\n    if (param_3 < (uint)param_1[4]) {\n      do {\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      } while (param_3 < (uint)param_1[4]);\n    }\n  }" { (expression_statement "iVar1 = param_1[3];" (assignment_expression "iVar1 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "*puVar2 = param_1;" (assignment_expression "*puVar2 = param_1" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "puVar3 = puVar2 + 3;" (assignment_expression "puVar3 = puVar2 + 3" identifier = (binary_expression "puVar2 + 3" identifier + number_literal)) ;) (expression_statement "puVar2[1] = puVar3;" (assignment_expression "puVar2[1] = puVar3" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[2] = iVar1 + (int)puVar3;" (assignment_expression "puVar2[2] = iVar1 + (int)puVar3" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = (binary_expression "iVar1 + (int)puVar3" identifier + (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "pcVar4 = (code *)*param_1;" (assignment_expression "pcVar4 = (code *)*param_1" identifier = (cast_expression "(code *)*param_1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if ((uint)param_1[4] < param_3) {\n      (*pcVar4)(puVar3);\n      (*(code *)param_1[1])(puVar2[1],param_2,param_3);\n      param_2 = (byte *)(puVar2[2] + param_1[3]);\n      (*(code *)param_1[2])(param_2,puVar2[1]);\n      param_3 = param_1[5];\n      pcVar4 = (code *)*param_1;\n      puVar3 = (undefined4 *)puVar2[1];\n    }" if (parenthesized_expression "((uint)param_1[4] < param_3)" ( (binary_expression "(uint)param_1[4] < param_3" (cast_expression "(uint)param_1[4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n      (*pcVar4)(puVar3);\n      (*(code *)param_1[1])(puVar2[1],param_2,param_3);\n      param_2 = (byte *)(puVar2[2] + param_1[3]);\n      (*(code *)param_1[2])(param_2,puVar2[1]);\n      param_3 = param_1[5];\n      pcVar4 = (code *)*param_1;\n      puVar3 = (undefined4 *)puVar2[1];\n    }" { (expression_statement "(*pcVar4)(puVar3);" (call_expression "(*pcVar4)(puVar3)" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "(puVar3)" ( identifier ))) ;) (expression_statement "(*(code *)param_1[1])(puVar2[1],param_2,param_3);" (call_expression "(*(code *)param_1[1])(puVar2[1],param_2,param_3)" (parenthesized_expression "(*(code *)param_1[1])" ( (pointer_expression "*(code *)param_1[1]" * (cast_expression "(code *)param_1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (argument_list "(puVar2[1],param_2,param_3)" ( (subscript_expression "puVar2[1]" identifier [ number_literal ]) , identifier , identifier ))) ;) (expression_statement "param_2 = (byte *)(puVar2[2] + param_1[3]);" (assignment_expression "param_2 = (byte *)(puVar2[2] + param_1[3])" identifier = (cast_expression "(byte *)(puVar2[2] + param_1[3])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2[2] + param_1[3])" ( (binary_expression "puVar2[2] + param_1[3]" (subscript_expression "puVar2[2]" identifier [ number_literal ]) + (subscript_expression "param_1[3]" identifier [ number_literal ])) )))) ;) (expression_statement "(*(code *)param_1[2])(param_2,puVar2[1]);" (call_expression "(*(code *)param_1[2])(param_2,puVar2[1])" (parenthesized_expression "(*(code *)param_1[2])" ( (pointer_expression "*(code *)param_1[2]" * (cast_expression "(code *)param_1[2]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) )) (argument_list "(param_2,puVar2[1])" ( identifier , (subscript_expression "puVar2[1]" identifier [ number_literal ]) ))) ;) (expression_statement "param_3 = param_1[5];" (assignment_expression "param_3 = param_1[5]" identifier = (subscript_expression "param_1[5]" identifier [ number_literal ])) ;) (expression_statement "pcVar4 = (code *)*param_1;" (assignment_expression "pcVar4 = (code *)*param_1" identifier = (cast_expression "(code *)*param_1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "puVar3 = (undefined4 *)puVar2[1];" (assignment_expression "puVar3 = (undefined4 *)puVar2[1]" identifier = (cast_expression "(undefined4 *)puVar2[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[1]" identifier [ number_literal ]))) ;) })) (expression_statement "(*pcVar4)(puVar3);" (call_expression "(*pcVar4)(puVar3)" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "(puVar3)" ( identifier ))) ;) (expression_statement "(*(code *)*param_1)(puVar2[2]);" (call_expression "(*(code *)*param_1)(puVar2[2])" (parenthesized_expression "(*(code *)*param_1)" ( (pointer_expression "*(code *)*param_1" * (cast_expression "(code *)*param_1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) )) (argument_list "(puVar2[2])" ( (subscript_expression "puVar2[2]" identifier [ number_literal ]) ))) ;) (if_statement "if (param_3 != 0) {\n      pbVar5 = param_2;\n      do {\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      } while (param_2 + param_3 != pbVar6);\n    }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n      pbVar5 = param_2;\n      do {\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      } while (param_2 + param_3 != pbVar6);\n    }" { (expression_statement "pbVar5 = param_2;" (assignment_expression "pbVar5 = param_2" identifier = identifier) ;) (do_statement "do {\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      } while (param_2 + param_3 != pbVar6);" do (compound_statement "{\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      }" { (expression_statement "pbVar6 = pbVar5 + 1;" (assignment_expression "pbVar6 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) (expression_statement "local_21 = *pbVar5 ^ 0x36;" (assignment_expression "local_21 = *pbVar5 ^ 0x36" identifier = (binary_expression "*pbVar5 ^ 0x36" (pointer_expression "*pbVar5" * identifier) ^ number_literal)) ;) (expression_statement "(*(code *)param_1[1])(puVar2[1],&local_21,1);" (call_expression "(*(code *)param_1[1])(puVar2[1],&local_21,1)" (parenthesized_expression "(*(code *)param_1[1])" ( (pointer_expression "*(code *)param_1[1]" * (cast_expression "(code *)param_1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (argument_list "(puVar2[1],&local_21,1)" ( (subscript_expression "puVar2[1]" identifier [ number_literal ]) , (pointer_expression "&local_21" & identifier) , number_literal ))) ;) (expression_statement "local_21 = *pbVar5 ^ 0x5c;" (assignment_expression "local_21 = *pbVar5 ^ 0x5c" identifier = (binary_expression "*pbVar5 ^ 0x5c" (pointer_expression "*pbVar5" * identifier) ^ number_literal)) ;) (expression_statement "(*(code *)param_1[1])(puVar2[2],&local_21,1);" (call_expression "(*(code *)param_1[1])(puVar2[2],&local_21,1)" (parenthesized_expression "(*(code *)param_1[1])" ( (pointer_expression "*(code *)param_1[1]" * (cast_expression "(code *)param_1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (argument_list "(puVar2[2],&local_21,1)" ( (subscript_expression "puVar2[2]" identifier [ number_literal ]) , (pointer_expression "&local_21" & identifier) , number_literal ))) ;) (expression_statement "pbVar5 = pbVar6;" (assignment_expression "pbVar5 = pbVar6" identifier = identifier) ;) }) while (parenthesized_expression "(param_2 + param_3 != pbVar6)" ( (binary_expression "param_2 + param_3 != pbVar6" (binary_expression "param_2 + param_3" identifier + identifier) != identifier) )) ;) })) (if_statement "if (param_3 < (uint)param_1[4]) {\n      do {\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      } while (param_3 < (uint)param_1[4]);\n    }" if (parenthesized_expression "(param_3 < (uint)param_1[4])" ( (binary_expression "param_3 < (uint)param_1[4]" identifier < (cast_expression "(uint)param_1[4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[4]" identifier [ number_literal ]))) )) (compound_statement "{\n      do {\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      } while (param_3 < (uint)param_1[4]);\n    }" { (do_statement "do {\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      } while (param_3 < (uint)param_1[4]);" do (compound_statement "{\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      }" { (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);" (call_expression "(*(code *)param_1[1])(puVar2[1],"6RTMPTS",1)" (parenthesized_expression "(*(code *)param_1[1])" ( (pointer_expression "*(code *)param_1[1]" * (cast_expression "(code *)param_1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (argument_list "(puVar2[1],"6RTMPTS",1)" ( (subscript_expression "puVar2[1]" identifier [ number_literal ]) , (string_literal ""6RTMPTS"" " string_content ") , number_literal ))) ;) (expression_statement "(*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);" (call_expression "(*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1)" (parenthesized_expression "(*(code *)param_1[1])" ( (pointer_expression "*(code *)param_1[1]" * (cast_expression "(code *)param_1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (argument_list "(puVar2[2],&DAT_0008bf34,1)" ( (subscript_expression "puVar2[2]" identifier [ number_literal ]) , (pointer_expression "&DAT_0008bf34" & identifier) , number_literal ))) ;) }) while (parenthesized_expression "(param_3 < (uint)param_1[4])" ( (binary_expression "param_3 < (uint)param_1[4]" identifier < (cast_expression "(uint)param_1[4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[4]" identifier [ number_literal ]))) )) ;) })) })) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00082f60();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00082f60();\n  }" { comment (expression_statement "FUN_00082f60();" (call_expression "FUN_00082f60()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nHMAC_context * Curl_HMAC_init(HMAC_params *hashparams,uchar *key,uint keylen)\n\n{\n  uint uVar1;\n  HMAC_context *pHVar2;\n  HMAC_context *pHVar3;\n  HMAC_hinit_func p_Var4;\n  byte *pbVar5;\n  byte *pbVar6;\n  int in_GS_OFFSET;\n  uchar b;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pHVar2 = (HMAC_context *)\n           (*Curl_cmalloc)(hashparams->hmac_resultlen + 0xc + hashparams->hmac_ctxtsize * 2);\n  if (pHVar2 != (HMAC_context *)0x0) {\n    uVar1 = hashparams->hmac_ctxtsize;\n    pHVar2->hmac_hash = hashparams;\n    pHVar3 = pHVar2 + 1;\n    pHVar2->hmac_hashctxt1 = pHVar3;\n    pHVar2->hmac_hashctxt2 = (void *)((int)&pHVar3->hmac_hash + uVar1);\n    p_Var4 = hashparams->hmac_hinit;\n    if (hashparams->hmac_maxkeylen < keylen) {\n      (*p_Var4)(pHVar3);\n      (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,key,keylen);\n      key = (uchar *)((int)pHVar2->hmac_hashctxt2 + hashparams->hmac_ctxtsize);\n      (*hashparams->hmac_hfinal)(key,pHVar2->hmac_hashctxt1);\n      keylen = hashparams->hmac_resultlen;\n      p_Var4 = hashparams->hmac_hinit;\n      pHVar3 = (HMAC_context *)pHVar2->hmac_hashctxt1;\n    }\n    (*p_Var4)(pHVar3);\n    (*hashparams->hmac_hinit)(pHVar2->hmac_hashctxt2);\n    if (keylen != 0) {\n      pbVar5 = key;\n      do {\n        pbVar6 = pbVar5 + 1;\n        b = *pbVar5 ^ 0x36;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,&b,1);\n        b = *pbVar5 ^ 0x5c;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt2,&b,1);\n        pbVar5 = pbVar6;\n      } while (key + keylen != pbVar6);\n    }\n    if (keylen < hashparams->hmac_maxkeylen) {\n      do {\n        keylen = keylen + 1;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,"6RTMPTS",1);\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt2,"\\6RTMPTS",1);\n      } while (keylen < hashparams->hmac_maxkeylen);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return pHVar2;\n}\n\n" comment (function_definition "HMAC_context * Curl_HMAC_init(HMAC_params *hashparams,uchar *key,uint keylen)\n\n{\n  uint uVar1;\n  HMAC_context *pHVar2;\n  HMAC_context *pHVar3;\n  HMAC_hinit_func p_Var4;\n  byte *pbVar5;\n  byte *pbVar6;\n  int in_GS_OFFSET;\n  uchar b;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pHVar2 = (HMAC_context *)\n           (*Curl_cmalloc)(hashparams->hmac_resultlen + 0xc + hashparams->hmac_ctxtsize * 2);\n  if (pHVar2 != (HMAC_context *)0x0) {\n    uVar1 = hashparams->hmac_ctxtsize;\n    pHVar2->hmac_hash = hashparams;\n    pHVar3 = pHVar2 + 1;\n    pHVar2->hmac_hashctxt1 = pHVar3;\n    pHVar2->hmac_hashctxt2 = (void *)((int)&pHVar3->hmac_hash + uVar1);\n    p_Var4 = hashparams->hmac_hinit;\n    if (hashparams->hmac_maxkeylen < keylen) {\n      (*p_Var4)(pHVar3);\n      (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,key,keylen);\n      key = (uchar *)((int)pHVar2->hmac_hashctxt2 + hashparams->hmac_ctxtsize);\n      (*hashparams->hmac_hfinal)(key,pHVar2->hmac_hashctxt1);\n      keylen = hashparams->hmac_resultlen;\n      p_Var4 = hashparams->hmac_hinit;\n      pHVar3 = (HMAC_context *)pHVar2->hmac_hashctxt1;\n    }\n    (*p_Var4)(pHVar3);\n    (*hashparams->hmac_hinit)(pHVar2->hmac_hashctxt2);\n    if (keylen != 0) {\n      pbVar5 = key;\n      do {\n        pbVar6 = pbVar5 + 1;\n        b = *pbVar5 ^ 0x36;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,&b,1);\n        b = *pbVar5 ^ 0x5c;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt2,&b,1);\n        pbVar5 = pbVar6;\n      } while (key + keylen != pbVar6);\n    }\n    if (keylen < hashparams->hmac_maxkeylen) {\n      do {\n        keylen = keylen + 1;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,"6RTMPTS",1);\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt2,"\\6RTMPTS",1);\n      } while (keylen < hashparams->hmac_maxkeylen);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return pHVar2;\n}" type_identifier (pointer_declarator "* Curl_HMAC_init(HMAC_params *hashparams,uchar *key,uint keylen)" * (function_declarator "Curl_HMAC_init(HMAC_params *hashparams,uchar *key,uint keylen)" identifier (parameter_list "(HMAC_params *hashparams,uchar *key,uint keylen)" ( (parameter_declaration "HMAC_params *hashparams" type_identifier (pointer_declarator "*hashparams" * identifier)) , (parameter_declaration "uchar *key" type_identifier (pointer_declarator "*key" * identifier)) , (parameter_declaration "uint keylen" type_identifier identifier) )))) (compound_statement "{\n  uint uVar1;\n  HMAC_context *pHVar2;\n  HMAC_context *pHVar3;\n  HMAC_hinit_func p_Var4;\n  byte *pbVar5;\n  byte *pbVar6;\n  int in_GS_OFFSET;\n  uchar b;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pHVar2 = (HMAC_context *)\n           (*Curl_cmalloc)(hashparams->hmac_resultlen + 0xc + hashparams->hmac_ctxtsize * 2);\n  if (pHVar2 != (HMAC_context *)0x0) {\n    uVar1 = hashparams->hmac_ctxtsize;\n    pHVar2->hmac_hash = hashparams;\n    pHVar3 = pHVar2 + 1;\n    pHVar2->hmac_hashctxt1 = pHVar3;\n    pHVar2->hmac_hashctxt2 = (void *)((int)&pHVar3->hmac_hash + uVar1);\n    p_Var4 = hashparams->hmac_hinit;\n    if (hashparams->hmac_maxkeylen < keylen) {\n      (*p_Var4)(pHVar3);\n      (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,key,keylen);\n      key = (uchar *)((int)pHVar2->hmac_hashctxt2 + hashparams->hmac_ctxtsize);\n      (*hashparams->hmac_hfinal)(key,pHVar2->hmac_hashctxt1);\n      keylen = hashparams->hmac_resultlen;\n      p_Var4 = hashparams->hmac_hinit;\n      pHVar3 = (HMAC_context *)pHVar2->hmac_hashctxt1;\n    }\n    (*p_Var4)(pHVar3);\n    (*hashparams->hmac_hinit)(pHVar2->hmac_hashctxt2);\n    if (keylen != 0) {\n      pbVar5 = key;\n      do {\n        pbVar6 = pbVar5 + 1;\n        b = *pbVar5 ^ 0x36;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,&b,1);\n        b = *pbVar5 ^ 0x5c;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt2,&b,1);\n        pbVar5 = pbVar6;\n      } while (key + keylen != pbVar6);\n    }\n    if (keylen < hashparams->hmac_maxkeylen) {\n      do {\n        keylen = keylen + 1;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,"6RTMPTS",1);\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt2,"\\6RTMPTS",1);\n      } while (keylen < hashparams->hmac_maxkeylen);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return pHVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "HMAC_context *pHVar2;" type_identifier (pointer_declarator "*pHVar2" * identifier) ;) (declaration "HMAC_context *pHVar3;" type_identifier (pointer_declarator "*pHVar3" * identifier) ;) (declaration "HMAC_hinit_func p_Var4;" type_identifier identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uchar b;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "pHVar2 = (HMAC_context *)\n           (*Curl_cmalloc)(hashparams->hmac_resultlen + 0xc + hashparams->hmac_ctxtsize * 2);" (assignment_expression "pHVar2 = (HMAC_context *)\n           (*Curl_cmalloc)(hashparams->hmac_resultlen + 0xc + hashparams->hmac_ctxtsize * 2)" identifier = (cast_expression "(HMAC_context *)\n           (*Curl_cmalloc)(hashparams->hmac_resultlen + 0xc + hashparams->hmac_ctxtsize * 2)" ( (type_descriptor "HMAC_context *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*Curl_cmalloc)(hashparams->hmac_resultlen + 0xc + hashparams->hmac_ctxtsize * 2)" (parenthesized_expression "(*Curl_cmalloc)" ( (pointer_expression "*Curl_cmalloc" * identifier) )) (argument_list "(hashparams->hmac_resultlen + 0xc + hashparams->hmac_ctxtsize * 2)" ( (binary_expression "hashparams->hmac_resultlen + 0xc + hashparams->hmac_ctxtsize * 2" (binary_expression "hashparams->hmac_resultlen + 0xc" (field_expression "hashparams->hmac_resultlen" identifier -> field_identifier) + number_literal) + (binary_expression "hashparams->hmac_ctxtsize * 2" (field_expression "hashparams->hmac_ctxtsize" identifier -> field_identifier) * number_literal)) ))))) ;) (if_statement "if (pHVar2 != (HMAC_context *)0x0) {\n    uVar1 = hashparams->hmac_ctxtsize;\n    pHVar2->hmac_hash = hashparams;\n    pHVar3 = pHVar2 + 1;\n    pHVar2->hmac_hashctxt1 = pHVar3;\n    pHVar2->hmac_hashctxt2 = (void *)((int)&pHVar3->hmac_hash + uVar1);\n    p_Var4 = hashparams->hmac_hinit;\n    if (hashparams->hmac_maxkeylen < keylen) {\n      (*p_Var4)(pHVar3);\n      (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,key,keylen);\n      key = (uchar *)((int)pHVar2->hmac_hashctxt2 + hashparams->hmac_ctxtsize);\n      (*hashparams->hmac_hfinal)(key,pHVar2->hmac_hashctxt1);\n      keylen = hashparams->hmac_resultlen;\n      p_Var4 = hashparams->hmac_hinit;\n      pHVar3 = (HMAC_context *)pHVar2->hmac_hashctxt1;\n    }\n    (*p_Var4)(pHVar3);\n    (*hashparams->hmac_hinit)(pHVar2->hmac_hashctxt2);\n    if (keylen != 0) {\n      pbVar5 = key;\n      do {\n        pbVar6 = pbVar5 + 1;\n        b = *pbVar5 ^ 0x36;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,&b,1);\n        b = *pbVar5 ^ 0x5c;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt2,&b,1);\n        pbVar5 = pbVar6;\n      } while (key + keylen != pbVar6);\n    }\n    if (keylen < hashparams->hmac_maxkeylen) {\n      do {\n        keylen = keylen + 1;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,"6RTMPTS",1);\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt2,"\\6RTMPTS",1);\n      } while (keylen < hashparams->hmac_maxkeylen);\n    }\n  }" if (parenthesized_expression "(pHVar2 != (HMAC_context *)0x0)" ( (binary_expression "pHVar2 != (HMAC_context *)0x0" identifier != (cast_expression "(HMAC_context *)0x0" ( (type_descriptor "HMAC_context *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar1 = hashparams->hmac_ctxtsize;\n    pHVar2->hmac_hash = hashparams;\n    pHVar3 = pHVar2 + 1;\n    pHVar2->hmac_hashctxt1 = pHVar3;\n    pHVar2->hmac_hashctxt2 = (void *)((int)&pHVar3->hmac_hash + uVar1);\n    p_Var4 = hashparams->hmac_hinit;\n    if (hashparams->hmac_maxkeylen < keylen) {\n      (*p_Var4)(pHVar3);\n      (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,key,keylen);\n      key = (uchar *)((int)pHVar2->hmac_hashctxt2 + hashparams->hmac_ctxtsize);\n      (*hashparams->hmac_hfinal)(key,pHVar2->hmac_hashctxt1);\n      keylen = hashparams->hmac_resultlen;\n      p_Var4 = hashparams->hmac_hinit;\n      pHVar3 = (HMAC_context *)pHVar2->hmac_hashctxt1;\n    }\n    (*p_Var4)(pHVar3);\n    (*hashparams->hmac_hinit)(pHVar2->hmac_hashctxt2);\n    if (keylen != 0) {\n      pbVar5 = key;\n      do {\n        pbVar6 = pbVar5 + 1;\n        b = *pbVar5 ^ 0x36;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,&b,1);\n        b = *pbVar5 ^ 0x5c;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt2,&b,1);\n        pbVar5 = pbVar6;\n      } while (key + keylen != pbVar6);\n    }\n    if (keylen < hashparams->hmac_maxkeylen) {\n      do {\n        keylen = keylen + 1;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,"6RTMPTS",1);\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt2,"\\6RTMPTS",1);\n      } while (keylen < hashparams->hmac_maxkeylen);\n    }\n  }" { (expression_statement "uVar1 = hashparams->hmac_ctxtsize;" (assignment_expression "uVar1 = hashparams->hmac_ctxtsize" identifier = (field_expression "hashparams->hmac_ctxtsize" identifier -> field_identifier)) ;) (expression_statement "pHVar2->hmac_hash = hashparams;" (assignment_expression "pHVar2->hmac_hash = hashparams" (field_expression "pHVar2->hmac_hash" identifier -> field_identifier) = identifier) ;) (expression_statement "pHVar3 = pHVar2 + 1;" (assignment_expression "pHVar3 = pHVar2 + 1" identifier = (binary_expression "pHVar2 + 1" identifier + number_literal)) ;) (expression_statement "pHVar2->hmac_hashctxt1 = pHVar3;" (assignment_expression "pHVar2->hmac_hashctxt1 = pHVar3" (field_expression "pHVar2->hmac_hashctxt1" identifier -> field_identifier) = identifier) ;) (expression_statement "pHVar2->hmac_hashctxt2 = (void *)((int)&pHVar3->hmac_hash + uVar1);" (assignment_expression "pHVar2->hmac_hashctxt2 = (void *)((int)&pHVar3->hmac_hash + uVar1)" (field_expression "pHVar2->hmac_hashctxt2" identifier -> field_identifier) = (cast_expression "(void *)((int)&pHVar3->hmac_hash + uVar1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pHVar3->hmac_hash + uVar1)" ( (binary_expression "(int)&pHVar3->hmac_hash + uVar1" (cast_expression "(int)&pHVar3->hmac_hash" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pHVar3->hmac_hash" & (field_expression "pHVar3->hmac_hash" identifier -> field_identifier))) + identifier) )))) ;) (expression_statement "p_Var4 = hashparams->hmac_hinit;" (assignment_expression "p_Var4 = hashparams->hmac_hinit" identifier = (field_expression "hashparams->hmac_hinit" identifier -> field_identifier)) ;) (if_statement "if (hashparams->hmac_maxkeylen < keylen) {\n      (*p_Var4)(pHVar3);\n      (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,key,keylen);\n      key = (uchar *)((int)pHVar2->hmac_hashctxt2 + hashparams->hmac_ctxtsize);\n      (*hashparams->hmac_hfinal)(key,pHVar2->hmac_hashctxt1);\n      keylen = hashparams->hmac_resultlen;\n      p_Var4 = hashparams->hmac_hinit;\n      pHVar3 = (HMAC_context *)pHVar2->hmac_hashctxt1;\n    }" if (parenthesized_expression "(hashparams->hmac_maxkeylen < keylen)" ( (binary_expression "hashparams->hmac_maxkeylen < keylen" (field_expression "hashparams->hmac_maxkeylen" identifier -> field_identifier) < identifier) )) (compound_statement "{\n      (*p_Var4)(pHVar3);\n      (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,key,keylen);\n      key = (uchar *)((int)pHVar2->hmac_hashctxt2 + hashparams->hmac_ctxtsize);\n      (*hashparams->hmac_hfinal)(key,pHVar2->hmac_hashctxt1);\n      keylen = hashparams->hmac_resultlen;\n      p_Var4 = hashparams->hmac_hinit;\n      pHVar3 = (HMAC_context *)pHVar2->hmac_hashctxt1;\n    }" { (expression_statement "(*p_Var4)(pHVar3);" (call_expression "(*p_Var4)(pHVar3)" (parenthesized_expression "(*p_Var4)" ( (pointer_expression "*p_Var4" * identifier) )) (argument_list "(pHVar3)" ( identifier ))) ;) (expression_statement "(*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,key,keylen);" (call_expression "(*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,key,keylen)" (parenthesized_expression "(*hashparams->hmac_hupdate)" ( (pointer_expression "*hashparams->hmac_hupdate" * (field_expression "hashparams->hmac_hupdate" identifier -> field_identifier)) )) (argument_list "(pHVar2->hmac_hashctxt1,key,keylen)" ( (field_expression "pHVar2->hmac_hashctxt1" identifier -> field_identifier) , identifier , identifier ))) ;) (expression_statement "key = (uchar *)((int)pHVar2->hmac_hashctxt2 + hashparams->hmac_ctxtsize);" (assignment_expression "key = (uchar *)((int)pHVar2->hmac_hashctxt2 + hashparams->hmac_ctxtsize)" identifier = (cast_expression "(uchar *)((int)pHVar2->hmac_hashctxt2 + hashparams->hmac_ctxtsize)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pHVar2->hmac_hashctxt2 + hashparams->hmac_ctxtsize)" ( (binary_expression "(int)pHVar2->hmac_hashctxt2 + hashparams->hmac_ctxtsize" (cast_expression "(int)pHVar2->hmac_hashctxt2" ( (type_descriptor "int" primitive_type) ) (field_expression "pHVar2->hmac_hashctxt2" identifier -> field_identifier)) + (field_expression "hashparams->hmac_ctxtsize" identifier -> field_identifier)) )))) ;) (expression_statement "(*hashparams->hmac_hfinal)(key,pHVar2->hmac_hashctxt1);" (call_expression "(*hashparams->hmac_hfinal)(key,pHVar2->hmac_hashctxt1)" (parenthesized_expression "(*hashparams->hmac_hfinal)" ( (pointer_expression "*hashparams->hmac_hfinal" * (field_expression "hashparams->hmac_hfinal" identifier -> field_identifier)) )) (argument_list "(key,pHVar2->hmac_hashctxt1)" ( identifier , (field_expression "pHVar2->hmac_hashctxt1" identifier -> field_identifier) ))) ;) (expression_statement "keylen = hashparams->hmac_resultlen;" (assignment_expression "keylen = hashparams->hmac_resultlen" identifier = (field_expression "hashparams->hmac_resultlen" identifier -> field_identifier)) ;) (expression_statement "p_Var4 = hashparams->hmac_hinit;" (assignment_expression "p_Var4 = hashparams->hmac_hinit" identifier = (field_expression "hashparams->hmac_hinit" identifier -> field_identifier)) ;) (expression_statement "pHVar3 = (HMAC_context *)pHVar2->hmac_hashctxt1;" (assignment_expression "pHVar3 = (HMAC_context *)pHVar2->hmac_hashctxt1" identifier = (cast_expression "(HMAC_context *)pHVar2->hmac_hashctxt1" ( (type_descriptor "HMAC_context *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pHVar2->hmac_hashctxt1" identifier -> field_identifier))) ;) })) (expression_statement "(*p_Var4)(pHVar3);" (call_expression "(*p_Var4)(pHVar3)" (parenthesized_expression "(*p_Var4)" ( (pointer_expression "*p_Var4" * identifier) )) (argument_list "(pHVar3)" ( identifier ))) ;) (expression_statement "(*hashparams->hmac_hinit)(pHVar2->hmac_hashctxt2);" (call_expression "(*hashparams->hmac_hinit)(pHVar2->hmac_hashctxt2)" (parenthesized_expression "(*hashparams->hmac_hinit)" ( (pointer_expression "*hashparams->hmac_hinit" * (field_expression "hashparams->hmac_hinit" identifier -> field_identifier)) )) (argument_list "(pHVar2->hmac_hashctxt2)" ( (field_expression "pHVar2->hmac_hashctxt2" identifier -> field_identifier) ))) ;) (if_statement "if (keylen != 0) {\n      pbVar5 = key;\n      do {\n        pbVar6 = pbVar5 + 1;\n        b = *pbVar5 ^ 0x36;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,&b,1);\n        b = *pbVar5 ^ 0x5c;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt2,&b,1);\n        pbVar5 = pbVar6;\n      } while (key + keylen != pbVar6);\n    }" if (parenthesized_expression "(keylen != 0)" ( (binary_expression "keylen != 0" identifier != number_literal) )) (compound_statement "{\n      pbVar5 = key;\n      do {\n        pbVar6 = pbVar5 + 1;\n        b = *pbVar5 ^ 0x36;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,&b,1);\n        b = *pbVar5 ^ 0x5c;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt2,&b,1);\n        pbVar5 = pbVar6;\n      } while (key + keylen != pbVar6);\n    }" { (expression_statement "pbVar5 = key;" (assignment_expression "pbVar5 = key" identifier = identifier) ;) (do_statement "do {\n        pbVar6 = pbVar5 + 1;\n        b = *pbVar5 ^ 0x36;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,&b,1);\n        b = *pbVar5 ^ 0x5c;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt2,&b,1);\n        pbVar5 = pbVar6;\n      } while (key + keylen != pbVar6);" do (compound_statement "{\n        pbVar6 = pbVar5 + 1;\n        b = *pbVar5 ^ 0x36;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,&b,1);\n        b = *pbVar5 ^ 0x5c;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt2,&b,1);\n        pbVar5 = pbVar6;\n      }" { (expression_statement "pbVar6 = pbVar5 + 1;" (assignment_expression "pbVar6 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) (expression_statement "b = *pbVar5 ^ 0x36;" (assignment_expression "b = *pbVar5 ^ 0x36" identifier = (binary_expression "*pbVar5 ^ 0x36" (pointer_expression "*pbVar5" * identifier) ^ number_literal)) ;) (expression_statement "(*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,&b,1);" (call_expression "(*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,&b,1)" (parenthesized_expression "(*hashparams->hmac_hupdate)" ( (pointer_expression "*hashparams->hmac_hupdate" * (field_expression "hashparams->hmac_hupdate" identifier -> field_identifier)) )) (argument_list "(pHVar2->hmac_hashctxt1,&b,1)" ( (field_expression "pHVar2->hmac_hashctxt1" identifier -> field_identifier) , (pointer_expression "&b" & identifier) , number_literal ))) ;) (expression_statement "b = *pbVar5 ^ 0x5c;" (assignment_expression "b = *pbVar5 ^ 0x5c" identifier = (binary_expression "*pbVar5 ^ 0x5c" (pointer_expression "*pbVar5" * identifier) ^ number_literal)) ;) (expression_statement "(*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt2,&b,1);" (call_expression "(*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt2,&b,1)" (parenthesized_expression "(*hashparams->hmac_hupdate)" ( (pointer_expression "*hashparams->hmac_hupdate" * (field_expression "hashparams->hmac_hupdate" identifier -> field_identifier)) )) (argument_list "(pHVar2->hmac_hashctxt2,&b,1)" ( (field_expression "pHVar2->hmac_hashctxt2" identifier -> field_identifier) , (pointer_expression "&b" & identifier) , number_literal ))) ;) (expression_statement "pbVar5 = pbVar6;" (assignment_expression "pbVar5 = pbVar6" identifier = identifier) ;) }) while (parenthesized_expression "(key + keylen != pbVar6)" ( (binary_expression "key + keylen != pbVar6" (binary_expression "key + keylen" identifier + identifier) != identifier) )) ;) })) (if_statement "if (keylen < hashparams->hmac_maxkeylen) {\n      do {\n        keylen = keylen + 1;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,"6RTMPTS",1);\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt2,"\\6RTMPTS",1);\n      } while (keylen < hashparams->hmac_maxkeylen);\n    }" if (parenthesized_expression "(keylen < hashparams->hmac_maxkeylen)" ( (binary_expression "keylen < hashparams->hmac_maxkeylen" identifier < (field_expression "hashparams->hmac_maxkeylen" identifier -> field_identifier)) )) (compound_statement "{\n      do {\n        keylen = keylen + 1;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,"6RTMPTS",1);\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt2,"\\6RTMPTS",1);\n      } while (keylen < hashparams->hmac_maxkeylen);\n    }" { (do_statement "do {\n        keylen = keylen + 1;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,"6RTMPTS",1);\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt2,"\\6RTMPTS",1);\n      } while (keylen < hashparams->hmac_maxkeylen);" do (compound_statement "{\n        keylen = keylen + 1;\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,"6RTMPTS",1);\n        (*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt2,"\\6RTMPTS",1);\n      }" { (expression_statement "keylen = keylen + 1;" (assignment_expression "keylen = keylen + 1" identifier = (binary_expression "keylen + 1" identifier + number_literal)) ;) (expression_statement "(*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,"6RTMPTS",1);" (call_expression "(*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt1,"6RTMPTS",1)" (parenthesized_expression "(*hashparams->hmac_hupdate)" ( (pointer_expression "*hashparams->hmac_hupdate" * (field_expression "hashparams->hmac_hupdate" identifier -> field_identifier)) )) (argument_list "(pHVar2->hmac_hashctxt1,"6RTMPTS",1)" ( (field_expression "pHVar2->hmac_hashctxt1" identifier -> field_identifier) , (string_literal ""6RTMPTS"" " string_content ") , number_literal ))) ;) (expression_statement "(*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt2,"\\6RTMPTS",1);" (call_expression "(*hashparams->hmac_hupdate)(pHVar2->hmac_hashctxt2,"\\6RTMPTS",1)" (parenthesized_expression "(*hashparams->hmac_hupdate)" ( (pointer_expression "*hashparams->hmac_hupdate" * (field_expression "hashparams->hmac_hupdate" identifier -> field_identifier)) )) (argument_list "(pHVar2->hmac_hashctxt2,"\\6RTMPTS",1)" ( (field_expression "pHVar2->hmac_hashctxt2" identifier -> field_identifier) , (string_literal ""\\6RTMPTS"" " escape_sequence string_content ") , number_literal ))) ;) }) while (parenthesized_expression "(keylen < hashparams->hmac_maxkeylen)" ( (binary_expression "keylen < hashparams->hmac_maxkeylen" identifier < (field_expression "hashparams->hmac_maxkeylen" identifier -> field_identifier)) )) ;) })) })) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return pHVar2;" return identifier ;) })))
(translation_unit "undefined4 * FUN_0005f9d0(undefined4 *param_1,byte *param_2,uint param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  code *pcVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  int in_GS_OFFSET;\n  byte local_21;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar2 = (undefined4 *)(*(code *)PTR_malloc_000b7070)(param_1[5] + 0xc + param_1[3] * 2);\n  if (puVar2 != (undefined4 *)0x0) {\n    iVar1 = param_1[3];\n    *puVar2 = param_1;\n    puVar3 = puVar2 + 3;\n    puVar2[1] = puVar3;\n    puVar2[2] = iVar1 + (int)puVar3;\n    pcVar4 = (code *)*param_1;\n    if ((uint)param_1[4] < param_3) {\n      (*pcVar4)(puVar3);\n      (*(code *)param_1[1])(puVar2[1],param_2,param_3);\n      param_2 = (byte *)(puVar2[2] + param_1[3]);\n      (*(code *)param_1[2])(param_2,puVar2[1]);\n      param_3 = param_1[5];\n      pcVar4 = (code *)*param_1;\n      puVar3 = (undefined4 *)puVar2[1];\n    }\n    (*pcVar4)(puVar3);\n    (*(code *)*param_1)(puVar2[2]);\n    if (param_3 != 0) {\n      pbVar5 = param_2;\n      do {\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      } while (param_2 + param_3 != pbVar6);\n    }\n    if (param_3 < (uint)param_1[4]) {\n      do {\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      } while (param_3 < (uint)param_1[4]);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00082f60();\n  }\n  return puVar2;\n}\n\n" (function_definition "undefined4 * FUN_0005f9d0(undefined4 *param_1,byte *param_2,uint param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  code *pcVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  int in_GS_OFFSET;\n  byte local_21;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar2 = (undefined4 *)(*(code *)PTR_malloc_000b7070)(param_1[5] + 0xc + param_1[3] * 2);\n  if (puVar2 != (undefined4 *)0x0) {\n    iVar1 = param_1[3];\n    *puVar2 = param_1;\n    puVar3 = puVar2 + 3;\n    puVar2[1] = puVar3;\n    puVar2[2] = iVar1 + (int)puVar3;\n    pcVar4 = (code *)*param_1;\n    if ((uint)param_1[4] < param_3) {\n      (*pcVar4)(puVar3);\n      (*(code *)param_1[1])(puVar2[1],param_2,param_3);\n      param_2 = (byte *)(puVar2[2] + param_1[3]);\n      (*(code *)param_1[2])(param_2,puVar2[1]);\n      param_3 = param_1[5];\n      pcVar4 = (code *)*param_1;\n      puVar3 = (undefined4 *)puVar2[1];\n    }\n    (*pcVar4)(puVar3);\n    (*(code *)*param_1)(puVar2[2]);\n    if (param_3 != 0) {\n      pbVar5 = param_2;\n      do {\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      } while (param_2 + param_3 != pbVar6);\n    }\n    if (param_3 < (uint)param_1[4]) {\n      do {\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      } while (param_3 < (uint)param_1[4]);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00082f60();\n  }\n  return puVar2;\n}" type_identifier (pointer_declarator "* FUN_0005f9d0(undefined4 *param_1,byte *param_2,uint param_3)" * (function_declarator "FUN_0005f9d0(undefined4 *param_1,byte *param_2,uint param_3)" identifier (parameter_list "(undefined4 *param_1,byte *param_2,uint param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) )))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  code *pcVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  int in_GS_OFFSET;\n  byte local_21;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar2 = (undefined4 *)(*(code *)PTR_malloc_000b7070)(param_1[5] + 0xc + param_1[3] * 2);\n  if (puVar2 != (undefined4 *)0x0) {\n    iVar1 = param_1[3];\n    *puVar2 = param_1;\n    puVar3 = puVar2 + 3;\n    puVar2[1] = puVar3;\n    puVar2[2] = iVar1 + (int)puVar3;\n    pcVar4 = (code *)*param_1;\n    if ((uint)param_1[4] < param_3) {\n      (*pcVar4)(puVar3);\n      (*(code *)param_1[1])(puVar2[1],param_2,param_3);\n      param_2 = (byte *)(puVar2[2] + param_1[3]);\n      (*(code *)param_1[2])(param_2,puVar2[1]);\n      param_3 = param_1[5];\n      pcVar4 = (code *)*param_1;\n      puVar3 = (undefined4 *)puVar2[1];\n    }\n    (*pcVar4)(puVar3);\n    (*(code *)*param_1)(puVar2[2]);\n    if (param_3 != 0) {\n      pbVar5 = param_2;\n      do {\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      } while (param_2 + param_3 != pbVar6);\n    }\n    if (param_3 < (uint)param_1[4]) {\n      do {\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      } while (param_3 < (uint)param_1[4]);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00082f60();\n  }\n  return puVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "code *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte local_21;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_malloc_000b7070)(param_1[5] + 0xc + param_1[3] * 2);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_malloc_000b7070)(param_1[5] + 0xc + param_1[3] * 2)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_malloc_000b7070)(param_1[5] + 0xc + param_1[3] * 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_000b7070)(param_1[5] + 0xc + param_1[3] * 2)" (parenthesized_expression "(*(code *)PTR_malloc_000b7070)" ( (pointer_expression "*(code *)PTR_malloc_000b7070" * (cast_expression "(code *)PTR_malloc_000b7070" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[5] + 0xc + param_1[3] * 2)" ( (binary_expression "param_1[5] + 0xc + param_1[3] * 2" (binary_expression "param_1[5] + 0xc" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal) + (binary_expression "param_1[3] * 2" (subscript_expression "param_1[3]" identifier [ number_literal ]) * number_literal)) ))))) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n    iVar1 = param_1[3];\n    *puVar2 = param_1;\n    puVar3 = puVar2 + 3;\n    puVar2[1] = puVar3;\n    puVar2[2] = iVar1 + (int)puVar3;\n    pcVar4 = (code *)*param_1;\n    if ((uint)param_1[4] < param_3) {\n      (*pcVar4)(puVar3);\n      (*(code *)param_1[1])(puVar2[1],param_2,param_3);\n      param_2 = (byte *)(puVar2[2] + param_1[3]);\n      (*(code *)param_1[2])(param_2,puVar2[1]);\n      param_3 = param_1[5];\n      pcVar4 = (code *)*param_1;\n      puVar3 = (undefined4 *)puVar2[1];\n    }\n    (*pcVar4)(puVar3);\n    (*(code *)*param_1)(puVar2[2]);\n    if (param_3 != 0) {\n      pbVar5 = param_2;\n      do {\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      } while (param_2 + param_3 != pbVar6);\n    }\n    if (param_3 < (uint)param_1[4]) {\n      do {\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      } while (param_3 < (uint)param_1[4]);\n    }\n  }" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = param_1[3];\n    *puVar2 = param_1;\n    puVar3 = puVar2 + 3;\n    puVar2[1] = puVar3;\n    puVar2[2] = iVar1 + (int)puVar3;\n    pcVar4 = (code *)*param_1;\n    if ((uint)param_1[4] < param_3) {\n      (*pcVar4)(puVar3);\n      (*(code *)param_1[1])(puVar2[1],param_2,param_3);\n      param_2 = (byte *)(puVar2[2] + param_1[3]);\n      (*(code *)param_1[2])(param_2,puVar2[1]);\n      param_3 = param_1[5];\n      pcVar4 = (code *)*param_1;\n      puVar3 = (undefined4 *)puVar2[1];\n    }\n    (*pcVar4)(puVar3);\n    (*(code *)*param_1)(puVar2[2]);\n    if (param_3 != 0) {\n      pbVar5 = param_2;\n      do {\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      } while (param_2 + param_3 != pbVar6);\n    }\n    if (param_3 < (uint)param_1[4]) {\n      do {\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      } while (param_3 < (uint)param_1[4]);\n    }\n  }" { (expression_statement "iVar1 = param_1[3];" (assignment_expression "iVar1 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "*puVar2 = param_1;" (assignment_expression "*puVar2 = param_1" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "puVar3 = puVar2 + 3;" (assignment_expression "puVar3 = puVar2 + 3" identifier = (binary_expression "puVar2 + 3" identifier + number_literal)) ;) (expression_statement "puVar2[1] = puVar3;" (assignment_expression "puVar2[1] = puVar3" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[2] = iVar1 + (int)puVar3;" (assignment_expression "puVar2[2] = iVar1 + (int)puVar3" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = (binary_expression "iVar1 + (int)puVar3" identifier + (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "pcVar4 = (code *)*param_1;" (assignment_expression "pcVar4 = (code *)*param_1" identifier = (cast_expression "(code *)*param_1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if ((uint)param_1[4] < param_3) {\n      (*pcVar4)(puVar3);\n      (*(code *)param_1[1])(puVar2[1],param_2,param_3);\n      param_2 = (byte *)(puVar2[2] + param_1[3]);\n      (*(code *)param_1[2])(param_2,puVar2[1]);\n      param_3 = param_1[5];\n      pcVar4 = (code *)*param_1;\n      puVar3 = (undefined4 *)puVar2[1];\n    }" if (parenthesized_expression "((uint)param_1[4] < param_3)" ( (binary_expression "(uint)param_1[4] < param_3" (cast_expression "(uint)param_1[4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n      (*pcVar4)(puVar3);\n      (*(code *)param_1[1])(puVar2[1],param_2,param_3);\n      param_2 = (byte *)(puVar2[2] + param_1[3]);\n      (*(code *)param_1[2])(param_2,puVar2[1]);\n      param_3 = param_1[5];\n      pcVar4 = (code *)*param_1;\n      puVar3 = (undefined4 *)puVar2[1];\n    }" { (expression_statement "(*pcVar4)(puVar3);" (call_expression "(*pcVar4)(puVar3)" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "(puVar3)" ( identifier ))) ;) (expression_statement "(*(code *)param_1[1])(puVar2[1],param_2,param_3);" (call_expression "(*(code *)param_1[1])(puVar2[1],param_2,param_3)" (parenthesized_expression "(*(code *)param_1[1])" ( (pointer_expression "*(code *)param_1[1]" * (cast_expression "(code *)param_1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (argument_list "(puVar2[1],param_2,param_3)" ( (subscript_expression "puVar2[1]" identifier [ number_literal ]) , identifier , identifier ))) ;) (expression_statement "param_2 = (byte *)(puVar2[2] + param_1[3]);" (assignment_expression "param_2 = (byte *)(puVar2[2] + param_1[3])" identifier = (cast_expression "(byte *)(puVar2[2] + param_1[3])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2[2] + param_1[3])" ( (binary_expression "puVar2[2] + param_1[3]" (subscript_expression "puVar2[2]" identifier [ number_literal ]) + (subscript_expression "param_1[3]" identifier [ number_literal ])) )))) ;) (expression_statement "(*(code *)param_1[2])(param_2,puVar2[1]);" (call_expression "(*(code *)param_1[2])(param_2,puVar2[1])" (parenthesized_expression "(*(code *)param_1[2])" ( (pointer_expression "*(code *)param_1[2]" * (cast_expression "(code *)param_1[2]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) )) (argument_list "(param_2,puVar2[1])" ( identifier , (subscript_expression "puVar2[1]" identifier [ number_literal ]) ))) ;) (expression_statement "param_3 = param_1[5];" (assignment_expression "param_3 = param_1[5]" identifier = (subscript_expression "param_1[5]" identifier [ number_literal ])) ;) (expression_statement "pcVar4 = (code *)*param_1;" (assignment_expression "pcVar4 = (code *)*param_1" identifier = (cast_expression "(code *)*param_1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "puVar3 = (undefined4 *)puVar2[1];" (assignment_expression "puVar3 = (undefined4 *)puVar2[1]" identifier = (cast_expression "(undefined4 *)puVar2[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[1]" identifier [ number_literal ]))) ;) })) (expression_statement "(*pcVar4)(puVar3);" (call_expression "(*pcVar4)(puVar3)" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "(puVar3)" ( identifier ))) ;) (expression_statement "(*(code *)*param_1)(puVar2[2]);" (call_expression "(*(code *)*param_1)(puVar2[2])" (parenthesized_expression "(*(code *)*param_1)" ( (pointer_expression "*(code *)*param_1" * (cast_expression "(code *)*param_1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) )) (argument_list "(puVar2[2])" ( (subscript_expression "puVar2[2]" identifier [ number_literal ]) ))) ;) (if_statement "if (param_3 != 0) {\n      pbVar5 = param_2;\n      do {\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      } while (param_2 + param_3 != pbVar6);\n    }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n      pbVar5 = param_2;\n      do {\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      } while (param_2 + param_3 != pbVar6);\n    }" { (expression_statement "pbVar5 = param_2;" (assignment_expression "pbVar5 = param_2" identifier = identifier) ;) (do_statement "do {\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      } while (param_2 + param_3 != pbVar6);" do (compound_statement "{\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      }" { (expression_statement "pbVar6 = pbVar5 + 1;" (assignment_expression "pbVar6 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) (expression_statement "local_21 = *pbVar5 ^ 0x36;" (assignment_expression "local_21 = *pbVar5 ^ 0x36" identifier = (binary_expression "*pbVar5 ^ 0x36" (pointer_expression "*pbVar5" * identifier) ^ number_literal)) ;) (expression_statement "(*(code *)param_1[1])(puVar2[1],&local_21,1);" (call_expression "(*(code *)param_1[1])(puVar2[1],&local_21,1)" (parenthesized_expression "(*(code *)param_1[1])" ( (pointer_expression "*(code *)param_1[1]" * (cast_expression "(code *)param_1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (argument_list "(puVar2[1],&local_21,1)" ( (subscript_expression "puVar2[1]" identifier [ number_literal ]) , (pointer_expression "&local_21" & identifier) , number_literal ))) ;) (expression_statement "local_21 = *pbVar5 ^ 0x5c;" (assignment_expression "local_21 = *pbVar5 ^ 0x5c" identifier = (binary_expression "*pbVar5 ^ 0x5c" (pointer_expression "*pbVar5" * identifier) ^ number_literal)) ;) (expression_statement "(*(code *)param_1[1])(puVar2[2],&local_21,1);" (call_expression "(*(code *)param_1[1])(puVar2[2],&local_21,1)" (parenthesized_expression "(*(code *)param_1[1])" ( (pointer_expression "*(code *)param_1[1]" * (cast_expression "(code *)param_1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (argument_list "(puVar2[2],&local_21,1)" ( (subscript_expression "puVar2[2]" identifier [ number_literal ]) , (pointer_expression "&local_21" & identifier) , number_literal ))) ;) (expression_statement "pbVar5 = pbVar6;" (assignment_expression "pbVar5 = pbVar6" identifier = identifier) ;) }) while (parenthesized_expression "(param_2 + param_3 != pbVar6)" ( (binary_expression "param_2 + param_3 != pbVar6" (binary_expression "param_2 + param_3" identifier + identifier) != identifier) )) ;) })) (if_statement "if (param_3 < (uint)param_1[4]) {\n      do {\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      } while (param_3 < (uint)param_1[4]);\n    }" if (parenthesized_expression "(param_3 < (uint)param_1[4])" ( (binary_expression "param_3 < (uint)param_1[4]" identifier < (cast_expression "(uint)param_1[4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[4]" identifier [ number_literal ]))) )) (compound_statement "{\n      do {\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      } while (param_3 < (uint)param_1[4]);\n    }" { (do_statement "do {\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      } while (param_3 < (uint)param_1[4]);" do (compound_statement "{\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      }" { (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);" (call_expression "(*(code *)param_1[1])(puVar2[1],"6RTMPTS",1)" (parenthesized_expression "(*(code *)param_1[1])" ( (pointer_expression "*(code *)param_1[1]" * (cast_expression "(code *)param_1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (argument_list "(puVar2[1],"6RTMPTS",1)" ( (subscript_expression "puVar2[1]" identifier [ number_literal ]) , (string_literal ""6RTMPTS"" " string_content ") , number_literal ))) ;) (expression_statement "(*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);" (call_expression "(*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1)" (parenthesized_expression "(*(code *)param_1[1])" ( (pointer_expression "*(code *)param_1[1]" * (cast_expression "(code *)param_1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (argument_list "(puVar2[2],&DAT_0008bf34,1)" ( (subscript_expression "puVar2[2]" identifier [ number_literal ]) , (pointer_expression "&DAT_0008bf34" & identifier) , number_literal ))) ;) }) while (parenthesized_expression "(param_3 < (uint)param_1[4])" ( (binary_expression "param_3 < (uint)param_1[4]" identifier < (cast_expression "(uint)param_1[4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[4]" identifier [ number_literal ]))) )) ;) })) })) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00082f60();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_00082f60();\n  }" { (expression_statement "FUN_00082f60();" (call_expression "FUN_00082f60()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) + (binary_expression (subscript_expression IDENT [ LIT ]) * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < IDENT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (subscript_expression IDENT [ LIT ])) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) ^ LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) , (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) ^ LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) , (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) != IDENT) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) , (string_literal " string_content ") , LIT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) , (pointer_expression & IDENT) , LIT ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 * FUN_0005f9d0(undefined4 *param_1,byte *param_2,uint param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  code *pcVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  int in_GS_OFFSET;\n  byte local_21;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar2 = (undefined4 *)(*(code *)PTR_malloc_000b7070)(param_1[5] + 0xc + param_1[3] * 2);\n  if (puVar2 != (undefined4 *)0x0) {\n    iVar1 = param_1[3];\n    *puVar2 = param_1;\n    puVar3 = puVar2 + 3;\n    puVar2[1] = puVar3;\n    puVar2[2] = iVar1 + (int)puVar3;\n    pcVar4 = (code *)*param_1;\n    if ((uint)param_1[4] < param_3) {\n      (*pcVar4)(puVar3);\n      (*(code *)param_1[1])(puVar2[1],param_2,param_3);\n      param_2 = (byte *)(puVar2[2] + param_1[3]);\n      (*(code *)param_1[2])(param_2,puVar2[1]);\n      param_3 = param_1[5];\n      pcVar4 = (code *)*param_1;\n      puVar3 = (undefined4 *)puVar2[1];\n    }\n    (*pcVar4)(puVar3);\n    (*(code *)*param_1)(puVar2[2]);\n    if (param_3 != 0) {\n      pbVar5 = param_2;\n      do {\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      } while (param_2 + param_3 != pbVar6);\n    }\n    if (param_3 < (uint)param_1[4]) {\n      do {\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      } while (param_3 < (uint)param_1[4]);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00082f60();\n  }\n  return puVar2;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_0005f9d0(undefined4 *param_1,byte *param_2,uint param_3)" (* "*") (function_declarator "FUN_0005f9d0(undefined4 *param_1,byte *param_2,uint param_3)" (identifier "FUN_0005f9d0") (parameter_list "(undefined4 *param_1,byte *param_2,uint param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "byte *param_2" (type_identifier "byte") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")")))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  code *pcVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  int in_GS_OFFSET;\n  byte local_21;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar2 = (undefined4 *)(*(code *)PTR_malloc_000b7070)(param_1[5] + 0xc + param_1[3] * 2);\n  if (puVar2 != (undefined4 *)0x0) {\n    iVar1 = param_1[3];\n    *puVar2 = param_1;\n    puVar3 = puVar2 + 3;\n    puVar2[1] = puVar3;\n    puVar2[2] = iVar1 + (int)puVar3;\n    pcVar4 = (code *)*param_1;\n    if ((uint)param_1[4] < param_3) {\n      (*pcVar4)(puVar3);\n      (*(code *)param_1[1])(puVar2[1],param_2,param_3);\n      param_2 = (byte *)(puVar2[2] + param_1[3]);\n      (*(code *)param_1[2])(param_2,puVar2[1]);\n      param_3 = param_1[5];\n      pcVar4 = (code *)*param_1;\n      puVar3 = (undefined4 *)puVar2[1];\n    }\n    (*pcVar4)(puVar3);\n    (*(code *)*param_1)(puVar2[2]);\n    if (param_3 != 0) {\n      pbVar5 = param_2;\n      do {\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      } while (param_2 + param_3 != pbVar6);\n    }\n    if (param_3 < (uint)param_1[4]) {\n      do {\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      } while (param_3 < (uint)param_1[4]);\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00082f60();\n  }\n  return puVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "code *pcVar4;" (type_identifier "code") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "byte *pbVar6;" (type_identifier "byte") (pointer_declarator "*pbVar6" (* "*") (identifier "pbVar6")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "byte local_21;" (type_identifier "byte") (identifier "local_21") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR_malloc_000b7070)(param_1[5] + 0xc + param_1[3] * 2);" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR_malloc_000b7070)(param_1[5] + 0xc + param_1[3] * 2)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR_malloc_000b7070)(param_1[5] + 0xc + param_1[3] * 2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_malloc_000b7070)(param_1[5] + 0xc + param_1[3] * 2)" (parenthesized_expression "(*(code *)PTR_malloc_000b7070)" (( "(") (pointer_expression "*(code *)PTR_malloc_000b7070" (* "*") (cast_expression "(code *)PTR_malloc_000b7070" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_malloc_000b7070"))) () ")")) (argument_list "(param_1[5] + 0xc + param_1[3] * 2)" (( "(") (binary_expression "param_1[5] + 0xc + param_1[3] * 2" (binary_expression "param_1[5] + 0xc" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (+ "+") (number_literal "0xc")) (+ "+") (binary_expression "param_1[3] * 2" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (* "*") (number_literal "2"))) () ")"))))) (; ";")) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n    iVar1 = param_1[3];\n    *puVar2 = param_1;\n    puVar3 = puVar2 + 3;\n    puVar2[1] = puVar3;\n    puVar2[2] = iVar1 + (int)puVar3;\n    pcVar4 = (code *)*param_1;\n    if ((uint)param_1[4] < param_3) {\n      (*pcVar4)(puVar3);\n      (*(code *)param_1[1])(puVar2[1],param_2,param_3);\n      param_2 = (byte *)(puVar2[2] + param_1[3]);\n      (*(code *)param_1[2])(param_2,puVar2[1]);\n      param_3 = param_1[5];\n      pcVar4 = (code *)*param_1;\n      puVar3 = (undefined4 *)puVar2[1];\n    }\n    (*pcVar4)(puVar3);\n    (*(code *)*param_1)(puVar2[2]);\n    if (param_3 != 0) {\n      pbVar5 = param_2;\n      do {\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      } while (param_2 + param_3 != pbVar6);\n    }\n    if (param_3 < (uint)param_1[4]) {\n      do {\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      } while (param_3 < (uint)param_1[4]);\n    }\n  }" (if "if") (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 != (undefined4 *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar1 = param_1[3];\n    *puVar2 = param_1;\n    puVar3 = puVar2 + 3;\n    puVar2[1] = puVar3;\n    puVar2[2] = iVar1 + (int)puVar3;\n    pcVar4 = (code *)*param_1;\n    if ((uint)param_1[4] < param_3) {\n      (*pcVar4)(puVar3);\n      (*(code *)param_1[1])(puVar2[1],param_2,param_3);\n      param_2 = (byte *)(puVar2[2] + param_1[3]);\n      (*(code *)param_1[2])(param_2,puVar2[1]);\n      param_3 = param_1[5];\n      pcVar4 = (code *)*param_1;\n      puVar3 = (undefined4 *)puVar2[1];\n    }\n    (*pcVar4)(puVar3);\n    (*(code *)*param_1)(puVar2[2]);\n    if (param_3 != 0) {\n      pbVar5 = param_2;\n      do {\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      } while (param_2 + param_3 != pbVar6);\n    }\n    if (param_3 < (uint)param_1[4]) {\n      do {\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      } while (param_3 < (uint)param_1[4]);\n    }\n  }" ({ "{") (expression_statement "iVar1 = param_1[3];" (assignment_expression "iVar1 = param_1[3]" (identifier "iVar1") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "*puVar2 = param_1;" (assignment_expression "*puVar2 = param_1" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "puVar3 = puVar2 + 3;" (assignment_expression "puVar3 = puVar2 + 3" (identifier "puVar3") (= "=") (binary_expression "puVar2 + 3" (identifier "puVar2") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "puVar2[1] = puVar3;" (assignment_expression "puVar2[1] = puVar3" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "puVar3")) (; ";")) (expression_statement "puVar2[2] = iVar1 + (int)puVar3;" (assignment_expression "puVar2[2] = iVar1 + (int)puVar3" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "iVar1 + (int)puVar3" (identifier "iVar1") (+ "+") (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3")))) (; ";")) (expression_statement "pcVar4 = (code *)*param_1;" (assignment_expression "pcVar4 = (code *)*param_1" (identifier "pcVar4") (= "=") (cast_expression "(code *)*param_1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if ((uint)param_1[4] < param_3) {\n      (*pcVar4)(puVar3);\n      (*(code *)param_1[1])(puVar2[1],param_2,param_3);\n      param_2 = (byte *)(puVar2[2] + param_1[3]);\n      (*(code *)param_1[2])(param_2,puVar2[1]);\n      param_3 = param_1[5];\n      pcVar4 = (code *)*param_1;\n      puVar3 = (undefined4 *)puVar2[1];\n    }" (if "if") (parenthesized_expression "((uint)param_1[4] < param_3)" (( "(") (binary_expression "(uint)param_1[4] < param_3" (cast_expression "(uint)param_1[4]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n      (*pcVar4)(puVar3);\n      (*(code *)param_1[1])(puVar2[1],param_2,param_3);\n      param_2 = (byte *)(puVar2[2] + param_1[3]);\n      (*(code *)param_1[2])(param_2,puVar2[1]);\n      param_3 = param_1[5];\n      pcVar4 = (code *)*param_1;\n      puVar3 = (undefined4 *)puVar2[1];\n    }" ({ "{") (expression_statement "(*pcVar4)(puVar3);" (call_expression "(*pcVar4)(puVar3)" (parenthesized_expression "(*pcVar4)" (( "(") (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) () ")")) (argument_list "(puVar3)" (( "(") (identifier "puVar3") () ")"))) (; ";")) (expression_statement "(*(code *)param_1[1])(puVar2[1],param_2,param_3);" (call_expression "(*(code *)param_1[1])(puVar2[1],param_2,param_3)" (parenthesized_expression "(*(code *)param_1[1])" (( "(") (pointer_expression "*(code *)param_1[1]" (* "*") (cast_expression "(code *)param_1[1]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (argument_list "(puVar2[1],param_2,param_3)" (( "(") (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "param_2 = (byte *)(puVar2[2] + param_1[3]);" (assignment_expression "param_2 = (byte *)(puVar2[2] + param_1[3])" (identifier "param_2") (= "=") (cast_expression "(byte *)(puVar2[2] + param_1[3])" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2[2] + param_1[3])" (( "(") (binary_expression "puVar2[2] + param_1[3]" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (+ "+") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) () ")")))) (; ";")) (expression_statement "(*(code *)param_1[2])(param_2,puVar2[1]);" (call_expression "(*(code *)param_1[2])(param_2,puVar2[1])" (parenthesized_expression "(*(code *)param_1[2])" (( "(") (pointer_expression "*(code *)param_1[2]" (* "*") (cast_expression "(code *)param_1[2]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) () ")")) (argument_list "(param_2,puVar2[1])" (( "(") (identifier "param_2") (, ",") (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) () ")"))) (; ";")) (expression_statement "param_3 = param_1[5];" (assignment_expression "param_3 = param_1[5]" (identifier "param_3") (= "=") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "pcVar4 = (code *)*param_1;" (assignment_expression "pcVar4 = (code *)*param_1" (identifier "pcVar4") (= "=") (cast_expression "(code *)*param_1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "puVar3 = (undefined4 *)puVar2[1];" (assignment_expression "puVar3 = (undefined4 *)puVar2[1]" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)puVar2[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")))) (; ";")) (} "}"))) (expression_statement "(*pcVar4)(puVar3);" (call_expression "(*pcVar4)(puVar3)" (parenthesized_expression "(*pcVar4)" (( "(") (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) () ")")) (argument_list "(puVar3)" (( "(") (identifier "puVar3") () ")"))) (; ";")) (expression_statement "(*(code *)*param_1)(puVar2[2]);" (call_expression "(*(code *)*param_1)(puVar2[2])" (parenthesized_expression "(*(code *)*param_1)" (( "(") (pointer_expression "*(code *)*param_1" (* "*") (cast_expression "(code *)*param_1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) () ")")) (argument_list "(puVar2[2])" (( "(") (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) () ")"))) (; ";")) (if_statement "if (param_3 != 0) {\n      pbVar5 = param_2;\n      do {\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      } while (param_2 + param_3 != pbVar6);\n    }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      pbVar5 = param_2;\n      do {\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      } while (param_2 + param_3 != pbVar6);\n    }" ({ "{") (expression_statement "pbVar5 = param_2;" (assignment_expression "pbVar5 = param_2" (identifier "pbVar5") (= "=") (identifier "param_2")) (; ";")) (do_statement "do {\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      } while (param_2 + param_3 != pbVar6);" (do "do") (compound_statement "{\n        pbVar6 = pbVar5 + 1;\n        local_21 = *pbVar5 ^ 0x36;\n        (*(code *)param_1[1])(puVar2[1],&local_21,1);\n        local_21 = *pbVar5 ^ 0x5c;\n        (*(code *)param_1[1])(puVar2[2],&local_21,1);\n        pbVar5 = pbVar6;\n      }" ({ "{") (expression_statement "pbVar6 = pbVar5 + 1;" (assignment_expression "pbVar6 = pbVar5 + 1" (identifier "pbVar6") (= "=") (binary_expression "pbVar5 + 1" (identifier "pbVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_21 = *pbVar5 ^ 0x36;" (assignment_expression "local_21 = *pbVar5 ^ 0x36" (identifier "local_21") (= "=") (binary_expression "*pbVar5 ^ 0x36" (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5")) (^ "^") (number_literal "0x36"))) (; ";")) (expression_statement "(*(code *)param_1[1])(puVar2[1],&local_21,1);" (call_expression "(*(code *)param_1[1])(puVar2[1],&local_21,1)" (parenthesized_expression "(*(code *)param_1[1])" (( "(") (pointer_expression "*(code *)param_1[1]" (* "*") (cast_expression "(code *)param_1[1]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (argument_list "(puVar2[1],&local_21,1)" (( "(") (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (, ",") (pointer_expression "&local_21" (& "&") (identifier "local_21")) (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "local_21 = *pbVar5 ^ 0x5c;" (assignment_expression "local_21 = *pbVar5 ^ 0x5c" (identifier "local_21") (= "=") (binary_expression "*pbVar5 ^ 0x5c" (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5")) (^ "^") (number_literal "0x5c"))) (; ";")) (expression_statement "(*(code *)param_1[1])(puVar2[2],&local_21,1);" (call_expression "(*(code *)param_1[1])(puVar2[2],&local_21,1)" (parenthesized_expression "(*(code *)param_1[1])" (( "(") (pointer_expression "*(code *)param_1[1]" (* "*") (cast_expression "(code *)param_1[1]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (argument_list "(puVar2[2],&local_21,1)" (( "(") (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (, ",") (pointer_expression "&local_21" (& "&") (identifier "local_21")) (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "pbVar5 = pbVar6;" (assignment_expression "pbVar5 = pbVar6" (identifier "pbVar5") (= "=") (identifier "pbVar6")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 + param_3 != pbVar6)" (( "(") (binary_expression "param_2 + param_3 != pbVar6" (binary_expression "param_2 + param_3" (identifier "param_2") (+ "+") (identifier "param_3")) (!= "!=") (identifier "pbVar6")) () ")")) (; ";")) (} "}"))) (if_statement "if (param_3 < (uint)param_1[4]) {\n      do {\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      } while (param_3 < (uint)param_1[4]);\n    }" (if "if") (parenthesized_expression "(param_3 < (uint)param_1[4])" (( "(") (binary_expression "param_3 < (uint)param_1[4]" (identifier "param_3") (< "<") (cast_expression "(uint)param_1[4]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")))) () ")")) (compound_statement "{\n      do {\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      } while (param_3 < (uint)param_1[4]);\n    }" ({ "{") (do_statement "do {\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      } while (param_3 < (uint)param_1[4]);" (do "do") (compound_statement "{\n        param_3 = param_3 + 1;\n        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);\n        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);\n      }" ({ "{") (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" (identifier "param_3") (= "=") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "(*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);" (call_expression "(*(code *)param_1[1])(puVar2[1],"6RTMPTS",1)" (parenthesized_expression "(*(code *)param_1[1])" (( "(") (pointer_expression "*(code *)param_1[1]" (* "*") (cast_expression "(code *)param_1[1]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (argument_list "(puVar2[1],"6RTMPTS",1)" (( "(") (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (, ",") (string_literal ""6RTMPTS"" (" """) (string_content "6RTMPTS") (" """)) (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "(*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);" (call_expression "(*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1)" (parenthesized_expression "(*(code *)param_1[1])" (( "(") (pointer_expression "*(code *)param_1[1]" (* "*") (cast_expression "(code *)param_1[1]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (argument_list "(puVar2[2],&DAT_0008bf34,1)" (( "(") (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (, ",") (pointer_expression "&DAT_0008bf34" (& "&") (identifier "DAT_0008bf34")) (, ",") (number_literal "1") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_3 < (uint)param_1[4])" (( "(") (binary_expression "param_3 < (uint)param_1[4]" (identifier "param_3") (< "<") (cast_expression "(uint)param_1[4]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")))) () ")")) (; ";")) (} "}"))) (} "}"))) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00082f60();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_00082f60();\n  }" ({ "{") (expression_statement "FUN_00082f60();" (call_expression "FUN_00082f60()" (identifier "FUN_00082f60") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}")))

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

type_1 * function_1(type_2 *hashparams,type_3 *var_6,type_4 var_4)

{
  type_4 var_3;
  type_1 *var_2;
  type_1 *pHVar3;
  type_5 p_Var4;
  type_6 *var_5;
  type_6 *var_7;
  int var_1;
  type_3 b;
  int var_8;
  
  var_8 = *(int *)(var_1 + 0x14);
  var_2 = (type_1 *)
           (*Curl_cmalloc)(hashparams->hmac_resultlen + 0xc + hashparams->hmac_ctxtsize * 2);
  if (var_2 != (type_1 *)0x0) {
    var_3 = hashparams->hmac_ctxtsize;
    var_2->hmac_hash = hashparams;
    pHVar3 = var_2 + 1;
    var_2->hmac_hashctxt1 = pHVar3;
    var_2->hmac_hashctxt2 = (void *)((int)&pHVar3->hmac_hash + var_3);
    p_Var4 = hashparams->hmac_hinit;
    if (hashparams->hmac_maxkeylen < var_4) {
      (*p_Var4)(pHVar3);
      (*hashparams->hmac_hupdate)(var_2->hmac_hashctxt1,var_6,var_4);
      var_6 = (type_3 *)((int)var_2->hmac_hashctxt2 + hashparams->hmac_ctxtsize);
      (*hashparams->hmac_hfinal)(var_6,var_2->hmac_hashctxt1);
      var_4 = hashparams->hmac_resultlen;
      p_Var4 = hashparams->hmac_hinit;
      pHVar3 = (type_1 *)var_2->hmac_hashctxt1;
    }
    (*p_Var4)(pHVar3);
    (*hashparams->hmac_hinit)(var_2->hmac_hashctxt2);
    if (var_4 != 0) {
      var_5 = var_6;
      do {
        var_7 = var_5 + 1;
        b = *var_5 ^ 0x36;
        (*hashparams->hmac_hupdate)(var_2->hmac_hashctxt1,&b,1);
        b = *var_5 ^ 0x5c;
        (*hashparams->hmac_hupdate)(var_2->hmac_hashctxt2,&b,1);
        var_5 = var_7;
      } while (var_6 + var_4 != var_7);
    }
    if (var_4 < hashparams->hmac_maxkeylen) {
      do {
        var_4 = var_4 + 1;
        (*hashparams->hmac_hupdate)(var_2->hmac_hashctxt1,"6RTMPTS",1);
        (*hashparams->hmac_hupdate)(var_2->hmac_hashctxt2,"\\6RTMPTS",1);
      } while (var_4 < hashparams->hmac_maxkeylen);
    }
  }
  if (var_8 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_9();
  }
  return var_2;
}


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

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

undefined4 * MASKED(undefined4 *param_1,byte *param_2,uint param_3)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  code *pcVar4;
  byte *pbVar5;
  byte *pbVar6;
  int in_GS_OFFSET;
  byte local_21;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  puVar2 = (undefined4 *)(*(code *)PTR_malloc_000b7070)(param_1[5] + 0xc + param_1[3] * 2);
  if (puVar2 != (undefined4 *)0x0) {
    iVar1 = param_1[3];
    *puVar2 = param_1;
    puVar3 = puVar2 + 3;
    puVar2[1] = puVar3;
    puVar2[2] = iVar1 + (int)puVar3;
    pcVar4 = (code *)*param_1;
    if ((uint)param_1[4] < param_3) {
      (*pcVar4)(puVar3);
      (*(code *)param_1[1])(puVar2[1],param_2,param_3);
      param_2 = (byte *)(puVar2[2] + param_1[3]);
      (*(code *)param_1[2])(param_2,puVar2[1]);
      param_3 = param_1[5];
      pcVar4 = (code *)*param_1;
      puVar3 = (undefined4 *)puVar2[1];
    }
    (*pcVar4)(puVar3);
    (*(code *)*param_1)(puVar2[2]);
    if (param_3 != 0) {
      pbVar5 = param_2;
      do {
        pbVar6 = pbVar5 + 1;
        local_21 = *pbVar5 ^ 0x36;
        (*(code *)param_1[1])(puVar2[1],&local_21,1);
        local_21 = *pbVar5 ^ 0x5c;
        (*(code *)param_1[1])(puVar2[2],&local_21,1);
        pbVar5 = pbVar6;
      } while (param_2 + param_3 != pbVar6);
    }
    if (param_3 < (uint)param_1[4]) {
      do {
        param_3 = param_3 + 1;
        (*(code *)param_1[1])(puVar2[1],"6RTMPTS",1);
        (*(code *)param_1[1])(puVar2[2],&DAT_0008bf34,1);
      } while (param_3 < (uint)param_1[4]);
    }
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00082f60();
  }
  return puVar2;
}

