
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::string::_M_mutate(unsigned int, unsigned int, unsigned int) */

void std::string::_M_mutate(uint param_1,uint param_2,uint param_3)

{
}



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

void FUN_00280000(int *param_1,size_t param_2,int param_3,int param_4)

{
  int *piVar1;
  uint uVar2;
  undefined4 *puVar3;
  undefined1 *puVar4;
  int iVar5;
  int iVar6;
  size_t __n;
  uint uVar7;
  undefined4 *local_3c;
  undefined1 local_1d [9];
  undefined4 uStack_14;
  
  uStack_14 = 0x280009;
  iVar5 = *param_1;
  uVar2 = (param_4 - param_3) + *(int *)(iVar5 + -0xc);
  uVar7 = *(uint *)(iVar5 + -8);
  iVar6 = param_2 + param_3;
  __n = *(int *)(iVar5 + -0xc) - iVar6;
  if (uVar7 < uVar2) {
LAB_00280051:
    puVar3 = (undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d);
    if (param_2 != 0) {
      if (param_2 == 1) {
        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;
      }
      else {
        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);
      }
    }
    local_3c = puVar3 + 3;
    iVar5 = *param_1;
    if (__n != 0) {
      puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3);
      if (__n == 1) {
        *puVar4 = *(undefined1 *)(iVar6 + iVar5);
        iVar5 = *param_1;
      }
      else {
        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);
        iVar5 = *param_1;
      }
    }
    if ((undefined4 *)(iVar5 + -0xc) != &DAT_0041c0a0) {
      if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {
        iVar6 = *(int *)(iVar5 + -4);
        *(int *)(iVar5 + -4) = iVar6 + -1;
      }
      else {
        LOCK();
        piVar1 = (int *)(iVar5 + -4);
        iVar6 = *piVar1;
        *piVar1 = *piVar1 + -1;
        UNLOCK();
      }
      if (iVar6 < 1) {
        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);
      }
    }
    *param_1 = (int)local_3c;
  }
  else {
    local_3c = (undefined4 *)*param_1;
    if (0 < *(int *)(iVar5 + -4)) {
      uVar7 = local_3c[-2];
      goto LAB_00280051;
    }
    if ((__n == 0) || (param_4 == param_3)) {
      if (local_3c == (undefined4 *)&DAT_0041c0ac) {
        return;
      }
      goto LAB_00280188;
    }
    puVar4 = (undefined1 *)(param_4 + param_2 + (int)local_3c);
    if (__n == 1) {
      *puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);
      local_3c = (undefined4 *)*param_1;
      puVar3 = local_3c + -3;
    }
    else {
      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);
      local_3c = (undefined4 *)*param_1;
      puVar3 = local_3c + -3;
    }
  }
  if (puVar3 == &DAT_0041c0a0) {
    return;
  }
LAB_00280188:
  local_3c[-1] = 0;
  local_3c[-3] = uVar2;
  *(undefined1 *)((int)local_3c + uVar2) = 0;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0003a210
ADD EBX,0x193ff7
SUB ESP,0x2c
MOV EAX,dword ptr [ESP + 0x40]
MOV ECX,dword ptr [ESP + 0x48]
MOV EDX,dword ptr [ESP + 0x4c]
MOV EAX,dword ptr [EAX]
SUB EDX,ECX
MOV ESI,dword ptr [EAX + -0xc]
LEA EDI,[EDX + ESI*0x1]
MOV EDX,dword ptr [ESP + 0x44]
MOV EBP,EDI
MOV dword ptr [ESP + 0x4],EDI
MOV EDI,dword ptr [EAX + -0x8]
ADD EDX,ECX
SUB ESI,EDX
CMP EBP,EDI
JA 0x00280051
MOV EAX,dword ptr [EAX + -0x4]
TEST EAX,EAX
MOV EAX,dword ptr [ESP + 0x40]
MOV EAX,dword ptr [EAX]
JLE 0x00280120
MOV EDI,dword ptr [EAX + -0x8]
MOV dword ptr [ESP],EDX
SUB ESP,0x4
LEA EAX,[ESP + 0x23]
MOV dword ptr [ESP + 0xc],EAX
PUSH EAX
PUSH EDI
PUSH dword ptr [ESP + 0x10]
CALL 0x0027fbe0
ADD ESP,0x10
MOV EBP,dword ptr [ESP + 0x44]
MOV EDX,dword ptr [ESP]
MOV EDI,EAX
TEST EBP,EBP
JNZ 0x002800e8
LEA EAX,[EAX + 0xc]
MOV dword ptr [ESP],EAX
MOV EAX,dword ptr [ESP + 0x40]
MOV EAX,dword ptr [EAX]
TEST ESI,ESI
JZ 0x002800b7
ADD EDX,EAX
MOV ECX,dword ptr [ESP + 0x4c]
MOV EAX,dword ptr [ESP + 0x44]
LEA EAX,[EAX + ECX*0x1 + 0xc]
ADD EAX,EDI
CMP ESI,0x1
JZ 0x002801b8
SUB ESP,0x4
PUSH ESI
PUSH EDX
PUSH EAX
CALL 0x0002c2d0
MOV EAX,dword ptr [ESP + 0x50]
ADD ESP,0x10
MOV EAX,dword ptr [EAX]
LEA ESI,[EBX + 0x80a0]
LEA EDX,[EAX + -0xc]
CMP EDX,ESI
JNZ 0x002801d0
MOV EAX,dword ptr [ESP]
MOV EBX,dword ptr [ESP + 0x40]
MOV dword ptr [EBX],EAX
CMP EDI,ESI
JNZ 0x00280188
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x40]
LEA ECX,[EDI + 0xc]
CMP dword ptr [ESP + 0x44],0x1
MOV dword ptr [ESP],ECX
MOV EAX,dword ptr [EAX]
JZ 0x002801a8
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0x4
PUSH dword ptr [ESP + 0x48]
PUSH EAX
PUSH dword ptr [ESP + 0xc]
CALL 0x0002c2d0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
JMP 0x00280080
MOV dword ptr [ESP],EAX
TEST ESI,ESI
JZ 0x00280170
CMP dword ptr [ESP + 0x4c],ECX
JZ 0x00280170
MOV ECX,dword ptr [ESP]
MOV EAX,dword ptr [ESP + 0x4c]
ADD EAX,dword ptr [ESP + 0x44]
ADD EDX,ECX
ADD EAX,ECX
CMP ESI,0x1
JZ 0x00280218
SUB ESP,0x4
PUSH ESI
PUSH EDX
PUSH EAX
CALL 0x0002ca40
MOV EAX,dword ptr [ESP + 0x50]
LEA ESI,[EBX + 0x80a0]
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0x10],EAX
LEA EDI,[EAX + -0xc]
ADD ESP,0x10
JMP 0x002800d1
MOV EAX,dword ptr [ESP]
LEA ESI,[EBX + 0x80a0]
LEA EDI,[EAX + -0xc]
CMP EDI,ESI
JZ 0x002800d9
LEA ESI,[ESI]
MOV EAX,dword ptr [ESP]
MOV EBX,dword ptr [ESP + 0x4]
MOV dword ptr [EAX + -0x4],0x0
MOV dword ptr [EAX + -0xc],EBX
MOV byte ptr [EAX + EBX*0x1],0x0
JMP 0x002800d9
MOVZX EAX,byte ptr [EAX]
MOV byte ptr [EDI + 0xc],AL
JMP 0x00280080
MOVZX EDX,byte ptr [EDX]
MOV byte ptr [EAX],DL
MOV EAX,dword ptr [ESP + 0x40]
MOV EAX,dword ptr [EAX]
JMP 0x002800b7
MOV ECX,dword ptr [EBX + 0xfffffff8]
TEST ECX,ECX
JZ 0x00280208
MOV ECX,0xffffffff
XADD.LOCK dword ptr [EAX + -0x4],ECX
TEST ECX,ECX
JG 0x002800c8
SUB ESP,0x8
PUSH dword ptr [ESP + 0x10]
PUSH EDX
CALL 0x0027fe20
ADD ESP,0x10
JMP 0x002800c8
MOV ECX,dword ptr [EAX + -0x4]
LEA EBP,[ECX + -0x1]
MOV dword ptr [EAX + -0x4],EBP
JMP 0x002801e4
MOVZX EDX,byte ptr [EDX]
LEA ESI,[EBX + 0x80a0]
MOV byte ptr [EAX],DL
MOV EAX,dword ptr [ESP + 0x40]
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP],EAX
LEA EDI,[EAX + -0xc]
JMP 0x002800d1
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00280000(int *param_1,size_t param_2,int param_3,int param_4)\n\n{\n  int *piVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  int iVar6;\n  size_t __n;\n  uint uVar7;\n  undefined4 *local_3c;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x280009;\n  iVar5 = *param_1;\n  uVar2 = (param_4 - param_3) + *(int *)(iVar5 + -0xc);\n  uVar7 = *(uint *)(iVar5 + -8);\n  iVar6 = param_2 + param_3;\n  __n = *(int *)(iVar5 + -0xc) - iVar6;\n  if (uVar7 < uVar2) {\nLAB_00280051:\n    puVar3 = (undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d);\n    if (param_2 != 0) {\n      if (param_2 == 1) {\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }\n      else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }\n    }\n    local_3c = puVar3 + 3;\n    iVar5 = *param_1;\n    if (__n != 0) {\n      puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3);\n      if (__n == 1) {\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }\n      else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }\n    }\n    if ((undefined4 *)(iVar5 + -0xc) != &DAT_0041c0a0) {\n      if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar6 < 1) {\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }\n    }\n    *param_1 = (int)local_3c;\n  }\n  else {\n    local_3c = (undefined4 *)*param_1;\n    if (0 < *(int *)(iVar5 + -4)) {\n      uVar7 = local_3c[-2];\n      goto LAB_00280051;\n    }\n    if ((__n == 0) || (param_4 == param_3)) {\n      if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }\n      goto LAB_00280188;\n    }\n    puVar4 = (undefined1 *)(param_4 + param_2 + (int)local_3c);\n    if (__n == 1) {\n      *puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n    else {\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n  }\n  if (puVar3 == &DAT_0041c0a0) {\n    return;\n  }\nLAB_00280188:\n  local_3c[-1] = 0;\n  local_3c[-3] = uVar2;\n  *(undefined1 *)((int)local_3c + uVar2) = 0;\n  return;\n}\n\n" comment (function_definition "void FUN_00280000(int *param_1,size_t param_2,int param_3,int param_4)\n\n{\n  int *piVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  int iVar6;\n  size_t __n;\n  uint uVar7;\n  undefined4 *local_3c;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x280009;\n  iVar5 = *param_1;\n  uVar2 = (param_4 - param_3) + *(int *)(iVar5 + -0xc);\n  uVar7 = *(uint *)(iVar5 + -8);\n  iVar6 = param_2 + param_3;\n  __n = *(int *)(iVar5 + -0xc) - iVar6;\n  if (uVar7 < uVar2) {\nLAB_00280051:\n    puVar3 = (undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d);\n    if (param_2 != 0) {\n      if (param_2 == 1) {\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }\n      else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }\n    }\n    local_3c = puVar3 + 3;\n    iVar5 = *param_1;\n    if (__n != 0) {\n      puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3);\n      if (__n == 1) {\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }\n      else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }\n    }\n    if ((undefined4 *)(iVar5 + -0xc) != &DAT_0041c0a0) {\n      if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar6 < 1) {\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }\n    }\n    *param_1 = (int)local_3c;\n  }\n  else {\n    local_3c = (undefined4 *)*param_1;\n    if (0 < *(int *)(iVar5 + -4)) {\n      uVar7 = local_3c[-2];\n      goto LAB_00280051;\n    }\n    if ((__n == 0) || (param_4 == param_3)) {\n      if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }\n      goto LAB_00280188;\n    }\n    puVar4 = (undefined1 *)(param_4 + param_2 + (int)local_3c);\n    if (__n == 1) {\n      *puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n    else {\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n  }\n  if (puVar3 == &DAT_0041c0a0) {\n    return;\n  }\nLAB_00280188:\n  local_3c[-1] = 0;\n  local_3c[-3] = uVar2;\n  *(undefined1 *)((int)local_3c + uVar2) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00280000(int *param_1,size_t param_2,int param_3,int param_4)" identifier (parameter_list "(int *param_1,size_t param_2,int param_3,int param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  int iVar6;\n  size_t __n;\n  uint uVar7;\n  undefined4 *local_3c;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x280009;\n  iVar5 = *param_1;\n  uVar2 = (param_4 - param_3) + *(int *)(iVar5 + -0xc);\n  uVar7 = *(uint *)(iVar5 + -8);\n  iVar6 = param_2 + param_3;\n  __n = *(int *)(iVar5 + -0xc) - iVar6;\n  if (uVar7 < uVar2) {\nLAB_00280051:\n    puVar3 = (undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d);\n    if (param_2 != 0) {\n      if (param_2 == 1) {\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }\n      else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }\n    }\n    local_3c = puVar3 + 3;\n    iVar5 = *param_1;\n    if (__n != 0) {\n      puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3);\n      if (__n == 1) {\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }\n      else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }\n    }\n    if ((undefined4 *)(iVar5 + -0xc) != &DAT_0041c0a0) {\n      if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar6 < 1) {\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }\n    }\n    *param_1 = (int)local_3c;\n  }\n  else {\n    local_3c = (undefined4 *)*param_1;\n    if (0 < *(int *)(iVar5 + -4)) {\n      uVar7 = local_3c[-2];\n      goto LAB_00280051;\n    }\n    if ((__n == 0) || (param_4 == param_3)) {\n      if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }\n      goto LAB_00280188;\n    }\n    puVar4 = (undefined1 *)(param_4 + param_2 + (int)local_3c);\n    if (__n == 1) {\n      *puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n    else {\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n  }\n  if (puVar3 == &DAT_0041c0a0) {\n    return;\n  }\nLAB_00280188:\n  local_3c[-1] = 0;\n  local_3c[-3] = uVar2;\n  *(undefined1 *)((int)local_3c + uVar2) = 0;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "undefined4 *local_3c;" type_identifier (pointer_declarator "*local_3c" * identifier) ;) (declaration "undefined1 local_1d [9];" type_identifier (array_declarator "local_1d [9]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x280009;" (assignment_expression "uStack_14 = 0x280009" identifier = number_literal) ;) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar2 = (param_4 - param_3) + *(int *)(iVar5 + -0xc);" (assignment_expression "uVar2 = (param_4 - param_3) + *(int *)(iVar5 + -0xc)" identifier = (binary_expression "(param_4 - param_3) + *(int *)(iVar5 + -0xc)" (parenthesized_expression "(param_4 - param_3)" ( (binary_expression "param_4 - param_3" identifier - identifier) )) + (pointer_expression "*(int *)(iVar5 + -0xc)" * (cast_expression "(int *)(iVar5 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -0xc)" ( (binary_expression "iVar5 + -0xc" identifier + number_literal) )))))) ;) (expression_statement "uVar7 = *(uint *)(iVar5 + -8);" (assignment_expression "uVar7 = *(uint *)(iVar5 + -8)" identifier = (pointer_expression "*(uint *)(iVar5 + -8)" * (cast_expression "(uint *)(iVar5 + -8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -8)" ( (binary_expression "iVar5 + -8" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = param_2 + param_3;" (assignment_expression "iVar6 = param_2 + param_3" identifier = (binary_expression "param_2 + param_3" identifier + identifier)) ;) (expression_statement "__n = *(int *)(iVar5 + -0xc) - iVar6;" (assignment_expression "__n = *(int *)(iVar5 + -0xc) - iVar6" identifier = (binary_expression "*(int *)(iVar5 + -0xc) - iVar6" (pointer_expression "*(int *)(iVar5 + -0xc)" * (cast_expression "(int *)(iVar5 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -0xc)" ( (binary_expression "iVar5 + -0xc" identifier + number_literal) )))) - identifier)) ;) (if_statement "if (uVar7 < uVar2) {\nLAB_00280051:\n    puVar3 = (undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d);\n    if (param_2 != 0) {\n      if (param_2 == 1) {\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }\n      else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }\n    }\n    local_3c = puVar3 + 3;\n    iVar5 = *param_1;\n    if (__n != 0) {\n      puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3);\n      if (__n == 1) {\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }\n      else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }\n    }\n    if ((undefined4 *)(iVar5 + -0xc) != &DAT_0041c0a0) {\n      if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar6 < 1) {\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }\n    }\n    *param_1 = (int)local_3c;\n  }\n  else {\n    local_3c = (undefined4 *)*param_1;\n    if (0 < *(int *)(iVar5 + -4)) {\n      uVar7 = local_3c[-2];\n      goto LAB_00280051;\n    }\n    if ((__n == 0) || (param_4 == param_3)) {\n      if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }\n      goto LAB_00280188;\n    }\n    puVar4 = (undefined1 *)(param_4 + param_2 + (int)local_3c);\n    if (__n == 1) {\n      *puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n    else {\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n  }" if (parenthesized_expression "(uVar7 < uVar2)" ( (binary_expression "uVar7 < uVar2" identifier < identifier) )) (compound_statement "{\nLAB_00280051:\n    puVar3 = (undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d);\n    if (param_2 != 0) {\n      if (param_2 == 1) {\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }\n      else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }\n    }\n    local_3c = puVar3 + 3;\n    iVar5 = *param_1;\n    if (__n != 0) {\n      puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3);\n      if (__n == 1) {\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }\n      else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }\n    }\n    if ((undefined4 *)(iVar5 + -0xc) != &DAT_0041c0a0) {\n      if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar6 < 1) {\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }\n    }\n    *param_1 = (int)local_3c;\n  }" { (labeled_statement "LAB_00280051:\n    puVar3 = (undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d);" statement_identifier : (expression_statement "puVar3 = (undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d);" (assignment_expression "puVar3 = (undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d)" identifier = (cast_expression "(undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0027fbe0(uVar2,uVar7,local_1d)" identifier (argument_list "(uVar2,uVar7,local_1d)" ( identifier , identifier , identifier ))))) ;)) (if_statement "if (param_2 != 0) {\n      if (param_2 == 1) {\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }\n      else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_2 == 1) {\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }\n      else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }\n    }" { (if_statement "if (param_2 == 1) {\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }\n      else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }" if (parenthesized_expression "(param_2 == 1)" ( (binary_expression "param_2 == 1" identifier == number_literal) )) (compound_statement "{\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }" { (expression_statement "*(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;" (assignment_expression "*(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1" (pointer_expression "*(undefined1 *)(puVar3 + 3)" * (cast_expression "(undefined1 *)(puVar3 + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 3)" ( (binary_expression "puVar3 + 3" identifier + number_literal) )))) = (pointer_expression "*(undefined1 *)*param_1" * (cast_expression "(undefined1 *)*param_1" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)))) ;) }) (else_clause "else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }" else (compound_statement "{\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }" { (expression_statement "memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);" (call_expression "memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2)" identifier (argument_list "(puVar3 + 3,(undefined1 *)*param_1,param_2)" ( (binary_expression "puVar3 + 3" identifier + number_literal) , (cast_expression "(undefined1 *)*param_1" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , identifier ))) ;) }))) })) (expression_statement "local_3c = puVar3 + 3;" (assignment_expression "local_3c = puVar3 + 3" identifier = (binary_expression "puVar3 + 3" identifier + number_literal)) ;) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (__n != 0) {\n      puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3);\n      if (__n == 1) {\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }\n      else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }\n    }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n      puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3);\n      if (__n == 1) {\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }\n      else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }\n    }" { (expression_statement "puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3);" (assignment_expression "puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3)" identifier = (cast_expression "(undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc + param_4 + (int)puVar3)" ( (binary_expression "param_2 + 0xc + param_4 + (int)puVar3" (binary_expression "param_2 + 0xc + param_4" (binary_expression "param_2 + 0xc" identifier + number_literal) + identifier) + (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (if_statement "if (__n == 1) {\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }\n      else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }" { (expression_statement "*puVar4 = *(undefined1 *)(iVar6 + iVar5);" (assignment_expression "*puVar4 = *(undefined1 *)(iVar6 + iVar5)" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*(undefined1 *)(iVar6 + iVar5)" * (cast_expression "(undefined1 *)(iVar6 + iVar5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + iVar5)" ( (binary_expression "iVar6 + iVar5" identifier + identifier) ))))) ;) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }) (else_clause "else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }" else (compound_statement "{\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }" { (expression_statement "memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);" (call_expression "memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n)" identifier (argument_list "(puVar4,(undefined1 *)(iVar6 + iVar5),__n)" ( identifier , (cast_expression "(undefined1 *)(iVar6 + iVar5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + iVar5)" ( (binary_expression "iVar6 + iVar5" identifier + identifier) ))) , identifier ))) ;) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }))) })) (if_statement "if ((undefined4 *)(iVar5 + -0xc) != &DAT_0041c0a0) {\n      if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar6 < 1) {\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }\n    }" if (parenthesized_expression "((undefined4 *)(iVar5 + -0xc) != &DAT_0041c0a0)" ( (binary_expression "(undefined4 *)(iVar5 + -0xc) != &DAT_0041c0a0" (cast_expression "(undefined4 *)(iVar5 + -0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -0xc)" ( (binary_expression "iVar5 + -0xc" identifier + number_literal) ))) != (pointer_expression "&DAT_0041c0a0" & identifier)) )) (compound_statement "{\n      if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar6 < 1) {\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" if (parenthesized_expression "(PTR___pthread_key_create_00413ff8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_00413ff8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }" { (expression_statement "iVar6 = *(int *)(iVar5 + -4);" (assignment_expression "iVar6 = *(int *)(iVar5 + -4)" identifier = (pointer_expression "*(int *)(iVar5 + -4)" * (cast_expression "(int *)(iVar5 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -4)" ( (binary_expression "iVar5 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar5 + -4) = iVar6 + -1;" (assignment_expression "*(int *)(iVar5 + -4) = iVar6 + -1" (pointer_expression "*(int *)(iVar5 + -4)" * (cast_expression "(int *)(iVar5 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -4)" ( (binary_expression "iVar5 + -4" identifier + number_literal) )))) = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(iVar5 + -4);" (assignment_expression "piVar1 = (int *)(iVar5 + -4)" identifier = (cast_expression "(int *)(iVar5 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -4)" ( (binary_expression "iVar5 + -4" identifier + number_literal) )))) ;) (expression_statement "iVar6 = *piVar1;" (assignment_expression "iVar6 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar6 < 1) {\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }" if (parenthesized_expression "(iVar6 < 1)" ( (binary_expression "iVar6 < 1" identifier < number_literal) )) (compound_statement "{\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }" { (expression_statement "FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);" (call_expression "FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d)" identifier (argument_list "((undefined4 *)(iVar5 + -0xc),local_1d)" ( (cast_expression "(undefined4 *)(iVar5 + -0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -0xc)" ( (binary_expression "iVar5 + -0xc" identifier + number_literal) ))) , identifier ))) ;) })) })) (expression_statement "*param_1 = (int)local_3c;" (assignment_expression "*param_1 = (int)local_3c" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)local_3c" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n    local_3c = (undefined4 *)*param_1;\n    if (0 < *(int *)(iVar5 + -4)) {\n      uVar7 = local_3c[-2];\n      goto LAB_00280051;\n    }\n    if ((__n == 0) || (param_4 == param_3)) {\n      if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }\n      goto LAB_00280188;\n    }\n    puVar4 = (undefined1 *)(param_4 + param_2 + (int)local_3c);\n    if (__n == 1) {\n      *puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n    else {\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n  }" else (compound_statement "{\n    local_3c = (undefined4 *)*param_1;\n    if (0 < *(int *)(iVar5 + -4)) {\n      uVar7 = local_3c[-2];\n      goto LAB_00280051;\n    }\n    if ((__n == 0) || (param_4 == param_3)) {\n      if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }\n      goto LAB_00280188;\n    }\n    puVar4 = (undefined1 *)(param_4 + param_2 + (int)local_3c);\n    if (__n == 1) {\n      *puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n    else {\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n  }" { (expression_statement "local_3c = (undefined4 *)*param_1;" (assignment_expression "local_3c = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (0 < *(int *)(iVar5 + -4)) {\n      uVar7 = local_3c[-2];\n      goto LAB_00280051;\n    }" if (parenthesized_expression "(0 < *(int *)(iVar5 + -4))" ( (binary_expression "0 < *(int *)(iVar5 + -4)" number_literal < (pointer_expression "*(int *)(iVar5 + -4)" * (cast_expression "(int *)(iVar5 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -4)" ( (binary_expression "iVar5 + -4" identifier + number_literal) ))))) )) (compound_statement "{\n      uVar7 = local_3c[-2];\n      goto LAB_00280051;\n    }" { (expression_statement "uVar7 = local_3c[-2];" (assignment_expression "uVar7 = local_3c[-2]" identifier = (subscript_expression "local_3c[-2]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_00280051;" goto statement_identifier ;) })) (if_statement "if ((__n == 0) || (param_4 == param_3)) {\n      if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }\n      goto LAB_00280188;\n    }" if (parenthesized_expression "((__n == 0) || (param_4 == param_3))" ( (binary_expression "(__n == 0) || (param_4 == param_3)" (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) || (parenthesized_expression "(param_4 == param_3)" ( (binary_expression "param_4 == param_3" identifier == identifier) ))) )) (compound_statement "{\n      if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }\n      goto LAB_00280188;\n    }" { (if_statement "if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }" if (parenthesized_expression "(local_3c == (undefined4 *)&DAT_0041c0ac)" ( (binary_expression "local_3c == (undefined4 *)&DAT_0041c0ac" identifier == (cast_expression "(undefined4 *)&DAT_0041c0ac" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0041c0ac" & identifier))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_00280188;" goto statement_identifier ;) })) (expression_statement "puVar4 = (undefined1 *)(param_4 + param_2 + (int)local_3c);" (assignment_expression "puVar4 = (undefined1 *)(param_4 + param_2 + (int)local_3c)" identifier = (cast_expression "(undefined1 *)(param_4 + param_2 + (int)local_3c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + param_2 + (int)local_3c)" ( (binary_expression "param_4 + param_2 + (int)local_3c" (binary_expression "param_4 + param_2" identifier + identifier) + (cast_expression "(int)local_3c" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (if_statement "if (__n == 1) {\n      *puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n    else {\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n      *puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }" { (expression_statement "*puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);" (assignment_expression "*puVar4 = *(undefined1 *)(iVar6 + (int)local_3c)" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*(undefined1 *)(iVar6 + (int)local_3c)" * (cast_expression "(undefined1 *)(iVar6 + (int)local_3c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + (int)local_3c)" ( (binary_expression "iVar6 + (int)local_3c" identifier + (cast_expression "(int)local_3c" ( (type_descriptor "int" primitive_type) ) identifier)) ))))) ;) (expression_statement "local_3c = (undefined4 *)*param_1;" (assignment_expression "local_3c = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "puVar3 = local_3c + -3;" (assignment_expression "puVar3 = local_3c + -3" identifier = (binary_expression "local_3c + -3" identifier + number_literal)) ;) }) (else_clause "else {\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }" else (compound_statement "{\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }" { (expression_statement "memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);" (call_expression "memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n)" identifier (argument_list "(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n)" ( identifier , (cast_expression "(undefined1 *)(iVar6 + (int)local_3c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + (int)local_3c)" ( (binary_expression "iVar6 + (int)local_3c" identifier + (cast_expression "(int)local_3c" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , identifier ))) ;) (expression_statement "local_3c = (undefined4 *)*param_1;" (assignment_expression "local_3c = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "puVar3 = local_3c + -3;" (assignment_expression "puVar3 = local_3c + -3" identifier = (binary_expression "local_3c + -3" identifier + number_literal)) ;) }))) }))) (if_statement "if (puVar3 == &DAT_0041c0a0) {\n    return;\n  }" if (parenthesized_expression "(puVar3 == &DAT_0041c0a0)" ( (binary_expression "puVar3 == &DAT_0041c0a0" identifier == (pointer_expression "&DAT_0041c0a0" & identifier)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_00280188:\n  local_3c[-1] = 0;" statement_identifier : (expression_statement "local_3c[-1] = 0;" (assignment_expression "local_3c[-1] = 0" (subscript_expression "local_3c[-1]" identifier [ number_literal ]) = number_literal) ;)) (expression_statement "local_3c[-3] = uVar2;" (assignment_expression "local_3c[-3] = uVar2" (subscript_expression "local_3c[-3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)((int)local_3c + uVar2) = 0;" (assignment_expression "*(undefined1 *)((int)local_3c + uVar2) = 0" (pointer_expression "*(undefined1 *)((int)local_3c + uVar2)" * (cast_expression "(undefined1 *)((int)local_3c + uVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_3c + uVar2)" ( (binary_expression "(int)local_3c + uVar2" (cast_expression "(int)local_3c" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::string::_M_mutate(unsigned int, unsigned int, unsigned int) */\n\nvoid std::string::_M_mutate(uint param_1,uint param_2,uint param_3)\n\n{\n}\n\n" comment comment (function_definition "void std::string::_M_mutate(uint param_1,uint param_2,uint param_3)\n\n{\n}" primitive_type (ERROR "std::string::" identifier : : identifier : :) (function_declarator "_M_mutate(uint param_1,uint param_2,uint param_3)" identifier (parameter_list "(uint param_1,uint param_2,uint param_3)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n}" { })))
(translation_unit "void FUN_00280000(int *param_1,size_t param_2,int param_3,int param_4)\n\n{\n  int *piVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  int iVar6;\n  size_t __n;\n  uint uVar7;\n  undefined4 *local_3c;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x280009;\n  iVar5 = *param_1;\n  uVar2 = (param_4 - param_3) + *(int *)(iVar5 + -0xc);\n  uVar7 = *(uint *)(iVar5 + -8);\n  iVar6 = param_2 + param_3;\n  __n = *(int *)(iVar5 + -0xc) - iVar6;\n  if (uVar7 < uVar2) {\nLAB_00280051:\n    puVar3 = (undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d);\n    if (param_2 != 0) {\n      if (param_2 == 1) {\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }\n      else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }\n    }\n    local_3c = puVar3 + 3;\n    iVar5 = *param_1;\n    if (__n != 0) {\n      puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3);\n      if (__n == 1) {\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }\n      else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }\n    }\n    if ((undefined4 *)(iVar5 + -0xc) != &DAT_0041c0a0) {\n      if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar6 < 1) {\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }\n    }\n    *param_1 = (int)local_3c;\n  }\n  else {\n    local_3c = (undefined4 *)*param_1;\n    if (0 < *(int *)(iVar5 + -4)) {\n      uVar7 = local_3c[-2];\n      goto LAB_00280051;\n    }\n    if ((__n == 0) || (param_4 == param_3)) {\n      if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }\n      goto LAB_00280188;\n    }\n    puVar4 = (undefined1 *)(param_4 + param_2 + (int)local_3c);\n    if (__n == 1) {\n      *puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n    else {\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n  }\n  if (puVar3 == &DAT_0041c0a0) {\n    return;\n  }\nLAB_00280188:\n  local_3c[-1] = 0;\n  local_3c[-3] = uVar2;\n  *(undefined1 *)((int)local_3c + uVar2) = 0;\n  return;\n}\n\n" (function_definition "void FUN_00280000(int *param_1,size_t param_2,int param_3,int param_4)\n\n{\n  int *piVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  int iVar6;\n  size_t __n;\n  uint uVar7;\n  undefined4 *local_3c;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x280009;\n  iVar5 = *param_1;\n  uVar2 = (param_4 - param_3) + *(int *)(iVar5 + -0xc);\n  uVar7 = *(uint *)(iVar5 + -8);\n  iVar6 = param_2 + param_3;\n  __n = *(int *)(iVar5 + -0xc) - iVar6;\n  if (uVar7 < uVar2) {\nLAB_00280051:\n    puVar3 = (undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d);\n    if (param_2 != 0) {\n      if (param_2 == 1) {\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }\n      else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }\n    }\n    local_3c = puVar3 + 3;\n    iVar5 = *param_1;\n    if (__n != 0) {\n      puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3);\n      if (__n == 1) {\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }\n      else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }\n    }\n    if ((undefined4 *)(iVar5 + -0xc) != &DAT_0041c0a0) {\n      if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar6 < 1) {\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }\n    }\n    *param_1 = (int)local_3c;\n  }\n  else {\n    local_3c = (undefined4 *)*param_1;\n    if (0 < *(int *)(iVar5 + -4)) {\n      uVar7 = local_3c[-2];\n      goto LAB_00280051;\n    }\n    if ((__n == 0) || (param_4 == param_3)) {\n      if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }\n      goto LAB_00280188;\n    }\n    puVar4 = (undefined1 *)(param_4 + param_2 + (int)local_3c);\n    if (__n == 1) {\n      *puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n    else {\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n  }\n  if (puVar3 == &DAT_0041c0a0) {\n    return;\n  }\nLAB_00280188:\n  local_3c[-1] = 0;\n  local_3c[-3] = uVar2;\n  *(undefined1 *)((int)local_3c + uVar2) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00280000(int *param_1,size_t param_2,int param_3,int param_4)" identifier (parameter_list "(int *param_1,size_t param_2,int param_3,int param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "size_t param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  int iVar6;\n  size_t __n;\n  uint uVar7;\n  undefined4 *local_3c;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x280009;\n  iVar5 = *param_1;\n  uVar2 = (param_4 - param_3) + *(int *)(iVar5 + -0xc);\n  uVar7 = *(uint *)(iVar5 + -8);\n  iVar6 = param_2 + param_3;\n  __n = *(int *)(iVar5 + -0xc) - iVar6;\n  if (uVar7 < uVar2) {\nLAB_00280051:\n    puVar3 = (undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d);\n    if (param_2 != 0) {\n      if (param_2 == 1) {\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }\n      else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }\n    }\n    local_3c = puVar3 + 3;\n    iVar5 = *param_1;\n    if (__n != 0) {\n      puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3);\n      if (__n == 1) {\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }\n      else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }\n    }\n    if ((undefined4 *)(iVar5 + -0xc) != &DAT_0041c0a0) {\n      if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar6 < 1) {\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }\n    }\n    *param_1 = (int)local_3c;\n  }\n  else {\n    local_3c = (undefined4 *)*param_1;\n    if (0 < *(int *)(iVar5 + -4)) {\n      uVar7 = local_3c[-2];\n      goto LAB_00280051;\n    }\n    if ((__n == 0) || (param_4 == param_3)) {\n      if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }\n      goto LAB_00280188;\n    }\n    puVar4 = (undefined1 *)(param_4 + param_2 + (int)local_3c);\n    if (__n == 1) {\n      *puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n    else {\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n  }\n  if (puVar3 == &DAT_0041c0a0) {\n    return;\n  }\nLAB_00280188:\n  local_3c[-1] = 0;\n  local_3c[-3] = uVar2;\n  *(undefined1 *)((int)local_3c + uVar2) = 0;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "undefined4 *local_3c;" type_identifier (pointer_declarator "*local_3c" * identifier) ;) (declaration "undefined1 local_1d [9];" type_identifier (array_declarator "local_1d [9]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x280009;" (assignment_expression "uStack_14 = 0x280009" identifier = number_literal) ;) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar2 = (param_4 - param_3) + *(int *)(iVar5 + -0xc);" (assignment_expression "uVar2 = (param_4 - param_3) + *(int *)(iVar5 + -0xc)" identifier = (binary_expression "(param_4 - param_3) + *(int *)(iVar5 + -0xc)" (parenthesized_expression "(param_4 - param_3)" ( (binary_expression "param_4 - param_3" identifier - identifier) )) + (pointer_expression "*(int *)(iVar5 + -0xc)" * (cast_expression "(int *)(iVar5 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -0xc)" ( (binary_expression "iVar5 + -0xc" identifier + number_literal) )))))) ;) (expression_statement "uVar7 = *(uint *)(iVar5 + -8);" (assignment_expression "uVar7 = *(uint *)(iVar5 + -8)" identifier = (pointer_expression "*(uint *)(iVar5 + -8)" * (cast_expression "(uint *)(iVar5 + -8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -8)" ( (binary_expression "iVar5 + -8" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = param_2 + param_3;" (assignment_expression "iVar6 = param_2 + param_3" identifier = (binary_expression "param_2 + param_3" identifier + identifier)) ;) (expression_statement "__n = *(int *)(iVar5 + -0xc) - iVar6;" (assignment_expression "__n = *(int *)(iVar5 + -0xc) - iVar6" identifier = (binary_expression "*(int *)(iVar5 + -0xc) - iVar6" (pointer_expression "*(int *)(iVar5 + -0xc)" * (cast_expression "(int *)(iVar5 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -0xc)" ( (binary_expression "iVar5 + -0xc" identifier + number_literal) )))) - identifier)) ;) (if_statement "if (uVar7 < uVar2) {\nLAB_00280051:\n    puVar3 = (undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d);\n    if (param_2 != 0) {\n      if (param_2 == 1) {\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }\n      else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }\n    }\n    local_3c = puVar3 + 3;\n    iVar5 = *param_1;\n    if (__n != 0) {\n      puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3);\n      if (__n == 1) {\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }\n      else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }\n    }\n    if ((undefined4 *)(iVar5 + -0xc) != &DAT_0041c0a0) {\n      if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar6 < 1) {\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }\n    }\n    *param_1 = (int)local_3c;\n  }\n  else {\n    local_3c = (undefined4 *)*param_1;\n    if (0 < *(int *)(iVar5 + -4)) {\n      uVar7 = local_3c[-2];\n      goto LAB_00280051;\n    }\n    if ((__n == 0) || (param_4 == param_3)) {\n      if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }\n      goto LAB_00280188;\n    }\n    puVar4 = (undefined1 *)(param_4 + param_2 + (int)local_3c);\n    if (__n == 1) {\n      *puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n    else {\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n  }" if (parenthesized_expression "(uVar7 < uVar2)" ( (binary_expression "uVar7 < uVar2" identifier < identifier) )) (compound_statement "{\nLAB_00280051:\n    puVar3 = (undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d);\n    if (param_2 != 0) {\n      if (param_2 == 1) {\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }\n      else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }\n    }\n    local_3c = puVar3 + 3;\n    iVar5 = *param_1;\n    if (__n != 0) {\n      puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3);\n      if (__n == 1) {\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }\n      else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }\n    }\n    if ((undefined4 *)(iVar5 + -0xc) != &DAT_0041c0a0) {\n      if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar6 < 1) {\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }\n    }\n    *param_1 = (int)local_3c;\n  }" { (labeled_statement "LAB_00280051:\n    puVar3 = (undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d);" statement_identifier : (expression_statement "puVar3 = (undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d);" (assignment_expression "puVar3 = (undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d)" identifier = (cast_expression "(undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0027fbe0(uVar2,uVar7,local_1d)" identifier (argument_list "(uVar2,uVar7,local_1d)" ( identifier , identifier , identifier ))))) ;)) (if_statement "if (param_2 != 0) {\n      if (param_2 == 1) {\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }\n      else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_2 == 1) {\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }\n      else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }\n    }" { (if_statement "if (param_2 == 1) {\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }\n      else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }" if (parenthesized_expression "(param_2 == 1)" ( (binary_expression "param_2 == 1" identifier == number_literal) )) (compound_statement "{\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }" { (expression_statement "*(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;" (assignment_expression "*(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1" (pointer_expression "*(undefined1 *)(puVar3 + 3)" * (cast_expression "(undefined1 *)(puVar3 + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 3)" ( (binary_expression "puVar3 + 3" identifier + number_literal) )))) = (pointer_expression "*(undefined1 *)*param_1" * (cast_expression "(undefined1 *)*param_1" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)))) ;) }) (else_clause "else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }" else (compound_statement "{\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }" { (expression_statement "memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);" (call_expression "memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2)" identifier (argument_list "(puVar3 + 3,(undefined1 *)*param_1,param_2)" ( (binary_expression "puVar3 + 3" identifier + number_literal) , (cast_expression "(undefined1 *)*param_1" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , identifier ))) ;) }))) })) (expression_statement "local_3c = puVar3 + 3;" (assignment_expression "local_3c = puVar3 + 3" identifier = (binary_expression "puVar3 + 3" identifier + number_literal)) ;) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (__n != 0) {\n      puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3);\n      if (__n == 1) {\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }\n      else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }\n    }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n      puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3);\n      if (__n == 1) {\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }\n      else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }\n    }" { (expression_statement "puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3);" (assignment_expression "puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3)" identifier = (cast_expression "(undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc + param_4 + (int)puVar3)" ( (binary_expression "param_2 + 0xc + param_4 + (int)puVar3" (binary_expression "param_2 + 0xc + param_4" (binary_expression "param_2 + 0xc" identifier + number_literal) + identifier) + (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (if_statement "if (__n == 1) {\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }\n      else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }" { (expression_statement "*puVar4 = *(undefined1 *)(iVar6 + iVar5);" (assignment_expression "*puVar4 = *(undefined1 *)(iVar6 + iVar5)" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*(undefined1 *)(iVar6 + iVar5)" * (cast_expression "(undefined1 *)(iVar6 + iVar5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + iVar5)" ( (binary_expression "iVar6 + iVar5" identifier + identifier) ))))) ;) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }) (else_clause "else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }" else (compound_statement "{\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }" { (expression_statement "memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);" (call_expression "memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n)" identifier (argument_list "(puVar4,(undefined1 *)(iVar6 + iVar5),__n)" ( identifier , (cast_expression "(undefined1 *)(iVar6 + iVar5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + iVar5)" ( (binary_expression "iVar6 + iVar5" identifier + identifier) ))) , identifier ))) ;) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }))) })) (if_statement "if ((undefined4 *)(iVar5 + -0xc) != &DAT_0041c0a0) {\n      if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar6 < 1) {\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }\n    }" if (parenthesized_expression "((undefined4 *)(iVar5 + -0xc) != &DAT_0041c0a0)" ( (binary_expression "(undefined4 *)(iVar5 + -0xc) != &DAT_0041c0a0" (cast_expression "(undefined4 *)(iVar5 + -0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -0xc)" ( (binary_expression "iVar5 + -0xc" identifier + number_literal) ))) != (pointer_expression "&DAT_0041c0a0" & identifier)) )) (compound_statement "{\n      if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar6 < 1) {\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" if (parenthesized_expression "(PTR___pthread_key_create_00413ff8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_00413ff8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }" { (expression_statement "iVar6 = *(int *)(iVar5 + -4);" (assignment_expression "iVar6 = *(int *)(iVar5 + -4)" identifier = (pointer_expression "*(int *)(iVar5 + -4)" * (cast_expression "(int *)(iVar5 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -4)" ( (binary_expression "iVar5 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar5 + -4) = iVar6 + -1;" (assignment_expression "*(int *)(iVar5 + -4) = iVar6 + -1" (pointer_expression "*(int *)(iVar5 + -4)" * (cast_expression "(int *)(iVar5 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -4)" ( (binary_expression "iVar5 + -4" identifier + number_literal) )))) = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(iVar5 + -4);" (assignment_expression "piVar1 = (int *)(iVar5 + -4)" identifier = (cast_expression "(int *)(iVar5 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -4)" ( (binary_expression "iVar5 + -4" identifier + number_literal) )))) ;) (expression_statement "iVar6 = *piVar1;" (assignment_expression "iVar6 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar6 < 1) {\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }" if (parenthesized_expression "(iVar6 < 1)" ( (binary_expression "iVar6 < 1" identifier < number_literal) )) (compound_statement "{\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }" { (expression_statement "FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);" (call_expression "FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d)" identifier (argument_list "((undefined4 *)(iVar5 + -0xc),local_1d)" ( (cast_expression "(undefined4 *)(iVar5 + -0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -0xc)" ( (binary_expression "iVar5 + -0xc" identifier + number_literal) ))) , identifier ))) ;) })) })) (expression_statement "*param_1 = (int)local_3c;" (assignment_expression "*param_1 = (int)local_3c" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)local_3c" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n    local_3c = (undefined4 *)*param_1;\n    if (0 < *(int *)(iVar5 + -4)) {\n      uVar7 = local_3c[-2];\n      goto LAB_00280051;\n    }\n    if ((__n == 0) || (param_4 == param_3)) {\n      if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }\n      goto LAB_00280188;\n    }\n    puVar4 = (undefined1 *)(param_4 + param_2 + (int)local_3c);\n    if (__n == 1) {\n      *puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n    else {\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n  }" else (compound_statement "{\n    local_3c = (undefined4 *)*param_1;\n    if (0 < *(int *)(iVar5 + -4)) {\n      uVar7 = local_3c[-2];\n      goto LAB_00280051;\n    }\n    if ((__n == 0) || (param_4 == param_3)) {\n      if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }\n      goto LAB_00280188;\n    }\n    puVar4 = (undefined1 *)(param_4 + param_2 + (int)local_3c);\n    if (__n == 1) {\n      *puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n    else {\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n  }" { (expression_statement "local_3c = (undefined4 *)*param_1;" (assignment_expression "local_3c = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (0 < *(int *)(iVar5 + -4)) {\n      uVar7 = local_3c[-2];\n      goto LAB_00280051;\n    }" if (parenthesized_expression "(0 < *(int *)(iVar5 + -4))" ( (binary_expression "0 < *(int *)(iVar5 + -4)" number_literal < (pointer_expression "*(int *)(iVar5 + -4)" * (cast_expression "(int *)(iVar5 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -4)" ( (binary_expression "iVar5 + -4" identifier + number_literal) ))))) )) (compound_statement "{\n      uVar7 = local_3c[-2];\n      goto LAB_00280051;\n    }" { (expression_statement "uVar7 = local_3c[-2];" (assignment_expression "uVar7 = local_3c[-2]" identifier = (subscript_expression "local_3c[-2]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_00280051;" goto statement_identifier ;) })) (if_statement "if ((__n == 0) || (param_4 == param_3)) {\n      if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }\n      goto LAB_00280188;\n    }" if (parenthesized_expression "((__n == 0) || (param_4 == param_3))" ( (binary_expression "(__n == 0) || (param_4 == param_3)" (parenthesized_expression "(__n == 0)" ( (binary_expression "__n == 0" identifier == number_literal) )) || (parenthesized_expression "(param_4 == param_3)" ( (binary_expression "param_4 == param_3" identifier == identifier) ))) )) (compound_statement "{\n      if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }\n      goto LAB_00280188;\n    }" { (if_statement "if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }" if (parenthesized_expression "(local_3c == (undefined4 *)&DAT_0041c0ac)" ( (binary_expression "local_3c == (undefined4 *)&DAT_0041c0ac" identifier == (cast_expression "(undefined4 *)&DAT_0041c0ac" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0041c0ac" & identifier))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_00280188;" goto statement_identifier ;) })) (expression_statement "puVar4 = (undefined1 *)(param_4 + param_2 + (int)local_3c);" (assignment_expression "puVar4 = (undefined1 *)(param_4 + param_2 + (int)local_3c)" identifier = (cast_expression "(undefined1 *)(param_4 + param_2 + (int)local_3c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + param_2 + (int)local_3c)" ( (binary_expression "param_4 + param_2 + (int)local_3c" (binary_expression "param_4 + param_2" identifier + identifier) + (cast_expression "(int)local_3c" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (if_statement "if (__n == 1) {\n      *puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n    else {\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n      *puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }" { (expression_statement "*puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);" (assignment_expression "*puVar4 = *(undefined1 *)(iVar6 + (int)local_3c)" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*(undefined1 *)(iVar6 + (int)local_3c)" * (cast_expression "(undefined1 *)(iVar6 + (int)local_3c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + (int)local_3c)" ( (binary_expression "iVar6 + (int)local_3c" identifier + (cast_expression "(int)local_3c" ( (type_descriptor "int" primitive_type) ) identifier)) ))))) ;) (expression_statement "local_3c = (undefined4 *)*param_1;" (assignment_expression "local_3c = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "puVar3 = local_3c + -3;" (assignment_expression "puVar3 = local_3c + -3" identifier = (binary_expression "local_3c + -3" identifier + number_literal)) ;) }) (else_clause "else {\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }" else (compound_statement "{\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }" { (expression_statement "memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);" (call_expression "memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n)" identifier (argument_list "(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n)" ( identifier , (cast_expression "(undefined1 *)(iVar6 + (int)local_3c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + (int)local_3c)" ( (binary_expression "iVar6 + (int)local_3c" identifier + (cast_expression "(int)local_3c" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , identifier ))) ;) (expression_statement "local_3c = (undefined4 *)*param_1;" (assignment_expression "local_3c = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "puVar3 = local_3c + -3;" (assignment_expression "puVar3 = local_3c + -3" identifier = (binary_expression "local_3c + -3" identifier + number_literal)) ;) }))) }))) (if_statement "if (puVar3 == &DAT_0041c0a0) {\n    return;\n  }" if (parenthesized_expression "(puVar3 == &DAT_0041c0a0)" ( (binary_expression "puVar3 == &DAT_0041c0a0" identifier == (pointer_expression "&DAT_0041c0a0" & identifier)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_00280188:\n  local_3c[-1] = 0;" statement_identifier : (expression_statement "local_3c[-1] = 0;" (assignment_expression "local_3c[-1] = 0" (subscript_expression "local_3c[-1]" identifier [ number_literal ]) = number_literal) ;)) (expression_statement "local_3c[-3] = uVar2;" (assignment_expression "local_3c[-3] = uVar2" (subscript_expression "local_3c[-3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)((int)local_3c + uVar2) = 0;" (assignment_expression "*(undefined1 *)((int)local_3c + uVar2) = 0" (pointer_expression "*(undefined1 *)((int)local_3c + uVar2)" * (cast_expression "(undefined1 *)((int)local_3c + uVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_3c + uVar2)" ( (binary_expression "(int)local_3c + uVar2" (cast_expression "(int)local_3c" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (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 = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , IDENT ))) ;) }))) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (binary_expression IDENT + LIT) + IDENT) + (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }))) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) != (pointer_expression & IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , IDENT ))) ;) })) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == IDENT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) )) (compound_statement { (return_statement return ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (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))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression & IDENT)) )) (compound_statement { (return_statement return ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_00280000(int *param_1,size_t param_2,int param_3,int param_4)\n\n{\n  int *piVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  int iVar6;\n  size_t __n;\n  uint uVar7;\n  undefined4 *local_3c;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x280009;\n  iVar5 = *param_1;\n  uVar2 = (param_4 - param_3) + *(int *)(iVar5 + -0xc);\n  uVar7 = *(uint *)(iVar5 + -8);\n  iVar6 = param_2 + param_3;\n  __n = *(int *)(iVar5 + -0xc) - iVar6;\n  if (uVar7 < uVar2) {\nLAB_00280051:\n    puVar3 = (undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d);\n    if (param_2 != 0) {\n      if (param_2 == 1) {\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }\n      else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }\n    }\n    local_3c = puVar3 + 3;\n    iVar5 = *param_1;\n    if (__n != 0) {\n      puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3);\n      if (__n == 1) {\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }\n      else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }\n    }\n    if ((undefined4 *)(iVar5 + -0xc) != &DAT_0041c0a0) {\n      if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar6 < 1) {\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }\n    }\n    *param_1 = (int)local_3c;\n  }\n  else {\n    local_3c = (undefined4 *)*param_1;\n    if (0 < *(int *)(iVar5 + -4)) {\n      uVar7 = local_3c[-2];\n      goto LAB_00280051;\n    }\n    if ((__n == 0) || (param_4 == param_3)) {\n      if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }\n      goto LAB_00280188;\n    }\n    puVar4 = (undefined1 *)(param_4 + param_2 + (int)local_3c);\n    if (__n == 1) {\n      *puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n    else {\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n  }\n  if (puVar3 == &DAT_0041c0a0) {\n    return;\n  }\nLAB_00280188:\n  local_3c[-1] = 0;\n  local_3c[-3] = uVar2;\n  *(undefined1 *)((int)local_3c + uVar2) = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00280000(int *param_1,size_t param_2,int param_3,int param_4)" (identifier "FUN_00280000") (parameter_list "(int *param_1,size_t param_2,int param_3,int param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "size_t param_2" (primitive_type "size_t") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  undefined4 *puVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  int iVar6;\n  size_t __n;\n  uint uVar7;\n  undefined4 *local_3c;\n  undefined1 local_1d [9];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x280009;\n  iVar5 = *param_1;\n  uVar2 = (param_4 - param_3) + *(int *)(iVar5 + -0xc);\n  uVar7 = *(uint *)(iVar5 + -8);\n  iVar6 = param_2 + param_3;\n  __n = *(int *)(iVar5 + -0xc) - iVar6;\n  if (uVar7 < uVar2) {\nLAB_00280051:\n    puVar3 = (undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d);\n    if (param_2 != 0) {\n      if (param_2 == 1) {\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }\n      else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }\n    }\n    local_3c = puVar3 + 3;\n    iVar5 = *param_1;\n    if (__n != 0) {\n      puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3);\n      if (__n == 1) {\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }\n      else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }\n    }\n    if ((undefined4 *)(iVar5 + -0xc) != &DAT_0041c0a0) {\n      if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar6 < 1) {\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }\n    }\n    *param_1 = (int)local_3c;\n  }\n  else {\n    local_3c = (undefined4 *)*param_1;\n    if (0 < *(int *)(iVar5 + -4)) {\n      uVar7 = local_3c[-2];\n      goto LAB_00280051;\n    }\n    if ((__n == 0) || (param_4 == param_3)) {\n      if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }\n      goto LAB_00280188;\n    }\n    puVar4 = (undefined1 *)(param_4 + param_2 + (int)local_3c);\n    if (__n == 1) {\n      *puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n    else {\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n  }\n  if (puVar3 == &DAT_0041c0a0) {\n    return;\n  }\nLAB_00280188:\n  local_3c[-1] = 0;\n  local_3c[-3] = uVar2;\n  *(undefined1 *)((int)local_3c + uVar2) = 0;\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined1 *puVar4;" (type_identifier "undefined1") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "undefined4 *local_3c;" (type_identifier "undefined4") (pointer_declarator "*local_3c" (* "*") (identifier "local_3c")) (; ";")) (declaration "undefined1 local_1d [9];" (type_identifier "undefined1") (array_declarator "local_1d [9]" (identifier "local_1d") ([ "[") (number_literal "9") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x280009;" (assignment_expression "uStack_14 = 0x280009" (identifier "uStack_14") (= "=") (number_literal "0x280009")) (; ";")) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" (identifier "iVar5") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar2 = (param_4 - param_3) + *(int *)(iVar5 + -0xc);" (assignment_expression "uVar2 = (param_4 - param_3) + *(int *)(iVar5 + -0xc)" (identifier "uVar2") (= "=") (binary_expression "(param_4 - param_3) + *(int *)(iVar5 + -0xc)" (parenthesized_expression "(param_4 - param_3)" (( "(") (binary_expression "param_4 - param_3" (identifier "param_4") (- "-") (identifier "param_3")) () ")")) (+ "+") (pointer_expression "*(int *)(iVar5 + -0xc)" (* "*") (cast_expression "(int *)(iVar5 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + -0xc)" (( "(") (binary_expression "iVar5 + -0xc" (identifier "iVar5") (+ "+") (number_literal "-0xc")) () ")")))))) (; ";")) (expression_statement "uVar7 = *(uint *)(iVar5 + -8);" (assignment_expression "uVar7 = *(uint *)(iVar5 + -8)" (identifier "uVar7") (= "=") (pointer_expression "*(uint *)(iVar5 + -8)" (* "*") (cast_expression "(uint *)(iVar5 + -8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + -8)" (( "(") (binary_expression "iVar5 + -8" (identifier "iVar5") (+ "+") (number_literal "-8")) () ")"))))) (; ";")) (expression_statement "iVar6 = param_2 + param_3;" (assignment_expression "iVar6 = param_2 + param_3" (identifier "iVar6") (= "=") (binary_expression "param_2 + param_3" (identifier "param_2") (+ "+") (identifier "param_3"))) (; ";")) (expression_statement "__n = *(int *)(iVar5 + -0xc) - iVar6;" (assignment_expression "__n = *(int *)(iVar5 + -0xc) - iVar6" (identifier "__n") (= "=") (binary_expression "*(int *)(iVar5 + -0xc) - iVar6" (pointer_expression "*(int *)(iVar5 + -0xc)" (* "*") (cast_expression "(int *)(iVar5 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + -0xc)" (( "(") (binary_expression "iVar5 + -0xc" (identifier "iVar5") (+ "+") (number_literal "-0xc")) () ")")))) (- "-") (identifier "iVar6"))) (; ";")) (if_statement "if (uVar7 < uVar2) {\nLAB_00280051:\n    puVar3 = (undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d);\n    if (param_2 != 0) {\n      if (param_2 == 1) {\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }\n      else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }\n    }\n    local_3c = puVar3 + 3;\n    iVar5 = *param_1;\n    if (__n != 0) {\n      puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3);\n      if (__n == 1) {\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }\n      else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }\n    }\n    if ((undefined4 *)(iVar5 + -0xc) != &DAT_0041c0a0) {\n      if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar6 < 1) {\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }\n    }\n    *param_1 = (int)local_3c;\n  }\n  else {\n    local_3c = (undefined4 *)*param_1;\n    if (0 < *(int *)(iVar5 + -4)) {\n      uVar7 = local_3c[-2];\n      goto LAB_00280051;\n    }\n    if ((__n == 0) || (param_4 == param_3)) {\n      if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }\n      goto LAB_00280188;\n    }\n    puVar4 = (undefined1 *)(param_4 + param_2 + (int)local_3c);\n    if (__n == 1) {\n      *puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n    else {\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n  }" (if "if") (parenthesized_expression "(uVar7 < uVar2)" (( "(") (binary_expression "uVar7 < uVar2" (identifier "uVar7") (< "<") (identifier "uVar2")) () ")")) (compound_statement "{\nLAB_00280051:\n    puVar3 = (undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d);\n    if (param_2 != 0) {\n      if (param_2 == 1) {\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }\n      else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }\n    }\n    local_3c = puVar3 + 3;\n    iVar5 = *param_1;\n    if (__n != 0) {\n      puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3);\n      if (__n == 1) {\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }\n      else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }\n    }\n    if ((undefined4 *)(iVar5 + -0xc) != &DAT_0041c0a0) {\n      if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar6 < 1) {\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }\n    }\n    *param_1 = (int)local_3c;\n  }" ({ "{") (labeled_statement "LAB_00280051:\n    puVar3 = (undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d);" (statement_identifier "LAB_00280051") (: ":") (expression_statement "puVar3 = (undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d);" (assignment_expression "puVar3 = (undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0027fbe0(uVar2,uVar7,local_1d)" (identifier "FUN_0027fbe0") (argument_list "(uVar2,uVar7,local_1d)" (( "(") (identifier "uVar2") (, ",") (identifier "uVar7") (, ",") (identifier "local_1d") () ")"))))) (; ";"))) (if_statement "if (param_2 != 0) {\n      if (param_2 == 1) {\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }\n      else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }\n    }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (param_2 == 1) {\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }\n      else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }\n    }" ({ "{") (if_statement "if (param_2 == 1) {\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }\n      else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }" (if "if") (parenthesized_expression "(param_2 == 1)" (( "(") (binary_expression "param_2 == 1" (identifier "param_2") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;\n      }" ({ "{") (expression_statement "*(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;" (assignment_expression "*(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1" (pointer_expression "*(undefined1 *)(puVar3 + 3)" (* "*") (cast_expression "(undefined1 *)(puVar3 + 3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 3)" (( "(") (binary_expression "puVar3 + 3" (identifier "puVar3") (+ "+") (number_literal "3")) () ")")))) (= "=") (pointer_expression "*(undefined1 *)*param_1" (* "*") (cast_expression "(undefined1 *)*param_1" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))))) (; ";")) (} "}")) (else_clause "else {\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }" (else "else") (compound_statement "{\n        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);\n      }" ({ "{") (expression_statement "memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);" (call_expression "memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2)" (identifier "memcpy") (argument_list "(puVar3 + 3,(undefined1 *)*param_1,param_2)" (( "(") (binary_expression "puVar3 + 3" (identifier "puVar3") (+ "+") (number_literal "3")) (, ",") (cast_expression "(undefined1 *)*param_1" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "local_3c = puVar3 + 3;" (assignment_expression "local_3c = puVar3 + 3" (identifier "local_3c") (= "=") (binary_expression "puVar3 + 3" (identifier "puVar3") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" (identifier "iVar5") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (__n != 0) {\n      puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3);\n      if (__n == 1) {\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }\n      else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }\n    }" (if "if") (parenthesized_expression "(__n != 0)" (( "(") (binary_expression "__n != 0" (identifier "__n") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3);\n      if (__n == 1) {\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }\n      else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }\n    }" ({ "{") (expression_statement "puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3);" (assignment_expression "puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3)" (identifier "puVar4") (= "=") (cast_expression "(undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc + param_4 + (int)puVar3)" (( "(") (binary_expression "param_2 + 0xc + param_4 + (int)puVar3" (binary_expression "param_2 + 0xc + param_4" (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) (+ "+") (identifier "param_4")) (+ "+") (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3"))) () ")")))) (; ";")) (if_statement "if (__n == 1) {\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }\n      else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }" (if "if") (parenthesized_expression "(__n == 1)" (( "(") (binary_expression "__n == 1" (identifier "__n") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        *puVar4 = *(undefined1 *)(iVar6 + iVar5);\n        iVar5 = *param_1;\n      }" ({ "{") (expression_statement "*puVar4 = *(undefined1 *)(iVar6 + iVar5);" (assignment_expression "*puVar4 = *(undefined1 *)(iVar6 + iVar5)" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (pointer_expression "*(undefined1 *)(iVar6 + iVar5)" (* "*") (cast_expression "(undefined1 *)(iVar6 + iVar5)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + iVar5)" (( "(") (binary_expression "iVar6 + iVar5" (identifier "iVar6") (+ "+") (identifier "iVar5")) () ")"))))) (; ";")) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" (identifier "iVar5") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}")) (else_clause "else {\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }" (else "else") (compound_statement "{\n        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);\n        iVar5 = *param_1;\n      }" ({ "{") (expression_statement "memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);" (call_expression "memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n)" (identifier "memcpy") (argument_list "(puVar4,(undefined1 *)(iVar6 + iVar5),__n)" (( "(") (identifier "puVar4") (, ",") (cast_expression "(undefined1 *)(iVar6 + iVar5)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + iVar5)" (( "(") (binary_expression "iVar6 + iVar5" (identifier "iVar6") (+ "+") (identifier "iVar5")) () ")"))) (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "iVar5 = *param_1;" (assignment_expression "iVar5 = *param_1" (identifier "iVar5") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}")))) (} "}"))) (if_statement "if ((undefined4 *)(iVar5 + -0xc) != &DAT_0041c0a0) {\n      if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar6 < 1) {\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }\n    }" (if "if") (parenthesized_expression "((undefined4 *)(iVar5 + -0xc) != &DAT_0041c0a0)" (( "(") (binary_expression "(undefined4 *)(iVar5 + -0xc) != &DAT_0041c0a0" (cast_expression "(undefined4 *)(iVar5 + -0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + -0xc)" (( "(") (binary_expression "iVar5 + -0xc" (identifier "iVar5") (+ "+") (number_literal "-0xc")) () ")"))) (!= "!=") (pointer_expression "&DAT_0041c0a0" (& "&") (identifier "DAT_0041c0a0"))) () ")")) (compound_statement "{\n      if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar6 < 1) {\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }\n    }" ({ "{") (if_statement "if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_00413ff8 == (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_00413ff8 == (undefined *)0x0" (identifier "PTR___pthread_key_create_00413ff8") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        iVar6 = *(int *)(iVar5 + -4);\n        *(int *)(iVar5 + -4) = iVar6 + -1;\n      }" ({ "{") (expression_statement "iVar6 = *(int *)(iVar5 + -4);" (assignment_expression "iVar6 = *(int *)(iVar5 + -4)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(iVar5 + -4)" (* "*") (cast_expression "(int *)(iVar5 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + -4)" (( "(") (binary_expression "iVar5 + -4" (identifier "iVar5") (+ "+") (number_literal "-4")) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar5 + -4) = iVar6 + -1;" (assignment_expression "*(int *)(iVar5 + -4) = iVar6 + -1" (pointer_expression "*(int *)(iVar5 + -4)" (* "*") (cast_expression "(int *)(iVar5 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + -4)" (( "(") (binary_expression "iVar5 + -4" (identifier "iVar5") (+ "+") (number_literal "-4")) () ")")))) (= "=") (binary_expression "iVar6 + -1" (identifier "iVar6") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" (else "else") (compound_statement "{\n        LOCK();\n        piVar1 = (int *)(iVar5 + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar1 = (int *)(iVar5 + -4);" (assignment_expression "piVar1 = (int *)(iVar5 + -4)" (identifier "piVar1") (= "=") (cast_expression "(int *)(iVar5 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + -4)" (( "(") (binary_expression "iVar5 + -4" (identifier "iVar5") (+ "+") (number_literal "-4")) () ")")))) (; ";")) (expression_statement "iVar6 = *piVar1;" (assignment_expression "iVar6 = *piVar1" (identifier "iVar6") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (if_statement "if (iVar6 < 1) {\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }" (if "if") (parenthesized_expression "(iVar6 < 1)" (( "(") (binary_expression "iVar6 < 1" (identifier "iVar6") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);\n      }" ({ "{") (expression_statement "FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);" (call_expression "FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d)" (identifier "FUN_0027fe20") (argument_list "((undefined4 *)(iVar5 + -0xc),local_1d)" (( "(") (cast_expression "(undefined4 *)(iVar5 + -0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + -0xc)" (( "(") (binary_expression "iVar5 + -0xc" (identifier "iVar5") (+ "+") (number_literal "-0xc")) () ")"))) (, ",") (identifier "local_1d") () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "*param_1 = (int)local_3c;" (assignment_expression "*param_1 = (int)local_3c" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)local_3c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_3c"))) (; ";")) (} "}")) (else_clause "else {\n    local_3c = (undefined4 *)*param_1;\n    if (0 < *(int *)(iVar5 + -4)) {\n      uVar7 = local_3c[-2];\n      goto LAB_00280051;\n    }\n    if ((__n == 0) || (param_4 == param_3)) {\n      if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }\n      goto LAB_00280188;\n    }\n    puVar4 = (undefined1 *)(param_4 + param_2 + (int)local_3c);\n    if (__n == 1) {\n      *puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n    else {\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n  }" (else "else") (compound_statement "{\n    local_3c = (undefined4 *)*param_1;\n    if (0 < *(int *)(iVar5 + -4)) {\n      uVar7 = local_3c[-2];\n      goto LAB_00280051;\n    }\n    if ((__n == 0) || (param_4 == param_3)) {\n      if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }\n      goto LAB_00280188;\n    }\n    puVar4 = (undefined1 *)(param_4 + param_2 + (int)local_3c);\n    if (__n == 1) {\n      *puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n    else {\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n  }" ({ "{") (expression_statement "local_3c = (undefined4 *)*param_1;" (assignment_expression "local_3c = (undefined4 *)*param_1" (identifier "local_3c") (= "=") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (0 < *(int *)(iVar5 + -4)) {\n      uVar7 = local_3c[-2];\n      goto LAB_00280051;\n    }" (if "if") (parenthesized_expression "(0 < *(int *)(iVar5 + -4))" (( "(") (binary_expression "0 < *(int *)(iVar5 + -4)" (number_literal "0") (< "<") (pointer_expression "*(int *)(iVar5 + -4)" (* "*") (cast_expression "(int *)(iVar5 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + -4)" (( "(") (binary_expression "iVar5 + -4" (identifier "iVar5") (+ "+") (number_literal "-4")) () ")"))))) () ")")) (compound_statement "{\n      uVar7 = local_3c[-2];\n      goto LAB_00280051;\n    }" ({ "{") (expression_statement "uVar7 = local_3c[-2];" (assignment_expression "uVar7 = local_3c[-2]" (identifier "uVar7") (= "=") (subscript_expression "local_3c[-2]" (identifier "local_3c") ([ "[") (number_literal "-2") (] "]"))) (; ";")) (goto_statement "goto LAB_00280051;" (goto "goto") (statement_identifier "LAB_00280051") (; ";")) (} "}"))) (if_statement "if ((__n == 0) || (param_4 == param_3)) {\n      if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }\n      goto LAB_00280188;\n    }" (if "if") (parenthesized_expression "((__n == 0) || (param_4 == param_3))" (( "(") (binary_expression "(__n == 0) || (param_4 == param_3)" (parenthesized_expression "(__n == 0)" (( "(") (binary_expression "__n == 0" (identifier "__n") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_4 == param_3)" (( "(") (binary_expression "param_4 == param_3" (identifier "param_4") (== "==") (identifier "param_3")) () ")"))) () ")")) (compound_statement "{\n      if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }\n      goto LAB_00280188;\n    }" ({ "{") (if_statement "if (local_3c == (undefined4 *)&DAT_0041c0ac) {\n        return;\n      }" (if "if") (parenthesized_expression "(local_3c == (undefined4 *)&DAT_0041c0ac)" (( "(") (binary_expression "local_3c == (undefined4 *)&DAT_0041c0ac" (identifier "local_3c") (== "==") (cast_expression "(undefined4 *)&DAT_0041c0ac" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0041c0ac" (& "&") (identifier "DAT_0041c0ac")))) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (goto_statement "goto LAB_00280188;" (goto "goto") (statement_identifier "LAB_00280188") (; ";")) (} "}"))) (expression_statement "puVar4 = (undefined1 *)(param_4 + param_2 + (int)local_3c);" (assignment_expression "puVar4 = (undefined1 *)(param_4 + param_2 + (int)local_3c)" (identifier "puVar4") (= "=") (cast_expression "(undefined1 *)(param_4 + param_2 + (int)local_3c)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + param_2 + (int)local_3c)" (( "(") (binary_expression "param_4 + param_2 + (int)local_3c" (binary_expression "param_4 + param_2" (identifier "param_4") (+ "+") (identifier "param_2")) (+ "+") (cast_expression "(int)local_3c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_3c"))) () ")")))) (; ";")) (if_statement "if (__n == 1) {\n      *puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }\n    else {\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }" (if "if") (parenthesized_expression "(__n == 1)" (( "(") (binary_expression "__n == 1" (identifier "__n") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      *puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }" ({ "{") (expression_statement "*puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);" (assignment_expression "*puVar4 = *(undefined1 *)(iVar6 + (int)local_3c)" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (pointer_expression "*(undefined1 *)(iVar6 + (int)local_3c)" (* "*") (cast_expression "(undefined1 *)(iVar6 + (int)local_3c)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + (int)local_3c)" (( "(") (binary_expression "iVar6 + (int)local_3c" (identifier "iVar6") (+ "+") (cast_expression "(int)local_3c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_3c"))) () ")"))))) (; ";")) (expression_statement "local_3c = (undefined4 *)*param_1;" (assignment_expression "local_3c = (undefined4 *)*param_1" (identifier "local_3c") (= "=") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "puVar3 = local_3c + -3;" (assignment_expression "puVar3 = local_3c + -3" (identifier "puVar3") (= "=") (binary_expression "local_3c + -3" (identifier "local_3c") (+ "+") (number_literal "-3"))) (; ";")) (} "}")) (else_clause "else {\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }" (else "else") (compound_statement "{\n      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);\n      local_3c = (undefined4 *)*param_1;\n      puVar3 = local_3c + -3;\n    }" ({ "{") (expression_statement "memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);" (call_expression "memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n)" (identifier "memmove") (argument_list "(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n)" (( "(") (identifier "puVar4") (, ",") (cast_expression "(undefined1 *)(iVar6 + (int)local_3c)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + (int)local_3c)" (( "(") (binary_expression "iVar6 + (int)local_3c" (identifier "iVar6") (+ "+") (cast_expression "(int)local_3c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_3c"))) () ")"))) (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "local_3c = (undefined4 *)*param_1;" (assignment_expression "local_3c = (undefined4 *)*param_1" (identifier "local_3c") (= "=") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "puVar3 = local_3c + -3;" (assignment_expression "puVar3 = local_3c + -3" (identifier "puVar3") (= "=") (binary_expression "local_3c + -3" (identifier "local_3c") (+ "+") (number_literal "-3"))) (; ";")) (} "}")))) (} "}")))) (if_statement "if (puVar3 == &DAT_0041c0a0) {\n    return;\n  }" (if "if") (parenthesized_expression "(puVar3 == &DAT_0041c0a0)" (( "(") (binary_expression "puVar3 == &DAT_0041c0a0" (identifier "puVar3") (== "==") (pointer_expression "&DAT_0041c0a0" (& "&") (identifier "DAT_0041c0a0"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (labeled_statement "LAB_00280188:\n  local_3c[-1] = 0;" (statement_identifier "LAB_00280188") (: ":") (expression_statement "local_3c[-1] = 0;" (assignment_expression "local_3c[-1] = 0" (subscript_expression "local_3c[-1]" (identifier "local_3c") ([ "[") (number_literal "-1") (] "]")) (= "=") (number_literal "0")) (; ";"))) (expression_statement "local_3c[-3] = uVar2;" (assignment_expression "local_3c[-3] = uVar2" (subscript_expression "local_3c[-3]" (identifier "local_3c") ([ "[") (number_literal "-3") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*(undefined1 *)((int)local_3c + uVar2) = 0;" (assignment_expression "*(undefined1 *)((int)local_3c + uVar2) = 0" (pointer_expression "*(undefined1 *)((int)local_3c + uVar2)" (* "*") (cast_expression "(undefined1 *)((int)local_3c + uVar2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_3c + uVar2)" (( "(") (binary_expression "(int)local_3c + uVar2" (cast_expression "(int)local_3c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_3c")) (+ "+") (identifier "uVar2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::string::_M_mutate(unsigned int, unsigned int, unsigned int) */

void std::string::function_1(type_1 param_1,type_1 param_2,type_1 param_3)

{
}


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

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

void MASKED(int *param_1,size_t param_2,int param_3,int param_4)

{
  int *piVar1;
  uint uVar2;
  undefined4 *puVar3;
  undefined1 *puVar4;
  int iVar5;
  int iVar6;
  size_t __n;
  uint uVar7;
  undefined4 *local_3c;
  undefined1 local_1d [9];
  undefined4 uStack_14;
  
  uStack_14 = 0x280009;
  iVar5 = *param_1;
  uVar2 = (param_4 - param_3) + *(int *)(iVar5 + -0xc);
  uVar7 = *(uint *)(iVar5 + -8);
  iVar6 = param_2 + param_3;
  __n = *(int *)(iVar5 + -0xc) - iVar6;
  if (uVar7 < uVar2) {
LAB_00280051:
    puVar3 = (undefined4 *)FUN_0027fbe0(uVar2,uVar7,local_1d);
    if (param_2 != 0) {
      if (param_2 == 1) {
        *(undefined1 *)(puVar3 + 3) = *(undefined1 *)*param_1;
      }
      else {
        memcpy(puVar3 + 3,(undefined1 *)*param_1,param_2);
      }
    }
    local_3c = puVar3 + 3;
    iVar5 = *param_1;
    if (__n != 0) {
      puVar4 = (undefined1 *)(param_2 + 0xc + param_4 + (int)puVar3);
      if (__n == 1) {
        *puVar4 = *(undefined1 *)(iVar6 + iVar5);
        iVar5 = *param_1;
      }
      else {
        memcpy(puVar4,(undefined1 *)(iVar6 + iVar5),__n);
        iVar5 = *param_1;
      }
    }
    if ((undefined4 *)(iVar5 + -0xc) != &DAT_0041c0a0) {
      if (PTR___pthread_key_create_00413ff8 == (undefined *)0x0) {
        iVar6 = *(int *)(iVar5 + -4);
        *(int *)(iVar5 + -4) = iVar6 + -1;
      }
      else {
        LOCK();
        piVar1 = (int *)(iVar5 + -4);
        iVar6 = *piVar1;
        *piVar1 = *piVar1 + -1;
        UNLOCK();
      }
      if (iVar6 < 1) {
        FUN_0027fe20((undefined4 *)(iVar5 + -0xc),local_1d);
      }
    }
    *param_1 = (int)local_3c;
  }
  else {
    local_3c = (undefined4 *)*param_1;
    if (0 < *(int *)(iVar5 + -4)) {
      uVar7 = local_3c[-2];
      goto LAB_00280051;
    }
    if ((__n == 0) || (param_4 == param_3)) {
      if (local_3c == (undefined4 *)&DAT_0041c0ac) {
        return;
      }
      goto LAB_00280188;
    }
    puVar4 = (undefined1 *)(param_4 + param_2 + (int)local_3c);
    if (__n == 1) {
      *puVar4 = *(undefined1 *)(iVar6 + (int)local_3c);
      local_3c = (undefined4 *)*param_1;
      puVar3 = local_3c + -3;
    }
    else {
      memmove(puVar4,(undefined1 *)(iVar6 + (int)local_3c),__n);
      local_3c = (undefined4 *)*param_1;
      puVar3 = local_3c + -3;
    }
  }
  if (puVar3 == &DAT_0041c0a0) {
    return;
  }
LAB_00280188:
  local_3c[-1] = 0;
  local_3c[-3] = uVar2;
  *(undefined1 *)((int)local_3c + uVar2) = 0;
  return;
}

